ss-component-new 1.3.424 → 1.3.425

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/{array-D4Rx9WHR.cjs → array-CTTKgeZQ.cjs} +1 -1
  2. package/dist/{array-BPirA4Cc.js → array-DEucxOOm.js} +2 -2
  3. package/dist/index-BGV2B5vs.cjs +26 -0
  4. package/dist/{index-CPLGtgqY.js → index-BKfUA7pN.js} +7 -3
  5. package/dist/{index-CjSJE_W_.js → index-BQZhLf5T.js} +1 -1
  6. package/dist/{index-DOcUitv0.cjs → index-BZEXfZNc.cjs} +1 -1
  7. package/dist/{index-L3ZBKT8o.js → index-ByKqOoBy.js} +2 -2
  8. package/dist/{index-C5Pf4k8t.cjs → index-C7peM9KR.cjs} +1 -1
  9. package/dist/{index-DPooN16T.js → index-CC1IJPRB.js} +1 -1
  10. package/dist/{index-B8RqhWoJ.cjs → index-CpgqC3xf.cjs} +1 -1
  11. package/dist/{index-CVWmCMHh.cjs → index-D488yaXq.cjs} +1 -1
  12. package/dist/{index-BnIQk5T3.js → index-DFP7wx94.js} +1 -1
  13. package/dist/{index-DPYpdz4-.cjs → index-DXDnC-Rl.cjs} +1 -1
  14. package/dist/{index-D_zk9En4.cjs → index-DdcytpDG.cjs} +1 -1
  15. package/dist/{index-wnEIPRYs.cjs → index-DhMweCM0.cjs} +1 -1
  16. package/dist/{index-A9g99oCn.cjs → index-DtBR5rIj.cjs} +1 -1
  17. package/dist/{index-C1jFiukZ.cjs → index-DzVXZRBo.cjs} +1 -1
  18. package/dist/index-J-Xtl7vz.js +23451 -0
  19. package/dist/{index-C9aMOwfq.js → index-MHwBDrkZ.js} +2 -2
  20. package/dist/{index-DJsef_j_.js → index-TajeeE63.js} +2 -2
  21. package/dist/{index-eE62vN8n.cjs → index-bQF-Cuh-.cjs} +1 -1
  22. package/dist/{index-BzTL89_A.js → index-dliEweD2.js} +3 -3
  23. package/dist/{index-BB-4fswu.js → index-iTcd3h3H.js} +1 -1
  24. package/dist/{index-BMAjqhNr.cjs → index-lGAtX_m6.cjs} +2 -2
  25. package/dist/{index-DX6ztcs4.js → index-nkMURm2j.js} +1 -1
  26. package/dist/{index-DOhwoePd.js → index-sjadD9NL.js} +7 -7
  27. package/dist/{main-DPoBb_O1.js → main-BEeyaLMf.js} +2 -2
  28. package/dist/{main-CE-zxQmp.cjs → main-Db7hsr24.cjs} +1 -1
  29. package/dist/ss-component.cjs +1 -1
  30. package/dist/ss-component.css +2 -2
  31. package/dist/ss-component.js +5 -5
  32. package/dist/ss-component2.cjs +1 -1
  33. package/dist/ss-component2.js +8 -8
  34. package/dist/{threeModel-Cj67vfAN.js → threeModel-Cb7ZO3nw.js} +1 -1
  35. package/dist/{threeModel-CiR7lpoR.cjs → threeModel-c2QHFeEm.cjs} +1 -1
  36. package/dist/{threeSceneView-DWuPWq3V.cjs → threeSceneView-CU9fcCd5.cjs} +1 -1
  37. package/dist/{threeSceneView-2wRxUPkw.js → threeSceneView-CbFJPbi1.js} +3 -3
  38. package/dist/{threeSceneViewForCPMPIP-BzbKluFb.cjs → threeSceneViewForCPMPIP-CKdkNPbq.cjs} +1 -1
  39. package/dist/{threeSceneViewForCPMPIP-DxkeanTl.js → threeSceneViewForCPMPIP-DJcTevo6.js} +1 -1
  40. package/dist/{threeViewerHost-Bi3OIwqG.cjs → threeViewerHost-BLW0VPst.cjs} +1 -1
  41. package/dist/{threeViewerHost-BAksiU_r.js → threeViewerHost-Dbxrdl1p.js} +1 -1
  42. package/package.json +1 -1
  43. package/dist/index-GSbBamu4.js +0 -23403
  44. package/dist/index-zg0q697-.cjs +0 -26
@@ -0,0 +1,26 @@
1
+ "use strict";var Vu=Object.defineProperty;var Fu=(a,l,n)=>l in a?Vu(a,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[l]=n;var un=(a,l,n)=>Fu(a,typeof l!="symbol"?l+"":l,n);const e=require("vue"),Xa=require("./request-Dl8yi2iS.cjs"),z=require("./index-ClvA5-wg.cjs"),fl=require("./index-lGAtX_m6.cjs"),ie=require("./index-Bn4g3hXz.cjs"),nr=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Hl=require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Bk-thOPD.cjs"),Mr=require("./index-BOkUwKV5.cjs"),No=require("./threeViewerHost-BLW0VPst.cjs"),qr=require("./index-DmwxzDGW.cjs"),us=require("./index-CpgqC3xf.cjs"),nc=require("./index-DhD0tnVr.cjs");;/* empty css */const Ao=require("./isString-CGrvcmBw.cjs"),ds=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),ic=require("./index-BVaHwt5f.cjs"),Pu=require("./index-CnsDmHXo.cjs"),Hn=require("./MTLLoader-C1qSZuWT.cjs"),ju=require("./URDFLoader-CTaB1j6-.cjs");var Hu="[object Boolean]";function oc(a){return a===!0||a===!1||Xa.isObjectLike(a)&&Xa.baseGetTag(a)==Hu}function Uu(a){return a===void 0}const qu=a=>a.match(/\((.*)\)/)[1],Wu={__name:"index",props:{isVisible:{type:Boolean,default:!1},title:{type:String,default:""},placement:{type:String,default:"bottom"},width:{type:Number,default:200},trigger:{type:String,default:"click"}},setup(a){const l=a,n=e.ref(null),r=e.ref(!1),i=e.ref(null);return e.watch(()=>l==null?void 0:l.isVisible,()=>{r.value=l==null?void 0:l.isVisible},{deep:!0,immediate:!0}),e.watch(()=>i.value,()=>{e.nextTick(()=>{var t,f;(f=(t=n.value)==null?void 0:t.updatePopper)==null||f.call(t)})},{deep:!0,immediate:!0}),(t,f)=>{const c=e.resolveComponent("el-popover");return e.openBlock(),e.createBlock(c,{visible:r.value,"onUpdate:visible":f[0]||(f[0]=u=>r.value=u),trigger:l.trigger,title:l==null?void 0:l.title,placement:l==null?void 0:l.placement,width:l==null?void 0:l.width,ref_key:"popOverRef",ref:n,"trigger-keys":"[]"},{reference:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(t.$slots,"reference",{ref_key:"referenceRef",ref:i})])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(t.$slots,"content")])]),_:3},8,["visible","trigger","title","placement","width"])}}},Ku=e.defineComponent({__name:"index",props:{value:{type:[String,Number],default:""},columnContent:{type:Object,default:{}}},setup(a){const l=a,n=e.computed(()=>{var u,m,g,_,p,M;const r=l.value??"";let i=(u=l==null?void 0:l.columnContent)==null?void 0:u.filter;if(i=(m=ie.analyzeSplitToContent(i,","))==null?void 0:m.map(w=>((w==null?void 0:w[(w==null?void 0:w.length)-1])===","&&(w=w==null?void 0:w.slice(0,(w==null?void 0:w.length)-1)),w)),i=i==null?void 0:i.find(w=>(w==null?void 0:w[0])==="("),(i==null?void 0:i[0])==="("&&(i=i==null?void 0:i.slice(1,(i==null?void 0:i.length)-1)),i=i==null?void 0:i.split("||"),!i)return{backgroundColor:void 0,color:void 0};let t=(_=(g=l==null?void 0:l.columnContent)==null?void 0:g.options)==null?void 0:_.findIndex(w=>(w==null?void 0:w.value)===r);t=i==null?void 0:i[t],t=ie.analyzeSplitToContent(t,","),t=t==null?void 0:t.map(w=>((w==null?void 0:w[(w==null?void 0:w.length)-1])===","&&(w=w==null?void 0:w.slice(0,(w==null?void 0:w.length)-1)),w));let f=t==null?void 0:t.find(w=>w==null?void 0:w.includes("@TextBackRGBA"));f?f=ie.rgbaToColor((p=f==null?void 0:f.split("="))==null?void 0:p[1]):f=void 0;let c=t==null?void 0:t.find(w=>w==null?void 0:w.includes("@TextRGBA"));return c?c=ie.rgbaToColor((M=c==null?void 0:c.split("="))==null?void 0:M[1]):c=void 0,{backgroundColor:f,color:c}});return(r,i)=>a.value!==void 0&&a.value!==null?(e.openBlock(),e.createElementBlock("span",{key:0,class:"task-status-tag",style:e.normalizeStyle(n.value)},e.toDisplayString(a.value===0?"0":a.value),5)):e.createCommentVNode("",!0)}}),Gu=nr._export_sfc(Ku,[["__scopeId","data-v-3290070b"]]);function Yu(a,l,n,r={}){if(!a||!l||!n||n.length!==4)return;const i=a.getContext("2d");if(!i)return;const{color:t="rgba(255, 235, 59, 0.3)",strokeWidth:f=2,fillOpacity:c=.2}=r,u=a.getBoundingClientRect(),m=l.getBoundingClientRect(),g=l.naturalWidth,_=l.naturalHeight,p=m.width/g,M=m.height/_,w=Math.min(p,M),G=g*w,A=_*w,P=(u.width-G)/2,O=(u.height-A)/2,E=n.map(([S,b])=>{const C=P+S*G,R=O+b*A;return{x:C,y:R}});i.clearRect(0,0,a.width,a.height),i.beginPath(),i.moveTo(E[0].x,E[0].y);for(let S=1;S<E.length;S++)i.lineTo(E[S].x,E[S].y);i.closePath();const x=t.replace(/[\d.]+\)$/,`${c})`);i.fillStyle=x,i.fill(),i.strokeStyle=t.replace(/[\d.]+\)$/,"1)"),i.lineWidth=f,i.stroke()}function Ci(a){if(!a)return;const l=a.getContext("2d");l&&l.clearRect(0,0,a.width,a.height)}function ps(a,l){if(!a||!l)return null;const n=a[l];return!n||!n.bboxNorm||!Array.isArray(n.bboxNorm)||n.bboxNorm.length!==4?null:{bboxNorm:n.bboxNorm,imageName:n.imageName||""}}const Ju={key:0,class:"ocr-img-preview-root"},Xu={class:"ocr-img-preview-window"},Zu={key:0,class:"img-preview-body"},Qu={class:"img-preview-header"},ed={class:"img-header-left"},ad={class:"img-name"},ld={key:0,class:"img-header-right"},rd={class:"img-index"},nd={key:0,class:"img-thumb-list"},id=["onClick"],od={key:1,class:"thumb-placeholder"},td={class:"thumb-name"},sd={class:"img-preview-container"},cd={key:0,class:"img-placeholder"},ud={key:2,class:"img-placeholder"},dd={key:0},pd={key:1},fd={key:1,class:"img-placeholder"},hd=e.defineComponent({__name:"imgPreview",props:{visible:{type:Boolean,default:!1},images:{type:Array,default:()=>[]},defaultImageName:{type:String,default:""},fieldMeta:{type:Object,default:()=>({})},focusedFieldName:{type:String,default:""}},emits:["update:visible","close"],setup(a,{emit:l}){const n=a,r=l,i=e.computed({get:()=>n.visible,set:B=>r("update:visible",B)});let t=!1,f="",c=0,u=0,m=0,g=0,_=0,p=0,M=null;const w=B=>{var q,xe;const te=(xe=(q=B==null?void 0:B.target)==null?void 0:q.closest)==null?void 0:xe.call(q,".ocr-img-preview-window");return te||document.querySelector(".ocr-img-preview-window")},G=B=>{if(!B||B==="none")return{tx:0,ty:0};let te=B.match(/matrix\(([^)]+)\)/);if(te){const q=te[1].split(",").map(xe=>Number(xe.trim()));return{tx:(q==null?void 0:q[4])||0,ty:(q==null?void 0:q[5])||0}}if(te=B.match(/matrix3d\(([^)]+)\)/),te){const q=te[1].split(",").map(xe=>Number(xe.trim()));return{tx:(q==null?void 0:q[12])||0,ty:(q==null?void 0:q[13])||0}}return te=B.match(/translate\(\s*([-\d.]+)px\s*,\s*([-\d.]+)px\s*\)/),te?{tx:Number(te[1])||0,ty:Number(te[2])||0}:{tx:0,ty:0}},A=(B,te,q)=>{B.style.transform=`translate(${te}px, ${q}px)`},P=B=>{const te=w(B);if(!te)return;t=!0,M=te,f="move",c=B.clientX,u=B.clientY;const q=window.getComputedStyle(te),{tx:xe,ty:Me}=G(q.transform);_=xe,p=Me,document.addEventListener("mousemove",E),document.addEventListener("mouseup",x)},O=(B,te)=>{const q=w(B);if(!q)return;t=!0,M=q,f=te,c=B.clientX,u=B.clientY;const xe=q.getBoundingClientRect();m=xe.width,g=xe.height;const Me=window.getComputedStyle(q),{tx:$e,ty:Qe}=G(Me.transform);_=$e,p=Qe,document.addEventListener("mousemove",E),document.addEventListener("mouseup",x)},E=B=>{if(!t||!M)return;const te=B.clientX-c,q=B.clientY-u,xe=360,Me=420;let $e=m,Qe=g,_a=_,oe=p;if(f==="move"){_a=_+te,oe=p+q,A(M,_a,oe);return}if(f.includes("right")&&($e=Math.max(xe,m+te)),f.includes("bottom")&&(Qe=Math.max(Me,g+q)),f.includes("left")){const sa=m-te;sa<xe?($e=xe,_a=_+(m-xe)):($e=sa,_a=_+te)}if(f.includes("top")){const sa=g-q;sa<Me?(Qe=Me,oe=p+(g-Me)):(Qe=sa,oe=p+q)}M.style.width=`${$e}px`,M.style.height=`${Qe}px`,A(M,_a,oe)},x=()=>{t=!1,f="",M=null,document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",x)},S=e.ref([]),b=e.ref(!1);e.watch(()=>n.images,async B=>{if(!Array.isArray(B)||B.length===0){S.value=[];return}b.value=!0;const te=[];for(const q of B)if(q.url&&!q.url.startsWith("blob:")&&!q.url.startsWith("http"))try{const xe=await Hl.downloadFile(q.url),Me=URL.createObjectURL(xe);te.push({...q,blobUrl:Me})}catch(xe){console.error(`Failed to load image for preview: ${q.url}`,xe),te.push({...q,blobUrl:""})}else te.push({...q,blobUrl:q.url});S.value=te,b.value=!1},{deep:!0,immediate:!0});const C=e.ref(0),R=e.ref(null),$=e.ref(null),le=e.computed(()=>S.value[C.value]||null),ee=()=>{if(!S.value.length){C.value=0;return}if(n.defaultImageName){const B=S.value.findIndex(te=>(te==null?void 0:te.name)===n.defaultImageName);C.value=B>=0?B:0}else C.value=0},_e=B=>{if(!S.value.length)return;const te=Math.max(0,Math.min(B,S.value.length-1));C.value=te},pe=()=>_e(C.value-1),H=()=>_e(C.value+1),F=B=>{if(!B)return;const te=S.value.findIndex(q=>(q==null?void 0:q.name)===B);te>=0&&(C.value=te)},X=()=>{if(!$.value)return;const B=$.value.parentElement;if(!B)return;const te=B.getBoundingClientRect();$.value.width=te.width,$.value.height=te.height},re=()=>{var xe,Me;if(!$.value||!R.value||!n.focusedFieldName){$.value&&Ci($.value);return}const B=(xe=R.value.$el)==null?void 0:xe.querySelector("img");if(!B)return;if(!B.complete||B.naturalWidth===0){B.onload=()=>{e.nextTick(()=>{re()})};return}const te=((Me=le.value)==null?void 0:Me.name)||"",q=ps(n.fieldMeta,n.focusedFieldName);if(!q){Ci($.value);return}if(q.imageName!==te){Ci($.value);return}X(),Yu($.value,B,q.bboxNorm)},ve=()=>{e.nextTick(()=>{X(),re()})};e.watch(()=>n.focusedFieldName,()=>{if(!i.value)return;const B=ps(n.fieldMeta,n.focusedFieldName);B!=null&&B.imageName&&F(B.imageName),e.nextTick(()=>{re()})}),e.watch(()=>{var B;return(B=le.value)==null?void 0:B.name},()=>{i.value&&e.nextTick(()=>{$.value&&Ci($.value),re()})}),e.watch(()=>n.visible,B=>{B?(ee(),e.nextTick(()=>{X(),re()})):$.value&&Ci($.value)}),e.watch(()=>n.defaultImageName,()=>{i.value&&ee()});let Re=null;e.onMounted(()=>{var B;typeof ResizeObserver<"u"&&(Re=new ResizeObserver(()=>{X(),e.nextTick(()=>{re()})}),(B=$.value)!=null&&B.parentElement&&Re.observe($.value.parentElement))}),e.onUnmounted(()=>{Re&&(Re.disconnect(),Re=null),document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",x)});const ce=()=>{$.value&&Ci($.value),r("update:visible",!1),r("close")};return(B,te)=>{var Qe,_a;const q=e.resolveComponent("el-button"),xe=e.resolveComponent("el-image"),Me=e.resolveComponent("Loading"),$e=e.resolveComponent("el-icon");return i.value?(e.openBlock(),e.createElementBlock("div",Ju,[te[12]||(te[12]=e.createElementVNode("div",{class:"ocr-img-preview-backdrop"},null,-1)),e.createElementVNode("div",Xu,[e.createElementVNode("div",{class:"ocr-img-preview-header",onMousedown:e.withModifiers(P,["stop"])},[te[8]||(te[8]=e.createElementVNode("span",{class:"ocr-img-preview-title"},"文件预览",-1)),e.createElementVNode("button",{type:"button",class:"ocr-img-preview-close",onClick:ce},"×")],32),e.createElementVNode("div",{class:"resizable-handle top",onMousedown:te[0]||(te[0]=e.withModifiers(oe=>O(oe,"top"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle right",onMousedown:te[1]||(te[1]=e.withModifiers(oe=>O(oe,"right"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom",onMousedown:te[2]||(te[2]=e.withModifiers(oe=>O(oe,"bottom"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle left",onMousedown:te[3]||(te[3]=e.withModifiers(oe=>O(oe,"left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle top-left",onMousedown:te[4]||(te[4]=e.withModifiers(oe=>O(oe,"top-left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle top-right",onMousedown:te[5]||(te[5]=e.withModifiers(oe=>O(oe,"top-right"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom-left",onMousedown:te[6]||(te[6]=e.withModifiers(oe=>O(oe,"bottom-left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom-right",onMousedown:te[7]||(te[7]=e.withModifiers(oe=>O(oe,"bottom-right"),["stop"]))},null,32),le.value?(e.openBlock(),e.createElementBlock("div",Zu,[e.createElementVNode("div",Qu,[e.createElementVNode("div",ed,[e.createElementVNode("span",ad,e.toDisplayString(le.value.name?le.value.name+(le.value.url&&le.value.url.lastIndexOf(".")!==-1?le.value.url.substring(le.value.url.lastIndexOf(".")):""):""),1)]),S.value.length>1?(e.openBlock(),e.createElementBlock("div",ld,[e.createVNode(q,{size:"small",disabled:C.value===0,onClick:pe},{default:e.withCtx(()=>te[9]||(te[9]=[e.createTextVNode("上一张")])),_:1,__:[9]},8,["disabled"]),e.createElementVNode("span",rd,e.toDisplayString(C.value+1)+" / "+e.toDisplayString(S.value.length),1),e.createVNode(q,{size:"small",disabled:C.value===S.value.length-1,onClick:H},{default:e.withCtx(()=>te[10]||(te[10]=[e.createTextVNode("下一张")])),_:1,__:[10]},8,["disabled"])])):e.createCommentVNode("",!0)]),S.value.length>1?(e.openBlock(),e.createElementBlock("div",nd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(oe,sa)=>(e.openBlock(),e.createElementBlock("div",{key:(oe.name||"")+"-"+sa,class:e.normalizeClass(["img-thumb-item",{active:sa===C.value}]),onClick:de=>_e(sa)},[oe!=null&&oe.blobUrl?(e.openBlock(),e.createBlock(xe,{key:0,src:oe.blobUrl,fit:"cover",class:"thumb-image","preview-src-list":[oe.blobUrl],"initial-index":0},null,8,["src","preview-src-list"])):(e.openBlock(),e.createElementBlock("div",od,"加载失败")),e.createElementVNode("div",td,e.toDisplayString(oe.name||"-"),1)],10,id))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",sd,[b.value?(e.openBlock(),e.createElementBlock("div",cd,[e.createVNode($e,{class:"is-loading"},{default:e.withCtx(()=>[e.createVNode(Me)]),_:1}),te[11]||(te[11]=e.createElementVNode("span",null,"图片加载中...",-1))])):(Qe=le.value)!=null&&Qe.blobUrl?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(xe,{ref_key:"imageRef",ref:R,src:le.value.blobUrl,fit:"contain",class:"preview-image","preview-src-list":[le.value.blobUrl],onLoad:ve},null,8,["src","preview-src-list"]),e.createElementVNode("canvas",{ref_key:"canvasRef",ref:$,class:"highlight-canvas"},null,512)],64)):(e.openBlock(),e.createElementBlock("div",ud,[(_a=le.value)!=null&&_a.url?(e.openBlock(),e.createElementBlock("span",dd,"图片加载失败")):(e.openBlock(),e.createElementBlock("span",pd,"暂无图片"))]))])])):(e.openBlock(),e.createElementBlock("div",fd,"暂无图片"))])])):e.createCommentVNode("",!0)}}}),vd=nr._export_sfc(hd,[["__scopeId","data-v-48a4ecb1"]]),md={class:"cert-preview-body"},yd={key:0,class:"pdf-preview-container"},gd={class:"thumbs"},bd=["onClick"],kd={class:"thumb-img"},xd=["src"],wd={key:1,class:"thumb-loading"},_d={class:"thumb-title"},Sd={class:"viewer"},Ed={key:0,class:"viewer-img-wrap"},Cd=["src"],Dd={key:1,class:"viewer-loading"},Td=e.defineComponent({__name:"CertificatePreview",props:{visible:{type:Boolean},versions:{}},emits:["update:visible"],setup(a,{emit:l}){const n=a,r=l,i=e.ref(""),t=e.ref(""),f=e.computed(()=>(n.versions||[]).find(w=>String(w.versionId)===String(i.value))),c=e.ref({}),u=e.ref(""),m=e.ref("证书附件.pdf"),g=()=>{try{Object.values(c.value||{}).forEach(w=>{w&&URL.revokeObjectURL(w)}),u.value&&URL.revokeObjectURL(u.value)}catch{}c.value={},u.value=""},_=async w=>{if(!w||w.fileType==="pdf")return;const G=Array.isArray(w.images)?w.images:[];for(const A of G){const P=A==null?void 0:A.url;if(!(!P||c.value[P]))try{const O=await z.platformDownloadFile({url:P}),E=URL.createObjectURL(O.data);c.value={...c.value,[P]:E}}catch{}}},p=async w=>{var A;if(!w||w.fileType!=="pdf"){u.value="";return}const G=w.sourceUrl||"";if(!G){u.value="";return}if(u.value){try{URL.revokeObjectURL(u.value)}catch{}u.value=""}try{console.log("[CertificatePreview] 下载PDF附件:",{url:G,versionId:w==null?void 0:w.versionId,certNo:w==null?void 0:w.certNo});const P=await z.platformDownloadFile({url:G});console.log("[CertificatePreview] PDF响应:",{url:G,status:P==null?void 0:P.status,size:(A=P==null?void 0:P.data)==null?void 0:A.size});const O=URL.createObjectURL(P.data);u.value=O;const E=w.certNo?String(w.certNo):"";m.value=E?`${E}.pdf`:"证书附件.pdf"}catch(P){console.error("[CertificatePreview] PDF加载失败:",{url:G,error:P}),u.value=""}};e.watch(()=>n.visible,async w=>{var A;if(!w){g();return}const G=(A=n.versions)==null?void 0:A[0];i.value=(G==null?void 0:G.versionId)||"",await _(G),await p(G)},{immediate:!0}),e.watch(()=>i.value,async()=>{var G,A;const w=f.value;if(!w){t.value="",u.value="";return}if(w.fileType==="pdf"){t.value="",await p(w);return}u.value="",t.value=((A=(G=w.images)==null?void 0:G[0])==null?void 0:A.url)||"",await _(w)},{immediate:!0});const M=()=>{r("update:visible",!1),g()};return e.onBeforeUnmount(()=>{g()}),(w,G)=>{const A=e.resolveComponent("el-empty"),P=e.resolveComponent("el-tab-pane"),O=e.resolveComponent("el-tabs"),E=e.resolveComponent("el-button"),x=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(x,{"model-value":w.visible,title:"证书附件预览",width:"1100px","close-on-click-modal":!1,onClose:M},{footer:e.withCtx(()=>[e.createVNode(E,{id:"themeBorderButton",onClick:M},{default:e.withCtx(()=>G[1]||(G[1]=[e.createTextVNode("关闭")])),_:1,__:[1]})]),default:e.withCtx(()=>[w.versions&&w.versions.length>0?(e.openBlock(),e.createBlock(O,{key:0,modelValue:i.value,"onUpdate:modelValue":G[0]||(G[0]=S=>i.value=S),type:"card",class:"cert-version-tabs"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.versions,S=>(e.openBlock(),e.createBlock(P,{key:S.versionId,name:S.versionId,label:S.label},{default:e.withCtx(()=>[e.createElementVNode("div",md,[S.fileType==="pdf"?(e.openBlock(),e.createElementBlock("div",yd,[u.value?(e.openBlock(),e.createBlock(fl.SsFilePreview,{key:1,fileName:m.value,blobUrl:u.value},null,8,["fileName","blobUrl"])):(e.openBlock(),e.createBlock(A,{key:0,description:"加载中"}))])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",gd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.images||[],b=>(e.openBlock(),e.createElementBlock("div",{key:b.url,class:e.normalizeClass(["thumb",{active:b.url===t.value}]),onClick:C=>t.value=b.url},[e.createElementVNode("div",kd,[c.value[b.url]?(e.openBlock(),e.createElementBlock("img",{key:0,src:c.value[b.url]},null,8,xd)):(e.openBlock(),e.createElementBlock("div",wd,"加载中"))]),e.createElementVNode("div",_d,e.toDisplayString(b.name),1)],10,bd))),128))]),e.createElementVNode("div",Sd,[t.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[c.value[t.value]?(e.openBlock(),e.createElementBlock("div",Ed,[e.createElementVNode("img",{class:"viewer-img",src:c.value[t.value]},null,8,Cd)])):(e.openBlock(),e.createElementBlock("div",Dd,"加载中"))],64)):(e.openBlock(),e.createBlock(A,{key:0,description:"暂无图片"}))])],64))])]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(A,{key:1,description:"暂无可预览的证书附件"}))]),_:1},8,["model-value"])}}}),Bd=nr._export_sfc(Td,[["__scopeId","data-v-220703c0"]]),Nd={class:"ocr-candidate-wrap"},Ad={class:"ocr-candidate-left"},zd={key:1},Md={key:0},Id={key:1},Od={key:2},Ld={key:3},Rd={key:0,class:"ocr-candidate-right"},$d={class:"ocr-candidate-actions"},Vd={key:1},Fd={class:"dialog-footer"},Pd={__name:"OCRCandidateDialog",props:{visible:{type:Boolean,default:!1},candidates:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},nameProp:{type:String,default:""},mfrProp:{type:String,default:""}},emits:["update:visible","submit","preview-file"],setup(a,{emit:l}){const n=(C=[])=>{const R=[],$=le=>{(le||[]).forEach(ee=>{if(!ee)return;const _e=ee.children||ee.childrens||ee.columns;Array.isArray(_e)&&_e.length>0?$(_e):R.push(ee)})};return $(C),R},r=a,i=l,t=e.computed(()=>{var C;return((C=p.value)==null?void 0:C.allowAdd)!==!1}),f=e.computed(()=>{var C;return((C=p.value)==null?void 0:C.allowReplace)!==!1}),c=C=>{if(!C)return[];if(Array.isArray(C))return C;if(typeof C=="string")try{const R=JSON.parse(C);return Array.isArray(R)?R:[]}catch{return[]}return[]},u=C=>{i("preview-file",C)},m=e.ref([]),g=e.ref(0),_=e.ref("");e.watch(()=>r.candidates,C=>{var R,$;m.value=(C||[]).map(le=>({...le,...(le==null?void 0:le.ocrRow)||{},selectedTargetId:(le==null?void 0:le.selectedTargetId)||"",__decision:le==null?void 0:le.__decision})),g.value=0,_.value=(($=(R=m.value)==null?void 0:R[0])==null?void 0:$.selectedTargetId)||""},{immediate:!0,deep:!0}),e.watch(()=>r.visible,C=>{var R,$;C&&(g.value=0,_.value=(($=(R=m.value)==null?void 0:R[0])==null?void 0:$.selectedTargetId)||"")});const p=e.computed(()=>{var R;const C=Number(g.value||0);return((R=m.value||[])==null?void 0:R[C])||null}),M=e.computed(()=>(n(r.columns||[])||[]).filter($=>$&&$.prop).filter($=>$.type!=="operate"&&$.label!=="操作"&&$.prop!=="operate")),w=e.computed(()=>M.value.filter(C=>C.label!=="证书附件"&&C.prop!=="证书附件")),G=C=>{if(!C)return;const R=(m.value||[]).findIndex($=>($==null?void 0:$.idx)===(C==null?void 0:C.idx));R>-1&&(g.value=R,_.value=(C==null?void 0:C.selectedTargetId)||"")},A=C=>{if(!C){_.value="";return}_.value=String((C==null?void 0:C.id)??"")},P=(C,R="")=>{const $=Number(g.value||0),le=m.value||[],ee=le[$];ee&&(ee.__decision=C,ee.selectedTargetId=R,_.value=R,m.value=[...le])},O=()=>P("skip",""),E=()=>P("add",""),x=()=>{if(!_.value){Xa.ElMessage.warning("请先选择要替换的目标记录");return}P("replace",_.value)},S=()=>{i("update:visible",!1)},b=()=>{const C=m.value||[];if(C.find($=>($==null?void 0:$.__decision)==="replace"&&!($!=null&&$.selectedTargetId))){Xa.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}i("submit",C),i("update:visible",!1)};return(C,R)=>{const $=e.resolveComponent("el-table-column"),le=e.resolveComponent("svg-icon"),ee=e.resolveComponent("el-table"),_e=e.resolveComponent("el-button"),pe=e.resolveComponent("el-alert");return e.openBlock(),e.createBlock(Mr.ssDialog,{title:"OCR候选匹配",visible:a.visible,"close-on-click-modal":!1,width:"90%",style:{maxWidth:"1200px"},onBeforeDestroy:S},{default:e.withCtx(()=>{var H,F;return[e.createElementVNode("div",Nd,[e.createElementVNode("div",Ad,[R[0]||(R[0]=e.createElementVNode("div",{class:"ocr-candidate-title"},"待处理OCR行(可跳过)",-1)),e.createVNode(ee,{data:m.value,border:"",stripe:"","max-height":"300",style:{width:"100%"},"highlight-current-row":"",onCurrentChange:G},{default:e.withCtx(()=>[e.createVNode($,{type:"index",label:"序号",width:"60"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,X=>(e.openBlock(),e.createBlock($,{key:X.prop,label:X.label,prop:X.prop,"min-width":X.minWidth||160},{default:e.withCtx(({row:re})=>[X.label==="证书附件"||X.prop==="证书附件"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[c(re==null?void 0:re[X.prop]).length>0?(e.openBlock(),e.createBlock(le,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:e.withModifiers(ve=>u({row:re,prop:X.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(e.openBlock(),e.createElementBlock("span",zd,"-"))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString((re==null?void 0:re[X.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128)),e.createVNode($,{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($,{label:"处理状态",width:"120",fixed:"right"},{default:e.withCtx(({row:X})=>[(X==null?void 0:X.__decision)==="replace"?(e.openBlock(),e.createElementBlock("span",Md,"替换")):(X==null?void 0:X.__decision)==="add"?(e.openBlock(),e.createElementBlock("span",Id,"新增")):(X==null?void 0:X.__decision)==="skip"?(e.openBlock(),e.createElementBlock("span",Od,"跳过")):(e.openBlock(),e.createElementBlock("span",Ld,"未处理"))]),_:1})]),_:1},8,["data"])]),m.value&&m.value.length>0?(e.openBlock(),e.createElementBlock("div",Rd,[R[4]||(R[4]=e.createElementVNode("div",{class:"ocr-candidate-title"},"当前行候选记录(同编号)",-1)),e.createElementVNode("div",$d,[e.createVNode(_e,{id:"themeBorderButton",onClick:O},{default:e.withCtx(()=>R[1]||(R[1]=[e.createTextVNode("跳过本行")])),_:1,__:[1]}),e.createVNode(_e,{id:"themeBorderButton",onClick:E,disabled:!t.value},{default:e.withCtx(()=>R[2]||(R[2]=[e.createTextVNode("新增本行")])),_:1,__:[2]},8,["disabled"]),e.createVNode(_e,{class:"ok-button",id:"themeButton",onClick:x,disabled:!f.value||!_.value},{default:e.withCtx(()=>R[3]||(R[3]=[e.createTextVNode("替换选中记录")])),_:1,__:[3]},8,["disabled"])]),(((H=p.value)==null?void 0:H.candidates)||[]).length===0?(e.openBlock(),e.createBlock(pe,{key:0,title:"该编号暂无候选记录,可选择“新增本行”或“跳过本行”。",type:"info",closable:!1,"show-icon":"",style:{margin:"8px 0"}})):e.createCommentVNode("",!0),e.createVNode(ee,{data:((F=p.value)==null?void 0:F.candidates)||[],border:"",stripe:"","max-height":"300",style:{width:"100%"},onCurrentChange:A,"highlight-current-row":""},{default:e.withCtx(()=>[e.createVNode($,{type:"index",label:"序号",width:"60"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.value,X=>(e.openBlock(),e.createBlock($,{key:X.prop,label:X.label,prop:X.prop,"min-width":X.minWidth||160},{default:e.withCtx(({row:re})=>[X.label==="证书附件"||X.prop==="证书附件"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[c(re==null?void 0:re[X.prop]).length>0?(e.openBlock(),e.createBlock(le,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:e.withModifiers(ve=>u({row:re,prop:X.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(e.openBlock(),e.createElementBlock("span",Vd,"-"))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString((re==null?void 0:re[X.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128))]),_:1},8,["data"])])):e.createCommentVNode("",!0)])]}),footer:e.withCtx(()=>[e.createElementVNode("div",Fd,[e.createVNode(_e,{id:"themeBorderButton",onClick:S},{default:e.withCtx(()=>R[5]||(R[5]=[e.createTextVNode("取消")])),_:1,__:[5]}),e.createVNode(_e,{class:"ok-button",id:"themeButton",onClick:b},{default:e.withCtx(()=>R[6]||(R[6]=[e.createTextVNode("提交已处理")])),_:1,__:[6]})])]),_:1},8,["visible"])}}},jd=nr._export_sfc(Pd,[["__scopeId","data-v-89e0489c"]]),Hd={class:"ocr-preview-content"},Ud={class:"ocr-preview-tip"},qd={class:"ocr-preview-table"},Wd={style:{display:"flex","align-items":"center",gap:"8px"}},Kd={class:"dialog-footer"},Gd={__name:"OCRResultPreviewDialog",props:{visible:{type:Boolean,default:!1},ocrPreviewData:{type:Array,default:()=>[]},ocrPreviewColumns:{type:Array,default:()=>[]},ocrSelectedFields:{type:Array,default:()=>[]}},emits:["update:visible","update:ocrPreviewData","update:ocrSelectedFields","confirm","fieldChange"],setup(a,{emit:l}){const n=a,r=l,i=e.ref([]),t=e.ref([]),f=e.ref([]);e.watch(()=>n.visible,M=>{M&&(i.value=JSON.parse(JSON.stringify(n.ocrPreviewData)),t.value=JSON.parse(JSON.stringify(n.ocrPreviewColumns)),f.value=[...n.ocrSelectedFields])});const c=(M,w)=>{const G=[...f.value];if(w)G.includes(M)||G.push(M);else{const A=G.indexOf(M);A>-1&&G.splice(A,1)}f.value=G,r("update:ocrSelectedFields",G)},u=(M,w,G)=>{r("fieldChange",{rowIndex:M,prop:w,value:G})},m=()=>{r("update:ocrPreviewData",i.value),r("confirm",i.value),r("update:visible",!1)},g=()=>{r("update:visible",!1)},_=M=>typeof M!="number"?"-":`${(M*100).toFixed(1)}%`,p=M=>typeof M!="number"?"#606266":M>=.9?"#67c23a":M>=.7?"#e6a23c":"#f56c6c";return(M,w)=>{const G=e.resolveComponent("el-alert"),A=e.resolveComponent("el-table-column"),P=e.resolveComponent("el-checkbox"),O=e.resolveComponent("el-input"),E=e.resolveComponent("el-table"),x=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(Mr.ssDialog,{title:"OCR识别结果预览",visible:a.visible,onBeforeDestroy:g,width:"90%",style:{maxWidth:"1200px"}},{default:e.withCtx(()=>[e.createElementVNode("div",Hd,[e.createElementVNode("div",Ud,[e.createVNode(G,{title:"请核对识别结果。系统将按 编号+名称+制造厂 规则匹配并替换;未唯一命中但有编号的,将进入候选选择;无编号则直接新增。",type:"info",closable:!1,"show-icon":""})]),e.createElementVNode("div",qd,[e.createVNode(E,{data:i.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(A,{type:"index",label:"序号",width:"60",fixed:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,S=>(e.openBlock(),e.createBlock(A,{key:S.prop,prop:S.prop,"min-width":S.minWidth||230,"class-name":S.isAccuracy?"accuracy-column":""},{header:e.withCtx(()=>[e.createElementVNode("div",Wd,[S.isAccuracy?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(P,{key:0,"model-value":f.value.includes(S.prop),onChange:b=>c(S.prop,b),onClick:w[0]||(w[0]=e.withModifiers(()=>{},["stop"]))},null,8,["model-value","onChange"])),e.createElementVNode("span",null,e.toDisplayString(S.label),1)])]),default:e.withCtx(({row:b,$index:C})=>[S.isAccuracy?(e.openBlock(),e.createElementBlock("span",{key:0,class:"accuracy-value",style:e.normalizeStyle({color:p(b[S.prop]),fontWeight:500})},e.toDisplayString(_(b[S.prop])),5)):(e.openBlock(),e.createBlock(O,{key:1,modelValue:b[S.prop],"onUpdate:modelValue":R=>b[S.prop]=R,size:"small",placeholder:"请输入"+S.label,onChange:R=>u(C,S.prop,R)},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"]))]),_:2},1032,["prop","min-width","class-name"]))),128))]),_:1},8,["data"])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",Kd,[e.createVNode(x,{onClick:g,id:"themeBorderButton"},{default:e.withCtx(()=>w[1]||(w[1]=[e.createTextVNode("取消")])),_:1,__:[1]}),e.createVNode(x,{class:"ok-button",onClick:m,id:"themeButton"},{default:e.withCtx(()=>w[2]||(w[2]=[e.createTextVNode("确认")])),_:1,__:[2]})])]),_:1},8,["visible"])}}},Yd=nr._export_sfc(Gd,[["__scopeId","data-v-df66eb1f"]]),Xn=a=>{var r;let l=a;(l==null?void 0:l[0])==="("&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1));let n=(r=ie.analyzeSplitToContent(l,","))==null?void 0:r.map(i=>((i==null?void 0:i[(i==null?void 0:i.length)-1])===","&&(i=i==null?void 0:i.slice(0,(i==null?void 0:i.length)-1)),vn(i)));return n=n==null?void 0:n.join(","),n};function tc(a){return Xa.axios.post("http://222.92.178.198:8000/api/v1/excel-chat",a)}function Jd(a){return Xa.axios.get(a,{responseType:"blob"})}let rr="$R",Xd="http://222.92.178.198:55002/AIRobot",vt=["Form","BarChart","FormText","FormBlock"];const sc=a=>{var n,r;let l=(r=ie.analyzeSplitToContent(a,"@"))==null?void 0:r[((n=ie.analyzeSplitToContent(a,"@"))==null?void 0:n.length)-1];return!!(vt!=null&&vt.some(i=>l==null?void 0:l.includes(i)))},Zd=async(a,l,n,r)=>{var t,f,c,u,m,g,_,p,M,w,G,A,P,O,E,x,S,b,C,R,$,le,ee,_e,pe,H,F,X,re,ve,Re,ce,B,te,q,xe,Me,$e,Qe,_a,oe,sa;let i=a;if(sc(i==null?void 0:i[0])){let de=ip(i),ea=(t=de==null?void 0:de.filter)==null?void 0:t.join(","),Ae=[];(f=de==null?void 0:de.hideContents)==null||f.forEach(Ge=>{if(Ge){const wa=Ge;wa&&Ae.push(`(HideGroup=Yes, prop=${wa})`)}});let ue=(c=de==null?void 0:de.formContents)==null?void 0:c.filter(Ge=>{var wa;return(wa=Ge==null?void 0:Ge.filters)==null?void 0:wa.includes("@ShowHide=Hide")});(ue==null?void 0:ue.length)>0&&(ue==null||ue.forEach(Ge=>{if(Ge){const wa=Ge==null?void 0:Ge.prop;wa&&Ae.push(`(Hide=Yes, prop=${wa})`)}}));let he=(r==null?void 0:r.menuFilter)??[];return Array.isArray(he)||(he=he?[he]:[]),he=[...he,...Ae],{key:"Form",name:de==null?void 0:de.groupName,value:de==null?void 0:de.formContents,contents:Array.isArray((u=de==null?void 0:de.contents)==null?void 0:u[0])&&((g=(m=de==null?void 0:de.contents)==null?void 0:m[0])!=null&&g.every(Ge=>Array.isArray(Ge)))?[(p=(_=de==null?void 0:de.contents)==null?void 0:_[0])==null?void 0:p[n]]:[de==null?void 0:de.contents],filter:"("+ea+")",menuFilter:he,groupFilter:de==null?void 0:de.groupFilters}}else if(((M=i==null?void 0:i[0])==null?void 0:M[0])!=="&"){let de=dc(i,r),ea="";(w=de==null?void 0:de.tableFilter)!=null&&w.includes(rr)?de.tableFilter=(G=de==null?void 0:de.tableFilter)==null?void 0:G.replace(rr,""):ea=(O=(P=(A=de==null?void 0:de.tableFilter)==null?void 0:A.replace("(",rr))==null?void 0:P.split(rr))==null?void 0:O[0];let Ae=[];de!=null&&de.tableFilter&&((E=ie.analyzeSplitToContent(de==null?void 0:de.tableFilter,","))==null||E.forEach(he=>{he!=null&&he.includes("@ShowHide=Hide")&&Ae.push("HideGroup=Yes")}));let ue=(r==null?void 0:r.menuFilter)??[];return Array.isArray(ue)||(ue=ue?[ue]:[]),ue=[...ue,...Ae],{key:"Table",name:de==null?void 0:de.groupName,tableColumns:de==null?void 0:de.tableColumns,assistColumn:de==null?void 0:de.columns,tableContents:l===1?de==null?void 0:de.tableContents:(S=(x=de==null?void 0:de.tableContents)==null?void 0:x[n])!=null&&S.every(he=>Array.isArray(he))?(b=de==null?void 0:de.tableContents)==null?void 0:b[n]:[(C=de==null?void 0:de.tableContents)==null?void 0:C[n]],filter:de==null?void 0:de.tableFilter,menuFilter:ue,quotePage:ea!==""?((le=($=(R=ea==null?void 0:ea.replace("*",rr))==null?void 0:R.split(rr))==null?void 0:$[0])==null?void 0:le.replaceAll(":","/"))??"":void 0,quoteGroup:ea!==""?((re=(X=(F=(H=(pe=(_e=(ee=ea==null?void 0:ea.replace("*",rr))==null?void 0:ee.split(rr))==null?void 0:_e[1])==null?void 0:pe.replace("{",rr))==null?void 0:H.split(rr))==null?void 0:F[0])==null?void 0:X.split(":"))==null?void 0:re.filter(he=>he!==""))??[]:[],relatedQuotes:de==null?void 0:de.relatedQuotes,fatherSyncContents:de==null?void 0:de.fatherSyncContents,sonSyncContents:de==null?void 0:de.sonSyncContents,calculatorFilters:(de==null?void 0:de.calculatorFilters)??[]}}else{let de=[{label:"序号",prop:"sort"},{label:"函数名称",prop:"函数名称"},{label:"函数关联名",prop:"函数关联名"},{label:"函数参数",prop:"函数参数"},{label:"输出值",prop:"输出值"},{label:"导入文件",prop:"导入文件",formType:"Upload"}],ea=i==null?void 0:i[0];ea=ea==null?void 0:ea.slice(1,ea==null?void 0:ea.length),ea=ie.analyzeSplitToContent(ea,":"),ea=ea==null?void 0:ea[(ea==null?void 0:ea.length)-1];let Ae=[];Ae.push("1");let ue=ea==null?void 0:ea.replace("(",rr);ue=(ve=ue==null?void 0:ue.split(rr))==null?void 0:ve[0],Ae.push(ue);let he=ea==null?void 0:ea.replace("(",rr);if(he=(Re=he==null?void 0:he.split(rr))==null?void 0:Re[1],he=(B=(ce=he==null?void 0:he.replace(")",rr))==null?void 0:ce.split(rr))==null?void 0:B[0],(q=(te=he==null?void 0:he.replace(",",rr))==null?void 0:te.split(rr))==null||q.forEach(Ge=>{Ae.push(Ge)}),Ae.push(""),Ae.push(""),(xe=Ae==null?void 0:Ae[2])!=null&&xe.includes(".xlsx")||(Me=Ae==null?void 0:Ae[2])!=null&&Me.includes(".xls"))try{let Ge=Xd+"/"+(Ae==null?void 0:Ae[2]),wa=await Jd(Ge),Ia=`生成js函数名称为${Ae==null?void 0:Ae[1]}的函数,规则为:`+(Ae==null?void 0:Ae[3])+"。根据上述描述获取对应的总结性详细可运行js函数,不需要任何注释。";if((wa==null?void 0:wa.status)===200){let U=wa==null?void 0:wa.data;const V=new FormData;V.append("file",U,Ae==null?void 0:Ae[2]),V.append("query",Ia);let Q=await tc(V);Q=(_a=(Qe=($e=Q==null?void 0:Q.data)==null?void 0:$e.data)==null?void 0:Qe.response)==null?void 0:_a.replace("generateResult",Ae==null?void 0:Ae[1]),Ae[Ae.length-2]=Q,Ae[Ae.length-1]=[{name:(sa=(oe=Ae==null?void 0:Ae[2])==null?void 0:oe.split("."))==null?void 0:sa[0],url:Ge}]}}catch{}return Ae=[Ae],{key:"Method",name:[],tableContents:Ae,tableColumns:de}}},Qd=(a,l)=>{var r,i,t,f,c,u,m,g,_,p,M,w,G,A,P,O,E,x,S,b,C,R,$,le,ee,_e,pe,H,F,X,re,ve,Re,ce,B,te,q,xe,Me,$e,Qe,_a,oe,sa,de,ea,Ae;let n=(i=(r=ie.analyzeSplitToContent(a,"="))==null?void 0:r.filter(ue=>ue!=="="))==null?void 0:i.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));if(sc(n==null?void 0:n[1])){let ue=np(n),he=(c=(f=(t=ue==null?void 0:ue.filter)==null?void 0:t.replace("@",rr))==null?void 0:f.split(rr))==null?void 0:c[0],Ge=(g=(m=(u=ue==null?void 0:ue.filter)==null?void 0:u.replace("(",rr))==null?void 0:m.split(rr))==null?void 0:g[1],wa=(M=(p=(_=ue==null?void 0:ue.filter)==null?void 0:_.replace("(",rr))==null?void 0:p.split(rr))==null?void 0:M[0];wa="@"+((w=wa==null?void 0:wa.split("@"))==null?void 0:w[1]),Ge=Ge==null?void 0:Ge.slice(0,(Ge==null?void 0:Ge.length)-1),Ge=(A=(G=ie.analyzeSplitToContent(Ge,","))==null?void 0:G.map(U=>(U=wa+U,U)))==null?void 0:A.join("");let Ia=he+"("+Ge+")";return{key:"Form",name:ue==null?void 0:ue.group,filter:Ia,formPage:((E=(O=(P=he==null?void 0:he.replace("*",rr))==null?void 0:P.split(rr))==null?void 0:O[0])==null?void 0:E.replaceAll(":","/"))??"",formGroup:((le=($=(R=(C=(b=(S=(x=he==null?void 0:he.replace("*",rr))==null?void 0:x.split(rr))==null?void 0:S[1])==null?void 0:b.replace("{",rr))==null?void 0:C.split(rr))==null?void 0:R[0])==null?void 0:$.split(":"))==null?void 0:le.filter(U=>U!==""))??[],value:[],menuFilter:l==null?void 0:l.menuFilter}}else{let ue=n==null?void 0:n.filter((Q,fe)=>fe!==0);ue=ue==null?void 0:ue.join("");let he=dc(n,l,ue),Ge="";(ee=he==null?void 0:he.tableFilter)!=null&&ee.includes(rr)?he.tableFilter=(_e=he==null?void 0:he.tableFilter)==null?void 0:_e.replace(rr,""):Ge=(F=(H=(pe=he==null?void 0:he.tableFilter)==null?void 0:pe.replace("(",rr))==null?void 0:H.split(rr))==null?void 0:F[0];let wa=(ve=(re=(X=he==null?void 0:he.tableFilter)==null?void 0:X.replace("(",rr))==null?void 0:re.split(rr))==null?void 0:ve[0];wa=[{menus:(ce=(Re=wa==null?void 0:wa.split("*"))==null?void 0:Re[0])==null?void 0:ce.replaceAll(":","/"),groups:((te=(B=wa==null?void 0:wa.split("*"))==null?void 0:B[1])==null?void 0:te.split(":"))??[]}];let Ia=(Me=(xe=(q=he==null?void 0:he.tableFilter)==null?void 0:q.replace("(",rr))==null?void 0:xe.split(rr))==null?void 0:Me[1];(Ia==null?void 0:Ia[(Ia==null?void 0:Ia.length)-1])===")"&&(Ia=Ia==null?void 0:Ia.slice(0,(Ia==null?void 0:Ia.length)-1));let U=[];he!=null&&he.tableFilter&&(($e=ie.analyzeSplitToContent(he==null?void 0:he.tableFilter,","))==null||$e.forEach(Q=>{Q!=null&&Q.includes("@ShowHide=Hide")&&U.push("HideGroup=Yes")}));let V=(l==null?void 0:l.menuFilter)??[];return Array.isArray(V)||(V=V?[V]:[]),V=[...V,...U],{key:"Table",name:he==null?void 0:he.groupName,filter:he==null?void 0:he.tableFilter,tableColumns:he==null?void 0:he.tableColumns,quotePage:Ge!==""?((oe=(_a=(Qe=Ge==null?void 0:Ge.replace("*",rr))==null?void 0:Qe.split(rr))==null?void 0:_a[0])==null?void 0:oe.replaceAll(":","/"))??"":void 0,quoteGroup:Ge!==""?((Ae=(ea=(de=(sa=Ge==null?void 0:Ge.replace("*",rr))==null?void 0:sa.split(rr))==null?void 0:de[1])==null?void 0:ea.split(":"))==null?void 0:Ae.filter(Q=>Q!==""))??[]:[],menuFilter:V,relatedQuotes:wa,fatherSyncContents:(he==null?void 0:he.fatherSyncContents)??[],sonSyncContents:(he==null?void 0:he.sonSyncContents)??[],calculatorFilters:(he==null?void 0:he.calculatorFilters)??[]}}},ep=async(a,l)=>{let n=[],r=l==null?void 0:l.length;return l=l==null?void 0:l.map(async(i,t)=>{let f=[];i=i==null?void 0:i.map(async c=>{var u,m;if(f.push(c),((u=ie.analyzeSplitToContent(a,"="))==null?void 0:u.length)<=2){if(((m=ie.analyzeSplitToContent(a,"="))==null?void 0:m.length)!==0){const g=await Zd(ie.analyzeSplitToContent(a,"="),r,t,c);f.push(g)}}else f.push(Qd(a,c))}),await Promise.all(i),n.push(f)}),await Promise.all(l),n};let Ui="/",ap="$",Sn="$R";const cc=a=>{var n,r,i;let l="";if((a==null?void 0:a.length)>1){let t=a==null?void 0:a.filter((f,c)=>c!==0);t=t==null?void 0:t.join(""),t=ie.analyzerSplitToWord(t,")"),(t==null?void 0:t.length)!==1?(t==null?void 0:t[(t==null?void 0:t.length)-1])===")"?t=t==null?void 0:t.join(""):t=(n=t==null?void 0:t.filter((f,c)=>c!==(t==null?void 0:t.length)-1))==null?void 0:n.join(""):t=t==null?void 0:t[0],l="("+t,((i=a==null?void 0:a[0])==null?void 0:i[((r=a==null?void 0:a[0])==null?void 0:r.length)-2])==="@"&&(l="@"+l)}return{filter:l}},uc=(a,l=[])=>{let n=(a==null?void 0:a.map(t=>{var f,c;return(c=t==null?void 0:t.key)==null?void 0:c.slice(1,(f=t==null?void 0:t.key)==null?void 0:f.length)}))??[],r=[];n==null||n.forEach(t=>{var f,c,u,m,g,_,p,M,w,G,A,P,O,E,x,S,b,C,R,$,le,ee,_e;if(t===""&&(t="算法库:通用算法"),t!=null&&t.includes(ap)){let pe="",H=!0,F=ie.analyzerSplitToWord(t,"(");(F==null?void 0:F.length)>1&&(pe="("+((f=ie.analyzerSplitToWord(F==null?void 0:F[1],")"))==null?void 0:f[0]),((u=F==null?void 0:F[0])==null?void 0:u[((c=F==null?void 0:F[0])==null?void 0:c.length)-2])==="@"&&(pe="@"+pe));let X=t;X=X==null?void 0:X.replace(pe,""),pe=vn(pe),pe=(m=ie.analyzeSplitToContent(pe,","))==null?void 0:m.map(te=>((te==null?void 0:te[(te==null?void 0:te.length)-1])===","&&(te=te==null?void 0:te.slice(0,(te==null?void 0:te.length)-1)),te)),pe!=null&&pe.includes("@ShowHide=Hide")&&(H=!1);let re=(g=X==null?void 0:X.replace("$",Sn))==null?void 0:g.split(Sn),ve=re==null?void 0:re[1],Re=re==null?void 0:re[0];Re!=null&&Re.includes("[")&&(Re=(p=(_=Re==null?void 0:Re.replace("[",Sn))==null?void 0:_.split(Sn))==null?void 0:p[0],ve=ve+":["+((G=(w=(M=re==null?void 0:re[0])==null?void 0:M.replace("[",Sn))==null?void 0:w.split(Sn))==null?void 0:G[1])),Re=(P=(A=Re==null?void 0:Re.replaceAll(":","/"))==null?void 0:A.replaceAll("{",""))==null?void 0:P.replaceAll("}",""),(Re==null?void 0:Re[(Re==null?void 0:Re.length)-1])!=="/"&&(Re=Re+"/"),ve=((O=Re==null?void 0:Re.split("/"))==null?void 0:O[0])+":"+ve;let B="";if(!(ve!=null&&ve.includes("[")))B=ve==null?void 0:ve.replaceAll(":","/"),r==null||r.push({path:B,isShow:H,filter:pe,fatherPath:Re});else{let te=(x=(E=ve==null?void 0:ve.replace("[",Sn))==null?void 0:E.split(Sn))==null?void 0:x[1];te=te==null?void 0:te.slice(0,(te==null?void 0:te.length)-1),te=(S=ie.analyzeSplitToContent(te,","))==null?void 0:S.map(q=>((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)),q)),te==null||te.forEach(q=>{var xe,Me;B=((Me=(xe=ve==null?void 0:ve.replace("[",Sn))==null?void 0:xe.split(Sn))==null?void 0:Me[0])+q,B=B==null?void 0:B.replaceAll(":","/"),r==null||r.push({path:B,isShow:H,filter:pe,fatherPath:Re})})}}else{let pe="",H=!0,F=ie.analyzerSplitToWord(t,"(");(F==null?void 0:F.length)>1&&(pe=(b=cc(F))==null?void 0:b.filter);let X=t;if(X=X==null?void 0:X.replace(pe,""),(pe==null?void 0:pe[0])==="("){pe=pe==null?void 0:pe.slice(1,(pe==null?void 0:pe.length)-1);let ve=[];(C=ie.analyzeSplitToContent(pe,","))==null||C.forEach(Re=>{(Re==null?void 0:Re[(Re==null?void 0:Re.length)-1])===","&&(Re=Re==null?void 0:Re.slice(0,(Re==null?void 0:Re.length)-1)),(Re==null?void 0:Re[0])==="("&&(Re=Re==null?void 0:Re.slice(1,(Re==null?void 0:Re.length)-1)),(Re==null?void 0:Re[0])!=="@"&&(Re="@"+Re),ve.push(vn(Re))}),pe=ve==null?void 0:ve.join(",")}else pe=vn(pe);pe=(R=ie.analyzeSplitToContent(pe,","))==null?void 0:R.map(ve=>((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)),pe!=null&&pe.includes("@ShowHide=Hide")&&(H=!1),(X==null?void 0:X[(X==null?void 0:X.length)-1])==="}"&&(X=X+":"),X=($=X==null?void 0:X.replaceAll("{",""))==null?void 0:$.replaceAll("}","");let re="";if(X!=null&&X.includes("[")){let ve=(le=X==null?void 0:X.replace("[",Sn))==null?void 0:le.split(Sn),Re=ve==null?void 0:ve[1];Re=Re==null?void 0:Re.slice(0,(Re==null?void 0:Re.length)-1),(_e=(ee=ie.analyzeSplitToContent(Re,","))==null?void 0:ee.map(ce=>((ce==null?void 0:ce[(ce==null?void 0:ce.length)-1])===","&&(ce=ce==null?void 0:ce.slice(0,(ce==null?void 0:ce.length)-1)),ce)))==null||_e.forEach(ce=>{re=(ve==null?void 0:ve[0])+ce,re=re==null?void 0:re.replaceAll(":","/"),r==null||r.push({path:re,isShow:H,filter:pe})})}else re=X==null?void 0:X.replaceAll(":","/"),r==null||r.push({path:re,isShow:H,filter:pe})}});let i=z.cloneDeep(r);return(l==null?void 0:l.length)>0&&(i=l),i=i==null?void 0:i.filter(t=>{var f,c,u,m;return!(t!=null&&t.fatherPath)&&((c=(f=t==null?void 0:t.path)==null?void 0:f.split(Ui))==null?void 0:c.length)>1&&((m=(u=t==null?void 0:t.path)==null?void 0:u.split(Ui))==null?void 0:m[1])===""}),i=i==null?void 0:i.map(t=>{var f;return t.path=(f=t.path)==null?void 0:f.replace(Ui,""),t.path}),(i==null?void 0:i.length)>0&&(r=r==null?void 0:r.map(t=>{var c,u,m,g,_,p,M;let f=i==null?void 0:i.find(w=>{var G;return(G=t==null?void 0:t.path)==null?void 0:G.includes(w)});return!(t!=null&&t.fatherPath)&&f&&!((c=t==null?void 0:t.path)!=null&&c.includes(Ui))&&!(i!=null&&i.find(w=>(t==null?void 0:t.path)===w))&&(t.path=f+Ui+((M=(m=(u=t==null?void 0:t.path)==null?void 0:u.split(f))==null?void 0:m[1])==null?void 0:M.slice(1,(p=(_=(g=t==null?void 0:t.path)==null?void 0:g.split(f))==null?void 0:_[1])==null?void 0:p.length))),t})),r},lp=(a,l)=>uc([{key:a}],l),rp=async(a,l)=>{const n=[],r=lp(a==null?void 0:a.key,l);return r&&(r==null?void 0:r.length)>0&&(r==null||r.forEach(t=>{n.push([{key:"path",value:t==null?void 0:t.path,parentPath:(t==null?void 0:t.parentPath)??"",isShow:t==null?void 0:t.isShow,menuFilter:t==null?void 0:t.filter}])})),await ep(a==null?void 0:a.value,n)};let bl="$R",Wi="[Any]";const np=a=>{var f,c;let l={},r=a==null?void 0:a[0];(r==null?void 0:r[0])==="*"&&(r=r==null?void 0:r.slice(1,r==null?void 0:r.length)),r=r==null?void 0:r.split(":"),l.group=r;let i=a==null?void 0:a[1],t;return i!=null&&i.includes("{")?t=(c=(f=i==null?void 0:i.replaceAll("{",""))==null?void 0:f.replaceAll("}",""))==null?void 0:c.replaceAll(Wi,""):t=i==null?void 0:i.replaceAll(Wi,""),(t==null?void 0:t[0])==="$"&&(t=t==null?void 0:t.slice(1,t==null?void 0:t.length)),l.filter=t,l},ip=a=>{var p,M,w,G,A,P;let l=[],n=[],r=[],i=[],t=[],f=[],c="",u=a==null?void 0:a[0];(u==null?void 0:u[0])==="*"&&(u=u==null?void 0:u.slice(1,u==null?void 0:u.length));let m=ie.analyzeSplitToContent(u,":");(p=m==null?void 0:m.filter(O=>(O==null?void 0:O[0])!=="{"&&(O==null?void 0:O[0])!=="["))==null||p.forEach(O=>{var x,S,b;(O==null?void 0:O[(O==null?void 0:O.length)-1])===":"&&(O=O==null?void 0:O.slice(0,(O==null?void 0:O.length)-1));let E=ie.analyzerSplitToWord(O,"(");if((E==null?void 0:E.length)>1){c=(x=cc(E))==null?void 0:x.filter;let C=O==null?void 0:O.replace(c,"");if(r.push(C),(c==null?void 0:c[0])==="("){c=c==null?void 0:c.slice(1,(c==null?void 0:c.length)-1);let R=[];(S=ie.analyzeSplitToContent(c,","))==null||S.forEach($=>{($==null?void 0:$[($==null?void 0:$.length)-1])===","&&($=$==null?void 0:$.slice(0,($==null?void 0:$.length)-1)),($==null?void 0:$[0])==="("&&($=$==null?void 0:$.slice(1,($==null?void 0:$.length)-1)),($==null?void 0:$[0])!=="@"&&($="@"+$),R.push(vn($))}),c=R==null?void 0:R.join(",")}else c=vn(c);c=(b=ie.analyzeSplitToContent(c,","))==null?void 0:b.map(R=>((R==null?void 0:R[(R==null?void 0:R.length)-1])===","&&(R=R==null?void 0:R.slice(0,(R==null?void 0:R.length)-1)),R)),c!=null&&c.includes("@ShowHide=Hide")&&f.push(C),i=[...i,...c]}else r.push(E==null?void 0:E[0])});let g=(M=m==null?void 0:m.filter(O=>(O==null?void 0:O[0])==="{"))==null?void 0:M[0],_=(w=m==null?void 0:m.filter(O=>(O==null?void 0:O[0])==="["))==null?void 0:w[0];return l=zi(_??""),l!=null&&l.every(O=>Array.isArray(O))&&(l=[l]),(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)),t=(G=ie.analyzeSplitToContent(g,"@"))==null?void 0:G[1],t="@"+t,g=g==null?void 0:g.replace(t,""),t=vn(t),t=(A=ie.analyzeSplitToContent(t,","))==null?void 0:A.map(O=>((O==null?void 0:O[(O==null?void 0:O.length)-1])===","&&(O=O==null?void 0:O.slice(0,(O==null?void 0:O.length)-1)),O)),(g==null?void 0:g[0])==="{"&&(g=g==null?void 0:g.slice(1,(g==null?void 0:g.length)-1)),g=(P=ie.analyzeSplitToContent(g,","))==null?void 0:P.map(O=>((O==null?void 0:O[(O==null?void 0:O.length)-1])===","&&(O=O==null?void 0:O.slice(0,(O==null?void 0:O.length)-1)),O)),g==null||g.forEach((O,E)=>{var re,ve,Re,ce,B,te,q,xe,Me,$e,Qe,_a,oe,sa,de,ea,Ae,ue,he,Ge,wa,Ia,U,V,Q,fe,me,ua,ta,je,ba,Ta,Ee,Pa,Ea,ia;let x=[],S=[],b=[],C="",R="",$=!1,le,ee=[],_e=[],pe=[],H="Input",F=[],X=[];if(O!=null&&O.includes("==")){le=(re=O==null?void 0:O.split("=="))==null?void 0:re[0];let Ba=(ve=O==null?void 0:O.split("=="))==null?void 0:ve[1],Ce="";((Re=ie.analyzeSplitToContent(Ba,"$"))==null?void 0:Re.length)>1&&((ce=ie.analyzeSplitToContent(Ba,"$"))==null?void 0:ce[0])!=="$"?(Ce=(B=ie.analyzeSplitToContent(Ba,"$"))==null?void 0:B[0],Ce=Ce==null?void 0:Ce.slice(0,(Ce==null?void 0:Ce.length)-1)):((te=ie.analyzeSplitToContent(Ba,"}"))==null?void 0:te.length)>1&&(Ce=(q=ie.analyzeSplitToContent(Ba,"}"))==null?void 0:q[1]);let ka=Ba==null?void 0:Ba.replace(Ce,"");if((Ce==null?void 0:Ce[0])==="("&&(Ce=Ce==null?void 0:Ce.slice(1,(Ce==null?void 0:Ce.length)-1)),(xe=ie.analyzeSplitToContent(Ce,","))==null||xe.forEach(Je=>{var J;(Je==null?void 0:Je[0])!=="@"&&(Je="@"+Je),(Je==null?void 0:Je[(Je==null?void 0:Je.length)-1])===","&&(Je=Je==null?void 0:Je.slice(0,(Je==null?void 0:Je.length)-1));let K=vn(Je);(J=ie.analyzeSplitToContent(K,","))==null||J.forEach(Fe=>{(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)),x.push(Fe)})}),(ka==null?void 0:ka[0])==="$"&&(ka=ka==null?void 0:ka.slice(1,ka==null?void 0:ka.length)),ka!=null&&ka.includes("&")){let Je=ka;if((ka==null?void 0:ka[0])==="("){let J=(Me=ie.analyzeSplitToContent(ka,"&"))==null?void 0:Me.map(Fe=>((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)),Fe));Je=J==null?void 0:J[1],J=J==null?void 0:J[0],(J==null?void 0:J[0])!=="@"&&(J="@"+J),C=vn(J)}(Je==null?void 0:Je[0])==="&"&&(Je=Je==null?void 0:Je.slice(1,Je==null?void 0:Je.length)),R=(Qe=($e=Je==null?void 0:Je.replace("(",bl))==null?void 0:$e.split(bl))==null?void 0:Qe[0],b=(oe=(_a=Je==null?void 0:Je.replace("(",bl))==null?void 0:_a.split(bl))==null?void 0:oe[1],b=[b==null?void 0:b.slice(0,(b==null?void 0:b.length)-1)],H="Input"}else{let Je=(sa=ka==null?void 0:ka.replace("*",bl))==null?void 0:sa.split(bl);ee=(de=Je==null?void 0:Je[0])==null?void 0:de.split(":"),_e=(Ae=(ea=ie.analyzeSplitToContent(Je==null?void 0:Je[1],":"))==null?void 0:ea.filter((K,J)=>{var Fe,We;return J!==((We=(Fe=Je==null?void 0:Je[1])==null?void 0:Fe.split(":"))==null?void 0:We.length)-1}))==null?void 0:Ae.map(K=>((K==null?void 0:K[(K==null?void 0:K.length)-1])===":"&&(K=K==null?void 0:K.slice(0,(K==null?void 0:K.length)-1)),K)),pe=(he=(ue=ie.analyzeSplitToContent(Je==null?void 0:Je[1],":"))==null?void 0:ue.filter((K,J)=>{var Fe,We;return J===((We=(Fe=Je==null?void 0:Je[1])==null?void 0:Fe.split(":"))==null?void 0:We.length)-1}))==null?void 0:he[0],pe=(wa=(Ge=pe==null?void 0:pe.replaceAll("{",""))==null?void 0:Ge.replaceAll("}",""))==null?void 0:wa.split(":"),H="Select"}}else if(((Ia=ie.analyzeSplitToContent(O,"="))==null?void 0:Ia.length)>1)if(H="Select",le=(V=(U=O==null?void 0:O.replace("=",bl))==null?void 0:U.split(bl))==null?void 0:V[0],!(O!=null&&O.includes("If")))F=(fe=(Q=O==null?void 0:O.replace("=",bl))==null?void 0:Q.split(bl))==null?void 0:fe[1],F=F==null?void 0:F.split("||");else{let Ba=(ua=(me=O==null?void 0:O.replace("=",bl))==null?void 0:me.split(bl))==null?void 0:ua[1];X=(ta=ie.analyzeSplitToContent(Ba,")"))==null?void 0:ta.filter(Ce=>!(Ce!=null&&Ce.includes("If"))),X=X==null?void 0:X.map(Ce=>((Ce==null?void 0:Ce[0])==="("&&(Ce=Ce==null?void 0:Ce.slice(1,(Ce==null?void 0:Ce.length)-1)),Ce=Ce==null?void 0:Ce.split("||"),Ce)),S=(je=ie.analyzeSplitToContent(Ba,")"))==null?void 0:je.filter(Ce=>Ce==null?void 0:Ce.includes("If")),S=S==null?void 0:S.map(Ce=>((Ce==null?void 0:Ce[0])==="|"&&(Ce=Ce==null?void 0:Ce.slice(2,Ce==null?void 0:Ce.length)),(Ce==null?void 0:Ce[0])==="("&&(Ce=Ce==null?void 0:Ce.slice(1,(Ce==null?void 0:Ce.length)-1)),(Ce==null?void 0:Ce[0])!=="@"&&(Ce="@"+Ce),Ce))}else if(((ba=ie.analyzeSplitToContent(O,"@"))==null?void 0:ba.length)>1){le=(Ta=ie.analyzeSplitToContent(O,"@"))==null?void 0:Ta[0],(le==null?void 0:le[(le==null?void 0:le.length)-1])==="@"&&(le=le==null?void 0:le.slice(0,(le==null?void 0:le.length)-1));let Ba="@"+((Ee=ie.analyzeSplitToContent(O,"@"))==null?void 0:Ee[1]);Ba=vn(Ba),x=(Pa=ie.analyzeSplitToContent(Ba,","))==null?void 0:Pa.map(Ce=>((Ce==null?void 0:Ce[(Ce==null?void 0:Ce.length)-1])===","&&(Ce=Ce==null?void 0:Ce.slice(0,(Ce==null?void 0:Ce.length)-1)),Ce)),x!=null&&x.find(Ce=>Ce==null?void 0:Ce.includes("@Type"))&&(H=(ia=(Ea=x==null?void 0:x.find(Ce=>Ce==null?void 0:Ce.includes("@Type")))==null?void 0:Ea.split("="))==null?void 0:ia[1])}else le=O;x!=null&&x.includes("@ShowHide=Hide")&&($=!0),n.push({prop:le,label:le,value:"",menuPath:ee,groups:_e,columns:pe,type:H,options:F,allContents:X,filters:x,width:g==null?void 0:g.length,isFormColHidden:$,filterContents:S,functionName:R,functionRelatedWords:b,calculatorFilter:C})}),{groupName:r,groupFilters:i,formContents:n,contents:l,filter:t,hideContents:f}},zi=a=>{var r,i;if(!a||typeof a!="string")return[];let l=[],n=a.slice(1,(a==null?void 0:a.length)-1);if((n==null?void 0:n[0])!=="[")(r=ie.analyzeSplitToContent(n,","))==null||r.forEach(t=>{(t==null?void 0:t[(t==null?void 0:t.length)-1])===","&&(t=t.slice(0,(t==null?void 0:t.length)-1)),l.push(t??"")}),(n==null?void 0:n[(n==null?void 0:n.length)-1])===","&&l.push("");else{let t=[];(i=ie.analyzeSplitToContent(n,","))==null||i.forEach(f=>{(f==null?void 0:f[(f==null?void 0:f.length)-1])===","&&(f=f==null?void 0:f.slice(0,(f==null?void 0:f.length)-1)),t.push(zi(f))}),l=t}return l},wt=(a,l)=>{var P,O,E,x,S,b,C,R,$,le,ee,_e,pe,H,F,X,re,ve,Re,ce,B,te,q,xe,Me,$e,Qe,_a,oe,sa,de,ea,Ae,ue,he,Ge,wa,Ia,U,V,Q,fe,me,ua,ta,je,ba,Ta,Ee,Pa,Ea,ia,Ba,Ce,ka,Je,K,J,Fe,We,Na,da,Aa;let n,r=[],i=[],t=[],f=[],c=[],u=[],m=[],g="Input",_,p="",M="",w="",G=[],A="";if(a!=null&&a.includes("==")||a!=null&&a.includes("=")||a!=null&&a.includes("@")||a!=null&&a.includes("||"))if(n=(P=a==null?void 0:a.split("=="))==null?void 0:P[0],_=(O=a==null?void 0:a.split("=="))==null?void 0:O[0],g="Select",a!=null&&a.includes("=")&&!(a!=null&&a.includes("=="))&&!((S=(x=(E=a==null?void 0:a.replace("=",bl))==null?void 0:E.split(bl))==null?void 0:x[1])!=null&&S.includes("If")))if(n=ie.analyzeSplitToContent(a,"@"),n=n==null?void 0:n[0],(n==null?void 0:n[(n==null?void 0:n.length)-1])==="@"&&(n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1)),n=(C=(b=n==null?void 0:n.replace("=",bl))==null?void 0:b.split(bl))==null?void 0:C[0],n!=null&&n.includes("&")&&(n=($=(R=n==null?void 0:n.replace("&",bl))==null?void 0:R.split(bl))==null?void 0:$[0]),_=n,((le=ie.analyzeSplitToContent(a,"@"))==null?void 0:le.length)>1&&!(a!=null&&a.includes("||"))){if(!(a!=null&&a.includes("&"))){let Oe=(ee=ie.analyzeSplitToContent(a,"@"))==null?void 0:ee[1];if((Oe==null?void 0:Oe[0])!=="@"&&(Oe="@"+Oe),Oe=vn(Oe),M=Oe,M!=null&&M.includes("@Type")){let He=ie.analyzeSplitToContent(M,",");He=He==null?void 0:He.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)),He=(_e=He==null?void 0:He.filter(Ie=>Ie==null?void 0:Ie.includes("@Type")))==null?void 0:_e[0],g=(pe=He==null?void 0:He.split("="))==null?void 0:pe[1],g==="File"&&(g="Upload")}else g="Input"}}else if(a!=null&&a.includes("||")){let Oe=[];r=(X=(F=(H=ie.analyzeSplitToContent(a,"="))==null?void 0:H[1])==null?void 0:F.split("||"))==null?void 0:X.map(Ie=>{var we,ol,Sl,Ll;let Ve=Ie;if(Ve!=null&&Ve.includes("@")){let Vl="@"+((ol=(we=Ve==null?void 0:Ve.replace("@",bl))==null?void 0:we.split(bl))==null?void 0:ol[1]);Ve=(Ll=(Sl=Ve==null?void 0:Ve.replace("@",bl))==null?void 0:Sl.split(bl))==null?void 0:Ll[0],Vl=Xn(Vl),Oe.push(Vl)}return{label:Ve==null?void 0:Ve.replaceAll("'",""),value:Ve==null?void 0:Ve.replaceAll("'","")}}),(Oe==null?void 0:Oe.length)>0&&(M="("+(Oe==null?void 0:Oe.join("||"))+")");let He=(re=ie.analyzeSplitToContent(a,"="))==null?void 0:re[0];if(He!=null&&He.includes("@")){(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));let Ie=(ve=ie.analyzeSplitToContent(He,"@"))==null?void 0:ve[1];Ie="@"+Ie,Ie=Xn(Ie),M=M===""?Ie:Ie+","+M}}else g="Input",p=(B=(ce=(Re=a==null?void 0:a.replace("=",bl))==null?void 0:Re.split(bl))==null?void 0:ce[1])==null?void 0:B.replaceAll("'","");else if((q=(te=ie.analyzeSplitToContent(a,"="))==null?void 0:te[1])!=null&&q.includes("||")){let Oe=(xe=ie.analyzeSplitToContent(a,"="))==null?void 0:xe[0];if((Oe==null?void 0:Oe[(Oe==null?void 0:Oe.length)-1])==="="&&(Oe=Oe==null?void 0:Oe.slice(0,(Oe==null?void 0:Oe.length)-1)),Oe!=null&&Oe.includes("@")){let we=(Me=ie.analyzeSplitToContent(Oe,"@"))==null?void 0:Me[1];we="@"+we,M=Xn(we),n=(oe=($e=ie.analyzeSplitToContent(Oe,"@"))==null?void 0:$e[0])==null?void 0:oe.slice(0,((_a=(Qe=ie.analyzeSplitToContent(Oe,"@"))==null?void 0:Qe[0])==null?void 0:_a.length)-1),_=(Ae=(sa=ie.analyzeSplitToContent(Oe,"@"))==null?void 0:sa[0])==null?void 0:Ae.slice(0,((ea=(de=ie.analyzeSplitToContent(Oe,"@"))==null?void 0:de[0])==null?void 0:ea.length)-1)}else n=Oe,_=Oe;let He=(ue=ie.analyzeSplitToContent(a,"="))==null?void 0:ue[1];He=ie.analyzeSplitToContent(He,")");let Ie=He==null?void 0:He.filter(we=>!(we!=null&&we.includes("If")));Ie==null||Ie.forEach(we=>{(we==null?void 0:we[0])==="("&&(we=we==null?void 0:we.slice(1,(we==null?void 0:we.length)-1)),i==null||i.push(we==null?void 0:we.split("||"))});let Ve=He==null?void 0:He.filter(we=>we==null?void 0:we.includes("If"));Ve=Ve==null?void 0:Ve.map(we=>((we==null?void 0:we[0])==="|"&&(we==null?void 0:we[1])==="|"&&(we=we==null?void 0:we.slice(2,we==null?void 0:we.length)),(we==null?void 0:we[0])==="("&&(we=we==null?void 0:we.slice(1,(we==null?void 0:we.length)-1)),(we==null?void 0:we[0])!=="@"&&(we="@"+we),we)),t=Ve}else{let Oe=a==null?void 0:a.split("=="),He=(he=Oe==null?void 0:Oe.filter(Ie=>(Ie==null?void 0:Ie.includes("$"))&&(Ie==null?void 0:Ie[0])!=="{"))==null?void 0:he[0];if(He&&!(He!=null&&He.includes("&"))){let Ie=(wa=ie.analyzeSplitToContent(He,")"))==null?void 0:wa[((Ge=ie.analyzeSplitToContent(He,")"))==null?void 0:Ge.length)-1],Ve=(Ia=Ie==null?void 0:Ie.replace("*",bl))==null?void 0:Ia.split(bl),we=(Ve==null?void 0:Ve[0])===""?l==null?void 0:l.value:Ve==null?void 0:Ve[0];(we==null?void 0:we[0])==="("&&(we=(U=ie.analyzeSplitToContent(we,")"))==null?void 0:U[1]),we=(Q=(V=we==null?void 0:we.replaceAll("{",""))==null?void 0:V.replaceAll("}",""))==null?void 0:Q.replaceAll(Wi,""),(we==null?void 0:we[0])==="$"&&(we=(fe=we==null?void 0:we.slice(1,we==null?void 0:we.length))==null?void 0:fe.replaceAll(":","/")),f=we==null?void 0:we.split("/");let ol=(ua=(me=Ve==null?void 0:Ve[1])==null?void 0:me.replace("{",bl))==null?void 0:ua.split(bl),Sl=ol==null?void 0:ol[0];(Sl==null?void 0:Sl[(Sl==null?void 0:Sl.length)-1])===":"&&(Sl=Sl==null?void 0:Sl.slice(0,(Sl==null?void 0:Sl.length)-1)),c=Sl==null?void 0:Sl.split(":"),u=(Ta=(ba=(je=(ta=ol==null?void 0:ol[1])==null?void 0:ta.replace("}",bl))==null?void 0:je.split(bl))==null?void 0:ba[0])==null?void 0:Ta.split(":");let Ll="";((Ee=ie.analyzeSplitToContent(He,")"))==null?void 0:Ee.length)>1&&(Ll=(Pa=ie.analyzeSplitToContent(He,")"))==null?void 0:Pa[0]),Ll&&Ll!==""&&((Ll==null?void 0:Ll[0])!=="@"&&(Ll="@"+Ll),M=Xn(Ll))}if(Oe!=null&&Oe.some(Ie=>Ie==null?void 0:Ie.includes("&"))){let Ie=(Ea=Oe==null?void 0:Oe.filter(ol=>ol==null?void 0:ol.includes("&")))==null?void 0:Ea[0];Ie=(ia=ie.analyzeSplitToContent(Ie,"&"))==null?void 0:ia.map(ol=>((ol==null?void 0:ol[(ol==null?void 0:ol.length)-1])==="&"&&(ol=ol==null?void 0:ol.slice(0,(ol==null?void 0:ol.length)-1)),ol)),w=(ka=(Ce=(Ba=Ie==null?void 0:Ie[1])==null?void 0:Ba.replace("(",bl))==null?void 0:Ce.split(bl))==null?void 0:ka[0];let Ve=(Je=ie.analyzeSplitToContent(Ie==null?void 0:Ie[1],")"))==null?void 0:Je[0];Ve=(J=(K=Ve==null?void 0:Ve.replace("(",bl))==null?void 0:K.split(bl))==null?void 0:J[1],Ve=Ve==null?void 0:Ve.slice(0,(Ve==null?void 0:Ve.length)-1),(Ve==null?void 0:Ve[0])==="{"&&(Ve=Ve==null?void 0:Ve.slice(1,Ve==null?void 0:Ve.length)),(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)),G=Ve==null?void 0:Ve.split(",");let we=Ie==null?void 0:Ie[0];we&&we!==""&&((we==null?void 0:we[0])!=="@"&&(we="@"+we),A=Xn(we))}else if(!He&&((Fe=Oe==null?void 0:Oe.filter(Ie=>(Ie==null?void 0:Ie[0])==="{"))==null?void 0:Fe.length)>0){let Ie=Oe==null?void 0:Oe[(Oe==null?void 0:Oe.length)-1];Ie=Ie==null?void 0:Ie.slice(1,(Ie==null?void 0:Ie.length)-1),Ie=ie.analyzeSplitToContent(Ie,","),Ie=Ie==null?void 0:Ie.map(Ve=>((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)),Ie=Ie==null?void 0:Ie.map(Ve=>{var we,ol,Sl,Ll;if(Ve=Ve==null?void 0:Ve.replaceAll("$",""),Ve!=null&&Ve.includes("{")){let Vl="";Ve=Ve==null?void 0:Ve.replaceAll("{","");let zl=Ve==null?void 0:Ve.split("}");Vl=((ol=(we=zl==null?void 0:zl[0])==null?void 0:we.split(":"))==null?void 0:ol[0])+":"+(zl==null?void 0:zl[1]),Ve=Vl,Ve=Ve+":"}if(Ve!=null&&Ve.includes(Wi)){let Vl="",zl=Ve==null?void 0:Ve.split(Wi);Vl=((Ll=(Sl=zl==null?void 0:zl[0])==null?void 0:Sl.split(":"))==null?void 0:Ll[0])+":"+(zl==null?void 0:zl[1]),Ve=Vl,Ve=Ve+":"}return Ve=Ve==null?void 0:Ve.replaceAll(":","/"),Ve}),m=Ie}else!((We=Oe==null?void 0:Oe[1])!=null&&We.includes("$"))&&((Na=Oe==null?void 0:Oe[1])==null?void 0:Na[0])!=="("&&u.push(Oe==null?void 0:Oe[1])}else n=(da=a==null?void 0:a.split("&"))==null?void 0:da[0],_=(Aa=a==null?void 0:a.split("&"))==null?void 0:Aa[0];return(r==null?void 0:r.length)===0&&(i==null?void 0:i.length)===0&&(f==null?void 0:f.length)===0&&g==="Select"&&(g="Input"),{label:n,prop:_,options:r,allContents:i,filterContents:t,menus:f,groups:c,words:u,align:"center",formType:g,filter:M,functionName:w,functionRelatedWords:G,calculatorFilter:A,relatedPages:m,value:p}},zo=(a,l)=>{var r,i,t,f,c,u,m,g,_,p,M,w,G,A,P,O,E,x,S,b,C,R,$,le,ee,_e,pe,H,F,X;let n=[];if((a==null?void 0:a[0])==="{"&&(a==null?void 0:a[(a==null?void 0:a.length)-1])==="}"&&!((f=(t=(i=(r=a==null?void 0:a.slice(1,(a==null?void 0:a.length)-1))==null?void 0:r.replace(":",bl))==null?void 0:i.split(bl))==null?void 0:t[0])!=null&&f.includes(","))){let re=a==null?void 0:a.slice(1,(a==null?void 0:a.length)-1),ve=(c=re==null?void 0:re.replace(":",bl))==null?void 0:c.split(bl);if(((u=ie.analyzeSplitToContent(ve==null?void 0:ve[1],"="))==null?void 0:u.length)===1){let Re=ve==null?void 0:ve[0],ce=[];(_=ie.analyzeSplitToContent((g=ve==null?void 0:ve[1])==null?void 0:g.slice(1,((m=ve==null?void 0:ve[1])==null?void 0:m.length)-1),","))==null||_.forEach(B=>{var te,q;((te=ie.analyzeSplitToContent(B,"="))==null?void 0:te.length)>1?((B==null?void 0:B[(B==null?void 0:B.length)-1])===","&&(B=B==null?void 0:B.slice(0,(B==null?void 0:B.length)-1)),ce=[...ce,...zo(B,l)]):((B==null?void 0:B[(B==null?void 0:B.length)-1])===","&&(B=B==null?void 0:B.slice(0,(B==null?void 0:B.length)-1)),ce.push((q=zo(B,l))==null?void 0:q[0]))}),n==null||n.push({label:Re,prop:Re,children:ce,align:"center"})}else{let Re=[];if(((p=ie.analyzeSplitToContent(re,"="))==null?void 0:p.length)>=2){let B=(M=ie.analyzeSplitToContent(re,"="))==null?void 0:M[1],te=(w=ie.analyzeSplitToContent(B,"/"))==null?void 0:w.map(q=>((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)),q));Re=te==null?void 0:te.map(q=>(q=zi(q),q))}let ce=(x=(E=(O=(P=(A=(G=re==null?void 0:re.replace("{",bl))==null?void 0:G.split(bl))==null?void 0:A[1])==null?void 0:P.replace("}",bl))==null?void 0:O.split(bl))==null?void 0:E[0])==null?void 0:x.split(",");ce==null||ce.forEach((B,te)=>{(Re==null?void 0:Re.length)>0&&te===0?n==null||n.push({label:B,prop:B,align:"center",formType:"Select",relatedContents:Re==null?void 0:Re.map(q=>{let xe={};return ce==null||ce.forEach((Me,$e)=>{xe[Me]=q==null?void 0:q[$e]}),xe}),options:Re==null?void 0:Re.map(q=>({label:q==null?void 0:q[0],value:q==null?void 0:q[0]})),mainKey:!0}):n==null||n.push({label:B,prop:B,align:"center"})})}}else if((a==null?void 0:a[0])==="{")if(((S=ie.analyzeSplitToContent(a,"="))==null?void 0:S.length)===2&&((C=(b=ie.analyzeSplitToContent(a,"="))==null?void 0:b[1])==null?void 0:C[0])==="["){let re=[];if(((R=ie.analyzeSplitToContent(a,"="))==null?void 0:R.length)>=2){let Re=($=ie.analyzeSplitToContent(a,"="))==null?void 0:$[1],ce=(ee=(le=ie.analyzeSplitToContent(Re,"|"))==null?void 0:le.filter(B=>B!=="|"))==null?void 0:ee.map(B=>((B==null?void 0:B[(B==null?void 0:B.length)-1])==="|"&&(B=B==null?void 0:B.slice(0,(B==null?void 0:B.length)-1)),B));re=ce==null?void 0:ce.map(B=>(B=zi(B),B))}let ve=(pe=(_e=a==null?void 0:a.replace("}",bl))==null?void 0:_e.split(bl))==null?void 0:pe[0];ve=(H=ve==null?void 0:ve.slice(1,ve==null?void 0:ve.length))==null?void 0:H.split(","),ve==null||ve.forEach((Re,ce)=>{(re==null?void 0:re.length)>0&&ce===0?n==null||n.push({label:Re,prop:Re,align:"center",formType:"Select",relatedContents:re==null?void 0:re.map(B=>{let te={};return ve==null||ve.forEach((q,xe)=>{te[q]=B==null?void 0:B[xe]}),te}),options:re==null?void 0:re.map(B=>({label:B==null?void 0:B[0],value:B==null?void 0:B[0]})),mainKey:!0}):n==null||n.push({label:Re,prop:Re,align:"center"})})}else(F=ie.analyzeSplitToContent(a,","))==null||F.forEach(re=>{var ve,Re,ce,B,te,q,xe,Me,$e,Qe,_a,oe,sa,de,ea,Ae,ue,he,Ge,wa,Ia,U,V,Q,fe,me,ua,ta,je,ba,Ta,Ee,Pa,Ea,ia,Ba,Ce,ka,Je,K;if((re==null?void 0:re[(re==null?void 0:re.length)-1])===","&&(re=re==null?void 0:re.slice(0,(re==null?void 0:re.length)-1)),(re==null?void 0:re[0])==="{"){let J=ie.analyzeSplitToContent(re,"="),Fe=J==null?void 0:J[(J==null?void 0:J.length)-1],We=[],Na=[],da=[],Aa="",Oe="",He=[],Ie=[],Ve=(ve=Fe==null?void 0:Fe.replace("*",bl))==null?void 0:ve.split(bl),we=(Ve==null?void 0:Ve[0])===""?l==null?void 0:l.value:Ve==null?void 0:Ve[0];we=ie.analyzeSplitToContent(we,")");let ol="";if((we==null?void 0:we.length)>1&&((Re=we==null?void 0:we[0])==null?void 0:Re[0])!=="&"&&(ol=we==null?void 0:we[0],(ol==null?void 0:ol[0])!=="@"&&(ol="@"+ol),Oe=ol??""),we=(ce=we==null?void 0:we.filter(rl=>(rl==null?void 0:rl[0])==="$"))==null?void 0:ce[0],((B=ie.analyzeSplitToContent(we,"}"))==null?void 0:B.length)>1&&((q=(te=ie.analyzeSplitToContent(we,"}"))==null?void 0:te[1])==null?void 0:q[0])==="("&&(ol=(xe=ie.analyzeSplitToContent(we,"}"))==null?void 0:xe[1],(ol==null?void 0:ol[0])!=="@"&&(ol="@"+ol),Oe!==""&&(Oe=Oe+","),Oe=Oe+ol),(Me=we==null?void 0:we.slice(1,(we==null?void 0:we.length)-1))!=null&&Me.includes("$")||(we=($e=ie.analyzeSplitToContent(we,"}"))==null?void 0:$e[0]),(we==null?void 0:we[0])==="$"&&(we=(Qe=we==null?void 0:we.replace("{",""))==null?void 0:Qe.replace("}",":"),we=(_a=we==null?void 0:we.slice(1,we==null?void 0:we.length))==null?void 0:_a.replaceAll(":","/")),we!=null&&we.includes("$")){let rl=(oe=we==null?void 0:we.split("$"))==null?void 0:oe[0];rl=(sa=rl==null?void 0:rl.split("/"))==null?void 0:sa[0],we=rl+"/"+((de=we==null?void 0:we.split("$"))==null?void 0:de[1])+"/"}We=(we==null?void 0:we.split("/"))??[];let Sl=(Ae=(ea=Ve==null?void 0:Ve[1])==null?void 0:ea.replace("{",bl))==null?void 0:Ae.split(bl);if((Ge=(he=(ue=Ve==null?void 0:Ve[1])==null?void 0:ue.split("(@"))==null?void 0:he[0])!=null&&Ge.includes("&&")||(U=(Ia=(wa=Ve==null?void 0:Ve[1])==null?void 0:wa.split("@"))==null?void 0:Ia[0])!=null&&U.includes("&&")){let rl=(V=Ve==null?void 0:Ve[1])!=null&&V.includes("(@")?(me=(fe=(Q=Ve==null?void 0:Ve[1])==null?void 0:Q.split("(@"))==null?void 0:fe[0])==null?void 0:me.split("&&"):(je=(ta=(ua=Ve==null?void 0:Ve[1])==null?void 0:ua.split("@"))==null?void 0:ta[0])==null?void 0:je.split("&&");He=rl==null?void 0:rl.map(Wa=>{var Kl,Wl;return(Wa==null?void 0:Wa[0])==="*"&&(Wa=Wa==null?void 0:Wa.slice(1,Wa==null?void 0:Wa.length)),Wa=(Wl=(Kl=Wa==null?void 0:Wa.replace("{",bl))==null?void 0:Kl.split(bl))==null?void 0:Wl[0],(Wa==null?void 0:Wa[(Wa==null?void 0:Wa.length)-1])===":"&&(Wa=Wa==null?void 0:Wa.slice(0,(Wa==null?void 0:Wa.length)-1)),Wa=Wa==null?void 0:Wa.split(":"),Wa});let Fl=[];rl==null||rl.forEach((Wa,Kl)=>{var Wl,Nl;(Wa==null?void 0:Wa[0])==="*"&&(Wa=Wa==null?void 0:Wa.slice(1,Wa==null?void 0:Wa.length)),Wa=(Nl=(Wl=Wa==null?void 0:Wa.replace("{",bl))==null?void 0:Wl.split(bl))==null?void 0:Nl[1],(Wa==null?void 0:Wa[(Wa==null?void 0:Wa.length)-1])==="}"&&(Wa=Wa==null?void 0:Wa.slice(0,(Wa==null?void 0:Wa.length)-1)),Wa=Wa==null?void 0:Wa.split(","),Fl.push(Kl===0?(Wa==null?void 0:Wa.length)-1:Wa==null?void 0:Wa.length),Ie=[...Ie,...Wa]}),Fl=(ba=ie.prefixSum(Fl))==null?void 0:ba.map(Wa=>Wa==null?void 0:Wa.total),He=He==null?void 0:He.map((Wa,Kl)=>({number:Fl==null?void 0:Fl[Kl],contents:Wa}))}let Ll=Sl==null?void 0:Sl[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)),Na=(Ll==null?void 0:Ll.split(":"))??[],da=((Ea=(Pa=(Ee=(Ta=Sl==null?void 0:Sl[1])==null?void 0:Ta.replace("}",bl))==null?void 0:Ee.split(bl))==null?void 0:Pa[0])==null?void 0:Ea.split(","))??[];let Vl=(Ba=J==null?void 0:J[0])==null?void 0:Ba.slice(1,((ia=J==null?void 0:J[0])==null?void 0:ia.length)-2);Oe&&Oe!==""&&(Aa=Xn(Oe));let zl=(Ce=ie.analyzeSplitToContent(Aa,","))==null?void 0:Ce.map(rl=>((rl==null?void 0:rl[(rl==null?void 0:rl.length)-1])===","&&(rl=rl==null?void 0:rl.slice(0,(rl==null?void 0:rl.length)-1)),rl)),Jl=[];zl!=null&&zl.find(rl=>rl==null?void 0:rl.includes("@MainParam"))&&(zl=zl==null?void 0:zl.find(rl=>rl==null?void 0:rl.includes("@MainParam")),zl=(Je=(ka=zl==null?void 0:zl.replace("=",bl))==null?void 0:ka.split(bl))==null?void 0:Je[1],zl=zl==null?void 0:zl.slice(1,(zl==null?void 0:zl.length)-1),Jl=ie.analyzeSplitToContent(zl,",")),(K=Vl==null?void 0:Vl.split(","))==null||K.forEach((rl,Fl)=>{var Wa,Kl,Wl,Nl,Tl,zr;if(((Wa=ie.analyzeSplitToContent(rl,"@"))==null?void 0:Wa.length)>1){let $a=(Kl=ie.analyzeSplitToContent(rl,"@"))==null?void 0:Kl[1];$a="@"+$a,Aa=Xn($a),rl=(Wl=ie.analyzeSplitToContent(rl,"@"))==null?void 0:Wl[0],(rl==null?void 0:rl[(rl==null?void 0:rl.length)-1])==="@"&&(rl=rl==null?void 0:rl.slice(0,(rl==null?void 0:rl.length)-1))}n.push({label:rl,prop:rl,align:"center",menus:We,groups:(He==null?void 0:He.length)===0?Na:(Nl=He==null?void 0:He.find($a=>($a==null?void 0:$a.number)>=Fl))==null?void 0:Nl.contents,words:(Ie==null?void 0:Ie.length)===0?(Tl=da==null?void 0:da[Fl])==null?void 0:Tl.split(":"):(zr=Ie==null?void 0:Ie[Fl])==null?void 0:zr.split(":"),formType:(We==null?void 0:We.length)>0?"Select":"Input",mainKey:!!(Fl===0||Jl!=null&&Jl.find($a=>$a===rl)),filter:Aa,isMainPath:(He==null?void 0:He.findIndex($a=>($a==null?void 0:$a.number)>=Fl))===0})})}else n.push({label:re,prop:re,align:"center"})});else{let re=(X=ie.analyzeSplitToContent(a,","))==null?void 0:X.map(ve=>((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));re==null||re.forEach(ve=>{n.push(wt(ve,l))})}return n},op=(a,l)=>{var f,c,u,m,g;let n=a;if(!a)return;let r="";((f=ie.analyzeSplitToContent(a,"}"))==null?void 0:f.length)>1&&(n=(c=ie.analyzeSplitToContent(a,"}"))==null?void 0:c[0],r=(u=ie.analyzeSplitToContent(a,"}"))==null?void 0:u[1]),(a==null?void 0:a[0])==="{"&&(a==null?void 0:a[(a==null?void 0:a.length)-1])==="}"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1));let i=[],t=[];return i.push({label:"排序",prop:"sort"}),i.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(m=ie.analyzeSplitToContent(n,","))==null||m.forEach(_=>{var p;(_==null?void 0:_[(_==null?void 0:_.length)-1])===","&&(_=_==null?void 0:_.slice(0,(_==null?void 0:_.length)-1)),(_==null?void 0:_[0])==="{"?(p=zo(_,l))==null||p.forEach(M=>{i.push(M)}):i.push(wt(_,l))}),i!=null&&i.some(_=>{var p;return(p=_==null?void 0:_.prop)==null?void 0:p.includes("@")})&&(i=i==null?void 0:i.filter(_=>{var p;return!((p=_==null?void 0:_.prop)!=null&&p.includes("@"))})),r!==""&&((r==null?void 0:r[0])=="{"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),(g=ie.analyzeSplitToContent(r,","))==null||g.forEach(_=>{var p;(_==null?void 0:_[(_==null?void 0:_.length)-1])===","&&(_=_==null?void 0:_.slice(0,(_==null?void 0:_.length)-1)),(_==null?void 0:_[0])==="{"?(p=zo(_,l))==null||p.forEach(M=>{t.push(M)}):t.push(wt(_,l))})),{columns:i,secondColumns:t}},vn=a=>{var l,n,r,i,t;if(a!=null&&a.includes("@Filter")||a!=null&&a.includes("@Condition")||a!=null&&a.includes("@If"))return a;{let f=(n=(l=a==null?void 0:a.replace("(",bl))==null?void 0:l.split(bl))==null?void 0:n[1],c=(i=(r=a==null?void 0:a.replace("(",bl))==null?void 0:r.split(bl))==null?void 0:i[0];return f=f==null?void 0:f.slice(0,(f==null?void 0:f.length)-1),f=(t=ie.analyzeSplitToContent(f,","))==null?void 0:t.map(u=>((u==null?void 0:u[(u==null?void 0:u.length)-1])===","&&(u=u==null?void 0:u.slice(0,(u==null?void 0:u.length)-1)),(u==null?void 0:u[0])==="("&&(u=u==null?void 0:u.slice(1,(u==null?void 0:u.length)-1)),c+u)),f=f==null?void 0:f.join(","),a!=null&&a.includes("@Quote")&&(f!=null&&f.includes("@QuoteType")||(f=f===""?f+"@QuoteType=Manual":f+",@QuoteType=Manual"),f!=null&&f.includes("@QuoteSonSync")||(f=f===""?f+"@QuoteSonSync=No":f+",@QuoteSonSync=No"),f!=null&&f.includes("@QuoteFatherSync")||(f=f===""?f+"@QuoteFatherSync=Yes":f+",@QuoteFatherSync=Yes")),f}},fs=a=>{let l=a==null?void 0:a.map(n=>{var r,i;return{menus:n==null?void 0:n.menus,content:((r=n==null?void 0:n.menus)==null?void 0:r.join("/"))+bl+((i=n==null?void 0:n.groups)==null?void 0:i.join("/"))}});return l=l==null?void 0:l.filter(n=>{var r;return(n==null?void 0:n.menus)&&((r=n==null?void 0:n.menus)==null?void 0:r.length)>0}),l=l==null?void 0:l.map(n=>n==null?void 0:n.content),l=[...new Set(l)],l=l==null?void 0:l.map(n=>{var r,i;return{menus:(r=n==null?void 0:n.split(bl))==null?void 0:r[0],groups:((i=n==null?void 0:n.split(bl))==null?void 0:i[1])??[]}}),l},hs=a=>{var n;let l=a;return(l==null?void 0:l[0])==="("&&(l==null?void 0:l[1])==="("&&(l=l.slice(1,(l==null?void 0:l.length)-1)),l=(n=ie.analyzeSplitToContent(l,","))==null?void 0:n.map(r=>((r==null?void 0:r[(r==null?void 0:r.length)-1])===","&&(r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1)),(r==null?void 0:r[0])!=="@"&&(r="@"+r),(r==null?void 0:r[1])==="("&&(r=vn(r)),r)),l==null?void 0:l.join(",")},dc=(a,l,n="")=>{var E,x,S,b,C,R,$,le,ee,_e,pe,H,F,X,re,ve,Re,ce,B,te,q,xe,Me,$e,Qe,_a,oe,sa,de,ea,Ae,ue,he,Ge,wa,Ia,U,V,Q,fe,me,ua,ta,je,ba,Ta,Ee,Pa,Ea,ia,Ba,Ce,ka,Je;let r=[],i=[],t=[],f="",c="",u="",m=[],g=[],_=[],p=[],M="";if(((E=a==null?void 0:a[0])==null?void 0:E[0])!=="*"&&((x=a==null?void 0:a[0])==null?void 0:x[0])!=="$"&&!((S=a==null?void 0:a[0])!=null&&S.includes("$")))return;((b=a==null?void 0:a[0])==null?void 0:b[0])!=="*"&&((C=a==null?void 0:a[0])==null?void 0:C[0])!=="$"&&(f=(R=ie.analyzeSplitToContent(a==null?void 0:a[0],")"))==null?void 0:R[0],(f==null?void 0:f[0])!=="@"&&(f="@"+f),f=Xn(f),u=($=ie.analyzeSplitToContent(a==null?void 0:a[0],")"))==null?void 0:$[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 G=ie.analyzeSplitToContent(a==null?void 0:a[0],":");if(r=(le=G==null?void 0:G.filter(K=>(K==null?void 0:K[0])!=="{"&&(K==null?void 0:K[0])!=="["))==null?void 0:le.join(""),c=(ee=a==null?void 0:a[0])==null?void 0:ee.replace(r,""),(r==null?void 0:r[0])==="("&&(r=""),M=(_e=G==null?void 0:G.filter(K=>(K==null?void 0:K[0])!=="["))==null?void 0:_e.join(""),M=(pe=a==null?void 0:a[0])==null?void 0:pe.replace(M,""),c=c==null?void 0:c.replace(M,""),(r==null?void 0:r[0])==="*"&&(r=r==null?void 0:r.slice(1,r==null?void 0:r.length)),(r==null?void 0:r[(r==null?void 0:r.length)-1])===":"&&(r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1)),((H=ie.analyzeSplitToContent(c,"@"))==null?void 0:H.length)>1&&(f=(F=ie.analyzeSplitToContent(c,"@"))==null?void 0:F[1],(f==null?void 0:f[(f==null?void 0:f.length)-1])===":"&&(f=f==null?void 0:f.slice(0,(f==null?void 0:f.length)-1)),f="@"+f,f=vn(f),c=(X=ie.analyzeSplitToContent(c,"@"))==null?void 0:X[0],c=c==null?void 0:c.slice(0,(c==null?void 0:c.length)-1)),((re=ie.analyzeSplitToContent(r,"@"))==null?void 0:re.length)>1){f!==""&&(f=f+",");let K=(ve=ie.analyzeSplitToContent(r,"@"))==null?void 0:ve[1];K="@"+K,K=vn(K),f=f+K,r=(Re=ie.analyzeSplitToContent(r,"@"))==null?void 0:Re[0]}if((r==null?void 0:r[(r==null?void 0:r.length)-1])==="@"&&(r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1)),r=r===""?[]:r==null?void 0:r.split(":"),(c==null?void 0:c[(c==null?void 0:c.length)-1])===":"&&(c=c==null?void 0:c.slice(0,(c==null?void 0:c.length)-1)),n!==""){let K=(ce=ie.analyzeSplitToContent(n,")"))==null?void 0:ce[0],J=ie.analyzeSplitToContent(n,")");J=J==null?void 0:J.filter((da,Aa)=>Aa!==(J==null?void 0:J.length)-1),J=J==null?void 0:J.join("");let Fe=(B=ie.analyzeSplitToContent(n,"@"))==null?void 0:B[1];u=(q=(te=ie.analyzeSplitToContent(n,"@"))==null?void 0:te[0])==null?void 0:q.replace(J,""),(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 We="";We=ie.analyzeSplitToContent(n,")"),We=We==null?void 0:We.filter((da,Aa)=>Aa!==0&&Aa!==(We==null?void 0:We.length)-1),(We==null?void 0:We.length)>0&&((xe=ie.chunkArray(We))==null||xe.forEach(da=>{var Ve,we,ol,Sl,Ll;let Aa="",Oe=[],He="";He="@"+(da==null?void 0:da[0]),He=vn(He);let Ie=da==null?void 0:da[1];Ie=Ie==null?void 0:Ie.slice(1,Ie==null?void 0:Ie.length),Aa=(we=(Ve=Ie==null?void 0:Ie.replace("(",bl))==null?void 0:Ve.split(bl))==null?void 0:we[0],Ie=(Sl=(ol=Ie==null?void 0:Ie.replace("(",bl))==null?void 0:ol.split(bl))==null?void 0:Sl[1],Ie=Ie==null?void 0:Ie.slice(0,(Ie==null?void 0:Ie.length)-1),Oe=(Ll=ie.analyzeSplitToContent(Ie,","))==null?void 0:Ll.map(Vl=>((Vl==null?void 0:Vl[(Vl==null?void 0:Vl.length)-1])===","&&(Vl=Vl==null?void 0:Vl.slice(0,(Vl==null?void 0:Vl.length)-1)),Vl)),m.push({functionName:Aa,functionRelatedWords:Oe,calculatorFilter:He})})),K=hs(K),Fe=hs(Fe);let Na=K??"";if(Na!==""&&(Na=Na+","),Na=Na+Fe,(Na==null?void 0:Na[(Na==null?void 0:Na.length)-1])===","&&(Na=Na==null?void 0:Na.slice(0,(Na==null?void 0:Na.length)-1)),Na!==""&&f!==""&&(f=f+","),f=f+Na,(u==null?void 0:u[0])==="$"&&(u=u==null?void 0:u.slice(1,u==null?void 0:u.length)),u=(Me=ie.analyzeSplitToContent(u,":"))==null?void 0:Me.filter((da,Aa)=>{var Oe;return!((da==null?void 0:da[0])==="{"&&Aa===((Oe=ie.analyzeSplitToContent(u,":"))==null?void 0:Oe.length)-1)}),u=u==null?void 0:u.join(""),(u==null?void 0:u[(u==null?void 0:u.length)-1])===":"&&(u=u==null?void 0:u.slice(0,(u==null?void 0:u.length)-1)),f!=null&&f.includes("@Sync")||(f=f===""?f+"@Sync=(Yes,Yes)":f+",@Sync=(Yes,Yes)"),u!=null&&u.includes("$")){let da=(Qe=($e=u==null?void 0:u.replace("*",bl))==null?void 0:$e.split(bl))==null?void 0:Qe[1],Aa=(oe=(_a=u==null?void 0:u.replace("*",bl))==null?void 0:_a.split(bl))==null?void 0:oe[0];Aa=Aa==null?void 0:Aa.split("$"),Aa=((de=(sa=Aa==null?void 0:Aa[0])==null?void 0:sa.split(":"))==null?void 0:de[0])+":"+(Aa==null?void 0:Aa[1])+":",u=Aa+"*"+da}else u=(ea=u==null?void 0:u.replaceAll("{",""))==null?void 0:ea.replaceAll("}","")}f!==""&&f&&(f="("+f+")"),f=u+f,((Ae=ie.analyzeSplitToContent(c,"}"))==null?void 0:Ae.length)>1&&(c=(ue=ie.analyzeSplitToContent(c,"}"))==null?void 0:ue.filter(K=>(K==null?void 0:K[0])!=="@"),c=c==null?void 0:c.join(""));let A=op(c,l);t=c===""?[]:(A==null?void 0:A.columns)??[],p=ie.getColumnChild(t);let P=ie.getColumnChild(t);t!=null&&t.some(K=>{var J;return Array.isArray(K==null?void 0:K.children)&&((J=K==null?void 0:K.children)==null?void 0:J.length)>0})&&(t=[t]),i=M?zi(M):[],!(i!=null&&i.every(K=>Array.isArray(K)))&&(i==null?void 0:i.length)>0&&(i=[i]),(i==null?void 0:i.length)>0&&(Array.isArray(i==null?void 0:i[0])&&((he=i==null?void 0:i[0])!=null&&he.every(K=>Array.isArray(K)))?i=i==null?void 0:i.map((K,J)=>(K=K.map((Fe,We)=>(Fe.unshift("{}"),Fe.unshift((We+1).toString()),Fe)),K)):i=i==null?void 0:i.map((K,J)=>(K.unshift("{}"),K.unshift((J+1).toString()),K))),A!=null&&A.secondColumns&&((Ge=A==null?void 0:A.secondColumns)==null?void 0:Ge.length)>0&&((i==null?void 0:i.length)>0?i=i==null?void 0:i.map((K,J)=>{var Fe,We;return Array.isArray(K==null?void 0:K[0])?K=K==null?void 0:K.map((Na,da)=>{var Aa,Oe;return Na.unshift((Oe=(Aa=A==null?void 0:A.secondColumns)==null?void 0:Aa[da])==null?void 0:Oe.prop),Na}):K.unshift((We=(Fe=A==null?void 0:A.secondColumns)==null?void 0:Fe[J])==null?void 0:We.prop),K}):i=(wa=A==null?void 0:A.secondColumns)==null?void 0:wa.map((K,J)=>(K=[K==null?void 0:K.label],K.push(J),K)),t.unshift({label:"",prop:"disabled",sortable:!1})),p=p==null?void 0:p.map(K=>{var J,Fe;return{menus:K==null?void 0:K.menus,content:((J=K==null?void 0:K.menus)==null?void 0:J.join("/"))+bl+((Fe=K==null?void 0:K.groups)==null?void 0:Fe.join("/"))}});let O=[];if(((U=(Ia=f==null?void 0:f.replace("(",bl))==null?void 0:Ia.split(bl))==null?void 0:U[0])!==""&&(O=(Q=(V=f==null?void 0:f.replace("(",bl))==null?void 0:V.split(bl))==null?void 0:Q[0],O=[O],O=O==null?void 0:O.map(K=>{var Fe,We,Na;let J=K==null?void 0:K.split("*");return{menus:(Fe=J==null?void 0:J[0])==null?void 0:Fe.split(":"),content:((We=J==null?void 0:J[0])==null?void 0:We.replaceAll(":","/"))+bl+((Na=J==null?void 0:J[1])==null?void 0:Na.replaceAll(":","/"))}}),p=[...p,...O]),p=p==null?void 0:p.filter(K=>{var J;return(K==null?void 0:K.menus)&&((J=K==null?void 0:K.menus)==null?void 0:J.length)>0}),p=p==null?void 0:p.map(K=>K==null?void 0:K.content),p=[...new Set(p)],p=p==null?void 0:p.map(K=>{var J,Fe;return{menus:(J=K==null?void 0:K.split(bl))==null?void 0:J[0],groups:((Fe=K==null?void 0:K.split(bl))==null?void 0:Fe[1])??[]}}),g=P==null?void 0:P.filter(K=>{var J;return(K==null?void 0:K.filter)&&((J=K==null?void 0:K.filter)==null?void 0:J.includes("@Sync"))}),(g==null?void 0:g.length)>0&&(g=g==null?void 0:g.filter(K=>{var J,Fe,We,Na;return(Na=(We=(Fe=(J=ie.analyzeSplitToContent(K==null?void 0:K.filter,","))==null?void 0:J.find(da=>da==null?void 0:da.includes("@Sync")))==null?void 0:Fe.split(","))==null?void 0:We[0])==null?void 0:Na.includes("Yes")}),g=fs(g)),_=P==null?void 0:P.filter(K=>{var J;return(K==null?void 0:K.filter)&&((J=K==null?void 0:K.filter)==null?void 0:J.includes("@Sync"))}),(_==null?void 0:_.length)>0&&(_=_==null?void 0:_.filter(K=>{var J,Fe,We,Na;return(Na=(We=(Fe=(J=ie.analyzeSplitToContent(K==null?void 0:K.filter,","))==null?void 0:J.find(da=>da==null?void 0:da.includes("@Sync")))==null?void 0:Fe.split(","))==null?void 0:We[1])==null?void 0:Na.includes("Yes")}),_=fs(_)),f!==""&&(f!=null&&f.includes("@Sync"))&&(f==null?void 0:f[0])!=="("){let K=(fe=f==null?void 0:f.replace("(",bl))==null?void 0:fe.split(bl),J=K==null?void 0:K[1];if(J=J==null?void 0:J.slice(0,(J==null?void 0:J.length)-1),J=ie.analyzeSplitToContent(J,","),(ta=(ua=(me=J==null?void 0:J.find(Fe=>Fe==null?void 0:Fe.includes("@Sync")))==null?void 0:me.split(","))==null?void 0:ua[0])!=null&&ta.includes("Yes")){let Fe=K==null?void 0:K[0];Fe=[{menus:(ba=(je=Fe==null?void 0:Fe.split("*"))==null?void 0:je[0])==null?void 0:ba.replaceAll(":","/"),groups:((Ee=(Ta=Fe==null?void 0:Fe.split("*"))==null?void 0:Ta[1])==null?void 0:Ee.split(":"))??[]}],g=[...g,...Fe]}if((ia=(Ea=(Pa=J==null?void 0:J.find(Fe=>Fe==null?void 0:Fe.includes("@Sync")))==null?void 0:Pa.split(","))==null?void 0:Ea[1])!=null&&ia.includes("Yes")){let Fe=K==null?void 0:K[0];Fe=[{menus:(Ce=(Ba=Fe==null?void 0:Fe.split("*"))==null?void 0:Ba[0])==null?void 0:Ce.replaceAll(":","/"),groups:((Je=(ka=Fe==null?void 0:Fe.split("*"))==null?void 0:ka[1])==null?void 0:Je.split(":"))??[]}],_=[..._,...Fe]}}return{groupName:r,tableColumns:t,tableFilter:f,tableContents:i,columns:(A==null?void 0:A.secondColumns)??[],relatedQuotes:p,fatherSyncContents:g,sonSyncContents:_,calculatorFilters:m}},pc=(a,l)=>(a=a==null?void 0:a.map((n,r)=>{var i,t,f,c;if(Array.isArray(n))n=n==null?void 0:n.map(u=>{var m,g,_,p;return u!=null&&u.isMainPath||(((m=u==null?void 0:u.children)==null?void 0:m.length)>0?u.children=pc(u.children,l):((g=u==null?void 0:u.menus)==null?void 0:g.length)>0&&!((_=n==null?void 0:n[0])!=null&&_.isMainPath)&&(u.menus=(p=u.menus)==null?void 0:p.map((M,w)=>{var G,A;return((G=u.menus)==null?void 0:G.length)-1===w&&M===""&&(l==null?void 0:l.parentContent)+"/"!==((A=u.menus)==null?void 0:A.join("/"))&&(M=l==null?void 0:l.value),u}),u.bindMenus=u.menus)),u});else{if(r===0&&((i=n.menus)==null?void 0:i.length)>0&&(n.mainKey=!0),n!=null&&n.isMainPath)return n;((t=n.menus)==null?void 0:t.length)>0&&!((f=a==null?void 0:a[0])!=null&&f.isMainPath)&&(n.menus=(c=n.menus)==null?void 0:c.map((u,m)=>{var g,_;return((g=n.menus)==null?void 0:g.length)-1===m&&u===""&&(l==null?void 0:l.parentContent)+"/"!==((_=n.menus)==null?void 0:_.join("/"))&&(u=l==null?void 0:l.value),u}),n.bindMenus=n.menus)}return n}),a),tp=(a,l)=>(a=a==null?void 0:a.map(n=>((n==null?void 0:n.key)==="header"&&(n.contents=pc(n.contents,l)),n)),a),_t=(a,l)=>{let n=a;return Array.isArray(n==null?void 0:n[0])?n=n==null?void 0:n.map(r=>(r=_t(r,l),r)):n=n==null?void 0:n.map(r=>{var i,t;return r!=null&&r.children&&((i=r==null?void 0:r.children)==null?void 0:i.length)>0?r.children=_t(r==null?void 0:r.children,l):r!=null&&r.words&&((t=r==null?void 0:r.words)==null?void 0:t.length)>0&&(l!=null&&l.find(f=>{var c,u,m,g;return((g=(c=r==null?void 0:r.prop)==null?void 0:c.split("."))==null?void 0:g[((m=(u=r==null?void 0:r.prop)==null?void 0:u.split("."))==null?void 0:m.length)-1])===f}))&&(r.mainKey=!0),r}),n};let _r="$R";const sp=z.useUnit(z.pinia),{selectTitle:fn}=z.storeToRefs(sp),cp=z.useMenuState(z.pinia),{localFiles:up}=z.storeToRefs(cp),dp=z.useLoginState(z.pinia),{loginUserInfo:mt}=z.storeToRefs(dp),En=[{key:"@MaxRow",value:"onNumSlice",order:1},{key:"@MaxColumn",value:"onMaxColumn",order:1},{key:"@EditRead",value:"onEditRead",order:1},{key:"@ShowHide",value:"onShowHide",order:1},{key:"@Type",value:"onRandomContents",order:2},{key:"@SubType",value:"onInterfaceTypeContents",order:2},{key:"@If",value:"onConditionContents",order:4},{key:"@QuoteFatherSync",value:"onFatherPaceContents",order:1},{key:"@QuoteSonSync",value:"onPaceContents",order:1},{key:"@MainParam",value:"onMainTagContents",order:3},{key:"@Button",value:"onButtonContents",order:1},{key:"@Related",value:"onRelated",order:1},{key:"@RowNum",value:"onRowNum",order:1},{key:"@FixColumn",value:"onFixRow",order:1},{key:"@ReqItem",value:"onReqItem",order:1},{key:"@Condition",value:"onConditionContent",order:1},{key:"@Tab",value:"onTabs",order:1},{key:"@SinChoice",value:"onSinChoice",order:1},{key:"@TextSize",value:"onTextSize",order:1},{key:"@TextRGBA",value:"onTextRGBA",order:1},{key:"@Position",value:"onPosition",order:4},{key:"@Size",value:"onSize",order:4},{key:"@ShowType",value:"onShowType",order:1},{key:"@StepName",value:"onStepName",order:1},{key:"@Step",value:"onStep",order:1},{key:"@BackGround",value:"onBackGround",order:1}];var ui=(a=>(a[a.ORDINARY=1]="ORDINARY",a[a.BLOCK=2]="BLOCK",a[a.TEXT=3]="TEXT",a))(ui||{});const pp=async a=>{var n,r,i,t,f,c,u,m,g,_,p,M,w,G,A,P,O;let l=ie.analyzeSplitToContent((a==null?void 0:a.filter)??"",")");if((l==null?void 0:l.length)>1){let E=l==null?void 0:l[0];E=E==null?void 0:E.slice(1,(E==null?void 0:E.length)-1),E=(r=(n=E==null?void 0:E.replace("(",_r))==null?void 0:n.split(_r))==null?void 0:r[1],E="("+((i=E==null?void 0:E.replaceAll("{",""))==null?void 0:i.replaceAll("}",""));let x=ie.calculatorAndToOr(E),S=Object.keys(x==null?void 0:x[0]);if(E=x,((t=S==null?void 0:S[0])==null?void 0:t[0])==="$"){let b=(c=S==null?void 0:S[0])==null?void 0:c.slice(1,((f=S==null?void 0:S[0])==null?void 0:f.length)-1),C=(m=(u=b==null?void 0:b.split("*"))==null?void 0:u[0])==null?void 0:m.replaceAll(".","/"),R=(p=(_=(g=b==null?void 0:b.split("*"))==null?void 0:g[1])==null?void 0:_.split("."))==null?void 0:p[0],$=await Xr(C,!1);$=(M=$==null?void 0:$.filter(H=>(H==null?void 0:H.name)===R))==null?void 0:M[0];let le=(G=(w=$==null?void 0:$.compData)==null?void 0:w.find(H=>(H==null?void 0:H.key)==="tableContents"))==null?void 0:G.contents;E=E==null?void 0:E.map(H=>{var X,re;let F={};for(let ve in H)if((ve==null?void 0:ve[0])==="$"){let Re=(re=ve==null?void 0:ve.split("."))==null?void 0:re[((X=ve==null?void 0:ve.split("."))==null?void 0:X.length)-1];F[Re]=H==null?void 0:H[ve]}else F[ve]=H==null?void 0:H[ve];return F});let ee=(P=(A=$==null?void 0:$.compData)==null?void 0:A.find(H=>(H==null?void 0:H.key)==="header"))==null?void 0:P.contents;ee=(O=ie.getEqualChild(ee))==null?void 0:O.filter(H=>(H==null?void 0:H.label)!=="操作");let pe=ie.tableToForm(le,ee);if(E==null||E.forEach(H=>{var F,X,re,ve,Re;for(let ce in H)(H==null?void 0:H[ce])==="LoginUser"&&(H[ce]=((F=mt.value)==null?void 0:F.姓名)||((X=mt.value)==null?void 0:X.account)||((re=mt.value)==null?void 0:re.账号)),!((ve=pe==null?void 0:pe[0])!=null&&ve.find(B=>{var te;return(B==null?void 0:B.key)===ce||((te=B==null?void 0:B.key)==null?void 0:te.includes(ce))}))&&!(pe!=null&&pe.find(B=>{var te;return(B==null?void 0:B.key)===ce||((te=B==null?void 0:B.key)==null?void 0:te.includes(ce))}))||(((Re=H[ce])==null?void 0:Re[0])!=="!"?pe=pe==null?void 0:pe.filter(B=>{var te,q;return((te=B==null?void 0:B.find(xe=>{var Me;return(xe==null?void 0:xe.key)===ce||((Me=xe==null?void 0:xe.key)==null?void 0:Me.includes(ce))}))==null?void 0:te.value)===H[ce]||Array.isArray(H==null?void 0:H[ce])&&((q=H==null?void 0:H[ce])==null?void 0:q.find(xe=>{var Me;return((Me=B==null?void 0:B.find($e=>{var Qe;return($e==null?void 0:$e.key)===ce||((Qe=$e==null?void 0:$e.key)==null?void 0:Qe.includes(ce))}))==null?void 0:Me.value)===xe}))}):pe=pe==null?void 0:pe.filter(B=>{var te;return((te=B==null?void 0:B.find(q=>{var xe;return(q==null?void 0:q.key)===ce||((xe=q==null?void 0:q.key)==null?void 0:xe.includes(ce))}))==null?void 0:te.value)!==H[ce]}))}),(pe==null?void 0:pe.length)===0){let H=a==null?void 0:a.contents;return H.push({key:"hideContents",contents:!0}),H}}}return a==null?void 0:a.contents},fp=a=>{var l,n,r,i,t;if((a==null?void 0:a.filter)!==void 0&&(a==null?void 0:a.filter)!==null&&(a==null?void 0:a.filter)!==""){let f=a==null?void 0:a.contents,c=a==null?void 0:a.filter;(c==null?void 0:c[0])==="("&&(c=c==null?void 0:c.slice(1,(c==null?void 0:c.length)-1)),c=(l=ie.analyzeSplitToContent(c,","))==null?void 0:l.map(m=>((m==null?void 0:m[(m==null?void 0:m.length)-1])===","&&(m=m==null?void 0:m.slice(0,(m==null?void 0:m.length)-1)),m)),c=c==null?void 0:c[1],(c==null?void 0:c[0])==="("&&(c=c==null?void 0:c.slice(1,(c==null?void 0:c.length)-1)),c=(n=ie.analyzeSplitToContent(c,","))==null?void 0:n.map(m=>((m==null?void 0:m[(m==null?void 0:m.length)-1])===","&&(m=m==null?void 0:m.slice(0,(m==null?void 0:m.length)-1)),m));let u=(t=(i=(r=up.value)==null?void 0:r.filter(m=>{var g;return(m==null?void 0:m.path)===((g=a==null?void 0:a.groupName)==null?void 0:g[0])}))==null?void 0:i[0])==null?void 0:t.children;return u=(u==null?void 0:u.filter(m=>c==null?void 0:c.find(g=>g===(m==null?void 0:m.name))))??[],(c==null?void 0:c.length)>0&&(u==null?void 0:u.length)===0&&(c==null||c.forEach(m=>{u.push({url:"file:///"+(m==null?void 0:m.replaceAll("\\","/"))})})),f.push({key:"backGround",contents:u}),f}return a==null?void 0:a.contents},hp=a=>{const l=hc(a==null?void 0:a.filter);return l?vc(a==null?void 0:a.contents,{position:l}):a==null?void 0:a.contents},vp=a=>{const l=hc(a==null?void 0:a.filter);return l?vc(a==null?void 0:a.contents,{size:l}):a==null?void 0:a.contents},mp=a=>{if((a==null?void 0:a.filter)!==void 0&&(a==null?void 0:a.filter)!==null&&(a==null?void 0:a.filter)!==""){let l=a==null?void 0:a.contents;const n=Number(a==null?void 0:a.filter);return l.push({key:"textSize",contents:Number.isNaN(n)?a==null?void 0:a.filter:n}),l}return a==null?void 0:a.contents},yp=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},gp=a=>{var n;return(a==null?void 0:a.filter.toUpperCase())==="ALL"||(a==null?void 0:a.filter.toUpperCase())==="NONE"?a==null?void 0:a.contents:(n=a==null?void 0:a.contents)==null?void 0:n.map(r=>{var i;return(r==null?void 0:r.key)==="tableContents"&&(r.contents=(i=r.contents)==null?void 0:i.slice(0,parseInt(a==null?void 0:a.filter))),r})},bp=async a=>{var l,n,r,i,t,f,c,u,m,g,_,p,M,w,G,A,P,O,E,x,S,b,C,R,$,le,ee,_e,pe,H;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=ie.shuffle(X.contents)),X));if((a==null?void 0:a.filter)==="Auto"){let F=(r=(n=a==null?void 0:a.contents)==null?void 0:n.find(xe=>(xe==null?void 0:xe.key)==="header"))==null?void 0:r.contents;Array.isArray(F==null?void 0:F[0])&&(F=F==null?void 0:F[0]),F=ie.getColumnChild(F);let X=F==null?void 0:F.filter(xe=>(xe==null?void 0:xe.filter)&&(xe==null?void 0:xe.filter)!==""),re=new Map,ve=[];X==null||X.forEach(xe=>{var Me,$e;re.get((Me=xe==null?void 0:xe.menus)==null?void 0:Me.join("/"))||(re.set(($e=xe==null?void 0:xe.menus)==null?void 0:$e.join("/"),xe),ve.push(xe))});let Re=(t=(i=fn==null?void 0:fn.value)==null?void 0:i.find(xe=>(xe==null?void 0:xe.condition)==="child"))==null?void 0:t.value,ce=ve==null?void 0:ve.map(xe=>{var Me,$e,Qe;return xe=(Me=xe==null?void 0:xe.menus)==null?void 0:Me.join("/"),(xe==null?void 0:xe[(xe==null?void 0:xe.length)-1])==="/"&&((Qe=($e=fn==null?void 0:fn.value)==null?void 0:$e.find(_a=>(_a==null?void 0:_a.condition)==="child"))==null?void 0:Qe.parentContent)+"/"!==xe?xe=xe+Re:(xe==null?void 0:xe[(xe==null?void 0:xe.length)-1])==="/"&&(xe=xe==null?void 0:xe.slice(0,(xe==null?void 0:xe.length)-1)),xe}),B=ve==null?void 0:ve.map(xe=>xe==null?void 0:xe.groups),te=ce==null?void 0:ce.map(async xe=>{let Me=await Xr(xe,!1);return{path:xe,contents:Me}});te=await Promise.all(te);let q=te==null?void 0:te.map((xe,Me)=>{var Qe,_a,oe,sa,de,ea,Ae;let $e=(Qe=xe==null?void 0:xe.contents)==null?void 0:Qe.filter(ue=>{var he,Ge;return(ue==null?void 0:ue.name)===((Ge=B==null?void 0:B[Me])==null?void 0:Ge[((he=B==null?void 0:B[Me])==null?void 0:he.length)-1])});return $e=(sa=(oe=(_a=$e==null?void 0:$e[0])==null?void 0:_a.compData)==null?void 0:oe.find(ue=>(ue==null?void 0:ue.key)==="tableContents"))==null?void 0:sa.contents,(xe==null?void 0:xe.path)===((ea=(de=fn==null?void 0:fn.value)==null?void 0:de.find(ue=>(ue==null?void 0:ue.condition)==="child"))==null?void 0:ea.parentContent)&&($e=((Ae=$e==null?void 0:$e.map(ue=>{for(let he in ue)if(ue[he]===Re)return ue}))==null?void 0:Ae.filter(ue=>ue))??[]),$e??[]});if(q=q==null?void 0:q.map(xe=>(xe=xe==null?void 0:xe.map(Me=>{var Qe;let $e={};for(let _a in Me)if(X!=null&&X.find(oe=>{var sa,de;return((de=(sa=oe==null?void 0:oe.words)==null?void 0:sa[0])==null?void 0:de.replaceAll("'",""))===_a})){let oe=(Qe=X==null?void 0:X.find(sa=>{var de,ea;return((ea=(de=sa==null?void 0:sa.words)==null?void 0:de[0])==null?void 0:ea.replaceAll("'",""))===_a}))==null?void 0:Qe.prop;$e[oe]=Me==null?void 0:Me[_a]}return $e}),xe)),q=ie.cartesianProduct(q),Array.isArray(q==null?void 0:q[0])&&(q=q==null?void 0:q[0]),(q==null?void 0:q.length)>0&&((_=(c=(f=X==null?void 0:X[0])==null?void 0:f.menus)==null?void 0:c.join("/"))==null?void 0:_[((g=(m=(u=X==null?void 0:X[0])==null?void 0:u.menus)==null?void 0:m.join("/"))==null?void 0:g.length)-1])==="/")return(p=a==null?void 0:a.contents)==null?void 0:p.map(Me=>{var $e;return(Me==null?void 0:Me.key)==="tableContents"&&(q==null?void 0:q.length)>0&&(Me.contents=(($e=Me.contents)==null?void 0:$e.length)>0?Me.contents:q),Me})}if((a==null?void 0:a.filter)==="Manual"){let F=[],X=[],re=(w=(M=a==null?void 0:a.contents)==null?void 0:M.find(B=>(B==null?void 0:B.key)==="filter"))==null?void 0:w.contents;(re==null?void 0:re[(re==null?void 0:re.length)-1])===")"?re=(A=(G=re==null?void 0:re.replace("(",_r))==null?void 0:G.split(_r))==null?void 0:A[0]:re="",re!==""&&(F=((O=(P=re==null?void 0:re.split("*"))==null?void 0:P[0])==null?void 0:O.split(":"))??[],X=((C=(b=(S=(x=(E=re==null?void 0:re.split("*"))==null?void 0:E[1])==null?void 0:x.replace("{",_r))==null?void 0:S.split(_r))==null?void 0:b[0])==null?void 0:C.split(":"))??[]);let ve=($=(R=a==null?void 0:a.contents)==null?void 0:R.find(B=>(B==null?void 0:B.key)==="filter"))==null?void 0:$.contents;ve=(ee=(le=ve==null?void 0:ve.replace("(",_r))==null?void 0:le.split(_r))==null?void 0:ee[1],ve=ve==null?void 0:ve.slice(0,(ve==null?void 0:ve.length)-1);let Re=(_e=a==null?void 0:a.contents)==null?void 0:_e.map(B=>{var te,q,xe,Me,$e,Qe,_a,oe,sa;return(B==null?void 0:B.key)==="header"&&((te=B==null?void 0:B.contents)!=null&&te.every(de=>(de==null?void 0:de.mainKey)!==!0)&&Array.isArray(B==null?void 0:B.contents)&&!Array.isArray((q=B==null?void 0:B.contents)==null?void 0:q[0])?B.contents=(xe=B==null?void 0:B.contents)==null?void 0:xe.map((de,ea)=>{var Ae,ue,he;return de!=null&&de.isMainPath||(ea===0?(de.mainKey=!0,de.formType="Select",de.bindMenus=F,de.groups=((Ae=de.groups)==null?void 0:Ae.length)===0?X:de.groups,de.words=((ue=de.words)==null?void 0:ue.length)===0?[de==null?void 0:de.prop]:de.words,de.filter=ve,(!(de!=null&&de.menus)||((he=de==null?void 0:de.menus)==null?void 0:he.length)===0)&&(de.menus=F)):(de.mainKey=!1,de.bindMenus=F)),de}):Array.isArray((Me=B==null?void 0:B.contents)==null?void 0:Me[0])&&((_a=(Qe=($e=B==null?void 0:B.contents)==null?void 0:$e[0])==null?void 0:Qe.filter(()=>(F==null?void 0:F.length)>0))==null?void 0:_a.length)>0&&(B.contents[0]=(sa=(oe=B==null?void 0:B.contents)==null?void 0:oe[0])==null?void 0:sa.map((de,ea)=>{var Ae,ue,he;return de!=null&&de.isMainPath||(ea===0?(de.mainKey=!0,de.formType="Select",de.bindMenus=F,de.groups=((Ae=de.groups)==null?void 0:Ae.length)===0?X:de.groups,de.words=((ue=de.words)==null?void 0:ue.length)===0?[de==null?void 0:de.prop]:de.words,de.filter=ve,(!(de!=null&&de.menus)||Array.isArray(de==null?void 0:de.menus)&&((he=de==null?void 0:de.menus)==null?void 0:he.length)===0)&&(F==null?void 0:F.length)>0&&(de.menus=F)):(de.mainKey=!1,de.bindMenus=F)),de}))),B}),ce=(pe=Re==null?void 0:Re.find(B=>(B==null?void 0:B.key)==="header"))==null?void 0:pe.contents;if(Array.isArray(ce==null?void 0:ce[0])&&(ce=ce==null?void 0:ce[0]),ce=ie.getColumnChild(ce),ce!=null&&ce.some(B=>{var te,q;return((q=B==null?void 0:B.menus)==null?void 0:q[((te=B==null?void 0:B.menus)==null?void 0:te.length)-1])===""})){let B=(H=fn==null?void 0:fn.value)==null?void 0:H.find(te=>(te==null?void 0:te.condition)==="child");Re=tp(Re,B)}return Re}if((a==null?void 0:a.filter)==="Chart"){let F=a==null?void 0:a.contents;return F.push({key:"newType",contents:"Chart"}),F}if((a==null?void 0:a.filter)==="Carousel"){let F=a==null?void 0:a.contents;return F.push({key:"newType",contents:"Carousel"}),F}return a==null?void 0:a.contents},kp=a=>{if((a==null?void 0:a.filter)==="Ordin"){let l=a==null?void 0:a.contents;return l.push({key:"enableWrap",contents:1}),l}if((a==null?void 0:a.filter)==="Block"){let l=a==null?void 0:a.contents;return l.push({key:"enableWrap",contents:2}),l}if((a==null?void 0:a.filter)==="Text"){let l=a==null?void 0:a.contents;return l.push({key:"enableWrap",contents:3}),l}if((a==null?void 0:a.filter)==="Bar"||(a==null?void 0:a.filter)==="Pie"||(a==null?void 0:a.filter)==="Line"||(a==null?void 0:a.filter)==="Histogram"||(a==null?void 0:a.filter)==="Scatter"){let l=a==null?void 0:a.contents;return l.push({key:"ChartType",contents:{type:a==null?void 0:a.filter,title:""}}),l}return a==null?void 0:a.contents},xp=a=>{var r,i,t,f,c,u,m,g,_,p,M,w;let l=a==null?void 0:a.filter;if(l!=null&&l.includes("*")&&(l="({"+((i=(r=l==null?void 0:l.replace(":",_r))==null?void 0:r.split(_r))==null?void 0:i[1])),l=(t=l==null?void 0:l.replaceAll("{",""))==null?void 0:t.replaceAll("}",""),(c=(f=l==null?void 0:l.split("="))==null?void 0:f[1])!=null&&c.includes("$")){(l==null?void 0:l[0])==="("&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1));let G=(u=l==null?void 0:l.split("="))==null?void 0:u[0],A=(m=l==null?void 0:l.split("="))==null?void 0:m[1];(g=A==null?void 0:A.slice(1,A==null?void 0:A.length))!=null&&g.includes("$")&&(A=(M=(p=(_=fn==null?void 0:fn.value)==null?void 0:_.filter(P=>(P==null?void 0:P.condition)==="child"))==null?void 0:p[0])==null?void 0:M.value),l=G+"="+A}if((l==null?void 0:l[0])!=="("&&(l="("+l+")"),l.slice(1,(l==null?void 0:l.length)-1)==="undefined")return a==null?void 0:a.contents;let n=ie.calculatorAndToOr(l);if((n==null?void 0:n.length)>0){let G=[];return n==null||n.forEach(P=>{let O={};for(let E in P){let x=E;x!=null&&x.includes("[")||(O[x]=P[E])}G.push(O)}),(w=a==null?void 0:a.contents)==null?void 0:w.map(P=>{var E,x,S;let O=(x=(E=a==null?void 0:a.contents)==null?void 0:E.find(b=>(b==null?void 0:b.key)==="header"))==null?void 0:x.contents;if(O=(S=ie.getEqualChild(O))==null?void 0:S.filter(b=>(b==null?void 0:b.label)!=="操作"),(P==null?void 0:P.key)==="tableContents"){let C=ie.tableToForm(P==null?void 0:P.contents,O);G==null||G.forEach(R=>{var $,le;for(let ee in R)!(($=C==null?void 0:C[0])!=null&&$.find(_e=>{var pe;return(_e==null?void 0:_e.key)===ee||((pe=_e==null?void 0:_e.key)==null?void 0:pe.includes(ee))}))&&!(C!=null&&C.find(_e=>{var pe;return(_e==null?void 0:_e.key)===ee||((pe=_e==null?void 0:_e.key)==null?void 0:pe.includes(ee))}))||(((le=R[ee])==null?void 0:le[0])!=="!"?C=C==null?void 0:C.filter(_e=>{var pe,H;return((pe=_e==null?void 0:_e.find(F=>{var X;return(F==null?void 0:F.key)===ee||((X=F==null?void 0:F.key)==null?void 0:X.includes(ee))}))==null?void 0:pe.value)===R[ee]||Array.isArray(R==null?void 0:R[ee])&&((H=R==null?void 0:R[ee])==null?void 0:H.find(F=>{var X;return((X=_e==null?void 0:_e.find(re=>{var ve;return(re==null?void 0:re.key)===ee||((ve=re==null?void 0:re.key)==null?void 0:ve.includes(ee))}))==null?void 0:X.value)===F}))}):C=C==null?void 0:C.filter(_e=>{var pe;return((pe=_e==null?void 0:_e.find(H=>{var F;return(H==null?void 0:H.key)===ee||((F=H==null?void 0:H.key)==null?void 0:F.includes(ee))}))==null?void 0:pe.value)!==R[ee]}))}),(C==null?void 0:C.length)===0?P.contents=[]:P.contents=C==null?void 0:C.map(R=>{let $={};return R==null||R.forEach(le=>{$[le==null?void 0:le.key]=le==null?void 0:le.value}),$})}return P})}return a==null?void 0:a.contents},wp=a=>a==null?void 0:a.contents,_p=a=>a==null?void 0:a.contents,Sp=a=>{var l,n,r,i;if((a==null?void 0:a.filter)!==""&&(a!=null&&a.filter)){let t=(r=(n=a==null?void 0:a.filter)==null?void 0:n.slice(1,((l=a==null?void 0:a.filter)==null?void 0:l.length)-1))==null?void 0:r.split(",");return(i=a==null?void 0:a.contents)==null?void 0:i.map(c=>((c==null?void 0:c.key)==="header"&&(c.contents=_t(c.contents,t)),c))}return a==null?void 0:a.contents},Ep=a=>{var n,r,i,t,f;let l=(a==null?void 0:a.filter)??"";if(l!==""){let c=(r=(n=l==null?void 0:l.replace("(",_r))==null?void 0:n.split(_r))==null?void 0:r[1];c=c==null?void 0:c.slice(0,(c==null?void 0:c.length)-1),(c==null?void 0:c[(c==null?void 0:c.length)-1])===")"&&(c=c==null?void 0:c.slice(1,(c==null?void 0:c.length)-1)),c=(i=ie.analyzeSplitToContent(c,","))==null?void 0:i.map(_=>((_==null?void 0:_[(_==null?void 0:_.length)-1])===","&&(_=_==null?void 0:_.slice(0,(_==null?void 0:_.length)-1)),_));let u=c==null?void 0:c[0];(u==null?void 0:u[0])==="("&&(u=u==null?void 0:u.slice(1,(u==null?void 0:u.length)-1));let m=(c==null?void 0:c[1])??"Up",g=(t=a==null?void 0:a.contents)==null?void 0:t.map(_=>{var p,M;if(m==="Up"){if((_==null?void 0:_.key)==="extraButton"){let w=(p=u==null?void 0:u.split(","))==null?void 0:p.map(G=>({label:G,prop:G}));_.contents=[...w??[],..._.contents]}}else if(m==="Line"&&(_==null?void 0:_.key)==="rowButton"){let w=(M=u==null?void 0:u.split(","))==null?void 0:M.map(G=>({label:G,prop:G}));_.contents=[...w??[],..._.contents]}return _});if(m==="Bottom"||m==="Down"){let _=(f=u==null?void 0:u.split(","))==null?void 0:f.map(p=>({label:p,prop:p}));g.push({key:"bottomButton",contents:_})}return g}return a==null?void 0:a.contents},Cp=a=>a==null?void 0:a.contents,Dp=a=>{var n;let l=(a==null?void 0:a.filter)??"";return(l==null?void 0:l[0])==="{"&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1)),l!==""?(n=a==null?void 0:a.contents)==null?void 0:n.map(i=>{var t;return(i==null?void 0:i.key)==="rowButton"&&(i.contents=(t=l==null?void 0:l.split(","))==null?void 0:t.map(f=>({label:f,prop:f}))),i}):a==null?void 0:a.contents},Tp=a=>{var n;let l=(a==null?void 0:a.filter)??"";if((l==null?void 0:l[0])==="{"&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1)),l!==""){let r=a==null?void 0:a.contents,i=(n=l==null?void 0:l.split(","))==null?void 0:n.map(t=>({label:t,prop:t}));return r.push({key:"bottomButton",contents:i}),r}return a==null?void 0:a.contents},Bp=a=>{if((a==null?void 0:a.filter)==="Read"){let l=a==null?void 0:a.contents;return l=l==null?void 0:l.map(n=>{var r;return(n==null?void 0:n.key)==="formContent"&&(n.contents=(r=n.contents)==null?void 0:r.map(i=>(i.isNoClick=!0,i))),n}),l!=null&&l.find(n=>(n==null?void 0:n.key)==="tableContents")&&(l==null||l.push({key:"isEdit",contents:!1}),l=l==null?void 0:l.filter(n=>(n==null?void 0:n.key)!=="extraButton"&&(n==null?void 0:n.key)!=="rowButton")),l}return a==null?void 0:a.contents},Np=a=>{var l;if(a!=null&&a.filter){const n=parseInt(a==null?void 0:a.filter);return!n||Number.isNaN(n)?a==null?void 0:a.contents:(l=a==null?void 0:a.contents)==null?void 0:l.map(i=>{var t;return(i==null?void 0:i.key)==="formContent"&&(i.contents=(t=i.contents)==null?void 0:t.map(f=>(f.width=n,f))),i})}return a==null?void 0:a.contents},Ap=a=>{var l,n,r,i;if(((l=a==null?void 0:a.filter)==null?void 0:l[0])!=="["){const t=parseInt(a==null?void 0:a.filter);return!t||Number.isNaN(t)?a==null?void 0:a.contents:(n=a==null?void 0:a.contents)==null?void 0:n.map(c=>{var u;return(c==null?void 0:c.key)==="formContent"&&(c.contents=(u=c.contents)==null?void 0:u.map(m=>(m.width=t,m))),c})}if(((r=a==null?void 0:a.filter)==null?void 0:r[0])==="["){let t=zi(a==null?void 0:a.filter),f=Array.isArray(t)?t.map(u=>parseInt(u)).filter(u=>!!u&&!Number.isNaN(u)):[];return f.length?(i=a==null?void 0:a.contents)==null?void 0:i.map(u=>{if((u==null?void 0:u.key)==="formContent"){const m=u.contents??[];u.contents=m.map((g,_)=>{const p=_+1;let M=0,w=0;for(let A=0;A<f.length;A++){if(w+=f[A],p<=w){M=A;break}A===f.length-1&&(M=f.length-1)}const G=f[M]||f[f.length-1]||1;return g.width=G,g})}return u}):a==null?void 0:a.contents}return a==null?void 0:a.contents},zp=a=>{var l;if((a==null?void 0:a.filter)!==""){let n=a==null?void 0:a.filter;return(n==null?void 0:n[0])==="("&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n=n==null?void 0:n.split(","),(l=a==null?void 0:a.contents)==null?void 0:l.map(i=>{var t,f,c;return(i==null?void 0:i.key)==="header"&&(Array.isArray((t=i==null?void 0:i.contents)==null?void 0:t[0])?i.contents[0]=(c=i.contents[0])==null?void 0:c.map(u=>(n!=null&&n.find(m=>m===(u==null?void 0:u.prop))&&(u.fixed="left"),u)):i.contents=(f=i.contents)==null?void 0:f.map(u=>(n!=null&&n.find(m=>m===(u==null?void 0:u.prop))&&(u.fixed="left"),u))),i})}return a==null?void 0:a.contents},Mp=a=>{var l;if((a==null?void 0:a.filter)!==""){let n=a==null?void 0:a.filter;(n==null?void 0:n[0])==="("&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n=n==null?void 0:n.split(",");const r=t=>(n!=null&&n.find(f=>f===(t==null?void 0:t.prop))&&(t.required=!0),t!=null&&t.children&&Array.isArray(t.children)&&(t.children=t.children.map(f=>r(f))),t);return(l=a==null?void 0:a.contents)==null?void 0:l.map(t=>{var f,c,u;return(t==null?void 0:t.key)==="header"&&(Array.isArray((f=t==null?void 0:t.contents)==null?void 0:f[0])?t.contents[0]=(u=t.contents[0])==null?void 0:u.map(m=>r(m)):t.contents=(c=t.contents)==null?void 0:c.map(m=>r(m))),t})}return a==null?void 0:a.contents},Ip=async a=>{var r,i,t,f,c,u,m,g,_,p,M,w,G,A,P,O,E;const l=z.useUnit(z.pinia),{chooseTitle:n}=z.storeToRefs(l);if((a==null?void 0:a.filter)==="true"){let x=await Xr(((i=(r=n==null?void 0:n.value)==null?void 0:r[0])==null?void 0:i.parentContent)??((f=(t=n==null?void 0:n.value)==null?void 0:t[0])==null?void 0:f.relatedContent),!1),S=(u=(c=n==null?void 0:n.value)==null?void 0:c[0])==null?void 0:u.value;(g=(m=x==null?void 0:x[0])==null?void 0:m.compData)!=null&&g.find($=>($==null?void 0:$.key)==="header")?x=(_=x==null?void 0:x[0])==null?void 0:_.compData:x=(M=(p=x==null?void 0:x.filter($=>{var le;return(le=$==null?void 0:$.compData)==null?void 0:le.find(ee=>(ee==null?void 0:ee.key)==="header")}))==null?void 0:p[0])==null?void 0:M.compData;let b=(w=x==null?void 0:x.find($=>($==null?void 0:$.key)==="header"))==null?void 0:w.contents;Array.isArray(b==null?void 0:b[0])&&(b=b==null?void 0:b[0]),b=((G=b==null?void 0:b.find($=>$==null?void 0:$.isMainKey))==null?void 0:G.prop)??((A=b==null?void 0:b[0])==null?void 0:A.prop);let C=(O=(P=x==null?void 0:x.find($=>($==null?void 0:$.key)==="tableContents"))==null?void 0:P.contents)==null?void 0:O.find($=>($==null?void 0:$[b])===S);return(E=a==null?void 0:a.contents)==null?void 0:E.map($=>{var le;return($==null?void 0:$.key)==="formContent"&&($.contents=(le=$.contents)==null?void 0:le.map(ee=>(ee.value=C==null?void 0:C[ee==null?void 0:ee.prop],ee))),$})}return a==null?void 0:a.contents},Op=a=>{var l,n,r,i,t;if((l=a==null?void 0:a.extra)!=null&&l.row){let f=a==null?void 0:a.filter;if(f!=null&&f.includes("*")&&(f="({"+((r=(n=f==null?void 0:f.replace("{",_r))==null?void 0:n.split(_r))==null?void 0:r[1])),f=(i=f==null?void 0:f.replaceAll("{",""))==null?void 0:i.replaceAll("}",""),(f==null?void 0:f[0])!=="("&&(f="("+f+")"),f.slice(1,(f==null?void 0:f.length)-1)==="undefined")return a==null?void 0:a.contents;let c=ie.calculatorAndToOr(f),u=c==null?void 0:c[0],m=(t=a==null?void 0:a.extra)==null?void 0:t.row,g=[];for(let _ in u)(u==null?void 0:u[_])===(m==null?void 0:m[_])?g.push(!0):g.push(!1);return g!=null&&g.every(_=>_===!0)?a==null?void 0:a.contents:[]}else return a==null?void 0:a.contents},Lp=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},Rp=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},$p=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},Vp=a=>{var l;if(a!=null&&a.filter){let n=a==null?void 0:a.contents,r=a==null?void 0:a.filter;return(r==null?void 0:r[0])==="("&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),r=(l=ie.analyzeSplitToContent(r,","))==null?void 0:l.map(i=>((i==null?void 0:i[(i==null?void 0:i.length)-1])===","&&(i=i==null?void 0:i.slice(0,(i==null?void 0:i.length)-1)),i)),n.push({key:"stepName",contents:r}),n}return a==null?void 0:a.contents},Fp=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},fc={onNumSlice:gp,onRandomContents:bp,onConditionContents:xp,onFatherPaceContents:wp,onPaceContents:_p,onMainTagContents:Sp,onButtonContents:Ep,onPamButtonContents:Cp,onRowButtonContents:Dp,onRelated:Ip,onRowNum:Ap,onFixRow:zp,onReqItem:Mp,onBottomButtonContents:Tp,onConditionContent:Op,onTabs:Lp,onSinChoice:Rp,onTextSize:mp,onTextRGBA:yp,onPosition:hp,onSize:vp,onShowType:$p,onStepName:Vp,onStep:Fp,onInterfaceTypeContents:kp,onBackGround:fp,onMaxColumn:Np,onEditRead:Bp,onShowHide:pp},Pp=async(a,l,n="")=>{var f,c,u,m,g,_,p,M,w,G,A,P;let r="";if(((f=a==null?void 0:a.find(O=>(O==null?void 0:O.key)==="filter"))==null?void 0:f.contents)!==""&&(r=(c=a==null?void 0:a.find(O=>(O==null?void 0:O.key)==="filter"))==null?void 0:c.contents),r===""||!r)return a;(r==null?void 0:r[0])==="("?r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1):(r=(m=(u=r==null?void 0:r.replace("(",_r))==null?void 0:u.split(_r))==null?void 0:m[1],r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1));let i=(g=ie.analyzeSplitToContent(r,","))==null?void 0:g.map(O=>((O==null?void 0:O[(O==null?void 0:O.length)-1])===","&&(O=O==null?void 0:O.slice(0,(O==null?void 0:O.length)-1)),O!=null&&O.includes("(")||(O=O==null?void 0:O.replaceAll(":","=")),O)),t=a;for(let O in i){let E,x="";E=(M=(p=(_=i==null?void 0:i[O])==null?void 0:_.replace("=",_r))==null?void 0:p.split(_r))==null?void 0:M[0],x=(A=(G=(w=i==null?void 0:i[O])==null?void 0:w.replace("=",_r))==null?void 0:G.split(_r))==null?void 0:A[1];let S=(P=En==null?void 0:En.find(b=>(b==null?void 0:b.key)===E))==null?void 0:P.value;if(S){const b=fc[S];t=await b({contents:t,filter:x,extra:l,groupName:n})}}return t},Po=async(a,l,n="")=>{var c,u,m,g,_,p,M,w,G,A,P,O,E,x,S,b,C,R,$,le;let r="";if(((c=a==null?void 0:a.find(ee=>(ee==null?void 0:ee.key)==="filter"))==null?void 0:c.contents)!==""&&(r=(u=a==null?void 0:a.find(ee=>(ee==null?void 0:ee.key)==="filter"))==null?void 0:u.contents),r===""||!r)return a;(r==null?void 0:r[0])===","&&(r=r==null?void 0:r.slice(1,r==null?void 0:r.length)),(r==null?void 0:r[0])==="("?r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1):(r==null?void 0:r[0])==="@"||(r=(g=(m=r==null?void 0:r.replace("(",_r))==null?void 0:m.split(_r))==null?void 0:g[1],r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1));let i=(_=ie.analyzeSplitToContent(r,","))==null?void 0:_.map(ee=>((ee==null?void 0:ee[(ee==null?void 0:ee.length)-1])===","&&(ee=ee==null?void 0:ee.slice(0,(ee==null?void 0:ee.length)-1)),ee!=null&&ee.includes("(")||(ee=ee==null?void 0:ee.replaceAll(":","=")),ee)),t=a,f=new Map;i==null||i.forEach(ee=>{var pe,H,F;let _e=(pe=ee==null?void 0:ee.split("="))==null?void 0:pe[0];if(_e==="@MainParam"&&f.get(_e)){let X=f.get(_e);X=X==null?void 0:X.slice(0,(X==null?void 0:X.length)-1);let re=(F=(H=ee==null?void 0:ee.replace("{",_r))==null?void 0:H.split(_r))==null?void 0:F[1];re=X+","+re,f.set(_e,re)}else _e==="@Button"&&f.get(_e)?f.set(ee,ee):f.set(_e,ee)}),i=Array.from(f.values()),i=i==null?void 0:i.sort((ee,_e)=>{var pe,H;return((pe=En==null?void 0:En.find(F=>_e==null?void 0:_e.includes(F==null?void 0:F.key)))==null?void 0:pe.order)-((H=En==null?void 0:En.find(F=>ee==null?void 0:ee.includes(F==null?void 0:F.key)))==null?void 0:H.order)});for(let ee in i){let _e,pe="";(p=i==null?void 0:i[ee])!=null&&p.includes("(")&&((M=i==null?void 0:i[ee])!=null&&M.includes("@If"))?(_e=(A=(G=(w=i==null?void 0:i[ee])==null?void 0:w.replace("(",_r))==null?void 0:G.split(_r))==null?void 0:A[0],pe="("+((E=(O=(P=i==null?void 0:i[ee])==null?void 0:P.replace("(",_r))==null?void 0:O.split(_r))==null?void 0:E[1])):(_e=(b=(S=(x=i==null?void 0:i[ee])==null?void 0:x.replace("=",_r))==null?void 0:S.split(_r))==null?void 0:b[0],pe=($=(R=(C=i==null?void 0:i[ee])==null?void 0:C.replace("=",_r))==null?void 0:R.split(_r))==null?void 0:$[1]);let H=(le=En==null?void 0:En.find(F=>(F==null?void 0:F.key)===_e))==null?void 0:le.value;if(H){const F=fc[H];t=await F({contents:t,filter:pe,extra:l,groupName:n})}}return t},hc=a=>{if(a==null)return null;const l=String(a).trim();if(!l.startsWith("(")||!l.endsWith(")"))return null;const n=l.slice(1,-1).split(",").map(r=>Number(r.trim()));return n.length<2||n.some(r=>Number.isNaN(r))?null:[n[0],n[1]]},vc=(a,l)=>{var G,A,P,O,E;const n=Array.isArray(a)?a:[],r=n.find(x=>(x==null?void 0:x.key)==="formContent"),i=Array.isArray(r==null?void 0:r.contents)?r.contents:[],t=((G=n.find(x=>(x==null?void 0:x.key)==="_gridLayoutMeta"))==null?void 0:G.contents)??{},f=(i==null?void 0:i[0])??{};let c=((A=l==null?void 0:l.position)==null?void 0:A[0])??(t==null?void 0:t._positionStartRow)??(f==null?void 0:f._positionStartRow),u=((P=l==null?void 0:l.position)==null?void 0:P[1])??(t==null?void 0:t._positionRowSpan)??(f==null?void 0:f._positionRowSpan);(!c||Number.isNaN(c)||c<1)&&(c=1),(!u||Number.isNaN(u)||u<1)&&(u=1);let m=((O=l==null?void 0:l.size)==null?void 0:O[0])??(t==null?void 0:t._sizeStart)??(f==null?void 0:f._sizeStart),g=((E=l==null?void 0:l.size)==null?void 0:E[1])??(t==null?void 0:t._sizeEnd)??(f==null?void 0:f._sizeEnd);(m===void 0||Number.isNaN(m))&&(m=0),(g===void 0||Number.isNaN(g))&&(g=1),m=Math.max(0,Math.min(1,m)),g=Math.max(0,Math.min(1,g)),g<=m&&(m=0,g=1);const _=g-m,p=Math.max(1,Math.round(1/_));let M=n.map(x=>{if((x==null?void 0:x.key)!=="formContent")return x;const S=Array.isArray(x==null?void 0:x.contents)?x.contents:[];return{...x,contents:S.map(b=>({...b,width:p,_positionStartRow:c,_positionRowSpan:u,_sizeStart:m,_sizeEnd:g}))}});const w={_positionStartRow:c,_positionRowSpan:u,_sizeStart:m,_sizeEnd:g};return M.some(x=>(x==null?void 0:x.key)==="_gridLayoutMeta")?M=M.map(x=>(x==null?void 0:x.key)==="_gridLayoutMeta"?{...x,contents:w}:x):M.push({key:"_gridLayoutMeta",contents:w}),M};let go="$R";const jp=z.useUnit(z.pinia),{selectTitle:Hp}=z.storeToRefs(jp);let Up=[{label:"新增",prop:"新增"},{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],qp=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"},{label:"复制新增",prop:"复制新增"},{label:"删除",prop:"删除"}],Wp=[{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],Kp=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"}];const vs=async(a,l,n=!0)=>{let r=[],i=a==null?void 0:a.map(async t=>{var _,p,M,w,G,A,P,O,E,x,S,b,C,R,$,le,ee,_e,pe,H,F,X,re,ve,Re,ce,B,te,q,xe,Me,$e,Qe,_a,oe,sa,de,ea,Ae,ue,he,Ge,wa,Ia,U,V,Q,fe,me,ua,ta,je,ba,Ta,Ee,Pa,Ea,ia,Ba,Ce,ka,Je,K,J,Fe,We,Na,da,Aa,Oe,He,Ie,Ve,we,ol,Sl,Ll,Vl,zl,Jl,rl,Fl,Wa,Kl,Wl,Nl,Tl,zr,$a,Ka,pa,ja,na,Ya,xl,Te,ra,Ua,De,Ra,el,ml,El;let f=(w=(M=(p=(_=t==null?void 0:t.contents)==null?void 0:_.find(ze=>{var ha;return(ha=ze==null?void 0:ze.key)==null?void 0:ha.includes("struct")}))==null?void 0:p.value)==null?void 0:M[0])==null?void 0:w.类型,c=Object.values(t==null?void 0:t.name);c=c==null?void 0:c.reverse();let u=(G=t==null?void 0:t.contents)==null?void 0:G.map(ze=>ze==null?void 0:ze.key),m={comp:f,isShow:t==null?void 0:t.is_show,name:c==null?void 0:c[0],id:t==null?void 0:t.object_id,order_no:t==null?void 0:t.order_no,relatedTables:u,menuFilter:(A=t==null?void 0:t.filter)==null?void 0:A.menuFilter,status:t==null?void 0:t.status,fatherSyncContents:(P=t==null?void 0:t.filter)==null?void 0:P.fatherSyncs,relatedQuotes:(O=t==null?void 0:t.filter)==null?void 0:O.quotes,sonSyncContents:(E=t==null?void 0:t.filter)==null?void 0:E.sonSyncs,nameContents:(x=z.cloneDeep(c))==null?void 0:x.reverse(),isHidden:!1,calculatorFilters:($=(R=(C=(b=(S=t==null?void 0:t.contents)==null?void 0:S.find(ze=>{var ha;return(ha=ze==null?void 0:ze.key)==null?void 0:ha.includes("struct")}))==null?void 0:b.value)==null?void 0:C[0])==null?void 0:R.算法)==null?void 0:$.contents};for(let ze in c)parseInt(ze)>=1&&(m[`name${parseInt(ze)-1}`]=c[ze]);let g=Array.isArray((le=t==null?void 0:t.filter)==null?void 0:le.menuFilter)?(ee=t==null?void 0:t.filter)==null?void 0:ee.menuFilter:[];if(((_e=g==null?void 0:g.filter(ze=>ze==null?void 0:ze.includes("@If")))==null?void 0:_e.length)>0){let ze=g==null?void 0:g.filter(Le=>Le==null?void 0:Le.includes("@If"));ze=ze==null?void 0:ze[0],ze=(H=(pe=ze==null?void 0:ze.replace("(",go))==null?void 0:pe.split(go))==null?void 0:H[1],ze=ze==null?void 0:ze.slice(0,(ze==null?void 0:ze.length)-1),ze!=null&&ze.includes("*")&&(ze=(X=(F=ze==null?void 0:ze.replace("{",go))==null?void 0:F.split(go))==null?void 0:X[1],ze=ze==null?void 0:ze.replace("}","")),ze=ie.calculatorAndToOr(ze);let ha=(l==null?void 0:l.originPath)??"";(ha==null?void 0:ha[(ha==null?void 0:ha.length)-1])==="/"&&(ha=ha==null?void 0:ha.slice(0,(ha==null?void 0:ha.length)-1));let ca=await Xr(ha,!1),ga=(re=ca==null?void 0:ca.filter(Le=>(Le==null?void 0:Le.comp)==="Table"))==null?void 0:re[0];ga=(Re=(ve=ga==null?void 0:ga.compData)==null?void 0:ve.find(Le=>(Le==null?void 0:Le.key)==="tableContents"))==null?void 0:Re.contents;let ma=(B=(ce=Hp.value)==null?void 0:ce.find(Le=>(Le==null?void 0:Le.condition)==="child"))==null?void 0:B.value;ga=(te=ga==null?void 0:ga.map(Le=>{for(let yl in Le)if((Le==null?void 0:Le[yl])===ma)return Le}))==null?void 0:te.filter(Le=>Le),ga=ga==null?void 0:ga[0],ze=ze==null?void 0:ze[0];let cl=[];for(let Le in ze){let yl="";Xa.isObject(ga)&&(yl=(xe=(q=Object.keys(ga))==null?void 0:q.filter(Be=>Be==null?void 0:Be.includes("."+Le)))==null?void 0:xe[0]),yl!==""&&(ga!=null&&ga[yl])&&(ze==null?void 0:ze[Le])===(ga==null?void 0:ga[yl])||ga!=null&&ga[Le]&&(ze==null?void 0:ze[Le])===(ga==null?void 0:ga[Le])?cl.push(!0):cl.push(!1)}if(cl!=null&&cl.some(Le=>Le===!1)&&(($e=l==null?void 0:l.originPath)==null?void 0:$e[((Me=l==null?void 0:l.originPath)==null?void 0:Me.length)-1])!=="/")return}if(f==="Table"||f==="Method"){!n&&((Qe=m==null?void 0:m.fatherSyncContents)==null?void 0:Qe.length)>0;let ze=((_a=t==null?void 0:t.contents)==null?void 0:_a.find(Sa=>{var pl;return(pl=Sa==null?void 0:Sa.key)==null?void 0:pl.includes("content")}))||[],ha=[];m.comp="Table",ze.value=(oe=ze==null?void 0:ze.value)==null?void 0:oe.sort((Sa,pl)=>parseInt(Sa==null?void 0:Sa.id)-parseInt(pl==null?void 0:pl.id)),ze.value=(sa=ze==null?void 0:ze.value)==null?void 0:sa.map(Sa=>{let pl={};for(let Qa in Sa)JSON.stringify(Sa==null?void 0:Sa[Qa])==="{}"?pl[Qa]="":pl[Qa]=Sa==null?void 0:Sa[Qa];return pl}),ha.push({key:"tableContents",contents:ze==null?void 0:ze.value});let ca=(he=(ue=(Ae=(ea=(de=t==null?void 0:t.contents)==null?void 0:de.find(Sa=>{var pl;return(pl=Sa==null?void 0:Sa.key)==null?void 0:pl.includes("struct")}))==null?void 0:ea.value)==null?void 0:Ae[0])==null?void 0:ue.结构)==null?void 0:he.contents;Array.isArray(ca==null?void 0:ca[0])?ca[0]=(Ge=ca==null?void 0:ca[0])==null?void 0:Ge.filter(Sa=>(Sa==null?void 0:Sa.prop)!=="sort"&&(Sa==null?void 0:Sa.prop)!=="relatedId"):ca=ca==null?void 0:ca.filter(Sa=>(Sa==null?void 0:Sa.prop)!=="sort"&&(Sa==null?void 0:Sa.prop)!=="relatedId"),ha.push({key:"header",contents:ca}),ha.push({key:"filter",contents:(Q=(V=(U=(Ia=(wa=t==null?void 0:t.contents)==null?void 0:wa.find(Sa=>{var pl;return(pl=Sa==null?void 0:Sa.key)==null?void 0:pl.includes("struct")}))==null?void 0:Ia.value)==null?void 0:U[0])==null?void 0:V.引用)==null?void 0:Q.contents});let ga=Up,ma=z.cloneDeep(qp);f==="Method"&&ma.push({label:"生成方法",prop:"生成方法"}),!Array.isArray(ca==null?void 0:ca[0])&&((fe=ca==null?void 0:ca[0])==null?void 0:fe.prop)==="disabled"&&(ga=Wp,ma=Kp);const cl=["推力","真空","压力","温度","流量"],Le=m.name;Le&&cl.includes(Le)&&(ga=[...ga],ga.push({label:"导出paraform",prop:"导出paraform",type:"methodButton"}));let yl=[];if(!Array.isArray(ca==null?void 0:ca[0])&&(ca!=null&&ca.some(Sa=>{var pl;return(Sa==null?void 0:Sa.calculatorFilter)&&((pl=Sa==null?void 0:Sa.calculatorFilter)==null?void 0:pl.includes("Manual"))}))){let Sa=(me=ca==null?void 0:ca.map(pl=>pl==null?void 0:pl.calculatorFilter))==null?void 0:me.filter(pl=>pl&&(pl==null?void 0:pl.includes("Manual")));Sa==null||Sa.forEach(pl=>{var gl;let Qa=ie.analyzeSplitToContent(pl,",");if(Qa=Qa==null?void 0:Qa.map(Oa=>((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)),Qa!=null&&Qa.find(Oa=>(Oa==null?void 0:Oa.includes("Extent"))&&(Oa==null?void 0:Oa.includes("Row")))&&(Qa!=null&&Qa.find(Oa=>(Oa==null?void 0:Oa.includes("Button"))&&(Oa==null?void 0:Oa.includes(","))))){let Oa=Qa==null?void 0:Qa.find(Pl=>Pl==null?void 0:Pl.includes("@FunctionButton"));Oa=(gl=Oa==null?void 0:Oa.split("="))==null?void 0:gl[1],Oa=Oa==null?void 0:Oa.slice(1,(Oa==null?void 0:Oa.length)-1),Oa=Oa==null?void 0:Oa.split(","),Oa=Oa==null?void 0:Oa[(Oa==null?void 0:Oa.length)-1],yl.push(Oa)}}),yl=[...new Set(yl)],yl=yl==null?void 0:yl.map(pl=>({label:pl,prop:pl,type:"methodButton"}))}else if(Array.isArray(ca==null?void 0:ca[0])&&((ua=ie.getColumnChild(ca==null?void 0:ca[0]))!=null&&ua.some(Sa=>{var pl;return(Sa==null?void 0:Sa.calculatorFilter)&&((pl=Sa==null?void 0:Sa.calculatorFilter)==null?void 0:pl.includes("Manual"))}))){let Sa=(je=(ta=ie.getColumnChild(ca==null?void 0:ca[0]))==null?void 0:ta.map(pl=>pl==null?void 0:pl.calculatorFilter))==null?void 0:je.filter(pl=>pl&&(pl==null?void 0:pl.includes("Manual")));Sa==null||Sa.forEach(pl=>{var gl;let Qa=ie.analyzeSplitToContent(pl,",");if(Qa=Qa==null?void 0:Qa.map(Oa=>((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)),Qa!=null&&Qa.find(Oa=>(Oa==null?void 0:Oa.includes("Extent"))&&(Oa==null?void 0:Oa.includes("Row")))&&(Qa!=null&&Qa.find(Oa=>(Oa==null?void 0:Oa.includes("Button"))&&(Oa==null?void 0:Oa.includes(","))))){let Oa=Qa==null?void 0:Qa.find(Pl=>Pl==null?void 0:Pl.includes("@FunctionButton"));Oa=(gl=Oa==null?void 0:Oa.split("="))==null?void 0:gl[1],Oa=Oa==null?void 0:Oa.slice(1,(Oa==null?void 0:Oa.length)-1),Oa=Oa==null?void 0:Oa.split(","),Oa=Oa==null?void 0:Oa[(Oa==null?void 0:Oa.length)-1],yl.push(Oa)}}),yl=[...new Set(yl)],yl=yl==null?void 0:yl.map(pl=>({label:pl,prop:pl,type:"methodButton"}))}if(ha.push({key:"extraButton",contents:ga}),ha.push({key:"rowButton",contents:[...ma,...yl]}),m.compData=await Po(ha,l,m==null?void 0:m.nameContents),(ba=m.compData)!=null&&ba.find(Sa=>(Sa==null?void 0:Sa.key)==="tab")&&(m.tab=(Ee=(Ta=m.compData)==null?void 0:Ta.find(Sa=>(Sa==null?void 0:Sa.key)==="tab"))==null?void 0:Ee.contents),(Pa=m.compData)!=null&&Pa.find(Sa=>(Sa==null?void 0:Sa.key)==="step")&&(m.step=(ia=(Ea=m.compData)==null?void 0:Ea.find(Sa=>(Sa==null?void 0:Sa.key)==="step"))==null?void 0:ia.contents),(Ba=m.compData)!=null&&Ba.find(Sa=>(Sa==null?void 0:Sa.key)==="choice")&&(m.choice=(ka=(Ce=m.compData)==null?void 0:Ce.find(Sa=>(Sa==null?void 0:Sa.key)==="choice"))==null?void 0:ka.contents),(Je=m.compData)!=null&&Je.find(Sa=>(Sa==null?void 0:Sa.key)==="hideContents")&&(m.isHidden=((J=(K=m.compData)==null?void 0:K.find(Sa=>(Sa==null?void 0:Sa.key)==="hideContents"))==null?void 0:J.contents)??!1),(Fe=m.compData)!=null&&Fe.find(Sa=>(Sa==null?void 0:Sa.key)==="newType")){let Sa=(Na=(We=m.compData)==null?void 0:We.find(pl=>(pl==null?void 0:pl.key)==="newType"))==null?void 0:Na.contents;m.comp=Sa,m.compData=(da=m.compData)==null?void 0:da.filter(pl=>(pl==null?void 0:pl.key)!=="newType")}let Be="",Ul=(Aa=m==null?void 0:m.compData)==null?void 0:Aa.filter(Sa=>(Sa==null?void 0:Sa.key)==="fixType");if((Ul==null?void 0:Ul.length)>0&&n&&(Be=(Oe=Ul==null?void 0:Ul[0])==null?void 0:Oe.contents,m.comp=Be),((He=m==null?void 0:m.calculatorFilters)==null?void 0:He.length)>0){let Sa=[],pl=[],Qa=[];(Ie=m==null?void 0:m.calculatorFilters)==null||Ie.forEach(gl=>{var Oa,Pl,Sr;(Oa=gl==null?void 0:gl.calculatorFilter)!=null&&Oa.includes("Up")&&Sa.push({label:gl==null?void 0:gl.functionName,prop:gl==null?void 0:gl.functionName,type:"methodButton"}),(Pl=gl==null?void 0:gl.calculatorFilter)!=null&&Pl.includes("Line")&&pl.push({label:gl==null?void 0:gl.functionName,prop:gl==null?void 0:gl.functionName,type:"methodButton"}),(Sr=gl==null?void 0:gl.calculatorFilter)!=null&&Sr.includes("Down")&&Qa.push({label:gl==null?void 0:gl.functionName,prop:gl==null?void 0:gl.functionName,type:"methodButton"})}),m.compData=(Ve=m.compData)==null?void 0:Ve.map(gl=>((gl==null?void 0:gl.key)==="extraButton"&&(gl.contents=[...Sa??[],...gl.contents]),(gl==null?void 0:gl.key)==="rowButton"&&(gl.contents=[...pl??[],...gl.contents]),(gl==null?void 0:gl.key)==="bottomButton"&&(gl.contents=[...Qa??[],...gl.contents]),gl)),(Qa==null?void 0:Qa.length)>0&&!((ol=(we=m.compData)==null?void 0:we.find(gl=>(gl==null?void 0:gl.key)==="bottomButton"))!=null&&ol.contents)&&m.compData.push({key:"bottomButton",contents:Qa})}}else if(f==="Form"){let ze=[],ha=(Vl=(Ll=(Sl=t==null?void 0:t.contents)==null?void 0:Sl.find(Le=>{var yl;return(yl=Le==null?void 0:Le.key)==null?void 0:yl.includes("content")}))==null?void 0:Ll.value)==null?void 0:Vl[0],ca=[],ga=Array.isArray((zl=t==null?void 0:t.filter)==null?void 0:zl.menuFilter)?(Jl=t==null?void 0:t.filter)==null?void 0:Jl.menuFilter:[];ga==null||ga.forEach(Le=>{if(Le!=null&&Le.includes("@Param(Hide=Yes, prop=")||Le!=null&&Le.includes("(Hide=Yes, prop=")){const yl=Le==null?void 0:Le.match(/prop=([^,)]+)/);yl!=null&&yl[1]&&ca.push(yl==null?void 0:yl[1])}});let ma=(Wl=(Kl=(Wa=(Fl=(rl=t==null?void 0:t.contents)==null?void 0:rl.find(Le=>{var yl;return(yl=Le==null?void 0:Le.key)==null?void 0:yl.includes("struct")}))==null?void 0:Fl.value)==null?void 0:Wa[0])==null?void 0:Kl.结构)==null?void 0:Wl.contents,cl=(Nl=ma==null?void 0:ma.map(Le=>(Le.value=ha==null?void 0:ha[Le==null?void 0:Le.prop],Le)))==null?void 0:Nl.filter(Le=>(Le==null?void 0:Le.prop)!=="sort"&&(Le==null?void 0:Le.prop)!=="relatedId");cl=cl==null?void 0:cl.map(Le=>(ca!=null&&ca.includes(Le==null?void 0:Le.prop)&&(Le.isHideInForm=!0),Le)),ze.push({key:"filter",contents:(pa=(Ka=($a=(zr=(Tl=t==null?void 0:t.contents)==null?void 0:Tl.find(Le=>{var yl;return(yl=Le==null?void 0:Le.key)==null?void 0:yl.includes("struct")}))==null?void 0:zr.value)==null?void 0:$a[0])==null?void 0:Ka.引用)==null?void 0:pa.contents}),ze.push({key:"formContent",contents:cl}),ze.push({key:"paramHideProps",contents:ca}),m.compData=await Pp(ze,l,m==null?void 0:m.nameContents),(ja=m.compData)!=null&&ja.find(Le=>(Le==null?void 0:Le.key)==="tab")&&(m.tab=(Ya=(na=m.compData)==null?void 0:na.find(Le=>(Le==null?void 0:Le.key)==="tab"))==null?void 0:Ya.contents),(xl=m.compData)!=null&&xl.find(Le=>(Le==null?void 0:Le.key)==="step")&&(m.step=(ra=(Te=m.compData)==null?void 0:Te.find(Le=>(Le==null?void 0:Le.key)==="step"))==null?void 0:ra.contents),(Ua=m.compData)!=null&&Ua.find(Le=>(Le==null?void 0:Le.key)==="choice")&&(m.choice=(Ra=(De=m.compData)==null?void 0:De.find(Le=>(Le==null?void 0:Le.key)==="choice"))==null?void 0:Ra.contents),(el=m.compData)!=null&&el.find(Le=>(Le==null?void 0:Le.key)==="hideContents")&&(m.isHidden=((El=(ml=m.compData)==null?void 0:ml.find(Le=>(Le==null?void 0:Le.key)==="hideContents"))==null?void 0:El.contents)??!1)}return m});return r=await Promise.all(i),r=r==null?void 0:r.filter(t=>!(t!=null&&t.isHidden)),r},Gp=z.useLoginState(z.pinia),{loginUserInfo:Wn}=z.storeToRefs(Gp),Yp=z.useUnit(z.pinia),{selectTitle:Jp}=z.storeToRefs(Yp),Xp=async(a,l="Manual",n=[])=>{var f;let r=a,i=(f=r==null?void 0:r.filter(c=>{var u;return(c==null?void 0:c.functionName)&&(l==="Manual"&&((u=c==null?void 0:c.calculatorFilter)==null?void 0:u.includes(l))||l!=="Manual")}))==null?void 0:f.map(c=>({prop:c==null?void 0:c.prop,label:c==null?void 0:c.label,methods:c==null?void 0:c.calculatorFilter,functionName:c==null?void 0:c.functionName,functionRelatedWords:c==null?void 0:c.functionRelatedWords})),t=r==null?void 0:r.map(async c=>{let u=i==null?void 0:i.filter(m=>(m==null?void 0:m.prop)===(c==null?void 0:c.prop));return c=await mc(c,u,r,l,r,n),c});return t=await Promise.all(t),t},St=async(a,l,n="Manual",r=[],i=[])=>{var m;let t=a,f;Array.isArray(l==null?void 0:l[0])?f=ie.getColumnChild(l==null?void 0:l[0]):f=l;let c=(m=f==null?void 0:f.filter(g=>{var _;return(g==null?void 0:g.calculatorFilter)&&((_=g==null?void 0:g.calculatorFilter)==null?void 0:_.includes(n))||(g==null?void 0:g.calculatorFilter)===""&&(g==null?void 0:g.functionName)}))==null?void 0:m.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&&(c=[...i==null?void 0:i.map(_=>({prop:"",label:"",methods:_==null?void 0:_.calculatorFilter,functionName:_==null?void 0:_.functionName,functionRelatedWords:_==null?void 0:_.functionRelatedWords})),...c]);let u=t==null?void 0:t.map(async g=>(g=await mc(g,c,f,n,t,r),g));return u=await Promise.all(u),u},Zp=a=>{let l=a==null?void 0:a.contents,n=a==null?void 0:a.valueString,r=a==null?void 0:a.prop,i=a==null?void 0:a.headers,t;return Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=ie.getValueToObjectValue(l,ie.getColumnContents(i))),n==null||n.forEach(f=>{var c;if(l!=null&&l[f]){let u=l==null?void 0:l[f];t=t?u?Hl.isEqual(u.toString(),t.toString()):void 0:u}else{let u=(c=i==null?void 0:i.find(g=>(g==null?void 0:g.label)===f))==null?void 0:c.prop,m=(l==null?void 0:l[u])??0;t=t?m?Hl.isEqual(m.toString(),t.toString()):void 0:m}}),l[r]=t===void 0?void 0:t?1:0,l},Ar=a=>{const[l,n,r]=z.cloneDeep(a).split(":").map(Number);let i=+a;return!a||!(a!=null&&a.includes(":"))?i:(l??0)*3600+(n??0)*60+(r??0)},Qn=a=>{const l=t=>t.toString().padStart(2,"0"),n=Math.floor(a/3600),r=Math.floor(a%3600/60),i=a%60;return`${l(n)}:${l(r)}:${parseInt(l(i))}`},Qp=a=>{let l=a==null?void 0:a.contents,n=a==null?void 0:a.valueString,r=a==null?void 0:a.prop,i=a==null?void 0:a.headers,t=a==null?void 0:a.typeString,f=a==null?void 0:a.allContents,c=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=ie.getValueToObjectValue(l,ie.getColumnContents(i))),n==null||n.forEach(u=>{var m,g,_,p,M,w,G,A,P;if(l!=null&&l[u]){if(t==="Row")if(!((g=((m=l==null?void 0:l[u])==null?void 0:m.toString())??"")!=null&&g.includes(":"))&&!((_=c==null?void 0:c.toString())!=null&&_.includes(":"))){let O=+(l==null?void 0:l[u]);c=c+O}else c=Ar(c.toString())+Ar((p=l==null?void 0:l[u])==null?void 0:p.toString()),c=Qn(c)}else if(t==="Row"){let O=(M=i==null?void 0:i.find(E=>(E==null?void 0:E.label)===u))==null?void 0:M.prop;if(!((G=Number.isNaN(l==null?void 0:l[O])?"":(w=l==null?void 0:l[O])==null?void 0:w.toString())!=null&&G.includes(":"))&&!((A=c==null?void 0:c.toString())!=null&&A.includes(":"))){let E=+((l==null?void 0:l[O])??0);c=c+E}else c=Ar(c==null?void 0:c.toString())+Ar((P=(l==null?void 0:l[O])??0)==null?void 0:P.toString()),c=Qn(c)}}),t==="Column"){let u=[];n==null||n.forEach(m=>{let g=f==null?void 0:f.map(_=>{var p;return(_==null?void 0:_[m])??(_==null?void 0:_[(p=i==null?void 0:i.find(M=>(M==null?void 0:M.label)===m))==null?void 0:p.prop])});u=[...u,...g]}),c=u.reduce((m,g)=>{let _=0;Number.isNaN(m)||(_=+m);let p=0;return Number.isNaN(g)||(p=+g),_+p},0)}return l[r]=c,l},ef=a=>{let l=a==null?void 0:a.contents,n=a==null?void 0:a.valueString,r=a==null?void 0:a.prop,i=a==null?void 0:a.headers,t=a==null?void 0:a.typeString,f=a==null?void 0:a.allContents,c=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=ie.getValueToObjectValue(l,ie.getColumnContents(i))),n==null||n.forEach(u=>{var m,g,_,p,M,w,G;if(l!=null&&l[u]){if(t==="Row")if(!((g=(m=l==null?void 0:l[u])==null?void 0:m.toString())!=null&&g.includes(":"))&&!((_=c==null?void 0:c.toString())!=null&&_.includes(":"))){let A=+(l==null?void 0:l[u]);c=c===0?c+A:c-A}else c=c===0?Ar(c.toString())+Ar(l==null?void 0:l[u].toString()):Ar(c.toString())-Ar(l==null?void 0:l[u].toString()),c=Qn(c)}else if(t==="Row"){let A=(p=i==null?void 0:i.find(P=>(P==null?void 0:P.label)===u))==null?void 0:p.prop;if(!((w=Number.isNaN(l==null?void 0:l[A])?"":(M=l==null?void 0:l[A])==null?void 0:M.toString())!=null&&w.includes(":"))&&!((G=c==null?void 0:c.toString())!=null&&G.includes(":"))){let P=+((l==null?void 0:l[A])??0);c=c===0?c+P:c-P}else c=c===0?Ar(c.toString())+Ar(((l==null?void 0:l[A])??0).toString()):Ar(c.toString())-Ar(((l==null?void 0:l[A])??0).toString()),c=Qn(c)}}),t==="Column"){let u=[];n==null||n.forEach(m=>{let g=f==null?void 0:f.map(_=>{var p;return(_==null?void 0:_[m])??(_==null?void 0:_[(p=i==null?void 0:i.find(M=>(M==null?void 0:M.label)===m))==null?void 0:p.prop])});u=[...u,...g]}),c=u.reduce((m,g)=>{let _=0;Number.isNaN(m)||(_=+m);let p=0;return Number.isNaN(g)||(p=+g),_-p},0)}return l[r]=c,l},af=a=>{let l=a==null?void 0:a.contents,n=a==null?void 0:a.valueString,r=a==null?void 0:a.prop,i=a==null?void 0:a.headers,t=a==null?void 0:a.typeString,f=a==null?void 0:a.allContents,c=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=ie.getValueToObjectValue(l,ie.getColumnContents(i))),n==null||n.forEach(u=>{var m,g,_,p,M,w,G;if(l!=null&&l[u]){if(t==="Row")if(!((g=(m=l==null?void 0:l[u])==null?void 0:m.toString())!=null&&g.includes(":"))&&!((_=c==null?void 0:c.toString())!=null&&_.includes(":"))){let A=+(l==null?void 0:l[u]);c=c===0?c+A:c*A}else c=c===0?Ar(c.toString())+Ar(l==null?void 0:l[u].toString()):Ar(c.toString())*Ar(l==null?void 0:l[u].toString()),c=Qn(c)}else if(t==="Row"){let A=(p=i==null?void 0:i.find(P=>(P==null?void 0:P.label)===u))==null?void 0:p.prop;if(!(l!=null&&l[A]))c=void 0;else if(!((w=Number.isNaN(l==null?void 0:l[A])?"":(M=l==null?void 0:l[A])==null?void 0:M.toString())!=null&&w.includes(":"))&&!((G=c==null?void 0:c.toString())!=null&&G.includes(":"))){let P=+((l==null?void 0:l[A])??0);c=c===0?c+P:c*P}else c=c===0?Ar(c.toString())+Ar(((l==null?void 0:l[A])??0).toString()):Ar(c.toString())*Ar(((l==null?void 0:l[A])??0).toString()),c=Qn(c)}}),t==="Column"){let u=[];n==null||n.forEach(m=>{let g=f==null?void 0:f.map(_=>{var p;return(_==null?void 0:_[m])??(_==null?void 0:_[(p=i==null?void 0:i.find(M=>(M==null?void 0:M.label)===m))==null?void 0:p.prop])});u=[...u,...g]}),c=u.reduce((m,g)=>{let _=0;Number.isNaN(m)||(_=+m);let p=0;return Number.isNaN(g)||(p=+g),_*p},0)}return l[r]=c,l},lf=a=>{let l=a==null?void 0:a.contents,n=a==null?void 0:a.valueString,r=a==null?void 0:a.prop,i=a==null?void 0:a.headers,t=a==null?void 0:a.typeString,f=a==null?void 0:a.allContents,c=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=ie.getValueToObjectValue(l,ie.getColumnContents(i))),n==null||n.forEach(u=>{var m,g,_,p,M,w,G;if(l!=null&&l[u]){if(t==="Row")if(!((g=(m=l==null?void 0:l[u])==null?void 0:m.toString())!=null&&g.includes(":"))&&!((_=c==null?void 0:c.toString())!=null&&_.includes(":"))){let A=+(l==null?void 0:l[u]);c=c===0?c+A:c/A}else c=c===0?Ar(c.toString())+Ar(l==null?void 0:l[u].toString()):Ar(c.toString())/Ar(l==null?void 0:l[u].toString()),c=Qn(c)}else if(t==="Row"){let A=(p=i==null?void 0:i.find(P=>(P==null?void 0:P.label)===u))==null?void 0:p.prop;if(!((w=Number.isNaN(l==null?void 0:l[A])?"":(M=l==null?void 0:l[A])==null?void 0:M.toString())!=null&&w.includes(":"))&&!((G=c==null?void 0:c.toString())!=null&&G.includes(":"))){let P=+((l==null?void 0:l[A])??0);c=c===0?c+P:c/P}else c=c===0?Ar(c.toString())+Ar(((l==null?void 0:l[A])??0).toString()):Ar(c.toString())/Ar(((l==null?void 0:l[A])??0).toString()),c=Qn(c)}}),t==="Column"){let u=[];n==null||n.forEach(m=>{let g=f==null?void 0:f.map(_=>{var p;return(_==null?void 0:_[m])??(_==null?void 0:_[(p=i==null?void 0:i.find(M=>(M==null?void 0:M.label)===m))==null?void 0:p.prop])});u=[...u,...g]}),c=u.reduce((m,g)=>{let _=0;Number.isNaN(m)||(_=+m);let p=0;return Number.isNaN(g)||(p=+g),_/p},0)}return l[r]=c.toFixed(2),l},rf=async a=>{var t,f,c,u,m,g,_,p,M,w,G;let l=(t=a==null?void 0:a.valueString)==null?void 0:t[0],n=(f=a==null?void 0:a.contents)==null?void 0:f.calculatorFilter,r=0,i=a==null?void 0:a.contents;if(l!=null&&l.includes("$")&&!(l!=null&&l.includes("{"))){(l==null?void 0:l[0])==="$"&&(l=l==null?void 0:l.slice(1,l==null?void 0:l.length));let A=(u=(c=l==null?void 0:l.split("*"))==null?void 0:c[0])==null?void 0:u.replaceAll(":","/"),P=await Xr(A,!1),O=(m=l==null?void 0:l.split("*"))==null?void 0:m[1];if(P=(g=P==null?void 0:P.filter(E=>(E==null?void 0:E.name)===O))==null?void 0:g[0],n!==""){let E=P.compData;E=E==null?void 0:E.filter(x=>(x==null?void 0:x.key)!=="filter"),E.push({key:"filter",contents:"("+n+")"}),E=await Po(E,{}),r=(p=(_=E==null?void 0:E.find(x=>(x==null?void 0:x.key)==="tableContents"))==null?void 0:_.contents)==null?void 0:p.length}else r=(G=(w=(M=P==null?void 0:P.compData)==null?void 0:M.find(E=>(E==null?void 0:E.key)==="tableContents"))==null?void 0:w.contents)==null?void 0:G.length}return i.value=r,i},nf=async a=>{var r,i;let l=a==null?void 0:a.valueString;l=l==null?void 0:l[0];let n={};if((l==null?void 0:l[0])==="{"){l=l==null?void 0:l.slice(1,l.length-1),l=(r=ie.analyzeSplitToContent(l,","))==null?void 0:r.map(c=>((c==null?void 0:c[(c==null?void 0:c.length)-1])===","&&(c=c==null?void 0:c.slice(0,(c==null?void 0:c.length)-1)),c));let t=l==null?void 0:l.map(async c=>{var _,p,M,w,G,A,P,O,E,x,S,b,C,R,$,le,ee,_e;let u=(p=(_=c==null?void 0:c.replace("=","$R"))==null?void 0:_.split("$R"))==null?void 0:p[0],m=(w=(M=c==null?void 0:c.replace("=","$R"))==null?void 0:M.split("$R"))==null?void 0:w[1],g="";if(m==="LoginUser")g=((G=Wn.value)==null?void 0:G.姓名)||((A=Wn.value)==null?void 0:A.account)||((P=Wn.value)==null?void 0:P.账号);else if((m==null?void 0:m[0])==="$"){let pe=(O=m==null?void 0:m.split("*"))==null?void 0:O[0],H=(E=m==null?void 0:m.split("*"))==null?void 0:E[1],F=H;if((pe==null?void 0:pe[0])==="$"&&(pe=pe==null?void 0:pe.slice(1,pe==null?void 0:pe.length)),pe!=null&&pe.includes("$")){let re=(x=pe==null?void 0:pe.split("$"))==null?void 0:x[0],ve=(S=pe==null?void 0:pe.split("$"))==null?void 0:S[1],Re=(b=re==null?void 0:re.split(":"))==null?void 0:b[0],ce=($=(R=(C=Jp.value)==null?void 0:C.filter(B=>(B==null?void 0:B.condition)==="child"))==null?void 0:R[0])==null?void 0:$.value;ve=ve==null?void 0:ve.replaceAll(":","/"),pe=Re+"/"+ve+"/"+ce}else pe=pe==null?void 0:pe.replaceAll(":","/");H=H==null?void 0:H.split(":"),H=H==null?void 0:H.find((re,ve)=>ve===(H==null?void 0:H.length)-2),F=F==null?void 0:F.split(":"),F=F==null?void 0:F.find((re,ve)=>ve===(F==null?void 0:F.length)-1),(F==null?void 0:F[0])==="{"&&(F=F==null?void 0:F.slice(1,(F==null?void 0:F.length)-1));let X=await Xr(pe,!1);X=X==null?void 0:X.find(re=>(re==null?void 0:re.name)===H),X=(ee=(le=X==null?void 0:X.compData)==null?void 0:le.find(re=>(re==null?void 0:re.key)==="tableContents"))==null?void 0:ee.contents,g=(_e=X==null?void 0:X[0])==null?void 0:_e[F]}else g=m;n[u]=g});await Promise.all(t);let f=(i=a==null?void 0:a.valueString)==null?void 0:i[1];n.menuPathContent=f}return n},bo={Sum:Qp,Substract:ef,Multiple:af,Divide:lf,Compare:Zp,VecDimCount:rf,Approval:nf},mc=async(a,l,n,r="Auto",i,t=[])=>{var g,_,p,M,w,G,A,P,O,E,x,S,b,C,R,$,le,ee,_e,pe,H;let f=a,c=[],u=await z.getPageDataApi({platId:parseInt((g=Wn==null?void 0:Wn.value)==null?void 0:g.plat_id),pageName:"menu"});u=(M=(p=(_=u==null?void 0:u.data)==null?void 0:_.result)==null?void 0:p.filter(F=>(F==null?void 0:F.property_name)===""))==null?void 0:M[0];let m=[];if(u!=null&&u.object_name){u=u==null?void 0:u.object_name;let F=await z.getPageDataApi({platId:parseInt((w=Wn==null?void 0:Wn.value)==null?void 0:w.plat_id),pageName:u});F=(E=(O=(P=(A=(G=F==null?void 0:F.data)==null?void 0:G.result)==null?void 0:A[0])==null?void 0:P.contents)==null?void 0:O.find(X=>{var re;return(re=X==null?void 0:X.key)==null?void 0:re.includes("content")}))==null?void 0:E.value,c=(x=F==null?void 0:F.map(X=>({functionName:X==null?void 0:X.函数名称,functionContent:X==null?void 0:X.输出值})))==null?void 0:x.filter(X=>(X==null?void 0:X.functionContent)!==""),c==null||c.forEach(X=>{m.push(X.functionName),bo[X.functionName]=new Function("return "+X.functionContent)()})}if((l==null?void 0:l.length)===0)return f;for(let F in l){let X=(S=l==null?void 0:l[F])==null?void 0:S.functionName;const re=bo==null?void 0:bo[X];let ve=(b=l==null?void 0:l[F])==null?void 0:b.methods;if(ve=ie.analyzeSplitToContent(ve,","),(C=ve==null?void 0:ve.find(Re=>Re==null?void 0:Re.includes("@Type")))!=null&&C.includes(r)||r==="Auto"||(ve==null?void 0:ve.length)===0){let Re=((le=($=(R=ve==null?void 0:ve.find(ce=>ce==null?void 0:ce.includes("@Extent")))==null?void 0:R.replace(":","="))==null?void 0:$.split("="))==null?void 0:le[1])??[];if(await new Function("return ")(),(m==null?void 0:m.length)>0&&m.find(ce=>ce===X)){let ce="";try{let te=(ee=l==null?void 0:l[F])==null?void 0:ee.functionRelatedWords,q=(t==null?void 0:t.length)>0?t==null?void 0:t.map(Me=>{var $e;return Me==null?void 0:Me[($e=l==null?void 0:l[F])==null?void 0:$e.prop]}):["0"];q=q==null?void 0:q.map(Me=>Me==null?void 0:Me.slice((Me==null?void 0:Me.length)-5,Me==null?void 0:Me.length)),q=q==null?void 0:q.map(Me=>ie.isNumber(parseInt(Me))&&parseInt(Me)?parseInt(Me):0);let xe=Math.max(...q);te=te==null?void 0:te.map(Me=>{if(Me!=null&&Me.includes("'"))return Me==null?void 0:Me.replaceAll("'","");if(Me!=null&&Me.includes("@"))return xe+1;{let $e=Object.keys(f);return Me=(f==null?void 0:f[Me])??(f==null?void 0:f[$e==null?void 0:$e.find(Qe=>Qe==null?void 0:Qe.includes("."+Me))]),Me}}),ce=re(...te)}catch(te){Xa.ElMessage.warning("关联数据出现错误,"+te.message)}let B=(_e=l==null?void 0:l[F])==null?void 0:_e.prop;f[B]=ce}else f=await re({contents:f,valueString:(pe=l==null?void 0:l[F])==null?void 0:pe.functionRelatedWords,prop:(H=l==null?void 0:l[F])==null?void 0:H.prop,headers:n,typeString:Re,allContents:i})}}return f},of=z.useLoginState(z.pinia),{loginUserInfo:hn}=z.storeToRefs(of),tf=z.useMenuState(z.pinia),{activeMenuPath:ms,currentMenuPath:ko}=z.storeToRefs(tf),yc=z.useUnit(z.pinia);let ys="$R";const{selectTitle:Ni}=z.storeToRefs(yc),gc=async(a,l)=>{var f,c,u,m,g,_,p,M,w,G,A,P,O;let n=ms.value,r="",i=((f=Ni==null?void 0:Ni.value)==null?void 0:f.find(E=>(E==null?void 0:E.condition)==="child"&&!(E!=null&&E.relatedContent)))??void 0;(a==null?void 0:a.length)===0||(n=l?n:(c=a==null?void 0:a[0])==null?void 0:c.object_name,r=(u=a==null?void 0:a[0])==null?void 0:u.father_name);let t=[];if(r!==""){let E=r;(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));let x=await Xr(E,!1);x=(m=x==null?void 0:x[0])==null?void 0:m.compData;let S=(g=x==null?void 0:x.find(C=>(C==null?void 0:C.key)==="header"))==null?void 0:g.contents;S=((_=S==null?void 0:S.find(C=>C==null?void 0:C.isMainKey))==null?void 0:_.prop)??((p=S==null?void 0:S[0])==null?void 0:p.prop);let b=(w=(M=x==null?void 0:x.find(C=>(C==null?void 0:C.key)==="tableContents"))==null?void 0:M.contents)==null?void 0:w.map(C=>({label:C==null?void 0:C[S],value:C==null?void 0:C[S]}));t=(G=r==null?void 0:r.split("/"))==null?void 0:G.map(C=>(C===""?i?(i.isShow=!0,C=i):C={value:C,condition:"child",options:b,parentContent:(r==null?void 0:r[(r==null?void 0:r.length)-1])==="/"?r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1):r,isShow:!0}:C={condition:"parent",value:C.trim(),isShow:!0},C))}if(n!==""){let E=(A=n==null?void 0:n.split("/"))==null?void 0:A.map(x=>(x={condition:"normal",value:x.trim(),isShow:!0},x));((P=E==null?void 0:E[0])==null?void 0:P.value)===((O=t==null?void 0:t[0])==null?void 0:O.value)&&(E=E==null?void 0:E.filter((x,S)=>S!==0)),t=[...t??[],...E??[]]}r===""&&i&&((i==null?void 0:i.parentContent)!==ms.value&&(i.isShow=!1),(i==null?void 0:i.value)!==""&&t.push(i)),yc.setSelectTitle(t)},sf=async a=>{var t,f,c,u,m,g,_,p,M;let l=await z.getPageDataApi({platId:parseInt((t=hn==null?void 0:hn.value)==null?void 0:t.plat_id),pageName:"menu"}),n=(f=l==null?void 0:l.data)==null?void 0:f.result,r=(g=(m=(u=(c=a==null?void 0:a.filter(w=>(w==null?void 0:w.comp)==="Table"))==null?void 0:c[0])==null?void 0:u.compData)==null?void 0:m.find(w=>(w==null?void 0:w.key)==="filter"))==null?void 0:g.contents;r=(M=(p=(_=r==null?void 0:r.replace("(",ys))==null?void 0:_.split(ys))==null?void 0:p[0])==null?void 0:M.replaceAll(":","/");let i=n==null?void 0:n.filter(w=>{var G;return(w==null?void 0:w.object_name)===ko.value+"/"||((G=ko.value)==null?void 0:G.includes(r))&&r+"/"===(w==null?void 0:w.object_name)||r===(w==null?void 0:w.object_name)});return(i==null?void 0:i.length)>0&&(a=a==null?void 0:a.map(w=>{var G;return(w==null?void 0:w.comp)==="Table"&&(w.compData=(G=w==null?void 0:w.compData)==null?void 0:G.map(A=>{var P,O,E;return(A==null?void 0:A.key)==="header"&&(Array.isArray((P=A.contents)==null?void 0:P[0])?A.contents[0]=(E=A.contents[0])==null?void 0:E.map((x,S)=>{var b;return S===0&&(x.isExistChild=!0,((b=ko.value)!=null&&b.includes(r)||r)&&(x.fatherPath=r)),x}):A.contents=(O=A.contents)==null?void 0:O.map((x,S)=>{var b;return S===0&&(x.isExistChild=!0,((b=ko.value)!=null&&b.includes(r)||r)&&(x.fatherPath=r)),x})),A})),w})),a},Xr=async(a,l,n={})=>{var f,c,u,m,g,_,p,M,w,G,A,P;let r=await z.getPageDataApi({platId:parseInt((f=hn==null?void 0:hn.value)==null?void 0:f.plat_id),pageName:a}),i=(c=r==null?void 0:r.data)==null?void 0:c.result;if((i==null?void 0:i.length)===0&&(n!=null&&n.originPath)&&(n==null?void 0:n.originPath)!==a){let O=await z.getPageDataApi({platId:parseInt((u=hn==null?void 0:hn.value)==null?void 0:u.plat_id),pageName:n==null?void 0:n.originPath});if(((g=(m=O==null?void 0:O.data)==null?void 0:m.result)==null?void 0:g.length)>0){let E=await vs((_=O==null?void 0:O.data)==null?void 0:_.result,n,!1);E=E==null?void 0:E.map(async b=>{var $,le,ee,_e,pe,H,F,X,re,ve,Re,ce,B,te,q,xe,Me,$e,Qe,_a,oe,sa,de,ea,Ae,ue,he,Ge,wa,Ia;let C=[],R=($=Object.keys(b))==null?void 0:$.filter(U=>(U==null?void 0:U.includes("name"))&&U!=="nameContents");for(let U in b)R!=null&&R.find(V=>V===U)&&C.push(b==null?void 0:b[U]);if(C=C.reverse(),(b==null?void 0:b.comp)==="Table"){let U=(_e=(ee=(le=b==null?void 0:b.compData)==null?void 0:le.find(Q=>(Q==null?void 0:Q.key)==="tableContents"))==null?void 0:ee.contents)==null?void 0:_e.map(Q=>{let fe={};for(let me in Q)me!=="id"&&me!=="create_time"&&me!=="update_time"&&me!=="sort"&&me!=="create_user_id"&&me!=="update_user_id"&&me!=="department_id"&&me!=="relatedId"&&(fe[me]=Q==null?void 0:Q[me]);return Q=Object.values(fe),Q}),V=(H=(pe=b==null?void 0:b.compData)==null?void 0:pe.find(Q=>(Q==null?void 0:Q.key)==="header"))==null?void 0:H.contents;if(Array.isArray(V==null?void 0:V[0])?(V[0].push({label:"排序",prop:"sort"}),V[0].push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(F=V[0])!=null&&F.find(Q=>(Q==null?void 0:Q.prop)==="disabled")&&(V[0]=(X=V[0])==null?void 0:X.filter(Q=>(Q==null?void 0:Q.prop)!=="disabled"),V[0].unshift({label:"",prop:"disabled",sortable:!1}))):(V||(V=[]),V.push({label:"排序",prop:"sort"}),V.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),V!=null&&V.find(Q=>(Q==null?void 0:Q.prop)==="disabled")&&(V=V==null?void 0:V.filter(Q=>(Q==null?void 0:Q.prop)!=="disabled"),V.unshift({label:"",prop:"disabled",sortable:!1}))),V!=null&&V.some(Q=>{var fe;return(Q==null?void 0:Q.calculatorFilter)&&((fe=Q==null?void 0:Q.calculatorFilter)==null?void 0:fe.includes("Auto"))})&&(U=await St(U,V,"Auto"),U=U==null?void 0:U.map(Q=>Object.values(Q))),b!=null&&b.fatherSyncContents){Array.isArray((re=b==null?void 0:b.fatherSyncContents)==null?void 0:re[0])&&(b.fatherSyncContents=(ve=b==null?void 0:b.fatherSyncContents)==null?void 0:ve[0]);let Q=(Re=Ni.value)==null?void 0:Re.find(fe=>(fe==null?void 0:fe.condition)==="child");b.fatherSyncContents=(ce=b==null?void 0:b.fatherSyncContents)==null?void 0:ce.map(fe=>{var me,ua,ta,je,ba,Ta;return((ua=fe==null?void 0:fe.menus)==null?void 0:ua[((me=fe==null?void 0:fe.menus)==null?void 0:me.length)-1])==="/"&&(Q==null?void 0:Q.parentContent)+"/"!==(fe==null?void 0:fe.menus)?fe.menus=(fe==null?void 0:fe.menus)+(Q==null?void 0:Q.value):((je=fe==null?void 0:fe.menus)==null?void 0:je[((ta=fe==null?void 0:fe.menus)==null?void 0:ta.length)-1])==="/"&&(Q==null?void 0:Q.parentContent)+"/"===(fe==null?void 0:fe.menus)&&(fe.menus=(Ta=fe.menus)==null?void 0:Ta.slice(0,((ba=fe.menus)==null?void 0:ba.length)-1)),fe})}if(b!=null&&b.sonSyncContents){Array.isArray((B=b==null?void 0:b.sonSyncContents)==null?void 0:B[0])&&(b.sonSyncContents=(te=b==null?void 0:b.sonSyncContents)==null?void 0:te[0]);let Q=(q=Ni.value)==null?void 0:q.find(fe=>(fe==null?void 0:fe.condition)==="child");b.sonSyncContents=(xe=b==null?void 0:b.sonSyncContents)==null?void 0:xe.map(fe=>{var me,ua,ta,je,ba,Ta;return((ua=fe==null?void 0:fe.menus)==null?void 0:ua[((me=fe==null?void 0:fe.menus)==null?void 0:me.length)-1])==="/"&&(Q==null?void 0:Q.parentContent)+"/"!==(fe==null?void 0:fe.menus)?fe.menus=(fe==null?void 0:fe.menus)+(Q==null?void 0:Q.value):((je=fe==null?void 0:fe.menus)==null?void 0:je[((ta=fe==null?void 0:fe.menus)==null?void 0:ta.length)-1])==="/"&&(Q==null?void 0:Q.parentContent)+"/"===(fe==null?void 0:fe.menus)&&(fe.menus=(Ta=fe.menus)==null?void 0:Ta.slice(0,((ba=fe.menus)==null?void 0:ba.length)-1)),fe})}if(b!=null&&b.relatedQuotes){Array.isArray((Me=b==null?void 0:b.relatedQuotes)==null?void 0:Me[0])&&(b.relatedQuotes=($e=b==null?void 0:b.relatedQuotes)==null?void 0:$e[0]);let Q=(Qe=Ni.value)==null?void 0:Qe.find(fe=>(fe==null?void 0:fe.condition)==="child");b.relatedQuotes=(_a=b==null?void 0:b.relatedQuotes)==null?void 0:_a.map(fe=>{var me,ua,ta,je,ba,Ta;return((ua=fe==null?void 0:fe.menus)==null?void 0:ua[((me=fe==null?void 0:fe.menus)==null?void 0:me.length)-1])==="/"&&(Q==null?void 0:Q.parentContent)+"/"!==(fe==null?void 0:fe.menus)?fe.menus=(fe==null?void 0:fe.menus)+(Q==null?void 0:Q.value):((je=fe==null?void 0:fe.menus)==null?void 0:je[((ta=fe==null?void 0:fe.menus)==null?void 0:ta.length)-1])==="/"&&(Q==null?void 0:Q.parentContent)+"/"===(fe==null?void 0:fe.menus)&&(fe.menus=(Ta=fe.menus)==null?void 0:Ta.slice(0,((ba=fe.menus)==null?void 0:ba.length)-1)),fe})}b={filter:(sa=(oe=b==null?void 0:b.compData)==null?void 0:oe.find(Q=>(Q==null?void 0:Q.key)==="filter"))==null?void 0:sa.contents,key:b==null?void 0:b.comp,name:C,tableColumns:V,tableContents:U,menuFilter:b==null?void 0:b.menuFilter,fatherSyncContents:b==null?void 0:b.fatherSyncContents,relatedQuotes:b==null?void 0:b.relatedQuotes,sonSyncContents:b==null?void 0:b.sonSyncContents,calculatorFilters:b==null?void 0:b.calculatorFilters}}else{let U=(Ae=(ea=(de=b==null?void 0:b.compData)==null?void 0:de.find(Q=>(Q==null?void 0:Q.key)==="formContent"))==null?void 0:ea.contents)==null?void 0:Ae.map(Q=>(Q==null?void 0:Q.value)??"");U=[U];let V=(Ge=(he=(ue=b==null?void 0:b.compData)==null?void 0:ue.find(Q=>(Q==null?void 0:Q.key)==="formContent"))==null?void 0:he.contents)==null?void 0:Ge.map(Q=>(Q.value="",Q));b={contents:U,filter:(Ia=(wa=b==null?void 0:b.compData)==null?void 0:wa.find(Q=>(Q==null?void 0:Q.key)==="filter"))==null?void 0:Ia.contents,key:b==null?void 0:b.comp,name:C,value:V,fatherSyncContents:b==null?void 0:b.fatherSyncContents,relatedQuotes:b==null?void 0:b.relatedQuotes,sonSyncContents:b==null?void 0:b.sonSyncContents,calculatorFilters:b==null?void 0:b.calculatorFilters}}return b.isShow=!1,b}),E=await Promise.all(E);let x=[{key:"menuPath",contents:[{path:a,fatherPath:(w=(M=(p=O==null?void 0:O.data)==null?void 0:p.result)==null?void 0:M[0])==null?void 0:w.father_name,isShow:!1}]},{key:a,contents:E}];await z.createPlatFormDataApi({platId:parseInt((G=hn==null?void 0:hn.value)==null?void 0:G.plat_id),changeData:x});let S=await z.getPageDataApi({platId:parseInt((A=hn==null?void 0:hn.value)==null?void 0:A.plat_id),pageName:a});i=(P=S==null?void 0:S.data)==null?void 0:P.result}}l&&await gc(i,!!(n!=null&&n.originPath));let t=await vs(i,n);return l&&(t=await sf(t)),t==null?void 0:t.filter(O=>O)},gs=async a=>{var r,i,t,f,c,u,m,g,_,p,M;let l=(r=a==null?void 0:a.menus)==null?void 0:r.join("/");a!=null&&a.endChildMenu&&(a==null?void 0:a.endChildMenu)!==""&&(l==null?void 0:l[(l==null?void 0:l.length)-1])==="/"&&(l=l+(a==null?void 0:a.endChildMenu)),(l==null?void 0:l[(l==null?void 0:l.length)-1])==="/"&&(l=l+((t=(i=a.value)==null?void 0:i.split(" "))==null?void 0:t[0]));let n=await Xr(l,!1);if(n=(f=n==null?void 0:n.filter(w=>{var G,A;return(w==null?void 0:w.name)===((A=a==null?void 0:a.groups)==null?void 0:A[((G=a==null?void 0:a.groups)==null?void 0:G.length)-1])}))==null?void 0:f[0],(u=(c=n==null?void 0:n.compData)==null?void 0:c.find(w=>(w==null?void 0:w.key)==="tableContents"))!=null&&u.contents){n=(g=(m=n==null?void 0:n.compData)==null?void 0:m.find(G=>(G==null?void 0:G.key)==="tableContents"))==null?void 0:g.contents;let w=((_=a==null?void 0:a.words)==null?void 0:_[0])??(a==null?void 0:a.prop);return n=n==null?void 0:n.filter(G=>{var A,P,O,E;return(G==null?void 0:G[a!=null&&a.endChildMenu?w:(A=a==null?void 0:a.words)==null?void 0:A[0]])===(a!=null&&a.relatedWords&&((P=a==null?void 0:a.relatedWords)==null?void 0:P.length)>0?(E=(O=a.value)==null?void 0:O.split(" "))==null?void 0:E[0]:a.value)}),n==null?void 0:n[0]}else{let w=(M=(p=n==null?void 0:n.compData)==null?void 0:p.find(A=>(A==null?void 0:A.key)==="formContent"))==null?void 0:M.contents,G={};return w==null||w.forEach(A=>{G[A.prop]=A.value}),G}},cf={key:0,class:"extra-button-content"},uf={class:"table-operator-wrap"},df={key:0,class:"extra-button-filter"},pf={key:1,class:"extra-header"},ff=["onClick"],hf={class:"table-op-text"},vf={class:"table-op-text"},mf={class:"drop-menu",style:{width:"120px"}},yf=["onClick"],gf={key:0},bf={key:1},kf=["onClick"],xf={class:"table-op-text"},wf={key:1,class:"extra-button-content tabs-button-wrapper"},_f={class:"table-operator-wrap"},Sf={class:"extra-button-filter"},Ef={key:0,class:"extra-header"},Cf={class:"table-op-action"},Df={class:"table-op-text"},Tf={class:"drop-menu",style:{width:"120px"}},Bf={key:0},Nf={key:1},Af=["onClick"],zf={class:"table-op-text"},Mf={__name:"header",props:{pageLayout:{type:String,default:"vertical"},lockingPage:Boolean,level:{type:Number,default:1},compName:{type:String,default:"表格名称",required:!1},filterShow:{type:Boolean,default:!1},isDevMode:Boolean,selectNums:Number,dataNums:Number,filterValues:Array,buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},menuFilter:{type:Array,default:()=>[]}},emits:["buttonClick","filter","getImportData"],setup(a,{emit:l}){const n=l,r=a,i=()=>{const R=(r==null?void 0:r.menuFilter)||[];return Array.isArray(R)&&(R==null?void 0:R.some($=>{const le=typeof $=="string"?$:JSON.stringify($);return le==null?void 0:le.includes("HideGroup=Yes")}))},t=e.ref(""),f=e.ref(!1),c=e.ref(!1),u=e.ref([]),m=e.ref([{label:"清空",background:"#999999"},{label:"确认"}]),g=[{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 _(R,$){return R.map(le=>{const ee={...le};return $.forEach(_e=>{delete ee[_e]}),ee})}function p(R){if(!R||R.t!=="n")return(R==null?void 0:R.v)??"";const $=R.v;if(R.z){const le=String(R.z).toLowerCase(),ee=["yyyy/mm/dd","yyyy-mm-dd","yyyy.mm.dd","yy/mm/dd","yy-mm-dd","yy.mm.dd","mm/dd/yy","mm-dd-yy","mm.dd.yy","dd/mm/yy","dd-mm-yy","dd.mm.yy","m/d/yy","m/d/yyyy","d/m/yy","d/m/yyyy","yyyy年","yy年","m月","d日","yyyy年m月d日","yy年m月d日","[$-f800]","[$-f400]"];for(const H of ee)if(le.includes(H))return M($);const _e=/[ymdhms]/.test(le),pe=/^[0#\.\,\s]+$/.test(le.replace(/[\\\/\-:]/g,""));if(_e&&!pe)return M($)}if($>=1&&$<=73050){if($<5e3)return $;if($>=5e3&&$<4e4){const le=Math.floor(($-25569)/365.25)+1970;return le>=1970&&le<=2e3&&R.z&&/[ymd]/.test(String(R.z).toLowerCase())?M($):$}if($>=4e4)return M($)}return $}function M(R){if(typeof R!="number")return R;try{const $=new Date((R-25569)*86400*1e3);if(isNaN($.getTime()))return R;const le=$.getFullYear(),ee=String($.getMonth()+1).padStart(2,"0"),_e=String($.getDate()).padStart(2,"0");return`${le}-${ee}-${_e}`}catch{return R}}const w=R=>{const $=R.raw;if(!$)return;const le=new FileReader;le.onload=ee=>{try{const _e=new Uint8Array(ee.target.result),pe=ie.readSync(_e,{type:"array"}),H=pe.SheetNames[0],F=pe.Sheets[H],re=ie.utils.decode_range(F["!ref"]).e.c+1,ve=new Array(re).fill(""),Re=[];for(const xe in F){if(xe[0]==="!")continue;const{r:Me,c:$e}=ie.utils.decode_cell(xe),Qe=F[xe];let _a=p(Qe);if((_a==null||_a==="")&&(_a=""),Me===0)ve[$e]=_a;else{if(!Re[Me-1]){Re[Me-1]={};for(let oe=0;oe<re;oe++)Re[Me-1][`col_${oe}`]=""}Re[Me-1][`col_${$e}`]=_a}}for(let xe=0;xe<re;xe++)ve[xe]===void 0&&(ve[xe]="");const ce=[];for(let xe=0;xe<ve.length;xe++)(!ve[xe]||ve[xe].toString().trim()==="")&&ce.push(xe);let B,te;(ce==null?void 0:ce.length)>0?(Xa.ElMessage.warning("存在键为空的列,已自动过滤,请检查补充"),B=ve.filter((xe,Me)=>!ce.includes(Me)),te=_(Re,ce==null?void 0:ce.map(xe=>`col_${xe}`))):(B=ve,te=Re);const q=Re==null?void 0:Re[0];if(!(q!=null&&q.hasOwnProperty("col_0")))return Xa.ElMessage.error("导入的数据列不匹配,请检查是否错位");n("getImportData",B,te)}catch(_e){throw Xa.ElMessage.error(_e.message),new Error(_e.message)}},le.readAsArrayBuffer($)},G=R=>{var le;const $=(le=u.value)==null?void 0:le.reduce((ee,_e,pe)=>(pe===0?ee[_e.label]=R:ee[_e.label]=_e==null?void 0:_e.value,ee),{});n("filter",$,R,!0)},A=(R,$={})=>{n("buttonClick",R,"",$)},P=R=>{var $,le;u.value=(le=($=ie.getColumnChild(z.cloneDeep(R)))==null?void 0:$.filter(ee=>(ee==null?void 0:ee.label)!==""&&(ee==null?void 0:ee.label)!=="操作"))==null?void 0:le.map(ee=>({label:(ee==null?void 0:ee.label)??"",value:"",name:(ee==null?void 0:ee.prop)??"",isFormColHidden:ee==null?void 0:ee.isTableColHidden,width:2,prop:(ee==null?void 0:ee.prop)??""}))},O=e.ref(!1),E=R=>{var $;if((R==null?void 0:R.buttonName)==="确认"&&(n("filter",R==null?void 0:R.content),O.value=(R==null?void 0:R.content)&&Object.values(R==null?void 0:R.content).length>0),(R==null?void 0:R.buttonName)==="清空"){const le=z.cloneDeep(R==null?void 0:R.content);for(const ee in le)le[ee]="";u.value=($=u.value)==null?void 0:$.map(ee=>({...ee,value:""})),n("filter",le),O.value=!1}f.value=!1},x=()=>{f.value=!f.value,c.value=!0},S=()=>{var $,le;u.value=($=u.value)==null?void 0:$.map(ee=>({...ee,value:""}));const R=(le=u.value)==null?void 0:le.reduce((ee,_e)=>(ee[_e.label]=_e.value,ee),{});n("filter",R)},b=e.ref(null);let C;return C=R=>{var _e;if(!f.value)return;const $=(_e=b==null?void 0:b.value)==null?void 0:_e.$el,le=$==null?void 0:$.contains(R.target);let ee=!1;document.querySelectorAll(".el-popover, .el-popper").forEach(pe=>{pe.contains(R.target)&&(ee=!0)}),!le&&!ee&&(f.value=!1)},e.onMounted(()=>{document.addEventListener("click",C),P(r.columns)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",C)}),e.watch(()=>r.columns,()=>{P(r.columns)},{deep:!0,immediate:!0}),(R,$)=>{var F,X,re,ve,Re,ce,B,te;const le=e.resolveComponent("el-icon"),ee=e.resolveComponent("svg-icon"),_e=e.resolveComponent("el-input"),pe=e.resolveComponent("el-upload"),H=e.resolveComponent("el-button");return a.pageLayout==="vertical"?(e.openBlock(),e.createElementBlock("div",cf,[i()?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(a.compName?"table-name-wrap":""),style:e.normalizeStyle({background:(r==null?void 0:r.level)>1?"transparent":"var(--ssgroup-background)",paddingLeft:((r==null?void 0:r.level)-1)*12+"px",fontWeight:600-((r==null?void 0:r.level)-1)*100>=400?600-((r==null?void 0:r.level)-1)*100:400,fontSize:17-(r==null?void 0:r.level)>=14?17-(r==null?void 0:r.level)+"px":"14px"})},e.toDisplayString(a.compName),7)),e.createElementVNode("div",uf,[r!=null&&r.filterShow?(e.openBlock(),e.createElementBlock("div",df,[e.createVNode(Wu,{trigger:"contextmenu",ref_key:"popOverRef",ref:b,title:"",width:800,placement:"bottom-start",isVisible:f.value,"onUpdate:isVisible":$[4]||($[4]=q=>f.value=q)},{reference:e.withCtx(()=>{var q,xe,Me,$e;return[e.createVNode(_e,{modelValue:t.value,"onUpdate:modelValue":$[0]||($[0]=Qe=>t.value=Qe),style:{"min-width":"80px"},placeholder:O.value?(Me=(xe=(q=a.filterValues)==null?void 0:q.filter(Qe=>Qe))==null?void 0:xe.slice(0,3))==null?void 0:Me.join("/"):"搜索","prefix-icon":e.unref(Xa.search_default),clearable:"",onInput:G,disabled:(($e=u.value)==null?void 0:$e.length)===0},{suffix:e.withCtx(()=>{var Qe,_a;return[!t.value&&((_a=(Qe=a.filterValues)==null?void 0:Qe.filter(oe=>oe))!=null&&_a.join("/"))?(e.openBlock(),e.createBlock(le,{key:0,style:{cursor:"pointer"},onClick:S},{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(x,["stop"])},[e.createVNode(ee,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:e.withCtx(()=>[c.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"form-content-value",onKeydown:$[1]||($[1]=e.withModifiers(()=>{},["stop"])),onKeyup:$[2]||($[2]=e.withModifiers(()=>{},["stop"])),onKeypress:$[3]||($[3]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(),e.createBlock(fl.ssForm,{rowContents:u.value,buttonValue:m.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:m.value,isStartJustify:!1,onOnButtonClick:E},null,8,["rowContents","buttonValue"]))],32)):e.createCommentVNode("",!0)]),_:1},8,["isVisible"])])):e.createCommentVNode("",!0),a.buttons&&((F=a.buttons)==null?void 0:F.length)>0?(e.openBlock(),e.createElementBlock("div",pf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((X=a.buttons)==null?void 0:X.filter(q=>a.isDevMode||(q==null?void 0:q.label)!=="修改模板"),(q,xe)=>{var Me;return e.openBlock(),e.createElementBlock("div",{class:"extra-contents",key:xe},[(q==null?void 0:q.type)==="upload"?(e.openBlock(),e.createBlock(pe,{key:0,class:"upload-button-wrap","on-change":w,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1,disabled:!!a.lockingPage},{default:e.withCtx(()=>{var $e;return[e.createElementVNode("div",{class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),onClick:Qe=>A(q==null?void 0:q.label)},[e.createVNode(ee,{class:"table-op-icon",name:($e=g==null?void 0:g.find(Qe=>(Qe==null?void 0:Qe.label)===(q==null?void 0:q.label)))==null?void 0:$e.icon},null,8,["name"]),e.createElementVNode("span",hf,e.toDisplayString(q==null?void 0:q.label),1)],10,ff)]}),_:2},1032,["disabled"])):e.createCommentVNode("",!0),(q==null?void 0:q.type)==="popover"?(e.openBlock(),e.createBlock(fl._sfc_main,{key:1},{dropTitle:e.withCtx(()=>{var $e;return[e.createElementVNode("div",{class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}])},[e.createVNode(ee,{class:"table-op-icon",name:($e=g==null?void 0:g.find(Qe=>(Qe==null?void 0:Qe.label)===(q==null?void 0:q.label)))==null?void 0:$e.icon},null,8,["name"]),e.createElementVNode("span",vf,e.toDisplayString(q==null?void 0:q.label),1)],2)]}),dropMenu:e.withCtx(()=>[e.createElementVNode("div",mf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q==null?void 0:q.contents,$e=>{var Qe,_a;return e.openBlock(),e.createElementBlock("div",{key:$e==null?void 0:$e.label,class:e.normalizeClass(["table-op-drop-item",{"is-disabled":!!a.lockingPage}]),onClick:oe=>!a.lockingPage&&A($e==null?void 0:$e.label)},[e.createTextVNode(e.toDisplayString($e==null?void 0:$e.label),1),(Qe=$e==null?void 0:$e.label)!=null&&Qe.includes("选中")?(e.openBlock(),e.createElementBlock("span",gf,"("+e.toDisplayString(a.selectNums)+")",1)):e.createCommentVNode("",!0),(_a=$e==null?void 0:$e.label)!=null&&_a.includes("全部")?(e.openBlock(),e.createElementBlock("span",bf,"("+e.toDisplayString(a.dataNums)+")",1)):e.createCommentVNode("",!0)],10,yf)}),128))])]),_:2},1024)):e.createCommentVNode("",!0),!(q!=null&&q.type)||(q==null?void 0:q.type)==="methodButton"?(e.openBlock(),e.createElementBlock("div",{key:2,id:"themeButton",class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),onClick:$e=>!a.lockingPage&&A(q==null?void 0:q.label,q)},[e.createVNode(ee,{class:"table-op-icon",name:((Me=g==null?void 0:g.find($e=>($e==null?void 0:$e.label)===(q==null?void 0:q.label)))==null?void 0:Me.icon)??"normal"},null,8,["name"]),e.createElementVNode("span",xf,e.toDisplayString(q==null?void 0:q.label),1)],10,kf)):e.createCommentVNode("",!0)])}),128))])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createElementBlock("div",wf,[e.createElementVNode("div",_f,[e.createElementVNode("div",Sf,[e.createVNode(_e,{modelValue:t.value,"onUpdate:modelValue":$[5]||($[5]=q=>t.value=q),style:{"min-width":"80px"},placeholder:O.value?(Re=(ve=(re=a.filterValues)==null?void 0:re.filter(q=>q))==null?void 0:ve.slice(0,3))==null?void 0:Re.join("/"):"搜索","prefix-icon":e.unref(Xa.search_default),clearable:"",onInput:G,disabled:((ce=u.value)==null?void 0:ce.length)===0},{suffix:e.withCtx(()=>{var q,xe;return[!t.value&&((xe=(q=a.filterValues)==null?void 0:q.filter(Me=>Me))!=null&&xe.join("/"))?(e.openBlock(),e.createBlock(le,{key:0,style:{cursor:"pointer"},onClick:S},{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(x,["stop"])},[e.createVNode(ee,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]),a.buttons&&((B=a.buttons)==null?void 0:B.length)>0?(e.openBlock(),e.createElementBlock("div",Ef,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((te=a.buttons)==null?void 0:te.filter(q=>a.isDevMode||(q==null?void 0:q.label)!=="修改模板"),(q,xe)=>{var Me;return e.openBlock(),e.createElementBlock("div",{class:"extra-contents",key:xe},[(q==null?void 0:q.type)==="upload"?(e.openBlock(),e.createBlock(pe,{key:0,class:"upload-button-wrap","on-change":w,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1},{default:e.withCtx(()=>{var $e;return[e.createElementVNode("div",Cf,[e.createVNode(ee,{class:"table-op-icon",name:($e=g==null?void 0:g.find(Qe=>(Qe==null?void 0:Qe.label)===(q==null?void 0:q.label)))==null?void 0:$e.icon},null,8,["name"]),e.createElementVNode("span",Df,e.toDisplayString(q==null?void 0:q.label),1)])]}),_:2},1024)):e.createCommentVNode("",!0),(q==null?void 0:q.type)==="popover"?(e.openBlock(),e.createBlock(fl._sfc_main,{key:1},{dropTitle:e.withCtx(()=>[(q==null?void 0:q.type)==="popover"?(e.openBlock(),e.createBlock(H,{key:0,style:{background:"transparent",color:"#000000"}},{icon:e.withCtx(()=>{var $e;return[e.createVNode(ee,{class:"table-op-icon",name:($e=g==null?void 0:g.find(Qe=>(Qe==null?void 0:Qe.label)===(q==null?void 0:q.label)))==null?void 0:$e.icon},null,8,["name"])]}),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(q==null?void 0:q.label),1)]),_:2},1024)):e.createCommentVNode("",!0)]),dropMenu:e.withCtx(()=>[e.createElementVNode("div",Tf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q==null?void 0:q.contents,$e=>(e.openBlock(),e.createBlock(H,{key:$e==null?void 0:$e.label,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:Qe=>A($e==null?void 0:$e.label)},{default:e.withCtx(()=>{var Qe,_a;return[e.createTextVNode(e.toDisplayString($e==null?void 0:$e.label),1),(Qe=$e==null?void 0:$e.label)!=null&&Qe.includes("选中")?(e.openBlock(),e.createElementBlock("span",Bf,"("+e.toDisplayString(a.selectNums)+")",1)):e.createCommentVNode("",!0),(_a=$e==null?void 0:$e.label)!=null&&_a.includes("全部")?(e.openBlock(),e.createElementBlock("span",Nf,"("+e.toDisplayString(a.dataNums)+")",1)):e.createCommentVNode("",!0)]}),_:2},1032,["onClick"]))),128))])]),_:2},1024)):e.createCommentVNode("",!0),!(q!=null&&q.type)||(q==null?void 0:q.type)==="methodButton"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),id:"themeButton",onClick:$e=>!a.lockingPage&&A(q==null?void 0:q.label,q)},[e.createVNode(ee,{class:"table-op-icon",name:(Me=g==null?void 0:g.find($e=>($e==null?void 0:$e.label)===(q==null?void 0:q.label)))==null?void 0:Me.icon},null,8,["name"]),e.createElementVNode("span",zf,e.toDisplayString(q==null?void 0:q.label),1)],10,Af)):e.createCommentVNode("",!0)])}),128))])):e.createCommentVNode("",!0)])]))}}},If=nr._export_sfc(Mf,[["__scopeId","data-v-44a17652"]]),Of={__name:"index",props:{columns:Array,tableData:Array},setup(a){return(l,n)=>{const r=e.resolveComponent("el-table-column"),i=e.resolveComponent("el-table");return e.openBlock(),e.createBlock(i,{data:a.tableData,style:{width:"100%"},stripe:"","max-height":"500"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.columns,t=>{var f;return e.openBlock(),e.createBlock(r,{key:t==null?void 0:t.prop,label:t==null?void 0:t.label,prop:t==null?void 0:t.prop,fixed:(t==null?void 0:t.prop)==="operate"?"right":t==null?void 0:t.fixed,align:(t==null?void 0:t.align)??"left","show-overflow-tooltip":(t==null?void 0:t.showOverflowTooltip)??!0,width:t==null?void 0:t.width,"min-width":(t==null?void 0:t.minWidth)||((t==null?void 0:t.prop)==="operate"?80:(((f=t==null?void 0:t.label)==null?void 0:f.length)*2||4)*27)},{default:e.withCtx(c=>[e.renderSlot(l.$slots,"content",{row:c.row,column:c.column,$index:c.$index,scope:c}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.children,(u,m)=>(e.openBlock(),e.createBlock(fl._sfc_main$2,{key:m,column:u,tableData:a.tableData},e.createSlots({_:2},[e.renderList(l.$slots,(g,_)=>({name:_,fn:e.withCtx(({row:p,slotData:M,item:w,column:G})=>[e.renderSlot(l.$slots,_,e.mergeProps({ref_for:!0},M??p,{item:w??u,slotData:M??p,row:p,column:G,columnProp:u}))])}))]),1032,["column","tableData"]))),128))]),_:2},1032,["label","prop","fixed","align","show-overflow-tooltip","width","min-width"])}),128))]),_:3},8,["data"])}}};class Lf extends Hl.Loader{constructor(l){super(l),this.littleEndian=!0}load(l,n,r,i){const t=this,f=new Hl.FileLoader(t.manager);f.setPath(t.path),f.setResponseType("arraybuffer"),f.setRequestHeader(t.requestHeader),f.setWithCredentials(t.withCredentials),f.load(l,function(c){try{n(t.parse(c))}catch(u){i?i(u):console.error(u),t.manager.itemError(l)}},r,i)}_getDataView(l,n,r,i){switch(r){case"F":return i===8?l.getFloat64(n,this.littleEndian):l.getFloat32(n,this.littleEndian);case"I":return i===1?l.getInt8(n):i===2?l.getInt16(n,this.littleEndian):l.getInt32(n,this.littleEndian);case"U":return i===1?l.getUint8(n):i===2?l.getUint16(n,this.littleEndian):l.getUint32(n,this.littleEndian)}}parse(l){function n(M,w){const G=M.length,A=new Uint8Array(w);let P=0,O=0,E,x,S;do if(E=M[P++],E<32){if(E++,O+E>w)throw new Error("Output buffer is not large enough");if(P+E>G)throw new Error("Invalid compressed data");do A[O++]=M[P++];while(--E)}else{if(x=E>>5,S=O-((E&31)<<8)-1,P>=G)throw new Error("Invalid compressed data");if(x===7&&(x+=M[P++],P>=G))throw new Error("Invalid compressed data");if(S-=M[P++],O+x+2>w)throw new Error("Output buffer is not large enough");if(S<0)throw new Error("Invalid compressed data");if(S>=O)throw new Error("Invalid compressed data");do A[O++]=A[S++];while(--x+2)}while(P<G);return A}function r(M){const w={},G=new Uint8Array(M);let A="",P="",O=0,E=!1;const x=G.length;for(;O<x&&E===!1;){const R=String.fromCharCode(G[O++]);R===`
2
+ `||R==="\r"?(P.trim().toLowerCase().startsWith("data")&&(E=!0),P=""):P+=R,A+=R}const S=A.search(/[\r\n]DATA\s(\S*)\s/i),b=/[\r\n]DATA\s(\S*)\s/i.exec(A.slice(S-1));if(w.data=b[1],w.headerLen=b[0].length+S,w.str=A.slice(0,w.headerLen),w.str=w.str.replace(/#.*/gi,""),w.version=/^VERSION (.*)/im.exec(w.str),w.fields=/^FIELDS (.*)/im.exec(w.str),w.size=/^SIZE (.*)/im.exec(w.str),w.type=/^TYPE (.*)/im.exec(w.str),w.count=/^COUNT (.*)/im.exec(w.str),w.width=/^WIDTH (.*)/im.exec(w.str),w.height=/^HEIGHT (.*)/im.exec(w.str),w.viewpoint=/^VIEWPOINT (.*)/im.exec(w.str),w.points=/^POINTS (.*)/im.exec(w.str),w.version!==null&&(w.version=parseFloat(w.version[1])),w.fields=w.fields!==null?w.fields[1].split(" "):[],w.type!==null&&(w.type=w.type[1].split(" ")),w.width!==null&&(w.width=parseInt(w.width[1])),w.height!==null&&(w.height=parseInt(w.height[1])),w.viewpoint!==null&&(w.viewpoint=w.viewpoint[1]),w.points!==null&&(w.points=parseInt(w.points[1],10)),w.points===null&&(w.points=w.width*w.height),w.size!==null&&(w.size=w.size[1].split(" ").map(function(R){return parseInt(R,10)})),w.count!==null)w.count=w.count[1].split(" ").map(function(R){return parseInt(R,10)});else{w.count=[];for(let R=0,$=w.fields.length;R<$;R++)w.count.push(1)}w.offset={};let C=0;for(let R=0,$=w.fields.length;R<$;R++)w.data==="ascii"?w.offset[w.fields[R]]=R:(w.offset[w.fields[R]]=C,C+=w.size[R]*w.count[R]);return w.rowSize=C,w}const i=r(l),t=[],f=[],c=[],u=[],m=[],g=new Hl.Color;if(i.data==="ascii"){const M=i.offset,A=new TextDecoder().decode(l).slice(i.headerLen).split(`
3
+ `);for(let P=0,O=A.length;P<O;P++){if(A[P]==="")continue;const E=A[P].split(" ");if(M.x!==void 0&&(t.push(parseFloat(E[M.x])),t.push(parseFloat(E[M.y])),t.push(parseFloat(E[M.z]))),M.rgb!==void 0){const x=i.fields.findIndex(ee=>ee==="rgb"),S=i.type[x],b=parseFloat(E[M.rgb]);let C=b;if(S==="F"){const ee=new Float32Array(1);ee[0]=b,C=new Int32Array(ee.buffer)[0]}const R=(C>>16&255)/255,$=(C>>8&255)/255,le=(C>>0&255)/255;g.setRGB(R,$,le,Hl.SRGBColorSpace),c.push(g.r,g.g,g.b)}M.normal_x!==void 0&&(f.push(parseFloat(E[M.normal_x])),f.push(parseFloat(E[M.normal_y])),f.push(parseFloat(E[M.normal_z]))),M.intensity!==void 0&&u.push(parseFloat(E[M.intensity])),M.label!==void 0&&m.push(parseInt(E[M.label]))}}if(i.data==="binary_compressed"){const M=new Uint32Array(l.slice(i.headerLen,i.headerLen+8)),w=M[0],G=M[1],A=n(new Uint8Array(l,i.headerLen+8,w),G),P=new DataView(A.buffer),O=i.offset;for(let E=0;E<i.points;E++){if(O.x!==void 0){const x=i.fields.indexOf("x"),S=i.fields.indexOf("y"),b=i.fields.indexOf("z");t.push(this._getDataView(P,i.points*O.x+i.size[x]*E,i.type[x],i.size[x])),t.push(this._getDataView(P,i.points*O.y+i.size[S]*E,i.type[S],i.size[S])),t.push(this._getDataView(P,i.points*O.z+i.size[b]*E,i.type[b],i.size[b]))}if(O.rgb!==void 0){const x=i.fields.indexOf("rgb"),S=P.getUint8(i.points*O.rgb+i.size[x]*E+2)/255,b=P.getUint8(i.points*O.rgb+i.size[x]*E+1)/255,C=P.getUint8(i.points*O.rgb+i.size[x]*E+0)/255;g.setRGB(S,b,C,Hl.SRGBColorSpace),c.push(g.r,g.g,g.b)}if(O.normal_x!==void 0){const x=i.fields.indexOf("normal_x"),S=i.fields.indexOf("normal_y"),b=i.fields.indexOf("normal_z");f.push(this._getDataView(P,i.points*O.normal_x+i.size[x]*E,i.type[x],i.size[x])),f.push(this._getDataView(P,i.points*O.normal_y+i.size[S]*E,i.type[S],i.size[S])),f.push(this._getDataView(P,i.points*O.normal_z+i.size[b]*E,i.type[b],i.size[b]))}if(O.intensity!==void 0){const x=i.fields.indexOf("intensity");u.push(this._getDataView(P,i.points*O.intensity+i.size[x]*E,i.type[x],i.size[x]))}if(O.label!==void 0){const x=i.fields.indexOf("label");m.push(P.getInt32(i.points*O.label+i.size[x]*E,this.littleEndian))}}}if(i.data==="binary"){const M=new DataView(l,i.headerLen),w=i.offset;for(let G=0,A=0;G<i.points;G++,A+=i.rowSize){if(w.x!==void 0){const P=i.fields.indexOf("x"),O=i.fields.indexOf("y"),E=i.fields.indexOf("z");t.push(this._getDataView(M,A+w.x,i.type[P],i.size[P])),t.push(this._getDataView(M,A+w.y,i.type[O],i.size[O])),t.push(this._getDataView(M,A+w.z,i.type[E],i.size[E]))}if(w.rgb!==void 0){const P=M.getUint8(A+w.rgb+2)/255,O=M.getUint8(A+w.rgb+1)/255,E=M.getUint8(A+w.rgb+0)/255;g.setRGB(P,O,E,Hl.SRGBColorSpace),c.push(g.r,g.g,g.b)}if(w.normal_x!==void 0){const P=i.fields.indexOf("normal_x"),O=i.fields.indexOf("normal_y"),E=i.fields.indexOf("normal_z");f.push(this._getDataView(M,A+w.normal_x,i.type[P],i.size[P])),f.push(this._getDataView(M,A+w.normal_y,i.type[O],i.size[O])),f.push(this._getDataView(M,A+w.normal_z,i.type[E],i.size[E]))}if(w.intensity!==void 0){const P=i.fields.indexOf("intensity");u.push(this._getDataView(M,A+w.intensity,i.type[P],i.size[P]))}w.label!==void 0&&m.push(M.getInt32(A+w.label,this.littleEndian))}}const _=new Hl.BufferGeometry;t.length>0&&_.setAttribute("position",new Hl.Float32BufferAttribute(t,3)),f.length>0&&_.setAttribute("normal",new Hl.Float32BufferAttribute(f,3)),c.length>0&&_.setAttribute("color",new Hl.Float32BufferAttribute(c,3)),u.length>0&&_.setAttribute("intensity",new Hl.Float32BufferAttribute(u,1)),m.length>0&&_.setAttribute("label",new Hl.Int32BufferAttribute(m,1)),_.computeBoundingSphere();const p=new Hl.PointsMaterial({size:.005});return c.length>0&&(p.vertexColors=!0),new Hl.Points(_,p)}}const Rf=z.useModelComp(z.pinia),{systemPath:bs}=z.storeToRefs(Rf),xo=e.ref(),ks=new WeakMap;function $f(a,l,n,r,i){const t=async p=>{try{const M=await z.platformDownloadFile({url:p});if(M.status!==200)throw new Error(`下载失败: ${M.status}`);return M.data}catch(M){throw console.error("addModelFromUrl失败:",M),M}},f=p=>new Promise((M,w)=>{const G=new FileReader;G.onload=A=>{try{const P=A.target.result,E=new Hn.MTLLoader().parse(P);E.preload(),M(E)}catch(P){w(P)}},G.onerror=()=>{w(new Error("MTL文件读取失败"))},G.readAsText(p)}),c=async p=>{const M={materials:{},create:function(w){return this.materials[w]?this.materials[w]:(console.warn(`Material '${w}' not found, using default material`),new Hl.MeshPhongMaterial({color:8947848,side:Hl.DoubleSide}))},getAsArray:function(){const w=[];for(const G in this.materials)w.push(this.materials[G]);return w},preload:function(){for(const w in this.materials)this.materials[w].map&&(this.materials[w].map.needsUpdate=!0)}};for(const w of p){const G=await f(w);Object.assign(M.materials,G.materials)}return M.preload(),M},u=async(p,M=[])=>new Promise((w,G)=>{const A=new FileReader;A.onload=async P=>{try{const O=P.target.result;let E=null;M&&M.length>0&&(M.length===1?E=await f(M[0]):E=await c(M));const x=new Hn.OBJLoader;E&&x.setMaterials(E);const S=x.parse(O);E||S.traverse(b=>{b.isMesh&&(b.material=new Hl.MeshPhongMaterial({color:8947848,side:Hl.DoubleSide}))}),w(S)}catch(O){G(O)}},A.onerror=()=>{G(new Error("OBJ文件读取失败"))},A.readAsText(p)}),m=async p=>{var M;try{n.value=!0;const{scene:w}=a();if(!w)throw new Error("Scene not initialized");i();const G=[];for(let A=0;A<p.length;A++){const P=p[A];r.value=`正在加载模型 ${A+1}/${p.length}...`;const O=await t(P.objUrl),E=((M=P.objUrl)==null?void 0:M.split("/").pop())||`model_${A}.obj`,x=new File([O],E,{type:O.type});let S=[];if(P.mtlUrls){const C=Array.isArray(P.mtlUrls)?P.mtlUrls:[P.mtlUrls];for(let R=0;R<C.length;R++){const $=C[R],le=await t($),ee=($==null?void 0:$.split("/").pop())||`material_${A}_${R}.mtl`,_e=new File([le],ee,{type:le.type});S.push(_e)}}const b=await u(x,S);w.add(b),l.value.push(b),G.push(b)}return n.value=!1,G}catch(w){throw console.error("加载模型失败:",w),n.value=!1,w}},g=async(p,M,w=[],G=[])=>{let A;const P=p.toLowerCase();switch(P){case".txt":case".cpt":case".obj":const O=await M.text();if(P===".txt"||P===".cpt"){const oe=/^(?!.*\bf\b)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?$/gm,de=[...O.matchAll(oe)].map(ue=>({x:parseFloat(ue[1]),y:parseFloat(ue[2]),z:parseFloat(ue[3])})),ea=new Hl.BufferGeometry,Ae=de.flatMap(ue=>[ue.x,ue.y,ue.z]);if(ea.setAttribute("position",new Hl.Float32BufferAttribute(Ae,3)),P===".txt"){const ue=new Hl.PointsMaterial({color:"#5B5C99",size:1,sizeAttenuation:!1});A=new Hl.Points(ea,ue)}else if(P===".cpt"){const ue=new Hl.LineBasicMaterial({color:"#5B5C99",linewidth:100});A=new Hl.Line(ea,ue)}}else if(P===".obj"){const oe=new Hn.OBJLoader;if(w&&w.length>0){const sa=new Hn.MTLLoader;for(const de of w){const ea=await de.text(),Ae=sa.parse(ea);Ae.preload(),oe.setMaterials(Ae);break}}A=oe.parse(O),(!w||w.length===0)&&A.traverse(sa=>{sa.isMesh&&(sa.material=new Hl.MeshPhongMaterial({color:"#B3B3D4"})),sa instanceof Hl.Mesh&&(sa.material.side=Hl.DoubleSide)})}break;case".stl":const E=await M.arrayBuffer(),S=new Hn.STLLoader().parse(E),b=new Hl.MeshPhongMaterial({color:"#B3B3D4",side:Hl.DoubleSide});A=new Hl.Mesh(S,b);break;case".nc":const C=["Mach_B_Axis_0.STL","Mach_C_Axis_0.STL","Mach_X_Axis_0.STL","Mach_Y_Axis_0.STL","Mach_Z_Axis_0.STL","Mach_Spindle_0.STL"],R={"Mach_Y_Axis_0.STL":"rgb(128,118,152)","Mach_B_Axis_0.STL":"rgb(204,143,89)","Mach_C_Axis_0.STL":"rgb(145,245,251)","Mach_X_Axis_0.STL":"rgb(125,158,192)","Mach_Z_Axis_0.STL":"rgb(248,228,118)","Mach_Spindle_0.STL":"rgb(145,145,145)"},$=new Hl.Group,le=C.map(oe=>new Promise((sa,de)=>{new Hn.STLLoader().load(bs.value===""?`/model/${oe}`:`${bs.value}\\${oe}`,Ae=>{const ue=new Hl.MeshPhongMaterial({color:R[oe]||"#B3B3D4",side:Hl.DoubleSide}),he=new Hl.Mesh(Ae,ue);sa(he)},void 0,de)}));try{(await Promise.all(le)).forEach(sa=>$.add(sa)),A=$}catch(oe){throw console.error("加载NC文件对应的STL文件失败:",oe),new Error("无法加载.NC文件对应的STL文件")}break;case".pcd":const ee=new Lf,_e=new Hl.Group;try{const oe=await Xa.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/target.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),sa=new Blob([oe.data],{type:"application/octet-stream;charset=UTF-8"}),de=await Xa.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/final.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),ea=new Blob([de.data],{type:"application/octet-stream;charset=UTF-8"}),Ae=await new Promise((he,Ge)=>{const wa=URL.createObjectURL(sa);ee.load(wa,Ia=>{const U=new Float32Array(Ia.geometry.attributes.position.count*3);for(let V=0;V<Ia.geometry.attributes.position.count;V++)U[V*3]=1,U[V*3+1]=0,U[V*3+2]=0;Ia.geometry.setAttribute("color",new Hl.BufferAttribute(U,3)),Ia.material.vertexColors=!0,Ia.scale.set(.3,.3,.3),URL.revokeObjectURL(wa),he(Ia)},void 0,Ge)}),ue=await new Promise((he,Ge)=>{const wa=URL.createObjectURL(ea);ee.load(wa,Ia=>{const U=new Float32Array(Ia.geometry.attributes.position.count*3);for(let V=0;V<Ia.geometry.attributes.position.count;V++)U[V*3]=0,U[V*3+1]=1,U[V*3+2]=0;Ia.geometry.setAttribute("color",new Hl.BufferAttribute(U,3)),Ia.material.vertexColors=!0,Ia.scale.set(.3,.3,.3),URL.revokeObjectURL(wa),he(Ia)},void 0,Ge)});_e.add(Ae),_e.add(ue),A=_e}catch(oe){throw console.error("PCD文件加载失败:",oe),new Error("无法加载PCD文件")}break;case".urdf":const pe=URL.createObjectURL(M),H=new ju.URDFLoader,F="http://139.196.154.85:20026/chfs/shared/机器人/urdf/SmallBender_R-2000iC-165F/meshes",X={maxConcurrentLoads:4,enableCache:!0,enableLOD:!0,simplifyGeometry:!0,shareMaterials:!0,enableInstancing:!0},re=new WeakMap,ve=new WeakMap,Re=new WeakMap,ce=async oe=>{if(re.has(oe))return console.log(`从缓存加载: ${oe}`),re.get(oe);try{const sa=await Xa.axios.get(`${F}/${oe}`,{responseType:"blob",headers:{"Content-Type":"application/json"},timeout:6e5}),de=new Blob([sa.data],{type:"application/octet-stream;charset=UTF-8"});return X.enableCache&&re.set(oe,de),de}catch(sa){throw console.error(`加载文件失败: ${oe}`,sa),new Error(`无法加载文件: ${oe}`)}},B=(oe="default")=>{if(ve.has(oe))return ve.get(oe);const sa=new Hl.MeshPhongMaterial({color:12303291,shininess:30,transparent:!1,alphaTest:.1,side:Hl.FrontSide});return ve.set(oe,sa),sa},te=oe=>{try{oe.isBufferGeometry&&oe.mergeVertices&&oe.mergeVertices(),oe.computeVertexNormals&&oe.computeVertexNormals(),oe.computeBoundingSphere&&oe.computeBoundingSphere(),oe.deleteAttribute&&oe.deleteAttribute("uv2")}catch(sa){console.warn("几何体优化失败,使用原始几何体:",sa)}return oe},q=async(oe,sa,de)=>{const ea=`stl_${sa}`;if(Re.has(ea)){const Ge=Re.get(ea);return new Hl.Mesh(Ge,B())}const Ae=await oe.arrayBuffer();let he=new Hn.STLLoader(de).parse(Ae);return he=te(he),Re.set(ea,he),new Hl.Mesh(he,B())},xe=async(oe,sa,de)=>{const ea=`obj_${sa}`;if(re.has(ea))return re.get(ea).clone();const Ae=await oe.text(),ue=new Hn.OBJLoader(de),he=sa.replace(".obj",".mtl");try{const Ia=await(await ce(he)).text(),V=new Hn.MTLLoader(de).parse(Ia);V.preload(),ue.setMaterials(V)}catch{console.warn(`MTL文件加载失败,使用默认材质: ${he}`)}const Ge=ue.parse(Ae);return Ge.traverse(wa=>{wa.isMesh&&(wa.geometry=te(wa.geometry),wa.castShadow=!0,wa.receiveShadow=!0,wa.renderOrder=1)}),re.set(ea,Ge),Ge},Me=(oe,sa)=>{const de=new Hl.LOD;if(de.addLevel(oe,0),oe.geometry){const ea=oe.geometry.clone(),Ae=new Hl.Mesh(ea,oe.material);de.addLevel(Ae,50)}return de};let $e=0,Qe=0;const _a=[];H.loadMeshCb=async(oe,sa,de,ea,Ae)=>{const ue=oe.split("/").pop(),he=de||(()=>{});$e++;const Ge=new Promise(async(wa,Ia)=>{try{const U=await ce(ue);if(!U||U.size===0)throw new Error(`文件为空: ${ue}`);const V=ue.split(".").pop().toLowerCase();let Q;switch(V){case"stl":Q=await q(U,ue,sa);break;case"obj":Q=await xe(U,ue,sa);break;default:throw new Error(`不支持的文件格式: ${V}`)}X.enableLOD&&Q.isMesh&&(Q=Me(Q,ue)),he(Q),Qe++,ea&&ea({loaded:Qe,total:$e,progress:Qe/$e}),wa(Q)}catch(U){console.error(`mesh文件加载失败: ${ue}`,U);const V=new Hl.Group;he(V),wa(V);const Q=new Hl.BoxGeometry(.1,.1,.1),fe=new Hl.MeshStandardMaterial({color:16711680,wireframe:!0});return new Hl.Mesh(Q,fe)}});_a.push(Ge)};try{if(!pe){xo.value=void 0;break}if(A=await H.loadAsync(pe),console.log(`URDF文件加载完成,等待${$e}个mesh文件加载...`),_a.length>0)try{await Promise.allSettled(_a),console.log(`所有mesh文件处理完成,成功加载: ${Qe}/${$e}`)}catch(de){console.warn("部分mesh文件加载失败,但继续显示模型",de)}A.traverse(de=>{de.isMesh&&(de.castShadow=!0,de.receiveShadow=!0,de.renderOrder=1,de.material&&(de.material.needsUpdate=!0))}),console.time("计算包围盒");const oe=new Hl.Box3;oe.expandByObject(A);const sa=`urdf_${Date.now()}`;A.userData.boundingBox=oe.clone(),A.userData.modelId=sa,ks.set(sa,{box:oe.clone(),center:oe.getCenter(new Hl.Vector3),size:oe.getSize(new Hl.Vector3),maxSize:Math.max(...oe.getSize(new Hl.Vector3).toArray())}),xo.value=A,console.log("URDF模型加载完成并优化")}catch(oe){console.error("URDF加载失败:",oe),xo.value=void 0}finally{pe&&URL.revokeObjectURL(pe)}break;default:throw new Error(`不支持的文件格式: ${p}`)}return A};return{addModelsFromUrls:m,loadModelByDefaultPath:async p=>{console.log(p);try{n.value=!0,r.value="正在加载模型...";const{scene:M}=a();if(!M)throw new Error("Scene not initialized");i(),await new Promise(G=>setTimeout(G,100));const w=[];for(let G=0;G<p.length;G++){const A=p[G],P=await g(A.suffix,A.blob,A.mtlBlobs||[],A.meshFiles||[]);P&&(M.add(P),l.value.push(P),w.push(P))}return n.value=!1,r.value="",w}catch(M){throw console.error("加载模型失败:",M),n.value=!1,r.value="",M}},urdfModel:xo,modelBoundingBoxes:ks}}window._iconfont_svg_string_4827314='<svg><symbol id="icon-chart-new" viewBox="0 0 1024 1024"><path d="M960 768V448h-64v320h-64v64H192v-64h-64V256h64v-64h256v-64H192V64H0v192h64v512H0v192h192v-64h640v64h192V768h-64zM64 128h64v64H64v-64z m0 768v-64h64v64H64z m896 0h-64v-64h64v64zM256 768V256h128v512H256z m192-320h128v320H448V448z m192 192h128v128H640V640zM512 288c0-17.664 14.336-32 32-32h160V96c0-17.664 14.336-32 32-32s32 14.336 32 32v160h160c17.664 0 32 14.336 32 32s-14.336 32-32 32H768v160c0 17.664-14.336 32-32 32s-32-14.336-32-32V320H544c-17.664 0-32-14.336-32-32z" ></path></symbol><symbol id="icon-ai13" viewBox="0 0 1024 1024"><path d="M863.719038 159.366637l-705.295378 0c-48.443315 0-88.129176 39.690978-88.129176 88.161922l0 528.943904c0 48.474015 39.685861 88.161922 88.129176 88.161922l705.295378 0c48.443315 0 88.134293-39.687908 88.134293-88.161922l0-528.943904C951.853331 199.056592 912.162354 159.366637 863.719038 159.366637M643.272277 776.472464l-484.84964 0 0-176.324868 484.84964 0L643.272277 776.472464zM643.272277 556.053332l-484.84964 0 0-176.296215 484.84964 0L643.272277 556.053332zM863.719038 776.472464 687.394171 776.472464l0-396.659065 176.324868 0L863.719038 776.472464z" ></path></symbol><symbol id="icon-qiehuanwenjianjia" viewBox="0 0 1024 1024"><path d="M409.6 102.4L512 204.8h307.2a102.4 102.4 0 0 1 102.144 94.72l0.256 7.68v512a102.4 102.4 0 0 1-94.72 102.144l-7.68 0.256H512v-76.8h281.6a51.2 51.2 0 0 0 50.842-45.21l0.358-5.99V332.8a51.2 51.2 0 0 0-45.21-50.842l-5.99-0.358H486.4L384 179.2H230.4a51.2 51.2 0 0 0-50.842 45.21l-0.358 5.99v179.2h-76.8V204.8a102.4 102.4 0 0 1 94.72-102.144l7.68-0.256h204.8z m217.6 588.8a38.4 38.4 0 1 1 0 76.8H358.4v99.584a25.6 25.6 0 0 1-41.83 19.814L132.3 736.614a25.6 25.6 0 0 1 16.231-45.414zM447.59 389.99l3.84 2.612L635.7 543.386a25.6 25.6 0 0 1-11.623 45.004l-4.608 0.41H140.8a38.4 38.4 0 0 1-5.222-76.442L140.8 512h268.8v-99.584a25.6 25.6 0 0 1 37.99-22.426z" ></path></symbol><symbol id="icon-baogao" viewBox="0 0 1104 1024"><path d="M265.401 1024a174.066 174.066 0 0 1-173.56-173.56V315.3a4.194 4.194 0 0 0-4.338-4.34H41.22A39.63 39.63 0 0 1 0 273.356V123.66C0 55.684 59.3 0 132.339 0h648.678a132.411 132.411 0 0 1 132.339 132.339v553.22a4.194 4.194 0 0 0 4.339 4.34h146.079a40.714 40.714 0 0 1 41.22 41.22v159.819a132.411 132.411 0 0 1-132.339 132.339l-707.254 0.723z m653.017-260.339A4.194 4.194 0 0 0 914.08 768v123.661a59.3 59.3 0 0 0 118.599 0V768a4.194 4.194 0 0 0-4.339-4.339z m-749.198-452.7a4.194 4.194 0 0 0-4.339 4.338v534.419a100.737 100.737 0 0 0 100.52 100.52h582.147a3.977 3.977 0 0 0 3.616-2.17 4.628 4.628 0 0 0 0-4.34 132.7 132.7 0 0 1-10.848-52.79V133.062a59.3 59.3 0 0 0-118.598 0v140.294a39.195 39.195 0 0 1-41.22 37.604zM132.34 73.762c-32.542 0-59.3 22.418-59.3 49.898v109.92a4.194 4.194 0 0 0 4.34 4.34h566.237a4.194 4.194 0 0 0 4.339-4.34V133.063a132.7 132.7 0 0 1 10.847-52.79c0.723-1.447 0-2.893 0-4.34a3.977 3.977 0 0 0-3.616-2.17z m169.22 692.068a36.881 36.881 0 0 1 0-73.763h402.08a36.881 36.881 0 0 1 0 73.763z m0-196.701a36.881 36.881 0 1 1 0-73.763h402.08a36.881 36.881 0 1 1 0 73.763z" ></path></symbol><symbol id="icon-xinghao" viewBox="0 0 1024 1024"><path d="M580.583 425.004c52.988-24.574 104.44-49.276 152.82-73.594 48.381-24.703 87.034-42.877 115.704-54.268 28.67-11.136 51.58-17.023 69.115-17.023a104.952 104.952 0 0 1 74.235 28.798 93.177 93.177 0 0 1 31.485 71.802c0 16.383-5.12 33.534-15.358 51.069-10.24 17.534-21.247 28.926-32.638 33.79-105.976 41.468-222.832 72.058-350.054 90.872 23.038 20.99 51.452 49.405 85.113 84.474 33.79 35.582 51.453 54.268 52.86 56.7 12.416 17.023 29.566 38.397 51.837 63.74 22.142 25.597 37.501 45.18 46.076 59.643a99.833 99.833 0 0 1 13.055 52.092 93.817 93.817 0 0 1-29.693 68.731 103.16 103.16 0 0 1-76.41 29.694c-31.23 0-66.172-24.318-105.337-72.443-39.037-48.124-89.465-135.158-151.029-260.46A12540.003 12540.003 0 0 1 386.677 862.22a387.3 387.3 0 0 1-61.563 81.53 96.889 96.889 0 0 1-67.835 27.774 101.625 101.625 0 0 1-76.026-31.358c-19.711-20.862-30.078-43.517-30.078-66.939 0-22.142 4.095-38.909 12.287-50.172 75.514-102.393 154.356-191.602 236.782-266.605a2401.103 2401.103 0 0 1-184.818-35.709 1163.818 1163.818 0 0 1-172.531-57.724c-9.984-5.12-19.583-16.382-29.054-33.917A104.696 104.696 0 0 1 0.018 380.72a93.433 93.433 0 0 1 31.358-71.675 102.648 102.648 0 0 1 72.186-28.926c19.839 0 44.285 5.887 73.979 17.79 29.438 11.904 67.067 29.054 112.632 51.453 45.564 22.526 97.656 47.74 155.892 75.514a1833.849 1833.849 0 0 1-26.494-177.267 1574.54 1574.54 0 0 1-10.367-137.078c0-30.205 9.599-56.06 28.798-78.074A95.481 95.481 0 0 1 512.62 0.076c29.822 0 54.012 10.75 73.339 32.51 19.454 21.886 29.054 50.683 29.054 86.649 0 9.855-1.664 29.182-4.48 58.491-2.56 29.182-7.04 64.252-12.16 105.465-5.375 41.34-11.39 88.697-17.79 141.813z" fill="#FF4444" ></path></symbol><symbol id="icon-mima" viewBox="0 0 1024 1024"><path d="M776.86 376.04c-22.05 0-40.16-16.24-43.91-37.98-18.08-104.98-109.79-185.1-219.84-185.1s-201.76 80.13-219.84 185.1c-3.74 21.73-21.85 37.98-43.91 37.98-27.05 0-48.82-24.04-44.44-50.73 24.3-148.16 153.25-261.58 308.19-261.58S796.99 177.15 821.3 325.31c4.38 26.69-17.39 50.73-44.44 50.73zM850.18 418.32H180.33c-37.98 0-68.76 30.79-68.76 68.76v403.71c0 37.98 30.79 68.76 68.76 68.76h665.36c37.97 0 68.75-30.77 68.77-68.74l0.19-408c0.02-35.61-28.85-64.49-64.47-64.49zM557.73 762.56c0 24.64-19.97 44.62-44.62 44.62-24.64 0-44.62-19.97-44.62-44.62v-89.23c0-24.64 19.97-44.62 44.62-44.62 24.64 0 44.62 19.98 44.62 44.62v89.23z" ></path></symbol><symbol id="icon-zhanghao" viewBox="0 0 1024 1024"><path d="M407.61 578.87c-174.46 0-304.73 113.04-304.73 277.2v17.69c0 85.81 139.6 85.81 316.37 85.81h187.73c169.75 0 316.37 0 316.37-85.81v-17.69c0-164.16-130.28-277.2-304.73-277.2H407.61zM503.71 535.67c138.19 0 250.63-105.81 250.63-235.94 0-130.06-112.44-235.86-250.63-235.86-138.11 0-250.56 105.81-250.56 235.86 0 130.13 112.45 235.94 250.56 235.94z" ></path></symbol><symbol id="icon-xiangqingye-37" viewBox="0 0 1024 1024"><path d="M368.64 34.133333H112.64C68.266667 34.133333 34.133333 68.266667 34.133333 112.64v256c0 23.893333 17.066667 40.96 40.96 40.96s40.96-17.066667 40.96-40.96V116.053333h252.586667c23.893333 0 40.96-17.066667 40.96-40.96S389.12 34.133333 368.64 34.133333zM911.36 34.133333h-256c-23.893333 0-40.96 17.066667-40.96 40.96s17.066667 40.96 40.96 40.96h252.586667v252.586667c0 23.893333 17.066667 40.96 40.96 40.96s40.96-17.066667 40.96-40.96V112.64C989.866667 68.266667 955.733333 34.133333 911.36 34.133333zM368.64 907.946667H116.053333v-252.586667c0-23.893333-17.066667-40.96-40.96-40.96S34.133333 634.88 34.133333 655.36v256C34.133333 955.733333 68.266667 989.866667 112.64 989.866667h256c23.893333 0 40.96-17.066667 40.96-40.96s-20.48-40.96-40.96-40.96zM948.906667 617.813333c-23.893333 0-40.96 17.066667-40.96 40.96v252.586667h-252.586667c-23.893333 0-40.96 17.066667-40.96 40.96s17.066667 40.96 40.96 40.96h256c40.96 0 78.506667-34.133333 78.506667-78.506667v-256c0-23.893333-17.066667-40.96-40.96-40.96z" fill="#3366CC" ></path><path d="M416.426667 488.106667L307.2 344.746667c-13.653333-17.066667-34.133333-20.48-51.2-6.826667-17.066667 13.653333-20.48 34.133333-6.826667 51.2L337.92 512l-95.573333 126.293333c-13.653333 17.066667-10.24 37.546667 6.826666 51.2 6.826667 3.413333 13.653333 6.826667 20.48 6.826667 10.24 0 23.893333-6.826667 30.72-13.653333l112.64-146.773334c10.24-17.066667 10.24-34.133333 3.413334-47.786666z" fill="#F4A914" ></path><path d="M597.333333 488.106667L488.106667 341.333333c-13.653333-17.066667-34.133333-20.48-51.2-6.826666-17.066667 13.653333-20.48 34.133333-6.826667 51.2l92.16 122.88-95.573333 126.293333c-13.653333 17.066667-10.24 37.546667 6.826666 51.2 6.826667 3.413333 13.653333 6.826667 20.48 6.826667 10.24 0 23.893333-6.826667 30.72-13.653334l112.64-146.773333c10.24-13.653333 10.24-30.72 0-44.373333z" fill="#F4A914" ></path><path d="M778.24 488.106667L669.013333 341.333333c-13.653333-17.066667-34.133333-20.48-51.2-6.826666-17.066667 13.653333-20.48 34.133333-6.826666 51.2l92.16 122.88-95.573334 126.293333c-6.826667 6.826667-6.826667 17.066667-6.826666 27.306667 0 10.24 6.826667 17.066667 13.653333 23.893333 6.826667 3.413333 13.653333 6.826667 23.893333 6.826667 10.24 0 23.893333-6.826667 30.72-13.653334l112.64-146.773333c6.826667-13.653333 6.826667-30.72-3.413333-44.373333z" fill="#F4A914" ></path></symbol><symbol id="icon-gongzhuangmoju" viewBox="0 0 1024 1024"><path d="M192 170.666667A106.965333 106.965333 0 0 0 85.333333 277.333333V426.666667h256l42.666667 85.333333h256l42.666667-85.333333h256V277.333333A106.965333 106.965333 0 0 0 832 170.666667z" fill="#3B709C" ></path><path d="M384 512l-42.666667-85.333333h341.333334l-42.666667 85.333333z m-298.666667-85.333333V256a85.333333 85.333333 0 0 1 85.333334-85.333333h682.666666a85.333333 85.333333 0 0 1 85.333334 85.333333v170.666667zM853.333333 853.333333H170.666667a85.333333 85.333333 0 0 1-85.333334-85.333333v-256h213.333334l42.666666 85.333333h341.333334l42.666666-85.333333h213.333334v256a85.333333 85.333333 0 0 1-85.333334 85.333333z" fill="#2C6798" ></path></symbol><symbol id="icon-jiagongguochengxinxi" viewBox="0 0 1024 1024"><path d="M345.216 664.192a315.84 315.84 0 0 1 93.12-224.64 315.84 315.84 0 0 1 100.992-68.16 315.392 315.392 0 0 1 123.648-24.96 315.392 315.392 0 0 1 158.72 42.368v-264a24.768 24.768 0 0 0-24.768-24.768H559.296a32.64 32.64 0 0 1 0.704 6.976v133.184c0 19.2-15.616 34.816-34.816 34.816H395.072a34.816 34.816 0 0 1-34.752-34.816v-133.12a32.64 32.64 0 0 1 0.64-6.976H123.456a24.768 24.768 0 0 0-24.768 24.832v676.544c0 13.76 11.072 24.832 24.768 24.832h266.24a316.224 316.224 0 0 1-44.416-162.112zM662.976 406.4a257.792 257.792 0 1 0 0 515.52 257.792 257.792 0 0 0 0-515.52z m112.256 293.376a104.704 104.704 0 0 1-107.328 25.216l-68.48 68.48a46.528 46.528 0 0 1-65.728-65.664l68.48-68.48a104.512 104.512 0 0 1 140.8-129.28l-67.072 67.072 10.88 42.88 43.328 11.328 67.072-67.136c16.64 38.336 9.216 84.416-21.952 115.584z m-220.16 51.456a20.928 20.928 0 1 0 41.856 0 20.928 20.928 0 0 0-41.856 0z" ></path></symbol><symbol id="icon-pingtaiguanli" viewBox="0 0 1024 1024"><path d="M1024 806.4V25.6c0-12.8-12.8-25.6-25.6-25.6H25.6C12.8 0 0 12.8 0 25.6v780.8h435.2v166.4H236.8v51.2h556.8v-51.2H588.8v-166.4H1024zM320 281.6c-12.8-12.8-19.2-25.6-32-32l44.8-76.8c44.8 25.6 96 12.8 121.6-32 12.8-12.8 12.8-32 12.8-44.8h89.6c0 51.2 38.4 83.2 89.6 83.2 12.8 0 32-6.4 44.8-12.8l44.8 76.8c-44.8 25.6-57.6 76.8-32 115.2 12.8 12.8 19.2 25.6 32 32l-44.8 76.8c-44.8-19.2-96-6.4-121.6 38.4-12.8 12.8-12.8 25.6-12.8 44.8H467.2c0-44.8-38.4-83.2-89.6-83.2-12.8 0-32 6.4-44.8 12.8l-44.8-83.2c38.4-25.6 51.2-76.8 32-115.2zM102.4 704v-51.2h825.6v51.2H102.4zM512 416c51.2 0 96-38.4 96-89.6S569.6 236.8 512 236.8c-51.2 0-96 38.4-96 89.6 0 51.2 44.8 89.6 96 89.6z" ></path></symbol><symbol id="icon-zhucaidanguanli" viewBox="0 0 1169 1024"><path d="M787.333831 588.946093a75.189984 75.189984 0 0 0-75.093984 75.092984 75.189984 75.189984 0 0 0 75.093984 75.093984 75.165984 75.165984 0 0 0 75.067984-75.093984 75.165984 75.165984 0 0 0-75.067984-75.092984m0 222.841953a147.919968 147.919968 0 0 1-147.748968-147.748969c0-81.455982 66.291986-147.747968 147.748968-147.747968 81.431983 0 147.747968 66.291986 147.747968 147.747968 0 81.480982-66.315986 147.748968-147.747968 147.748969m89.452981 102.106978c0.342 0.244 1.317 0.585 2.315999 0.585h0.122l71.484985-39.496992c-1.706-4.022999-9.605998-23.478995-9.605998-43.739991a113.858976 113.858976 0 0 1 107.739977-113.613975c0.853-4.729999 5.557999-31.524993 5.557998-51.639989s-4.704999-46.88399-5.558998-51.637989a113.858976 113.858976 0 0 1-107.738977-113.565976c0-20.357996 7.923998-39.813991 9.605998-43.81299l-70.313985-39.057992-0.293-0.025a5.339999 5.339999 0 0 0-2.706 0.732 196.753958 196.753958 0 0 1-26.014994 21.819995c-21.698995 15.238997-42.153991 22.967995-60.951987 22.967995-18.919996 0-39.594991-7.874998-61.390987-23.405995a194.705958 194.705958 0 0 1-26.160994-22.283995 5.777999 5.777999 0 0 0-2.729999-0.707h-0.245l-72.824985 40.032992c1.706 4.046999 9.580998 23.479995 9.580998 43.73999A113.858976 113.858976 0 0 1 528.895886 614.350088c-0.854 4.729999-5.509999 31.524993-5.509998 51.638989s4.655999 46.90899 5.533998 51.662989a113.858976 113.858976 0 0 1 107.763977 113.589975c0 20.334996-7.972998 39.863991-9.679998 43.788991l68.973985 38.545992h0.146c1.024 0 1.95-0.365 2.317-0.585a200.849957 200.849957 0 0 1 26.428994-23.161995c22.088995-16.188997 43.079991-24.429995 62.414987-24.429995 19.552996 0 40.715991 8.387998 62.950986 24.917995 14.920997 11.068998 25.258995 22.185995 26.550995 23.575995m22.673995 108.397976c-13.774997-0.025-27.135994-5.704999-35.765993-15.213996-11.775997-12.896997-49.005989-46.44599-79.530982-46.44599-30.280993 0-68.119985 33.767993-78.993984 45.54399-8.606998 9.386998-21.869995 14.969997-35.498992 14.969997-6.484999 0-12.604997-1.243-18.187996-3.706l-0.975-0.414-92.69698-51.833988-0.926-0.683a44.46999 44.46999 0 0 1-14.920996-53.735989c0.049-0.146 8.532998-19.699996 8.532998-37.594992a98.376979 98.376979 0 0 0-98.254979-98.254978h-3.900999c-15.505997 0-28.159994-13.799997-32.182993-35.108993-0.341-1.706-7.923998-42.178991-7.923999-74.044984 0-31.913993 7.557998-72.361984 7.899999-74.117984 4.119999-21.576995 16.992996-35.449992 32.816993-35.083993h3.266999a98.400979 98.400979 0 0 0 98.279979-98.303978c0-17.846996-8.484998-37.399992-8.558998-37.619992a44.34899 44.34899 0 0 1 15.067996-53.661989l0.95-0.658 97.840979-53.759988 1.024-0.415c5.485999-2.364999 11.507998-3.534999 17.895996-3.534999 13.604997 0 26.891994 5.436999 35.595992 14.628997 11.580998 12.116997 48.17699 43.641991 77.774984 43.64199 29.354994 0 65.755986-30.914993 77.287983-42.812991 8.654998-8.996998 21.844995-14.335997 35.302992-14.335997 6.509999 0 12.653997 1.219 18.285997 3.657l0.974999 0.414 94.47698 52.516988 0.95 0.658c16.895996 11.751997 23.332995 34.889993 14.945997 53.735989-0.049 0.146-8.532998 19.699996-8.532999 37.545992a98.400979 98.400979 0 0 0 98.254979 98.279978h3.291c15.774997-0.341 28.719994 13.506997 32.816993 35.107993 0.317 1.707 7.899998 42.203991 7.899998 74.069984 0 31.889993-7.582998 72.410984-7.948998 74.117984-4.046999 21.551995-16.992996 35.424992-32.767993 35.059993h-3.291a98.400979 98.400979 0 0 0-98.254979 98.278978c0 17.846996 8.483998 37.449992 8.556999 37.619992a44.42199 44.42199 0 0 1-15.017997 53.710989l-0.927 0.683-96.133979 53.100988-0.975 0.415a44.88499 44.88499 0 0 1-17.846996 3.583999z m222.061952-705.339848a48.76199 48.76199 0 1 1-97.523979 0V121.977194c0-13.457997-10.873998-24.453995-24.307995-24.453995h-877.859811c-13.262997 0-24.306995 10.970998-24.306995 24.453995v584.995874c0 13.457997 10.873998 24.453995 24.307995 24.453995h219.500953a48.76199 48.76199 0 1 1 0 97.523979H48.907989A48.76199 48.76199 0 0 1 0 780.190052V48.76221C0 21.822215 21.893995 0.00022 48.907989 0.00022h1023.706781a48.76199 48.76199 0 0 1 48.907989 48.76199v268.189942zM219.427953 975.23701c0-26.940994 21.991995-48.76199 48.981989-48.761989h194.607959a48.76199 48.76199 0 1 1 0 97.523979H268.433942a48.76199 48.76199 0 0 1-49.005989-48.76199z" ></path></symbol><symbol id="icon-caidanguanli" viewBox="0 0 1024 1024"><path d="M414.2 78H158.6c-41.5 0-75.3 33.8-75.3 75.3v255.5c0 41.5 33.8 75.3 75.3 75.3h255.5c41.5 0 75.3-33.8 75.3-75.3V153.3c0-41.5-33.7-75.3-75.2-75.3z m5.2 330.8c0 2.9-2.4 5.3-5.3 5.3H158.6c-2.9 0-5.3-2.4-5.3-5.3V153.3c0-2.9 2.4-5.3 5.3-5.3h255.5c2.9 0 5.3 2.4 5.3 5.3v255.5zM414.2 544.8H158.6c-41.5 0-75.3 33.8-75.3 75.3v255.5c0 41.5 33.8 75.3 75.3 75.3h255.5c41.5 0 75.3-33.8 75.3-75.3V620.1c0-41.5-33.7-75.3-75.2-75.3z m5.2 330.8c0 2.9-2.4 5.3-5.3 5.3H158.6c-2.9 0-5.3-2.4-5.3-5.3V620.1c0-2.9 2.4-5.3 5.3-5.3h255.5c2.9 0 5.3 2.4 5.3 5.3v255.5zM908.8 119.3H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 343.8H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 568.3H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 792.8H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35z" ></path></symbol><symbol id="icon-jueseguanli" viewBox="0 0 1024 1024"><path d="M874.9 577.3c-26.1-27.2-56.8-48.9-90.3-64.1 5.4-4.6 10.6-9.6 15.5-14.8 32.3-34.7 50.1-79.8 50.1-127.2 0-102.9-83.7-186.7-186.7-186.7-11 0-21.8 0.9-32.5 2.8-7.1-9.6-14.9-18.7-23.4-27.2-44.6-44.6-103.9-69.2-167-69.2s-122.4 24.6-167 69.2-69.2 103.9-69.2 167 24.6 122.4 69.2 167c10.8 10.8 22.4 20.4 34.8 28.7-4.9 1.8-9.7 3.8-14.5 5.8-44.9 19-85.2 46.2-119.9 80.8-34.6 34.6-61.8 75-80.8 119.9-19.7 46.5-29.6 95.9-29.6 146.8 0 17.7 1.2 35.5 3.7 52.9l69.3-9.7c-2-14.2-3-28.7-3-43.1 0-169.4 137.8-307.1 307.1-307.1s307.1 137.8 307.1 307.1c0 14.4-1 28.9-3 43.1l69.3 9.7c2.4-17.4 3.7-35.2 3.7-52.9 0-50.9-10-100.3-29.6-146.8-19-44.9-46.2-85.2-80.8-119.9-34.6-34.6-74.9-61.8-119.9-80.8-4.8-2-9.7-4-14.6-5.8 12.3-8.4 24-18 34.8-28.7 44.6-44.6 69.2-103.9 69.2-167 0-25-3.9-49.4-11.3-72.6 63.4 1.1 114.7 53 114.7 116.6 0 45.5-26.6 85.6-65.3 104.7-16.3 8.1-26.8 24.4-26.8 42.6v1c0 21.2 14.1 40 34.6 45.5 94.9 25.8 163.8 112.4 163.8 215 0 10.5-0.7 21-2.2 31.3l69.3 9.7c1.9-13.5 2.9-27.3 2.9-41-0.1-75.8-29.1-147.8-81.7-202.6z m-434.3-84c-91.6 0-166.2-74.6-166.2-166.2S349 160.9 440.6 160.9s166.2 74.6 166.2 166.2-74.5 166.2-166.2 166.2z" ></path></symbol><symbol id="icon-zhiweiguanli" viewBox="0 0 1024 1024"><path d="M878.4 243.5h-91.2v-41.2c0-58.6-47.7-106.2-106.2-106.2H354.2c-58.6 0-106.2 47.7-106.2 106.2v41.2h-91.2c-43.2 0-78.4 35.1-78.4 78.4V856c0 43.2 35.1 78.4 78.4 78.4h721.5c43.2 0 78.4-35.1 78.4-78.4V321.8c0-43.2-35.1-78.3-78.3-78.3zM318 202.3c0-20 16.2-36.2 36.2-36.2H681c20 0 36.2 16.3 36.2 36.2v41.2H318v-41.2zM156.8 313.5h721.5c4.6 0 8.4 3.7 8.4 8.4V554H692.4c-14.8-45.3-57.4-78.2-107.6-78.2H450.4c-50.2 0-92.9 32.9-107.6 78.2H148.5V321.8c0-4.6 3.7-8.3 8.3-8.3zM628 588.9c0 23.8-19.4 43.2-43.2 43.2H450.4c-23.8 0-43.2-19.4-43.2-43.2 0-23.8 19.4-43.2 43.2-43.2h134.3c23.9 0 43.3 19.4 43.3 43.2z m250.4 275.5H156.8c-4.6 0-8.4-3.7-8.4-8.4V623.9h194.3c14.8 45.3 57.4 78.2 107.6 78.2h134.3c50.2 0 92.9-32.9 107.6-78.2h194.3V856c0.2 4.6-3.5 8.4-8.1 8.4z" ></path></symbol><symbol id="icon-bumenguanli" viewBox="0 0 1024 1024"><path d="M322.5 62h384.6v70H322.5z" ></path><path d="M870.2 62h-59.3v70h59.3c7.2 0 13 5.8 13 13v733.9c0 7.2-5.8 13-13 13h-720c-7.2 0-13-5.8-13-13V145c0-7.2 5.8-13 13-13h68.6V62h-68.6c-45.8 0-83 37.2-83 83v733.9c0 45.8 37.2 83 83 83h720c45.8 0 83-37.2 83-83V145c0-45.8-37.3-83-83-83z" ></path><path d="M295 806.2c-0.5-5.7-0.7-11.6-0.7-17.3 0-119 96.8-215.8 215.8-215.8S726 669.8 726 788.8c0 5.8-0.2 11.6-0.7 17.3l69.8 5.6c0.6-7.6 0.9-15.3 0.9-22.9 0-76.4-29.7-148.1-83.7-202.1-29.7-29.8-64.9-52.1-103.3-66.2 45.6-31.5 75.5-84.1 75.5-143.5 0-96.1-78.2-174.4-174.4-174.4-96.1 0-174.4 78.2-174.4 174.4 0 59.5 29.9 112 75.5 143.5C373 534.6 337.8 557 308 586.7c-54 54-83.7 125.8-83.7 202.1 0 7.6 0.3 15.3 0.9 22.9l69.8-5.5z m215.2-533.6c57.5 0 104.4 46.8 104.4 104.4 0 57.5-46.8 104.4-104.4 104.4-57.5 0-104.4-46.8-104.4-104.4 0-57.6 46.8-104.4 104.4-104.4z" ></path></symbol><symbol id="icon-gerenzhongxin" viewBox="0 0 1024 1024"><path d="M930.4 337.3c-22.7-53.7-55.2-101.9-96.6-143.3-41.4-41.4-89.6-73.9-143.3-96.6C634.9 73.9 575.9 62 515.1 62c-60.8 0-119.9 11.9-175.5 35.4-53.7 22.7-101.9 55.2-143.3 96.6-41.4 41.4-73.9 89.6-96.6 143.3-23.5 55.6-35.4 114.6-35.4 175.5 0 50.5 8.3 100.1 24.7 147.4l66.1-22.9c-13.8-39.9-20.8-81.8-20.8-124.5 0-209.9 170.8-380.7 380.7-380.7 209.9 0 380.8 170.8 380.8 380.7 0 41.6-6.7 82.5-19.8 121.5l66.3 22.3c15.6-46.2 23.5-94.7 23.5-143.9 0-60.8-11.9-119.8-35.4-175.4z" ></path><path d="M656.9 422.2c0-76.9-62.6-139.5-139.5-139.5s-139.5 62.6-139.5 139.5 62.6 139.5 139.5 139.5 139.5-62.6 139.5-139.5z m-209 0c0-38.3 31.2-69.5 69.5-69.5s69.5 31.2 69.5 69.5-31.2 69.5-69.5 69.5-69.5-31.2-69.5-69.5zM713.8 627.8c-62-27.2-128.1-40.9-196.4-40.9-69 0-135.7 14-198.2 41.7-60.4 26.7-114.1 64.9-159.5 113.3l-20.3 21.7 18.1 23.6c41.2 53.6 94.8 98 155 128.3 63.2 31.8 131.3 48 202.6 48 71.9 0 140.6-16.4 204.2-48.8 60.7-30.9 114.5-76 155.6-130.4l17.9-23.7-20.5-21.6c-45.3-47.6-98.6-85-158.5-111.2zM515.1 893.5c-109 0-210.3-45.3-282.5-125.4 77.7-71.9 177.7-111.2 284.8-111.2 105.8 0 204.9 38.4 282.2 108.8-72.2 81.6-174.3 127.8-284.5 127.8z" ></path></symbol><symbol id="icon-yonghuguanli" viewBox="0 0 1024 1024"><path d="M751.4 553.2c-42.5-38.5-92.1-67.1-145.5-84.6 53.2-38.9 87.8-101.8 87.8-172.7C693.7 178 597.7 82 479.8 82c-57.1 0-110.8 22.2-151.2 62.6C288.2 185 266 238.7 266 295.8s22.2 110.8 62.6 151.2c7.8 7.8 16.2 15 25 21.4-10.5 3.5-20.9 7.3-31.2 11.7-48.2 20.4-91.4 49.5-128.5 86.7s-66.3 80.4-86.7 128.5c-21.1 49.9-31.8 102.9-31.8 157.4 0 24.8 2.3 49.7 6.8 73.9l68.8-12.7c-3.7-20-5.6-40.6-5.6-61.2 0-184.4 150-334.4 334.4-334.4 83.2 0 163 30.8 224.5 86.6l47.1-51.7zM479.8 152c79.3 0 143.9 64.5 143.9 143.9s-64.5 143.9-143.9 143.9S336 375.2 336 295.9 400.5 152 479.8 152zM726.3 665.3h213.8v70H726.3zM503 831.6h437.1v70H503z" ></path></symbol><symbol id="icon-app" viewBox="0 0 1024 1024"><path d="M363.485867 865.117867h305.5616c21.6576 0 39.2192-17.194667 39.2192-38.4s-17.5616-38.4-39.2192-38.4H363.485867c-21.6576 0-39.2192 17.194667-39.2192 38.4s17.5616 38.4 39.2192 38.4z" fill="#A6ADB4" ></path><path d="M945.288533 699.835733a40.448 40.448 0 0 0-43.195733 43.1872v147.037867a46.865067 46.865067 0 0 1-45.960533 48.708267H166.766933a46.882133 46.882133 0 0 1-45.038933-48.708267v-147.029333a40.439467 40.439467 0 1 0-80.887467 0v147.029333a125.883733 125.883733 0 0 0 125.9264 128.657067h693.0432c70.203733-1.006933 126.4384-58.461867 125.9264-128.657067v-147.029333a40.430933 40.430933 0 0 0-40.448-43.195734zM40.840533 127.735467v147.959466a39.517867 39.517867 0 0 0 79.044267 0V127.735467a45.943467 45.943467 0 0 1 46.882133-47.786667h693.0432a46.882133 46.882133 0 0 1 45.960534 47.786667v147.959466a39.509333 39.509333 0 0 0 39.517866 39.509334 40.448 40.448 0 0 0 40.448-39.509334V127.735467C986.248533 58.052267 930.423467 1.024 860.7232 0H166.775467A125.934933 125.934933 0 0 0 40.840533 127.744z m168.4992 427.972266H326.229333L357.316267 640H418.133333L295.150933 315.733333h-52.701866L119.466667 640h60.817066l29.056-84.292267zM269.124267 392.533333L307.2 503.466667h-76.8l38.724267-110.933334z m231.552 131.959467h32.631466a123.246933 123.246933 0 0 0 88.192-28.535467c23.389867-19.959467 36.394667-49.134933 35.413334-79.488 1.6384-28.245333-9.838933-55.722667-31.249067-74.743466a127.573333 127.573333 0 0 0-84.0192-25.813334H443.733333V640h56.942934V524.4928zM503.466667 366.933333h32.136533c42.180267 0 61.602133 17.493333 61.602133 53.162667 1.092267 16.0256-4.8128 31.701333-16.068266 42.666667a71.364267 71.364267 0 0 1-51.5584 14.677333H503.466667V366.933333z m286.293333-51.0976H691.2V640h57.3184V524.4672h32.853333c31.837867 1.928533 63.189333-8.311467 87.381334-28.544 23.543467-19.959467 36.625067-49.152 35.643733-79.505067 1.536-28.100267-9.710933-55.441067-30.754133-74.752a131.84 131.84 0 0 0-83.882667-25.8304z m39.4752 147.131734a73.813333 73.813333 0 0 1-49.527467 14.72H750.933333V366.933333h32.119467c42.1632 0 61.576533 17.527467 61.576533 53.2736 1.262933 15.957333-4.394667 31.650133-15.394133 42.752z" fill="#A6ADB4" ></path></symbol><symbol id="icon-yepian" viewBox="0 0 1024 1024"><path d="M807.936 99.328c-17.408 0-32.256 9.216-40.448 23.552h-348.16L284.672 355.84l35.84 35.84 126.976-219.648h321.536c8.192 12.8 22.528 20.992 38.912 20.992 25.6 0 46.592-20.992 46.592-46.592s-20.992-47.104-46.592-47.104z" ></path><path d="M301.056 50.688c-8.704 14.848-7.68 32.768 0 46.592L127.488 399.36l134.656 232.448 48.64-13.312L183.808 399.36l160.256-279.04c15.36-1.024 29.696-9.216 37.888-23.04 12.8-22.528 5.12-50.688-17.408-63.488s-50.688-5.632-63.488 16.896z" ></path><path d="M15.872 467.456c8.704 14.848 24.064 23.552 40.448 23.552L228.352 793.6l268.8 1.536 13.312-48.64-253.44-1.536-159.232-279.552c6.656-13.312 7.168-30.208-1.024-44.032-12.8-22.528-40.96-30.208-63.488-17.408-22.528 12.8-30.208 40.96-17.408 63.488z" ></path><path d="M216.064 924.672c17.408 0 32.256-9.216 40.448-23.552h348.16l134.144-232.448-35.84-35.84-126.976 219.648H254.976c-8.192-12.8-22.528-20.992-38.912-20.992-25.6 0-46.592 20.992-46.592 46.592s20.992 46.592 46.592 46.592z" ></path><path d="M722.944 973.312c8.704-14.848 7.68-32.768 0-46.592l173.568-302.08-134.656-232.448-48.64 13.312 127.488 219.136-160.256 279.04c-15.36 1.024-29.696 9.216-37.888 23.04-12.8 22.528-5.12 50.688 17.408 63.488 22.016 13.312 50.176 5.632 62.976-16.896z" ></path><path d="M1008.128 556.544c-8.704-14.848-24.064-23.552-40.448-23.552L795.648 230.4l-268.8-1.536-13.312 48.64 253.44 1.536 159.232 279.552c-6.656 13.312-7.168 30.208 1.024 44.032 12.8 22.528 40.96 30.208 63.488 17.408 22.528-12.8 30.208-40.96 17.408-63.488zM512 391.168C445.44 391.168 391.168 445.44 391.168 512S445.44 632.832 512 632.832s120.832-54.272 120.832-120.832S578.56 391.168 512 391.168z m0 196.096c-41.472 0-75.264-33.792-75.264-75.264s33.792-75.264 75.264-75.264 75.264 33.792 75.264 75.264-33.792 75.264-75.264 75.264z" ></path></symbol><symbol id="icon-left-circle-fill" viewBox="0 0 1024 1024"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m104 316.9c0 10.2-4.9 19.9-13.2 25.9L457.4 512l145.4 105.2c8.3 6 13.2 15.6 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.5l-246-178c-4.4-3.2-4.4-9.7 0-12.9l246-178c5.3-3.8 12.7-0.1 12.7 6.5v46.8z" ></path></symbol><symbol id="icon-right-circle-fill" viewBox="0 0 1024 1024"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m154.7 454.5l-246 178c-5.3 3.8-12.7 0-12.7-6.5v-46.9c0-10.2 4.9-19.9 13.2-25.9L566.6 512 421.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.8 0 13z" ></path></symbol><symbol id="icon-xitongguanli" viewBox="0 0 1026 1024"><path d="M400.896 67.072H140.8c-24.064 0-46.592 11.264-59.392 29.696-9.216 12.8-14.848 27.648-14.848 44.544v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24V141.312c0.512-40.96-33.28-74.24-73.728-74.24z m0 361.984v9.216-9.216z m335.872 83.456c18.432 0 35.328-7.168 48.128-20.48L939.008 337.92c12.8-12.8 20.48-29.696 20.48-48.128s-7.168-35.328-20.48-48.128l-154.112-155.648c-26.112-26.112-70.656-26.112-96.256 0l-154.112 154.112c-12.8 12.8-20.48 29.696-20.48 48.128 0 18.432 7.168 35.328 20.48 48.128l154.112 154.112c12.8 14.336 29.184 22.016 48.128 22.016z m0-369.152l146.432 146.432-146.432 146.432-144.896-146.432L736.768 143.36z m-335.872 406.016H140.8c-40.96 0-74.24 33.28-74.24 74.24v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24v-259.584c0.512-40.448-33.28-74.24-73.728-74.24z m0 352.768v18.432-18.432z m484.352-352.768h-259.584c-40.96 0-74.24 33.28-74.24 74.24v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24v-259.584c0-40.448-33.792-74.24-74.24-74.24z" ></path></symbol><symbol id="icon-gongjianku" viewBox="0 0 1024 1024"><path d="M798.72 320v446.976H223.232V320H63.488v532.48c0 41.472 33.792 75.264 75.264 75.264h745.472c41.472 0 75.264-33.792 75.264-75.264v-532.48H798.72z" ></path><path d="M608.256 494.592z m-10.24-4.608z" ></path><path d="M819.2 96.256H203.776c-41.472 0-75.264 33.792-75.264 75.264V286.72h128v448h510.464V286.72h128V171.008c-0.512-41.472-34.304-74.752-75.776-74.752z m-154.112 493.056l-12.8 12.8c-12.8 12.8-33.28 12.8-46.08 0L477.184 473.088c-33.792 11.776-72.704 4.608-99.328-22.528-27.136-27.136-34.304-66.048-22.528-99.84l38.4 38.4c12.8 12.8 33.28 12.8 46.08 0l12.8-12.8c12.8-12.8 12.8-33.28 0-46.08L414.208 291.84c33.792-11.776 72.704-4.096 99.84 22.528 27.136 27.136 34.304 66.048 22.528 99.84l128.512 128.512c12.288 13.312 12.288 33.792 0 46.592z" ></path></symbol><symbol id="icon-fangfaku" viewBox="0 0 1024 1024"><path d="M256 170.496v170.496h512V170.496h85.504c23.552 0 42.496 18.944 42.496 42.496V896c0 23.552-18.944 42.496-42.496 42.496H170.496c-23.552 0-42.496-18.944-42.496-42.496V212.992c0-23.552 18.944-42.496 42.496-42.496H256z m256 513.024H256v83.456h256v-83.456zM768 491.52H256v83.456h512V491.52zM341.504 85.504h341.504V256H341.504V85.504z" ></path></symbol><symbol id="icon-shebeiku" viewBox="0 0 1024 1024"><path d="M960 491.52v380.416c0 26.112-23.04 47.616-52.224 47.616H116.224c-29.184 0-52.224-21.504-52.224-47.616V491.52c0-26.112 23.04-47.616 52.224-47.616h791.552c28.672 0 52.224 21.504 52.224 47.616z m-149.504 156.16H213.504V783.36h596.992v-135.68z m149.504-500.736v186.88c0 23.04-20.992 42.496-46.592 42.496H110.592c-25.6 0-46.592-18.944-46.592-42.496V146.944c0-23.04 20.992-42.496 46.592-42.496h802.304c26.112 0 47.104 18.944 47.104 42.496z m-671.744 25.6c-41.472 0-74.752 30.208-74.752 68.096s33.792 68.096 74.752 68.096S363.008 278.528 363.008 240.64s-33.792-68.096-74.752-68.096z m224.256 0c-41.472 0-74.752 30.208-74.752 68.096s33.792 68.096 74.752 68.096 74.752-30.208 74.752-68.096-33.792-68.096-74.752-68.096z" ></path></symbol><symbol id="icon-wenjian" viewBox="0 0 1024 1024"><path d="M273.54647 325.996013h476.395357c19.444708-2.046811 36.842605 11.769166 39.40112 30.702171 2.046811 19.444708-11.769166 36.330903-31.213874 38.377714-2.558514 0.511703-5.117029 0.511703-7.675543 0H273.54647c-10.234057-0.511703-19.956411-4.605326-26.608548-11.257463-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737 0.511703-19.956411 17.397897-35.307497 37.866011-34.284091v1.023406z m0 209.286467h476.395357c19.444708-2.046811 36.842605 11.769166 39.40112 30.702171 2.046811 19.444708-11.769166 36.330903-31.213874 38.377714-2.558514 0.511703-5.117029 0.511703-7.675543 0H273.54647c-9.722354 0-19.444708-3.58192-26.608548-10.234057-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737 0.511703-19.444708 17.397897-35.307497 37.354308-34.284091z m0 185.748136h324.931312c19.444708 0 35.307497 15.862788 35.307497 34.795794 0 19.444708-15.862788 34.795794-35.307497 34.795794H273.54647c-9.722354-0.511703-19.444708-4.093623-26.608548-10.74576-6.652137-6.140434-10.74576-14.839383-10.74576-24.050034 0.511703-19.444708 17.397897-35.307497 37.354308-34.795794zM135.898402 0.041294h96.71184c17.397897-0.511703 33.772388 8.187246 43.494742 22.514926l53.217097 82.38416c4.605326 7.16384 12.792571 11.769166 20.979817 11.257462h322.884501c8.698949 0 16.886194-4.093623 21.49152-11.257462l53.217097-82.38416c9.722354-14.32768 26.096846-23.026628 43.494742-22.514926h97.223543c53.7288-1.535109 98.246948 39.912823 100.293759 93.12992v837.657572c-2.046811 52.705394-46.56496 94.153325-100.293759 93.12992h-752.203196c-53.7288 1.535109-98.758651-39.912823-100.293759-92.618217V93.171214C37.139751 39.954117 82.169603-1.493814 135.898402 0.041294z m82.895863 70.103291H135.898402c-6.652137 0-13.304274 2.558514-18.421303 6.652138-4.605326 4.093623-7.16384 10.234057-7.16384 16.374491v837.657572c0.511703 13.304274 11.769166 23.538331 25.07344 23.026629h752.203196c6.652137 0 13.304274-2.558514 18.421303-6.652138 4.605326-4.093623 7.16384-10.234057 7.16384-16.374491V93.171214c0.511703-6.140434-2.046811-12.280868-7.16384-16.374491-5.117029-4.605326-11.257463-6.652137-18.421303-6.652138h-82.895862l-46.053257 70.614994c-18.933006 28.65536-51.681988 45.541554-86.477783 45.029851H350.813601c-34.795794 0.511703-67.544777-16.374491-86.477782-45.029851l-45.541554-70.614994zM399.425372 0.041294h225.149256c19.956411-0.511703 36.842605 15.351086 37.866011 34.795795-0.511703 19.956411-17.397897 35.307497-37.866011 34.795794H399.425372c-10.234057-0.511703-19.956411-4.093623-27.120251-10.74576-6.652137-6.140434-10.74576-15.351086-10.234057-24.050034C362.582767 15.39238 378.957258-0.470408 399.425372 0.041294z" ></path></symbol><symbol id="icon-bianjimoban" viewBox="0 0 1025 1024"><path d="M127.110228 701.648461q0 26.438928 18.812314 45.251241t46.268123 18.812314l253.203575 0 0 128.12711-318.284012 0q-26.438928 0-49.82721-9.660377t-40.675273-26.947368-26.947368-40.675273-9.660377-50.844091l0-637.584906q0-26.438928 9.660377-49.82721t26.947368-40.675273 40.675273-27.455809 49.82721-10.168818l766.728898 0q26.438928 0 49.82721 10.168818t40.675273 27.455809 27.455809 40.675273 10.168818 49.82721l0 187.106256-128.12711 1.016882q-2.033764-25.422046-19.829196-43.217478t-44.234359-17.795432l-637.584906 0q-27.455809 0-46.268123 18.812314t-18.812314 45.251241l0 382.347567zM1016.881827 501.322741q6.101291 9.151936 7.626614 23.388282t-10.677259 28.472691q-11.1857 14.236346-18.303873 21.354518l-8.135055 8.135055-105.75571-95.586892q5.084409-6.101291 14.236346-14.744786t14.236346-13.727905q14.236346-14.236346 30.506455-12.711023t27.455809 6.609732q12.202582 5.084409 26.438928 18.812314t22.3714 29.998014zM613.179742 789.100298q3.050645-3.050645 14.236346-16.270109t27.96425-32.540218 37.116187-42.200596 40.675273-46.268123q48.810328-54.911619 108.806356-122.025819l107.789474 95.586892q-59.996028 68.131082-108.806356 123.042701-20.337637 23.388282-40.675273 46.268123t-37.116187 41.183714-27.455809 29.998014-12.711023 13.727905q-9.151936 12.202582-25.422046 20.337637-7.118173 5.084409-21.354518 11.1857t-29.998014 12.202582-29.489573 10.677259-20.846077 5.59285q-26.438928 5.084409-23.388282-22.3714 1.016882-7.118173 4.067527-21.862959t6.609732-30.506455 7.118173-28.981132 5.59285-18.303873q5.084409-13.219464 17.286991-28.472691z" ></path></symbol><symbol id="icon-shanchu1" viewBox="0 0 1024 1024"><path d="M78.768011 168.230165c0-30.999918 24.230644-56.076722 54.15419-56.076722L403.692131 112.153443 403.692131 56.076722c0-30.999918 24.230644-56.076722 54.15419-56.076722l108.306335 0c29.923546 0 54.155214 25.076803 54.155214 56.076722l0 56.077745 270.768906 0c29.923546 0 54.15419 25.076803 54.15419 56.076722l0 56.076722L78.768011 224.307909 78.768011 168.230165zM891.076776 336.461352l0 112.153443 0 519.30746c0 30.923181-24.231667 56.077745-54.153167 56.077745L187.076392 1024c-29.923546 0-54.15419-25.154564-54.15419-56.077745L132.922201 448.614796 132.922201 336.461352l0-56.077745 758.154574 0L891.076776 336.461352zM349.53794 448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523 0-54.153167 25.153541-54.153167 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.153167 56.077745 29.923546 0 54.15419-25.154564 54.15419-56.077745L349.53794 448.614796zM566.153679 448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523 0-54.153167 25.153541-54.153167 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.153167 56.077745 29.923546 0 54.15419-25.154564 54.15419-56.077745L566.153679 448.614796zM782.770441 448.614796c0-30.923181-24.231667-56.076722-54.155214-56.076722s-54.15419 25.153541-54.15419 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.15419 56.077745s54.155214-25.154564 54.155214-56.077745L782.770441 448.614796z" ></path></symbol><symbol id="icon-edit" viewBox="0 0 1024 1024"><path d="M923.9 335.8c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.8-35.2-174.3-35.2S392.2 74.1 337 97.5c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3C75.3 391 63.5 449.7 63.5 510.1c0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c35.9-15.2 69.3-34.8 99.8-58.5l-0.1-0.1c9.1-7.4 14.8-18.6 14.8-31.2 0-22.3-18-40.3-40.3-40.3-9.2 0-17.7 3.1-24.5 8.3l-0.2-0.3c-62 47.9-139.7 76.4-223.9 76.4-202.3 0-366.9-164.6-366.9-366.9s164.7-366.9 367-366.9 366.9 164.6 366.9 366.9c0 66.2-17.6 128.3-48.4 182l0.4 0.2c-4.4 6.5-7 14.2-7 22.6 0 22.3 18 40.3 40.3 40.3 16 0 29.8-9.3 36.3-22.8l0.2 0.1c8.9-15.5 16.8-31.5 23.8-48.1 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.7-119.1-35.1-174.3z" ></path><path d="M693.7 626.5H507.6l-57.1 66.1h243.2zM663.2 411.4c7.5-7.6 7.5-23.5 0-31.3l-45.4-46.8c-7.7-7.6-22.9-7.6-30.4 0l-45.7 46.8 76.1 78.1 45.4-46.8zM328.8 614.5v78.1h76.1l197.5-218.7-76-77.9z" ></path></symbol><symbol id="icon-new" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M695.7 469.2h-139v-139c0-23.6-19.3-43-43-43-23.6 0-43 19.3-43 43v139h-139c-23.6 0-43 19.3-43 43s19.3 43 43 43h139v139c0 23.7 19.3 43 43 43 23.6 0 43-19.3 43-43v-139h139c23.6 0 43-19.3 43-43s-19.4-43-43-43z" ></path></symbol><symbol id="icon-biaoqianye1" viewBox="0 0 1024 1024"><path d="M345.557333 128l110.677334 168.405333H938.666667V896H85.333333V128h260.224zM299.52 213.333333H170.666667v597.333334h682.666666V381.738667H410.197333L299.52 213.333333z" fill="#222222" ></path><path d="M597.333333 136.533333c0-4.693333 3.541333-8.533333 7.893334-8.533333h325.546666c4.352 0 7.893333 3.84 7.893334 8.533333v68.266667c0 4.693333-3.541333 8.533333-7.893334 8.533333h-325.546666C600.874667 213.333333 597.333333 209.493333 597.333333 204.8V136.533333z" fill="#222222" ></path></symbol><symbol id="icon-biaoqianye" viewBox="0 0 1024 1024"><path d="M376.6 494.8c5.1 4.8 7.9 11.7 7.6 18.7 0.4 7.1-2.5 14-7.6 18.7-5.3 4.7-12.3 7.2-19.3 6.9h-69.6v235.1c0.2 7.4-2.9 14.4-8.4 19.1-5.5 5.4-12.9 8.3-20.5 8.1-7.6 0.3-15.1-2.7-20.5-8.1-5.3-4.9-8.2-11.9-8.1-19.1v-235H161c-7.2 0.3-14.2-2.3-19.3-7.3-5.2-4.8-8-11.7-7.6-18.7-0.3-7 2.5-13.7 7.6-18.3 5.3-4.8 12.2-7.3 19.3-7h198.4c6.3 0 12.4 2.5 17.2 6.9z m215.7 70.1c5.2 5.1 8 12.2 7.7 19.6v189.9c0.3 7.2-2.5 14.2-7.7 19.1-4.8 5.3-11.7 8.3-18.9 8.1-7.1 0.1-13.9-2.7-18.9-7.7-4.8-5.2-7.6-12-7.6-19.1-18 19.5-42.9 30.8-69.2 31.4-19.7 0.3-38.9-5.3-55.5-15.9-17.2-10.7-31.2-26.1-40.3-44.4-19.3-40.4-19.3-87.6 0-128 8.9-18.4 22.9-33.8 40.3-44.4 16-10.5 34.8-16.1 53.9-15.9 26.3-0.1 51.8 9.8 71.2 27.7-0.2-7.3 2.6-14.4 7.7-19.6 10.6-10.2 27.2-10.2 37.8 0l-0.5-0.8z m-61.2 168.7c24.1-31.6 24.1-75.6 0-107.2-11.5-14.3-28.9-22.3-47.1-21.6-17.9-0.5-35.1 7.4-46.3 21.6-12.1 15-18.5 34-18.1 53.4-0.6 19.5 5.7 38.6 17.7 53.8 11.6 13.9 28.8 21.7 46.7 21.2 18.1 0.4 35.3-7.4 47.1-21.2zM835.4 573c17.1 10.7 31 25.9 40.3 44 9.9 19.8 14.9 41.8 14.5 64 0.4 22.3-4.6 44.4-14.5 64.4-9 18.3-23 33.7-40.3 44.4-16 10.6-34.8 16.1-53.9 15.9-13.9 0.2-27.7-2.9-40.3-9-11.6-5-22.1-12.2-31-21.2v2.8c0.2 7.2-2.5 14.2-7.5 19.4-5 5.1-11.9 8-19.1 7.9-7.1 0.3-14-2.5-18.9-7.7-5.2-5.1-8-12.2-7.6-19.6V497.2c-0.2-7.3 2.5-14.4 7.6-19.6 10.6-10.3 27.2-10.3 37.8 0 5.1 5.2 7.9 12.2 7.6 19.6v93.3c8-9.8 18-17.7 29.4-23.2 12.4-6.8 26.2-10.3 40.3-10.2 19.7-0.2 39 5.3 55.6 15.9z m-15.7 163c12.2-15.1 18.6-34.3 18.1-53.8 0.6-19.4-5.7-38.3-17.7-53.4-12-13.4-29-21.1-46.9-21.1s-34.9 7.7-46.9 21.1c-24.1 31.6-24.1 75.6 0 107.2 11.6 14.1 29 22.1 47.1 21.6 18.3-0.2 35.4-9.1 46.3-24v2.4zM708.1 253.5c-15.5 0-28-12.5-28-28V113.4c-0.1-8 0-15.9 0-23.8V77.9c0-15.5 12.5-28 28-28H886c17 0 32.9 6.6 45 18.6 11.3 11.3 17.8 26 18.6 41.8 0.1 0.7 0.1 1.4 0.1 2.1v113.2c0 15.5-12.5 28-28 28H708.1z m28-56h157.4v-84.1c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.4-2.2-5.4-2.2H736.1v91.7zM371.9 254.6c-15.5 0-28-12.5-28-28V78.9c0-15.4 12.5-27.9 27.9-28l213.4-1.1h0.1c17 0 32.9 6.6 45 18.6 12 12.1 18.6 28 18.6 45v113.2c0 15.5-12.5 28-28 28h-249z m28-56.1h193v-85.2c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.3-2.2-5.3-2.2l-185.5 0.9v91.9z" fill="#595959" ></path><path d="M72.4 974.2c-17.3 0-33.5-6.7-45.7-18.7-12.2-12.1-18.9-28.1-18.9-45.1V113.6c0-35.2 29-63.8 64.6-63.8h169c17.3 0 33.5 6.6 45.7 18.7 12.2 12 18.9 28.1 18.9 45.1V283c0 2 0.8 3.9 2.3 5.4 1.5 1.4 3.4 2.2 5.4 2.2h637.9c17.3 0 33.5 6.6 45.7 18.7 12.2 12 18.9 28 18.9 45.1v556c0 17.1-6.7 33.1-18.9 45.1s-28.4 18.7-45.7 18.7H72.4z m7.7-860.6c-4.3 0-7.7 3.4-7.7 7.6v788.7c0 2 0.8 4 2.3 5.4 1.4 1.4 3.4 2.2 5.4 2.2h871.5c2.1 0 4-0.8 5.4-2.2 1.5-1.4 2.3-3.3 2.3-5.4V350.6c0-2-0.8-3.9-2.2-5.3-1.5-1.5-3.4-2.3-5.4-2.3h-638c-17.3 0-33.5-6.7-45.7-18.7-12.2-12-18.9-28.1-18.9-45.1V121.1c0-2-0.8-3.9-2.3-5.4-1.4-1.4-3.4-2.2-5.4-2.2H80.1z" fill="#595959" ></path></symbol><symbol id="icon-buzhou" viewBox="0 0 1024 1024"><path d="M488.106667 792.462222h257.137777a28.444444 28.444444 0 0 0 28.444445-28.444444 28.444444 28.444444 0 0 0-28.444445-28.444445H488.106667a28.444444 28.444444 0 0 0-28.444445 28.444445 28.444444 28.444444 0 0 0 28.444445 28.444444zM242.346667 764.017778A80.782222 80.782222 0 1 0 341.333333 686.08v-96.142222a80.213333 80.213333 0 0 0 0-155.875556V337.92a80.782222 80.782222 0 1 0-39.822222 0v96.142222a80.213333 80.213333 0 0 0 0 155.875556v96.142222a80.782222 80.782222 0 0 0-59.164444 77.937778zM284.444444 259.982222a40.96 40.96 0 0 1 81.92 0 40.391111 40.391111 0 0 1-40.391111 40.96 40.391111 40.391111 0 0 1-41.528889-40.96zM284.444444 512a40.96 40.96 0 1 1 40.96 40.96A40.96 40.96 0 0 1 284.444444 512z m40.391112 211.057778a40.391111 40.391111 0 0 1 40.391111 40.96 40.96 40.96 0 0 1-81.92 0 40.391111 40.391111 0 0 1 39.253333-40.96zM488.106667 540.444444h257.137777a28.444444 28.444444 0 1 0 0-56.888888H488.106667a28.444444 28.444444 0 1 0 0 56.888888zM488.106667 288.426667h257.137777a28.444444 28.444444 0 0 0 28.444445-28.444445 28.444444 28.444444 0 0 0-28.444445-28.444444H488.106667a28.444444 28.444444 0 0 0-28.444445 28.444444 28.444444 28.444444 0 0 0 28.444445 28.444445z" fill="#151515" ></path><path d="M859.022222 79.644444H164.977778a22.755556 22.755556 0 0 0-22.755556 22.755556v819.2a22.755556 22.755556 0 0 0 22.755556 22.755556h694.044444a22.755556 22.755556 0 0 0 22.755556-22.755556V102.4a22.755556 22.755556 0 0 0-22.755556-22.755556z m-22.755555 819.2H187.733333V125.155556h648.533334z" fill="#151515" ></path></symbol><symbol id="icon-ok" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M715.6 371.6c-15.7-15.7-41.4-15.7-57 0l-196 196-95.9-95.9c-15.7-15.7-41.4-15.7-57 0-15.7 15.7-15.7 41.4 0 57l124.5 124.5c15.7 15.7 41.4 15.7 57 0l224.5-224.5c15.6-15.7 15.6-41.4-0.1-57.1z" ></path></symbol><symbol id="icon-cancel" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M697.9 329.1c-15.6-15.6-41-15.6-56.6 0L513 457.4 384.7 329.1c-15.6-15.6-41-15.6-56.6 0-15.6 15.6-15.6 41 0 56.6L456.4 514 328.1 642.3c-15.6 15.6-15.6 41 0 56.6 15.6 15.6 41 15.6 56.6 0L513 570.6l128.3 128.3c15.6 15.6 41 15.6 56.6 0 15.6-15.6 15.6-41 0-56.6L569.6 514l128.3-128.3c15.6-15.6 15.6-41.1 0-56.6z" ></path></symbol><symbol id="icon-savebaocun" viewBox="0 0 1024 1024"><path d="M778.7 97.2H247.3C165 97.2 98 164.3 98 246.7v532.2c0 82.4 67 149.4 149.3 149.4h531.5c82.3 0 149.3-67 149.3-149.4V246.7C928 164.3 861 97.2 778.7 97.2z m-452.2 79.9h373.1v83.7H331.9c-2.9 0-5.5-2.6-5.5-5.5v-78.2z m373 671.3h-373v-225h373.1v225z m148.7-69.6c0 38.1-30.8 69.2-68.8 69.5V612.9c0-38.3-31.1-69.4-69.3-69.4H316c-38.2 0-69.3 31.1-69.3 69.4v235.4c-38-0.3-68.8-31.4-68.8-69.5V246.7c0-38.1 30.8-69.2 68.8-69.5v78.2c0 47.1 38.3 85.4 85.3 85.4h378c38.2 0 69.3-31.1 69.3-69.4v-94.2c38 0.3 68.8 31.4 68.8 69.5v532.1z" ></path></symbol><symbol id="icon-shijianxian2" viewBox="0 0 1024 1024"><path d="M171.52 924.16v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z m0-322.56v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z m0-394.24v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z" ></path><path d="M350.72 350.72c0 79.36-64 143.36-143.36 143.36s-143.36-64-143.36-143.36 64-143.36 143.36-143.36 143.36 64 143.36 143.36z m-143.36-71.68c-39.424 0-71.68 32.256-71.68 71.68s32.256 71.68 71.68 71.68 71.68-32.256 71.68-71.68-32.256-71.68-71.68-71.68z m143.36 430.08c0 79.36-64 143.36-143.36 143.36s-143.36-64-143.36-143.36 64-143.36 143.36-143.36 143.36 64 143.36 143.36z m-143.36-71.68c-39.424 0-71.68 32.256-71.68 71.68s32.256 71.68 71.68 71.68 71.68-32.256 71.68-71.68-32.256-71.68-71.68-71.68z m716.8-286.72h-501.76c-19.968 0-35.84-15.872-35.84-35.84s15.872-35.84 35.84-35.84h501.76c19.968 0 35.84 15.872 35.84 35.84s-15.872 35.84-35.84 35.84z m-284.672 107.52H420.352c-18.432 0-33.792-15.36-33.792-33.792v-4.096c0-18.432 15.36-33.792 33.792-33.792h219.136c18.432 0 33.792 15.36 33.792 33.792v4.096c0 18.432-15.36 33.792-33.792 33.792z m284.672 250.88h-501.76c-19.968 0-35.84-15.872-35.84-35.84s15.872-35.84 35.84-35.84h501.76c19.968 0 35.84 15.872 35.84 35.84s-15.872 35.84-35.84 35.84z m-284.672 107.52H420.352c-18.432 0-33.792-15.36-33.792-33.792v-4.096c0-18.432 15.36-33.792 33.792-33.792h219.136c18.432 0 33.792 15.36 33.792 33.792v4.096c0 18.432-15.36 33.792-33.792 33.792z" ></path></symbol><symbol id="icon-buzhoutiao" viewBox="0 0 1024 1024"><path d="M0 0h1024v1024H0z" fill="#FFFFFF" fill-opacity="0" ></path><path d="M204 372c66.31 0 121.852 46.1 136.326 108h137.53c12.901-33.907 45.71-58 84.144-58 38.435 0 71.243 24.093 84.145 58h139.71c12.902-33.907 45.71-58 84.145-58 49.706 0 90 40.294 90 90s-40.294 90-90 90c-38.434 0-71.242-24.092-84.144-57.998H646.144C633.242 577.908 600.434 602 562 602c-38.434 0-71.242-24.092-84.144-57.998h-137.53C325.852 605.9 270.309 652 204 652c-77.32 0-140-62.68-140-140s62.68-140 140-140z m0 64c-41.974 0-76 34.026-76 76s34.026 76 76 76 76-34.026 76-76-34.026-76-76-76z m358 50c-14.36 0-26 11.64-26 26s11.64 26 26 26 26-11.64 26-26-11.64-26-26-26z m308 0c-14.36 0-26 11.64-26 26s11.64 26 26 26 26-11.64 26-26-11.64-26-26-26z" fill="#666666" ></path></symbol><symbol id="icon-m-qianming" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M573.44 646.656l-3.072 6.144c-8.192 12.288-14.336 25.088-19.456 38.912-6.656 18.944-3.072 36.352 16.896 43.008 34.816 11.264 72.704 9.216 106.496-4.608 9.216-3.072 11.264-4.096 34.304-12.8 16.384-6.656 33.792-12.8 51.2-17.408 1.024 0 2.048-0.512 3.072-1.024 10.24-2.048 6.656-5.632 16.896 1.024 3.584 3.072 8.704 4.096 13.312 3.072 4.608-1.024 5.632-3.072 8.192-7.68 5.632-8.192 3.584-19.456-4.608-25.088-18.944-12.8-22.528-10.24-41.472-6.144-1.536 0.512-3.072 0.512-4.096 1.024-18.944 5.12-37.376 11.264-55.808 18.432-22.016 8.704-24.064 9.728-32.768 12.288-24.576 10.24-52.224 12.8-78.336 6.144 4.608-11.264 10.24-22.016 16.896-32.256 1.536-2.048 2.56-4.096 3.584-6.144 8.704-13.824 15.36-29.184 18.432-45.056 4.096-19.456-7.68-38.4-27.136-42.496-0.512 0-1.536-0.512-2.048-0.512-27.648-6.656-59.392 3.072-148.992 37.888-81.92 32.256-117.76 41.984-129.024 35.84-4.096-2.56-8.704-3.072-13.312-1.536-9.728 2.56-15.36 12.8-12.8 22.016 1.024 4.608 4.096 8.192 8.192 10.752 23.04 8.704 48.64 7.68 71.168-2.048 29.696-9.216 59.392-19.456 88.064-32.256 77.824-30.72 111.104-40.448 126.976-36.352 3.072 1.024 3.072 0 2.56 3.072-2.56 12.288-7.168 23.552-13.312 33.792zM665.088 235.52c-19.456-17.92-49.664-17.408-68.608 1.024L312.32 519.68c-2.048 2.048-3.584 4.608-4.608 7.68l-22.528 80.896c-2.56 9.728 3.072 19.456 12.8 21.504 3.584 1.024 7.68 0.512 11.264-0.512l71.168-29.696c5.632-2.56 10.752-5.632 15.36-10.24l283.648-269.824 2.56-2.56c18.432-19.456 17.92-50.176-2.048-68.608l-1.024-1.024-13.824-11.776z" ></path></symbol><symbol id="icon-touxiang_avatar" viewBox="0 0 1024 1024"><path d="M925.866667 797.866667c-12.8-25.6-34.133333-46.933333-64-64-29.866667-21.333333-68.266667-34.133333-119.466667-42.666667-4.266667 0-29.866667-4.266667-59.733333-12.8-21.333333-4.266667-34.133333-8.533333-38.4-12.8v-17.066667c4.266667-51.2 29.866667-76.8 55.466666-106.666666 8.533333-8.533333 17.066667-21.333333 25.6-29.866667 29.866667-42.666667 34.133333-89.6 34.133334-98.133333 0-8.533333 0-17.066667-4.266667-21.333334-4.266667-8.533333-8.533333-12.8-12.8-21.333333 0-12.8 4.266667-21.333333 4.266667-29.866667 0-21.333333 4.266667-55.466667-4.266667-89.6 0-8.533333-4.266667-12.8-4.266667-21.333333-8.533333-25.6-17.066667-46.933333-34.133333-68.266667-4.266667-12.8-64-72.533333-234.666667-85.333333H401.066667c-4.266667 0-17.066667 0-25.6 4.266667-21.333333 4.266667-38.4 21.333333-42.666667 42.666666v21.333334c-8.533333 8.533333-55.466667 51.2-55.466667 102.4-4.266667 34.133333-4.266667 85.333333 0 123.733333-8.533333 8.533333-17.066667 21.333333-12.8 42.666667 0 12.8 4.266667 55.466667 34.133334 98.133333 8.533333 8.533333 17.066667 17.066667 25.6 29.866667 25.6 29.866667 51.2 55.466667 55.466666 106.666666v17.066667c-4.266667 4.266667-17.066667 8.533333-38.4 12.8-29.866667 8.533333-59.733333 12.8-64 12.8-46.933333 8.533333-85.333333 21.333333-115.2 42.666667-25.6 17.066667-46.933333 38.4-64 64-25.6 38.4-25.6 76.8-25.6 85.333333v21.333333c0 25.6 21.333333 46.933333 46.933334 46.933334H896c25.6 0 46.933333-21.333333 46.933333-46.933334v-17.066666c8.533333-12.8 8.533333-51.2-17.066666-89.6z m-546.133334-128c0 4.266667 0 4.266667 0 0v4.266666c-4.266667 0-4.266667 0 0-4.266666z m503.466667 213.333333l-742.4 4.266667v-4.266667s0-25.6 12.8-51.2c8.533333-17.066667 25.6-29.866667 42.666667-42.666667 25.6-17.066667 55.466667-25.6 89.6-34.133333 4.266667 0 34.133333-4.266667 68.266666-12.8 51.2-12.8 76.8-29.866667 85.333334-46.933333 0-4.266667 0-4.266667 4.266666-8.533334v-42.666666c-8.533333-72.533333-42.666667-115.2-72.533333-145.066667-8.533333-8.533333-12.8-17.066667-21.333333-21.333333-21.333333-29.866667-21.333333-59.733333-21.333334-64l4.266667-4.266667 8.533333-8.533333c4.266667-17.066667 0-25.6 0-29.866667-4.266667-34.133333-4.266667-81.066667 0-119.466667 0-29.866667 29.866667-55.466667 29.866667-55.466666 8.533333-4.266667 17.066667-12.8 21.333333-21.333334 0-4.266667 4.266667-4.266667 4.266667-8.533333v-25.6H465.066667c140.8 8.533333 192 59.733333 192 59.733333 8.533333 12.8 17.066667 25.6 21.333333 42.666667 4.266667 4.266667 4.266667 8.533333 4.266667 12.8 4.266667 29.866667 4.266667 55.466667 4.266666 76.8 0 12.8 0 21.333333-4.266666 38.4 0 12.8 0 25.6 8.533333 29.866667l4.266667 4.266666 4.266666 4.266667s0 34.133333-21.333333 64c-4.266667 8.533333-12.8 12.8-21.333333 21.333333-29.866667 29.866667-64 72.533333-72.533334 145.066667v42.666667c0 4.266667 0 4.266667 4.266667 8.533333 8.533333 21.333333 34.133333 34.133333 85.333333 46.933333 34.133333 8.533333 64 12.8 68.266667 12.8 38.4 8.533333 68.266667 17.066667 93.866667 34.133334 17.066667 12.8 34.133333 25.6 42.666666 42.666666 8.533333 25.6 8.533333 51.2 4.266667 55.466667z" ></path></symbol><symbol id="icon-m-mianban" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M884.15744 348.01152v49.152h-745.984v-49.152z" ></path><path d="M356.43392 846.99136h-49.152v-450.048h49.152z" ></path></symbol><symbol id="icon-m-xialakuang" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M510.464 639.488l207.872-254.976H302.08z" ></path></symbol><symbol id="icon-m-biaodan" viewBox="0 0 1024 1024"><path d="M122.88 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384H122.88c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H137.216c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M244.224 279.04h142.848v49.152H244.224zM244.224 425.472h142.848v49.152H244.224zM436.736 279.04h342.528v49.152H436.736zM436.736 425.472h342.528v49.152H436.736zM244.224 572.416h142.848v49.152H244.224zM436.736 572.416h342.528v172.544H436.736z" ></path></symbol><symbol id="icon-m-biaoge" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M249.344 347.648h49.152v499.2h-49.152zM584.704 347.648h49.152v499.2h-49.152zM137.728 165.888h746.496v181.76H137.728z" ></path><path d="M137.728 481.792h746.496v49.152H137.728zM137.728 664.576h746.496v49.152H137.728z" ></path></symbol><symbol id="icon-dashboard-o" viewBox="0 0 1024 1024"><path d="M880 622c17.673 0 32 14.327 32 32v226c0 17.673-14.327 32-32 32H582c-17.673 0-32-14.327-32-32V654c0-17.673 14.327-32 32-32h298zM442 476c17.673 0 32 14.327 32 32v372c0 17.673-14.327 32-32 32H144c-17.673 0-32-14.327-32-32V508c0-17.673 14.327-32 32-32h298z m406 210H614v162h234V686zM410 540H176v308h234V540z m470-428c17.673 0 32 14.327 32 32v372c0 17.673-14.327 32-32 32H582c-17.673 0-32-14.327-32-32V144c0-17.673 14.327-32 32-32h298z m-32 64H614v308h234V176z m-406-64c17.673 0 32 14.327 32 32v226c0 17.673-14.327 32-32 32H144c-17.673 0-32-14.327-32-32V144c0-17.673 14.327-32 32-32h298z m-32 64H176v162h234V176z" fill="#000000" fill-opacity=".65" ></path></symbol><symbol id="icon-line-layoutmasonryfensanbuju" viewBox="0 0 1024 1024"><path d="M896 128H128c-25.6 0-42.666667 17.066667-42.666667 42.666667v682.666666c0 25.6 17.066667 42.666667 42.666667 42.666667h768c25.6 0 42.666667-17.066667 42.666667-42.666667V170.666667c0-25.6-17.066667-42.666667-42.666667-42.666667zM170.666667 213.333333h298.666666v341.333334H170.666667V213.333333z m0 597.333334v-170.666667h298.666666v170.666667H170.666667z m682.666666 0h-298.666666v-341.333334h298.666666v341.333334z m0-426.666667h-298.666666V213.333333h298.666666v170.666667z" fill="#09121F" ></path></symbol><symbol id="icon-zidingyibuju" viewBox="0 0 1024 1024"><path d="M0 0v256h1024V0z m960 192H64V64h896zM0 1024h512V320H0z m64-640h384v576H64zM576 576h448v-256H576z m64-192h320v128H640zM576 1024h448V640H576z m64-320h320v256H640z" fill="#575869" ></path></symbol><symbol id="icon-daochu" viewBox="0 0 1024 1024"><path d="M394.6 689.8c-13.2 3.2-27.4-9.5-31.7-23.2-8.4-28.5-12.7-58.6-12.7-88.1 0-159.4 151.5-325.1 314.1-352.1v-5.3c0-1.6 0-3.7 0.5-5.3l0.5-2.1c1.6-11.6 5.8-38.5 32.2-55.4 10.6-6.9 22.2-10 34.3-10 14.8 0 26.9 5.3 34.3 9.5 1.6 0.5 2.6 1.6 4.2 2.6L929.2 286c17.4 13.2 28 34.8 28 57 0 22.7-10.6 44.3-28.5 57.5L770.5 525.7c-11.6 9-25.3 13.7-39.1 13.7-12.1 0-23.8-3.7-34.8-10.6-21.1-13.7-31.7-34.8-31.7-64.4v-1.1C559.3 475 442.2 569 416.3 657.6c-4.8 14.3-13.7 32.2-21.7 32.2z m335.7-466.6V256c0 17.4-13.7 31.7-31.1 32.7-125.6 6.9-257.6 131.4-279.7 254.4C486 458.7 595.2 390 699.7 397.4c17.4 1.1 30.6 15.3 30.6 32.7V465c0 4.7 0.5 6.9 0.5 7.9l157.3-124.6c2.1-1.6 2.6-3.2 2.6-5.3 0-2.1-1.1-4.2-2.6-5.3L731.9 214.3c-1.1 1.6-1.6 5.8-2.1 8.4l0.5 0.5z m0 0" ></path><path d="M715.6 916.3H188.3c-67 0-121.9-54.9-121.9-121.9v-568c0-67 54.9-121.9 121.9-121.9h436.5v69.7H188.3c-28.5 0-52.3 23.2-52.3 52.3V795c0 28.5 23.2 52.3 52.3 52.3h527.3c28.5 0 52.3-23.2 52.3-52.3V593.2H837v201.6c0 66.6-54.4 121.5-121.4 121.5z m0 0" ></path><path d="M183 566.9h112.4V626H183v-59.1z m0 154.1h296.1v59.1H183V721z m0-425.4h237v59.1H183v-59.1z m0 140.9h112.4v59.1H183v-59.1z m0 0" ></path></symbol><symbol id="icon-daoru" viewBox="0 0 1024 1024"><path d="M111.6 148.8c7.9 0 16.9 17.9 21.6 32.2 25.9 88.7 143 182.6 248.6 194.2v-1.1c0-29.6 10.6-50.7 31.7-64.4 11.1-6.9 22.7-10.6 34.8-10.6 13.7 0 27.4 4.8 39.1 13.7L645.8 438c17.9 13.2 28.5 34.8 28.5 57.5 0 22.2-10.6 43.8-28 57L487.4 678.2c-1.6 1.1-2.6 2.1-4.2 2.6-7.4 4.2-19.5 9.5-34.3 9.5-12.1 0-23.7-3.2-34.3-10-26.4-16.9-30.6-43.8-32.2-55.4l-0.5-2.1c-0.5-1.6-0.5-3.7-0.5-5.3v-5.3c-162.6-26.9-314.1-192.6-314.1-352 0-29.6 4.2-59.6 12.7-88.1 4.2-13.8 18.4-26.5 31.6-23.3z m335.2 467.1c0.5 2.6 1.1 6.9 2.1 8.4l156.2-123.5c1.6-1.1 2.6-3.2 2.6-5.3 0-2.1-0.5-3.7-2.6-5.3L447.8 365.7c0 1.1-0.5 3.2-0.5 7.9v34.8c0 17.4-13.2 31.7-30.6 32.7-104.5 7.4-213.8-61.2-280.3-145.7 22.2 123 154.1 247.5 279.7 254.4 17.4 1.1 31.1 15.3 31.1 32.7v32.7l-0.4 0.7z m0.5-0.5" ></path><path d="M309 916.3c-67 0-121.4-54.9-121.4-121.4V593.2h69.1v201.6c0 29 23.8 52.3 52.3 52.3h527.3c29 0 52.3-23.8 52.3-52.3V226.4c0-29-23.8-52.3-52.3-52.3H399.8v-69.7h436.5c67 0 121.9 54.9 121.9 121.9v567.9c0 67-54.9 121.9-121.9 121.9H309v0.2z m0 0" ></path><path d="M841.6 626H729.1v-59.1h112.4V626z m0 154.1H545.5V721h296.1v59.1z m0-425.4h-237v-59.1h237v59.1z m0 140.9H729.1v-59.1h112.4v59.1z m0-59.1" ></path></symbol><symbol id="icon-a-juxing1851" viewBox="0 0 1024 1024"><path d="M0 0h438.857143v1024H0V0z m512 0h512v438.857143H512V0z m0 512h219.428571v219.428571H512V512z m292.571429 0h219.428571v219.428571h-219.428571V512z m-292.571429 292.571429h73.142857v73.142857H512v-73.142857z m146.285714 0h73.142857v73.142857H658.285714v-73.142857z m-146.285714 146.285714h73.142857v73.142857H512v-73.142857z m146.285714 0h73.142857v73.142857H658.285714v-73.142857z m146.285715 0h73.142857v73.142857h-73.142857v-73.142857z m146.285714 0h73.142857v73.142857h-73.142857v-73.142857z m-146.285714-146.285714h73.142857v73.142857h-73.142857v-73.142857z m146.285714 0h73.142857v73.142857h-73.142857v-73.142857z" ></path></symbol><symbol id="icon-sxsz" viewBox="0 0 1024 1024"><path d="M304.5 152.6h415L927 512 719.5 871.4h-415L97 512z" fill="#386BF3" ></path><path d="M512 512m-145.25 0a145.25 145.25 0 1 0 290.5 0 145.25 145.25 0 1 0-290.5 0Z" fill="#3D4265" ></path></symbol><symbol id="icon-mx" viewBox="0 0 1024 1024"><path d="M511.9 325.12v248.55L727.15 449.4l-0.01-248.55z" fill="#C3D2FB" ></path><path d="M296.65 200.85L511.9 325.12v248.56L296.65 449.4z" fill="#3D4265" ></path><path d="M511.9 325.12l215.25-124.27L511.9 76.57 296.65 200.85z" fill="#386BF3" ></path><path d="M296.62 698.02v248.55L511.87 822.3l-0.01-248.56z" fill="#C3D2FB" ></path><path d="M81.37 573.74l215.25 124.28v248.55L81.37 822.3z" fill="#3D4265" ></path><path d="M296.62 698.02l215.25-124.28-215.25-124.27L81.37 573.74z" fill="#386BF3" ></path><path d="M727.03 698.02v248.55L942.28 822.3l-0.01-248.56z" fill="#C3D2FB" ></path><path d="M511.78 573.74l215.25 124.28v248.55L511.78 822.3z" fill="#3D4265" ></path><path d="M727.03 698.02l215.25-124.28-215.25-124.27-215.25 124.27z" fill="#386BF3" ></path></symbol><symbol id="icon-al" viewBox="0 0 1024 1024"><path d="M192 132h440v640H192z" fill="#386BF3" ></path><path d="M632 260h200v512H632z" fill="#C3D2FB" ></path><path d="M398.86 612L512 725.14 625.14 612H912v280H112V612z" fill="#3D4265" ></path></symbol><symbol id="icon-sf" viewBox="0 0 1024 1024"><path d="M511.82 512.5v435L888.54 730l-0.02-435z" fill="#C3D2FB" ></path><path d="M135.1 295l376.72 217.5v435L135.1 730z" fill="#3D4265" ></path><path d="M511.82 512.5L888.54 295 511.82 77.5 135.1 295z" fill="#386BF3" ></path></symbol><symbol id="icon-moxing" viewBox="0 0 1061 1024"><path d="M447.122 467.332L49.24 268.162A33.501 33.501 0 0 0 0.136 300.745v441.02a33.042 33.042 0 0 0 16.062 27.994l396.965 248.275a33.96 33.96 0 0 0 17.438 5.507 33.042 33.042 0 0 0 33.043-33.042V497.162a33.042 33.042 0 0 0-16.522-29.83z m598.889-203.76a33.042 33.042 0 0 0-31.666 0l-463.507 203.76a33.042 33.042 0 0 0-19.733 30.289v493.337a33.042 33.042 0 0 0 49.563 28.453l463.048-265.255a33.042 33.042 0 0 0 16.521-28.453V291.566a33.042 33.042 0 0 0-14.226-27.994z m-54.611-84.9a33.042 33.042 0 0 0-22.487-29.83L550.838 1.53a32.583 32.583 0 0 0-19.733 0L83.659 158.021a33.042 33.042 0 0 0-4.13 61.036l397.882 199.17a33.501 33.501 0 0 0 14.685 3.213 33.96 33.96 0 0 0 13.31 0L969.37 215.845a33.042 33.042 0 0 0 22.029-37.173z" fill="#5E5C5C" ></path></symbol><symbol id="icon-yanzhengyanzhengma" viewBox="0 0 1024 1024"><path d="M943.1 172c-2.4-0.2-245.1-25.3-413.8-147.8-5.1-3.7-11-5.6-17.3-5.6-6.2 0-12.2 1.9-17.3 5.6C326.9 146 83.3 171.8 80.9 172c-15.2 1.4-26.6 14.1-26.6 29.3 0 6.7 0.6 165.8 54.8 344.4 32.1 105.8 76.4 196.4 131.9 269.2 70.3 92.3 158.5 156 262 189.2 2.9 0.9 5.9 1.4 9 1.4s6.1-0.5 8.9-1.4c103.6-33.2 191.7-96.8 262-189.2 55.4-72.7 99.8-163.2 131.9-269.2 54.1-178.6 54.8-337.7 54.8-344.4C969.7 186.1 958.3 173.5 943.1 172zM910.1 227.2l-0.1 1.6c-2.9 58.1-13.4 174.4-51.4 299.9-66.7 220.1-183.1 360.1-346 416.1L512 945l-0.6-0.2C349 888.9 232.7 749.4 165.8 530.1c-39.8-130.5-49.4-254.2-51.8-301.4l-0.1-1.6 1.5-0.2c70.6-10.3 250.5-44.8 395.5-142.4l0.9-0.7 1 0.7C658 182.1 837.9 216.6 908.5 227L910.1 227.2z" ></path><path d="M641.8 351 467 580.3l-89-76.1c-5.3-4.5-12.1-7-19.1-7-8.6 0-16.8 3.7-22.4 10.3-10.5 12.3-9.1 31 3.3 41.5l112.7 96.4c5.2 4.4 12.4 7 19.6 7 0.9 0 1.8 0 2.7-0.1 8-0.8 15.4-5 20.3-11.4l193.7-254c4.8-6.3 6.8-14 5.7-21.8-1-7.8-5.1-14.7-11.3-19.5C670.1 335.6 651.6 338.1 641.8 351z" ></path></symbol><symbol id="icon-verify" viewBox="0 0 1024 1024"><path d="M713.856 93.44c44.672 9.344 79.36 15.488 105.024 18.944a332.8 332.8 0 0 0 28.864 3.008A110.08 110.08 0 0 1 944 223.36v348.672c0 71.232-36.288 168.32-80.704 219.328a737.216 737.216 0 0 1-100.672 106.496C683.264 966.208 599.232 1008 512 1008s-171.328-41.792-250.624-110.144c-26.88-23.168-51.2-47.808-72.832-72.512a409.152 409.152 0 0 1-24.768-30.208c-47.68-52.928-83.776-150.4-83.776-223.104V223.36c0-54.72 42.752-102.528 99.264-108.096 5.76-0.32 17.536-1.408 34.432-3.648a953.6 953.6 0 0 0 95.168-17.92c19.392-4.608 34.944-12.16 65.92-30.4l9.984-5.888C434.048 28.416 466.432 16 512 16c39.296 0 68.288 11.84 127.488 43.968l2.304 1.28c38.784 21.056 55.296 28.672 72.064 32.192z m-19.712 93.952c-29.376-6.144-50.688-16-98.176-41.856l-2.304-1.216C549.312 120.32 529.088 112 512 112c-24.192 0-42.88 7.168-78.656 28.16-4.736 2.88-4.736 2.88-9.728 5.76-38.784 22.912-61.12 33.664-92.48 41.216-37.76 8.96-72.96 15.36-104.768 19.648a556.8 556.8 0 0 1-39.68 4.16c-5.12 0.512-10.688 6.784-10.688 12.416v348.672c0 49.344 27.52 123.84 62.08 162.56a642.176 642.176 0 0 0 85.952 90.56c63.552 54.72 128.192 86.848 187.968 86.848 59.776 0 124.416-32.128 187.968-86.848a642.176 642.176 0 0 0 88.32-93.632c31.808-36.608 59.712-111.36 59.712-159.488V223.36c0-5.44-5.888-12.032-6.656-12.288-20.288-0.448-66.112-6.72-147.2-23.68zM400.128 488.704L487.68 576.256l185.088-185.088a48 48 0 0 1 67.84 67.84L521.6 678.144a48 48 0 0 1-67.84 0l-121.6-121.536a48 48 0 1 1 67.968-67.84z" fill="#768893" ></path></symbol><symbol id="icon-preview" viewBox="0 0 1024 1024"><path d="M854.36155804 32.02835121a114.60838884 114.60838884 0 0 1 114.21544637 105.17775738l0.39294247 9.43063278v170.60277392a49.1178817 49.1178817 0 0 1-97.77732893 6.68003145l-0.45843311-6.68003145V146.63674137a16.37262679 16.37262679 0 0 0-12.63966726-15.9796843l-3.73295954-0.39294246H130.1675186a16.37262679 16.37262679 0 0 0-15.91419368 12.57417659l-0.45843312 3.79845017v732.18388095a16.37262679 16.37262679 0 0 0 12.63966859 15.91419369l3.73295821 0.4584331h275.4530781a49.1178817 49.1178817 0 0 1 6.68003143 97.77732894l-6.68003143 0.4584331H130.1675186a114.60838884 114.60838884 0 0 1-114.21544639-105.24324667l-0.39294246-9.36514216V146.63674137a114.60838884 114.60838884 0 0 1 105.24324669-114.28093698l9.36514216-0.32745318h724.19403944z m-286.32450218 495.1082417a235.76582919 235.76582919 0 0 1 358.88798459 303.35203402l80.61881587 80.55332523a39.29430509 39.29430509 0 0 1-55.53595059 55.66693187l-80.61881589-80.61881587a235.83131983 235.83131983 0 0 1-303.35203398-358.88798459z m277.87622625 55.60144257a157.17721902 157.17721902 0 1 0-222.27478502 222.2747837 157.17721902 157.17721902 0 0 0 222.27478502-222.2747837z m-450.70567639-33.26917864a42.56883017 42.56883017 0 1 1 0 85.13766035H210.39339064a42.56883017 42.56883017 0 1 1 0-85.13766035h184.81421508z m0-158.68350096a42.56883017 42.56883017 0 1 1 0 85.13766036H210.39339064a42.56883017 42.56883017 0 1 1 0-85.13766036h184.81421508z m233.67013285-158.68350095a42.56883017 42.56883017 0 1 1 0 85.13766036h-418.48434793a42.56883017 42.56883017 0 1 1 0-85.13766036h418.48434793z" fill="#7f7f7f" ></path></symbol><symbol id="icon-yunshangchuan-xian" viewBox="0 0 1039 1024"><path d="M711.40656 345.248C667.88656 248.448 594.91056 208 481.83856 208c-118.848 0-219.328 96.512-256.736 267.76l-4.96 22.752-23.2 2.256c-83.744 8.192-120.176 54.176-131.36 144.4C54.30256 736.528 103.18256 816 193.85456 816h190.672a32 32 0 1 1 0 64H193.83856C58.68656 880-13.44144 762.72 2.07856 637.296 15.61456 528 65.80656 458.416 167.75856 440.224 215.27856 254.704 335.99856 144 481.83856 144c143.072 0 241.184 58.72 294.24 189.808 3.328-0.176 6.576-0.272 9.76-0.272 125.184 0 223.68 93.696 239.84 252.768 0.896 8.96 1.36 17.952 1.36 26.96C1027.03856 760.576 907.61456 880 760.30256 880h-120.064a32 32 0 1 1 0-64h120.064c111.968 0 202.72-90.768 202.72-202.736 0-6.848-0.32-13.68-1.024-20.48-12.912-127.088-84.544-195.248-176.16-195.248-23.136 0-55.68 7.232-96.928 22.032a32 32 0 1 1-21.616-60.224c15.584-5.6 30.288-10.304 44.112-14.08zM544.23856 598.512V848a32 32 0 0 1-64 0V598.512l-39.712 46.32a32 32 0 1 1-48.592-41.664l95.632-111.552a32.032 32.032 0 0 1 49.344 0l95.616 111.552a32 32 0 0 1-48.592 41.664l-39.696-46.32z" ></path></symbol><symbol id="icon-yulan" viewBox="0 0 1024 1024"><path d="M897.28 85.333333h-750.933333c-28.16 0-51.2 23.04-51.2 51.2v750.933334c0 28.16 23.04 51.2 51.2 51.2h276.906666c18.773333 0 34.133333-15.36 34.133334-34.133334s-15.36-34.133333-34.133334-34.133333H163.413333V153.6h716.8v275.626667c0 18.773333 15.36 34.133333 34.133334 34.133333s34.133333-15.36 34.133333-34.133333V136.533333c0-28.16-22.613333-51.2-51.2-51.2z" fill="#4C4C4C" ></path><path d="M649.813333 315.733333h-324.266666c-18.773333 0-34.133333-15.36-34.133334-34.133333s15.36-34.133333 34.133334-34.133333h324.266666c18.773333 0 34.133333 15.36 34.133334 34.133333s-14.933333 34.133333-34.133334 34.133333zM564.48 452.266667h-238.933333c-18.773333 0-34.133333-15.36-34.133334-34.133334s15.36-34.133333 34.133334-34.133333h238.933333c18.773333 0 34.133333 15.36 34.133333 34.133333s-14.933333 34.133333-34.133333 34.133334zM479.146667 588.8h-153.6c-18.773333 0-34.133333-15.36-34.133334-34.133333s15.36-34.133333 34.133334-34.133334h153.6c18.773333 0 34.133333 15.36 34.133333 34.133334s-14.933333 34.133333-34.133333 34.133333zM724.48 544c-94.293333 0-170.666667 76.373333-170.666667 170.666667s76.373333 170.666667 170.666667 170.666666 170.666667-76.373333 170.666667-170.666666-76.373333-170.666667-170.666667-170.666667z m0 273.066667c-56.32 0-102.4-46.08-102.4-102.4s46.08-102.4 102.4-102.4 102.4 46.08 102.4 102.4-45.653333 102.4-102.4 102.4z" fill="#4C4C4C" ></path><path d="M938.666667 928.853333c-13.226667 13.226667-34.986667 13.226667-48.213334 0l-72.533333-72.533333c-13.226667-13.226667-13.226667-34.986667 0-48.213333 13.226667-13.226667 34.986667-13.226667 48.213333 0l72.533334 72.533333c13.226667 13.226667 13.226667 34.56 0 48.213333z" fill="#4C4C4C" ></path></symbol><symbol id="icon-sousuo" viewBox="0 0 1024 1024"><path d="M1004.8 915.2l-243.2-243.2c0 0-6.4-6.4-6.4-6.4C800 595.2 832 505.6 832 416 832 185.6 646.4 0 416 0S0 185.6 0 416 185.6 832 416 832c89.6 0 179.2-32 243.2-83.2 0 6.4 6.4 6.4 6.4 6.4l243.2 243.2c25.6 25.6 70.4 25.6 96 6.4C1030.4 979.2 1030.4 940.8 1004.8 915.2zM64 416C64 224 224 64 416 64S768 224 768 416 608 768 416 768 64 608 64 416z" fill="#231815" ></path></symbol><symbol id="icon-ziliucheng" viewBox="0 0 1024 1024"><path d="M212.992 526.336 212.992 526.336 212.992 526.336 215.04 526.336 212.992 526.336Z" ></path><path d="M813.056 768l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912l0-38.912-18.432 0c-53.248 0-96.256-43.008-96.256-96.256L659.456 614.4l-96.256 0 0 192.512c0 20.48-16.384 38.912-38.912 38.912L120.832 845.824c-20.48 0-38.912-16.384-38.912-38.912L81.92 401.408c0-20.48 16.384-38.912 38.912-38.912l192.512 0L313.344 190.464 120.832 190.464C98.304 190.464 81.92 174.08 81.92 151.552L81.92 112.64c0-20.48 16.384-38.912 38.912-38.912l788.48 0c20.48 0 38.912 16.384 38.912 38.912l0 38.912c0 20.48-16.384 38.912-38.912 38.912L331.776 190.464l0 174.08 192.512 0c20.48 0 38.912 16.384 38.912 38.912L563.2 593.92l96.256 0 0-153.6c0-53.248 43.008-96.256 96.256-96.256l18.432 0 0-38.912c0-20.48 16.384-38.912 38.912-38.912l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912l0-38.912-18.432 0c-43.008 0-77.824 34.816-77.824 77.824L677.888 593.92l96.256 0 0-38.912c0-20.48 16.384-38.912 38.912-38.912l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912L774.144 614.4l-96.256 0 0 153.6c0 43.008 34.816 77.824 77.824 77.824l18.432 0 0-38.912C774.144 784.384 792.576 768 813.056 768z" ></path></symbol><symbol id="icon-danyuange" viewBox="0 0 1024 1024"><path d="M467.970999 661.248453h-184.831769a70.655912 70.655912 0 0 0-54.527932 25.599968A82.431897 82.431897 0 0 0 204.803328 744.19235v196.607754A82.687897 82.687897 0 0 0 228.611298 998.400032a71.423911 71.423911 0 0 0 54.527932 25.599968h184.831769a73.727908 73.727908 0 0 0 55.039931-25.599968 81.919898 81.919898 0 0 0 23.551971-58.623927v-195.583755a81.919898 81.919898 0 0 0-23.551971-58.367927 72.959909 72.959909 0 0 0-55.039931-25.599968z m5.887993-84.991893A118.015852 118.015852 0 0 0 512.002944 549.376593 127.99984 127.99984 0 0 0 545.538902 460.800704V126.465122A133.119834 133.119834 0 0 0 537.602912 76.801184a123.391846 123.391846 0 0 0-25.599968-40.447949 118.015852 118.015852 0 0 0-37.119954-25.599968A104.703869 104.703869 0 0 0 428.547048 0.00128H116.995438A105.471868 105.471868 0 0 0 71.683494 9.985268a121.087849 121.087849 0 0 0-37.119953 25.599968A127.99984 127.99984 0 0 0 9.219572 76.801184 133.119834 133.119834 0 0 0 0.003584 126.465122V460.800704a127.99984 127.99984 0 0 0 34.559957 88.31989 121.087849 121.087849 0 0 0 37.119953 27.135966 105.471868 105.471868 0 0 0 45.311944 9.983987h311.55161a106.239867 106.239867 0 0 0 45.311944-9.983987z m527.35934-329.215589a71.67991 71.67991 0 0 0-54.783931-25.599968h-184.575769a72.959909 72.959909 0 0 0-55.295931 25.599968 81.919898 81.919898 0 0 0-23.551971 58.367927v195.583756a83.199896 83.199896 0 0 0 23.551971 59.647925 73.983908 73.983908 0 0 0 55.295931 25.599968H947.2024a72.447909 72.447909 0 0 0 54.783932-25.599968 84.991894 84.991894 0 0 0 22.015972-59.647925v-195.583756a82.943896 82.943896 0 0 0-22.783972-58.367927zM947.2024 661.248453h-185.343768a72.959909 72.959909 0 0 0-55.295931 25.599968 81.919898 81.919898 0 0 0-23.551971 58.367927v196.607755A81.919898 81.919898 0 0 0 706.562701 998.400032a73.983908 73.983908 0 0 0 55.295931 25.599968H947.2024a72.447909 72.447909 0 0 0 54.783932-25.599968 83.455896 83.455896 0 0 0 22.015972-57.599928v-196.607754a83.199896 83.199896 0 0 0-22.783972-58.367927 71.67991 71.67991 0 0 0-54.783931-25.599968z m0 0" ></path></symbol><symbol id="icon-rengongzhineng_filledbeifen" viewBox="0 0 1024 1024"><path d="M913.678222 374.556444c0-175.431111-160.782222-317.653333-359.139555-317.653333a382.577778 382.577778 0 0 0-254.663111 93.767111 270.108444 270.108444 0 0 0-91.335112 118.840889 318.350222 318.350222 0 0 0-20.849777 98.773333c-0.597333 38.840889 18.389333 76.871111 1.664 114.688-11.633778 26.453333-41.870222 48.824889-61.312 69.916445 0 0-54.442667 36.224 49.436444 41.173333 2.929778 0.142222 16.071111 62.222222 19.342222 76.430222a16.753778 16.753778 0 0 0-3.271111 10.752c0 11.904 15.004444 21.617778 33.450667 21.617778h11.278222c-24.362667 3.313778-41.955556 12.8-41.955555 26.026667 0 9.102222 11.562667 21.105778 28.842666 28.302222 0 0-21.333333 66.744889 10.296889 81.962667a36.977778 36.977778 0 0 0 21.333333 1.564444c44.856889 2.446222 125.155556-0.739556 169.784889-0.739555 0-0.810667 23.466667 127.146667 23.466667 127.146666h403.299556c0 0.64-38.769778-289.265778-38.769778-289.265777 70.968889-101.632 95.544889-192.611556 96.881778-268.643556 1.422222-11.491556 2.161778-23.068444 2.176-34.659556h0.042666zM701.155556 320.711111a72.632889 72.632889 0 0 1-65.706667-42.055111l-54.471111 31.544889a108.344889 108.344889 0 0 1-7.509334 107.975111l102.172445 59.192889a36.508444 36.508444 0 1 1-10.894222 25.984 35.555556 35.555556 0 0 1 2.019555-10.026667L561.777778 432.512a109.511111 109.511111 0 1 1 10.168889-138.154667l57.728-33.422222a72.718222 72.718222 0 1 1 71.466666 59.733333v0.042667z" fill="#323233" ></path></symbol><symbol id="icon-fuhao-huizhi" viewBox="0 0 1024 1024"><path d="M254.4 82.624L82.624 254.4a60.704 60.704 0 0 0 0 85.92L254.4 512l128.8-128.8-42.88-42.88-85.92 85.888-42.88-42.88 85.888-85.92-42.88-42.88-85.92 85.888-42.88-42.88 171.776-171.84 171.584 171.616L512 254.4l-171.776-171.84a60.576 60.576 0 0 0-85.76 0z m644.096 644.064l-171.808 171.808-42.88-42.912 85.888-85.888-42.88-42.88-85.92 85.856-42.88-42.88 85.888-85.888-42.912-42.912L512 769.6l171.776 171.776a60.704 60.704 0 0 0 85.92 0l171.776-171.776a60.704 60.704 0 0 0 0-85.92L769.6 512l-42.912 42.88 171.808 171.808zM680.8 211.328l131.968 131.872-43.968 44L636.8 255.2l44-43.872zM240.96 650.976l131.968 131.872-44 44-131.968-131.872 44-44zM680.704 123.424a124.544 124.544 0 0 1 176.288 0.096l43.584 43.52a124.704 124.704 0 0 1 0.096 176.16L355.264 888.416l-268.352 48.384 48.384-268.288L680.704 123.424zM334.4 821.344L857.472 298.656c23.84-23.872 23.552-63.264-0.8-87.52L813.12 167.616c-24.544-24.544-63.552-24.832-87.584-0.8L202.432 689.6l-27.52 159.424 159.52-27.616z" fill="#0A8CF0" ></path></symbol><symbol id="icon-shanchu" viewBox="0 0 1024 1024"><path d="M799.2 874.4c0 34.4-28.001 62.4-62.4 62.4H287.2c-34.4 0-62.4-28-62.4-62.4V212h574.4v662.4zM349.6 100c0-7.2 5.6-12.8 12.8-12.8h300c7.2 0 12.8 5.6 12.8 12.8v37.6H349.6V100z m636.8 37.6H749.6V100c0-48.001-39.2-87.2-87.2-87.2h-300c-48 0-87.2 39.199-87.2 87.2v37.6H37.6C16.8 137.6 0 154.4 0 175.2s16.8 37.6 37.6 37.6h112v661.6c0 76 61.6 137.6 137.6 137.6h449.6c76 0 137.6-61.6 137.6-137.6V212h112c20.8 0 37.6-16.8 37.6-37.6s-16.8-36.8-37.6-36.8zM512 824c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0 20.8 16.8 37.6 37.6 37.6m-175.2 0c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0.8 20.8 17.6 37.6 37.6 37.6m350.4 0c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0 20.8 16.8 37.6 37.6 37.6" fill="#8A8A8A" ></path></symbol><symbol id="icon-jurassic_import-form" viewBox="0 0 1024 1024"><path d="M764.9 64H225.4l1.4 224.2 64-0.4-1-159.8h383.6v224H896v544H289.8l1-159.8-64-0.4-1.4 224.2H960V277.7L764.9 64z m-27.6 64.7L882.8 288H737.3V128.7z" fill="#707070" ></path><path d="M356.5 224h255.9v64H356.5z" fill="#707070" ></path><path d="M576.4 416h255.9v64H576.4zM512.5 576h319.8v64H512.5zM384.5 736h447.8v64H384.5z" fill="#707070" ></path><path d="M336.9 349H198.6l98.9 98.9H64v128.2h233.5L198.6 675h138.3l162.9-163z" fill="#707070" ></path></symbol><symbol id="icon-kaoheweidufenxi" viewBox="0 0 1024 1024"><path d="M815.542857 212.943238l118.296381 68.266667v168.033524l-201.532952 116.345904-0.487619-163.352381-125.366857-72.46019 209.091047-116.833524z m-89.673143-51.736381L519.314286 279.454476 305.785905 156.233143 511.561143 37.449143l214.308571 123.757714zM294.619429 887.466667L89.234286 768.877714V546.133333l205.677714 118.00381-0.292571 223.329524z m85.333333 49.249523l-0.097524-223.914666 133.607619 76.653714 132.632381-76.604952-1.024 222.744381-133.558857 77.043809-131.510857-75.922286zM434.468571 328.021333L295.253333 407.747048l-0.195047 156.672L89.234286 444.318476V281.258667l132.047238-76.263619 213.089524 123.026285z m86.113524 49.737143l126.780953 73.191619-0.780191 164.08381-133.12 76.897524-133.656381-78.019048-0.097524-157.403429 140.921905-78.750476z m413.257143 169.008762v222.110476l-200.655238 115.809524-0.633905-221.769143 201.289143-116.150857z" fill="#82529d" ></path></symbol><symbol id="icon-wenjianjia" viewBox="0 0 1024 1024"><path d="M855.04 385.024q19.456 2.048 38.912 10.24t33.792 23.04 21.504 37.376 2.048 54.272q-2.048 8.192-8.192 40.448t-14.336 74.24-18.432 86.528-19.456 76.288q-5.12 18.432-14.848 37.888t-25.088 35.328-36.864 26.112-51.2 10.24l-567.296 0q-21.504 0-44.544-9.216t-42.496-26.112-31.744-40.96-12.288-53.76l0-439.296q0-62.464 33.792-97.792t95.232-35.328l503.808 0q22.528 0 46.592 8.704t43.52 24.064 31.744 35.84 12.288 44.032l0 11.264-53.248 0q-40.96 0-95.744-0.512t-116.736-0.512-115.712-0.512-92.672-0.512l-47.104 0q-26.624 0-41.472 16.896t-23.04 44.544q-8.192 29.696-18.432 62.976t-18.432 61.952q-10.24 33.792-20.48 65.536-2.048 8.192-2.048 13.312 0 17.408 11.776 29.184t29.184 11.776q31.744 0 43.008-39.936l54.272-198.656q133.12 1.024 243.712 1.024l286.72 0z" ></path></symbol><symbol id="icon-biaoqian" viewBox="0 0 1024 1024"><path d="M934.912 516.096q23.552 26.624 19.456 49.664t-26.624 46.592l-324.608 327.68q-8.192 7.168-19.456 11.264t-23.04 4.608-23.04-2.56-18.432-10.24q-121.856-122.88-218.112-220.16l-80.896-80.896q-39.936-39.936-71.168-71.68t-51.2-51.2-20.992-21.504q-3.072-4.096-10.752-14.848t-6.656-25.088l0-19.456 0-40.96q0-23.552 0.512-52.736t0.512-58.88q1.024-70.656 2.048-156.672 2.048-13.312 6.144-24.064t15.36-22.016q10.24-11.264 22.016-16.384t22.016-5.12l329.728 0q2.048 0 9.216 0.512t10.24 1.536q6.144 2.048 11.264 5.12t10.24 8.192zM217.088 317.44q40.96 0 69.12-28.672t28.16-69.632-28.16-69.632-69.12-28.672q-20.48 0-37.888 7.68t-30.72 20.992-20.992 31.232-7.68 38.4 7.68 38.4 20.992 31.232 30.72 20.992 37.888 7.68z" fill="#ea9518" ></path></symbol><symbol id="icon-wenben" viewBox="0 0 1024 1024"><path d="M823.296 60.416q65.536 0 99.328 38.4t33.792 93.696l0 543.744q0 25.6-21.504 46.08l-171.008 163.84q-13.312 11.264-22.528 14.336t-23.552 3.072l-459.776 0q-23.552 0-47.104-9.728t-41.984-27.648-30.208-43.008-11.776-55.808l0-634.88q0-60.416 33.28-96.256t94.72-35.84l568.32 0zM608.256 702.464q13.312 0 22.528-9.216t9.216-22.528q0-14.336-9.216-23.04t-22.528-8.704l-320.512 0q-13.312 0-22.528 8.704t-9.216 23.04q0 13.312 9.216 22.528t22.528 9.216l320.512 0zM736.256 509.952q13.312 0 22.528-9.216t9.216-22.528-9.216-22.528-22.528-9.216l-448.512 0q-13.312 0-22.528 9.216t-9.216 22.528 9.216 22.528 22.528 9.216l448.512 0zM799.744 318.464q13.312 0 22.528-9.216t9.216-23.552q0-13.312-9.216-22.528t-22.528-9.216l-512 0q-13.312 0-22.528 9.216t-9.216 22.528q0 14.336 9.216 23.552t22.528 9.216l512 0z" fill="#db639b" ></path></symbol><symbol id="icon-yingyong" viewBox="0 0 1026 1024"><path d="M371.732817 94.172314q25.773475 0 44.112294 17.843175t18.338819 43.616651l0 247.821878q0 25.773475-18.338819 44.112294t-44.112294 18.338819l-247.821878 0q-25.773475 0-43.616651-18.338819t-17.843175-44.112294l0-247.821878q0-25.773475 17.843175-43.616651t43.616651-17.843175l247.821878 0zM371.732817 589.81607q25.773475 0 44.112294 17.843175t18.338819 43.616651l0 248.813166q0 25.773475-18.338819 43.616651t-44.112294 17.843175l-247.821878 0q-25.773475 0-43.616651-17.843175t-17.843175-43.616651l0-248.813166q0-25.773475 17.843175-43.616651t43.616651-17.843175l247.821878 0zM868.367861 589.81607q25.773475 0 43.616651 17.843175t17.843175 43.616651l0 248.813166q0 25.773475-17.843175 43.616651t-43.616651 17.843175l-247.821878 0q-25.773475 0-44.112294-17.843175t-18.338819-43.616651l0-248.813166q0-25.773475 18.338819-43.616651t44.112294-17.843175l247.821878 0zM1006.156825 203.21394q19.82575 19.82575 19.82575 46.590513t-19.82575 45.599226l-184.379477 184.379477q-19.82575 19.82575-46.094869 19.82575t-46.094869-19.82575l-184.379477-184.379477q-18.834463-18.834463-18.834463-45.599226t18.834463-46.590513l184.379477-184.379477q19.82575-18.834463 46.094869-18.834463t46.094869 18.834463z" fill="#0061b2" ></path></symbol><symbol id="icon-wenjianjia-copy" viewBox="0 0 1024 1024"><path d="M855.04 385.024q19.456 2.048 38.912 10.24t33.792 23.04 21.504 37.376 2.048 54.272q-2.048 8.192-8.192 40.448t-14.336 74.24-18.432 86.528-19.456 76.288q-5.12 18.432-14.848 37.888t-25.088 35.328-36.864 26.112-51.2 10.24l-567.296 0q-21.504 0-44.544-9.216t-42.496-26.112-31.744-40.96-12.288-53.76l0-439.296q0-62.464 33.792-97.792t95.232-35.328l503.808 0q22.528 0 46.592 8.704t43.52 24.064 31.744 35.84 12.288 44.032l0 11.264-53.248 0q-40.96 0-95.744-0.512t-116.736-0.512-115.712-0.512-92.672-0.512l-47.104 0q-26.624 0-41.472 16.896t-23.04 44.544q-8.192 29.696-18.432 62.976t-18.432 61.952q-10.24 33.792-20.48 65.536-2.048 8.192-2.048 13.312 0 17.408 11.776 29.184t29.184 11.776q31.744 0 43.008-39.936l54.272-198.656q133.12 1.024 243.712 1.024l286.72 0z" ></path></symbol></svg>',(a=>{var l=(n=(n=document.getElementsByTagName("script"))[n.length-1]).getAttribute("data-injectcss"),n=n.getAttribute("data-disable-injectsvg");if(!n){var r,i,t,f,c,u=function(_,p){p.parentNode.insertBefore(_,p)};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(_){console&&console.log(_)}}r=function(){var _,p=document.createElement("div");p.innerHTML=a._iconfont_svg_string_4827314,(p=p.getElementsByTagName("svg")[0])&&(p.setAttribute("aria-hidden","true"),p.style.position="absolute",p.style.width=0,p.style.height=0,p.style.overflow="hidden",p=p,(_=document.body).firstChild?u(p,_.firstChild):_.appendChild(p))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(r,0):(i=function(){document.removeEventListener("DOMContentLoaded",i,!1),r()},document.addEventListener("DOMContentLoaded",i,!1)):document.attachEvent&&(t=r,f=a.document,c=!1,g(),f.onreadystatechange=function(){f.readyState=="complete"&&(f.onreadystatechange=null,m())})}function m(){c||(c=!0,t())}function g(){try{f.documentElement.doScroll("left")}catch{return void setTimeout(g,50)}m()}})(window);const Vf=["onClick"],Ff=e.defineComponent({__name:"index",props:{items:{default:()=>[]},disabled:{type:Boolean,default:!1},textSize:{default:void 0},textColor:{default:void 0},backGround:{default:void 0},backGroundImage:{default:void 0},backgroundUrl:{default:""}},emits:["update:backGroundImage"],setup(a,{emit:l}){const n=a,r=l,i=e.ref(null),t=e.ref(null),f=e.computed(()=>{const x=Number(n==null?void 0:n.textSize),S=ie.rgbaToColor(n==null?void 0:n.textColor),b={},C={};return!Number.isNaN(x)&&x&&(b.fontSize=`${x}px`,C.fontSize=`${x}px`),S&&(b.color=S,C.color=S),{label:b,value:C}}),c=e.ref(""),u=e.ref(""),m=e.ref(!1),g=async x=>{if(x){u.value&&(URL.revokeObjectURL(u.value),u.value="");try{const S=await z.platformDownloadFile({url:x}),b=new Blob([S==null?void 0:S.data],{type:(S==null?void 0:S.headers["content-type"])||"image/*"});u.value=URL.createObjectURL(b)}catch{u.value=""}}};e.watch(()=>n==null?void 0:n.backGroundImage,x=>{x&&(c.value=x)},{immediate:!0}),e.watch(c,x=>{g(x)},{immediate:!0});const _=()=>{var x;(x=t.value)==null||x.click()},p=async x=>{var C,R,$;const S=x.target,b=(C=S==null?void 0:S.files)==null?void 0:C[0];if(!b){S.value="";return}m.value=!0;try{const le=new FormData;le.append("file",b);const ee=await z.platformUploadFile(le),_e=($=(R=ee==null?void 0:ee.data)==null?void 0:R.result)==null?void 0:$.url;_e?(c.value=_e,r("update:backGroundImage",_e),g(_e),Xa.ElMessage.success("背景图片上传成功")):Xa.ElMessage.error("背景图片上传失败")}catch{Xa.ElMessage.error("背景图片上传失败")}finally{m.value=!1,S.value=""}},M=e.computed(()=>{var x;return u.value||(n==null?void 0:n.backgroundUrl)!==""?{backgroundImage:`url("${(x=n==null?void 0:n.backgroundUrl)==null?void 0:x.replace(/\\/g,"/")}")`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{}}),w=x=>fl.getComponent(x),G=x=>{if(!x)return;const S=x.querySelector("input, textarea, .el-input__inner");S&&typeof S.focus=="function"&&S.focus()},A=(x,S,b)=>{n.disabled||x.field&&(i.value=S,e.nextTick(()=>{G(b.currentTarget)}))},P=()=>{i.value=null},O=x=>{var b;const S=((b=x==null?void 0:x.field)==null?void 0:b.value)??(x==null?void 0:x.value);return S==null||S===""?"-":S},E=x=>{const S=x!=null&&x.width&&x.width>0?x.width:1,C=`calc((100% - ${(S-1)*16}px) / ${S})`;return{flex:`0 0 ${C}`,maxWidth:C,minWidth:"140px",boxSizing:"border-box"}};return(x,S)=>(e.openBlock(),e.createElementBlock("div",{class:"statistics-cards-container",style:e.normalizeStyle(M.value),onClick:S[2]||(S[2]=b=>(n==null?void 0:n.backGround)&&_())},[n!=null&&n.backGround?(e.openBlock(),e.createElementBlock("div",{key:0,class:"form-backGround-upload",onClick:S[0]||(S[0]=e.withModifiers(b=>_(),["stop"]))},[e.createElementVNode("input",{ref_key:"bgUploadRef",ref:t,type:"file",accept:"image/*",style:{display:"none"},onChange:p},null,544),S[3]||(S[3]=e.createElementVNode("img",{src:fl._imports_0,class:"bg-upload-icon",alt:"上传背景"},null,-1))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.items,(b,C)=>{var R,$,le,ee,_e,pe,H,F;return e.openBlock(),e.createElementBlock("div",{class:"statistics-card",key:C,style:e.normalizeStyle(E(b)),onClick:S[1]||(S[1]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",{class:"statistics-label",style:e.normalizeStyle(f.value.label)},e.toDisplayString(b==null?void 0:b.label),5),e.createElementVNode("div",{class:"statistics-value",style:e.normalizeStyle(f.value.value),onClick:X=>{var re;return(re=b.field)!=null&&re.isNoClick?null:A(b,C,X)}},[i.value===C&&b.field?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w(((R=b.field)==null?void 0:R.type)??"Input")),{key:0,modelValue:b.field.value,"onUpdate:modelValue":X=>b.field.value=X,isEdit:!0,disabled:($=b.field)==null?void 0:$.disabled,content:((le=b.field)==null?void 0:le.contents)??[],optionUrl:b.field,originalValue:(ee=b.field)==null?void 0:ee.value,config:(_e=b.field)==null?void 0:_e.config,configModel:((pe=b.field)==null?void 0:pe.prop)??((H=b.field)==null?void 0:H.name),selectedTagList:((F=b.field)==null?void 0:F.selectValue)??[],onBlur:P,onBlurChange:P},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(O(b)),1)],64))],12,Vf)],4)}),128))],4))}}),Pf=nr._export_sfc(Ff,[["__scopeId","data-v-af63fc22"]]),bc=z.defineStore("formToTableComp",{state:()=>({selectArray:[],selectString:""}),actions:{setSelectArray(a){this.selectArray=a},setSelectString(a){this.selectString=a}}}),jf={class:"calculator-content"},Hf={class:"calculator-child"},Uf={class:"calculator-child"},qf=e.defineComponent({__name:"calculator",setup(a){const l=e.ref(),n=e.ref();return e.onMounted(()=>{l.value=[{type:"Upload",label:"输入",name:"input"}],n.value=[{type:"Upload",label:"输出",name:"output"}]}),(r,i)=>(e.openBlock(),e.createElementBlock("div",jf,[e.createElementVNode("div",Hf,[e.createVNode(fl.ssForm,{rowContents:l.value,isRowFlex:!0},null,8,["rowContents"])]),e.createElementVNode("div",Uf,[e.createVNode(fl.ssForm,{rowContents:n.value,isEdit:!1,isRowFlex:!0},null,8,["rowContents"])])]))}}),Wf=nr._export_sfc(qf,[["__scopeId","data-v-73db0fe7"]]),Et=(a,l)=>{let n=a,r=l;return Array.isArray(n)&&(n=n==null?void 0:n.map((i,t)=>{if(Array.isArray(i)){let f={};return i=i==null?void 0:i.forEach((c,u)=>{var m;(m=r==null?void 0:r[u])!=null&&m.prop?f[r[u].prop]=c:Array.isArray(c)&&(f.children=Et(c,r))}),Object.assign(f,{id:t})}else return i})),n},kc=(a,l,n)=>{let r=a,i=l;return r=r==null?void 0:r.map((t,f)=>{var c,u;return!Array.isArray(t)||!((c=i==null?void 0:i[f])!=null&&c.label)&&!n||(t.unshift(((u=i==null?void 0:i[f])==null?void 0:u.label)??""),t.some(m=>Array.isArray(m))&&(t=t==null?void 0:t.map(m=>{var g;return Array.isArray(m)&&(m=kc(m,(g=i==null?void 0:i[f])==null?void 0:g.children,n)),m}))),t}),r},Kf=(a,l,n)=>{if(l==="")return a==null?void 0:a.filter(r=>(r==null?void 0:r.id)!==n);{const r=l.split("-");return Gf(a,r,n)}},Gf=(a,l,n)=>{let r=a,i=l;return(i==null?void 0:i.length)===0?r=r==null?void 0:r.filter(t=>t.id!==n):r=r==null?void 0:r.map(t=>(t.id.toString()===(i==null?void 0:i[0])&&(i==null||i.shift(),t=xc(t,i,n)),t)),r},xc=(a,l,n)=>{var t,f;let r=a,i=l;return(i==null?void 0:i.length)===0?r.children=(t=r.children)==null?void 0:t.filter(c=>c.id!==n):r.children=(f=r.children)==null?void 0:f.map(c=>(c.id.toString()===(i==null?void 0:i[0])&&(i==null||i.shift(),c=xc(c,i,n)),c)),r},Yf=(a,l,n)=>{if(l==="")return n;{const r=l.split("-");return Jf(a,r,n)}},Jf=(a,l,n)=>{let r=a,i=l;return(i==null?void 0:i.length)===0?r=n:r=r==null?void 0:r.map(t=>(t.id.toString()===(i==null?void 0:i[0])&&(i==null||i.shift(),t=wc(t,i,n)),t)),r},wc=(a,l,n)=>{var t;let r=a,i=l;return(i==null?void 0:i.length)===0?r.children=n:r.children=(t=r.children)==null?void 0:t.map(f=>(f.id.toString()===(i==null?void 0:i[0])&&(i==null||i.shift(),f=wc(f,i,n)),f)),r};class Xf{constructor(l={}){un(this,"url");un(this,"heartbeatInterval");un(this,"socket",null);un(this,"isConnected",!1);un(this,"heartTimer",null);un(this,"canvas",null);un(this,"ctx",null);un(this,"mainCamCutMode",0);un(this,"pMainShowStartX",0);un(this,"pMainShowStartY",0);un(this,"onLog");un(this,"onDevCount");un(this,"onResolution");un(this,"onCameraStatus");un(this,"onPhoto");this.url=l.url??"ws://127.0.0.1:22225",this.heartbeatInterval=l.heartbeatInterval??3e3}init(l,n,r){var f;(f=this.canvas)!=null&&f.parentNode&&this.canvas.parentNode.removeChild(this.canvas);const i=document.createElement("canvas");i.style.border="solid 1px #A0A0A0",i.id="MainCamCanvas",i.width=n,i.height=r;const t=i.getContext("2d");if(!t)throw new Error("无法获取 CanvasRenderingContext2D");l.appendChild(i),this.canvas=i,this.ctx=t}async connect(){this.socket&&(this.socket.readyState===WebSocket.OPEN||this.socket.readyState===WebSocket.CONNECTING)||await new Promise((l,n)=>{const r=new WebSocket(this.url);r.binaryType="arraybuffer",r.onopen=()=>{this.socket=r,this.isConnected=!0,this.startHeartbeat(),this.log("socket.onopen"),l()},r.onerror=i=>{this.isConnected=!1,this.log("socket.onerror"),n(i)},r.onclose=()=>{this.isConnected=!1,this.stopHeartbeat(),this.log("socket.onclose")},r.onmessage=i=>{this.handleMessage(i)}})}destroy(){var l;this.stopHeartbeat();try{this.closeCamera()}catch{}if(this.socket){try{this.socket.onmessage=null}catch{}try{this.socket.onopen=null}catch{}try{this.socket.onerror=null}catch{}try{this.socket.onclose=null}catch{}try{this.socket.close()}catch{}this.socket=null}this.isConnected=!1,(l=this.canvas)!=null&&l.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.canvas=null,this.ctx=null}getDevCount(){this.sendBytes(new Uint8Array([119,136,80]))}getResolution(l=0){this.sendBytes(new Uint8Array([119,136,81,l]))}chooseResolution(l){if(!Array.isArray(l)||l.length===0)return null;const n=l.find(i=>i.width===2592&&i.height===1944);return n||[...l].sort((i,t)=>t.width*t.height-i.width*i.height)[0]||null}openCamera(l=0,n=1280,r=720){if(!this.canvas)throw new Error("请先 init() 传入容器并创建 canvas");const i=new Uint8Array(12);i[0]=119,i[1]=136,i[2]=1,i[3]=l,i[4]=this.canvas.width>>8&255,i[5]=this.canvas.width&255,i[6]=this.canvas.height>>8&255,i[7]=this.canvas.height&255,i[8]=n>>8&255,i[9]=n&255,i[10]=r>>8&255,i[11]=r&255,this.sendBytes(i)}closeCamera(){this.sendBytes(new Uint8Array([119,136,2,0]))}photo(){const i=new Uint8Array(12);i[0]=119,i[1]=136,i[2]=16,i[3]=0,i[4]=0,i[5]=0,i[6]=0,i[7]=0,i[8]=1,i[9]=0,i[10]=0,i[11]=0,this.sendBytes(i)}bestSize(){this.sendBytes(new Uint8Array([119,136,5,0]))}rotateLeft(){this.sendBytes(new Uint8Array([119,136,7,0]))}rotateRight(){this.sendBytes(new Uint8Array([119,136,8,0]))}focus(){this.sendBytes(new Uint8Array([119,136,48,0]))}log(l){var n;(n=this.onLog)==null||n.call(this,l)}sendBytes(l){if(!this.socket||this.socket.readyState!==WebSocket.OPEN||!this.isConnected)throw new Error("socket 未连接");this.socket.send(l.buffer)}startHeartbeat(){this.stopHeartbeat(),this.heartTimer=window.setInterval(()=>{this.log("heartCheck...........")},this.heartbeatInterval)}stopHeartbeat(){this.heartTimer&&(clearInterval(this.heartTimer),this.heartTimer=null)}handleMessage(l){var i,t,f,c,u,m;const n=new Uint8Array(l.data);if(n.length<=0)return;if(n[0]===17&&n[1]===17&&n[2]===17){this.log("heart socket!!!!");return}if(n[0]!==85||n[1]!==102)return;const r=n[2];if(r===80){const g=n[3],_=n.length-4,p=new Uint8Array(_);for(let G=0;G<_;G++)p[G]=n[4+G];const w=decodeURIComponent(this.byteToString(p)).split("|");(i=this.onDevCount)==null||i.call(this,g,w);return}if(r===81){const g=n[3]||0,_=[];for(let p=0;p<g;p++){const M=(n[4+p*4+0]||0)*256+(n[4+p*4+1]||0),w=(n[4+p*4+2]||0)*256+(n[4+p*4+3]||0);_.push({width:M,height:w,text:`${M}*${w}`})}(t=this.onResolution)==null||t.call(this,g,_);return}if(r===1){n[3]===1&&((f=this.onCameraStatus)==null||f.call(this,"opened")),n[3]===3&&((c=this.onCameraStatus)==null||c.call(this,"closed"));return}if(r===16){if(n[3]===1){const _=n[4]*256+n[5],p=n[6]*65536+n[7]*256+n[8];let M="";if(_>0){const A=new Uint8Array(_);for(let P=0;P<_;P++)A[P]=n[9+P];M=decodeURIComponent(this.byteToString(A))}const w=new Uint8Array(p);for(let A=0;A<p;A++)w[A]=n[9+_+A];const G=this.uint8ArrayToString(w);(u=this.onPhoto)==null||u.call(this,{flag:0,imgPath:M,base64:G})}n[3]===2&&((m=this.onPhoto)==null||m.call(this,{flag:2,imgPath:"",base64:""}));return}if(r===204){if(!this.canvas||!this.ctx)return;const g=n[3]*256+n[4],_=n[5]*256+n[6];this.pMainShowStartX=n[7]*256+n[8],this.pMainShowStartY=n[9]*256+n[10],this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height);const p=this.ctx.createImageData(g,_);let M=11;for(let w=0;w<p.data.length;w+=4)p.data[w+0]=n[M],p.data[w+1]=n[M+1],p.data[w+2]=n[M+2],p.data[w+3]=255,M+=3;this.ctx.putImageData(p,this.pMainShowStartX,this.pMainShowStartY),this.mainCamCutMode;return}}uint8ArrayToString(l){let n="";for(let r=0;r<l.length;r++)n+=String.fromCharCode(l[r]);return n}byteToString(l){let n="";for(let r=0;r<l.length;r++)n+=String.fromCharCode(l[r]);return n}}const Zf={style:{display:"flex",gap:"16px",height:"100%"}},Qf={key:0,style:{color:"var(--el-text-color-secondary)"}},e0={style:{width:"420px",display:"flex","flex-direction":"column",gap:"16px"}},a0={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px"}},l0={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"}},r0={key:0,style:{height:"100%",display:"flex","align-items":"center","justify-content":"center",color:"var(--el-text-color-secondary)"}},n0={key:1,style:{display:"grid","grid-template-columns":"repeat(2, minmax(0, 1fr))",gap:"8px"}},i0=["src","onClick"],o0=["onClick"],t0={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px",flex:"1","min-height":"0",display:"flex","flex-direction":"column"}},s0={class:"dialog-footer"},c0=e.defineComponent({__name:"index",props:{visible:{type:Boolean,default:!1}},emits:["confirm","cancel"],setup(a,{emit:l}){const n=a,r=l,i=e.ref(null),t=e.ref(!1),f=e.ref([]),c=e.ref(""),u=e.ref(!1),m=e.ref([]),g=new Xf({url:"ws://127.0.0.1:22225"});function _($,le){var X;const ee=$.split(","),_e=((X=ee[0].match(/:(.*?);/))==null?void 0:X[1])??"image/jpeg",pe=atob(ee[1]);let H=pe.length;const F=new Uint8Array(H);for(;H--;)F[H]=pe.charCodeAt(H);return new File([F],le,{type:_e})}function p(){g.onLog=$=>{console.log("[GPY]",$)},g.onDevCount=($,le)=>{if(c.value+=`设备数量=${$},设备=${le.join(",")}
4
+ `,$>0){c.value+=`检测到设备,正在获取分辨率...
5
+ `;try{g.getResolution(0)}catch(ee){c.value+=`获取分辨率失败:${(ee==null?void 0:ee.message)??ee}
6
+ `}}else c.value+=`未检测到高拍仪设备!
7
+ `},g.onResolution=($,le)=>{if($<=0||!Array.isArray(le)||le.length===0){c.value+=`未获取到可用分辨率,回退使用 1280*720 打开...
8
+ `;try{g.openCamera(0,1280,720)}catch(_e){c.value+=`打开摄像头失败:${(_e==null?void 0:_e.message)??_e}
9
+ `}return}const ee=g.chooseResolution(le);if(!ee){c.value+=`分辨率选择失败,回退使用 1280*720 打开...
10
+ `;try{g.openCamera(0,1280,720)}catch(_e){c.value+=`打开摄像头失败:${(_e==null?void 0:_e.message)??_e}
11
+ `}return}c.value+=`获取分辨率 ${ee.text}成功,打开摄像头...
12
+ `;try{g.closeCamera(),setTimeout(()=>{try{g.openCamera(0,ee.width,ee.height)}catch(_e){c.value+=`打开摄像头失败:${(_e==null?void 0:_e.message)??_e}
13
+ `}},100)}catch{try{g.openCamera(0,ee.width,ee.height)}catch(_e){c.value+=`打开摄像头失败:${(_e==null?void 0:_e.message)??_e}
14
+ `}}},g.onCameraStatus=$=>{$==="opened"?(t.value=!0,c.value+=`摄像头已打开
15
+ `):(t.value=!1,c.value+=`摄像头已关闭
16
+ `)},g.onPhoto=$=>{if($.flag===0&&$.base64){const le=`data:image/jpeg;base64,${$.base64}`,ee=_(le,`gpy-capture-${Date.now()}.jpg`);f.value.push({uid:`${Date.now()}_${Math.random().toString(16).slice(2)}`,url:le,file:ee}),c.value+=`拍照完成,已接收图片(当前 ${f.value.length} 张)
17
+ `}else c.value+=`拍照失败 flag=${$.flag}
18
+ `}}const M=async()=>{if(await e.nextTick(),!i.value)return;w(),p();const $=i.value.getBoundingClientRect();g.init(i.value,Math.floor($.width),Math.floor($.height)),c.value+=`正在连接设备服务...
19
+ `,await g.connect(),c.value+=`正在获取设备数量...
20
+ `,g.getDevCount()},w=()=>{try{g.destroy()}catch($){console.error($)}t.value=!1,f.value=[],c.value="",u.value=!1,m.value=[]};e.watch(()=>n.visible,$=>{$?M():w()});const G=()=>{try{g.bestSize()}catch($){console.error($)}},A=()=>{try{g.rotateLeft()}catch($){console.error($)}},P=()=>{try{g.rotateRight()}catch($){console.error($)}},O=()=>{try{g.focus()}catch($){console.error($)}},E=()=>{c.value+=`正在拍照...
21
+ `;try{g.photo()}catch($){c.value+=`拍照调用失败:${($==null?void 0:$.message)??$}
22
+ `}},x=()=>{f.value.length>0?r("confirm",f.value.map($=>$.file)):r("confirm",[])},S=$=>{$<0||$>=f.value.length||(f.value.splice($,1),c.value+=`已删除一张图片(剩余 ${f.value.length} 张)
23
+ `)},b=$=>{if(!$)return;const le=`gpy-preview-${Date.now()}.jpg`;m.value=[{name:le,blobUrl:$}],u.value=!0},C=()=>{u.value=!1},R=()=>{w(),r("cancel")};return($,le)=>{const ee=e.resolveComponent("el-input"),_e=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Mr.ssDialog,{title:"扫描录入",visible:n.visible,onBeforeDestroy:R,width:"1200px",style:{height:"80%"}},{default:e.withCtx(()=>[e.createElementVNode("div",Zf,[e.createElementVNode("div",{ref_key:"cameraBox",ref:i,style:{flex:"1","min-width":"0",border:"1px solid var(--el-border-color)","border-radius":"4px",position:"relative",overflow:"hidden",display:"flex","align-items":"center","justify-content":"center",background:"var(--el-fill-color-lighter)"}},[t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Qf,"初始化摄像头..."))],512),e.createElementVNode("div",e0,[e.createElementVNode("div",a0,[le[0]||(le[0]=e.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"拍照图片",-1)),e.createElementVNode("div",l0,[f.value.length===0?(e.openBlock(),e.createElementBlock("div",r0,"暂无图片")):(e.openBlock(),e.createElementBlock("div",n0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(pe,H)=>(e.openBlock(),e.createElementBlock("div",{key:pe.uid,style:{position:"relative",border:"1px solid var(--el-border-color)","border-radius":"4px",overflow:"hidden",background:"#fafafa"}},[e.createElementVNode("img",{src:pe.url,onClick:F=>b(pe.url),style:{width:"100%",height:"94px","object-fit":"contain",display:"block",background:"#fafafa",cursor:"zoom-in"},alt:"captured image",title:"点击放大"},null,8,i0),e.createElementVNode("div",{onClick:F=>S(H),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,o0)]))),128))]))],512)]),e.createElementVNode("div",t0,[le[1]||(le[1]=e.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"操作记录",-1)),e.createVNode(ee,{type:"textarea",value:c.value,readonly:"",rows:10,placeholder:"设备操作记录...",style:{flex:"1"}},null,8,["value"])])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",s0,[e.createVNode(_e,{onClick:G,disabled:!t.value,id:"themeBorderButton"},{default:e.withCtx(()=>le[2]||(le[2]=[e.createTextVNode("适屏")])),_:1,__:[2]},8,["disabled"]),e.createVNode(_e,{onClick:A,disabled:!t.value,id:"themeBorderButton"},{default:e.withCtx(()=>le[3]||(le[3]=[e.createTextVNode("左旋")])),_:1,__:[3]},8,["disabled"]),e.createVNode(_e,{onClick:P,disabled:!t.value,id:"themeBorderButton"},{default:e.withCtx(()=>le[4]||(le[4]=[e.createTextVNode("右旋")])),_:1,__:[4]},8,["disabled"]),e.createVNode(_e,{onClick:O,disabled:!t.value,id:"themeBorderButton"},{default:e.withCtx(()=>le[5]||(le[5]=[e.createTextVNode("对焦")])),_:1,__:[5]},8,["disabled"]),e.createVNode(_e,{onClick:E,disabled:!t.value,id:"themeButton"},{default:e.withCtx(()=>le[6]||(le[6]=[e.createTextVNode("拍照")])),_:1,__:[6]},8,["disabled"]),le[9]||(le[9]=e.createElementVNode("div",{style:{flex:"1"}},null,-1)),e.createVNode(_e,{onClick:x,disabled:f.value.length===0,id:"themeButton"},{default:e.withCtx(()=>le[7]||(le[7]=[e.createTextVNode("确认")])),_:1,__:[7]},8,["disabled"]),e.createVNode(_e,{onClick:R,id:"themeBorderButton"},{default:e.withCtx(()=>le[8]||(le[8]=[e.createTextVNode("取消")])),_:1,__:[8]})])]),_:1},8,["visible"]),u.value?(e.openBlock(),e.createBlock(fl.ssFilePreview,{key:0,fileDataList:m.value,onDestroy:C},null,8,["fileDataList"])):e.createCommentVNode("",!0)],64)}}}),u0=nr._export_sfc(c0,[["__scopeId","data-v-24a2050a"]]),xs=z.useMenuState(z.pinia);let Di="$R";const d0=async a=>{var t,f,c,u,m,g;let l=a==null?void 0:a.导入文件,n=a==null?void 0:a.函数参数,r=(t=l==null?void 0:l[0])==null?void 0:t.url,i="";if(!(r!=null&&r.includes("http"))||!(r!=null&&r.includes("https"))){xs.setContentLoading(!0);const _=await z.platformDownloadFile({url:r});let p=_==null?void 0:_.data;const M=new FormData;M.append("file",p,((f=l==null?void 0:l[0])==null?void 0:f.name)+"."+((c=r==null?void 0:r.split("."))==null?void 0:c[1])),M.append("query",n);let w=await tc(M);w=(g=(m=(u=w==null?void 0:w.data)==null?void 0:u.data)==null?void 0:m.response)==null?void 0:g.replace("generateResult",a==null?void 0:a.函数名称),i=w,xs.setContentLoading(!1)}return i},p0=a=>{var n,r;if(a==="")return;let l=a;return l=(r=(n=l==null?void 0:l.replace("(",Di))==null?void 0:n.split(Di))==null?void 0:r[1],l=l==null?void 0:l.slice(0,(l==null?void 0:l.length)-1),l=ie.analyzeSplitToContent(l,","),l=l==null?void 0:l.map(i=>((i==null?void 0:i[(i==null?void 0:i.length)-1])===","&&(i=i==null?void 0:i.slice(0,(i==null?void 0:i.length)-1)),i)),l=l==null?void 0:l.filter(i=>(i==null?void 0:i.includes("If"))&&!(i!=null&&i.includes("@If"))),l=l==null?void 0:l.map(i=>{var c,u,m,g,_;let t=i;t=(u=(c=t==null?void 0:t.replace("=",Di))==null?void 0:c.split(Di))==null?void 0:u[1],t=(m=ie.analyzeSplitToContent(t,")"))==null?void 0:m[0];let f=i==null?void 0:i.replaceAll(t,"");return(t==null?void 0:t[0])==="("&&(t=t==null?void 0:t.slice(1,(t==null?void 0:t.length)-1)),t=(_=(g=t==null?void 0:t.replace("(",Di))==null?void 0:g.split(Di))==null?void 0:_[1],t="("+t,t=ie.calculatorAndToOr(t),{key:f,content:t}}),l},ws=(a,l)=>{let n=[l];return a==null||a.forEach(r=>{for(let i in r)r[i]!=="!"?n=n==null?void 0:n.filter(t=>{var f;return(t==null?void 0:t[i])===(r==null?void 0:r[i])||(t==null?void 0:t[(f=Object.keys(t))==null?void 0:f.find(c=>c==null?void 0:c.includes("."+i))])===(r==null?void 0:r[i])}):n=n==null?void 0:n.filter(t=>{var f;return(t==null?void 0:t[i])!==(r==null?void 0:r[i])&&(t==null?void 0:t[(f=Object.keys(t))==null?void 0:f.find(c=>c==null?void 0:c.includes("."+i))])!==(r==null?void 0:r[i])})}),n},It=z.defineStore("formComp",{state:()=>({objUrl:[],blobUrls:[]}),actions:{setObjUrl(a){this.objUrl=a},setBlobUrls(a){this.blobUrls=a}}}),f0=z.useModelComp(z.pinia),{extraContents:Cv}=z.storeToRefs(f0),h0=z.useLoginState(z.pinia),{extraUrl:di}=z.storeToRefs(h0);let _c=di.value===""||!di.value?"http://139.196.154.85:20015":di.value;e.watch(()=>di.value,()=>{_c=di.value===""||!di.value?"http://139.196.154.85:20015":di.value},{deep:!0,immediate:!0});const Mo={检校类型:["检校类型","证书类别"],证书编号:["证书编号"],设备名称:["设备名称","器具名称","样品名称","仪器名称","被校设备"],型号规格:["型号规格","型号/规格","型号"],出厂编号:["出厂编号","器具/管理编号","器具编号","管理编号","仪器编号"],制造厂:["制造厂","制造单位","制造厂商","制造商"],检校结果:["检校结果","检定结论","校准结果","校准/检定结果","检定结果"],依据文件:["依据文件","检定依据","检定所依据的技术文件","所依据/参照技术文件(代号/名称)","检定所依据的技术文件(编号/名称)","检定方法说明"],检校日期:["检校日期","校准日期","校验日期","检定日期","发证日期","发布日期","接收日期","签证日期"],有效日期:["有效日期","有效期","有效期至"]},_s={columnName:"OCR图片",acceptTypes:"image/*",maxSize:10,maxFiles:20,apiUrl:_c+"/api/public/paddleOCR"};class v0{constructor(l){un(this,"config");this.config={..._s,...l}}updateConfig(l){this.config={...this.config,...l}}getConfig(){return{...this.config}}validateFileSize(l){const n=this.config.maxSize*1024*1024;return l.size<=n}validateFileType(l){return l.type.startsWith("image/")||l.type==="application/pdf"}getAuthorizationToken(){const l=Xa.Local.get(Xa.accessTokenKey);return l?`Bearer ${l}`:""}buildOCRRequest(l,n){return{title:n,form:{OCR图片文件:l}}}async recognize(l,n){const r=this.getAuthorizationToken(),i=this.buildOCRRequest(l,n),t=this.config.apiUrl||_s.apiUrl||"";return(await Xa.axios.post(t,i,{headers:{"Content-Type":"application/json",Authorization:r}})).data}getFieldAliases(l){return Mo[l]?Mo[l]:[l]}extractTableHeaders(l){const n=[],r=new Set,i=f=>{const c=f==null?void 0:f.label;return!(!c||c==="操作"||c===this.config.columnName||(f==null?void 0:f.type)==="operate"||(f==null?void 0:f.prop)==="operate")},t=f=>{(f||[]).forEach(c=>{if(!c)return;const u=(c==null?void 0:c.children)||(c==null?void 0:c.child)||(c==null?void 0:c.columns);if(Array.isArray(u)&&u.length>0){t(u);return}if(i(c)){const m=c.label;if(!r.has(m)){r.add(m);const g=this.getFieldAliases(m);n.push(g)}}})};return t(l||[]),n}}function Sc(a){return new v0(a)}Sc();const Ct=async(a,l)=>{var f,c,u,m,g,_,p,M,w,G,A,P,O,E,x,S,b;let n=(c=(f=z.cloneDeep(a))==null?void 0:f.optionUrl)==null?void 0:c.menuSelect,r=[];n==null||n.forEach(C=>{});let i="",t=await ie.menuToParent(n);if(t==null||t.forEach(C=>{var R,$,le,ee;(C==null?void 0:C.name)===(((ee=(le=($=(R=z.cloneDeep(a))==null?void 0:R.optionUrl)==null?void 0:$.groupSelect)==null?void 0:le[0])==null?void 0:ee.replaceAll("'",""))??"")&&(i=C==null?void 0:C.id)}),l){i=l;const C=await qr.getInsofDataApi({id:i}),R=(_=(g=(m=(u=C==null?void 0:C.data)==null?void 0:u.result)==null?void 0:m[0])==null?void 0:g.key)==null?void 0:_.pageKey;t=await ie.getItemData(R,sessionStorage.getItem("systemKey"),"")}if(i!==""){let C;l?C=(p=t==null?void 0:t.find(le=>(le==null?void 0:le.id)===l))==null?void 0:p.compData:C=(M=t==null?void 0:t.find(le=>{var ee,_e,pe,H;return(le==null?void 0:le.name)===(((_e=(ee=a==null?void 0:a.groupSelect)==null?void 0:ee.split(":"))==null?void 0:_e[0])||((H=(pe=a==null?void 0:a.optionUrl)==null?void 0:pe.groupSelect)==null?void 0:H[0]))}))==null?void 0:M.compData;let R=(G=(w=C==null?void 0:C.find(le=>(le==null?void 0:le.key)==="header"))==null?void 0:w.contents)==null?void 0:G.map(le=>le==null?void 0:le.label);(P=(A=C==null?void 0:C.find(le=>(le==null?void 0:le.key)==="header"))==null?void 0:A.contents)!=null&&P.every(le=>Array.isArray(le))&&(R=(x=ie.getColumnChild((E=(O=C==null?void 0:C.find(le=>(le==null?void 0:le.key)==="header"))==null?void 0:O.contents)==null?void 0:E[0]))==null?void 0:x.map(le=>le==null?void 0:le.prop));let $=(b=(S=C==null?void 0:C.find(le=>(le==null?void 0:le.key)==="tableContents"))==null?void 0:S.contents)==null?void 0:b.map(le=>{if(Array.isArray(le))le=le==null?void 0:le.filter(ee=>!(ee!=null&&ee.id));else{let ee={};for(let _e in le)_e!=="id"&&(ee[_e]=le==null?void 0:le[_e]);le=ee}return le});$==null||$.forEach(le=>{Array.isArray(le)?r.push(ie.getValueToObjectValue(le,R)):r.push(le)})}return r},m0=z.useMenuState(z.pinia),{activeMenuPath:Dv}=z.storeToRefs(m0),y0=z.useUnit(z.pinia),{chooseTitle:Tv}=z.storeToRefs(y0),g0="col-operate",Ec=a=>`${g0}-${a}`,b0=(a,l)=>{const n=new Map;a.forEach(i=>{const{prop:t}=i;n.set(t,i)});const r=i=>{Array.isArray(i)&&i.forEach(t=>{const{prop:f}=t||{},c=n.get(f);k0(c,t),Array.isArray(t==null?void 0:t.children)&&t.children.length>0&&r(t.children)})};return r(l),l},k0=(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),x0=(a,l)=>{const{sortable:n=!1,filterable:r=!1,showSummary:i=!1,operable:t=!1,fixed:f=!1}=l||{};return{prop:a,sortable:n,filterable:r,showSummary:i,operable:t,fixed:f}},w0=async a=>{var t,f;if(!a)return;const l=Ec(a),n=await qr.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:l}}),r=(t=n==null?void 0:n.data)==null?void 0:t.code,i=(f=n==null?void 0:n.data)==null?void 0:f.result;if(r==200)return i==null?void 0:i[0]},_0=async a=>{if(a)return[]},S0=async(a,l)=>{if(!a||!l)return;const n=Ec(a);return await qr.createInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:n},value:{columns:l}})},E0=async(a,l)=>!a||!l?void 0:await qr.updateInsofDataApi({id:a,value:{columns:l}}),Ss=async(a,l)=>{const n=sessionStorage.getItem("systemKey");if(!a||!l||!n)return;const r=await w0(a);return r?await E0(r==null?void 0:r.id,l):await S0(a,l)};var Do={exports:{}},C0=Do.exports,Es;function D0(){return Es||(Es=1,function(a,l){(function(n,r){r()})(C0,function(){function n(m,g){return typeof g>"u"?g={autoBom:!1}:typeof g!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),g={autoBom:!g}),g.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(m.type)?new Blob(["\uFEFF",m],{type:m.type}):m}function r(m,g,_){var p=new XMLHttpRequest;p.open("GET",m),p.responseType="blob",p.onload=function(){u(p.response,g,_)},p.onerror=function(){console.error("could not download file")},p.send()}function i(m){var g=new XMLHttpRequest;g.open("HEAD",m,!1);try{g.send()}catch{}return 200<=g.status&&299>=g.status}function t(m){try{m.dispatchEvent(new MouseEvent("click"))}catch{var g=document.createEvent("MouseEvents");g.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),m.dispatchEvent(g)}}var f=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof z.commonjsGlobal=="object"&&z.commonjsGlobal.global===z.commonjsGlobal?z.commonjsGlobal:void 0,c=f.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=f.saveAs||(typeof window!="object"||window!==f?function(){}:"download"in HTMLAnchorElement.prototype&&!c?function(m,g,_){var p=f.URL||f.webkitURL,M=document.createElement("a");g=g||m.name||"download",M.download=g,M.rel="noopener",typeof m=="string"?(M.href=m,M.origin===location.origin?t(M):i(M.href)?r(m,g,_):t(M,M.target="_blank")):(M.href=p.createObjectURL(m),setTimeout(function(){p.revokeObjectURL(M.href)},4e4),setTimeout(function(){t(M)},0))}:"msSaveOrOpenBlob"in navigator?function(m,g,_){if(g=g||m.name||"download",typeof m!="string")navigator.msSaveOrOpenBlob(n(m,_),g);else if(i(m))r(m,g,_);else{var p=document.createElement("a");p.href=m,p.target="_blank",setTimeout(function(){t(p)})}}:function(m,g,_,p){if(p=p||open("","_blank"),p&&(p.document.title=p.document.body.innerText="downloading..."),typeof m=="string")return r(m,g,_);var M=m.type==="application/octet-stream",w=/constructor/i.test(f.HTMLElement)||f.safari,G=/CriOS\/[\d]+/.test(navigator.userAgent);if((G||M&&w||c)&&typeof FileReader<"u"){var A=new FileReader;A.onloadend=function(){var E=A.result;E=G?E:E.replace(/^data:[^;]*;/,"data:attachment/file;"),p?p.location.href=E:location=E,p=null},A.readAsDataURL(m)}else{var P=f.URL||f.webkitURL,O=P.createObjectURL(m);p?p.location=O:location.href=O,p=null,setTimeout(function(){P.revokeObjectURL(O)},4e4)}});f.saveAs=u.saveAs=u,a.exports=u})}(Do)),Do.exports}D0();const ai=z.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}}}),T0=z.useLoginState(z.pinia),{loginUserInfo:yt}=z.storeToRefs(T0),B0=async a=>{var r,i,t;let l=await z.getAllTables({platId:parseInt((r=yt==null?void 0:yt.value)==null?void 0:r.plat_id),tableNames:[a]});return l=(t=(i=l==null?void 0:l.data)==null?void 0:i.result)==null?void 0:t[0],await gc(l,!1),[{comp:"Table",isShow:!0,name:"日志管理",compData:[{key:"extraButton",contents:[]},{key:"rowButton",contents:[]},{key:"header",contents:[{label:"请求类型",prop:"request_method",formType:"Input",align:"center"},{label:"请求路径",prop:"request_url",formType:"Input",align:"center"},{label:"请求参数",prop:"request_param",formType:"Upload",align:"center"},{label:"返回结果",prop:"request_result",formType:"Upload",align:"center"},{label:"返回信息",prop:"request_message",formType:"Input",align:"center"},{label:"请求表格",prop:"request_table",formType:"Input",align:"center"},{label:"请求种类",prop:"request_type",formType:"Input",align:"center"},{label:"请求创建时间",prop:"create_time",formType:"Date",align:"center"},{label:"请求创建人",prop:"create_user_id",formType:"Input",align:"center"}]},{key:"tableContents",contents:l}]}]},N0=z.useLoginState(),{loginUserInfo:vl}=z.storeToRefs(N0);let wo="$R";const Pr=z.useModelComp(z.pinia),Cc=e.ref(!1),{itemData:A0,itemGridData:ci,curStructureCompIds:Cs,isSubmitCurStructure:z0,routeToChildPath:M0,pageMapState:Dt,itemExtendData:_o,refreshTable:Ds,refreshCurrentPageInform:I0}=z.storeToRefs(Pr),jo=ai(z.pinia),Yr=z.useMenuState(z.pinia),hr=e.shallowRef([]),{asideMenus:O0,activeTopMenuPath:L0,activeMenuPath:_l,platform:Bv,buttonTriggerType:R0,currentMenuPath:mn}=z.storeToRefs(Yr),wn=z.useUnit(z.pinia),{selectTitle:Zn,chooseTitle:Io}=z.storeToRefs(wn);e.ref();const Mi=e.ref(!0),ei=e.ref(0),Tt=e.ref([]);e.ref(!1);const Ot=e.ref(!1),Ji=e.ref(),Dc=e.ref(),Tc=e.ref(),$0=()=>{Pr.setItemGridData([]),Pr.setIsEdit("edit"),Pr.setSubmitCurStructure(_l.value!=="/平台管理/菜单管理")},V0=()=>{Pr.setIsEdit("view"),Pr.setRefreshCurStructure(!0)},F0=async a=>{var i;let l=Zn.value,n=l==null?void 0:l.findIndex(t=>(t==null?void 0:t.value)===(a==null?void 0:a.value)),r=l==null?void 0:l.filter((t,f)=>f<=n);wn.setSelectTitle(fl.safeClone(r)),r=(i=r==null?void 0:r.map(t=>t==null?void 0:t.value))==null?void 0:i.join("/"),Yr.setActiveMenuPath(null),Yr.setActiveMenuPath(r)},gt=async(a,l,n,r="contentConfig")=>{var i;try{if(!Array.isArray(a))return;let t,f;l==="create"?(t={dataList:a==null?void 0:a.map(u=>{var m;return{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:n!=null&&n.startsWith("/")?n==null?void 0:n.substring(1):n,type:"structure",structureBelong:r,parentTable:"",version:1},value:{pageData:{...u,compData:(m=u==null?void 0:u.compData)==null?void 0:m.filter(g=>(g==null?void 0:g.key)!=="tableContents")}}}})},f=qr.batchAddInsofDataApi):l==="update"?(t={dataList:a==null?void 0:a.map(u=>{var m;return{id:u==null?void 0:u.id,value:{pageData:{...u,compData:(m=u==null?void 0:u.compData)==null?void 0:m.filter(g=>(g==null?void 0:g.key)!=="tableContents")}}}})},f=qr.batchUpdateInsofDataApi):l==="delete"&&(t={ids:a},f=qr.batchDeleteInsofDataApi);const c=await f(t);if(((i=c==null?void 0:c.data)==null?void 0:i.code)===200)return c.data.result;throw Xa.ElMessage.error("保存响应失败"),new Error("保存响应失败")}catch{Xa.ElMessage.error("保存响应失败")}},Ts=async(a,l,n,r)=>{var i,t,f,c,u,m,g,_,p,M,w;try{const G=(t=(i=a==null?void 0:a.results)==null?void 0:i.filter(S=>!(S!=null&&S.id)||typeof(S==null?void 0:S.id)=="string"))==null?void 0:t.map(S=>({key:{pageKey:a==null?void 0:a.pageKey,systemKey:sessionStorage.getItem("systemKey"),type:l,relatedInfo:n},value:{tableData:S}})),A=(c=(f=a==null?void 0:a.results)==null?void 0:f.filter(S=>(S==null?void 0:S.id)&&typeof(S==null?void 0:S.id)=="number"))==null?void 0:c.map(S=>({id:S==null?void 0:S.id,value:{tableData:S}})),P=JSON.parse(JSON.stringify(a)),O=(u=P==null?void 0:P.results)==null?void 0:u.map(S=>S.id);let E;n?E=(_=(g=(m=Dt.value)==null?void 0:m[_l.value])==null?void 0:g.filter(S=>{var b,C,R;return((b=S==null?void 0:S.key)==null?void 0:b.type)===l&&((R=(C=S==null?void 0:S.key)==null?void 0:C.relatedInfo)==null?void 0:R.target)===r}))==null?void 0:_.map(S=>S==null?void 0:S.id):E=(w=(M=(p=Dt.value)==null?void 0:p[_l.value])==null?void 0:M.filter(S=>{var b;return((b=S==null?void 0:S.key)==null?void 0:b.type)===l}))==null?void 0:w.map(S=>S==null?void 0:S.id);const x=E==null?void 0:E.filter(S=>!(O!=null&&O.includes(S))&&typeof S=="number");(G==null?void 0:G.length)>0&&await qr.batchAddInsofDataApi({dataList:G}),(A==null?void 0:A.length)>0&&await qr.batchUpdateInsofDataApi({dataList:A}),(x==null?void 0:x.length)>0&&await qr.batchDeleteInsofDataApi({ids:x})}catch(G){throw new Error(G)}},P0=async a=>{var m,g,_,p,M,w,G,A,P,O;Yr.setContentLoading(!0);const l=JSON.parse(JSON.stringify(A0.value));if(!z0.value)return Yr.setCacheStructures({key:R0.value,data:l}),Xa.ElMessage.success("已暂存");const n=l==null?void 0:l.map(E=>E.id),r=n.filter(E=>{var x;return!((x=Cs.value)!=null&&x.includes(E))}),i=(m=Cs.value)==null?void 0:m.filter(E=>!n.includes(E)),t=[...r,...i].filter(E=>typeof E!==null&&typeof E<"u"),f=l==null?void 0:l.filter(E=>!E.id),c=l==null?void 0:l.filter(E=>E.id);let u=[];if(t&&(t==null?void 0:t.length)>0&&u.push(gt(t,"delete",a)),f&&(f==null?void 0:f.length)>0&&u.push(gt(f,"create",a)),c&&(c==null?void 0:c.length)>0&&u.push(gt(c,"update",a)),ci.value&&((g=ci.value)!=null&&g.isDelete&&((p=(_=ci.value)==null?void 0:_.results)==null?void 0:p.length)>0&&((w=(M=ci.value)==null?void 0:M.results)!=null&&w.every(E=>typeof E=="number"))?await qr.batchDeleteInsofDataApi({ids:(G=ci.value)==null?void 0:G.results}):(console.log("itemGridData.value",ci.value),u.push(await Ts(ci.value,"gridLayout")))),_o.value)for(const E in _o.value)u.push(await Ts((A=_o.value)==null?void 0:A[E],"extend",{target:E,compId:(O=(P=_o.value)==null?void 0:P[E])==null?void 0:O.compId},E));await Promise.all(u).then(()=>{Xa.ElMessage.success("保存成功"),Pr.setRefreshCurStructure(!0)}).catch(E=>{Xa.ElMessage.success(E)}),Yr.setContentLoading(!1)},Xi=a=>Ii(a),j0=e.computed(()=>{var a;return(a=hr.value)==null?void 0:a.filter(l=>(l==null?void 0:l.affix)&&(l==null?void 0:l.affix)!=="default")}),Bc=e.computed(()=>{var a;return(a=hr.value)==null?void 0:a.filter(l=>!(l!=null&&l.affix&&(l==null?void 0:l.affix)!=="default"))}),Nc=e.ref(0),Ac=e.ref(null),H0="ocr_committed_temp_ids_v1",U0=(a,l)=>`${H0}:${String(a??"")}:${String(l??"")}`,q0=(a,l,n)=>{try{const r=U0(a,l),i=sessionStorage.getItem(r),t=i?JSON.parse(i):[],f=Array.isArray(t)?t:[],c=Array.from(new Set([...f,...n||[]].map(u=>String(u)))).slice(-200);sessionStorage.setItem(r,JSON.stringify(c))}catch{}},Oo=async(a,l="data",n)=>{var i,t,f,c,u,m,g,_,p,M,w,G,A,P,O,E,x,S,b,C,R,$,le,ee,_e,pe,H,F,X,re,ve,Re,ce,B,te,q,xe,Me,$e,Qe,_a,oe,sa,de,ea,Ae,ue,he,Ge,wa,Ia,U,V,Q,fe,me,ua,ta,je,ba,Ta,Ee,Pa,Ea,ia,Ba,Ce,ka,Je,K,J,Fe,We,Na,da,Aa,Oe,He,Ie,Ve,we,ol,Sl,Ll,Vl,zl,Jl,rl,Fl,Wa,Kl,Wl,Nl,Tl,zr;let r=((f=(t=(i=Zn.value)==null?void 0:i.filter($a=>($a==null?void 0:$a.condition)==="child"))==null?void 0:t[0])==null?void 0:f.value)??"";if((a==null?void 0:a.buttonName)==="新增"){let $a=(c=a==null?void 0:a.fixContent)==null?void 0:c.map(Ka=>{let pa={};for(let ja in Ka)Array.isArray(Ka==null?void 0:Ka[ja])?pa[ja]=JSON.stringify(Ka==null?void 0:Ka[ja]):pa[ja]=Ka==null?void 0:Ka[ja];return pa});if($a!=null&&$a.every(Ka=>Ka==null?void 0:Ka.menuPathContent)){let Ka=(u=$a==null?void 0:$a[0])==null?void 0:u.menuPathContent;$a=$a==null?void 0:$a.map(ra=>(ra.id="0",ra==null||delete ra.menuPathContent,ra)),(Ka==null?void 0:Ka[0])==="$"&&(Ka=Ka==null?void 0:Ka.slice(1,Ka==null?void 0:Ka.length));let pa=(m=ie.analyzeSplitToContent(Ka,"*"))==null?void 0:m[0],ja=(g=ie.analyzeSplitToContent(Ka,"*"))==null?void 0:g[1];pa=pa==null?void 0:pa.slice(0,(pa==null?void 0:pa.length)-1),pa=(_=ie.analyzeSplitToContent(pa,":"))==null?void 0:_.map(ra=>{var Ua,De,Ra,el,ml;if((ra==null?void 0:ra[(ra==null?void 0:ra.length)-1])===":"&&(ra=ra==null?void 0:ra.slice(0,(ra==null?void 0:ra.length)-1)),(ra==null?void 0:ra[0])==="{"){ra=ra==null?void 0:ra.slice(1,(ra==null?void 0:ra.length)-1),(ra==null?void 0:ra[0])==="*"&&(ra=ra==null?void 0:ra.slice(1,ra==null?void 0:ra.length));let El=ra==null?void 0:ra.split(":"),ze=El==null?void 0:El[0],ha=El==null?void 0:El[1];ha=ha==null?void 0:ha.slice(1,(ha==null?void 0:ha.length)-1);let ca=(Ua=hr.value)==null?void 0:Ua.filter(ga=>(ga==null?void 0:ga.name)===ze);ca=ca==null?void 0:ca[0],ca=(ml=(el=(Ra=(De=ca==null?void 0:ca.compData)==null?void 0:De.find(ga=>(ga==null?void 0:ga.key)==="tableContents"))==null?void 0:Ra.contents)==null?void 0:el[0])==null?void 0:ml[ha],ra=ca}return ra}),pa=pa==null?void 0:pa.join("/");let na=await z.getPageDataApi({platId:parseInt((p=vl==null?void 0:vl.value)==null?void 0:p.plat_id),pageName:"menu"});na=(M=na==null?void 0:na.data)==null?void 0:M.result,na=na==null?void 0:na.find(ra=>(ra==null?void 0:ra.object_name)===pa&&(ra==null?void 0:ra.property_name)===ja);let Ya=(na==null?void 0:na.object_id)??"";if(Ya===""){Xa.ElMessage.warning("添加页面数据不存在");return}let xl=[{tableName:"content_"+Ya,tableContents:$a}];await z.pageBatchAddApi({platId:parseInt((w=vl==null?void 0:vl.value)==null?void 0:w.plat_id),changeContents:xl});let Te=[];xl==null||xl.forEach(ra=>{var Ua;(Ua=ra==null?void 0:ra.tableContents)==null||Ua.forEach(De=>{Te.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(De),request_result:"{}",is_delete:!1,request_table:ra==null?void 0:ra.tableName,request_type:"add"})})}),await z.pageBatchAddApi({platId:parseInt((G=vl==null?void 0:vl.value)==null?void 0:G.plat_id),changeContents:[{tableName:"log",tableContents:Te}]})}else{let Ka=await z.quoteApi({platId:parseInt((A=vl==null?void 0:vl.value)==null?void 0:A.plat_id),type:"fatherSyncs",related:[{menus:r!==""?_l.value+"/"+r:_l.value,groups:a==null?void 0:a.name}]});Ka=(P=Ka==null?void 0:Ka.data)==null?void 0:P.result,Ka=Ka==null?void 0:Ka.filter(Te=>{var ra,Ua;return!((Te==null?void 0:Te.fatherPath)!==""&&((Ua=(ra=Te==null?void 0:Te.quote)==null?void 0:ra[0])==null?void 0:Ua.menus)===(_l==null?void 0:_l.value))});let pa=Ka==null?void 0:Ka.map(Te=>{var Ra,el;let ra={},Ua=$a==null?void 0:$a[0],De;return Array.isArray((Ra=Te==null?void 0:Te.struct)==null?void 0:Ra[0])?De=ie.getColumnChild((el=Te==null?void 0:Te.struct)==null?void 0:el[0]):De=Te==null?void 0:Te.struct,De=De==null?void 0:De.filter(ml=>(ml==null?void 0:ml.prop)!=="relatedId"),De==null||De.forEach(ml=>{var El,ze;ra[ml.prop]=((El=ml==null?void 0:ml.words)!=null&&El[0]?(Ua==null?void 0:Ua[(ze=ml==null?void 0:ml.words)==null?void 0:ze[0]])??(Ua==null?void 0:Ua[ml==null?void 0:ml.prop]):Ua==null?void 0:Ua[ml==null?void 0:ml.prop])??""}),ra.id="1",ra.relatedId=`[${ra.id}]`,delete ra.sort,{tableName:"content_"+(Te==null?void 0:Te.id),tableContents:[ra]}}),ja=[{tableName:(O=a==null?void 0:a.relatedContents)==null?void 0:O.find(Te=>Te==null?void 0:Te.includes("content")),tableContents:$a}];ja=[...ja,...pa];let na=await z.quoteApi({platId:parseInt((E=vl==null?void 0:vl.value)==null?void 0:E.plat_id),type:"sonSyncs",related:[{menus:r!==""?_l.value+"/"+r:_l.value,groups:a==null?void 0:a.name}]});na=(S=(x=na==null?void 0:na.data)==null?void 0:x.result)==null?void 0:S.filter(Te=>!(ja!=null&&ja.find(ra=>(ra==null?void 0:ra.tableName)==="content_"+(Te==null?void 0:Te.id)))),na=na==null?void 0:na.filter(Te=>{var ra,Ua;return!((Te==null?void 0:Te.fatherPath)!==""&&((Ua=(ra=Te==null?void 0:Te.quote)==null?void 0:ra[0])==null?void 0:Ua.menus)===(_l==null?void 0:_l.value))});let Ya=na==null?void 0:na.map(Te=>{var Ra,el,ml,El,ze,ha,ca;let ra={},Ua=$a==null?void 0:$a[0],De;return Array.isArray((Ra=Te==null?void 0:Te.struct)==null?void 0:Ra[0])?De=ie.getColumnChild((el=Te==null?void 0:Te.struct)==null?void 0:el[0]):De=Te==null?void 0:Te.struct,De=De==null?void 0:De.filter(ga=>(ga==null?void 0:ga.prop)!=="relatedId"),((El=(ml=De==null?void 0:De[0])==null?void 0:ml.words)!=null&&El[0]?Ua!=null&&Ua[(ha=(ze=De==null?void 0:De[0])==null?void 0:ze.words)==null?void 0:ha[0]]:Ua!=null&&Ua[(ca=De==null?void 0:De[0])==null?void 0:ca.prop])?(De==null||De.forEach(ga=>{var ma,cl;ra[ga.prop]=((ma=ga==null?void 0:ga.words)!=null&&ma[0]?(Ua==null?void 0:Ua[(cl=ga==null?void 0:ga.words)==null?void 0:cl[0]])??(Ua==null?void 0:Ua[ga==null?void 0:ga.prop]):Ua==null?void 0:Ua[ga==null?void 0:ga.prop])??""}),ra.id="1",ra.relatedId=`[${ra.id}]`,delete ra.sort):ra=void 0,{tableName:"content_"+(Te==null?void 0:Te.id),tableContents:[ra]}});Ya=Ya==null?void 0:Ya.filter(Te=>{var ra;return!((ra=Te==null?void 0:Te.tableContents)!=null&&ra.every(Ua=>Ua===void 0))}),ja=[...ja,...Ya],await z.pageBatchAddApi({platId:parseInt((b=vl==null?void 0:vl.value)==null?void 0:b.plat_id),changeContents:ja});let xl=[];ja==null||ja.forEach(Te=>{var ra;(ra=Te==null?void 0:Te.tableContents)==null||ra.forEach(Ua=>{xl.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(Ua),request_result:"{}",is_delete:!1,request_table:Te==null?void 0:Te.tableName,request_type:"add"})})}),await z.pageBatchAddApi({platId:parseInt((C=vl==null?void 0:vl.value)==null?void 0:C.plat_id),changeContents:[{tableName:"log",tableContents:xl}]})}}if((a==null?void 0:a.buttonName)==="OCR批量新增"){const $a=((a==null?void 0:a.ocrRows)||[]).map(na=>na==null?void 0:na.id).filter(na=>na!=null),Ka=((a==null?void 0:a.ocrRows)||[]).map(na=>{const Ya={...na};return delete Ya._isOCRRow,delete Ya._ocrTableId,Object.keys(Ya).forEach(xl=>{/(^|\.)证书附件$/.test(xl)&&Array.isArray(Ya[xl])&&(Ya[xl]=JSON.stringify(Ya[xl].map(Te=>({url:(Te==null?void 0:Te.url)||"",name:(Te==null?void 0:Te.name)||(Te==null?void 0:Te.fileName)||"",fileName:(Te==null?void 0:Te.fileName)||(Te==null?void 0:Te.name)||""})).filter(Te=>Te.url||Te.name)))}),Ya});let pa=[{tableName:(R=a==null?void 0:a.relatedContents)==null?void 0:R.find(na=>na==null?void 0:na.includes("content")),tableContents:Ka}];await z.pageBatchAddApi({platId:parseInt(($=vl==null?void 0:vl.value)==null?void 0:$.plat_id),changeContents:pa});let ja=[];pa==null||pa.forEach(na=>{var Ya;(Ya=na==null?void 0:na.tableContents)==null||Ya.forEach(xl=>{ja.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(xl),request_result:"{}",is_delete:!1,request_table:na==null?void 0:na.tableName,request_type:"ocrBatchAdd"})})}),await z.pageBatchAddApi({platId:parseInt((le=vl==null?void 0:vl.value)==null?void 0:le.plat_id),changeContents:[{tableName:"log",tableContents:ja}]}),q0(a==null?void 0:a.parentTableId,a==null?void 0:a.index,$a)}if((a==null?void 0:a.buttonName)==="编辑"){const Ka=((a==null?void 0:a.fixContent)||(a==null?void 0:a.singleContent)||[]||[]).map(De=>{const Ra={...De};return delete Ra._isOCRRow,delete Ra._ocrTableId,delete Ra._isTemp,delete Ra.tableEditType,delete Ra.index,Ra});let pa=Ka==null?void 0:Ka.map(De=>{let Ra={};for(let el in De)Array.isArray(De==null?void 0:De[el])?Ra[el]=JSON.stringify(De==null?void 0:De[el]):Ra[el]=De==null?void 0:De[el];return Ra}),ja=await z.quoteApi({platId:parseInt((ee=vl==null?void 0:vl.value)==null?void 0:ee.plat_id),type:"fatherSyncs",related:[{menus:r!==""?_l.value+"/"+r:_l.value,groups:a==null?void 0:a.name}]});ja=(_e=ja==null?void 0:ja.data)==null?void 0:_e.result,ja=ja==null?void 0:ja.filter(De=>{var Ra,el;return!((De==null?void 0:De.fatherPath)!==""&&((el=(Ra=De==null?void 0:De.quote)==null?void 0:Ra[0])==null?void 0:el.menus)===(_l==null?void 0:_l.value))});let na=(pe=pa==null?void 0:pa[0])==null?void 0:pe.id,Ya=[{tableName:(H=a==null?void 0:a.relatedContents)==null?void 0:H.find(De=>De==null?void 0:De.includes("content")),tableContents:pa}],xl=(F=ja==null?void 0:ja.map(De=>{var el,ml,El,ze,ha;let Ra=(el=De==null?void 0:De.contents)==null?void 0:el.filter(ca=>{var ga,ma;return JSON.stringify(ca==null?void 0:ca.relatedId)!=="{}"&&(ca==null?void 0:ca.relatedId)!==""&&(ca!=null&&ca.relatedId)?(ga=ca==null?void 0:ca.relatedId)==null?void 0:ga.includes(parseInt(na)):(ca==null?void 0:ca.sort)===((ma=pa==null?void 0:pa[0])==null?void 0:ma.sort)});if((Ra==null?void 0:Ra.length)>0){let ca=pa==null?void 0:pa[0];ca={...ca,id:(ml=Ra==null?void 0:Ra[0])==null?void 0:ml.id};let ga={},ma=ca,cl;return Array.isArray((El=De==null?void 0:De.struct)==null?void 0:El[0])?cl=ie.getColumnChild((ze=De==null?void 0:De.struct)==null?void 0:ze[0]):cl=De==null?void 0:De.struct,cl=cl==null?void 0:cl.filter(Le=>(Le==null?void 0:Le.prop)!=="relatedId"),cl==null||cl.forEach(Le=>{var yl,Be;ga[Le.prop]=((yl=Le==null?void 0:Le.words)!=null&&yl[0]?(ma==null?void 0:ma[(Be=Le==null?void 0:Le.words)==null?void 0:Be[0]])??(ma==null?void 0:ma[Le==null?void 0:Le.prop]):ma==null?void 0:ma[Le==null?void 0:Le.prop])??""}),ga.id=(ha=Ra==null?void 0:Ra[0])==null?void 0:ha.id,delete ga.sort,delete ga.relatedId,{tableName:"content_"+(De==null?void 0:De.id),tableContents:[ga]}}else return}))==null?void 0:F.filter(De=>De);Ya=[...Ya,...xl];let Te=await z.quoteApi({platId:parseInt((X=vl==null?void 0:vl.value)==null?void 0:X.plat_id),type:"sonSyncs",related:[{menus:r!==""?_l.value+"/"+r:_l.value,groups:a==null?void 0:a.name}]});Te=(ve=(re=Te==null?void 0:Te.data)==null?void 0:re.result)==null?void 0:ve.filter(De=>!(Ya!=null&&Ya.find(Ra=>(Ra==null?void 0:Ra.tableName)==="content_"+(De==null?void 0:De.id)))),Te=Te==null?void 0:Te.filter(De=>{var Ra,el;return!((De==null?void 0:De.fatherPath)!==""&&((el=(Ra=De==null?void 0:De.quote)==null?void 0:Ra[0])==null?void 0:el.menus)===(_l==null?void 0:_l.value))});let ra=(Re=Te==null?void 0:Te.map(De=>{var el,ml,El,ze,ha;let Ra=(el=De==null?void 0:De.contents)==null?void 0:el.filter(ca=>{var ga,ma,cl;return JSON.stringify(ca==null?void 0:ca.relatedId)!=="{}"&&(ca==null?void 0:ca.relatedId)!==""&&(ca!=null&&ca.relatedId)?(ga=ca==null?void 0:ca.relatedId)==null?void 0:ga.includes(parseInt(na)):(ca==null?void 0:ca.sort)===((ma=pa==null?void 0:pa[0])==null?void 0:ma.sort)||(ca==null?void 0:ca.sort)===(parseInt(((cl=pa==null?void 0:pa[0])==null?void 0:cl.sort)??"0")+1).toString()});if((Ra==null?void 0:Ra.length)>0){let ca=pa==null?void 0:pa[0];ca={...ca,id:(ml=Ra==null?void 0:Ra[0])==null?void 0:ml.id};let ga={},ma=ca,cl;return Array.isArray((El=De==null?void 0:De.struct)==null?void 0:El[0])?cl=ie.getColumnChild((ze=De==null?void 0:De.struct)==null?void 0:ze[0]):cl=De==null?void 0:De.struct,cl=cl==null?void 0:cl.filter(Le=>(Le==null?void 0:Le.prop)!=="relatedId"),cl==null||cl.forEach(Le=>{var yl,Be,Ul,Sa;((yl=Le==null?void 0:Le.words)!=null&&yl[0]?(ma==null?void 0:ma[(Be=Le==null?void 0:Le.words)==null?void 0:Be[0]])??(ma==null?void 0:ma[Le==null?void 0:Le.prop]):ma!=null&&ma[Le==null?void 0:Le.prop])&&(ga[Le.prop]=((Ul=Le==null?void 0:Le.words)!=null&&Ul[0]?(ma==null?void 0:ma[(Sa=Le==null?void 0:Le.words)==null?void 0:Sa[0]])??(ma==null?void 0:ma[Le==null?void 0:Le.prop]):ma==null?void 0:ma[Le==null?void 0:Le.prop])??"")}),ga.id=(ha=Ra==null?void 0:Ra[0])==null?void 0:ha.id,delete ga.sort,delete ga.relatedId,{tableName:"content_"+(De==null?void 0:De.id),tableContents:[ga]}}else return}))==null?void 0:Re.filter(De=>De);Ya=[...Ya,...ra],await z.pageBatchUpdateApi({platId:parseInt((ce=vl==null?void 0:vl.value)==null?void 0:ce.plat_id),changeContents:Ya});let Ua=[];Ya==null||Ya.forEach(De=>{var Ra;(Ra=De==null?void 0:De.tableContents)==null||Ra.forEach(el=>{Ua.push({id:"1",request_method:"Post",request_url:"/platform/page/update",request_param:JSON.stringify(el),request_result:"{}",is_delete:!1,request_table:De==null?void 0:De.tableName,request_type:"update"})})}),await z.pageBatchAddApi({platId:parseInt((B=vl==null?void 0:vl.value)==null?void 0:B.plat_id),changeContents:[{tableName:"log",tableContents:Ua}]})}if((a==null?void 0:a.buttonName)==="删除"){let $a=[{tableName:(te=a==null?void 0:a.relatedContents)==null?void 0:te.find(Te=>Te==null?void 0:Te.includes("content")),tableContents:a==null?void 0:a.fixContent}],Ka=await z.quoteApi({platId:parseInt((q=vl==null?void 0:vl.value)==null?void 0:q.plat_id),type:"fatherSyncs",related:[{menus:r!==""?_l.value+"/"+r:_l.value,groups:a==null?void 0:a.name}]});Ka=(xe=Ka==null?void 0:Ka.data)==null?void 0:xe.result,Ka=Ka==null?void 0:Ka.filter(Te=>{var ra,Ua;return!((Te==null?void 0:Te.fatherPath)!==""&&((Ua=(ra=Te==null?void 0:Te.quote)==null?void 0:ra[0])==null?void 0:Ua.menus)===(_l==null?void 0:_l.value))});let pa=($e=(Me=a==null?void 0:a.fixContent)==null?void 0:Me[0])==null?void 0:$e.id,ja=(Qe=Ka==null?void 0:Ka.map(Te=>{var Ua,De,Ra,el,ml,El;let ra=(Ua=Te==null?void 0:Te.contents)==null?void 0:Ua.filter(ze=>{var ha,ca,ga;return JSON.stringify(ze==null?void 0:ze.relatedId)!=="{}"&&(ze==null?void 0:ze.relatedId)!==""&&(ze!=null&&ze.relatedId)?(ha=ze==null?void 0:ze.relatedId)==null?void 0:ha.includes(parseInt(pa)):(ze==null?void 0:ze.sort)===((ga=(ca=a==null?void 0:a.fixContent)==null?void 0:ca[0])==null?void 0:ga.sort)});if((ra==null?void 0:ra.length)>0){let ze=(De=a==null?void 0:a.fixContent)==null?void 0:De[0];ze={...ze,id:(Ra=ra==null?void 0:ra[0])==null?void 0:Ra.id};let ha={},ca=ze,ga;return Array.isArray((el=Te==null?void 0:Te.struct)==null?void 0:el[0])?ga=ie.getColumnChild((ml=Te==null?void 0:Te.struct)==null?void 0:ml[0]):ga=Te==null?void 0:Te.struct,ga=ga==null?void 0:ga.filter(ma=>(ma==null?void 0:ma.prop)!=="relatedId"),ga==null||ga.forEach(ma=>{var cl,Le;ha[ma.prop]=((cl=ma==null?void 0:ma.words)!=null&&cl[0]?(ca==null?void 0:ca[(Le=ma==null?void 0:ma.words)==null?void 0:Le[0]])??(ca==null?void 0:ca[ma==null?void 0:ma.prop]):ca==null?void 0:ca[ma==null?void 0:ma.prop])??""}),ha.id=(El=ra==null?void 0:ra[0])==null?void 0:El.id,delete ha.sort,delete ha.relatedId,{tableName:"content_"+(Te==null?void 0:Te.id),tableContents:[ha]}}else return}))==null?void 0:Qe.filter(Te=>Te);$a=[...$a,...ja];let na=await z.quoteApi({platId:parseInt((_a=vl==null?void 0:vl.value)==null?void 0:_a.plat_id),type:"sonSyncs",related:[{menus:r!==""?_l.value+"/"+r:_l.value,groups:a==null?void 0:a.name}]});na=(sa=(oe=na==null?void 0:na.data)==null?void 0:oe.result)==null?void 0:sa.filter(Te=>!($a!=null&&$a.find(ra=>(ra==null?void 0:ra.tableName)==="content_"+(Te==null?void 0:Te.id)))),na=na==null?void 0:na.filter(Te=>{var ra,Ua;return!((Te==null?void 0:Te.fatherPath)!==""&&((Ua=(ra=Te==null?void 0:Te.quote)==null?void 0:ra[0])==null?void 0:Ua.menus)===(_l==null?void 0:_l.value))});let Ya=(de=na==null?void 0:na.map(Te=>{var Ua,De,Ra,el,ml,El;let ra=(Ua=Te==null?void 0:Te.contents)==null?void 0:Ua.filter(ze=>{var ha,ca,ga;return JSON.stringify(ze==null?void 0:ze.relatedId)!=="{}"&&(ze==null?void 0:ze.relatedId)!==""&&(ze!=null&&ze.relatedId)?(ha=ze==null?void 0:ze.relatedId)==null?void 0:ha.includes(parseInt(pa)):(ze==null?void 0:ze.sort)===((ga=(ca=a==null?void 0:a.fixContent)==null?void 0:ca[0])==null?void 0:ga.sort)});if((ra==null?void 0:ra.length)>0){let ze=(De=a==null?void 0:a.fixContent)==null?void 0:De[0];ze={...ze,id:(Ra=ra==null?void 0:ra[0])==null?void 0:Ra.id};let ha={},ca=ze,ga;return Array.isArray((el=Te==null?void 0:Te.struct)==null?void 0:el[0])?ga=ie.getColumnChild((ml=Te==null?void 0:Te.struct)==null?void 0:ml[0]):ga=Te==null?void 0:Te.struct,ga=ga==null?void 0:ga.filter(ma=>(ma==null?void 0:ma.prop)!=="relatedId"),ga==null||ga.forEach(ma=>{var cl,Le;ha[ma.prop]=((cl=ma==null?void 0:ma.words)!=null&&cl[0]?(ca==null?void 0:ca[(Le=ma==null?void 0:ma.words)==null?void 0:Le[0]])??(ca==null?void 0:ca[ma==null?void 0:ma.prop]):ca==null?void 0:ca[ma==null?void 0:ma.prop])??""}),ha.id=(El=ra==null?void 0:ra[0])==null?void 0:El.id,delete ha.sort,delete ha.relatedId,{tableName:"content_"+(Te==null?void 0:Te.id),tableContents:[ha]}}else return}))==null?void 0:de.filter(Te=>Te);$a=[...$a,...Ya],await z.pageBatchDeleteApi({platId:parseInt((ea=vl==null?void 0:vl.value)==null?void 0:ea.plat_id),changeContents:$a});let xl=[];$a==null||$a.forEach(Te=>{var ra;(ra=Te==null?void 0:Te.tableContents)==null||ra.forEach(Ua=>{xl.push({id:"1",request_method:"Post",request_url:"/platform/page/delete",request_param:JSON.stringify(Ua),request_result:"{}",is_delete:!1,request_table:Te==null?void 0:Te.tableName,request_type:"delete"})})}),await z.pageBatchAddApi({platId:parseInt((Ae=vl==null?void 0:vl.value)==null?void 0:Ae.plat_id),changeContents:[{tableName:"log",tableContents:xl}]})}if((a==null?void 0:a.buttonName)==="复制新增"){let $a=await z.getPageDataApi({platId:parseInt((ue=vl==null?void 0:vl.value)==null?void 0:ue.plat_id),pageName:"menu"});if($a=(he=$a==null?void 0:$a.data)==null?void 0:he.result,$a!=null&&$a.find(Ka=>(Ka==null?void 0:Ka.father_name)===_l.value+"/")){Tc.value=a,Dc.value=$a==null?void 0:$a.filter(ja=>(ja==null?void 0:ja.father_name)===_l.value+"/");let Ka=(wa=(Ge=a==null?void 0:a.columns)==null?void 0:Ge.find(ja=>ja==null?void 0:ja.mainKey))==null?void 0:wa.prop,pa=(U=(Ia=a==null?void 0:a.fixContent)==null?void 0:Ia[0])==null?void 0:U[Ka];Ot.value=!0,Ji.value=[{prop:Ka,label:Ka,name:Ka,value:pa}]}else{let Ka=(V=a==null?void 0:a.fixContent)==null?void 0:V.map(na=>{let Ya={};for(let xl in na)Array.isArray(na==null?void 0:na[xl])?Ya[xl]=JSON.stringify(na==null?void 0:na[xl]):Ya[xl]=na==null?void 0:na[xl];return Ya.relatedId="",Ya}),pa=[{tableName:(Q=a==null?void 0:a.relatedContents)==null?void 0:Q.find(na=>na==null?void 0:na.includes("content")),tableContents:Ka}];await z.pageBatchAddApi({platId:parseInt((fe=vl==null?void 0:vl.value)==null?void 0:fe.plat_id),changeContents:pa});let ja=[];pa==null||pa.forEach(na=>{var Ya;(Ya=na==null?void 0:na.tableContents)==null||Ya.forEach(xl=>{ja.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(xl),request_result:"{}",is_delete:!1,request_table:na==null?void 0:na.tableName,request_type:"copyAdd"})})}),await z.pageBatchAddApi({platId:parseInt((me=vl==null?void 0:vl.value)==null?void 0:me.plat_id),changeContents:[{tableName:"log",tableContents:ja}]})}}if((a==null?void 0:a.buttonName)==="methodButton"){let $a=((je=(ta=(ua=a==null?void 0:a.columns)==null?void 0:ua.map(De=>De==null?void 0:De.filter))==null?void 0:ta.filter(De=>De!==""))==null?void 0:je[0])??"";$a=ie.analyzeSplitToContent($a,","),$a=($a==null?void 0:$a.find(De=>De==null?void 0:De.includes("@Filter")))??"";let Ka=(ba=a==null?void 0:a.fixContent)==null?void 0:ba.map(De=>{let Ra={};for(let el in De)Array.isArray(De==null?void 0:De[el])?Ra[el]=JSON.stringify(De==null?void 0:De[el]):Ra[el]=De==null?void 0:De[el];return Ra}),pa=await z.quoteApi({platId:parseInt((Ta=vl==null?void 0:vl.value)==null?void 0:Ta.plat_id),type:"fatherSyncs",related:[{menus:r!==""?_l.value+"/"+r:_l.value,groups:a==null?void 0:a.name}]});pa=(Ee=pa==null?void 0:pa.data)==null?void 0:Ee.result,pa=pa==null?void 0:pa.filter(De=>{var Ra,el;return!((De==null?void 0:De.fatherPath)!==""&&((el=(Ra=De==null?void 0:De.quote)==null?void 0:Ra[0])==null?void 0:el.menus)===(_l==null?void 0:_l.value))});let ja=(Ea=(Pa=a==null?void 0:a.columns)==null?void 0:Pa[0])==null?void 0:Ea.prop,na=(ia=Ka==null?void 0:Ka[0])==null?void 0:ia[ja],Ya=[{tableName:(Ba=a==null?void 0:a.relatedContents)==null?void 0:Ba.find(De=>De==null?void 0:De.includes("content")),tableContents:Ka}],xl=(Ce=pa==null?void 0:pa.map(De=>{var el,ml,El,ze,ha;let Ra=(el=De==null?void 0:De.contents)==null?void 0:el.filter(ca=>{var ga;return(ga=Object.values(ca))==null?void 0:ga.find(ma=>ma===na)});if((Ra==null?void 0:Ra.length)>0){let ca=Ka==null?void 0:Ka[0];ca={...ca,id:(ml=Ra==null?void 0:Ra[0])==null?void 0:ml.id};let ga={},ma=ca,cl;return Array.isArray((El=De==null?void 0:De.struct)==null?void 0:El[0])?cl=ie.getColumnChild((ze=De==null?void 0:De.struct)==null?void 0:ze[0]):cl=De==null?void 0:De.struct,cl=cl==null?void 0:cl.filter(Le=>(Le==null?void 0:Le.prop)!=="relatedId"),cl==null||cl.forEach(Le=>{var yl,Be;ga[Le.prop]=((yl=Le==null?void 0:Le.words)!=null&&yl[0]?(ma==null?void 0:ma[(Be=Le==null?void 0:Le.words)==null?void 0:Be[0]])??(ma==null?void 0:ma[Le==null?void 0:Le.prop]):ma==null?void 0:ma[Le==null?void 0:Le.prop])??""}),ga.id=(ha=Ra==null?void 0:Ra[0])==null?void 0:ha.id,delete ga.sort,{tableName:"content_"+(De==null?void 0:De.id),tableContents:[ga]}}else return}))==null?void 0:Ce.filter(De=>De);Ya=[...Ya,...xl];let Te=await z.quoteApi({platId:parseInt((ka=vl==null?void 0:vl.value)==null?void 0:ka.plat_id),type:"sonSyncs",related:[{menus:r!==""?_l.value+"/"+r:_l.value,groups:a==null?void 0:a.name}]});if(Te=(K=(Je=Te==null?void 0:Te.data)==null?void 0:Je.result)==null?void 0:K.filter(De=>!(Ya!=null&&Ya.find(Ra=>(Ra==null?void 0:Ra.tableName)==="content_"+(De==null?void 0:De.id)))),Te=Te==null?void 0:Te.filter(De=>{var Ra,el;return!((De==null?void 0:De.fatherPath)!==""&&((el=(Ra=De==null?void 0:De.quote)==null?void 0:Ra[0])==null?void 0:el.menus)===(_l==null?void 0:_l.value))}),$a&&$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=(Fe=(J=$a==null?void 0:$a.replace("(",wo))==null?void 0:J.split(wo))==null?void 0:Fe[1],$a=$a==null?void 0:$a.slice(0,($a==null?void 0:$a.length)-1),($a==null?void 0:$a[0])==="*"&&($a="{"+((Na=(We=$a==null?void 0:$a.replace("{",wo))==null?void 0:We.split(wo))==null?void 0:Na[1])),$a=(da=$a==null?void 0:$a.replaceAll("{",""))==null?void 0:da.replaceAll("}","");let De=ie.calculatorAndToOr($a);De=De==null?void 0:De[0];let Ra;if((Aa=Object.values(De))!=null&&Aa.some(el=>(el==null?void 0:el[0])==="*")){let el=(He=(Oe=Zn.value)==null?void 0:Oe.find(ml=>(ml==null?void 0:ml.condition)==="child"))!=null&&He.value?(mn==null?void 0:mn.value)+"/"+((Ve=(Ie=Zn.value)==null?void 0:Ie.find(ml=>(ml==null?void 0:ml.condition)==="child"))==null?void 0:Ve.value):mn==null?void 0:mn.value;Ra=await Xr(el,!1)}for(let el in De)if(((we=De==null?void 0:De[el])==null?void 0:we[0])==="*"){let ml=(Vl=(Ll=(Sl=De[el])==null?void 0:Sl.slice(1,(ol=De[el])==null?void 0:ol.length))==null?void 0:Ll.split(":"))==null?void 0:Vl[0],El=(Jl=(zl=De[el])==null?void 0:zl.split(":"))==null?void 0:Jl[1],ze=(rl=Ra==null?void 0:Ra.filter(ha=>(ha==null?void 0:ha.name)===ml))==null?void 0:rl[0];ze=(Wa=(Fl=ze==null?void 0:ze.compData)==null?void 0:Fl.find(ha=>(ha==null?void 0:ha.key)==="tableContents"))==null?void 0:Wa.contents,ze=(Kl=ze==null?void 0:ze[0])==null?void 0:Kl[El],De[el]=ze}$a=((Wl=Object.values(De))==null?void 0:Wl[0])??""}let ra=(Nl=Te==null?void 0:Te.map(De=>{var el,ml,El,ze,ha;let Ra=(el=De==null?void 0:De.contents)==null?void 0:el.filter(ca=>{var ga;return(ga=Object.values(ca))==null?void 0:ga.find(ma=>ma===($a===""?na:$a))});if((Ra==null?void 0:Ra.length)>0){let ca=Ka==null?void 0:Ka[0];ca={...ca,id:(ml=Ra==null?void 0:Ra[0])==null?void 0:ml.id};let ga={},ma=ca,cl;return Array.isArray((El=De==null?void 0:De.struct)==null?void 0:El[0])?cl=ie.getColumnChild((ze=De==null?void 0:De.struct)==null?void 0:ze[0]):cl=De==null?void 0:De.struct,cl=cl==null?void 0:cl.filter(Le=>(Le==null?void 0:Le.prop)!=="relatedId"),cl==null||cl.forEach(Le=>{var Be,Ul,Sa,pl;let yl=(Be=a==null?void 0:a.columns)==null?void 0:Be.find(Qa=>{var gl,Oa,Pl;return((Oa=(gl=Qa==null?void 0:Qa.words)==null?void 0:gl[0])==null?void 0:Oa.replaceAll("'",""))===(Le==null?void 0:Le.prop)&&((Pl=Qa==null?void 0:Qa.functionRelatedWords)==null?void 0:Pl.length)>0});yl=(Ul=yl==null?void 0:yl.prop)==null?void 0:Ul.replaceAll("'",""),ga[Le.prop]=((Sa=Le==null?void 0:Le.words)!=null&&Sa[0]?(ma==null?void 0:ma[(pl=Le==null?void 0:Le.words)==null?void 0:pl[0]])??(ma==null?void 0:ma[Le==null?void 0:Le.prop])??(ma==null?void 0:ma[yl]):(ma==null?void 0:ma[Le==null?void 0:Le.prop])??(ma==null?void 0:ma[yl]))??void 0}),ga.id=(ha=Ra==null?void 0:Ra[0])==null?void 0:ha.id,delete ga.sort,{tableName:"content_"+(De==null?void 0:De.id),tableContents:[ga]}}else return}))==null?void 0:Nl.filter(De=>De);Ya=[...Ya,...ra],await z.pageBatchUpdateApi({platId:parseInt((Tl=vl==null?void 0:vl.value)==null?void 0:Tl.plat_id),changeContents:Ya});let Ua=[];Ya==null||Ya.forEach(De=>{var Ra;(Ra=De==null?void 0:De.tableContents)==null||Ra.forEach(el=>{Ua.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(el),request_result:"{}",is_delete:!1,request_table:De==null?void 0:De.tableName,request_type:"method"})})}),await z.pageBatchAddApi({platId:parseInt((zr=vl==null?void 0:vl.value)==null?void 0:zr.plat_id),changeContents:[{tableName:"log",tableContents:Ua}]})}Pr.setRefreshCurStructure(!0),Pr.setRefreshCurrentPageInform(I0.value++),await Nt(a)},Bt=async(a,l,n)=>{var i;let r=a==null?void 0:a.find(t=>(t==null?void 0:t.id)===l);if(r){let t=(i=r.compData)==null?void 0:i.map(f=>{var c;if((f==null?void 0:f.key)==="tableContents"){let u={...f,contents:n};return u.contents=(c=(u==null?void 0:u.contents)??[])==null?void 0:c.map(m=>{let g={};for(let _ in m)JSON.stringify(m==null?void 0:m[_])==="{}"?g[_]="":g[_]=m==null?void 0:m[_];return g}),u}return f});return r.compData=await Po(t,{}),a=a==null?void 0:a.map(f=>((f==null?void 0:f.id)===(r==null?void 0:r.id)&&(f=r),f)),a}else{let t=a==null?void 0:a.filter(c=>{var u;return(c==null?void 0:c.children)&&((u=c==null?void 0:c.children)==null?void 0:u.length)>0||(c==null?void 0:c.comp)==="Tabs"}),f=t==null?void 0:t.map(async c=>{var u;return c!=null&&c.children&&((u=c==null?void 0:c.children)==null?void 0:u.length)>0?c.children=await Bt(c==null?void 0:c.children,l,n):c.compData=await Bt(c==null?void 0:c.compData,l,n),c});return t=await Promise.all(f),t}},Nt=async a=>{var t,f,c,u,m,g,_;let l=(t=a==null?void 0:a.relatedContents)==null?void 0:t.filter(p=>p==null?void 0:p.includes("content_"));if(!l)return;let n=await z.getAllTables({platId:parseInt((f=vl==null?void 0:vl.value)==null?void 0:f.plat_id),tableNames:l??[]});if(n=(u=(c=n==null?void 0:n.data)==null?void 0:c.result)==null?void 0:u[0],!n||!Array.isArray(n))return;n=n==null?void 0:n.map(p=>{p==null||delete p.source_table;const M={};for(let w in p){const G=p==null?void 0:p[w],A=G&&Object.prototype.toString.call(G)==="[object Object]"&&Object.keys(G).length===0,P=Array.isArray(G)&&G.length===0;G==null||G==="{}"||A||P?M[w]="":M[w]=G}return M});let r=(g=(m=l==null?void 0:l[0])==null?void 0:m.split("_"))==null?void 0:g[1],i=await Bt(hr.value,r,n);hr.value=(_=hr.value)==null?void 0:_.map(p=>{var M,w;return(M=i==null?void 0:i[0])!=null&&M.tabInform&&((w=i==null?void 0:i[0])==null?void 0:w.tabInform)===(p==null?void 0:p.tabInform)?p=i==null?void 0:i[0]:(p!=null&&p.name?(p==null?void 0:p.name)===(i==null?void 0:i.name):(p==null?void 0:p.id)===(i==null?void 0:i.id))&&(p=i),p})},W0=a=>{let l=Ji.value;Ji.value=l==null?void 0:l.map(n=>(n.value=a==null?void 0:a[n==null?void 0:n.prop],n))},K0=async()=>{var p,M,w,G,A,P,O,E,x,S;let a=Tc.value,l=Dc.value,n=(M=(p=a==null?void 0:a.columns)==null?void 0:p.find(b=>b==null?void 0:b.mainKey))==null?void 0:M.prop,r=(G=(w=Ji.value)==null?void 0:w[0])==null?void 0:G.value,i=(A=a==null?void 0:a.fixContent)==null?void 0:A.map(b=>{var R;let C={};for(let $ in b)Array.isArray(b==null?void 0:b[$])?C[$]=JSON.stringify(b==null?void 0:b[$]):C[$]=b==null?void 0:b[$];return(R=a==null?void 0:a.columns)==null||R.forEach($=>{($==null?void 0:$.formType)==="Upload"&&(C==null?void 0:C[$==null?void 0:$.prop])===""&&(C[$==null?void 0:$.prop]="{}")}),C[n]=r,C}),t=[{tableName:(P=a==null?void 0:a.relatedContents)==null?void 0:P.find(b=>b==null?void 0:b.includes("content")),tableContents:i}];await z.pageBatchAddApi({platId:parseInt((O=vl==null?void 0:vl.value)==null?void 0:O.plat_id),changeContents:t}),l=l==null?void 0:l.filter(b=>{var C,R,$;return($=b==null?void 0:b.object_name)==null?void 0:$.includes((R=(C=a==null?void 0:a.fixContent)==null?void 0:C[0])==null?void 0:R[n])});let f=[],c=new Map;l==null||l.forEach(b=>{f.push(`content_${b==null?void 0:b.object_id}`),f.push(`struct_${b==null?void 0:b.object_id}`),c.set(b==null?void 0:b.object_id,b)});let u=await z.getAllTables({platId:parseInt((E=vl==null?void 0:vl.value)==null?void 0:E.plat_id),tableNames:f??[]});u=(x=u==null?void 0:u.data)==null?void 0:x.result;let m=[],g=[];u=ie.chunk(u,2),u==null||u.forEach(b=>{var $,le,ee,_e,pe,H,F,X,re,ve,Re,ce,B,te,q,xe,Me,$e,Qe,_a,oe;let C=c.get((_e=(ee=(le=($=b==null?void 0:b[1])==null?void 0:$[0])==null?void 0:le.source_table)==null?void 0:ee.split("_"))==null?void 0:_e[1]),R=(F=(H=(pe=C==null?void 0:C.object_name)==null?void 0:pe.split("/"))==null?void 0:H.filter((sa,de)=>{var ea,Ae;return((Ae=(ea=C==null?void 0:C.object_name)==null?void 0:ea.split("/"))==null?void 0:Ae.length)-1!==de}))==null?void 0:F.join("/");if(R=R+"/"+r,g!=null&&g.find(sa=>(sa==null?void 0:sa.path)===R)||g.push({fatherPath:C==null?void 0:C.father_name,isShow:C==null?void 0:C.is_show,path:R}),((re=(X=b==null?void 0:b[1])==null?void 0:X[0])==null?void 0:re.类型)==="Table"){let sa=((ce=(Re=(ve=b==null?void 0:b[1])==null?void 0:ve[0])==null?void 0:Re.结构)==null?void 0:ce.contents)??[],de=fl.safeClone(sa);Array.isArray(de==null?void 0:de[0])&&(de=ie.getColumnChild(de==null?void 0:de[0]));let ea=[];if(((B=b==null?void 0:b[0])==null?void 0:B.length)>0&&(ea=(te=b==null?void 0:b[0])==null?void 0:te.map(Ae=>de==null?void 0:de.map(he=>(he=(Ae==null?void 0:Ae[he==null?void 0:he.prop])??"",he)))),m!=null&&m.find(Ae=>(Ae==null?void 0:Ae.key)===R)){let Ae=(q=m==null?void 0:m.find(he=>(he==null?void 0:he.key)===R))==null?void 0:q.contents;Ae.push({isShow:C==null?void 0:C.is_show,filter:(($e=(Me=(xe=b==null?void 0:b[1])==null?void 0:xe[0])==null?void 0:Me.引用)==null?void 0:$e.contents)??"",key:"Table",name:Object.values(C==null?void 0:C.name),tableColumns:sa,tableContents:ea});let ue=m==null?void 0:m.findIndex(he=>(he==null?void 0:he.key)===R);m[ue].contents=Ae}else m.push({key:R,contents:[{isShow:C==null?void 0:C.is_show,filter:((oe=(_a=(Qe=b==null?void 0:b[1])==null?void 0:Qe[0])==null?void 0:_a.引用)==null?void 0:oe.contents)??"",key:"Table",name:Object.values(C==null?void 0:C.name),tableColumns:sa,tableContents:ea}]})}});let _=[];_.push({key:"menuPath",contents:g}),_=[..._,...m],await z.createPlatFormDataApi({platId:parseInt((S=vl==null?void 0:vl.value)==null?void 0:S.plat_id),changeData:_}),Ot.value=!1,Pr.setRefreshTable(!0)},Lo=async(a,l)=>{},Ro=async a=>{hr.value=await ie.getDeepDiffItems(a),Pr.setItemData(hr.value),Pr.setOriginalData(hr.value)};e.ref();const G0=e.ref(null),Y0=()=>{var a,l;console.log("倒计时结束时"),z.ElMessageBox.alert(`超时未提交,【${(l=(a=_l.value)==null?void 0:a.split("/"))==null?void 0:l[0]}】失败`,"告警",{confirmButtonText:"确认",type:"error"})},zc=e.ref([]),J0=e.computed(()=>{var a,l;return(l=(a=Dt.value)==null?void 0:a[_l.value])==null?void 0:l.filter(n=>{var r;return((r=n==null?void 0:n.key)==null?void 0:r.type)==="gridLayout"})});e.watch(()=>[L0.value],()=>{wn.setSelectTitle([]),wn.setChooseTitle([])},{deep:!0});e.watch(()=>Io.value,async(a,l)=>{var r,i,t,f,c,u;let n=(r=Io.value)==null?void 0:r.filter(m=>(m==null?void 0:m.condition)==="child"&&(m==null?void 0:m.value)!==""&&(m==null?void 0:m.parentContent)!==mn.value);if((n==null?void 0:n.length)>0){Yr.setContentLoading(!0);let m=((i=n==null?void 0:n[0])==null?void 0:i.relatedContent)??(_l==null?void 0:_l.value),g=m+"/"+((t=n==null?void 0:n[0])==null?void 0:t.value),_=!!((f=n==null?void 0:n[0])!=null&&f.parentContent),p=await Xr(g,_,{originPath:m});p=(c=p==null?void 0:p.filter(G=>G))==null?void 0:c.map(G=>(G.isShow=!0,G)),console.log(p,"loadingContents");let M=await ie.getDeepDiffItems(p),w=M==null?void 0:M.filter(G=>G==null?void 0:G.choice);jo.setSelectTab((u=w==null?void 0:w[0])==null?void 0:u.choiceName),M=M==null?void 0:M.filter(G=>{var A;return!(G!=null&&G.choiceName)||(G==null?void 0:G.choiceName)===((A=w==null?void 0:w[0])==null?void 0:A.choiceName)}),hr.value=M,Yr.setContentLoading(!1)}});const X0=(a,l)=>{setTimeout(async()=>{var c,u,m;let n=(c=Io.value)==null?void 0:c.filter(g=>(g==null?void 0:g.condition)==="child"&&(g==null?void 0:g.value)!==""&&(g==null?void 0:g.parentContent)!==mn.value),r=_l==null?void 0:_l.value,i=_l==null?void 0:_l.value;(n==null?void 0:n.length)>0&&(i=((u=n==null?void 0:n[0])==null?void 0:u.relatedContent)??(_l==null?void 0:_l.value),r=i+"/"+((m=n==null?void 0:n[0])==null?void 0:m.value));let t=await Xr(r,!1,{originPath:i});t=t==null?void 0:t.map(g=>(g.isShow=!0,g));let f=await ie.getDeepDiffItems(t);hr.value=f==null?void 0:f.filter(g=>!(g!=null&&g.step)||(g==null?void 0:g.step)===(a==null?void 0:a.title))},10)},Z0=a=>{setTimeout(async()=>{var f,c,u;let l=(f=Io.value)==null?void 0:f.filter(m=>(m==null?void 0:m.condition)==="child"&&(m==null?void 0:m.value)!==""&&(m==null?void 0:m.parentContent)!==mn.value),n=_l==null?void 0:_l.value,r=_l==null?void 0:_l.value;(l==null?void 0:l.length)>0&&(r=((c=l==null?void 0:l[0])==null?void 0:c.relatedContent)??(_l==null?void 0:_l.value),n=r+"/"+((u=l==null?void 0:l[0])==null?void 0:u.value));let i=await Xr(n,!1,{originPath:r});i=i==null?void 0:i.map(m=>(m.isShow=!0,m)),jo.setSelectTab(a);let t=await ie.getDeepDiffItems(i);hr.value=t==null?void 0:t.filter(m=>!(m!=null&&m.choiceName)||(m==null?void 0:m.choiceName)===a)},10)};e.watch(()=>O0.value,a=>{a!=null&&a.length||(hr.value=[])},{immediate:!0});e.watch(()=>[_l.value],async a=>{var t,f,c,u;if(!_l.value)return;if(_l.value==="/"){hr.value=[];return}Yr.setCurrentMenuPath(_l.value),Pr.setLockingPage(""),hr.value=[];let l=e.getCurrentInstance();(t=l==null?void 0:l.scope)==null||t.stop(),l=null,Mi.value=!1,Yr.setContentLoading(!0),Cc.value=!0;let n=a==null?void 0:a[0],r=n,i=(f=Zn.value)==null?void 0:f.filter(m=>(m==null?void 0:m.condition)==="child"&&(m==null?void 0:m.value)!==""&&(m==null?void 0:m.parentContent)!==_l.value&&!(m!=null&&m.relatedContent));if((i==null?void 0:i.length)>0&&(n=n+"/"+((c=i==null?void 0:i[0])==null?void 0:c.value)),n==="系统管理/日志管理")hr.value=await B0("log");else{let m=await Xr(n,!0,{originPath:r});m=m==null?void 0:m.map(p=>(p.isShow=!0,p));let g=await ie.getDeepDiffItems(m),_=g==null?void 0:g.filter(p=>p==null?void 0:p.choice);jo.setSelectTab((u=_==null?void 0:_[0])==null?void 0:u.choiceName),hr.value=g==null?void 0:g.filter(p=>{var M;return!(p!=null&&p.choiceName)||(p==null?void 0:p.choiceName)===((M=_==null?void 0:_[0])==null?void 0:M.choiceName)})}Yr.setContentLoading(!1),Pr.setExtraContents([]),wn.setSelectIndex(""),wn.setSelectMenu(""),Pr.setItemData(hr.value),Pr.setOriginalData(hr.value),Pr.setRefreshTable(!1),e.nextTick(()=>{ei.value=ei.value++,Mi.value=!0})},{immediate:!0});e.watch(()=>[Ds.value],async()=>{var a,l,n,r;if(Ds.value){hr.value=[];let i=e.getCurrentInstance();(a=i==null?void 0:i.scope)==null||a.stop(),i=null,Mi.value=!1,Yr.setContentLoading(!0),Cc.value=!0;let t=mn==null?void 0:mn.value,f=t,c=(l=Zn.value)==null?void 0:l.filter(_=>(_==null?void 0:_.condition)==="child"&&(_==null?void 0:_.value)!==""&&(_==null?void 0:_.parentContent)!==(mn==null?void 0:mn.value));(c==null?void 0:c.length)>0&&(t=t+"/"+((n=c==null?void 0:c[0])==null?void 0:n.value));let u=await Xr(t,!0,{originPath:f});u=u==null?void 0:u.map(_=>(_.isShow=!0,_));let m=await ie.getDeepDiffItems(u),g=m==null?void 0:m.filter(_=>_==null?void 0:_.choice);if(jo.setSelectTab((r=g==null?void 0:g[0])==null?void 0:r.choiceName),hr.value=m==null?void 0:m.filter(_=>{var p;return!(_!=null&&_.choiceName)||(_==null?void 0:_.choiceName)===((p=g==null?void 0:g[0])==null?void 0:p.choiceName)}),Yr.setContentLoading(!1),Pr.setExtraContents([]),wn.setSelectIndex(""),wn.setSelectMenu(""),Pr.setItemData(hr.value),Pr.setOriginalData(hr.value),Pr.setRefreshTable(!1),(c==null?void 0:c.length)>0){let _=[...Zn.value,...c];wn.setSelectTitle(_)}e.nextTick(()=>{ei.value=ei.value++,Mi.value=!0})}},{immediate:!0,deep:!0});const Q0=async()=>{Yr.setLinkMenuInfo(null),Yr.setActiveMenuPath(M0.value),hr.value=null,Pr.setRouteToChildPath(""),Yr.setChildMenu("")},e3=a=>new RegExp("button","i").test(a),a3=a=>/^[\u4e00-\u9fa5]+\/[\u4e00-\u9fa5]+\^(.+)$/.test(a),Mc=a=>{if(a3(a)){const l=a==null?void 0:a.split("^");(l==null?void 0:l.length)>0&&(l!=null&&l[0])&&Yr.setLinkMenuInfo({path:l==null?void 0:l[0],data:l==null?void 0:l[1]})}},Ic=async(a,l,n)=>{var p,M,w,G,A,P,O,E,x,S,b,C;let r="",i="";for(let R in l)(l==null?void 0:l[R])===a&&(i=R);n==null||n.forEach(R=>{(R==null?void 0:R.prop)===i&&(r=R==null?void 0:R.fatherPath)});let t=r===""?_l.value:r;r!==""&&Yr.setCurrentMenuPath(t),Yr.setCurrentMenuPath(t+"/"+a),Yr.setContentLoading(!0),hr.value=await Xr(t+"/"+a,!0,{originPath:t+"/",row:l});let f=await Xr(t,!1),c=(p=f==null?void 0:f.filter(R=>(R==null?void 0:R.comp)==="Table"))==null?void 0:p[0],u=((A=(G=(w=(M=c==null?void 0:c.compData)==null?void 0:M.find(R=>(R==null?void 0:R.key)==="header"))==null?void 0:w.contents)==null?void 0:G[0])==null?void 0:A.prop)??((S=(x=(E=(O=(P=c==null?void 0:c.compData)==null?void 0:P.find(R=>(R==null?void 0:R.key)==="header"))==null?void 0:O.contents)==null?void 0:E[0])==null?void 0:x[0])==null?void 0:S.prop),m=(C=(b=c==null?void 0:c.compData)==null?void 0:b.find(R=>(R==null?void 0:R.key)==="tableContents"))==null?void 0:C.contents;m=m==null?void 0:m.map(R=>({label:R==null?void 0:R[u],value:R==null?void 0:R[u]}));let g=Zn.value,_={value:a,condition:"child",options:m,relatedContent:t,isShow:!0};g=g==null?void 0:g.filter(R=>(R==null?void 0:R.condition)!=="child"),g.push(_),wn.setSelectTitle(g),wn.setChooseTitle([_]),Yr.setContentLoading(!1),Pr.setExtraContents([]),wn.setSelectIndex(""),wn.setSelectMenu(""),Pr.setItemData(hr.value),Pr.setOriginalData(hr.value)},l3=a=>{Nc.value=a},Bi=e.reactive({index:0,comp:null}),r3=e.computed(()=>{var a;return(a=hr.value)==null?void 0:a.map((l,n)=>({id:l.id,name:l.name,status:n3(l,n)}))}),Oc=(a,l)=>{var u,m,g,_,p;const n=l?a:a-2,r=(u=hr.value)==null?void 0:u[n],i=(g=(m=r==null?void 0:r.compData)==null?void 0:m.find(M=>(M==null?void 0:M.key)==="header"))==null?void 0:g.contents,t=i==null?void 0:i.findIndex(M=>(M==null?void 0:M.isMainKey)&&(M==null?void 0:M.label)!=="操作"),f=t===-1?0:t,c=(p=(_=r==null?void 0:r.compData)==null?void 0:_.find(M=>(M==null?void 0:M.key)==="tableContents"))==null?void 0:p.contents;return{valid:c==null?void 0:c.every(M=>M==null?void 0:M[f+1]),length:(c==null?void 0:c.length)||0}},n3=(a,l)=>{var r;let n="process";if(((r=a==null?void 0:a.comp)==null?void 0:r.toUpperCase())==="TABLE"){const{valid:i,length:t}=Oc(l,!0);Bi.index===l?n="process":t===0?n="wait":n=i?"success":"error"}return n},Lc=a=>{var n,r,i,t,f;const l=a+1;if(l>1&&((i=(r=(n=hr.value)==null?void 0:n[a])==null?void 0:r.comp)==null?void 0:i.toUpperCase())==="TABLE"){const{valid:c}=Oc(l);c?(Bi.index=l,Bi.comp=(t=hr.value)==null?void 0:t[a]):Xa.ElMessage({showClose:!0,type:"warning",message:"当前流程有输入未完成"})}else Bi.index=l,Bi.comp=(f=hr.value)==null?void 0:f[a]},Rc=e.computed(()=>{var a,l;return(l=(a=Bc.value)==null?void 0:a[0])==null?void 0:l.isStepLayout});e.watch(()=>Rc.value,a=>{a&&Lc(0)},{immediate:!0});const i3={class:"table-content"},o3={class:"menu-config-wrap"},t3=["onClick"],s3={key:0,class:"viewport-wrap"},c3=["onClick"],u3={title:"选择显示列信息"},d3={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"}},p3=["title"],f3={class:"col-operate-wrap"},h3={key:0,class:"col-operate-radio-wrapper"},v3={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},m3={key:0,style:{display:"flex","justify-content":"center","align-items":"center"}},y3={class:"pop-view"},g3={class:"pop-wrapper"},b3={class:"file-list-pop"},k3=["title","onClick"],x3=["onClick"],w3=["onClick"],_3={key:1,style:{display:"flex","justify-content":"flex-end",gap:"8px","margin-top":"8px"}},S3={class:"form-content"},E3={key:0,class:"dialog-footer"},C3={class:"dialog-footer"},D3={class:"ocr-dialog-content"},T3={class:"ocr-steps"},B3={key:0,class:"ocr-action-buttons"},N3={key:1,class:"ocr-preview-area"},A3={class:"ocr-file-grid"},z3={class:"file-thumbnail"},M3=["src"],I3={key:1,class:"thumbnail-placeholder"},O3={class:"progress-svg",viewBox:"0 0 36 36"},L3=["stroke","stroke-width","stroke-dasharray"],R3={key:0,class:"progress-icon"},$3={key:1,class:"progress-icon"},V3=["onClick"],F3={class:"file-name"},P3={key:0,class:"ocr-recognize-button"},j3={key:2,class:"ocr-progress-section"},H3={key:3,class:"ocr-confirm-area"},U3={class:"ocr-preview-tip"},q3={class:"ocr-preview-table"},W3={style:{display:"flex","align-items":"center",gap:"8px"}},K3={key:0},G3={key:4,class:"ocr-success-area"},Y3={key:0,class:"ocr-dialog-footer"},J3={class:"form-content"},X3={style:{width:"100%",margin:"0","font-size":"14px","font-weight":"600"}},Z3={style:{display:"flex","justify-content":"space-between",gap:"8px"}},Q3={style:{display:"flex"}},Bs="ss-ocr-upload-history",eh="ss-ocr-cert-history-v1",ah={__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 Kt;const n=e.ref([]),r=It(z.pinia),i=e.ref(null),t=e.ref(new Set),f=e.ref(new Map),c=e.ref(!1),u=e.ref([]),m=e.ref(new Map),g=new Map,_=e.ref(new Map),p=a,M=e.ref((p==null?void 0:p.allowSelect)??!0),w=e.ref(((Kt=p==null?void 0:p.config)==null?void 0:Kt.showIndex)??!0),G=e.ref(),A=e.ref(!0),P=e.ref(!1),O=e.ref([]),E={sortable:"switch",filterable:"switch",showSummary:"switch",operable:"switch",fixed:"radio"},x=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"}]}]),S=ie.useOriginalState(z.pinia);let b="$R";const{originalPath:C}=z.storeToRefs(S),R=C.value,$=e.computed(()=>{var v;const d=(v=ie.getAllLeafNodes(F.value)||[])==null?void 0:v.filter(N=>(N==null?void 0:N.type)!=="operate"&&(N==null?void 0:N.label)!=="操作"&&(N==null?void 0:N.prop)!=="operate");return d.length>0?d.every(N=>!!(N!=null&&N.sortable)):!1});e.computed(()=>{var v;return(v=F.value)==null?void 0:v.every(N=>N==null?void 0:N.filterable)}),e.computed(()=>{var v;return(v=F.value)==null?void 0:v.every(N=>N==null?void 0:N.operable)});const le=e.ref(!0),ee=e.ref([]),_e=e.reactive({column:{},status:!1,text:"合计"}),pe=e.reactive({currentPage:1,pageSize:10,total:0,pageSizes:[5,10,20]}),H=l,F=e.ref([]),X=e.ref([]),re=e.ref([]),ve=e.reactive({prop:"",order:null}),Re=e.ref([]),ce=e.ref(!1),B=e.ref(!1),te=e.ref(null),{isUseBackdrop:q,initTrackFileType:xe,getFileExtension:Me,setData:$e,getFileInfo:Qe,getFilesInfo:_a}=No.useThreeSystem(),oe=e.ref([]),sa=e.ref(!1),de=e.ref(),ea=z.useMenuState(),{importLoading:Ae,activeMenuPath:ue,contentLoading:he,linkMenuInfo:Ge}=z.storeToRefs(ea),wa=ie.useTableComp(z.pinia),Ia=z.useModelComp(z.pinia),U=ai(z.pinia),{extraContents:V,cacheUpdatingData:Q,tableViewContents:fe,tableLoading:me,pageMapState:ua,lockingPage:ta}=z.storeToRefs(Ia),{selectTab:je}=z.storeToRefs(U),{compType:ba,hasEditable:Ta}=nc.useRole(),Ee=e.ref([]),Pa=e.ref([]),Ea=e.ref(new Map);e.ref(!1);const ia=e.ref("");e.ref();const Ba=e.ref(!0),Ce=e.ref(0),ka=e.ref(!0),Je=e.ref(""),K=e.ref(!1),J=e.ref(null);e.ref([]);const Fe=e.ref({label:"查看三维模型"}),We=e.ref(!1),Na=e.ref(),da=e.ref([]),Aa=e.ref([]),Oe=e.ref(!1),He=e.ref([]),Ie=e.ref([]),Ve=e.ref([]),we=e.ref([]),ol=e.ref([]),Sl=()=>{try{const d=localStorage.getItem(Bs),v=d?JSON.parse(d):[];ol.value=Array.isArray(v)?v:[]}catch{ol.value=[]}},Ll=()=>{try{localStorage.setItem(Bs,JSON.stringify(ol.value||[]))}catch{}},Vl=d=>{var ne,se,W;if(!d)return;const v=d.url||((ne=d==null?void 0:d.uploadResult)==null?void 0:ne.url)||"",N=d.name||((se=d==null?void 0:d.uploadResult)==null?void 0:se.name)||((W=d==null?void 0:d.uploadResult)==null?void 0:W.fileName)||"";if(!v&&!N)return;const I={name:N,url:v,ts:Date.now()},j=String(I.name||"").trim().toLowerCase(),D=(ol.value||[]).findIndex(be=>String((be==null?void 0:be.name)||"").trim().toLowerCase()===j);D>-1&&ol.value.splice(D,1),ol.value.unshift(I),ol.value.length>20&&(ol.value=ol.value.slice(0,20)),Ll()};Sl();const zl=(d,v)=>`${eh}:${String(d??"")}:${String(v??"")}`,Jl=(d,v)=>{try{const N=sessionStorage.getItem(zl(d,v)),I=N?JSON.parse(N):[];return Array.isArray(I)?I:[]}catch{return[]}},rl=(d,v,N)=>{try{sessionStorage.setItem(zl(d,v),JSON.stringify(Array.isArray(N)?N:[]))}catch{}},Fl=(d,v,N)=>{if(!v)return;const I=Jl(d,v),j=[N,...I||[]].filter(Boolean).slice(0,1);return rl(d,v,j),j},Wa=(d,v,N)=>{if(!v||!N)return;const I=zl(d,v),j=zl(d,N);try{const D=sessionStorage.getItem(I);if(!D)return;const ne=(()=>{try{const be=JSON.parse(D);return Array.isArray(be)?be:[]}catch{return[]}})(),se=Jl(d,N),W=[...ne,...se||[]].filter(Boolean).sort((be,ye)=>Number((ye==null?void 0:ye.ts)||0)-Number((be==null?void 0:be.ts)||0)).slice(0,1);sessionStorage.setItem(j,JSON.stringify(W)),sessionStorage.removeItem(I)}catch{}},Kl=e.ref(!1),Wl=e.ref(!1),Nl=e.ref([]),Tl=e.ref(null);e.ref(!1),e.ref([]),e.ref(""),e.ref("");const zr=e.ref(!1),$a=e.ref([]),Ka=e.ref(1),pa=e.ref(new Map),ja=e.ref(new Map),na=e.ref(0),Ya=e.ref(!1),xl=e.ref([]),Te=e.ref([]),ra=d=>{var v;try{const N=(v=ie.getAllLeafNodes(F.value)||[])==null?void 0:v.filter(I=>(I==null?void 0:I.type)!=="operate"&&(I==null?void 0:I.label)!=="操作"&&(I==null?void 0:I.prop)!=="operate");return(N==null?void 0:N.find(I=>(I==null?void 0:I.prop)===d||(I==null?void 0:I.label)===d))||null}catch{return null}},Ua=d=>{const v=ra(d),N=(v==null?void 0:v.formType)||(v==null?void 0:v.columnType)||"Input";return fl.getComponent(N)||fl.getComponent("Input")},De=e.ref([]),Ra=e.ref(null),el=e.ref([]),ml=e.ref(null),El=e.ref(""),ze=e.ref(!1),ha=e.ref([]),ca=e.ref(""),ga=e.ref(!1),ma=e.ref([]),cl=e.ref([]),Le=e.ref([]),yl=e.ref(null),Be=e.ref([]),Ul=e.ref("");e.computed(()=>{var d;try{const v=(d=ie.getAllLeafNodes(F.value)||[])==null?void 0:d.filter(I=>(I==null?void 0:I.type)!=="operate"&&(I==null?void 0:I.label)!=="操作"&&(I==null?void 0:I.prop)!=="operate"),N=new Map;return v==null||v.forEach(I=>{I!=null&&I.label&&(I!=null&&I.prop)&&N.set(I.label,I.prop)}),N.get("编号")||""}catch{return""}});const Sa=e.computed(()=>{var d;try{const v=(d=ie.getAllLeafNodes(F.value)||[])==null?void 0:d.filter(I=>(I==null?void 0:I.type)!=="operate"&&(I==null?void 0:I.label)!=="操作"&&(I==null?void 0:I.prop)!=="operate"),N=new Map;return v==null||v.forEach(I=>{I!=null&&I.label&&(I!=null&&I.prop)&&N.set(I.label,I.prop)}),N.get("名称")||""}catch{return""}}),pl=e.computed(()=>{var d;try{const v=(d=ie.getAllLeafNodes(F.value)||[])==null?void 0:d.filter(I=>(I==null?void 0:I.type)!=="operate"&&(I==null?void 0:I.label)!=="操作"&&(I==null?void 0:I.prop)!=="operate"),N=new Map;return v==null||v.forEach(I=>{I!=null&&I.label&&(I!=null&&I.prop)&&N.set(I.label,I.prop)}),N.get("制造厂")||""}catch{return""}}),Qa=()=>{ga.value=!1,ma.value=[],cl.value=[],Le.value=[],yl.value=null,Be.value=[],Ul.value=""},gl=d=>d==null?!1:typeof d=="string"?d.trim()!=="":Array.isArray(d)?d.length>0:!0,Oa=(d,v)=>{const N=(d==null?void 0:d.ocrRow)||{};for(const j of Object.keys(N))j==="id"||j==="_isOCRRow"||j==="_ocrTableId"||gl(N[j])&&(v[j]=N[j]);const I=Pa.value.find(j=>j.id===v.id);if(I)for(const j of Object.keys(N))j==="id"||j==="_isOCRRow"||j==="_ocrTableId"||gl(N[j])&&(I[j]=N[j]);Ea.value&&Ea.value.set(v.id,v),Fl(p==null?void 0:p.index,v.id,d==null?void 0:d.versionItem),cl.value=[...cl.value||[],JSON.parse(JSON.stringify(v))]},Pl=async(d,v=null)=>{var N,I,j,D,ne,se,W;try{const be=(N=ie.getAllLeafNodes(F.value)||[])==null?void 0:N.filter(va=>(va==null?void 0:va.type)!=="operate"&&(va==null?void 0:va.label)!=="操作"&&(va==null?void 0:va.prop)!=="operate"),ye=new Map;be==null||be.forEach(va=>{va!=null&&va.label&&(va!=null&&va.prop)&&ye.set(va.label,va.prop)});const Ke=ye.get("系统编号")||ye.get("编号");if(!Ke){console.warn("未找到系统编号字段,跳过向检校记录表插入数据");return}const Ue=v||yl.value;if((Array.isArray(Ue==null?void 0:Ue.result)?Ue.result:[]).length===0){console.warn("OCR识别结果为空,跳过向检校记录表插入数据");return}for(let va=0;va<d.length;va++){const Ca=d[va],Da=Ca[Ke];if(!Da){console.warn(`第 ${va+1} 条匹配行缺少系统编号,跳过`);continue}const Ze=`设备管理/试验设备/${Da}`,il=await z.getPageDataApi({platId:parseInt((I=Ml.value)==null?void 0:I.plat_id),pageName:Ze});if(!((j=il==null?void 0:il.data)!=null&&j.result)||!Array.isArray(il.data.result)){console.warn(`未找到详情页数据: ${Ze}`);continue}const ya=il.data.result.find(oa=>(oa==null?void 0:oa.property_name)==="校检记录");if(!ya){console.warn(`详情页 ${Ze} 中未找到校检记录表`);continue}const tl=(D=ya.contents)==null?void 0:D.find(oa=>(oa==null?void 0:oa.key)&&oa.key.startsWith("content_"));if(!tl||!tl.key){console.warn("校检记录表中未找到 content item");continue}const ge=tl.key,Fa=Array.isArray(tl.value)?tl.value:[];if(Fa.length>=5){const T=[...Fa].sort((Ma,Ha)=>{const sl=Number((Ma==null?void 0:Ma.create_time)||0),Ga=Number((Ha==null?void 0:Ha.create_time)||0);return sl-Ga})[0];T!=null&&T.id&&await z.pageBatchDeleteApi({platId:parseInt((ne=Ml.value)==null?void 0:ne.plat_id),changeContents:[{tableName:ge,tableContents:[{id:T.id}]}]})}const fa=(se=be==null?void 0:be.find(oa=>(oa==null?void 0:oa.label)==="证书附件"))==null?void 0:se.prop,Ja=String(Date.now()),La={id:Ja},Ne=Fa[0]||{},Z=new Date().toISOString().split("T")[0];if(Object.keys(Ne||{}).forEach(oa=>{if(oa!=="id"){if(oa==="证书附件"){La[oa]="";return}if(oa==="校检日期"||oa==="检校日期"){La[oa]=Ca[oa]||Ca.校检日期||Ca.检校日期||Z;return}if(["校检周期","检校周期","校检结果","检校结果","计量状态","依据文件","证书编号"].includes(oa)){La[oa]=Ca[oa]??"";return}La[oa]=Ca[oa]??""}}),fa&&Ca[fa]){const oa=Ca[fa];if(Array.isArray(oa)&&oa.length>0)La.证书附件=JSON.stringify(oa.map(T=>({url:(T==null?void 0:T.url)||"",name:(T==null?void 0:T.name)||(T==null?void 0:T.fileName)||"",fileName:(T==null?void 0:T.fileName)||(T==null?void 0:T.name)||""})).filter(T=>T.url||T.name));else if(typeof oa=="string")try{const T=JSON.parse(oa);La.证书附件=oa}catch{La.证书附件=JSON.stringify([{url:oa,name:oa,fileName:oa}])}}console.log(ge,"tableName","inspectionRecordRow",La),await z.pageBatchAddApi({platId:parseInt((W=Ml.value)==null?void 0:W.plat_id),changeContents:[{tableName:ge,tableContents:[La]}]});const Pe=ya==null?void 0:ya.object_id;if(Pe&&Ja){const oa=fa&&Ca[fa]?Ca[fa]:null;let T=[],Ma="",Ha=!1;if(Array.isArray(oa)&&oa.length>0){T=oa.map(dl=>({name:(dl==null?void 0:dl.name)||(dl==null?void 0:dl.fileName)||"",url:(dl==null?void 0:dl.url)||""})).filter(dl=>dl.url||dl.name);const Ga=oa[0];Ma=(Ga==null?void 0:Ga.url)||"";const xa=(Ga==null?void 0:Ga.name)||(Ga==null?void 0:Ga.fileName)||"";Ha=String(xa).toLowerCase().endsWith(".pdf")||String(Ma).toLowerCase().endsWith(".pdf")}else if(typeof oa=="string")try{const Ga=JSON.parse(oa);Array.isArray(Ga)?(T=Ga.map(xa=>({name:(xa==null?void 0:xa.name)||(xa==null?void 0:xa.fileName)||"",url:(xa==null?void 0:xa.url)||""})).filter(xa=>xa.url||xa.name),T.length>0&&(Ma=T[0].url||"",Ha=String(T[0].name).toLowerCase().endsWith(".pdf")||String(Ma).toLowerCase().endsWith(".pdf"))):(Ma=oa,Ha=String(oa).toLowerCase().endsWith(".pdf"))}catch{Ma=oa,Ha=String(oa).toLowerCase().endsWith(".pdf")}const sl={ts:Date.now(),versionId:String(Date.now())+"_"+String(va),label:new Date().toLocaleString(),certType:Ca.证书类型||"",certNo:Ca.证书编号||"",fileType:Ha?"pdf":"image",sourceUrl:Ha?Ma:"",images:T};Fl(Pe,Ja,sl)}}}catch(be){console.error("向校检记录表插入OCR识别结果失败:",be),Xa.ElMessage.error("向校检记录表插入数据失败,请查看控制台")}},Sr=d=>{const v=Array.isArray(d)?d:ma.value||[];if(v.length===0){Qa();return}if(v.find(D=>(D==null?void 0:D.__decision)==="replace"&&!(D!=null&&D.selectedTargetId))){Xa.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}v.forEach(D=>{var se;const ne=D==null?void 0:D.__decision;if(!(!ne||ne==="skip")){if(ne==="add"){Fl(p==null?void 0:p.index,(se=D==null?void 0:D.ocrRow)==null?void 0:se.id,D==null?void 0:D.versionItem),Le.value=[...Le.value||[],D.ocrRow];return}if(ne==="replace"){const W=D==null?void 0:D.selectedTargetId,be=(Ee.value||[]).find(ye=>String(ye==null?void 0:ye.id)===String(W));if(!be)return;Oa(D,be)}}}),(cl.value||[]).length>0&&(Ee.value=[...Ee.value||[]]),(Le.value||[]).length>0&&(Ee.value=[...Ee.value||[],...Le.value||[]],Pa.value=[...Pa.value||[],...Le.value||[]],(Le.value||[]).forEach(D=>{var ne,se;return(se=(ne=Ea.value)==null?void 0:ne.set)==null?void 0:se.call(ne,D.id,D)})),Jr.value=Ee.value;const I=cl.value||[],j=Le.value||[];if(I.length>0&&(H("change",{buttonName:"编辑",singleContent:I,content:Ee.value,relatedContents:p==null?void 0:p.related,index:p==null?void 0:p.index,parentTableId:p==null?void 0:p.parentTableId,columns:F.value,name:p==null?void 0:p.compName}),Pl(I)),j.length>0){const D=yl.value;H("change",{buttonName:"OCR批量新增",content:Ee.value,index:p==null?void 0:p.index,parentTableId:p==null?void 0:p.parentTableId,column:F.value,ocrRows:j,relatedContents:p==null?void 0:p.related,uploadedFiles:(Array.isArray(D==null?void 0:D.result)?D.result:[]).map(ne=>(Array.isArray(ne==null?void 0:ne.图片信息)?ne.图片信息:[]).map(se=>({url:(se==null?void 0:se.url)||"",name:(se==null?void 0:se.name)||"",fileName:(se==null?void 0:se.name)||""})).filter(se=>se.url)),ocrResult:D,matchedCount:(I||[]).length,newCount:(j||[]).length})}Xa.ElMessage.success("已提交候选处理结果"),Qa()},Qr=Sc(),Wr=e.computed(()=>Qr.getConfig()),Gl=e.ref(),ir=e.ref(),on=bc(z.pinia),Jr=e.ref(),Ur=e.ref(0),en=z.useUnit(z.pinia),{selectIndex:an,selectMenu:cr,selectTitle:br}=z.storeToRefs(en),{selectString:jr}=z.storeToRefs(on),Xl=z.useLoginState(z.pinia),{loginUserInfo:Ml}=z.storeToRefs(Xl),Dr=e.ref(720),Yl=e.ref(!1),vr=e.ref(!1),Tr=e.ref([]),kr=e.ref(),wr=e.ref(!0),tn=e.ref(!0);e.ref([]);const yn=e.inject("contentRef");e.provide("contentRef",yn),e.provide("getSuggestListForCell",Iu),e.provide("getSuggestLoadingForCell",(d,v)=>{const N=`${d==null?void 0:d.id}:${(v==null?void 0:v.prop)||(v==null?void 0:v.property)}`;return _.value.get(N)||!1}),e.watch(()=>{var d;return(d=Ee.value)==null?void 0:d.length},d=>{pe.total=d}),e.watch(()=>fe.value,async()=>{var v,N,I,j,D,ne,se,W,be,ye,Ke,Ue,Xe,va,Ca,Da,Ze;if(((v=fe.value)==null?void 0:v.length)===0||!((N=p==null?void 0:p.itemData)!=null&&N.find(il=>(il==null?void 0:il.key)==="columnPath"))||!((I=p==null?void 0:p.itemData)!=null&&I.find(il=>(il==null?void 0:il.key)==="pageColumn")))return;let d=(be=(W=(se=(ne=(D=(j=p==null?void 0:p.itemData)==null?void 0:j.find(il=>(il==null?void 0:il.key)==="pageColumn"))==null?void 0:D.contents)==null?void 0:ne.split("["))==null?void 0:se[1])==null?void 0:W.split("]"))==null?void 0:be[0];((Xe=(Ue=(Ke=(ye=p==null?void 0:p.itemData)==null?void 0:ye.find(il=>(il==null?void 0:il.key)==="pageColumn"))==null?void 0:Ke.contents)==null?void 0:Ue.split("["))==null?void 0:Xe[0])+((Ca=(va=fe.value)==null?void 0:va.find(il=>(il==null?void 0:il.key)===d))==null?void 0:Ca.value),(Ze=(Da=p==null?void 0:p.itemData)==null?void 0:Da.find(il=>(il==null?void 0:il.key)==="pageGroup"))==null||Ze.contents,Wt(compData,p.allMapContents)},{deep:!0});const Dn=d=>{var N,I,j,D,ne;const v=(I=(N=F.value)==null?void 0:N.filter(se=>se==null?void 0:se.mainKey))==null?void 0:I.map(se=>se==null?void 0:se.prop);if(v.length===0){const se=(j=F.value)==null?void 0:j.map(W=>W==null?void 0:W.prop);return(D=se==null?void 0:se.map(W=>d==null?void 0:d[W]))==null?void 0:D.join("|")}return(ne=v==null?void 0:v.map(se=>d==null?void 0:d[se]))==null?void 0:ne.join("|")},vi=d=>{var se,W,be,ye,Ke;const v=(W=(se=F.value)==null?void 0:se.filter(Ue=>Ue==null?void 0:Ue.required))==null?void 0:W.map(Ue=>Ue==null?void 0:Ue.prop),N=[];if(d==null||d.forEach(Ue=>{v==null||v.forEach(Xe=>{const va=Ue[Xe];(va==null||va==="")&&(N.includes(Xe)||N.push(Xe))})}),N.length>0)return Xa.ElMessage.warning(`请填写必填项:${N.join("、")}`);const I=new Map,j=new Map;(be=Ee.value)==null||be.forEach(Ue=>{const Xe=Dn(Ue);I.set(Xe,Ue)}),d==null||d.forEach(Ue=>{const Xe=Dn(Ue);j.set(Xe,Ue)});const D=d==null?void 0:d.filter(Ue=>I.has(Dn(Ue))),ne=(ye=Ee.value)==null?void 0:ye.filter(Ue=>j.has(Dn(Ue)));return(D==null?void 0:D.length)>0&&(k.columns=(Ke=F.value)==null?void 0:Ke.filter(Ue=>(Ue==null?void 0:Ue.label)!=="操作"),k.existRows=ne,k.tableData=D,k.show=!0),k.newRows=d==null?void 0:d.filter(Ue=>{const Xe=Dn(Ue);return!I.has(Xe)}),k.newRows},_n=e.ref(""),An=e.ref(null),Kn=async()=>{var d,v,N,I,j,D;try{const ne=await z.quoteApi({related:[{menus:ue.value,groups:p==null?void 0:p.compName}],platId:parseInt((d=Ml.value)==null?void 0:d.plat_id)});if(((v=ne==null?void 0:ne.data)==null?void 0:v.code)===200){An.value=(N=ne==null?void 0:ne.data)==null?void 0:N.result;const se=(I=F.value)==null?void 0:I.map(ye=>(ye==null?void 0:ye.prop)||(ye==null?void 0:ye.label)),W=gn(se,(j=ne==null?void 0:ne.data)==null?void 0:j.result),be=W==null?void 0:W.flatMap(ye=>ye==null?void 0:ye.quote);(be==null?void 0:be.length)>0&&(_n.value=(D=be==null?void 0:be.map(ye=>ye==null?void 0:ye.menus))==null?void 0:D.join("、"))}}catch(ne){throw new Error(ne)}};function gn(d,v){var N;return(N=v.filter(I=>I.struct&&Array.isArray(I.struct)?I.struct.some(j=>j.words&&Array.isArray(j.words)?j.words.some(D=>d.includes(D)):!1):!1))==null?void 0:N.map(I=>{const j={...I};return j.struct&&Array.isArray(j.struct)&&(j.struct=j.struct.filter(D=>D.words&&Array.isArray(D.words)?D.words.some(ne=>d.includes(ne)):!1)),j})}const Vn=async(d,v)=>{var N,I;try{An.value||await Kn();const j=v==null?void 0:v.map(ne=>{const se=Object.keys(ne),W={};return se.forEach((be,ye)=>{W[d[ye]]=ne[be]}),W}),D=vi(j);if(!D||(D==null?void 0:D.length)===0)return;k.show||await Y(D)}catch(j){throw Xa.ElMessage.error("数据导入处理失败"),await z.pageBatchAddApi({platId:parseInt((N=Ml==null?void 0:Ml.value)==null?void 0:N.plat_id),changeContents:[{tableName:"log",tableContents:[{id:"1",request_method:"Post",request_url:"",request_param:JSON.stringify(t1),request_result:JSON.stringify(j),is_delete:!1,request_table:(I=p==null?void 0:p.related)==null?void 0:I.find(D=>D==null?void 0:D.includes("content")),request_type:"error"}]}]}),new Error(j)}},li=async d=>{var D,ne,se,W,be,ye,Ke;let v=re.value;v!=null&&v.find(Ue=>(d==null?void 0:d.key)===(Ue==null?void 0:Ue.key))&&(v=v==null?void 0:v.filter(Ue=>(d==null?void 0:d.key)!==(Ue==null?void 0:Ue.key))),v.push({key:d==null?void 0:d.key,value:[(ne=d==null?void 0:d.value)==null?void 0:ne[((D=d==null?void 0:d.value)==null?void 0:D.length)-1]]});let N=we.value;N=N==null?void 0:N.map(Ue=>{var Xe,va;return(Ue==null?void 0:Ue.type)==="Select"&&(d==null?void 0:d.key)===(Ue==null?void 0:Ue.prop)&&Array.isArray(Ue.value)&&(Xe=Ue.value)!=null&&Xe.every(Ca=>typeof Ca=="string")&&(Ue.selectValue=(va=v==null?void 0:v.find(Ca=>(Ca==null?void 0:Ca.key)===(Ue==null?void 0:Ue.prop)))==null?void 0:va.value),Ue});let I=(W=(se=N==null?void 0:N.find(Ue=>(Ue==null?void 0:Ue.prop)===(d==null?void 0:d.key)))==null?void 0:se.optionUrl)==null?void 0:W.menuId,j=N==null?void 0:N.find(Ue=>(Ue==null?void 0:Ue.prop)===(d==null?void 0:d.key));if(I){let Ue=await Ct(j==null?void 0:j.optionUrl,I),Xe,va=ee.value,Ca=(Ke=(ye=(be=we.value)==null?void 0:be.find(Da=>{var Ze;return(Ze=j==null?void 0:j.optionUrl)==null?void 0:Ze.menuId}))==null?void 0:ye.selectValue)==null?void 0:Ke[0];if(Ue==null||Ue.forEach(Da=>{var Ze,il,ya,tl,ge,Fa,fa,Ja,La,Ne;if(I){let Z=(il=(Ze=we.value)==null?void 0:Ze.find(oa=>{var T,Ma;return((T=j==null?void 0:j.optionUrl)==null?void 0:T.menuId)===((Ma=oa==null?void 0:oa.optionUrl)==null?void 0:Ma.menuId)}))==null?void 0:il.prop,Pe=(tl=(ya=N==null?void 0:N.find(oa=>(oa==null?void 0:oa.prop)===Z))==null?void 0:ya.selectValue)==null?void 0:tl[0];Z!=null&&Z.includes("·")&&(Z=(ge=Z==null?void 0:Z.split("·"))==null?void 0:ge[0],Pe=(La=(Ja=(fa=d==null?void 0:d.value)==null?void 0:fa[((Fa=d==null?void 0:d.value)==null?void 0:Fa.length)-1])==null?void 0:Ja.split(" "))==null?void 0:La[0]),va!=null&&va.find(oa=>(oa==null?void 0:oa.value)===Ca)?Xe=(Ne=va==null?void 0:va.find(oa=>(oa==null?void 0:oa.value)===Ca))==null?void 0:Ne.objectValue:Da[Z]===Pe&&(Xe=Da)}}),Xe){let Da=N;Da=Da==null?void 0:Da.map(Ze=>{var il,ya,tl,ge,Fa,fa;return I&&(Xe!=null&&Xe[Ze==null?void 0:Ze.prop])&&Je.value==="新增"&&(Ze==null?void 0:Ze.prop)!==(j==null?void 0:j.prop)?Ze.value=(Xe==null?void 0:Xe[Ze==null?void 0:Ze.prop])||(Xe==null?void 0:Xe[(ge=(tl=(ya=(il=Ze==null?void 0:Ze.optionUrl)==null?void 0:il.groupSelect)==null?void 0:ya[1])==null?void 0:tl.replaceAll("[",""))==null?void 0:ge.replaceAll("]","")]):Ze.value=(fa=(Fa=we.value)==null?void 0:Fa.find(Ja=>(Ja==null?void 0:Ja.prop)===(Ze==null?void 0:Ze.prop)))==null?void 0:fa.value,Ze}),we.value=Da}}re.value=v},dn=async(d,v)=>{var N,I,j,D,ne;if((N=d==null?void 0:d.toString())!=null&&N.includes(".txt")||(I=d==null?void 0:d.toString())!=null&&I.includes(".cpt")||(j=d==null?void 0:d.toString())!=null&&j.includes(".cyd")){const se=await Xa.axios.get(d,{responseType:"blob",headers:{"Content-Type":"application/json"}}),W=new Blob([se.data],{type:"application/octet-stream;charset=UTF-8"});let be=URL.createObjectURL(W);de.value=[{name:(ne=d==null?void 0:d.split("/"))==null?void 0:ne[((D=d==null?void 0:d.split("/"))==null?void 0:D.length)-1],blobUrl:be}],sa.value=!0}else Array.isArray(v)&&(v==null?void 0:v.length)>0&&H("routeUrl",{isEdit:!1,routerUrl:v})};e.onBeforeUnmount(()=>{tn.value=!1;let d=Ur.value;Ur.value=d+1});const zn=e.reactive({prop:"",order:null}),Tn=e.computed(()=>{const d=(Ee.value??[]).slice(),v=zn.prop||ve.prop,N=zn.order||ve.order;if(!v||!N)return d;const I=N==="ascending",j=ne=>{if(v)return ne&&Object.prototype.hasOwnProperty.call(ne,v)?ne[v]:v.includes(".")?v.split(".").reduce((se,W)=>se==null?se:se[W],ne):ne==null?void 0:ne[v]},D=ne=>{if(ne==null)return{ok:!1,value:NaN};if(typeof ne=="number")return{ok:Number.isFinite(ne),value:ne};const se=String(ne).trim();if(se==="")return{ok:!1,value:NaN};const W=se.replace(/[,\s]/g,"");if(!/^[+-]?(\d+\.?\d*|\.\d+)$/.test(W))return{ok:!1,value:NaN};const be=Number(W);return{ok:Number.isFinite(be),value:be}};return d.sort((ne,se)=>{const W=j(ne),be=j(se);if(W==null&&be==null)return 0;if(W==null)return I?-1:1;if(be==null)return I?1:-1;const ye=D(W),Ke=D(be);if(ye.ok&&Ke.ok)return I?ye.value-Ke.value:Ke.value-ye.value;const Ue=ge=>{if(ge==null)return{ok:!1,value:NaN};const Fa=String(ge).trim();if(Fa==="")return{ok:!1,value:NaN};const fa=Fa.match(/^(-)?(\d+):(\d{1,2}):(\d{1,2})$/);if(!fa)return{ok:!1,value:NaN};const Ja=fa[1]?-1:1,La=Number(fa[2]),Ne=Number(fa[3]),Z=Number(fa[4]);return[La,Ne,Z].some(Pe=>Number.isNaN(Pe))?{ok:!1,value:NaN}:Ne>=60||Z>=60?{ok:!1,value:NaN}:{ok:!0,value:Ja*(La*3600+Ne*60+Z)}},Xe=Ue(W),va=Ue(be);if(Xe.ok&&va.ok)return I?Xe.value-va.value:va.value-Xe.value;const Ca=new Date(W).getTime(),Da=new Date(be).getTime(),Ze=!Number.isNaN(Ca),il=!Number.isNaN(Da);if(Ze&&il)return I?Ca-Da:Da-Ca;const ya=String(W),tl=String(be);return I?ya.localeCompare(tl):tl.localeCompare(ya)})}),mi=e.computed(()=>{var N;const d=(pe.currentPage-1)*pe.pageSize,v=d+pe.pageSize;return H("getSliceContLength",pe),(N=Tn.value)==null?void 0:N.slice(d,v)}),Ho=d=>{pe.currentPage=d,H("getSliceContLength",pe)},Uo=d=>{var I;pe.pageSize=d;const v=((I=Ee.value)==null?void 0:I.length)??0,N=d>0?Math.ceil(v/d):1;pe.currentPage>N&&(pe.currentPage=N||1,Xa.ElMessage.warning("当前页超出范围,已自动跳转到最后一页")),H("getSliceContLength",pe)},Mn=({prop:d,order:v})=>{zn.prop=d,zn.order=v,pe.currentPage=1};function qo(d){const v=[];function N(I,j=""){I.forEach(D=>{D.children&&D.children.length>0?N(D.children,D.prop):v.push(D.prop)})}return N(d),v}const Wo=(d,v)=>{var se,W,be,ye;let N=(W=(se=F.value)==null?void 0:se.map(Ke=>Ke==null?void 0:Ke.prop))==null?void 0:W.filter(Ke=>Ke!=="operate");((be=F.value)==null?void 0:be.some(Ke=>{var Ue;return((Ue=Ke==null?void 0:Ke.children)==null?void 0:Ue.length)>0}))&&(N=qo((ye=F.value)==null?void 0:ye.filter(Ke=>(Ke==null?void 0:Ke.prop)!=="operate")));let j;if(j=(d==null?void 0:d.length)===(N==null?void 0:N.length)?d:d.slice(0,N==null?void 0:N.length),!(j==null?void 0:j.every(Ke=>N==null?void 0:N.find(Ue=>Ke===Ue))))return Xa.ElMessage.error("导入的数据表头不匹配");Vn(j,v)},Ko=(d,v)=>{var j;const N=d==null?void 0:d.filter(D=>D!=="序号"),I=v==null?void 0:v.map(D=>{const ne=Object.entries(D);return ne.shift(),Object.fromEntries(ne)});Ia.setRefreshCurStructure(!1),((j=F.value)==null?void 0:j.length)===0||Wo(N,I)},Qi=(d,v,N,I)=>{const j=[],D=[],ne=be=>Object.keys(be).length;for(const be in d)if(d[be]!==void 0){const ye=d[be],Ke=[];for(const[Ue,Xe]of Object.entries(ye))Ke.push(Xe),D.length<ne(ye)&&D.push(Ue);j.push(Ke)}j.unshift(D);const se=ie.utils.aoa_to_sheet(j),W=ie.utils.book_new();ie.utils.book_append_sheet(W,se,I),ie.writeFileSync(W,`${v}.xlsx`),Tr.value=[]},Oi=async(d,v,N,I=!1,j)=>{try{Ia.setRefreshCurStructure(!1)}catch(D){Xa.ElMessage.error(D)}},sn=async(d,v)=>{await Oi()},Go=async(d,v)=>{await Oi("columnType",v,d,!1)},Yo=async({newRow:d,targetIndex:v})=>{var j;if(!Ta(p.config,{type:ba.TABLE}))return;const I=(pe.currentPage-1)*pe.pageSize+(v??0);d._isTemp=!0;try{(d.sort===void 0||d.sort===null||String(d.sort).trim()==="")&&(d.sort=On(I,Ee.value||[]))}catch{}Ee.value.splice(I,0,d),await e.nextTick(),f.value.has(d.id)||f.value.set(d.id,z.cloneDeep(d)),Ee.value=(j=Ee.value)==null?void 0:j.map(D=>({...D,tableEditType:(D==null?void 0:D.id)===d.id?"edit":(D==null?void 0:D.tableEditType)??"text"})),t.value.add(d.id),Yl.value=!0},Jo=(d,v,N,I=[])=>(!Array.isArray(v)||v.length===0||v.forEach(j=>{const D=j==null?void 0:j.prop;if(!D)return;let ne=d==null?void 0:d[D];if(ne==null||String(ne).trim()==="")return;ne=String(ne);const se=new Set([...(Array.isArray(N)?N:[]).filter(ye=>(ye==null?void 0:ye.id)!==(d==null?void 0:d.id)).map(ye=>ye==null?void 0:ye[D]).filter(ye=>ye!=null).map(ye=>String(ye)),...(Array.isArray(I)?I:[]).map(ye=>ye==null?void 0:ye[D]).filter(ye=>ye!=null).map(ye=>String(ye))]);if(!se.has(ne))return;let W=1,be="";for(;be=`${ne}(${W})`,!!se.has(be);)W++;d[D]=be}),d),Li=async()=>{var j,D,ne,se,W,be,ye,Ke;const d=Array.from(t.value||[]);if(d.length===0)return;const v=(D=ie.getColumnChild((j=z.cloneDeep(F.value))==null?void 0:j.filter(Ue=>(Ue==null?void 0:Ue.label)!=="操作")))==null?void 0:D.filter(Ue=>(Ue==null?void 0:Ue.required)===!0);if((v==null?void 0:v.length)>0)for(let Ue=0;Ue<d.length;Ue++){const Xe=d[Ue],va=(ne=Ee.value)==null?void 0:ne.find(Ca=>(Ca==null?void 0:Ca.id)===Xe);if(va)for(let Ca=0;Ca<v.length;Ca++){const Da=v[Ca],Ze=Da==null?void 0:Da.prop,il=(Da==null?void 0:Da.label)??Ze,ya=va==null?void 0:va[Ze];if(ya===""||ya===null||ya===void 0||Array.isArray(ya)&&ya.length===0){Xa.ElMessage.error(`${il}不能为空`);let ge={};ge.id=va==null?void 0:va.id;const Fa={fixContent:[ge],buttonName:"修改",relatedContents:p==null?void 0:p.related,name:p==null?void 0:p.compName,columns:F.value};H("change",Fa);return}}}const N=[],I=[];if(d.forEach(Ue=>{var il;const Xe=(il=Ee.value)==null?void 0:il.find(ya=>(ya==null?void 0:ya.id)===Ue);if(!Xe)return;if(Xe!=null&&Xe._isTemp){const tl=(ie.getAllLeafNodes(F.value)||[]).filter(Ne=>(Ne==null?void 0:Ne.mainKey)===!0||(Ne==null?void 0:Ne.isMainKey)===!0),ge=Ee.value.findIndex(Ne=>(Ne==null?void 0:Ne.id)===Ue),Fa=ge>=0?ge+1:Ee.value.length+1;Jo(Xe,tl,Ee.value,N);const fa={id:Fa.toString()};(Xe==null?void 0:Xe.sort)!==void 0&&(Xe==null?void 0:Xe.sort)!==null&&String(Xe.sort).trim()!==""?fa.sort=String(Xe.sort):fa.sort=On(ge>=0?ge:Ee.value.length-1,Ee.value||[]),(ie.getAllLeafNodes(F.value)||[]).filter(Ne=>(Ne==null?void 0:Ne.type)!=="operate"&&(Ne==null?void 0:Ne.label)!=="操作"&&(Ne==null?void 0:Ne.prop)!=="operate").forEach(Ne=>{const Z=Ne==null?void 0:Ne.prop;if(Z){const Pe=Xe[Z];Pe!==void 0?fa[Z]=Pe??"":fa[Z]=""}}),N.push(fa);return}const Ca=(ie.getAllLeafNodes(F.value)||[]).filter(ya=>(ya==null?void 0:ya.type)!=="operate"&&(ya==null?void 0:ya.label)!=="操作"&&(ya==null?void 0:ya.prop)!=="operate"),Da=new Set(Ca.map(ya=>ya==null?void 0:ya.prop).filter(Boolean)),Ze={};for(const ya of Da)Object.prototype.hasOwnProperty.call(Xe,ya)&&(Ze[ya]=Xe[ya]);I.push({id:Xe.id,value:{tableData:Ze}})}),Ia.setTableLoading(p==null?void 0:p.index),I.length>0){const Ue=I.map(va=>{const Ca={id:va.id,...va.value.tableData};return delete Ca._isOCRRow,delete Ca._ocrTableId,delete Ca._isTemp,delete Ca.tableEditType,delete Ca.index,Ca}),Xe=[{tableName:((se=p==null?void 0:p.related)==null?void 0:se.find(va=>va==null?void 0:va.includes("content")))??"content_"+(p==null?void 0:p.index),tableContents:Ue}];try{await z.pageBatchUpdateApi({platId:parseInt((W=Ml.value)==null?void 0:W.plat_id),changeContents:Xe})}catch(va){Xa.ElMessage.error(((ye=(be=va==null?void 0:va.response)==null?void 0:be.data)==null?void 0:ye.message)||(va==null?void 0:va.message)||"保存失败"),Ia.setTableLoading(!1);return}}if(N.length>0){const Ue={fixContent:N,buttonName:"新增",relatedContents:p==null?void 0:p.related,name:p==null?void 0:p.compName,columns:F.value};H("change",Ue)}Xa.ElMessage.success("保存成功"),t.value.clear(),f.value.clear(),Ee.value=(Ke=Ee.value)==null?void 0:Ke.map(Ue=>({...Ue,tableEditType:"text"})),Yl.value=!1,Ia.setRefreshCurStructure(!0)},Xo=()=>{var v;const d=Array.from(t.value||[]);if(d.length===0){Yl.value=!1;return}d.forEach(N=>{var D,ne;const I=f.value.get(N),j=(D=Ee.value)==null?void 0:D.find(se=>(se==null?void 0:se.id)===N);if(j!=null&&j._isTemp){Ee.value=Ee.value.filter(se=>(se==null?void 0:se.id)!==j.id);return}if(I){const se=(ne=Ee.value)==null?void 0:ne.findIndex(W=>(W==null?void 0:W.id)===N);se!==-1&&(Ee.value[se]={...Ee.value[se],...I})}}),t.value.clear(),f.value.clear(),Ee.value=(v=Ee.value)==null?void 0:v.map(N=>({...N,tableEditType:"text"})),Yl.value=!1},Ri=e.ref(!1),eo=async d=>{var j,D,ne,se;if(!Yl.value||d!=null&&d.isComposing||(d==null?void 0:d.key)!=="Enter")return;const v=d==null?void 0:d.target;if(((D=(j=v==null?void 0:v.tagName)==null?void 0:j.toLowerCase)==null?void 0:D.call(j))==="textarea")return;const I=document.getElementById("excel-table");I&&!I.contains(v)||((ne=v==null?void 0:v.blur)==null||ne.call(v),(se=d.preventDefault)==null||se.call(d),await e.nextTick(),await ao())},ao=async()=>{if(Q.value){Yl.value=!1;return}if(!Ri.value){Ri.value=!0;try{Array.from(t.value||[]).length>0?await Li():Yl.value=!1}finally{Promise.resolve().then(()=>{Ri.value=!1})}}},lo=d=>{Tr.value=d},yi=(d,v)=>{kr.value===v?wr.value=!1:wr.value=!0,kr.value=v==null?void 0:v.changeProp},Fn=d=>{if(!d)return;const{item:v,value:N}=d,I=we.value.find(j=>j.prop==v.prop);I&&I.contents.push({label:N,value:N})},In=e.computed(()=>{var N,I,j;const d=(N=F.value)==null?void 0:N.some(D=>D==null?void 0:D.filterable);return document.documentElement.style.setProperty("--ssTable-header-filter-display",d?"inline-block":"none"),(j=(I=F.value)==null?void 0:I.filter(D=>(D==null?void 0:D.label)!=="操作"))==null?void 0:j.map(D=>({...D,filterable:!!(D!=null&&D.filterable),showSummary:!!(D!=null&&D.showSummary),operable:!!(D!=null&&D.operable),fixed:D==null?void 0:D.fixed}))}),ro=async(d,v,N)=>{const I=z.cloneDeep(F.value);await e.nextTick();const j=I==null?void 0:I.map(ne=>(N==null?void 0:N.label)===(ne==null?void 0:ne.label)?{...ne,[v]:d}:ne),D=gi(j);await Ss(p.index,D),F.value=j,X.value=D},gi=d=>{var j;const v=d||[];return((j=ie.getAllLeafNodes(v)||[])==null?void 0:j.filter(D=>(D==null?void 0:D.prop)&&(D==null?void 0:D.type)!=="operate"&&(D==null?void 0:D.label)!=="操作"&&(D==null?void 0:D.prop)!=="operate")).map(D=>{const{prop:ne}=D;return x0(ne,D)})},no=async d=>{let v=await _0(p.index);v||(v=gi(d)),X.value=v},io=async(d,v)=>{const N=z.cloneDeep(F.value),I=ne=>Array.isArray(ne)?ne.map(se=>{const W=Array.isArray(se==null?void 0:se.children)&&se.children.length>0,be={...se};return(be==null?void 0:be.prop)==="operate"||(be==null?void 0:be.label)==="操作"||(be==null?void 0:be.type)==="operate"?(be.sortable=!1,be.filterable=!1,be.operable=!1):be.sortable=W?!1:!!d,W&&(be.children=I(be.children)),be}):ne,j=I(N),D=gi(j);await Ss(p.index,D),F.value=j,X.value=D,await e.nextTick(),Ur.value=Ur.value+1},ri=()=>{K.value=!1},Zo=d=>{H("clickTrigger",d)},oo=async d=>{var D,ne,se,W,be,ye,Ke,Ue,Xe,va,Ca,Da,Ze,il,ya;const v=d==null?void 0:d.row,N=d==null?void 0:d.rowData,I=d==null?void 0:d.suffix;if((D=v==null?void 0:v.toString())!=null&&D.includes(".urdf")||d!=null&&d.isUrdf||I!=null&&I.includes(".urdf")){if(v.includes(",")){Xa.ElMessage.error("当前版本仅允许单个urdf预览!");return}if(q(v)){const ge={files:[Qe(v)],data:{}};$e(ge);return}He.value=[{url:v,extension:Me(v)}],B.value=!0,te.value={data:z.cloneDeep(N)},ce.value=!0;return}let j=[];if((ne=v==null?void 0:v.toString())!=null&&ne.includes(".stl")||(se=v==null?void 0:v.toString())!=null&&se.includes(".STL")||(W=v==null?void 0:v.toString())!=null&&W.includes(".obj")||(be=v==null?void 0:v.toString())!=null&&be.includes(".mtl")){const tl=(ye=v==null?void 0:v.toString())==null?void 0:ye.split(","),ge=_a(tl),Fa=ge==null?void 0:ge[0];if(q(Fa==null?void 0:Fa.extension)){$e({files:ge,data:{}});return}He.value=ge,B.value=!1,ce.value=!0;return}if((Ke=v==null?void 0:v.toString())!=null&&Ke.includes(".stl")||(Ue=v==null?void 0:v.toString())!=null&&Ue.includes(".STL")||(Xe=v==null?void 0:v.toString())!=null&&Xe.includes(".obj")||(va=v==null?void 0:v.toString())!=null&&va.includes(".mtl")||I!=null&&I.includes(".stl")||I!=null&&I.includes(".STL")||I!=null&&I.includes(".obj")||I!=null&&I.includes(".mtl")){let tl,ge=[],Fa={};if(Array.isArray(v)?tl=v:tl=v==null?void 0:v.split(","),tl==null||tl.forEach(fa=>{fa.includes(".mtl")?ge.push(fa):Fa.blob=Fa.blob?Fa.blob+","+fa:fa}),(ge==null?void 0:ge.length)>0&&(Fa.mtlBlobs=ge),I&&(Fa.suffix=I),(Da=(Ca=Object.values(Fa))==null?void 0:Ca[0])!=null&&Da.includes("http:"))j.push(Fa);else{const fa=new Blob([Fa.blob],{type:"application/octet-stream;charset=UTF-8"});let Ja=URL.createObjectURL(fa),La="";(Ze=v==null?void 0:v.split("/"))==null||Ze.forEach((Ne,Z)=>{var Pe;Z===((Pe=v==null?void 0:v.split("/"))==null?void 0:Pe.length)-1&&(La=Ne)}),(il=Fa.blob)!=null&&il.includes(".stl")&&(La=(La==null?void 0:La.replaceAll(">",""))+".urdf"),de.value=[{name:La,blobUrl:Ja}],sa.value=!0}}else{const tl=await Xa.axios.get(v,{responseType:"blob",headers:{"Content-Type":"application/json"}}),ge=new Blob([tl.data],{type:"application/octet-stream;charset=UTF-8"});let Fa=URL.createObjectURL(ge),fa="";if((ya=v==null?void 0:v.split("/"))==null||ya.forEach((Ja,La)=>{var Ne;La===((Ne=v==null?void 0:v.split("/"))==null?void 0:Ne.length)-1&&(fa=Ja)}),q(fa)){const Ja=xe(fa),La=Qe(v);$e({files:[La],data:{trackFileType:Ja}});return}de.value=[{name:fa,blobUrl:Fa}],sa.value=!0}(j==null?void 0:j.length)>0&&r.setBlobUrls(j)},ni=d=>{var I,j,D,ne;if(d!=null&&d.downloadUrl)return d==null?void 0:d.name;const v=(ne=(I=d==null?void 0:d.url)==null?void 0:I.split("."))==null?void 0:ne[((D=(j=d==null?void 0:d.url)==null?void 0:j.split("."))==null?void 0:D.length)-1];return(d==null?void 0:d.name)+"."+v},to=d=>{if(!d)return"未知文件";try{const I=ni(d);if(typeof I=="string"&&I.includes("."))return I}catch{}const v=(d==null?void 0:d.fileName)||(d==null?void 0:d.name)||"未知文件",N=(d==null?void 0:d.suffix)||"";return v.includes(".")?v:`${v}${N}`},so=d=>{if(d==null||typeof d=="number"||typeof d!="string")return d;const v=d.match(/^(\d+)\_(\d+)$/);if(!v)return d;const N=Number(v[1]),I=Number(v[2]);return!Number.isFinite(N)||!Number.isFinite(I)?d:String(N*1e3+I)},ii=d=>{if(d==null)return null;const v=String(d).trim();if(!v)return null;const N=Number(v);return Number.isFinite(N)?N:null},$i=d=>{if(d==null)return null;const v=String(d).trim();if(!v)return null;if(/^\d+$/.test(v)){const j=Number(v);return Number.isFinite(j)?v.length<=10?j*1e3:j:null}const N=v.includes("T")?v:v.replace(" ","T"),I=Date.parse(N);return Number.isFinite(I)?I:null},co=(d,v=[])=>{const N=Array.isArray(d)?d.slice():[];if(N.length<=1)return N;const I=new Map((v||[]).map((ne,se)=>[String(ne),se])),j=N.some(ne=>ii(ne==null?void 0:ne.sort)!==null),D=N.map((ne,se)=>({r:ne,idx:se,id:String((ne==null?void 0:ne.id)??""),sortVal:ii(ne==null?void 0:ne.sort),createTimeMs:$i(ne==null?void 0:ne.create_time),prevIdx:I.has(String(ne==null?void 0:ne.id))?I.get(String(ne==null?void 0:ne.id)):Number.POSITIVE_INFINITY}));return D.sort((ne,se)=>{if(j){const ye=ne.sortVal,Ke=se.sortVal;if(ye===null&&Ke!==null)return 1;if(ye!==null&&Ke===null)return-1;if(ye!==null&&Ke!==null&&ye!==Ke)return ye-Ke}const W=ne.createTimeMs,be=se.createTimeMs;return W!==null&&be!==null&&W!==be?be-W:W!==null&&be===null?-1:W===null&&be!==null?1:ne.prevIdx!==se.prevIdx?ne.prevIdx-se.prevIdx:ne.idx-se.idx}),D.map(ne=>ne.r)},On=(d,v=[])=>{const N=v==null?void 0:v[d-1],I=v==null?void 0:v[d],j=ii(N==null?void 0:N.sort),D=ii(I==null?void 0:I.sort);let ne=null;j!==null&&D!==null&&D>j?ne=(j+D)/2:j!==null?ne=j+1:D!==null?ne=Math.max(D-1,0):ne=(d??0)+1;const se=Number(ne.toFixed(6));return String(Number.isFinite(se)?se:ne)},Qo=async d=>{let v=null,N=null;if(d!=null&&d.id){const j=z.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});try{const D=await z.platformDownloadFile(d);v=URL.createObjectURL(D.data),N=to(d)}finally{j.close()}}else if(d!=null&&d.downloadUrl){const j=await ki(),D=z.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),ne=await Xa.axios.post(d==null?void 0:d.url,null,{responseType:"blob",headers:{Authorization:j,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}).finally(()=>{D.close()}),se=new Blob([ne.data],{type:"application/octet-stream;charset=UTF-8"});v=URL.createObjectURL(se),N=d==null?void 0:d.name}else{const j=await z.platformDownloadFile({url:d==null?void 0:d.url});!d.url.toUpperCase().includes(".OBJ")&&!d.url.toUpperCase().includes(".STL")&&!d.url.toUpperCase().includes(".MTL")&&!d.url.toUpperCase().includes(".URDF")?(v=URL.createObjectURL(j.data),N=ni(d)):v=d==null?void 0:d.url}if(q(v)){const j={row:`${v}`,suffix:Me(N)};oo(j);return}const I={name:N,blobUrl:v};de.value=[I],sa.value=!0},Vi=async d=>{let v=null,N=null;if(d!=null&&d.id){const D=await z.platformDownloadFile(d);v=URL.createObjectURL(D.data),N=to(d)}else if(d!=null&&d.downloadUrl){const D=await ki(),ne=await Xa.axios.post(d==null?void 0:d.url,null,{responseType:"blob",headers:{Authorization:D,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}),se=new Blob([ne.data],{type:"application/octet-stream;charset=UTF-8"});v=URL.createObjectURL(se),N=d==null?void 0:d.name}else{const D=await z.platformDownloadFile({url:d==null?void 0:d.url});v=URL.createObjectURL(D.data),N=ni(d)}const I={name:N,blobUrl:v},j=document.createElement("a");j.href=I.blobUrl,j.download=I.name,j.style.display="none",document.body.appendChild(j),j.click(),setTimeout(()=>{document.body.removeChild(j)},100)},et=(d,v)=>{var I;if(Object.values(v).length===0)return;let N=d;return Object.values(v).find(j=>{var D,ne,se;return((D=j==null?void 0:j.toString())==null?void 0:D.includes(".txt"))||((ne=j==null?void 0:j.toString())==null?void 0:ne.includes(".cpt"))||((se=j==null?void 0:j.toString())==null?void 0:se.includes(".obj"))})?N=[...d,Fe.value]:(I=p==null?void 0:p.config)!=null&&I.allowMove&&(N=[...d,{label:"迁移"}]),N},at=()=>{P.value=!0},uo=e.ref([]),oi=async(d,v,N=!1)=>{var ne,se,W,be;if(!d)return;if(N){Ee.value=[...Ea.value.values()].filter(ye=>Object.values(ye).some(Ke=>typeof Ke=="string"?Ke==null?void 0:Ke.toLowerCase().includes(v==null?void 0:v.toLowerCase()):!1));return}let I={};for(let ye in d)(d==null?void 0:d[ye])!==""&&(I[ye]=d==null?void 0:d[ye]);if(JSON.stringify(I)==="{}"){Ee.value=Array.from(((ne=Ea.value)==null?void 0:ne.values())??[]);return}let j=(se=p==null?void 0:p.related)==null?void 0:se.find(ye=>ye==null?void 0:ye.includes("content_")),D=await z.getFillFind({platId:parseInt((W=Ml==null?void 0:Ml.value)==null?void 0:W.plat_id),tableName:j,params:I});D=(be=D==null?void 0:D.data)==null?void 0:be.result,Ee.value=D,Ia.setTableLoading(!1)},Ln=e.computed(()=>{var v,N;return((N=(v=p==null?void 0:p.itemData)==null?void 0:v.find(I=>(I==null?void 0:I.key)==="isEdit"))==null?void 0:N.contents)??!0}),po=async d=>{var j,D,ne,se,W,be;if(!Ta(p.config,{type:ba.TABLE})||!(((D=(j=p==null?void 0:p.itemData)==null?void 0:j.find(ye=>(ye==null?void 0:ye.key)==="isEdit"))==null?void 0:D.contents)??!0))return;let N=(se=(ne=u.value)==null?void 0:ne.find(ye=>{var Ke;return(Ke=ye==null?void 0:ye.key)==null?void 0:Ke.includes("@EditRead")}))==null?void 0:se.content;if((N==null?void 0:N.length)>0){let ye=ws(N,d);if((ye==null?void 0:ye.length)>0)return}if(!d)return;((W=Array.from(t.value))==null?void 0:W.length)>0&&await Li();const I=d==null?void 0:d.id;I!=null&&(t.value.clear(),f.value.clear(),f.value.has(I)||f.value.set(I,z.cloneDeep(d)),Ee.value=(be=Ee.value)==null?void 0:be.map(ye=>({...ye,tableEditType:(ye==null?void 0:ye.id)===I?"edit":"text"})),t.value.add(I),Yl.value=!0)},bi=async(d,v,N,I)=>{I!=null&&I.isExistChild&&H("clickMainKey",d,N,F.value)},lt=()=>{sa.value=!1},rt=d=>{H("rowClick",d)};e.watch(()=>p.changedContent,()=>{var N,I;if(!p.changedContent)return;let d=(N=Ee.value)==null?void 0:N.map(j=>{var D;return j.id===((D=p.changedContent)==null?void 0:D.id)&&(j={...p.changedContent,id:p.changedContent.newId?p.changedContent.newId:p.changedContent.id},delete j.newId),j});const v=(I=p.itemData)==null?void 0:I.map(j=>((j==null?void 0:j.key)==="tableContents"&&(j.contents=d),j));Ee.value=d,H("contentChange",{contents:v,index:p.index}),H("change",{content:d,index:p==null?void 0:p.index,buttonName:"",id:p==null?void 0:p.index})},{deep:!0,immediate:!0});const nt=()=>{},it=async()=>{const d=ue.value,v=sessionStorage.getItem("systemKey"),N=await ie.getItemData(d,v,""),I=(N==null?void 0:N.find(se=>(se==null?void 0:se.name)==="方法明细"))||(N==null?void 0:N[0]),j=(I==null?void 0:I.compData)||[],D=j==null?void 0:j.find(se=>{const W=se==null?void 0:se.key;return W==="formContent"||W==="tableContents"});return D==null?void 0:D.contents},ki=async()=>{const v=Xa.Local.get("access-token");return v?`Bearer ${v}`:""},ot=async(d,{token:v,inputData:N}={})=>await Xa.axios.post(d,N,{headers:{Authorization:v}}).catch(j=>(ea.setImportLoading(!1),Promise.reject(j))),tt=d=>{var I;let v={};const N=[];return v.form={},(I=z.cloneDeep(d))==null||I.forEach((j,D)=>{var ne,se,W,be,ye,Ke,Ue,Xe,va,Ca,Da,Ze,il,ya;if((j==null?void 0:j.comp)==="Table"){(se=(ne=j==null?void 0:j.compData)==null?void 0:ne.find(fa=>(fa==null?void 0:fa.key)==="header"))==null||se.contents;let tl=(ye=(be=(W=j==null?void 0:j.compData)==null?void 0:W.find(fa=>(fa==null?void 0:fa.key)==="tableContents"))==null?void 0:be.contents)==null?void 0:ye.map(fa=>fa.slice(1));(Ca=(va=(Xe=(Ue=(Ke=j==null?void 0:j.compData)==null?void 0:Ke.find(fa=>(fa==null?void 0:fa.key)==="header"))==null?void 0:Ue.contents)==null?void 0:Xe[0])==null?void 0:va[0])==null||Ca.label;let ge=(Ze=(Da=j==null?void 0:j.compData)==null?void 0:Da.find(fa=>(fa==null?void 0:fa.key)==="header"))==null?void 0:Ze.contents,Fa=[];tl==null||tl.forEach(fa=>{let Ja=[];fa==null||fa.forEach((La,Ne)=>{var Pe;let Z={};((Pe=ge[Ne])==null?void 0:Pe.label)!=="操作"&&(Z[ge[Ne].label]=La,Ja.push(Z))}),Fa.push(Ja)}),v[j.name]=Fa}else{const tl=(ya=(il=j.compData)==null?void 0:il.find(ge=>(ge==null?void 0:ge.key)==="formContent"))==null?void 0:ya.contents;tl==null||tl.forEach(ge=>{var Fa,fa;if(ge.prop!==""){let Ja=ge==null?void 0:ge.value;Array.isArray(Ja)?Ja=((Fa=Ja==null?void 0:Ja[0])==null?void 0:Fa.oldUrl)||"http://222.92.178.198:62001/"+((fa=Ja==null?void 0:Ja[0])==null?void 0:fa.url):Ja=Ja.toString(),ge={key:(ge==null?void 0:ge.prop)??(ge==null?void 0:ge.label),value:Ja},N.push(ge)}})}}),v.form=ie.getFormContents(N),v},st=d=>{const v=[],N=I=>{I&&typeof I=="object"&&!Array.isArray(I)?Object.values(I).forEach(N):v.push(I)};return N(d),v},ct=async(d,v,N)=>{var ge,Fa,fa,Ja,La,Ne,Z,Pe,oa,T,Ma,Ha,sl,Ga,xa,dl,ql;ea.setImportLoading(!0),Ia.setFreshContent(!1);let I=await it().catch(qa=>(ea.setImportLoading(!1),Promise.reject(qa)));I=I==null?void 0:I.filter(qa=>{var Dl;return((Dl=qa==null?void 0:qa.find(Va=>Va==null?void 0:Va.id))==null?void 0:Dl.id)===(v==null?void 0:v.id)});let j=ie.getEqualChild([(ge=F.value)==null?void 0:ge.filter(qa=>(qa==null?void 0:qa.label)!=="操作")]);const D=(fa=(Fa=ie.tableToForm(I,j))==null?void 0:Fa[0])==null?void 0:fa.find(qa=>{const Dl=qa==null?void 0:qa.key;return Dl==="Interface"||Dl==="方法体"}),ne=D==null?void 0:D.value;if(!ne){console.log("未搜索到isMain, 缺少算法执行接口"),ea.setImportLoading(!1);return}const se=F.value?ie.getEqualChild([F.value]):[],W=se.find(qa=>{const Dl=qa==null?void 0:qa.prop;return Dl==="Input1"||Dl==="输入数据.输入1"||Dl==="样本输入数据"}),be=W==null?void 0:W.prop;let ye=v==null?void 0:v[be];const Ke=await ki().catch(qa=>(ea.setImportLoading(!1),Promise.reject(qa)));let Ue=!0,Xe="";(Ja=F.value)==null||Ja.forEach(qa=>{(qa==null?void 0:qa.prop)===be&&(Ue=!!(qa!=null&&qa.childPath),Xe=qa==null?void 0:qa.childPath)});let va="";if(Ue){let qa=(Ne=(La=F.value)==null?void 0:La.find(hl=>(hl==null?void 0:hl.isMainKey)===!0))==null?void 0:Ne.prop;va=v==null?void 0:v[qa];let Dl=Xe==null?void 0:Xe.split(R),Va=[];Dl==null||Dl.forEach((hl,Ol)=>{(Dl==null?void 0:Dl.length)-1===Ol&&Va.push(va),Va.push(hl)}),Va=Va==null?void 0:Va[0];let $l=await ie.getItemData(Va,sessionStorage.getItem("systemKey"),""),nl=$l==null?void 0:$l.filter(hl=>(hl==null?void 0:hl.name)===be);nl=nl==null?void 0:nl.map(hl=>{var Ol;return hl.compData=(Ol=hl==null?void 0:hl.compData)==null?void 0:Ol.map(kl=>{var gr;return(kl==null?void 0:kl.key)==="tableContents"&&(kl.contents=(gr=kl==null?void 0:kl.contents)==null?void 0:gr.filter(tr=>(tr==null?void 0:tr[1])===(v==null?void 0:v[be]))),kl}),hl}),(!nl||(nl==null?void 0:nl.length)===0)&&(nl=$l,nl=nl==null?void 0:nl.map(hl=>{var Ol;return hl.compData=(Ol=hl==null?void 0:hl.compData)==null?void 0:Ol.map(kl=>{var gr;return(kl==null?void 0:kl.key)==="tableContents"&&(kl.contents=(gr=kl==null?void 0:kl.contents)==null?void 0:gr.filter(tr=>{var lr,wl;return(tr==null?void 0:tr[1])===(v==null?void 0:v[(wl=(lr=F==null?void 0:F.value)==null?void 0:lr[0])==null?void 0:wl.prop])})),kl}),hl})),ye=tt(nl)}const Ca=await ot(ne,{token:Ke,inputData:ye}).catch(qa=>(ea.setImportLoading(!1),Promise.reject(qa))),Da=(Z=Ca==null?void 0:Ca.data)==null?void 0:Z.data,Ze=se.find(qa=>(qa==null?void 0:qa.prop)==="Output1"),il=Ze==null?void 0:Ze.prop;let ya=[],tl=[];if(Da&&((Pe=Object.values(Da))==null?void 0:Pe.length)>0){let qa=[];const Dl=new FormData,Va=(oa=st(Da))==null?void 0:oa.map(async nl=>{var hl,Ol;if(!Array.isArray(nl)&&(nl!=null&&nl.includes("http"))){let kl=await Xa.axios.get(nl,{responseType:"blob"}),gr=(Ol=nl==null?void 0:nl.split("/"))==null?void 0:Ol[((hl=nl==null?void 0:nl.split("/"))==null?void 0:hl.length)-1];Dl.append("files",kl.data,gr)}else qa.push(nl)});if(await Promise.all(Va),!ie.isFormDataEmpty(Dl)){let nl=await z.uploadAmountApi(Dl),hl=(Ma=(T=nl==null?void 0:nl.data)==null?void 0:T.result)==null?void 0:Ma.map(Ol=>{var kl,gr,tr,lr,wl,Zl;return{name:(Zl=(wl=(lr=(kl=Ol==null?void 0:Ol.url)==null?void 0:kl.split("/"))==null?void 0:lr[((tr=(gr=Ol==null?void 0:Ol.url)==null?void 0:gr.split("/"))==null?void 0:tr.length)-1])==null?void 0:wl.split("."))==null?void 0:Zl[0],url:Ol==null?void 0:Ol.url}});qa=[...qa,...hl]}let $l={};for(let nl in v)nl!=="id"&&($l[nl]=v[nl]);$l[il]=qa,tl.push({id:v==null?void 0:v.id,value:{tableData:$l}})}if((tl==null?void 0:tl.length)>0){const qa=tl.map(Va=>{const $l={id:Va.id,...Va.value.tableData};return delete $l._isOCRRow,delete $l._ocrTableId,delete $l._isTemp,delete $l.tableEditType,delete $l.index,$l}),Dl=[{tableName:(Ha=p==null?void 0:p.related)==null?void 0:Ha.find(Va=>Va==null?void 0:Va.includes("content")),tableContents:qa}];await z.pageBatchUpdateApi({platId:parseInt((sl=Ml.value)==null?void 0:sl.plat_id),changeContents:Dl})}if((ya==null?void 0:ya.length)>0)try{await z.pageBatchAddApi({platId:parseInt((Ga=Ml.value)==null?void 0:Ga.plat_id),changeContents:[{tableName:(xa=p==null?void 0:p.related)==null?void 0:xa.find(qa=>qa==null?void 0:qa.includes("content")),tableContents:ya.map(qa=>{var Va,$l,nl;const Dl={id:((Va=qa==null?void 0:qa.key)==null?void 0:Va.id)??(($l=qa==null?void 0:qa.key)==null?void 0:$l.rowId)??(qa==null?void 0:qa.id),...((nl=qa==null?void 0:qa.value)==null?void 0:nl.tableData)||{}};return delete Dl._isOCRRow,delete Dl._ocrTableId,delete Dl._isTemp,delete Dl.tableEditType,delete Dl.index,Object.keys(Dl).forEach(hl=>{hl==="证书附件"&&Array.isArray(Dl[hl])&&(Dl[hl]=JSON.stringify(Dl[hl]))}),Dl})}]})}catch(qa){Xa.ElMessage.error(((ql=(dl=qa==null?void 0:qa.response)==null?void 0:dl.data)==null?void 0:ql.message)||(qa==null?void 0:qa.message)||"保存失败"),Ia.setTableLoading(!1);return}ji(!0),ea.setImportLoading(!1),Ia.setFreshContent(!0)},fo=(d,v)=>(d=d==null?void 0:d.map(N=>{var I,j;return N!=null&&N.children&&((I=N.children)!=null&&I.find(D=>D.id===(v==null?void 0:v.id))?N.children=(j=N.children)==null?void 0:j.filter(D=>(D==null?void 0:D.id)!==(v==null?void 0:v.id)):N.children=fo(N.children,v)),N}),d),s=e.ref(!1),o=()=>{s.value=!0},h=async d=>{var N,I,j,D;s.value=!1;const v=Array.isArray(d)?d:d?[d]:[];if(v.length!==0)for(const ne of v){const se={name:ne.name||`capture-${Date.now()}.jpg`,url:URL.createObjectURL(ne),raw:ne,uid:Date.now()+Math.random()};Nl.value.push(se),Vr(se,"uploading"),Ir(se,0);try{const W=new FormData;W.append("file",ne,se.name);const be=await z.platformUploadFile(W);se.uploadResult=((N=be==null?void 0:be.data)==null?void 0:N.result)||{name:se.name,url:"",fileName:se.name},Vl({name:((I=se.uploadResult)==null?void 0:I.name)||se.name,url:((j=se.uploadResult)==null?void 0:j.url)||"",id:(D=se.uploadResult)==null?void 0:D.id}),Vr(se,"uploaded"),Ir(se,100)}catch(W){console.error("文件上传失败:",W),Xa.ElMessage.error(`文件 ${se.name} 上传失败,请重试`),Vr(se,"pending"),Ir(se,0);const be=Nl.value.findIndex(ye=>ye.uid===se.uid);be>-1&&Nl.value.splice(be,1)}}},y=e.reactive({title:"迁移至",show:!1,width:"20%",selectRow:null,from:p==null?void 0:p.index,to:null,contents:[],formRules:{groupName:[{required:!0,message:"输入不能为空",trigger:"blur"},{validator:(d,v,N)=>{v===(p==null?void 0:p.index)?N(new Error("选择源不能和目标源一致")):N()}}]},buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"确认",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]}),k=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:""}),L=()=>{k.show=!1},Y=async d=>{var v,N,I,j,D,ne,se,W;try{const be=[];let ye=(v=Ee.value||[])==null?void 0:v.slice();(d||[]).forEach(Ca=>{const Da={...Ca};try{Da.sort=On(0,ye)}catch{}be.push(Da),ye.unshift(Da)});let Ke=await z.quoteApi({platId:parseInt((N=Ml==null?void 0:Ml.value)==null?void 0:N.plat_id),type:"fatherSyncs",related:[{menus:ue.value,groups:""},{menus:ue.value,groups:p==null?void 0:p.compName}]});Ke=(I=Ke==null?void 0:Ke.data)==null?void 0:I.result;let Ue=Ke==null?void 0:Ke.map(Ca=>({tableName:"content_"+(Ca==null?void 0:Ca.id),tableContents:be==null?void 0:be.map((Da,Ze)=>({id:Ze,...Da}))})),Xe=[{tableName:(j=p==null?void 0:p.related)==null?void 0:j.find(Ca=>Ca==null?void 0:Ca.includes("content")),tableContents:be==null?void 0:be.map((Ca,Da)=>({id:Da,...Ca}))}];Xe=[...Xe,...Ue];const va=await z.pageBatchAddApi({platId:parseInt((D=Ml.value)==null?void 0:D.plat_id),changeContents:Xe});if(((ne=va==null?void 0:va.data)==null?void 0:ne.code)===200){const Ca={buttonName:"新增",columns:F.value,fixContent:be==null?void 0:be.map((Ze,il)=>({id:il,...Ze})),relatedContents:p==null?void 0:p.related};await Nt(Ca),Xa.ElMessage.success("数据导入成功");let Da=[];Xe==null||Xe.forEach(Ze=>{var il;(il=Ze==null?void 0:Ze.tableContents)==null||il.forEach(ya=>{Da.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(ya),request_result:"{}",is_delete:!1,request_table:Ze==null?void 0:Ze.tableName,request_type:"export"})})}),await z.pageBatchAddApi({platId:parseInt((se=Ml==null?void 0:Ml.value)==null?void 0:se.plat_id),changeContents:[{tableName:"log",tableContents:Da}]})}else{let Ca=[];Xe==null||Xe.forEach(Da=>{var Ze;(Ze=Da==null?void 0:Da.tableContents)==null||Ze.forEach(il=>{Ca.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(il),request_result:"{}",is_delete:!1,request_table:Da==null?void 0:Da.tableName,request_type:"error"})})}),await z.pageBatchAddApi({platId:parseInt((W=Ml==null?void 0:Ml.value)==null?void 0:W.plat_id),changeContents:[{tableName:"log",tableContents:Ca}]}),Xa.ElMessage.error("数据导入响应失败")}}catch(be){throw new Error(be)}},ae=async d=>{var v,N,I,j,D,ne,se,W,be,ye;try{if(d==="cancel"&&(k.show=!1),d==="replace"&&((v=k==null?void 0:k.existRows)==null?void 0:v.length)>0){await z.pageBatchDeleteApi({platId:parseInt((N=Ml.value)==null?void 0:N.plat_id),changeContents:[{tableName:((I=p==null?void 0:p.related)==null?void 0:I.find(Ue=>Ue==null?void 0:Ue.includes("content_")))||((j=p==null?void 0:p.related)==null?void 0:j.find(Ue=>Ue==null?void 0:Ue.includes("content"))),tableContents:k==null?void 0:k.existRows}]});const Ke=await z.pageBatchAddApi({platId:parseInt((D=Ml.value)==null?void 0:D.plat_id),changeContents:[{tableName:(ne=p==null?void 0:p.related)==null?void 0:ne.find(Ue=>Ue==null?void 0:Ue.includes("content")),tableContents:(()=>{const Ue=(Ee.value||[]).filter(Da=>!((k==null?void 0:k.existRows)||[]).some(Ze=>String(Ze==null?void 0:Ze.id)===String(Da==null?void 0:Da.id))),Xe=(k==null?void 0:k.tableData)||[],va=[];let Ca=Ue.slice();return Xe.forEach(Da=>{const Ze={...Da};try{Ze.sort=On(0,Ca)}catch{}va.push(Ze),Ca.unshift(Ze)}),va.map((Da,Ze)=>({id:Ze,...Da}))})()}]});if(((se=Ke==null?void 0:Ke.data)==null?void 0:se.code)!==200)return;(W=k.newRows)!=null&&W.length&&await Y(k.newRows),await Nt({buttonName:"新增",columns:F.value,fixContent:(be=k==null?void 0:k.tableData)==null?void 0:be.map((Ue,Xe)=>({id:Xe,...Ue})),relatedContents:p==null?void 0:p.related}),(ye=k.newRows)!=null&&ye.length||Xa.ElMessage.success("数据导入成功")}}catch(Ke){throw new Error(Ke)}finally{k.show=!1,k.columns=[],k.tableData=[],k.existRows=[]}},ke=()=>{y.show=!1},qe=d=>{var v,N;if((d==null?void 0:d.buttonName)==="取消")return y.show=!1;y.to=d==null?void 0:d.content,!(!(p!=null&&p.index)||!((v=y.to)!=null&&v.groupName))&&(p==null?void 0:p.index)!==((N=y.to)==null?void 0:N.groupName)&&(H("change",{buttonName:"迁移",value:{from:y.from,to:y.to,data:y.selectRow}}),y.show=!1)},Se=async d=>{var v,N,I,j;if(d){if(!Qr.validateFileSize(d.raw)){Xa.ElMessage.warning(`文件大小不能超过 ${Wr.value.maxSize}MB`);const D=Nl.value.findIndex(ne=>ne.uid===d.uid);D>-1&&Nl.value.splice(D,1),la();return}if(!Qr.validateFileType(d.raw)){Xa.ElMessage.warning("请上传图片文件");const D=Nl.value.findIndex(ne=>ne.uid===d.uid);D>-1&&Nl.value.splice(D,1),la();return}Vr(d,"uploading"),Ir(d,0);try{const D=new FormData;D.append("file",d.raw,d.name);const ne=await z.platformUploadFile(D);d.uploadResult=((v=ne==null?void 0:ne.data)==null?void 0:v.result)||{name:d.name,url:"",fileName:d.name},Vl({name:((N=d.uploadResult)==null?void 0:N.name)||d.name,url:((I=d.uploadResult)==null?void 0:I.url)||"",id:(j=d.uploadResult)==null?void 0:j.id}),Vr(d,"uploaded"),Ir(d,100)}catch(D){console.error("文件上传失败:",D),Xa.ElMessage.error(`文件 ${d.name} 上传失败,请重试`),Vr(d,"pending"),Ir(d,0);const ne=Nl.value.findIndex(se=>se.uid===d.uid);ne>-1&&Nl.value.splice(ne,1)}finally{la()}}},la=()=>{e.nextTick(()=>{const d=document.querySelector('.ocr-upload-input input[type="file"]');d&&(d.value="")})},za=async()=>{var N,I;if(sessionStorage.setItem("ocr_root_table_id",String((p==null?void 0:p.index)??"")),Nl.value.length===0){Xa.ElMessage.warning("请先选择要上传的图片");return}if(Nl.value.filter(j=>{const D=Bl(j);return D!=="uploaded"&&D!=="completed"&&D!=="failed"}).length>0){Xa.ElMessage.warning("请等待所有文件上传完成后再开始识别");return}Wl.value=!0,na.value=0;let v=null;try{Nl.value.forEach(Ze=>{Vr(Ze,"processing")});const j=Math.floor(Math.random()*10)+90;v=setInterval(()=>{na.value<j?na.value+=1:clearInterval(v)},50);const D=Nl.value.map(Ze=>{var il,ya,tl;return{name:((il=Ze.uploadResult)==null?void 0:il.name)||Ze.name,url:((ya=Ze.uploadResult)==null?void 0:ya.url)||"",fileName:((tl=Ze.uploadResult)==null?void 0:tl.fileName)||Ze.name}}),ne=Qr.extractTableHeaders(F.value),se=D.map(Ze=>({name:(Ze==null?void 0:Ze.fileName)||(Ze==null?void 0:Ze.name),url:(Ze==null?void 0:Ze.url)||""})),W=await Qr.recognize(se,ne);if(console.log(W,"ocrResult"),clearInterval(v),v=null,(W==null?void 0:W.code)===500||(W==null?void 0:W.type)==="error"||!(W!=null&&W.result)){na.value=0,Nl.value.forEach(Ze=>{Vr(Ze,"failed"),Ir(Ze,0)}),Xa.ElMessage.error((W==null?void 0:W.message)||"OCR识别失败,请重试"),Wl.value=!1;return}na.value=j;const be=Array.isArray(W==null?void 0:W.result)?W.result:[];if(be.length===0){na.value=0,Nl.value.forEach(Ze=>{Vr(Ze,"failed"),Ir(Ze,0)}),Xa.ElMessage.warning("OCR识别未返回有效数据"),Wl.value=!1;return}const ye=new Set,Ke=[];be.forEach((Ze,il)=>{const ya=Ze!=null&&Ze.数据&&typeof(Ze==null?void 0:Ze.数据)=="object"?Ze.数据:{},tl=Array.isArray(Ze==null?void 0:Ze.图片信息)?Ze.图片信息:[],ge=new Map;tl.forEach(fa=>{fa!=null&&fa.name&&ge.set(fa.name,fa.url||"")});const Fa={_index:il,_certType:(Ze==null?void 0:Ze.证书类型)||"",_certNo:(Ze==null?void 0:Ze.证书编号)||"",_ocrImages:tl,__ocrFieldMeta:{}};Object.entries(ya).forEach(([fa,Ja])=>{let La="",Ne=0,Z=[],Pe="";Ja&&typeof Ja=="object"&&!Array.isArray(Ja)?(La=(Ja==null?void 0:Ja.value)??"",Ne=(Ja==null?void 0:Ja.score)??0,Z=Array.isArray(Ja==null?void 0:Ja.bboxNorm)?Ja==null?void 0:Ja.bboxNorm:[],Pe=(Ja==null?void 0:Ja.imageName)||""):Array.isArray(Ja)&&Ja.length>=2?(La=Ja[0]??"",Ne=Ja[1]??0):(La=Ja??"",Ne=0),Fa[fa]=La,Fa[`${fa}_accuracy`]=Ne,ye.add(fa),Fa.__ocrFieldMeta[fa]={value:La,score:Ne,bboxNorm:Z,imageName:Pe,imageUrl:Pe&&ge.get(Pe)||"",images:tl}}),Ke.push(Fa)});const Ue=[],Xe=new Set;Ke.forEach(Ze=>{Ze&&ye.forEach(il=>{const ya=Ze[`${il}_accuracy`];(typeof ya=="number"?ya>0:ya!=null&&String(ya).trim()!==""&&String(ya)!=="0")&&Xe.add(il)})}),ye.forEach(Ze=>{Ue.push({prop:Ze,label:Ze,editable:!0,minWidth:230}),Xe.has(Ze)&&Ue.push({prop:`${Ze}_accuracy`,label:"准确率",editable:!1,minWidth:100,isAccuracy:!0})}),Nl.value.forEach(Ze=>{Vr(Ze,"completed")}),na.value=100,Te.value=Ue,xl.value=Ke,De.value=D,Ra.value=W;const va=["出厂编号","设备名称","制造厂"],Ca=Ue.filter(Ze=>Ze&&!Ze.isAccuracy&&typeof Ze.prop=="string").map(Ze=>Ze.prop),Da=["出厂编号","设备名称","制造厂"];el.value=Ca.filter(Ze=>Da.includes(Ze)),console.log("[OCR] 默认勾选字段 props:",el.value),Ka.value=2,Wl.value=!1,Ya.value=!1}catch(j){console.error("OCR处理失败:",j),v&&(clearInterval(v),v=null),Xa.ElMessage.error(((I=(N=j==null?void 0:j.response)==null?void 0:N.data)==null?void 0:I.message)||"OCR识别失败,请重试"),Wl.value=!1,na.value=0,Nl.value.forEach(D=>{Vr(D,"pending"),Ir(D,0)})}},al=d=>{if(d==null)return"";let v=String(d);return v=v.replace(/\s+/g," ").trim(),v=v.replace(/[!-~]/g,N=>String.fromCharCode(N.charCodeAt(0)-65248)),v=v.replace(/ /g," "),v=v.replace(/^(编号|No\.?|NO\.?|no\.?|SN\.?|sn\.?|序列号)\s*[::]?\s*/i,""),v},ll=()=>{var Ze,il;const d=De.value,v=Ra.value,N=xl.value;if(!N||N.length===0){Xa.ElMessage.warning("暂无数据可添加");return}const I=(Ze=ie.getAllLeafNodes(F.value)||[])==null?void 0:Ze.filter(ya=>(ya==null?void 0:ya.type)!=="operate"&&(ya==null?void 0:ya.label)!=="操作"&&(ya==null?void 0:ya.prop)!=="operate"),j=new Map,D=new Map,ne=(il=I==null?void 0:I.find(ya=>(ya==null?void 0:ya.label)==="证书附件"))==null?void 0:il.prop;I==null||I.forEach(ya=>{ya!=null&&ya.label&&(ya!=null&&ya.prop)&&(j.set(ya.label,ya.prop),D.set(ya.prop,ya.label))});const se=Date.now(),W=ya=>String(se*1e3+ya),be=[],ye=[],Ke=ya=>{const tl=Mo&&Mo[ya]||[ya];for(const ge of tl){const Fa=j.get(ge);if(Fa)return Fa}return""},Ue=Ke("出厂编号"),Xe=Ke("设备名称"),va=Ke("制造厂"),Ca=[],Da=ya=>{var La,Ne;if(!ne)return[];const tl=(Array.isArray(d)?d[ya]:null)||null,ge=(tl==null?void 0:tl.url)||"",Fa=(tl==null?void 0:tl.fileName)||(tl==null?void 0:tl.name)||"";return(String(Fa).toLowerCase().endsWith(".pdf")||String(ge).toLowerCase().endsWith(".pdf"))&&ge?[{url:ge,name:Fa,fileName:Fa}]:(Array.isArray((Ne=(La=v==null?void 0:v.result)==null?void 0:La[ya])==null?void 0:Ne.图片信息)?v.result[ya].图片信息:[]).map(Z=>({url:(Z==null?void 0:Z.url)||"",name:(Z==null?void 0:Z.name)||"",fileName:(Z==null?void 0:Z.name)||""})).filter(Z=>Z.url)};if(N.forEach((ya,tl)=>{var sl;const ge={id:W(tl),_isOCRRow:!0,_ocrTableId:p==null?void 0:p.index};for(const[Ga,xa]of j.entries())Object.prototype.hasOwnProperty.call(ya,Ga)&&(ge[xa]=ya[Ga]);ne&&(ge[ne]=Da(tl));const Fa=(Array.isArray(v==null?void 0:v.result)?v.result[tl]:null)||null,fa=(Array.isArray(d)?d[tl]:null)||null,Ja=(fa==null?void 0:fa.url)||"",La=(fa==null?void 0:fa.fileName)||(fa==null?void 0:fa.name)||"",Ne=String(La).toLowerCase().endsWith(".pdf")||String(Ja).toLowerCase().endsWith(".pdf"),Z={ts:Date.now(),versionId:String(Date.now())+"_"+String(tl),label:new Date().toLocaleString(),certType:(Fa==null?void 0:Fa.证书类型)||"",certNo:(Fa==null?void 0:Fa.证书编号)||"",fileType:Ne?"pdf":"image",sourceUrl:Ne?Ja:"",images:Array.isArray(Fa==null?void 0:Fa.图片信息)?Fa.图片信息.map(Ga=>({name:(Ga==null?void 0:Ga.name)||"",url:(Ga==null?void 0:Ga.url)||""})).filter(Ga=>Ga.url):[]},Pe=Ga=>al(Ga?ge==null?void 0:ge[Ga]:""),oa=Pe(Ue),T=Pe(Xe),Ma=Pe(va);if(!!(Ue&&Xe&&va&&oa&&T&&Ma)){const Ga=(Ee.value||[]).find(xa=>{const dl=al(Ue?xa==null?void 0:xa[Ue]:""),ql=al(Xe?xa==null?void 0:xa[Xe]:""),qa=al(va?xa==null?void 0:xa[va]:"");return dl&&ql&&qa&&dl===oa&&ql===T&&qa===Ma});if(Ga){Ca.push({idx:tl,ocrRow:ge,versionItem:Z,ocrNo:oa,candidates:[Ga],selectedTargetId:String((Ga==null?void 0:Ga.id)??""),__decision:"replace",allowAdd:!1,allowReplace:!0});return}}if(oa&&Ue){const Ga=(Ee.value||[]).filter(xa=>{const dl=al(Ue?xa==null?void 0:xa[Ue]:"");return dl&&dl===oa});if(Ga.length>0){Ca.push({idx:tl,ocrRow:ge,versionItem:Z,ocrNo:oa,candidates:Ga,selectedTargetId:"",__decision:"",allowAdd:!0,allowReplace:!0});return}}try{if(ge.sort===void 0||ge.sort===null||String(ge.sort).trim()===""){const Ga=(Ee.value||[]).map(dl=>ii(dl==null?void 0:dl.sort)).filter(dl=>dl!==null),xa=Ga.length>0?Math.max(...Ga):((sl=Ee.value)==null?void 0:sl.length)??0;ge.sort=String(Number((xa+1).toFixed(6)))}}catch{}Fl(p==null?void 0:p.index,ge.id,Z),Ca.push({idx:tl,ocrRow:ge,versionItem:Z,ocrNo:oa,candidates:[],selectedTargetId:"",__decision:"add",allowAdd:!0,allowReplace:!1})}),(Ca||[]).length>0){ma.value=(Ca||[]).map(ya=>({...ya,selectedTargetId:(ya==null?void 0:ya.selectedTargetId)||""})),ga.value=!0,cl.value=ye,Le.value=be,yl.value=v,Be.value=d,Ul.value=ne||"";return}},ul=(d,v,N)=>{xl.value[d]&&(xl.value[d][v]=N)},Al=d=>d==null||d===0?"-":`${(Number(d)*100).toFixed(1)}%`,Cl=d=>{if(d==null||d===0)return"#909399";const v=Number(d);return v>=.9?"#67c23a":v>=.7?"#e6a23c":"#f56c6c"},jl=d=>{var N,I,j,D;if(ml.value===d){ml.value=null,ze.value=!1,El.value="";return}ml.value=d,El.value="";const v=(N=xl.value)==null?void 0:N[d];if(v&&Array.isArray(v._ocrImages)&&v._ocrImages.length>0){ha.value=v._ocrImages.map(W=>({name:(W==null?void 0:W.name)||"",url:(W==null?void 0:W.url)||""})).filter(W=>W.name||W.url);const ne=v.__ocrFieldMeta||{},se=(I=Object.values(ne))==null?void 0:I.find(W=>W==null?void 0:W.imageName);ca.value=(se==null?void 0:se.imageName)||((D=(j=ha.value)==null?void 0:j[0])==null?void 0:D.name)||"",ze.value=ha.value.length>0}else ha.value=[],ze.value=!1,ca.value=""},Ql=()=>{Kl.value=!1,Nl.value=[],Tl.value=null,Ka.value=1,pa.value.clear(),ja.value.clear(),na.value=0,ze.value=!1},or=d=>d.raw?URL.createObjectURL(d.raw):d.url?d.url:"",Bl=d=>{const v=d.uid||d.name;return pa.value.get(v)||"pending"},ar=d=>{const v=d.uid||d.name;return ja.value.get(v)||0},Ir=(d,v)=>{const N=d.uid||d.name;ja.value.set(N,Math.min(100,Math.max(0,v)))},Or=d=>{const v=Bl(d),N=100.53;if(v==="completed"||v==="uploaded")return`${N} ${N}`;if(v==="failed")return`${N} ${N}`;if(v==="uploading"){const I=ar(d);return`${N*(I/100)} ${N}`}else if(v==="processing")return`${N*.5} ${N}`;return`0 ${N}`},Vr=(d,v)=>{const N=d.uid||d.name;pa.value.set(N,v),(v==="completed"||v==="uploaded")&&Ir(d,100)},kn=()=>{e.nextTick(()=>{const d=document.querySelector('.ocr-upload-input input[type="file"]');if(d)d.value="",d.click();else{const v=document.createElement("input");v.type="file",v.multiple=!0,v.accept="image/*,application/pdf",v.style.display="none",v.onchange=async N=>{const I=Array.from(N.target.files||[]);for(const j of I){const D={name:j.name,raw:j,uid:Date.now()+Math.random()};Nl.value.push(D),await Se(D)}N.target.value="",document.body.removeChild(v)},document.body.appendChild(v),v.click()}})},Bn=()=>{Ka.value>1&&Ka.value--},xi=()=>{Ka.value===1?Nl.value.length>0&&!Wl.value&&za():Ka.value===2&&(ll(),Ka.value=3)},ti=async d=>{await Rt(d==null?void 0:d.row)},hu=async({row:d,prop:v})=>{!d||!v||await Rt(d,v)},Rt=async(d,v)=>{var j,D;const N=d==null?void 0:d.id;if(!N){Xa.ElMessage.warning("暂无可预览数据");return}let I=Jl(p==null?void 0:p.index,N);if(!I||I.length===0){const ne=sessionStorage.getItem("ocr_root_table_id"),se=ne!==null?Number(ne):null;if(se!=null&&se!==""&&!Number.isNaN(se)){const W=Jl(se,N);Array.isArray(W)&&W.length>0&&(rl(p==null?void 0:p.index,N,W),I=W)}}if(!I||I.length===0){const ne=(j=ie.getAllLeafNodes(F.value)||[])==null?void 0:j.filter(W=>(W==null?void 0:W.type)!=="operate"&&(W==null?void 0:W.label)!=="操作"&&(W==null?void 0:W.prop)!=="operate"),se=v||((D=ne==null?void 0:ne.find(W=>(W==null?void 0:W.label)==="证书附件"))==null?void 0:D.prop);if(se&&d[se]){const W=d[se];let be=[],ye="",Ke=!1;if(typeof W=="string")try{const Ue=JSON.parse(W);Array.isArray(Ue)&&(be=Ue.map(Xe=>({name:(Xe==null?void 0:Xe.name)||(Xe==null?void 0:Xe.fileName)||"",url:(Xe==null?void 0:Xe.url)||""})).filter(Xe=>Xe.url||Xe.name),be.length>0&&(ye=be[0].url||"",Ke=String(be[0].name).toLowerCase().endsWith(".pdf")||String(ye).toLowerCase().endsWith(".pdf")))}catch{ye=W,Ke=String(W).toLowerCase().endsWith(".pdf"),be=[{name:W,url:W}]}else Array.isArray(W)&&(be=W.map(Ue=>({name:(Ue==null?void 0:Ue.name)||(Ue==null?void 0:Ue.fileName)||"",url:(Ue==null?void 0:Ue.url)||""})).filter(Ue=>Ue.url||Ue.name),be.length>0&&(ye=be[0].url||"",Ke=String(be[0].name).toLowerCase().endsWith(".pdf")||String(ye).toLowerCase().endsWith(".pdf")));if(be.length>0||ye){const Ue={ts:Date.now(),versionId:String(Date.now()),label:new Date().toLocaleString(),certType:d.证书类型||"",certNo:d.证书编号||"",fileType:Ke?"pdf":"image",sourceUrl:Ke?ye:"",images:be};I=[Ue],Fl(p==null?void 0:p.index,N,Ue)}}}if(!I||I.length===0){Xa.ElMessage.warning("暂无可预览数据");return}$a.value=I,zr.value=!0},vu=d=>{Nl.value=Nl.value.filter((v,N)=>N!==d)},ut=async(d,v,N)=>{var I,j,D,ne,se,W,be,ye,Ke,Ue,Xe,va,Ca,Da,Ze,il,ya,tl,ge,Fa,fa,Ja;if(Ta(p.config,{type:ba.TABLE,tableOperate:d})){if(ia.value="",Oe.value=!0,Ba.value=!0,H("onButtonClick",d,v),ee.value=[],d==="删除")z.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var La,Ne,Z,Pe;(La=Ee.value)!=null&&La.find(oa=>(oa==null?void 0:oa.id)===(v==null?void 0:v.id))?Ee.value=(Ne=z.cloneDeep(Ee.value))==null?void 0:Ne.filter(oa=>(oa==null?void 0:oa.id)!==(v==null?void 0:v.id)):Ee.value=fo(z.cloneDeep(Ee.value),v);try{v!=null&&v.id&&((Pe=(Z=Ea.value)==null?void 0:Z.has)!=null&&Pe.call(Z,v==null?void 0:v.id))&&Ea.value.delete(v.id)}catch{}Kf(Jr.value,cr.value,v==null?void 0:v.id),Ia.setTableLoading(p==null?void 0:p.index),H("change",{content:Ee.value,fixContent:[v],index:p==null?void 0:p.index,type:"delete",name:p==null?void 0:p.groupNames,buttonName:d,columns:F.value,relatedContents:p==null?void 0:p.related}),console.log(v,"item")});else if(d==="批量删除"){if(((I=Tr.value)==null?void 0:I.length)===0)return Xa.ElMessage.warning("请先勾选操作的数据");z.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(async()=>{var Z,Pe,oa,T,Ma;const La=(Z=Tr.value)==null?void 0:Z.map(Ha=>Ha.id);Ee.value=(Pe=z.cloneDeep(Ee.value))==null?void 0:Pe.filter(Ha=>!(La!=null&&La.includes(Ha.id))),Ia.setTableLoading(p==null?void 0:p.index),H("change",{content:Ee.value,fixContent:Tr.value,index:p==null?void 0:p.index,type:"delete",name:p==null?void 0:p.compName,buttonName:d,relatedContents:p==null?void 0:p.related,columns:F.value});const Ne=(La||[]).filter(Boolean);if(Ne.length>0&&Ne.every(Ha=>Ha!=null&&Ha!=="")){const Ha=(Tr.value||[]).map(sl=>{const Ga={...sl};return delete Ga._isOCRRow,delete Ga._ocrTableId,delete Ga._isTemp,delete Ga.tableEditType,delete Ga.index,Ga});await z.pageBatchDeleteApi({platId:parseInt((oa=Ml.value)==null?void 0:oa.plat_id),changeContents:[{tableName:((T=p==null?void 0:p.related)==null?void 0:T.find(sl=>sl==null?void 0:sl.includes("content_")))||((Ma=p==null?void 0:p.related)==null?void 0:Ma.find(sl=>sl==null?void 0:sl.includes("content"))),tableContents:Ha}]})}})}else if(d==="复制新增"){Je.value="复制新增",z.cloneDeep(v);const La=(j=F.value)==null?void 0:j.find(Ne=>Ne==null?void 0:Ne.isMainKey);La||((D=F.value)==null||D[0]),ir.value=v,ji(!0)}else if(d==="新增")Je.value="新增",Fi(""),K.value=!0;else if(d==="编辑")Je.value="编辑",Fi(v),K.value=!0;else if(d==="查看")Je.value="查看",Fi(v),Oe.value=!1,Ba.value=!1,K.value=!0;else if(d==="查看三维模型"){const La={};for(let Z in v)Z!=="id"&&(La[Z]=v[Z]);let Ne=(ne=Object.values(La))==null?void 0:ne[1];wa.setTableShowThree(Ne)}else if(d==="切换视图")Tu();else if(((se=N==null?void 0:N.extra)==null?void 0:se.type)==="modelExample")Je.value=d,We.value=!0;else if(d==="新建"){let La=ua.value,Ne=[];for(let Ma in La)Ma!=null&&Ma.includes(`loading${((W=Ml.value)==null?void 0:W.account)||((be=Ml.value)==null?void 0:be.账号)}`)&&(Ne=[...Ne,...Ma]);let Z=[];for(let Ma in La)Ma!=null&&Ma.includes(`updateLoading${((ye=Ml.value)==null?void 0:ye.account)||((Ke=Ml.value)==null?void 0:Ke.账号)}`)&&(Z=[...Z,...Ma]);let Pe=Ne==null?void 0:Ne.map(Ma=>Ma==null?void 0:Ma.id);const oa=Z==null?void 0:Z.map(Ma=>Ma==null?void 0:Ma.id);Pe=[...z.cloneDeep(Pe),...oa],(Pe==null?void 0:Pe.length)>0&&(Pe!=null&&Pe.every(Ma=>Ma!==null&&Ma))&&await qr.batchDeleteInsofDataApi({ids:Pe});const T=(Ue=Ve.value)==null?void 0:Ue.find(Ma=>(Ma==null?void 0:Ma.label)==="新建");await gu(!1,T)}else if(d==="修改模板"){let La=z.cloneDeep(ue).value;Ia.setRouteToChildPath(La),ea.setActiveMenuPath(La+R)}else if(d==="执行")ct(d,v);else if(d==="导出paraform"){const La=z.ElLoading.service({lock:!0,text:"正在导出paraform...",background:"rgba(0, 0, 0, 0.7)"});try{const Ne=["推力","真空","压力","温度","流量"],Z=wl=>{var Zl,ur,Rl;return wl?typeof(wl==null?void 0:wl.value)=="string"?wl.value:((Rl=(ur=(Zl=wl==null?void 0:wl._custom)==null?void 0:Zl.value)==null?void 0:ur.value)==null?void 0:Rl.value)||"":""},Pe=Array.isArray(br.value)?br.value:[],oa=Z(Pe.find(wl=>(wl==null?void 0:wl.condition)==="child")),T=String(oa||"").slice(0,8),Ma=wl=>{if(wl==null)return"";const Zl=String(wl).trim();if(!Zl)return"";if(/^\d{8}$/.test(Zl))return Zl;const ur=Zl.match(/^(\d{4})[-\/.](\d{1,2})[-\/.](\d{1,2})$/);if(ur){const dr=ur[1],xr=ur[2].padStart(2,"0"),pr=ur[3].padStart(2,"0");return`${dr}${xr}${pr}`}const Rl=Zl.replace(/\D/g,"");return Rl.length>=8?Rl.slice(0,8):""},Ha=async wl=>{var Zl,ur;if(!wl)return"";try{const Rl=await Xr("试验任务/任务管理",!1),dr=(sr,Br=[])=>{if(!Array.isArray(sr))return Br;for(const Lr of sr)(Lr==null?void 0:Lr.comp)==="Table"&&(Lr!=null&&Lr.name)&&Br.push(Lr),Array.isArray(Lr==null?void 0:Lr.children)&&dr(Lr.children,Br),Array.isArray(Lr==null?void 0:Lr.tab)&&dr(Lr.tab,Br),Array.isArray(Lr==null?void 0:Lr.choice)&&dr(Lr.choice,Br);return Br},pr=dr(Rl||[]).find(sr=>(sr==null?void 0:sr.name)==="任务列表"),Er=((ur=(Zl=pr==null?void 0:pr.compData)==null?void 0:Zl.find(sr=>(sr==null?void 0:sr.key)==="tableContents"))==null?void 0:ur.contents)||[];if(!Array.isArray(Er)||Er.length===0)return"";const ln=Er.find(sr=>String((sr==null?void 0:sr["试验代号(名称)"])||"").slice(0,8)===wl);return Ma(ln==null?void 0:ln.计划试验时间)}catch(Rl){return console.warn("获取任务列表计划试验时间失败:",Rl),""}},sl=(ue.value||"").replace(/\/+$/,""),Ga=oa?`${sl}/${oa}`:sl,xa=await Xr(Ga||ue.value,!1),dl=String(je.value||"").trim(),ql=wl=>String(wl||"").trim(),qa=(wl,Zl=[],ur="")=>{if(!Array.isArray(wl))return Zl;for(const Rl of wl){const dr=ql((Rl==null?void 0:Rl.choiceName)||(Rl==null?void 0:Rl.name0)||ur);(Rl==null?void 0:Rl.comp)==="Table"&&(Rl==null?void 0:Rl.name)&&Ne.includes(Rl.name)&&(!dl||dr===dl)&&Zl.push(Rl),Array.isArray(Rl==null?void 0:Rl.children)&&qa(Rl.children,Zl,dr),Array.isArray(Rl==null?void 0:Rl.tab)&&qa(Rl.tab,Zl,dr),Array.isArray(Rl==null?void 0:Rl.choice)&&qa(Rl.choice,Zl,dr)}return Zl},Dl=qa(xa||[]),Va=new Map;for(const wl of Dl)wl!=null&&wl.name&&!Va.has(wl.name)&&Va.set(wl.name,wl);const $l=Ne.map(wl=>Va.get(wl)).filter(Boolean);if(!$l||$l.length===0)return Xa.ElMessage.warning("未找到需要导出的表(推力、真空、压力、温度、流量)");const nl=wl=>{const Zl=new Map,ur=(Rl,dr=[])=>{if(Array.isArray(Rl))for(const xr of Rl){const pr=((xr==null?void 0:xr.label)??"").toString().trim(),Er=pr?[...dr,pr]:[...dr];if(Array.isArray(xr==null?void 0:xr.children)&&xr.children.length>0)ur(xr.children,Er);else{const sr=((xr==null?void 0:xr.prop)??"").toString();if(!sr)continue;const Br=pr||sr,Lr=(Er.length>0?[...dr,Br]:[Br]).join(".");Zl.set(sr,Lr)}}};return ur(wl,[]),Zl},hl=(wl,Zl)=>{const ur=nl(wl||[]),dr=(ie.getAllLeafNodes(wl||[])||[]).filter(pr=>(pr==null?void 0:pr.prop)&&(pr==null?void 0:pr.type)!=="operate"&&(pr==null?void 0:pr.label)!=="操作"&&(pr==null?void 0:pr.prop)!=="operate"),xr=Array.isArray(Zl)?Zl:[];return xr.length===0?[]:xr.map(pr=>{const Er={};return dr.forEach(ln=>{const sr=String(ln.prop),Br=ur.get(sr)||String(ln.label||ln.prop);Er[Br]=(pr==null?void 0:pr[sr])??""}),Er})},Ol=$l.map(wl=>{var xr,pr;const Zl=(wl==null?void 0:wl.compData)||[];let ur=(xr=Zl==null?void 0:Zl.find(Er=>(Er==null?void 0:Er.key)==="header"))==null?void 0:xr.contents;Array.isArray(ur==null?void 0:ur[0])&&(ur=ur[0]);const Rl=((pr=Zl==null?void 0:Zl.find(Er=>(Er==null?void 0:Er.key)==="tableContents"))==null?void 0:pr.contents)||[];if(!Array.isArray(ur)||ur.length===0||!Array.isArray(Rl)||Rl.length===0)return null;const dr=hl(ur||[],Rl||[]);return!Array.isArray(dr)||dr.length===0?null:{类型:wl==null?void 0:wl.name,数据:dr}}).filter(Boolean);if(!Ol||Ol.length===0)return Xa.ElMessage.warning("没有可导出的数据(推力、真空、压力、温度、流量均为空)");const kl=await Ha(T),gr={试验代号:T,试验日期:kl,ParaForm:Ol},tr=await ki().catch(()=>""),lr=await z.exportParaformApi(gr,tr);if(((Xe=lr==null?void 0:lr.data)==null?void 0:Xe.code)===200&&((Ca=(va=lr==null?void 0:lr.data)==null?void 0:va.result)!=null&&Ca.Excel文件)){const wl=lr.data.result.Excel文件,Zl=await z.platformDownloadFile({url:wl}),ur=new Blob([Zl.data],{type:"application/vnd.ms-excel"}),Rl=URL.createObjectURL(ur),dr=z.dayjs().format("YYYYMMDD"),pr=`${(T||"UNKNOWN").trim()||"UNKNOWN"}_${dr}_paraform.xls`,Er=document.createElement("a");Er.href=Rl,Er.download=pr,Er.style.display="none",document.body.appendChild(Er),Er.click(),setTimeout(()=>{document.body.removeChild(Er),URL.revokeObjectURL(Rl)},100);const ln=Array.isArray((Ze=(Da=lr==null?void 0:lr.data)==null?void 0:Da.result)==null?void 0:Ze.warnings)?lr.data.result.warnings:[];if(ln.length>0){const sr=ln.map((Br,Lr)=>`${Lr+1}. ${(Br==null?void 0:Br.field)||"未知字段"}:${(Br==null?void 0:Br.message)||""}`).join(`
24
+ `);Xa.ElMessage.warning({message:`导出成功,但存在以下提示:
25
+ ${sr}`,duration:5e3,showClose:!0})}else Xa.ElMessage.success("导出成功")}else Xa.ElMessage.error(((il=lr==null?void 0:lr.data)==null?void 0:il.message)||"导出失败")}catch(Ne){console.error("导出paraform失败:",Ne),Xa.ElMessage.error("导出失败:"+((Ne==null?void 0:Ne.message)||"未知错误"))}finally{La.close()}}else if(d!=null&&d.includes("导出")&&d!=="导出paraform"){if(d==="导出选中"&&((ya=Tr.value)==null?void 0:ya.length)===0)return Xa.ElMessage.warning(`请先勾选${d}的数据`);if(d==="导出全部"&&((tl=Ee.value)==null?void 0:tl.length)===0)return Xa.ElMessage.warning("暂无数据导出");let La=["序号",...(Fa=(ge=F.value)==null?void 0:ge.map(oa=>oa==null?void 0:oa.prop))==null?void 0:Fa.filter(oa=>oa!=="操作")],Ne=d==="导出全部"?Ee.value:Tr.value;const Z=["id","sort","tableEditType","create_time","update_time","source_table","create_user_id","update_user_id","department_id","relatedId"];Ne=Ne==null?void 0:Ne.map(oa=>Object.fromEntries(Object.entries(oa).filter(([T])=>!Z.includes(T)))),La=["序号",...La],Ne=Ne==null?void 0:Ne.map((oa,T)=>({序号:T+1,...oa}));let Pe=(p==null?void 0:p.compName)||"表格信息";Qi(Ne,Pe,La,Pe)}else if(d==="OCR识别")Kl.value=!0,Nl.value=[],Ka.value=1,pa.value.clear(),ja.value.clear(),na.value=0;else if(d==="迁移")y.selectRow=v,y.show=!0;else if(d==="生成方法"){let La=await d0(v),Ne;v!==""?Ne=[v]:Ne=z.cloneDeep(Ee.value),Ne=Ne==null?void 0:Ne.map(Pe=>(Pe.输出值=La,Pe));const Z={fixContent:Ne,buttonName:"编辑",relatedContents:p==null?void 0:p.related,columns:F.value,name:p==null?void 0:p.groupNames};H("change",Z)}else if(((fa=N==null?void 0:N.extra)==null?void 0:fa.type)==="methodButton"){let La;v!==""?La=[v]:La=z.cloneDeep(Ee.value);const Ne=await St(La,F==null?void 0:F.value,"Manual",Ee.value,p==null?void 0:p.calculator);let Z;(Ja=Ne==null?void 0:Ne[0])!=null&&Ja.menuPathContent?Z={fixContent:Ne,buttonName:"新增",relatedContents:p==null?void 0:p.related,columns:F.value,name:p==null?void 0:p.groupNames}:Z={fixContent:Ne,buttonName:"methodButton",relatedContents:p==null?void 0:p.related,columns:F.value,name:p==null?void 0:p.groupNames},H("change",Z)}}},mu=async(d,v)=>{var N,I,j,D,ne,se,W,be,ye,Ke,Ue,Xe,va,Ca,Da,Ze,il,ya,tl,ge;try{let Fa,fa;const Ja=(N=ua.value[ue.value+R])==null?void 0:N.filter(Ha=>{var sl;return((sl=Ha==null?void 0:Ha.key)==null?void 0:sl.type)==="structureMethod"}),La=(I=ua.value[ue.value+R])==null?void 0:I.filter(Ha=>{var sl;return((sl=Ha==null?void 0:Ha.key)==null?void 0:sl.type)==="structure"}),Ne=Ja==null?void 0:Ja.find(Ha=>{var sl,Ga;return((Ga=(sl=Ha==null?void 0:Ha.value)==null?void 0:sl.pageData)==null?void 0:Ga.method)==="保存"});if(!Ne)return;const Z=(se=(ne=ua.value[(D=(j=Ne==null?void 0:Ne.value)==null?void 0:j.pageData)==null?void 0:D.path])==null?void 0:ne.filter(Ha=>{var sl;return((sl=Ha==null?void 0:Ha.key)==null?void 0:sl.type)==="data"}))==null?void 0:se.find(Ha=>{var sl,Ga,xa,dl;return((Ga=(sl=Ha==null?void 0:Ha.value)==null?void 0:sl.tableData)==null?void 0:Ga.算法名称)===((dl=(xa=Ne==null?void 0:Ne.value)==null?void 0:xa.pageData)==null?void 0:dl.method)});if(!Z)return;const Pe={buttonName:(be=(W=Ne==null?void 0:Ne.value)==null?void 0:W.pageData)==null?void 0:be.method,api:(Ke=(ye=Z==null?void 0:Z.value)==null?void 0:ye.tableData)==null?void 0:Ke.算法体,content:La==null?void 0:La.map(Ha=>{var sl;return(sl=Ha==null?void 0:Ha.value)==null?void 0:sl.pageData}),extraContent:[],extraValues:(Xe=(Ue=Ne==null?void 0:Ne.value)==null?void 0:Ue.pageData)==null?void 0:Xe.data,methodName:(Ca=(va=Ne==null?void 0:Ne.value)==null?void 0:va.pageData)==null?void 0:Ca.path};if(!d)return;const oa={...d,compData:(Da=d==null?void 0:d.compData)==null?void 0:Da.map(Ha=>{var sl;return(Ha==null?void 0:Ha.key)==="formContent"?{...Ha,contents:(sl=Ha==null?void 0:Ha.contents)==null?void 0:sl.map(Ga=>(Ga==null?void 0:Ga.prop)===v?{...Ga,value:""}:Ga)}:Ha})},T={key:{pageKey:ue.value+R,parentTable:"",systemKey:sessionStorage.getItem("systemKey"),type:"structure"},value:{pageData:oa}},Ma=await Xa.axios.post(Pe.api,T,{headers:{"Content-Type":"application/json"}});return((Ze=Ma==null?void 0:Ma.data)==null?void 0:Ze.code)===200&&(Fa=(ya=(il=Ma==null?void 0:Ma.data)==null?void 0:il.result)==null?void 0:ya.latestReportCode,fa=(ge=(tl=Ma==null?void 0:Ma.data)==null?void 0:tl.result)==null?void 0:ge.status),{newMainKeyValue:Fa,newStatus:fa}}catch(Fa){throw Xa.ElMessage.error(Fa),new Error(Fa)}},$t=e.reactive({prop:"状态",value:""});e.ref(["系统自动生成信息","审批意见"]);const yu=async(d,v,N)=>{var W,be;let I=d==null?void 0:d[v==null?void 0:v.prop],j=1,D,ne;const se=z.cloneDeep(ue).value+R+I;if(se){$t.value="",D=(W=ua.value[se])==null?void 0:W.filter(Ue=>{var Xe;return((Xe=Ue==null?void 0:Ue.key)==null?void 0:Xe.type)==="structure"});const ye=D==null?void 0:D.find(Ue=>{var Xe,va,Ca;return((Ca=(va=(Xe=Ue==null?void 0:Ue.value)==null?void 0:Xe.pageData)==null?void 0:va.comp)==null?void 0:Ca.toUpperCase())==="FORM"});ne={...(be=ye==null?void 0:ye.value)==null?void 0:be.pageData,id:ye==null?void 0:ye.id};const Ke=await mu(ne,v==null?void 0:v.prop);if($t.value=Ke==null?void 0:Ke.newStatus,Ke!=null&&Ke.newMainKeyValue)return Ke==null?void 0:Ke.newMainKeyValue}if(Ee.value.some(ye=>(ye==null?void 0:ye[v==null?void 0:v.prop])===I)){const ye=I;for(;Ee.value.some(Ke=>(Ke==null?void 0:Ke[v==null?void 0:v.prop])===`${ye}(${j})`);)j++;I=`${ye}(${j})`}return I},gu=async(d,v,N)=>{var D,ne,se,W;let I,j;if(await yu(N==null?void 0:N.data,N==null?void 0:N.firstCol),I=z.cloneDeep(ue).value+R,j=z.cloneDeep(I)+`loading${((D=Ml.value)==null?void 0:D.account)||((ne=Ml.value)==null?void 0:ne.账号)}`,v){const be=(W=(se=ua.value[j])==null?void 0:se.filter(ye=>{var Ke;return((Ke=ye==null?void 0:ye.key)==null?void 0:Ke.parentTable)===""}))==null?void 0:W.map(ye=>{var Ke;return{id:ye==null?void 0:ye.id,...(Ke=ye==null?void 0:ye.value)==null?void 0:Ke.pageData}});(be==null?void 0:be.length)>0||await ie.loadingConstruct(I,j,null,null,null),Ia.setRouteToChildPath(z.cloneDeep(ue).value),ea.setActiveMenuPath(j)}else Ia.setRouteToChildPath(z.cloneDeep(ue).value),ea.setActiveMenuPath(j)},bu=()=>{ce.value=!1,He.value=[],B.value=!1},Fi=d=>{var se,W,be,ye,Ke,Ue,Xe,va,Ca,Da,Ze,il,ya,tl,ge,Fa,fa,Ja,La,Ne,Z,Pe,oa;const v=[];Re.value=z.cloneDeep(F.value);let N=(W=(se=u.value)==null?void 0:se.find(T=>{var Ma;return(Ma=T==null?void 0:T.key)==null?void 0:Ma.includes("@EditRead")}))==null?void 0:W.content,I=!1;(N==null?void 0:N.length)>0&&(I=ws(N,d),(I==null?void 0:I.length)>0?I=!0:I=!1),(ye=ie.getColumnChild((be=z.cloneDeep(F.value))==null?void 0:be.filter(T=>(T==null?void 0:T.label)!=="操作")))==null||ye.forEach((T,Ma)=>{var Ha,sl,Ga;T!=null&&T.formType&&((Ha=T==null?void 0:T.formType)==null?void 0:Ha.toUpperCase())==="SELECT"||T!=null&&T.menuId?v.push({label:(sl=T==null?void 0:T.prop)!=null&&sl.includes(".")?T==null?void 0:T.prop:(T==null?void 0:T.label)??(T==null?void 0:T.prop)??"",name:(T==null?void 0:T.prop)??"t"+Ma,prop:T==null?void 0:T.prop,type:"Select",value:(d==null?void 0:d[T==null?void 0:T.prop])??(T==null?void 0:T.value)??"",id:(T==null?void 0:T.id)??Ma,contents:(T==null?void 0:T.options)??[],multiple:(T==null?void 0:T.multiple)??!1,multipleLimit:T==null?void 0:T.multipleLimit,width:1,isFormColHidden:T==null?void 0:T.isFormColHidden,relatedValueId:T==null?void 0:T.relatedValueId,menus:T==null?void 0:T.menus,groups:T==null?void 0:T.groups,words:T==null?void 0:T.words,allSelectionContents:(T==null?void 0:T.allSelectionContents)??[],filterContent:T==null?void 0:T.filterContent,disabled:(T==null?void 0:T.prop)==="disabled"?!0:I||(T==null?void 0:T.disabled),filter:T==null?void 0:T.filter,bindMenus:T==null?void 0:T.bindMenus,isMainPath:T==null?void 0:T.isMainPath,required:(T==null?void 0:T.required)??!1,relatedContents:T==null?void 0:T.relatedContents,mainKey:T==null?void 0:T.mainKey,relatedContents:T==null?void 0:T.relatedContents,functionName:T==null?void 0:T.functionName,functionRelatedWords:T==null?void 0:T.functionRelatedWords,calculatorFilter:T==null?void 0:T.calculatorFilter,isReadonly:T==null?void 0:T.isReadonly}):v.push({label:(Ga=T==null?void 0:T.prop)!=null&&Ga.includes(".")?T==null?void 0:T.prop:(T==null?void 0:T.label)??(T==null?void 0:T.prop)??"",prop:T==null?void 0:T.prop,name:(T==null?void 0:T.prop)??"t"+Ma,type:!(T!=null&&T.formType)||(T==null?void 0:T.formType)===""?"Input":T==null?void 0:T.formType,value:(T==null?void 0:T.formType)==="Upload"?(d==null?void 0:d[T==null?void 0:T.prop])??"{}":(d==null?void 0:d[T==null?void 0:T.prop])??(T==null?void 0:T.value)??"",id:(T==null?void 0:T.id)??Ma,contents:(T==null?void 0:T.options)??[],multiple:(T==null?void 0:T.multiple)??!1,width:1,isFormColHidden:T==null?void 0:T.isFormColHidden,disabled:(T==null?void 0:T.prop)==="disabled"?!0:I||(T==null?void 0:T.disabled),relatedValueId:T==null?void 0:T.relatedValueId,menus:T==null?void 0:T.menus,groups:T==null?void 0:T.groups,words:T==null?void 0:T.words,filter:T==null?void 0:T.filter,bindMenus:T==null?void 0:T.bindMenus,isMainPath:T==null?void 0:T.isMainPath,required:(T==null?void 0:T.required)??!1,relatedContents:T==null?void 0:T.relatedContents,mainKey:T==null?void 0:T.mainKey,relatedContents:T==null?void 0:T.relatedContents,functionName:T==null?void 0:T.functionName,functionRelatedWords:T==null?void 0:T.functionRelatedWords,calculatorFilter:T==null?void 0:T.calculatorFilter,isReadonly:T==null?void 0:T.isReadonly})}),d===""||!d||(ia.value=(d==null?void 0:d.id)??"");let j=ie.getColumnChild((Ke=z.cloneDeep(F.value))==null?void 0:Ke.filter(T=>(T==null?void 0:T.label)!=="操作"));da.value&&((Ue=da.value)==null?void 0:Ue.length)>0&&(da.value=(Xe=z.cloneDeep(da).value)==null?void 0:Xe.map(T=>{var Ha;let Ma=(T==null?void 0:T.prop)||((Ha=j==null?void 0:j.find(sl=>(sl==null?void 0:sl.label)===(T==null?void 0:T.label)))==null?void 0:Ha.prop);return Ma&&(T.value=d[Ma]),T})),we.value=da.value&&((va=da.value)==null?void 0:va.length)>0?ie.getTableFormToForm(da.value):v,we.value=((Ca=we.value)==null?void 0:Ca.map(T=>({...T,disabled:(T==null?void 0:T.prop)==="disabled"?!0:T==null?void 0:T.disabled})))??we.value;let D=[],ne=((il=(Ze=(Da=p.itemData)==null?void 0:Da.filter(T=>(T==null?void 0:T.key)==="filter"))==null?void 0:Ze[0])==null?void 0:il.contents)??"";if(ne=ie.analyzeSplitToContent(ne,","),(ne==null?void 0:ne.length)>0&&(D=ne.flat()),(D==null?void 0:D.length)>0){let T=D==null?void 0:D.filter(xa=>xa==null?void 0:xa.includes("@Type"));if(T=T==null?void 0:T[(T==null?void 0:T.length)-1],(T==null?void 0:T[(T==null?void 0:T.length)-1])===","&&(T=T==null?void 0:T.slice(0,(T==null?void 0:T.length)-1)),T){let xa=(tl=(ya=T==null?void 0:T.replace("=",b))==null?void 0:ya.split(b))==null?void 0:tl[1];((ge=xa==null?void 0:xa.trim())==null?void 0:ge.toUpperCase())==="MANUAL"&&(p==null||p.index,we.value=(Fa=we.value)==null?void 0:Fa.map((dl,ql)=>dl))}let Ma=(fa=we.value)==null?void 0:fa.filter(xa=>xa==null?void 0:xa.mainKey),Ha;Ma==null||Ma.forEach(xa=>{var ql;if(Ha!==void 0)return;let dl=xa==null?void 0:xa.menus;((ql=Ma==null?void 0:Ma.filter(qa=>qa==null?void 0:qa.mainKey))==null?void 0:ql.length)>1&&(Ha=dl,xa==null||xa.groups)});let sl=[],Ga=new Map;if(Ma==null||Ma.forEach(xa=>{var dl,ql,qa,Dl,Va,$l,nl,hl,Ol,kl,gr,tr,lr;if((dl=xa==null?void 0:xa.prop)!=null&&dl.includes(".")){let wl=[];Ga.get(((qa=(ql=xa==null?void 0:xa.prop)==null?void 0:ql.split("."))==null?void 0:qa[0])+(xa!=null&&xa.isMainPath?0:1)+((Dl=xa==null?void 0:xa.groups)==null?void 0:Dl[0]))&&(wl=Ga.get((($l=(Va=xa==null?void 0:xa.prop)==null?void 0:Va.split("."))==null?void 0:$l[0])+(xa!=null&&xa.isMainPath?0:1)+((nl=xa==null?void 0:xa.groups)==null?void 0:nl[0]))),wl.push(xa),Ga.set(((Ol=(hl=xa==null?void 0:xa.prop)==null?void 0:hl.split("."))==null?void 0:Ol[0])+(xa!=null&&xa.isMainPath?0:1)+((kl=xa==null?void 0:xa.groups)==null?void 0:kl[0]),wl)}else{let wl=[];Ga.get("normal"+(xa!=null&&xa.isMainPath?0:1)+((gr=xa==null?void 0:xa.groups)==null?void 0:gr[0]))&&(wl=Ga.get("normal"+(xa!=null&&xa.isMainPath?0:1)+((tr=xa==null?void 0:xa.groups)==null?void 0:tr[0]))),wl.push(xa),Ga.set("normal"+(xa!=null&&xa.isMainPath?0:1)+((lr=xa==null?void 0:xa.groups)==null?void 0:lr[0]),wl)}}),sl=Array.from(Ga.values()),(sl==null?void 0:sl.length)>0)for(let xa in sl){let dl=sl==null?void 0:sl[xa];if((dl==null?void 0:dl.length)!==1){if((dl==null?void 0:dl.length)>1){let ql=dl==null?void 0:dl.map(kl=>kl==null?void 0:kl.prop),qa=dl==null?void 0:dl.map(kl=>kl==null?void 0:kl.label),Dl=dl==null?void 0:dl.map(kl=>kl==null?void 0:kl.value),Va=(Ja=z.cloneDeep(dl))==null?void 0:Ja[0],$l=(La=we.value)==null?void 0:La.findIndex(kl=>(kl==null?void 0:kl.prop)===(Va==null?void 0:Va.prop)),nl=(Ne=we.value)==null?void 0:Ne.slice(0,$l),hl=(Pe=we.value)==null?void 0:Pe.slice($l,(Z=we.value)==null?void 0:Z.length);Va.label=qa==null?void 0:qa.join("·"),Va.value=Dl==null?void 0:Dl.join(" "),Va.value.trim()===""&&(Va.value=""),Va.prop=ql==null?void 0:ql.join("·");let Ol=dl==null?void 0:dl.map(kl=>{var gr;return(gr=kl==null?void 0:kl.words)==null?void 0:gr.join(".")});Va.relatedWords=Ol,Va.usingType="parent",hl.unshift(Va),we.value=[...nl,...hl],we.value=(oa=we.value)==null?void 0:oa.map(kl=>(ql!=null&&ql.find(gr=>gr===(kl==null?void 0:kl.prop))&&(kl.isFormColHidden=!0,kl.relatedWords=Ol),kl))}}}}},ku=()=>{var v;const d=(v=i.value)==null?void 0:v.$el;d&&Hl.Sortable.create(d,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:N=>{var ne;const{oldIndex:I,newIndex:j}=N;if(I===j)return;const D=In.value.splice(I,1)[0];In.value.splice(j,0,D),F.value=(ne=F.value)==null?void 0:ne.slice().sort((se,W)=>{if(se.label==="操作")return 1;if(W.label==="操作")return-1;const be=In.value.findIndex(Ke=>Ke.label===se.label),ye=In.value.findIndex(Ke=>Ke.label===W.label);return be-ye})}})};e.onMounted(()=>{Na.value=window.innerWidth-240*2,window.addEventListener("keydown",eo)});const xu=()=>{e.nextTick(()=>{ku()})},wu=()=>{c.value=!0},dt=(d,v)=>{var I;if(!d&&!(d!=null&&d.children))return{contents:d,currentSelectContents:void 0};let N;return d.children=(I=d.children)==null?void 0:I.map(j=>{var D,ne;if((j==null?void 0:j.id)===ia.value){let se={};for(let W in j){let be=(D=v==null?void 0:v.find(ye=>(ye==null?void 0:ye.prop)===W))==null?void 0:D.label;be?se[W]=(ne=ir.value)==null?void 0:ne[be]:se[W]=j[W]??""}j=Object.assign(se,ir.value),N=j}else{let se=dt(j,v);j=se==null?void 0:se.contents,N=se==null?void 0:se.currentSelectContents}return j}),{contents:d,currentSelectContents:N}},Vt=(d,v)=>{let N,I;return d!=null&&d.find(j=>(j==null?void 0:j.id)===ia.value)?N=d==null?void 0:d.map(j=>{var D,ne,se;if((j==null?void 0:j.id)===ia.value){let W={};for(let ye in j){let Ke=(D=v==null?void 0:v.find(Ue=>(Ue==null?void 0:Ue.prop)===ye))==null?void 0:D.label;Ke?W[ye]=((ne=ir.value)==null?void 0:ne[Ke])??"":W[ye]=j[ye]??""}let be=ir.value;for(let ye in W)(se=ir.value)!=null&&se[ye]||(be[ye]=(W==null?void 0:W[ye])??"");j=be,I=j}return j}):N=d==null?void 0:d.map(j=>{var D,ne,se,W;if((j==null?void 0:j.id)===ia.value){let be={};for(let ye in j){let Ke=(D=v==null?void 0:v.find(Ue=>(Ue==null?void 0:Ue.prop)===ye))==null?void 0:D.label;Ke?be[ye]=(ne=ir.value)==null?void 0:ne[Ke]:be[ye]=j[ye]??""}j=Object.assign(be,ir.value),I=j}else j=(se=dt(j,v))==null?void 0:se.contents,I=(W=dt(j,v))==null?void 0:W.currentSelectContents;return j}),{newContents:N,currentSelectContents:I}},Ft=(d,v,N)=>{var I,j;return d[v==null?void 0:v.prop]=N,typeof d.id=="number"&&(d.id=(I=d.id)==null?void 0:I.toString()),d.children&&((j=d.children)==null?void 0:j.length)>0&&(d.children=d.children.map(Ft)),d},Pt=d=>{var N;const v=[];return v.push({...d}),d!=null&&d.children&&Array.isArray(d.children)&&((N=d.children)==null||N.forEach(I=>{v.push(...Pt(I))})),(v==null?void 0:v.length)>0?v==null?void 0:v.map(I=>{const j={...I};return delete j.children,j}):[]},ho=["Pacific6000数据采集装置.通道号","通道号"],Pi=d=>{if(!d)return"";const v=ho.map(N=>d==null?void 0:d[N]).find(N=>N!=null&&String(N).trim()!=="");return v==null?"":String(v).trim()},pt=async(d,v=void 0)=>{if(!d)return!1;try{const N=Xe=>{var va,Ca,Da;return Xe?typeof(Xe==null?void 0:Xe.value)=="string"?Xe.value:((Da=(Ca=(va=Xe==null?void 0:Xe._custom)==null?void 0:va.value)==null?void 0:Ca.value)==null?void 0:Da.value)||"":""},I=Array.isArray(br.value)?br.value:[],j=N(I.find(Xe=>(Xe==null?void 0:Xe.condition)==="child")),D=(ue.value||"").replace(/\/+$/,""),ne=j?`${D}/${j}`:D,se=await Xr(ne||ue.value,!1),W=String(je.value||"").trim(),be=Xe=>String(Xe||"").trim(),ye=(Xe,va=[],Ca="")=>{if(!Array.isArray(Xe))return va;for(const Da of Xe){const Ze=be((Da==null?void 0:Da.choiceName)||(Da==null?void 0:Da.name0)||Ca);(Da==null?void 0:Da.comp)==="Table"&&(!W||Ze===W)&&va.push(Da),Array.isArray(Da==null?void 0:Da.children)&&ye(Da.children,va,Ze),Array.isArray(Da==null?void 0:Da.tab)&&ye(Da.tab,va,Ze),Array.isArray(Da==null?void 0:Da.choice)&&ye(Da.choice,va,Ze)}return va},Ke=ye(se||[]),Ue=String((p==null?void 0:p.compName)||"");return Ke.some(Xe=>{var Ca,Da;const va=((Da=(Ca=Xe==null?void 0:Xe.compData)==null?void 0:Ca.find(Ze=>(Ze==null?void 0:Ze.key)==="tableContents"))==null?void 0:Da.contents)||[];return!Array.isArray(va)||va.length===0?!1:va.some(Ze=>{if(String((Xe==null?void 0:Xe.name)||"")===Ue&&(Ze==null?void 0:Ze.id)===v)return!1;const ya=Pi(Ze);return!!ya&&ya===d})})}catch{return(Ee.value||[]).some(I=>{if((I==null?void 0:I.id)===v)return!1;const j=Pi(I);return!!j&&j===d})}},ji=async(d=!0,v,N)=>{var be,ye,Ke,Ue,Xe,va,Ca,Da,Ze,il,ya,tl,ge,Fa,fa,Ja,La,Ne,Z,Pe,oa,T,Ma,Ha,sl,Ga,xa,dl,ql,qa,Dl;if(ir.value){const Va=(ye=ie.getColumnChild((be=z.cloneDeep(F.value))==null?void 0:be.filter(nl=>(nl==null?void 0:nl.label)!=="操作")))==null?void 0:ye.filter(nl=>(nl==null?void 0:nl.required)===!0);for(let nl=0;nl<((Va==null?void 0:Va.length)??0);nl++){const hl=Va[nl],Ol=hl==null?void 0:hl.prop,kl=(hl==null?void 0:hl.label)??Ol,gr=(Ke=ir.value)==null?void 0:Ke[Ol];if(gr===""||gr===null||gr===void 0||Array.isArray(gr)&&gr.length===0){Xa.ElMessage.error(`${kl}不能为空`);return}}const $l=Pi(ir.value);if($l&&await pt($l,ia.value||void 0)){Xa.ElMessage.warning("当前任务下通道号不能重复,请重新选择");return}}let I=ie.getColumnChild((Ue=z.cloneDeep(F.value))==null?void 0:Ue.filter(Va=>(Va==null?void 0:Va.label)!=="操作")),j,D=z.cloneDeep(Ee.value);if(!ir.value){K.value=!1;return}if(ia.value===""){Ce.value++;let Va;Va={id:Ce.value.toString()};try{Va.sort=On(0,Ee.value||[])}catch{}Va!=null&&Va.children&&(Va={...Va,children:(Xe=Va.children)==null?void 0:Xe.map(nl=>Ft(nl,v,N))});const $l=Object.assign(ir.value,Va);D.unshift($l),j=$l}else D=(va=Vt(D,I))==null?void 0:va.newContents,j=(Ca=Vt(D,I))==null?void 0:Ca.currentSelectContents;const ne=(Da=p.itemData)==null?void 0:Da.filter(Va=>(Va==null?void 0:Va.key)==="childTree")[0];if(((Ze=ne==null?void 0:ne.contents)==null?void 0:Ze.length)>0){Je.value="编辑";const Va=[];D==null||D.forEach((hl,Ol)=>{var gr;let kl={};if(Array.isArray(hl)){let tr=[];hl==null||hl.filter(lr=>!(lr!=null&&lr.id)).forEach((lr,wl)=>{var Zl,ur,Rl,dr,xr,pr,Er;if((ur=(Zl=Gl.value)==null?void 0:Zl[wl])!=null&&ur.prop&&!Array.isArray(lr)){let ln={};ln[Gl.value[wl].column]=lr,V!=null&&V.value&&((Rl=V==null?void 0:V.value)==null?void 0:Rl.length)>0&&((dr=V==null?void 0:V.value)!=null&&dr.find(sr=>JSON.stringify(sr==null?void 0:sr[0])===JSON.stringify(ln)))&&(tr=(xr=V==null?void 0:V.value)==null?void 0:xr.find(sr=>JSON.stringify(sr==null?void 0:sr[0])===JSON.stringify(ln))),tr&&tr.length>0?kl[Gl.value[wl].prop]=tr!=null&&tr.find(sr=>{var Br;return((Br=Object.keys(sr))==null?void 0:Br[0])===Gl.value[wl].column})?(pr=tr==null?void 0:tr.find(sr=>{var Br;return((Br=Object.keys(sr))==null?void 0:Br[0])===Gl.value[wl].column}))==null?void 0:pr[Gl.value[wl].column]:lr:kl[Gl.value[wl].prop]=lr}else Array.isArray(lr)&&((Er=Gl.value[wl])!=null&&Er.prop?kl[Gl.value[wl].prop]=lr:kl.children=Et(lr,Gl.value))})}else kl=hl;if(Array.isArray(hl)&&hl.some(tr=>tr==null?void 0:tr.id)){const tr=(gr=hl==null?void 0:hl.find(lr=>lr.id))==null?void 0:gr.id;Va.push(Object.assign(kl,{id:so(tr)}))}else kl.id?Va.push(kl):Va.push(Object.assign(kl,{id:Ol.toString()}))});const $l=(Ee.value||[]).map(hl=>String(hl==null?void 0:hl.id)),nl=co(Va,$l);Ee.value=qt(nl,ne,F.value)}Ht(Ee.value),Jr.value=Ee.value;const se=Yf(Jr.value,cr.value,D);let W=[];if(Q.value?(W=(il=z.cloneDeep(Q).value.singleContent)==null?void 0:il.filter(Va=>(Va==null?void 0:Va.id)!==(j==null?void 0:j.id)),W.push(j)):W=[j],Yl.value){const Va={content:se,singleContent:((ya=ne==null?void 0:ne.contents)==null?void 0:ya.length)>0?W==null?void 0:W.flatMap(Pt):W,index:p==null?void 0:p.index,buttonName:"编辑",column:F.value,parentTableId:p==null?void 0:p.parentTableId};Ia.setCacheUpdatingData(Va)}if((tl=F.value)==null||tl.forEach(Va=>{(Va==null?void 0:Va.formType)==="Upload"&&(j[Va.prop]=j[Va.prop]===""?"{}":typeof j[Va.prop]!="string"?JSON.stringify(j[Va.prop]):j[Va.prop])}),d){(Ja=(fa=(Fa=(ge=p.itemData)==null?void 0:ge.find(nl=>(nl==null?void 0:nl.key)==="filterAllType"))==null?void 0:Fa.value)==null?void 0:fa.find(nl=>(nl==null?void 0:nl.value)==="onConditionContents"))==null||Ja.content;let Va=(La=p.itemData)==null?void 0:La.filter(nl=>(nl==null?void 0:nl.key)==="filterAllType");Va=Array.from(new Map(Va.filter(Boolean).map((nl,hl)=>[nl.value,{...nl,_idx:hl}])).values()).sort((nl,hl)=>nl._idx-hl._idx).map(({_idx:nl,...hl})=>hl),Va=(Ne=Va==null?void 0:Va[(Va==null?void 0:Va.length)-1])==null?void 0:Ne.value;const $l={fixContent:[j],buttonName:Je.value,relatedContents:p==null?void 0:p.related,columns:F.value,name:p==null?void 0:p.groupNames};Ia.setTableLoading(p==null?void 0:p.index),K.value=!1,ir.value=void 0,H("change",$l)}if((oa=(Pe=(Z=we.value)==null?void 0:Z[0])==null?void 0:Pe.optionUrl)!=null&&oa.menuId){K.value=!1;let Va=(T=p.itemData)==null?void 0:T.filter($l=>($l==null?void 0:$l.key)==="filterAllType");if((Va==null?void 0:Va.length)>0){let $l=Va==null?void 0:Va.map(Ol=>Ol==null?void 0:Ol.value),nl=(sl=(Ha=(Ma=$l.flat().find(Ol=>{var kl;return(kl=Ol==null?void 0:Ol.content)==null?void 0:kl.includes("@Num")}))==null?void 0:Ma.content)==null?void 0:Ha.split(":"))==null?void 0:sl[1];((dl=(xa=(Ga=$l.flat().find(Ol=>{var kl;return(kl=Ol==null?void 0:Ol.content)==null?void 0:kl.includes("@Type:")}))==null?void 0:Ga.content)==null?void 0:xa.split(":"))==null?void 0:dl[1])!=="Manual"&&(nl=parseInt(nl),Ee.value=(Dl=Ee.value)==null?void 0:Dl.slice(((ql=Ee.value)==null?void 0:ql.length)-nl,(qa=Ee.value)==null?void 0:qa.length))}}};e.onUnmounted(()=>{window.removeEventListener("keydown",eo),F.value=[],Ee.value=[],Re.value=[],oe.value=[],da.value=[],Aa.value=[],He.value=[],Ie.value=[],we.value=[],Tr.value=[],i.value=null,_n.value=""});const vo=async(d,v,N)=>{var Xe,va,Ca,Da,Ze,il,ya,tl,ge,Fa,fa,Ja,La;kr.value=(N==null?void 0:N.prop)??(N==null?void 0:N.property);const I=z.cloneDeep(p.itemData),j=((Xe=I==null?void 0:I.find(Ne=>(Ne==null?void 0:Ne.key)==="header"))==null?void 0:Xe.contents)??[];let D=j==null?void 0:j.find((Ne,Z)=>{var Pe,oa,T;return(Ne==null?void 0:Ne.prop)===kr.value||(Ne==null?void 0:Ne.label)===kr.value||(Z==null?void 0:Z.toString())===((T=(oa=(Pe=kr.value)==null?void 0:Pe.split("a"))==null?void 0:oa[1])==null?void 0:T.toString())});const ne=ie.getColumnChild((va=z.cloneDeep(F.value))==null?void 0:va.filter(Ne=>(Ne==null?void 0:Ne.label)!=="操作"));if(D||(D=ne==null?void 0:ne.find(Ne=>(Ne==null?void 0:Ne.prop)===kr.value||(Ne==null?void 0:Ne.label)===kr.value)),D&&!((Ca=D==null?void 0:D.menus)!=null&&Ca.length)&&!((Da=D==null?void 0:D.groups)!=null&&Da.length)&&!((Ze=D==null?void 0:D.words)!=null&&Ze.length)){const Ne=(il=we.value)==null?void 0:il.find(Z=>(Z==null?void 0:Z.prop)===kr.value);Ne&&(D={...D,menus:(Ne==null?void 0:Ne.menus)??(D==null?void 0:D.menus),groups:(Ne==null?void 0:Ne.groups)??(D==null?void 0:D.groups),words:(Ne==null?void 0:Ne.words)??(D==null?void 0:D.words),bindMenus:(Ne==null?void 0:Ne.bindMenus)??(D==null?void 0:D.bindMenus),isMainPath:(Ne==null?void 0:Ne.isMainPath)??(D==null?void 0:D.isMainPath),relatedContents:(Ne==null?void 0:Ne.relatedContents)??(D==null?void 0:D.relatedContents),endChildMenu:(Ne==null?void 0:Ne.endChildMenu)??(D==null?void 0:D.endChildMenu)})}if(D&&((ya=we==null?void 0:we.value)==null||ya.forEach(Ne=>{var Z,Pe,oa,T,Ma;(Ne==null?void 0:Ne.prop)===(D==null?void 0:D.prop)&&(Ne!=null&&Ne.endChildMenu)&&((Z=D==null?void 0:D.prop)!=null&&Z.includes(".")&&((oa=(Pe=D==null?void 0:D.prop)==null?void 0:Pe.split("."))==null?void 0:oa[0])!==((Ma=(T=Ne==null?void 0:Ne.prop)==null?void 0:T.split("."))==null?void 0:Ma[0])?D.endChildMenu=Ne==null?void 0:Ne.value:D.endChildMenu=Ne==null?void 0:Ne.endChildMenu)})),!D)return;const se=kr.value,W=(tl=Ee.value)==null?void 0:tl.findIndex(Ne=>(Ne==null?void 0:Ne.id)===(v==null?void 0:v.id));W!==-1&&se&&(Ee.value[W]={...Ee.value[W],[se]:d});const be=Ne=>{Array.isArray(Ne)&&Ne.forEach(Z=>{Array.isArray(Z==null?void 0:Z.allSelectionContents)&&Z.allSelectionContents.length>0&&(Z.contactValue=Ee.value[W]??v),Array.isArray(Z==null?void 0:Z.children)&&Z.children.length>0&&be(Z.children)})};be(F.value),D.value=d,D.endChildMenu=D.endChildMenu||"";let ye=D!=null&&D.isMainPath&&(D!=null&&D.mainKey)?D==null?void 0:D.value:"";const Ke=Ne=>{Array.isArray(Ne)&&Ne.forEach(Z=>{var oa,T;if(((Z==null?void 0:Z.type)==="Select"||(Z==null?void 0:Z.formType)&&Z.formType.toUpperCase()==="SELECT"||(Z==null?void 0:Z.columnType)&&Z.columnType.toUpperCase()==="SELECT")&&Array.isArray(Z==null?void 0:Z.menus)&&Z.menus.length>0&&Z.menus[Z.menus.length-1]===""&&(D!=null&&D.isMainPath)&&(D!=null&&D.mainKey)){const Ma=(oa=Z==null?void 0:Z.prop)!=null&&oa.includes(".")?Z.prop.split(".")[0]:null,Ha=(T=D==null?void 0:D.prop)!=null&&T.includes(".")?D.prop.split(".")[0]:null;(!Ma||!Ha||Ma===Ha)&&(Z.endChildMenu=ye)}Array.isArray(Z==null?void 0:Z.children)&&Z.children.length>0&&Ke(Z.children)})};if(Ke(F.value),!!(D!=null&&D.mainKey)&&Array.isArray(D==null?void 0:D.menus)&&(D==null?void 0:D.menus.length)>0&&(D!=null&&D.value)&&(D==null?void 0:D.value)!==""){let Ne=D!=null&&D.relatedContents&&((ge=D==null?void 0:D.relatedContents)==null?void 0:ge.length)>0?(Fa=D==null?void 0:D.relatedContents)==null?void 0:Fa.find(Z=>{var Pe,oa,T,Ma;return(Z==null?void 0:Z[(Ma=(Pe=D==null?void 0:D.prop)==null?void 0:Pe.split("."))==null?void 0:Ma[((T=(oa=D==null?void 0:D.prop)==null?void 0:oa.split("."))==null?void 0:T.length)-1]])===(D==null?void 0:D.value)}):await gs(D);if(Ne){const Z={...v};ne==null||ne.forEach(Pe=>{var oa,T,Ma,Ha,sl,Ga,xa,dl,ql,qa,Dl,Va,$l,nl,hl,Ol;(Pe==null?void 0:Pe.prop)!==(D==null?void 0:D.prop)&&(D!=null&&D.relatedContents&&((oa=D==null?void 0:D.relatedContents)==null?void 0:oa.length)>0?(T=Pe==null?void 0:Pe.prop)!=null&&T.includes(".")&&((Ha=(Ma=Pe==null?void 0:Pe.prop)==null?void 0:Ma.split("."))==null?void 0:Ha[0])===((Ga=(sl=D==null?void 0:D.prop)==null?void 0:sl.split("."))==null?void 0:Ga[0])?Z[Pe.prop]=Ne[(qa=(xa=Pe==null?void 0:Pe.prop)==null?void 0:xa.split("."))==null?void 0:qa[((ql=(dl=Pe==null?void 0:Pe.prop)==null?void 0:dl.split("."))==null?void 0:ql.length)-1]]??Z[Pe.prop]:Z[Pe.prop]=(Ne==null?void 0:Ne[Pe.prop])??Z[Pe.prop]:ie.same((D==null?void 0:D.menus)??[],(Pe==null?void 0:Pe.menus)??[])&&ie.same((D==null?void 0:D.groups)??[],(Pe==null?void 0:Pe.groups)??[])&&!ie.same((D==null?void 0:D.words)??[],(Pe==null?void 0:Pe.words)??[])?(Dl=Pe==null?void 0:Pe.prop)!=null&&Dl.includes(".")&&(($l=(Va=Pe==null?void 0:Pe.prop)==null?void 0:Va.split("."))==null?void 0:$l[0])!==((hl=(nl=D==null?void 0:D.prop)==null?void 0:nl.split("."))==null?void 0:hl[0])||(Z[Pe.prop]=(Ne==null?void 0:Ne[(Ol=Pe==null?void 0:Pe.words)==null?void 0:Ol.join(".")])??(Ne==null?void 0:Ne[Pe.prop])??Z[Pe.prop]):(!(Pe!=null&&Pe.isMainPath)&&ie.same((D==null?void 0:D.bindMenus)??[],(Pe==null?void 0:Pe.bindMenus)??[]),Z[Pe.prop]=(Ne==null?void 0:Ne[Pe.prop])??Z[Pe.prop]))}),Ee.value=(fa=z.cloneDeep(Ee.value))==null?void 0:fa.map(Pe=>(Pe==null?void 0:Pe.id)===(v==null?void 0:v.id)?{...Z,id:Pe==null?void 0:Pe.id}:Pe)}}if((Ja=D==null?void 0:D.optionUrl)!=null&&Ja.menuSelect){let Ne="";ne==null||ne.forEach(oa=>{var T,Ma,Ha,sl,Ga;Ne===""&&((Ha=(Ma=(T=oa==null?void 0:oa.optionUrl)==null?void 0:T.groupSelect)==null?void 0:Ma[1])!=null&&Ha.includes("["))&&(Ne=(Ga=(sl=oa==null?void 0:oa.optionUrl)==null?void 0:sl.groupSelect)==null?void 0:Ga[1])});let Z=await Ct(D),Pe;if(Z==null||Z.forEach(oa=>{var T,Ma,Ha,sl,Ga,xa,dl,ql,qa,Dl;Ne===((Ma=(T=D==null?void 0:D.optionUrl)==null?void 0:T.groupSelect)==null?void 0:Ma[1])&&((Ga=(sl=(Ha=D==null?void 0:D.optionUrl)==null?void 0:Ha.groupSelect)==null?void 0:sl[1])!=null&&Ga.includes("["))&&((Dl=z.cloneDeep(oa))==null?void 0:Dl[(qa=(ql=(dl=(xa=D==null?void 0:D.optionUrl)==null?void 0:xa.groupSelect)==null?void 0:dl[1])==null?void 0:ql.replaceAll("[",""))==null?void 0:qa.replaceAll("]","")])===(D==null?void 0:D.value)&&(Pe=oa)}),Pe){const oa={...v};ne==null||ne.forEach(T=>{var Ma,Ha,sl,Ga,xa,dl,ql,qa,Dl,Va,$l;(Pe!=null&&Pe[T==null?void 0:T.label]||Pe!=null&&Pe[(Ga=(sl=(Ha=(Ma=T==null?void 0:T.optionUrl)==null?void 0:Ma.groupSelect)==null?void 0:Ha[1])==null?void 0:sl.replaceAll("[",""))==null?void 0:Ga.replaceAll("]","")])&&((ql=(dl=(xa=T==null?void 0:T.optionUrl)==null?void 0:xa.groupSelect)==null?void 0:dl[1])!=null&&ql.includes("["))&&(oa[T.prop]=(Pe==null?void 0:Pe[T==null?void 0:T.label])||(Pe==null?void 0:Pe[($l=(Va=(Dl=(qa=T==null?void 0:T.optionUrl)==null?void 0:qa.groupSelect)==null?void 0:Dl[1])==null?void 0:Va.replaceAll("[",""))==null?void 0:$l.replaceAll("]","")]))}),Ee.value=(La=z.cloneDeep(Ee.value))==null?void 0:La.map(T=>(T==null?void 0:T.id)===(v==null?void 0:v.id)?{...oa,id:T==null?void 0:T.id}:T)}}},_u=async d=>{var Xe,va,Ca,Da,Ze,il,ya,tl,ge,Fa,fa,Ja,La,Ne;if(!d)return;const v=z.cloneDeep(ir.value||{});ir.value=d;const N=Pi(v),I=Pi(ir.value);if(I&&I!==N&&await pt(I,ia.value||void 0)){Xa.ElMessage.warning("当前任务下通道号不能重复,请重新选择"),ho.forEach(Pe=>{if(Object.prototype.hasOwnProperty.call(ir.value||{},Pe)||Object.prototype.hasOwnProperty.call(v||{},Pe)){const oa=(v==null?void 0:v[Pe])??"";ir.value[Pe]=oa,d[Pe]=oa}}),we.value=(we.value||[]).map(Pe=>{if(!(Pe!=null&&Pe.prop)||!ho.includes(Pe.prop))return Pe;const oa=(v==null?void 0:v[Pe.prop])??"";return{...Pe,value:oa,selectValue:oa===""?[]:[oa]}});return}let j=z.cloneDeep(p.itemData);j==null||j.map(Z=>{var Pe,oa,T,Ma;return(Z==null?void 0:Z.key)==="header"&&(Array.isArray((Pe=Z.contents)==null?void 0:Pe[0])?Z.contents=(T=ie.getColumnChild((oa=Z.contents)==null?void 0:oa[0]))==null?void 0:T.map((Ha,sl)=>{var Ga,xa,dl,ql,qa,Dl;return((dl=(xa=(Ga=we.value)==null?void 0:Ga.find(Va=>(Va==null?void 0:Va.prop)===(Ha==null?void 0:Ha.prop)))==null?void 0:xa.optionUrl)==null?void 0:dl.multiple)===!0&&!Array.isArray((ql=Object.values(d))==null?void 0:ql[sl])?Ha.value=[(qa=Object.values(d))==null?void 0:qa[sl]]:Ha.value=(Dl=Object.values(d))==null?void 0:Dl[sl],Ha}):Z.contents=(Ma=Z.contents)==null?void 0:Ma.map((Ha,sl)=>{var Ga,xa,dl,ql,qa,Dl;return((dl=(xa=(Ga=we.value)==null?void 0:Ga.find(Va=>(Va==null?void 0:Va.prop)===(Ha==null?void 0:Ha.prop)))==null?void 0:xa.optionUrl)==null?void 0:dl.multiple)===!0&&!Array.isArray((ql=Object.values(d))==null?void 0:ql[sl])?Ha.value=[(qa=Object.values(d))==null?void 0:qa[sl]]:Ha.value=(Dl=Object.values(d))==null?void 0:Dl[sl],Ha})),Z});let D=we.value,ne=(Xe=j==null?void 0:j.find(Z=>(Z==null?void 0:Z.key)==="header"))==null?void 0:Xe.contents;if(kr.value||(D=D==null?void 0:D.map(Z=>{var Pe;return Z.value=Z.value??((Pe=ne==null?void 0:ne.find((oa,T)=>(oa==null?void 0:oa.prop)===(Z==null?void 0:Z.name)))==null?void 0:Pe.value),Z})),!wr.value)return;let se=z.cloneDeep(kr.value);(va=kr.value)!=null&&va.includes("·")&&(kr.value=(Da=(Ca=kr.value)==null?void 0:Ca.split("·"))==null?void 0:Da[0]);let W=(il=(Ze=j==null?void 0:j.find(Z=>(Z==null?void 0:Z.key)==="header"))==null?void 0:Ze.contents)==null?void 0:il.find((Z,Pe)=>(Z==null?void 0:Z.prop)===kr.value);(ya=we==null?void 0:we.value)==null||ya.forEach(Z=>{var Pe,oa,T,Ma,Ha,sl,Ga,xa,dl;(Z==null?void 0:Z.prop)===(W==null?void 0:W.prop)&&(Z!=null&&Z.endChildMenu)&&((Pe=W==null?void 0:W.prop)!=null&&Pe.includes(".")&&((T=(oa=W==null?void 0:W.prop)==null?void 0:oa.split("."))==null?void 0:T[0])!==((Ha=(Ma=Z==null?void 0:Z.prop)==null?void 0:Ma.split("."))==null?void 0:Ha[0])?W.endChildMenu=(Ga=(sl=Z==null?void 0:Z.value)==null?void 0:sl.split(" "))==null?void 0:Ga[0]:W.endChildMenu=(dl=(xa=Z==null?void 0:Z.endChildMenu)==null?void 0:xa.split(" "))==null?void 0:dl[0])});let be=W!=null&&W.isMainPath&&(W!=null&&W.mainKey)?W==null?void 0:W.value:"",ye=D,Ke=re.value;if(Ke!=null&&Ke.find(Z=>(W==null?void 0:W.prop)===(Z==null?void 0:Z.key))&&(Ke=Ke==null?void 0:Ke.filter(Z=>(W==null?void 0:W.prop)!==(Z==null?void 0:Z.key))),Ke!=null&&Ke.find(Z=>se===(Z==null?void 0:Z.key))&&(Ke=Ke==null?void 0:Ke.filter(Z=>se!==(Z==null?void 0:Z.key))),(W==null?void 0:W.formType)==="Select"?ye=ye==null?void 0:ye.map(Z=>{var Pe,oa,T,Ma,Ha,sl,Ga,xa,dl,ql,qa,Dl,Va,$l,nl,hl;return(Z==null?void 0:Z.type)==="Select"&&(((Pe=Z==null?void 0:Z.allSelectionContents)==null?void 0:Pe.length)>0&&(Z.contactValue=d),((W==null?void 0:W.prop)===(Z==null?void 0:Z.prop)||se===(Z==null?void 0:Z.prop))&&W&&(Array.isArray(W.value)&&((oa=W.value)==null?void 0:oa.length)>0&&((T=W.value)!=null&&T.every(Ol=>typeof Ol=="string"))?(Ke.push({key:Z==null?void 0:Z.prop,value:[(Ha=W.value)==null?void 0:Ha[((Ma=W.value)==null?void 0:Ma.length)-1]]}),Z.selectValue=(sl=Ke==null?void 0:Ke.find(Ol=>(Ol==null?void 0:Ol.key)===(Z==null?void 0:Z.prop)))==null?void 0:sl.value):Array.isArray(W.value)&&((Ga=W.value)==null?void 0:Ga.length)===0?(Ke=[],Z.selectValue=[],d[Z==null?void 0:Z.prop]=""):Array.isArray(Z.value)&&Ke.push({key:Z==null?void 0:Z.prop,value:[(xa=Z.value)==null?void 0:xa[(Z==null?void 0:Z.length)-1]]})),((ql=Z==null?void 0:Z.menus)==null?void 0:ql[((dl=Z==null?void 0:Z.menus)==null?void 0:dl.length)-1])===""&&(W!=null&&W.isMainPath)&&(W!=null&&W.mainKey)&&((qa=Z==null?void 0:Z.prop)!=null&&qa.includes(".")&&((Va=(Dl=Z==null?void 0:Z.prop)==null?void 0:Dl.split("."))==null?void 0:Va[0])!==((nl=($l=W==null?void 0:W.prop)==null?void 0:$l.split("."))==null?void 0:nl[0])||(Z.endChildMenu=(hl=be==null?void 0:be.split(" "))==null?void 0:hl[0]))),Z.value=(d==null?void 0:d[Z==null?void 0:Z.prop])??(Z==null?void 0:Z.value),Z}):(W==null?void 0:W.formType)!=="Input"&&(ye=ye==null?void 0:ye.map(Z=>(Z.value=(d==null?void 0:d[Z==null?void 0:Z.prop])??(Z==null?void 0:Z.value),Z))),re.value=Ke,ye!=null&&ye.some(Z=>(Z==null?void 0:Z.functionName)&&(Z==null?void 0:Z.functionName)!=="")){let Z=await St([d],F==null?void 0:F.value,"Auto",Ee.value),Pe=[];(tl=ye==null?void 0:ye.filter(T=>(T==null?void 0:T.functionName)&&(T==null?void 0:T.functionName)!==""))==null||tl.forEach(T=>{var Ma;((Ma=T==null?void 0:T.functionRelatedWords)==null?void 0:Ma.length)>0&&(Pe=[...Pe,...T==null?void 0:T.functionRelatedWords])}),Pe=Pe==null?void 0:Pe.filter(T=>(T==null?void 0:T[0])!=="@");let oa=[];for(let T in Z==null?void 0:Z[0])Pe!=null&&Pe.find(Ma=>T===Ma||(T==null?void 0:T.includes("."+Ma)))&&oa.push(((ge=Z==null?void 0:Z[0])==null?void 0:ge[T])!=="");(Z==null?void 0:Z.length)>0&&oa.every(T=>T)&&(ye=ye==null?void 0:ye.map(T=>{var Ma;return T.value=((Ma=Z==null?void 0:Z[0])==null?void 0:Ma[T==null?void 0:T.prop])??T.value,T})),ir.value=Z==null?void 0:Z[0]}if(we.value=ye,W=Object.assign({},W??{},{relatedWords:(fa=(Fa=we==null?void 0:we.value)==null?void 0:Fa.find(Z=>(Z==null?void 0:Z.prop)===(W==null?void 0:W.prop)))==null?void 0:fa.relatedWords}),(W==null?void 0:W.mainKey)&&(W!=null&&W.value)&&(W==null?void 0:W.value)!==""){let Z=W!=null&&W.relatedContents&&((Ja=W==null?void 0:W.relatedContents)==null?void 0:Ja.length)>0?(La=W==null?void 0:W.relatedContents)==null?void 0:La.find(Pe=>{var oa,T,Ma,Ha;return(Pe==null?void 0:Pe[(Ha=(oa=W==null?void 0:W.prop)==null?void 0:oa.split("."))==null?void 0:Ha[((Ma=(T=W==null?void 0:W.prop)==null?void 0:T.split("."))==null?void 0:Ma.length)-1]])===(W==null?void 0:W.value)}):await gs(W);if(Z&&JSON.stringify(Z)!=="{}"){let Pe=ye;Pe=Pe==null?void 0:Pe.map(T=>{var Ma,Ha,sl,Ga,xa,dl,ql,qa,Dl,Va,$l,nl,hl,Ol,kl,gr,tr,lr,wl,Zl,ur;if((W==null?void 0:W.prop)===(T==null?void 0:T.prop))T.value=(Z==null?void 0:Z[(Ma=T==null?void 0:T.words)==null?void 0:Ma.join(".")])??(Z==null?void 0:Z[T==null?void 0:T.prop])??Z[(xa=(Ha=T==null?void 0:T.prop)==null?void 0:Ha.split("."))==null?void 0:xa[((Ga=(sl=T==null?void 0:T.prop)==null?void 0:sl.split("."))==null?void 0:Ga.length)-1]];else if(W!=null&&W.relatedContents&&((dl=W==null?void 0:W.relatedContents)==null?void 0:dl.length)>0)T.value=(ql=T==null?void 0:T.prop)!=null&&ql.includes(".")&&((Dl=(qa=T==null?void 0:T.prop)==null?void 0:qa.split("."))==null?void 0:Dl[0])===(($l=(Va=W==null?void 0:W.prop)==null?void 0:Va.split("."))==null?void 0:$l[0])?Z[(kl=(nl=T==null?void 0:T.prop)==null?void 0:nl.split("."))==null?void 0:kl[((Ol=(hl=T==null?void 0:T.prop)==null?void 0:hl.split("."))==null?void 0:Ol.length)-1]]:(Z==null?void 0:Z[T==null?void 0:T.prop])??(T==null?void 0:T.value);else if(ie.same((W==null?void 0:W.menus)??[],(T==null?void 0:T.menus)??[])&&ie.same((W==null?void 0:W.groups)??[],(T==null?void 0:T.groups)??[])&&!ie.same((W==null?void 0:W.words)??[],(T==null?void 0:T.words)??[]))if((gr=T==null?void 0:T.prop)!=null&&gr.includes(".")&&((lr=(tr=T==null?void 0:T.prop)==null?void 0:tr.split("."))==null?void 0:lr[0])!==((Zl=(wl=W==null?void 0:W.prop)==null?void 0:wl.split("."))==null?void 0:Zl[0])){let Rl=Object.keys(Z);Rl=Rl==null?void 0:Rl.find(dr=>{var xr;return dr==null?void 0:dr.includes("."+((xr=T==null?void 0:T.words)==null?void 0:xr.join(".")))}),T.value=(Z==null?void 0:Z[Rl])??(Z==null?void 0:Z[T==null?void 0:T.prop])??T.value}else{let Rl=Object.keys(Z);Rl=Rl==null?void 0:Rl.find(dr=>{var xr;return dr==null?void 0:dr.includes("."+((xr=T==null?void 0:T.words)==null?void 0:xr.join(".")))}),T.value=(Z==null?void 0:Z[(ur=T==null?void 0:T.words)==null?void 0:ur.join(".")])??(Z==null?void 0:Z[Rl])??(Z==null?void 0:Z[T==null?void 0:T.prop])??T.value}else!(T!=null&&T.isMainPath)&&ie.same((W==null?void 0:W.bindMenus)??[],(T==null?void 0:T.bindMenus)??[]),T.value=(Z==null?void 0:Z[T==null?void 0:T.prop])??T.value;return T}),we.value=Pe;let oa={};(Ne=we.value)==null||Ne.forEach(T=>{oa[T.prop]=T==null?void 0:T.value}),ir.value=oa}}wr.value=!0,P.value=!1},Su=d=>d?(d==null?void 0:d.toUpperCase())==="INPUT"?"TEXTAREA":d:"TEXTAREA",Eu=d=>{var D,ne;const v=(ne=(D=da.value)==null?void 0:D.find(se=>(se==null?void 0:se.label)===(d==null?void 0:d.label)))==null?void 0:ne.multiple,N=d==null?void 0:d.prop;if((d==null?void 0:d.formType)!="Select")return;Ee.value.forEach(se=>{const W=se==null?void 0:se[N];v&&Ao.isString(W)&&(se[N]=[W]),!v&&!Ao.isString(W)&&(se[N]="")})},jt=(d,v)=>{var N;return v==null||v.forEach(I=>{d[I==null?void 0:I.prop]=I==null?void 0:I.value}),d.children&&((N=d.children)==null?void 0:N.length)>0&&(d.children=d.children.map(I=>jt(I,v))),d},ft=d=>{var N,I,j,D,ne,se;Fi("");const v=(N=we.value)==null?void 0:N.reduce((W,be)=>(W[be.name]=be.value,W),{});if(((I=Object.keys(v))==null?void 0:I.length)>0){ir.value=v,ia.value="",Ce.value=(j=Ee.value)==null?void 0:j.length,Ie.value=(D=Ve.value)==null?void 0:D.filter(be=>(be==null?void 0:be.label)!=="新增");const W=(se=(ne=Re.value)==null?void 0:ne.filter(be=>(be==null?void 0:be.label)!=="操作"))==null?void 0:se.map(be=>{var Ke,Ue,Xe;const ye=(Ue=(Ke=da.value)==null?void 0:Ke.find(va=>(va==null?void 0:va.label)===(be==null?void 0:be.label)))==null?void 0:Ue.multiple;return Eu(be),{...be,contents:(be==null?void 0:be.options)??[],optionUrl:be!=null&&be.formMenuSelect&&((Xe=be==null?void 0:be.formMenuSelect)==null?void 0:Xe.length)>0?{groupSelect:be==null?void 0:be.groupSelect,menuSelect:be==null?void 0:be.formMenuSelect,selectRelateType:"",type:be==null?void 0:be.formType,multiple:ye}:null}});F.value=W==null?void 0:W.map(be=>jt(be,[{prop:"type",value:"edit"},{prop:"columnType",value:Su(be==null?void 0:be.formType)||(be==null?void 0:be.columnType)}])),d==="createClick"&&(Je.value="新增",ji(!0))}},wi={START:"开始时间",END:"结束时间",HOURS:"工时"},Cu=(d,v)=>Number(z.dayjs(v).diff(z.dayjs(d),"day",!0).toFixed(1)),Ht=d=>{var D;const v=p.itemData,N=(D=v==null?void 0:v.find(ne=>(ne==null?void 0:ne.key)==="header"))==null?void 0:D.contents,I=new Map;return N==null||N.forEach((ne,se)=>{const{label:W}=ne;I.set(W,se)}),!I.has(wi.START)||!I.has(wi.END)||!I.has(wi.HOURS)?d:d==null?void 0:d.map(ne=>{const se=ne==null?void 0:ne[wi.START],W=ne==null?void 0:ne[wi.END],be=Cu(se,W);return se&&W&&(ne[wi.HOURS]=`${be}天`),ne})},Ut=(d,v,N=0)=>{if(N>((v==null?void 0:v.length)??""))return d;const I=v==null?void 0:v[N],j=new Map;for(const ne of d){const se=ne[I];j.has(se)||j.set(se,[]),j.get(se)&&j.get(se).push(ne)}const D=[];for(const[ne,se]of j){const[W,...be]=se,ye={...W};N+1===((v==null?void 0:v.length)??"")?ye.children=se==null?void 0:se.map(Ke=>(Ke.level=z.cloneDeep(N)+1,Ke)).filter((Ke,Ue)=>Ue!==0):be.length>0&&(ye.children=Ut(be,v,N+1)),ye.level=N,D.push(ye)}return D},qt=(d,v,N)=>{var j;if(!(v!=null&&v.contents)||((j=v==null?void 0:v.contents)==null?void 0:j.length)===0)return d;let I=[];return I=Ut(d,v==null?void 0:v.contents,0),I},Wt=async(d,v)=>{var il,ya,tl,ge,Fa,fa,Ja,La,Ne,Z,Pe,oa,T,Ma,Ha,sl,Ga,xa,dl,ql,qa,Dl,Va,$l,nl,hl,Ol,kl,gr,tr,lr,wl,Zl,ur,Rl,dr,xr,pr,Er,ln,sr,Br,Lr,Gt,Yt,Jt,Xt,Zt,Qt;const N=d==null?void 0:d.filter(aa=>(aa==null?void 0:aa.key)==="header");d==null||d.filter(aa=>(aa==null?void 0:aa.key)==="tableIndexColumn")[0];const I=d==null?void 0:d.filter(aa=>(aa==null?void 0:aa.key)==="childTree")[0];let j=!0;if((tl=(ya=(il=d==null?void 0:d.find(aa=>(aa==null?void 0:aa.key)==="filterAllType"))==null?void 0:il.value)==null?void 0:ya.find(aa=>(aa==null?void 0:aa.value)==="onPamButtonContents"))!=null&&tl.content){let aa=(fa=(Fa=(ge=d==null?void 0:d.find(Il=>(Il==null?void 0:Il.key)==="filterAllType"))==null?void 0:ge.value)==null?void 0:Fa.find(Il=>(Il==null?void 0:Il.value)==="onPamButtonContents"))==null?void 0:fa.content;aa=(Ja=aa==null?void 0:aa.split(":"))==null?void 0:Ja[1],aa=(La=aa.slice(1,(aa==null?void 0:aa.length)-1))==null?void 0:La.split(","),j=!!(aa!=null&&aa.find(Il=>Il==="操作"))}const D=d==null?void 0:d.find(aa=>(aa==null?void 0:aa.key)==="page"),ne=d==null?void 0:d.find(aa=>(aa==null?void 0:aa.key)==="rowButton"),se=d==null?void 0:d.find(aa=>(aa==null?void 0:aa.key)==="extraButton"),W=d==null?void 0:d.filter(aa=>(aa==null?void 0:aa.key)==="tableContents"),be=d==null?void 0:d.filter(aa=>(aa==null?void 0:aa.key)==="bottomButton");let ye=[],Ke=(Ne=d==null?void 0:d.filter(aa=>(aa==null?void 0:aa.key)==="filter"))==null?void 0:Ne[0];Ke=(Ke==null?void 0:Ke.contents)??"",Ke=p0(Ke),(Ke==null?void 0:Ke.length)>0&&(u.value=Ke);const Ue=d==null?void 0:d.filter(aa=>(aa==null?void 0:aa.key)==="tableIndex");da.value=(Pe=(Z=d==null?void 0:d.filter(aa=>(aa==null?void 0:aa.key)==="tableToForm"))==null?void 0:Z[0])==null?void 0:Pe.contents,ka.value=(D==null?void 0:D.contents)??!0;let Xe=[];jr.value===""?Xe=N==null?void 0:N[0]:Xe=(N==null?void 0:N.find(aa=>(aa==null?void 0:aa.selectLabel)==="("+jr.value+")"))??(N==null?void 0:N.find(aa=>!(aa!=null&&aa.selectLabel)));let va=[];jr.value===""?va=Ue==null?void 0:Ue[0]:va=(Ue==null?void 0:Ue.find(aa=>(aa==null?void 0:aa.selectLabel)==="("+jr.value+")"))??(Ue==null?void 0:Ue.find(aa=>!(aa!=null&&aa.selectLabel)));let Ca=[],Da=[];if(((oa=Xe==null?void 0:Xe.contents)==null?void 0:oa.length)>0){let aa=[],Il=Xe==null?void 0:Xe.contents;if(Array.isArray(Il==null?void 0:Il[0])&&((T=Il==null?void 0:Il[0])!=null&&T.every(Za=>!(Za!=null&&Za.children)))&&(Il=Il==null?void 0:Il[0]),Il.some(Za=>Array.isArray(Za)&&(Za==null?void 0:Za.find(Ye=>Ye.children))))aa=(Ma=ie.getGradeColumns(Il,j))==null?void 0:Ma[0],aa!=null&&aa.find(Za=>(Za==null?void 0:Za.label)==="操作")||aa.push({label:"操作",prop:"operate",type:"operate"});else{let Za=Il.some(Ye=>Array.isArray(Ye))?Il==null?void 0:Il[0]:Il;Za!=null&&Za.find(Ye=>(Ye==null?void 0:Ye.label)==="操作")||Za.push({label:"操作",prop:"operate",type:"operate"}),Za==null||Za.forEach((Ye,fr)=>{var Gr,Zr,Fr,si,_i,Si,Nr,Nn,Yn,Ei,bn,Jn,es,as,ls,rs,ns,is,os,ts,ss;if((Zr=(Gr=ue.value)==null?void 0:Gr.split("/"))==null||Zr.forEach(mr=>{var Cr,Rn,cs;mr!==""&&((cs=(Rn=(Cr=mr==null?void 0:mr.split(R+"updateLoading"))==null?void 0:Cr[0])==null?void 0:Rn.split(R+"loading"))==null||cs[0])}),Ye!=null&&Ye.methodContent){let mr=(_i=(si=(Fr=Ye==null?void 0:Ye.methodContent)==null?void 0:Fr.replace("@","%%#"))==null?void 0:si.split("%%#"))==null?void 0:_i[1];if(mr=mr==null?void 0:mr.slice(0,(mr==null?void 0:mr.length)-1),mr=ie.contentTransArrayToAllNoExtra(mr??"",","),(Si=mr==null?void 0:mr.find(Cr=>Cr==null?void 0:Cr.includes("@Button")))!=null&&Si.includes("Prop")&&((Nr=mr==null?void 0:mr.find(Cr=>Cr==null?void 0:Cr.includes("Type")))!=null&&Nr.includes("Manual"))){let Cr=(Yn=(Nn=mr==null?void 0:mr.find(Rn=>Rn==null?void 0:Rn.includes("@Button")))==null?void 0:Nn.split(":"))==null?void 0:Yn[1];Cr=((Jn=(bn=(Ei=Cr==null?void 0:Cr.replaceAll("[",""))==null?void 0:Ei.replaceAll("]",""))==null?void 0:bn.split(","))==null?void 0:Jn[1])??"算法执行",Ca.push(Cr)}else if((es=mr==null?void 0:mr.find(Cr=>Cr==null?void 0:Cr.includes("@Button")))!=null&&es.includes("Row")&&((as=mr==null?void 0:mr.find(Cr=>Cr==null?void 0:Cr.includes("Type")))!=null&&as.includes("Manual"))){let Cr=(rs=(ls=mr==null?void 0:mr.find(Rn=>Rn==null?void 0:Rn.includes("@Button")))==null?void 0:ls.split(":"))==null?void 0:rs[1];Cr=((os=(is=(ns=Cr==null?void 0:Cr.replaceAll("[",""))==null?void 0:ns.replaceAll("]",""))==null?void 0:is.split(","))==null?void 0:os[1])??"算法执行",Da.push(Cr)}}(ts=da.value)==null||ts.find(mr=>(mr==null?void 0:mr.prop)===(Ye==null?void 0:Ye.prop));let nn=((ss=Ye==null?void 0:Ye.filter)==null?void 0:ss.includes("@EditRead=Read"))??!1;aa.push({label:(Ye==null?void 0:Ye.label)==="操作"?j?"操作":"":(Ye==null?void 0:Ye.label)??"",prop:(Ye==null?void 0:Ye.label)==="操作"?"operate":(Ye==null?void 0:Ye.prop)??"a"+fr,width:Ye!=null&&Ye.width?parseInt(Ye.width):"",fixed:(Ye==null?void 0:Ye.fixed)??void 0,sortable:(Ye==null?void 0:Ye.sortable)??!1,filterable:(Ye==null?void 0:Ye.filterable)??!1,operable:(Ye==null?void 0:Ye.operable)??!1,showSummary:(Ye==null?void 0:Ye.showSummary)??!1,align:(Ye==null?void 0:Ye.align)??"left",showOverflowTooltip:(Ye==null?void 0:Ye.showOverflowTooltip)??!0,isNotDrag:(Ye==null?void 0:Ye.isNotDrag)??!1,isEditCol:(Ye==null?void 0:Ye.isEditCol)??!1,isOperate:(Ye==null?void 0:Ye.isOperate)??!1,id:(Ye==null?void 0:Ye.id)??fr,type:(Ye==null?void 0:Ye.label)==="操作"?"operate":void 0,formType:(Ye==null?void 0:Ye.formType)??(Ye!=null&&Ye.groupSelect?"Select":""),disabled:Ye==null?void 0:Ye.disabled,options:(Ye==null?void 0:Ye.options)??[],value:(Ye==null?void 0:Ye.value)??"",isExistChild:(Ye==null?void 0:Ye.isExistChild)??!1,mainKey:(Ye==null?void 0:Ye.mainKey)??fr===0,allSelectionContents:(Ye==null?void 0:Ye.allContents)??[],filterContent:Ye==null?void 0:Ye.filterContents,menus:Ye==null?void 0:Ye.menus,groups:Ye==null?void 0:Ye.groups,words:Ye==null?void 0:Ye.words,filter:Ye==null?void 0:Ye.filter,bindMenus:Ye==null?void 0:Ye.bindMenus,fatherPath:Ye==null?void 0:Ye.fatherPath,isMainPath:Ye==null?void 0:Ye.isMainPath,required:(Ye==null?void 0:Ye.required)??!1,relatedContents:Ye==null?void 0:Ye.relatedContents,functionName:Ye==null?void 0:Ye.functionName,functionRelatedWords:Ye==null?void 0:Ye.functionRelatedWords,calculatorFilter:Ye==null?void 0:Ye.calculatorFilter,relatedPages:Ye==null?void 0:Ye.relatedPages,multiple:(Ye==null?void 0:Ye.multiple)??!1,multipleLimit:Ye==null?void 0:Ye.multipleLimit,isReadonly:nn})})}aa=aa==null?void 0:aa.filter(Za=>{var Ye;return!((Ye=Za==null?void 0:Za.filter)!=null&&Ye.includes("@ShowHide=Hide"))}),O.value=(Ha=be==null?void 0:be[0])==null?void 0:Ha.contents;const rn=ie.getNewColumnChild(aa);ye=ie.getColumnChild(rn);const Gn=Za=>Array.isArray(Za)?Za.map(Ye=>(Array.isArray(Ye==null?void 0:Ye.children)&&Ye.children.length>0?(Ye.sortable=!1,Gn(Ye.children)):(Ye==null?void 0:Ye.prop)==="operate"||(Ye==null?void 0:Ye.label)==="操作"||(Ye==null?void 0:Ye.type)==="operate"||(Ye.sortable=!1),Ye)):Za;Gn(rn),await no(rn),b0(X.value,rn),F.value=rn,oe.value=rn,n.value=(sl=F.value)==null?void 0:sl.map(Za=>Za==null?void 0:Za.label);let Rr=(xa=(Ga=ie.getAllLeafNodes(F.value))==null?void 0:Ga.filter(Za=>(Za==null?void 0:Za.type)!=="operate"))==null?void 0:xa.map((Za,Ye)=>({prop:(Za==null?void 0:Za.prop)??"a"+Ye,column:Za.label}));Gl.value=Rr;let Hr=[];jr.value===""?Hr=W==null?void 0:W[0]:Hr=(W==null?void 0:W.find(Za=>(Za==null?void 0:Za.selectLabel)==="("+jr.value+")"))??(W==null?void 0:W.find(Za=>!(Za!=null&&Za.selectLabel)));let $r=Array.isArray((dl=Hr==null?void 0:Hr.contents)==null?void 0:dl[0])&&((ql=Hr==null?void 0:Hr.contents)!=null&&ql[0].every(Za=>Array.isArray(Za)))?(qa=Hr==null?void 0:Hr.contents)==null?void 0:qa[0]:Hr==null?void 0:Hr.contents;va!=null&&va.contents&&((Dl=va==null?void 0:va.contents)==null?void 0:Dl.length)!==0&&($r=(Va=z.cloneDeep($r))==null?void 0:Va.map((Za,Ye)=>{if(!Array.isArray(Za)){let fr={};for(let nn in Za)nn!=="id"&&nn!=="index"&&(fr[nn]=Za[nn]);Za=Object.values(fr)}return Za}));const mo=!!(($l=F.value)!=null&&$l.find(Za=>Za.prop==="index"));$r=kc($r,va==null?void 0:va.contents,mo);const Pn=[];$r==null||$r.forEach((Za,Ye)=>{var nn;let fr={};if(Array.isArray(Za)){let Gr=[];Za==null||Za.filter(Zr=>!(Zr!=null&&Zr.id)).forEach((Zr,Fr)=>{var si,_i,Si,Nr,Nn,Yn;if((si=Rr==null?void 0:Rr[Fr])!=null&&si.prop&&!Array.isArray(Zr)){let Ei={};Ei[Rr[Fr].column]=Zr,V!=null&&V.value&&((_i=V==null?void 0:V.value)==null?void 0:_i.length)>0&&((Si=V==null?void 0:V.value)!=null&&Si.find(bn=>JSON.stringify(bn==null?void 0:bn[0])===JSON.stringify(Ei)))&&(Gr=(Nr=V==null?void 0:V.value)==null?void 0:Nr.find(bn=>JSON.stringify(bn==null?void 0:bn[0])===JSON.stringify(Ei))),Gr&&Gr.length>0?fr[Rr[Fr].prop]=Gr!=null&&Gr.find(bn=>{var Jn;return((Jn=Object.keys(bn))==null?void 0:Jn[0])===Rr[Fr].column})?(Nn=Gr==null?void 0:Gr.find(bn=>{var Jn;return((Jn=Object.keys(bn))==null?void 0:Jn[0])===Rr[Fr].column}))==null?void 0:Nn[Rr[Fr].column]:Zr:fr[Rr[Fr].prop]=Zr}else Array.isArray(Zr)&&((Yn=Rr[Fr])!=null&&Yn.prop?fr[Rr[Fr].prop]=Zr:fr.children=Et(Zr,Rr))})}else fr=Za;if(Array.isArray(Za)&&Za.some(Gr=>Gr==null?void 0:Gr.id)){const Gr=(nn=Za==null?void 0:Za.find(Zr=>Zr.id))==null?void 0:nn.id;Pn.push(Object.assign(fr,{id:so(Gr)}))}else fr.id?Pn.push(fr):Pn.push(Object.assign(fr,{id:Ye.toString()}))});try{const Za=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),Ye=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null"),fr=Za==null?void 0:Za.tableId,nn=Za==null?void 0:Za.compIndex;if(fr&&Array.isArray(Ye)&&Ye.length>0&&String(fr)===String(p==null?void 0:p.parentTableId)&&String(nn)===String(p==null?void 0:p.index)){const Gr=new Set(Pn.map(Fr=>String(Fr==null?void 0:Fr.id))),Zr=Ye.filter(Fr=>!Gr.has(String(Fr)));if(Zr.length>0){const Fr=Za==null?void 0:Za.pageKey,si=Fr!=null&&Fr.startsWith("/")?Fr.substring(1):Fr;((v==null?void 0:v[Fr])||(v==null?void 0:v[si])||[]).filter(Nr=>{var Nn,Yn;return((Nn=Nr==null?void 0:Nr.key)==null?void 0:Nn.type)==="data"&&String((Yn=Nr==null?void 0:Nr.key)==null?void 0:Yn.tableId)===String(fr)&&Zr.includes(Nr==null?void 0:Nr.id)}).forEach(Nr=>{var Nn;Gr.has(String(Nr==null?void 0:Nr.id))||(Pn.push({id:Nr==null?void 0:Nr.id,...((Nn=Nr==null?void 0:Nr.value)==null?void 0:Nn.tableData)||{}}),Gr.add(String(Nr==null?void 0:Nr.id)))})}}}catch{}let jn=null;try{const Za=`ocr_committed_temp_ids_v1:${String((p==null?void 0:p.parentTableId)??"")}:${String((p==null?void 0:p.index)??"")}`,Ye=JSON.parse(sessionStorage.getItem(Za)||"null");Array.isArray(Ye)&&Ye.length>0&&(jn=new Set(Ye.map(fr=>String(fr))))}catch{}const Hi=Array.from(((nl=Ea.value)==null?void 0:nl.values())||[]).filter(Za=>!(!(Za!=null&&Za._isOCRRow&&(Za==null?void 0:Za._ocrTableId)===(p==null?void 0:p.index))||jn&&jn.has(String(Za==null?void 0:Za.id)))),yo=(Ee.value||[]).map(Za=>String(Za==null?void 0:Za.id)),er=co(Pn,yo);if(Ee.value=qt(er,I,F.value),Pa.value=er,(hl=Pa.value)==null||hl.forEach(Za=>{var Ye;(Ye=Ea.value)==null||Ye.set(Za.id,Za)}),jn&&jn.size>0)try{const Za=new Set(Array.from(jn.values()));Ee.value=(Ee.value||[]).filter(Ye=>!Za.has(String(Ye==null?void 0:Ye.id))),Pa.value=(Pa.value||[]).filter(Ye=>!Za.has(String(Ye==null?void 0:Ye.id))),Za.forEach(Ye=>{var fr,nn;try{(nn=(fr=Ea.value)==null?void 0:fr.delete)==null||nn.call(fr,Ye)}catch{}})}catch{}const Kr=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),ht=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null");if(Kr&&Array.isArray(ht)&&ht.length>0&&String(Kr==null?void 0:Kr.compIndex)===String(p==null?void 0:p.index)){const Za=new Set((Pa.value||[]).map(Ye=>String(Ye==null?void 0:Ye.id)));ht.filter(Ye=>!Za.has(String(Ye)))}if(Hi.length>0){const Za=new Set((Ee.value||[]).map(fr=>fr==null?void 0:fr.id)),Ye=Hi.filter(fr=>!Za.has(fr.id));Ye.length>0&&(Ee.value=[...Ee.value||[],...Ye],Pa.value=[...Pa.value||[],...Ye],Ye.forEach(fr=>{var nn;return(nn=Ea.value)==null?void 0:nn.set(fr.id,fr)}))}}else F.value=[],Re.value=[],Ee.value=[],Pa.value=[],Ea.value=new Map;if(Da=[...new Set(Da)],Da=Da==null?void 0:Da.map(aa=>({label:aa,type:"methodButton"})),((Ol=ne==null?void 0:ne.contents)==null?void 0:Ol.length)>0?Aa.value=ne==null?void 0:ne.contents:Aa.value=[],Aa.value=[...Aa.value,...Da],Ca=[...new Set(Ca)],Ca=Ca==null?void 0:Ca.map(aa=>({label:aa,type:"methodButton"})),((kl=se==null?void 0:se.contents)==null?void 0:kl.length)>0)if((lr=(tr=(gr=d==null?void 0:d.find(aa=>(aa==null?void 0:aa.key)==="filterAllType"))==null?void 0:gr.value)==null?void 0:tr.find(aa=>(aa==null?void 0:aa.value)==="onButtonContents"))!=null&&lr.content){let aa=(ur=(Zl=(wl=d==null?void 0:d.find(Il=>(Il==null?void 0:Il.key)==="filterAllType"))==null?void 0:wl.value)==null?void 0:Zl.find(Il=>(Il==null?void 0:Il.value)==="onButtonContents"))==null?void 0:ur.content;if(aa=(Rl=aa==null?void 0:aa.split(":"))==null?void 0:Rl[1],aa=(dr=aa.slice(1,(aa==null?void 0:aa.length)-1))==null?void 0:dr.split(","),Ie.value=(xr=se==null?void 0:se.contents)==null?void 0:xr.filter(Il=>aa==null?void 0:aa.find(rn=>rn===(Il==null?void 0:Il.label))),Ve.value=(pr=se==null?void 0:se.contents)==null?void 0:pr.filter(Il=>aa==null?void 0:aa.find(rn=>rn===(Il==null?void 0:Il.label))),(Er=se==null?void 0:se.contents)!=null&&Er.some(Il=>(Il==null?void 0:Il.label)==="OCR识别")&&!((ln=Ie.value)!=null&&ln.some(Il=>(Il==null?void 0:Il.label)==="OCR识别"))){const Il=(sr=se==null?void 0:se.contents)==null?void 0:sr.find(rn=>(rn==null?void 0:rn.label)==="OCR识别");Ie.value=[...Ie.value,Il],Ve.value=[...Ve.value,Il]}A.value=!!(aa!=null&&aa.find(Il=>Il==="搜索")),le.value=!!(aa!=null&&aa.find(Il=>Il==="块状显示"))}else Ie.value=se==null?void 0:se.contents,Ve.value=se==null?void 0:se.contents;else Ie.value=[],Ve.value=[];if(Ie.value=[...Ie.value,...Ca],Ve.value=[...Ve.value,...Ca],typeof ue.value=="string"&&ue.value==="设备管理/试验设备"&&(p==null?void 0:p.compName)==="设备列表"?((Br=Ie.value)!=null&&Br.some(aa=>(aa==null?void 0:aa.label)==="OCR识别")||(Ie.value=[...Ie.value||[],{label:"OCR识别"}]),(Lr=Ve.value)!=null&&Lr.some(aa=>(aa==null?void 0:aa.label)==="OCR识别")||(Ve.value=[...Ve.value||[],{label:"OCR识别"}])):(Ie.value=(Ie.value||[]).filter(aa=>(aa==null?void 0:aa.label)!=="OCR识别"),Ve.value=(Ve.value||[]).filter(aa=>(aa==null?void 0:aa.label)!=="OCR识别")),(Gt=Ie.value)!=null&&Gt.some(aa=>(aa==null?void 0:aa.label)==="切换视图")||(Ie.value=[...Ie.value||[],{label:"切换视图"}]),(Yt=Ve.value)!=null&&Yt.some(aa=>(aa==null?void 0:aa.label)==="切换视图")||(Ve.value=[...Ve.value||[],{label:"切换视图"}]),ye!=null&&ye.some(aa=>{var Il;return(aa==null?void 0:aa.calculatorFilter)&&((Il=aa==null?void 0:aa.calculatorFilter)==null?void 0:Il.includes("@Button"))})){let aa=(Jt=ye==null?void 0:ye.filter(Rr=>{var Hr;return(Rr==null?void 0:Rr.calculatorFilter)&&((Hr=Rr==null?void 0:Rr.calculatorFilter)==null?void 0:Hr.includes("@Button"))}))==null?void 0:Jt.map(Rr=>Rr==null?void 0:Rr.calculatorFilter),Il=[],rn=[],Gn=[];aa==null||aa.forEach(Rr=>{var mo,Pn,jn,Hi,yo;let Hr=(mo=ie.analyzeSplitToContent(Rr,","))==null?void 0:mo.map(er=>((er==null?void 0:er[(er==null?void 0:er.length)-1])===","&&(er=er==null?void 0:er.slice(0,(er==null?void 0:er.length)-1)),er)),$r=Hr==null?void 0:Hr.find(er=>er==null?void 0:er.includes("@Button"));if(Hr!=null&&Hr.find(er=>er==null?void 0:er.includes("Manual"))){$r=(jn=(Pn=$r==null?void 0:$r.replace("=","$R"))==null?void 0:Pn.split("$R"))==null?void 0:jn[1],$r=$r==null?void 0:$r.slice(1,($r==null?void 0:$r.length)-1);let er=(Hi=ie.analyzeSplitToContent($r,","))==null?void 0:Hi.map(Kr=>((Kr==null?void 0:Kr[(Kr==null?void 0:Kr.length)-1])===","&&(Kr=Kr==null?void 0:Kr.slice(0,(Kr==null?void 0:Kr.length)-1)),Kr));er=er==null?void 0:er[0],er=er==null?void 0:er.slice(1,(er==null?void 0:er.length)-1),er=(yo=er==null?void 0:er.split(","))==null?void 0:yo.map(Kr=>({label:Kr,prop:Kr})),$r!=null&&$r.includes("Up")?Il=[...Il,...er??[]]:$r!=null&&$r.includes("Line")?rn=[...rn,...er??[]]:Gn=[...Gn,...er??[]]}}),Ie.value=[...Il,...Ie.value??[]],Aa.value=[...rn,...Aa.value??[]],Gn.value=[...Gn,...Gn.value??[]]}Ce.value=((Xt=Ee==null?void 0:Ee.value)==null?void 0:Xt.length)??0,Ht(Ee.value),Jr.value=Ee.value,Yl.value&&(F.value=(Qt=(Zt=Re.value)==null?void 0:Zt.filter(aa=>(aa==null?void 0:aa.label)!=="操作"))==null?void 0:Qt.map(aa=>{var Il;return{...aa,type:"edit",optionUrl:aa!=null&&aa.formMenuSelect&&((Il=aa==null?void 0:aa.formMenuSelect)==null?void 0:Il.length)>0?{groupSelect:aa==null?void 0:aa.groupSelect,menuSelect:aa==null?void 0:aa.formMenuSelect,selectRelateType:"",type:aa==null?void 0:aa.formType}:null}}),ft())};e.watch(()=>[p.itemData,jr.value,an.value,cr.value,V==null?void 0:V.value],async()=>{var d,v,N,I,j,D;if((d=p==null?void 0:p.itemData)!=null&&d.find(ne=>(ne==null?void 0:ne.key)==="columnPath")&&!((v=fe.value)!=null&&v.find(ne=>{var se,W;return(ne==null?void 0:ne.key)===((W=(se=p==null?void 0:p.itemData)==null?void 0:se.find(be=>(be==null?void 0:be.key)==="columnPath"))==null?void 0:W.contents)}))){let ne=fe.value,se={key:(I=(N=p==null?void 0:p.itemData)==null?void 0:N.find(W=>(W==null?void 0:W.key)==="columnPath"))==null?void 0:I.contents,value:(D=(j=p==null?void 0:p.itemData)==null?void 0:j.find(W=>(W==null?void 0:W.key)==="columnUsingPath"))==null?void 0:D.contents};ne!=null&&ne.find(W=>(W==null?void 0:W.key)===(se==null?void 0:se.key))?ne=ne==null?void 0:ne.map(W=>((W==null?void 0:W.key)===(se==null?void 0:se.key)&&(W.value=se.value),W)):ne.push(se),Ia.setTableViewContents(ne)}await Wt(p.itemData,p.allMapContents)},{deep:!0,immediate:!0}),e.watch(()=>p==null?void 0:p.operatingForm,d=>{d!=null&&d.form&&(Fi(d==null?void 0:d.form),Je.value=d==null?void 0:d.dialogTitle,Oe.value=!0,K.value=!0)},{immediate:!0,deep:!0});const Du=()=>{var d;(d=G.value)!=null&&d.includes("read")&&(Yl.value=!Yl.value)},Tu=()=>{vr.value=!vr.value};e.watch(()=>{var d;return(d=p==null?void 0:p.config)==null?void 0:d.viewport},d=>{var v;G.value=d,(d==null?void 0:d.length)===0?Yl.value=!1:(d!=null&&d.includes("read")||(Yl.value=!0),d!=null&&d.includes("edit")||(Yl.value=!1)),w.value=((v=p==null?void 0:p.config)==null?void 0:v.showIndex)||Yl.value},{immediate:!0}),e.watch(()=>Yl.value,d=>{var v;d?(ft("viewChange"),Ia.setCacheUpdatingData(null)):(Ie.value=Ve.value,F.value=oe.value,Q.value&&(Ia.setTableLoading(p==null?void 0:p.index),H("change",Q.value))),w.value=d||((v=p==null?void 0:p.config)==null?void 0:v.showIndex),Tr.value=[]},{immediate:!0}),e.watch(()=>{var d;return(d=mi.value)==null?void 0:d.length},d=>{d===0&&(pe.currentPage=1)}),e.watch(()=>p==null?void 0:p.compNames,d=>{y.contents=[{label:"列表名",prop:"groupName",name:"列表名",type:"select",value:"",id:0,contents:d||[],width:1}]},{immediate:!0}),e.ref(!1);const Bu=(d,v)=>{var N;ft("createClick"),v===pe.pageSize&&(pe.currentPage=Math.ceil(((N=Ee.value)==null?void 0:N.length)/pe.pageSize))},Nu=async(d,v,N)=>{var j,D,ne,se,W;const I=(v==null?void 0:v.property)??(v==null?void 0:v.prop);if(I&&ho.includes(I)&&N!==void 0&&N!==null&&String(N).trim()!==""){const be=String(N).trim();if(await pt(be,d==null?void 0:d.id)){Xa.ElMessage.warning("当前任务下通道号不能重复,请重新选择");const Ke=(j=Ee.value)==null?void 0:j.findIndex(Xe=>(Xe==null?void 0:Xe.id)===(d==null?void 0:d.id)),Ue=Ke!==-1?(ne=(D=Ee.value)==null?void 0:D[Ke])==null?void 0:ne[I]:void 0;I&&(d[I]=Ue??"");return}}if(Yl.value){const be=d==null?void 0:d.id;be!=null&&(f.value.has(be)||f.value.set(be,z.cloneDeep(d)),t.value.add(be));const ye=(se=Ee.value)==null?void 0:se.findIndex(Ke=>(Ke==null?void 0:Ke.id)===(d==null?void 0:d.id));ye!==-1&&I&&(Ee.value[ye]={...Ee.value[ye],[I]:N}),vo(N,d,v);return}vo(N,d,v),ir.value=z.cloneDeep(d),ia.value=d==null?void 0:d.id,Ce.value=(W=Ee.value)==null?void 0:W.length,Je.value=d!=null&&d._isTemp?"新增":"编辑",ji(!1)},Au=async()=>{var d,v;try{const N=[];if(p!=null&&p.related&&Array.isArray(p.related)&&(console.log("props.related",p.related),p.related.forEach(I=>{if(typeof I=="string"&&I.includes("content_")){const j=I.split("_")[1];j&&(N.push(`content_${j}`),N.push(`struct_${j}`))}})),N.length===0&&(p!=null&&p.itemData)){const I=(v=(d=p.itemData)==null?void 0:d.find(j=>(j==null?void 0:j.key)==="contentTableId"))==null?void 0:v.contents;I&&(N.push(`content_${I}`),N.push(`struct_${I}`))}return N}catch(N){return console.error("获取 tableNames 失败:",N),[]}},zu=async(d,v,N)=>{var D,ne;if(!N||typeof N!="string"||N.trim()===""){const se=(v==null?void 0:v.property)??(v==null?void 0:v.prop),W=`${d==null?void 0:d.id}:${se}`;m.value.delete(W),_.value.set(W,!1);return}const I=(v==null?void 0:v.property)??(v==null?void 0:v.prop),j=`${d==null?void 0:d.id}:${I}`;_.value.set(j,!0);try{const se=await Au();if(se.length===0){console.warn("未找到同名表,跳过全局搜索"),m.value.delete(j),_.value.set(j,!1);return}const W=parseInt((D=Ml.value)==null?void 0:D.plat_id);if(!W){console.warn("platId 无效,跳过全局搜索"),m.value.delete(j),_.value.set(j,!1);return}const be=await z.getAllTables({platId:W,tableNames:se??[]}),ye=((ne=be==null?void 0:be.data)==null?void 0:ne.result)||[],Ke=[],Ue=[];for(let Xe=0;Xe<ye.length;Xe+=2)Xe+1<ye.length&&Ue.push([ye[Xe],ye[Xe+1]]);Ue.forEach(([Xe,va])=>{var tl;if(!Array.isArray(Xe)||Xe.length===0||!Array.isArray(va)||va.length===0)return;const Ca=va[0];let Da=((tl=Ca==null?void 0:Ca.结构)==null?void 0:tl.contents)??[];if(!Array.isArray(Da)||Da.length===0)return;let Ze=z.cloneDeep(Da);if(Array.isArray(Ze==null?void 0:Ze[0])&&(Ze=ie.getColumnChild(Ze[0])),!Array.isArray(Ze)||Ze.length===0||!Ze.some(ge=>(ge==null?void 0:ge.prop)===I))return;[...Xe].sort((ge,Fa)=>{const fa=Number((ge==null?void 0:ge.update_time)??0);return Number((Fa==null?void 0:Fa.update_time)??0)-fa}).slice(0,20).forEach(ge=>{const Fa=ge[I];if(Fa!=null){const fa=String(Fa);fa.toLowerCase().includes(N.toLowerCase())&&Ke.findIndex(La=>{var Ne;return ge.id&&((Ne=La.rowData)==null?void 0:Ne.id)===ge.id?!0:La.label===fa})===-1&&Ke.push({label:fa,rowData:z.cloneDeep(ge),sourceTable:(Ca==null?void 0:Ca.source_table)||""})}})}),m.value.set(j,Ke)}catch(se){console.error("全局搜索建议失败:",se),m.value.delete(j)}finally{_.value.set(j,!1)}},Mu=(d,v,N)=>{if(!Yl.value)return;const I=(v==null?void 0:v.property)??(v==null?void 0:v.prop),j=(v==null?void 0:v.formType)||(v==null?void 0:v.columnType)||"";if(j&&j.toUpperCase()!=="INPUT"&&j!=="")return;const D=`${d==null?void 0:d.id}:${I}`;if(g.has(D)&&clearTimeout(g.get(D)),!N||N.trim()===""){m.value.delete(D),_.value.set(D,!1);return}const ne=setTimeout(()=>{zu(d,{prop:I,property:I},N),g.delete(D)},300);g.set(D,ne)};function Iu(d,v){const N=`${d==null?void 0:d.id}:${(v==null?void 0:v.property)??(v==null?void 0:v.prop)}`;return m.value.get(N)||[]}const Ou=(d,v,N)=>{var be;if(!N||!N.rowData)return;const I=N.rowData,j=d==null?void 0:d.id,D=(v==null?void 0:v.property)??(v==null?void 0:v.prop);(ie.getAllLeafNodes(F.value)||[]).filter(ye=>(ye==null?void 0:ye.type)!=="operate"&&(ye==null?void 0:ye.label)!=="操作"&&(ye==null?void 0:ye.prop)!=="operate").forEach(ye=>{const Ke=ye==null?void 0:ye.prop;Ke&&I[Ke]!==void 0&&(d[Ke]=I[Ke])}),(be=Ee.value)==null||be.findIndex(ye=>(ye==null?void 0:ye.id)===j),j!=null&&(f.value.has(j)||f.value.set(j,z.cloneDeep(d)),t.value.add(j));const W=`${j}:${D}`;m.value.delete(W),_.value.set(W,!1),vo(d[D],d,v)},cn=d=>{var W,be,ye,Ke,Ue,Xe,va,Ca,Da,Ze,il;const{row:v,column:N,item:I,slotData:j}=d;let D=v!=null&&v[N==null?void 0:N.prop]||(v==null?void 0:v[N==null?void 0:N.prop])===0?((be=(W=v==null?void 0:v[N==null?void 0:N.prop])==null?void 0:W[0])==null?void 0:be.contents)??((v==null?void 0:v[N==null?void 0:N.prop])===0?"0":v==null?void 0:v[N==null?void 0:N.prop]):((Ke=(ye=v==null?void 0:v[I==null?void 0:I.prop])==null?void 0:ye[0])==null?void 0:Ke.contents)??(v==null?void 0:v[I==null?void 0:I.prop])??((Xe=(Ue=j==null?void 0:j[I==null?void 0:I.prop])==null?void 0:Ue[0])==null?void 0:Xe.contents)??(j==null?void 0:j[I==null?void 0:I.prop])??((Da=(Ca=v==null?void 0:v[(va=I==null?void 0:I.child)==null?void 0:va.prop])==null?void 0:Ca[0])==null?void 0:Da.contents)??(v==null?void 0:v[(Ze=I==null?void 0:I.child)==null?void 0:Ze.prop]),se=Array.isArray(D)&&!(D!=null&&D.every(ya=>typeof ya=="string"||typeof ya=="number"))?"查看":D;if(se=Array.isArray(se)?se.join(","):se,(N==null?void 0:N.formType)==="Date")if(!se||se===""||se===null||se===void 0)se="";else{const ya=z.dayjs(se,["YYYY-MM-DD","YYYY/MM/DD","YYYY年MM月DD日","YYYYMMDD"],!0);se=ya.isValid()?ya.format("YYYYMMDD"):se??""}return Array.isArray(N==null?void 0:N.relatedPages)&&((il=N==null?void 0:N.relatedPages)==null?void 0:il.length)>0&&(se="详情页"),se},Lu=d=>{var be,ye,Ke,Ue,Xe,va,Ca,Da,Ze,il;const{row:v,column:N,item:I,slotData:j}=d;let D=v!=null&&v[N==null?void 0:N.prop]?((ye=(be=v==null?void 0:v[N==null?void 0:N.prop])==null?void 0:be[0])==null?void 0:ye.contents)??(v==null?void 0:v[N==null?void 0:N.prop]):((Ue=(Ke=v==null?void 0:v[I==null?void 0:I.prop])==null?void 0:Ke[0])==null?void 0:Ue.contents)??(v==null?void 0:v[I==null?void 0:I.prop])??((va=(Xe=j==null?void 0:j[I==null?void 0:I.prop])==null?void 0:Xe[0])==null?void 0:va.contents)??(j==null?void 0:j[I==null?void 0:I.prop])??((Ze=(Da=v==null?void 0:v[(Ca=I==null?void 0:I.child)==null?void 0:Ca.prop])==null?void 0:Da[0])==null?void 0:Ze.contents)??(v==null?void 0:v[(il=I==null?void 0:I.child)==null?void 0:il.prop]);const se=Array.isArray(D)&&!(D!=null&&D.every(ya=>typeof ya=="string"||typeof ya=="number")),W=Array.isArray(D)&&(D==null?void 0:D.find(ya=>ya==null?void 0:ya.url));return se&&W},Ru=d=>{var j,D,ne,se;if(!(d!=null&&d.column))return!1;const v=ue.value==="试验任务/任务管理",N=(p==null?void 0:p.compName)==="任务列表",I=((D=(j=d==null?void 0:d.column)==null?void 0:j.filter)==null?void 0:D.includes("@TextRGBA"))||((se=(ne=d==null?void 0:d.column)==null?void 0:ne.filter)==null?void 0:se.includes("@TextBackRGBA"));return v&&N&&I},$u=(d,v)=>d.find(N=>Object.values(N).some(I=>I===v));return e.watch(()=>Ge.value,async d=>{if(d){ea.setContentLoading(!0),await e.nextTick();const v=$u(Ee.value,d==null?void 0:d.data);if(!v)return ea.setContentLoading(!1);await bi(d==null?void 0:d.data,null,v,{data:d==null?void 0:d.data}),ea.setContentLoading(!1)}},{deep:!0,immediate:!0}),e.watch(()=>p==null?void 0:p.cacheNewData,d=>{var v;d&&(Array.isArray(d)?d.forEach(N=>{var I,j,D,ne,se;if(换,String(N==null?void 0:N.compId)===String(p==null?void 0:p.index)&&(N!=null&&N.resId)&&((I=N==null?void 0:N.data)!=null&&I.id)){const W=(j=N==null?void 0:N.data)==null?void 0:j.id,be=N==null?void 0:N.resId;if(Ee.value=(D=Ee.value)==null?void 0:D.map(ye=>{if((ye==null?void 0:ye.id)===W){const Ke={...ye,id:be};return delete Ke._isOCRRow,delete Ke._ocrTableId,Ke}return ye}),(se=(ne=Ea.value)==null?void 0:ne.has)!=null&&se.call(ne,W)){const Ke={...Ea.value.get(W)||{},id:be};delete Ke._isOCRRow,delete Ke._ocrTableId,Ea.value.delete(W),Ea.value.set(be,Ke)}Wa(p==null?void 0:p.index,W,be)}}):String(d==null?void 0:d.compId)===String(p==null?void 0:p.index)&&(Ee.value=(v=Ee.value)==null?void 0:v.map(N=>{var I;if((N==null?void 0:N.id)===((I=d==null?void 0:d.data)==null?void 0:I.id)){const j={...N,id:d==null?void 0:d.resId};return delete j._isOCRRow,delete j._ocrTableId,j}return N})))},{immediate:!0,deep:!0}),(d,v)=>{var Ze,il,ya,tl;const N=e.resolveComponent("svg-icon"),I=e.resolveComponent("el-popover"),j=e.resolveComponent("el-switch"),D=e.resolveComponent("el-checkbox"),ne=e.resolveComponent("el-radio"),se=e.resolveComponent("el-radio-group"),W=e.resolveComponent("el-checkbox-group"),be=e.resolveComponent("el-button"),ye=e.resolveComponent("el-icon"),Ke=e.resolveComponent("el-progress"),Ue=e.resolveComponent("el-alert"),Xe=e.resolveComponent("el-table-column"),va=e.resolveComponent("el-table"),Ca=e.resolveComponent("el-upload"),Da=e.resolveComponent("el-text");return e.openBlock(),e.createElementBlock("div",i3,[tn.value?(e.openBlock(),e.createBlock(fl.ssTable,{id:"excel-table",pageObj:pe,showIndex:w.value,isTree:(Ze=a.compItem)==null?void 0:Ze.isTree,summaryInfo:_e,columns:F.value,defaultSort:ve,isCardViewport:vr.value,checkedColumns:n.value,key:Ur.value+JSON.stringify(F.value),tableData:mi.value,isEditViewport:Yl.value,isShowPagination:ka.value,isShowEdit:!1,isShowDelete:!1,allowSelect:M.value,onDbClickRow:po,extraButton:Ie.value,rowButton:Aa.value,cacheExtraButtons:Ve.value,isClearSelection:((il=Tr.value)==null?void 0:il.length)===0,onDoCurrentChange:Ho,onDoSizeChange:Uo,onSortChange:Mn,onContentClick:bi,onRowClick:rt,onSelectChange:lo,onCellChange:Nu,onCellInput:Mu,onSelectSuggest:Ou,onChange:vo,onPreview:oo,onSubmitEditingTable:ao,onHandleColEditChange:sn,onHandleColTypeChange:Go,onClickButton:ut,onAddNewRow:Yo,bottomButton:O.value,allowRowAddOrDelete:Ln.value},e.createSlots({headerButton:e.withCtx(ge=>{var Fa,fa,Ja,La;return[a.showHeader?(e.openBlock(),e.createBlock(If,{key:0,id:"tableHeaderButton",pageLayout:a.pageLayout,lockingPage:e.unref(ta)===e.unref(ue),filterValues:uo.value,selectNums:(Fa=Tr.value)==null?void 0:Fa.length,dataNums:(fa=Ee.value)==null?void 0:fa.length,compName:a.compName,isDevMode:a.isDevMode,buttons:ge.buttons,menuFilter:(La=(Ja=a.compItem)==null?void 0:Ja.component)==null?void 0:La.menuFilter,onButtonClick:v[1]||(v[1]=(Ne,Z,Pe)=>ut(Ne,Z,{extra:Pe})),columns:F.value,onFilter:oi,onGetImportData:Ko,level:a.level,filterShow:A.value},null,8,["pageLayout","lockingPage","filterValues","selectNums","dataNums","compName","isDevMode","buttons","menuFilter","columns","level","filterShow"])):e.createCommentVNode("",!0)]}),viewport:e.withCtx(()=>{var ge,Fa,fa,Ja;return[((ge=Ee.value)==null?void 0:ge.length)>0&&a.allowOperate&&le.value?(e.openBlock(),e.createElementBlock("div",s3,[(Fa=G.value)!=null&&Fa.includes("read")&&((fa=G.value)!=null&&fa.includes("edit"))&&((Ja=Aa.value)!=null&&Ja.some(La=>(La==null?void 0:La.label)==="编辑"))&&!vr.value&&e.unref(ta)!==e.unref(ue)?(e.openBlock(),e.createElementBlock("span",{key:0,title:"编辑表格",onClick:Du},[e.createVNode(N,{name:"editTable",class:"view-icon"})])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]}),rowCreate:e.withCtx(({row:ge,index:Fa})=>[e.createElementVNode("span",{title:"新增",class:"row-create-wrap",onClick:fa=>Bu(ge,Fa)},[e.createVNode(N,{name:"rowCreate",style:{width:"10px",height:"10px"}})],8,c3)]),operateCol:e.withCtx(()=>[e.createVNode(I,{title:"选择显示列信息",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:xu,onBeforeEnter:wu},{reference:e.withCtx(()=>[e.createElementVNode("span",u3,[e.createVNode(N,{name:"operate",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),default:e.withCtx(()=>[c.value?(e.openBlock(),e.createElementBlock("div",d3,[v[20]||(v[20]=e.createElementVNode("div",{class:"group-title"},"表格操作",-1)),e.createVNode(j,{"model-value":$.value,"active-text":"排序","inactive-text":"",style:{"margin-right":"8px"},onChange:v[2]||(v[2]=ge=>io(ge))},null,8,["model-value"]),v[21]||(v[21]=e.createElementVNode("div",{class:"group-title"},"表格列操作",-1)),e.createVNode(W,{modelValue:n.value,"onUpdate:modelValue":v[3]||(v[3]=ge=>n.value=ge),style:{height:"100%"},min:2,ref_key:"checkboxGroupRef",ref:i},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(In.value,ge=>(e.openBlock(),e.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:ge.label},[e.createVNode(D,{value:ge.label,style:{width:"100%",marginRight:0}},{default:e.withCtx(()=>[e.createElementVNode("span",{title:ge.label,style:{display:"inline-block",width:"250px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},e.toDisplayString(ge.label),9,p3)]),_:2},1032,["value"]),e.createVNode(I,{"popper-class":"col-operate-popover",title:"列操作",placement:"left",teleported:!1,trigger:"hover"},{reference:e.withCtx(()=>[e.createVNode(N,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:e.withCtx(()=>{var Fa;return[e.createElementVNode("div",f3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Fa=Object.keys(ge))==null?void 0:Fa.filter(fa=>{var Ja;return(Ja=x.value)==null?void 0:Ja.find(La=>(La==null?void 0:La.value)===fa)}),fa=>{var Ja,La;return e.openBlock(),e.createElementBlock("div",{key:fa},[E[fa]=="radio"?(e.openBlock(),e.createElementBlock("div",h3,[v[19]||(v[19]=e.createElementVNode("div",null,"固定:",-1)),e.createVNode(se,{"model-value":ge==null?void 0:ge[fa],onChange:Ne=>ro(Ne,fa,ge)},{default:e.withCtx(()=>{var Ne,Z;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Z=(Ne=x.value)==null?void 0:Ne.find(Pe=>(Pe==null?void 0:Pe.value)===fa))==null?void 0:Z.options,Pe=>(e.openBlock(),e.createBlock(ne,{key:Pe==null?void 0:Pe.value,label:Pe==null?void 0:Pe.value,value:Pe==null?void 0:Pe.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(Pe==null?void 0:Pe.label),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["model-value","onChange"])])):e.createCommentVNode("",!0),E[fa]=="switch"?(e.openBlock(),e.createBlock(j,{key:1,"model-value":ge==null?void 0:ge[fa],"active-text":(La=(Ja=x.value)==null?void 0:Ja.find(Ne=>(Ne==null?void 0:Ne.value)===fa))==null?void 0:La.label,onChange:Ne=>ro(Ne,fa,ge)},null,8,["model-value","active-text","onChange"])):e.createCommentVNode("",!0)])}),128))])]}),_:2},1024),e.createElementVNode("span",v3,[e.createVNode(N,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0)]),_:1})]),content:e.withCtx(ge=>{var Fa,fa,Ja,La,Ne,Z,Pe,oa,T,Ma,Ha,sl,Ga,xa,dl,ql,qa,Dl,Va,$l;return[((Fa=ge==null?void 0:ge.column)==null?void 0:Fa.label)==="证书附件"||((fa=ge==null?void 0:ge.column)==null?void 0:fa.prop)==="证书附件"?(e.openBlock(),e.createElementBlock("div",m3,[e.createVNode(N,{name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:e.withModifiers(nl=>ti(ge),["stop"]),title:"查看OCR图片"},null,8,["onClick"])])):Lu(ge)?(e.openBlock(),e.createBlock(I,{key:1,"popper-class":"file-popover",placement:"right",trigger:"hover",effect:"light",width:"auto"},{reference:e.withCtx(()=>[e.createElementVNode("span",y3,e.toDisplayString(cn(ge)),1)]),default:e.withCtx(()=>{var nl,hl;return[e.createElementVNode("div",g3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((hl=ge==null?void 0:ge.row)==null?void 0:hl[(nl=ge==null?void 0:ge.column)==null?void 0:nl.prop],Ol=>(e.openBlock(),e.createElementBlock("div",b3,[e.createElementVNode("div",{class:"prop-url",title:ni(Ol),onClick:kl=>Qo(Ol)},e.toDisplayString(ni(Ol)),9,k3),e.createElementVNode("div",{class:"prop-download",onClick:kl=>Vi(Ol)}," 下载 ",8,x3)]))),256))])]}),_:2},1024)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[Ru(ge)?(e.openBlock(),e.createBlock(Gu,{key:0,value:cn(ge),columnContent:ge==null?void 0:ge.column},null,8,["value","columnContent"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"table-cell-content",style:e.normalizeStyle({color:!Array.isArray(cn(ge))&&((La=(Ja=cn(ge))==null?void 0:Ja.toString())!=null&&La.includes(".txt")||(Z=(Ne=cn(ge))==null?void 0:Ne.toString())!=null&&Z.includes(".cpt")||(oa=(Pe=cn(ge))==null?void 0:Pe.toString())!=null&&oa.includes(".cyd"))?"var(--vertical-menuitem-active-bg)":"",textDecoration:!Array.isArray(cn(ge))&&((Ma=(T=cn(ge))==null?void 0:T.toString())!=null&&Ma.includes(".txt")||(sl=(Ha=cn(ge))==null?void 0:Ha.toString())!=null&&sl.includes(".cpt")||(xa=(Ga=cn(ge))==null?void 0:Ga.toString())!=null&&xa.includes(".cyd"))?"underline":"",cursor:!Array.isArray(cn(ge))&&((ql=(dl=cn(ge))==null?void 0:dl.toString())!=null&&ql.includes(".txt")||(Dl=(qa=cn(ge))==null?void 0:qa.toString())!=null&&Dl.includes(".cpt")||($l=(Va=cn(ge))==null?void 0:Va.toString())!=null&&$l.includes(".cyd"))?"pointer":"",marginLeft:(ge==null?void 0:ge.colIndex)===0?`${((ge==null?void 0:ge.level)??0)*20}px`:0}),onClick:nl=>{var hl;return dn(cn(ge),((hl=ge==null?void 0:ge.column)==null?void 0:hl.relatedPages)??[])}},e.toDisplayString(cn(ge)===0?"0":cn(ge)),13,w3))],64))]}),_:2},[((ya=Aa.value)==null?void 0:ya.length)>0?{name:"actions",fn:e.withCtx(({item:ge,fIndex:Fa})=>[e.createVNode(I,{title:"",placement:"left-start","popper-class":"menu-operate-popover"},{reference:e.withCtx(()=>[e.createVNode(N,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"},onClick:v[0]||(v[0]=e.withModifiers(()=>{},["stop"]))})]),default:e.withCtx(()=>[e.createElementVNode("div",o3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(et(Aa.value,ge),(fa,Ja)=>(e.openBlock(),e.createElementBlock("div",{class:"menu-config-item",key:Ja,onClick:e.withModifiers(La=>ut(fa==null?void 0:fa.label,ge,{extra:fa}),["stop"])},[e.createElementVNode("div",{style:e.normalizeStyle({color:fa==null?void 0:fa.textColor}),class:"extra-button-label"},e.toDisplayString(fa==null?void 0:fa.label),5)],8,t3))),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),Yl.value?(e.openBlock(),e.createElementBlock("div",_3,[e.createVNode(be,{id:"themeBorderButton",onClick:Xo},{default:e.withCtx(()=>v[22]||(v[22]=[e.createTextVNode("取消")])),_:1,__:[22]}),e.createVNode(be,{class:"ok-button",id:"themeButton",onClick:Li},{default:e.withCtx(()=>v[23]||(v[23]=[e.createTextVNode("保存")])),_:1,__:[23]})])):e.createCommentVNode("",!0),e.createVNode(Mr.ssDialog,{title:Je.value,visible:K.value,width:Dr.value,onBeforeDestroy:ri,style:{height:"74%"}},{default:e.withCtx(()=>[e.createElementVNode("div",S3,[e.createVNode(fl.ssForm,{ref_key:"formRef",ref:J,rowContents:we.value,showOperator:!1,onChange:_u,isEnableWrap:!1,onFixChangeValue:at,onClickTrigger:Zo,isEdit:Ba.value,onBlurChange:yi,onCreate:Fn,onTagChange:li},null,8,["rowContents","isEdit"])])]),footer:e.withCtx(()=>[Oe.value?(e.openBlock(),e.createElementBlock("div",E3,[e.createVNode(be,{onClick:v[4]||(v[4]=ge=>K.value=!1),id:"themeBorderButton"},{default:e.withCtx(()=>v[24]||(v[24]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[24]}),e.createVNode(be,{class:"ok-button",onClick:v[5]||(v[5]=ge=>ji(!0)),id:"themeButton"},{default:e.withCtx(()=>v[25]||(v[25]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[25]})])):e.createCommentVNode("",!0)]),_:1},8,["title","visible","width"]),e.createVNode(Mr.ssDialog,{title:Je.value,visible:We.value,width:Na.value,onBeforeDestroy:v[7]||(v[7]=ge=>We.value=!1)},{default:e.withCtx(()=>[e.createVNode(Wf)]),footer:e.withCtx(()=>[e.createElementVNode("div",C3,[e.createVNode(be,{onClick:v[6]||(v[6]=ge=>We.value=!1),class:"cancel-button",id:"themeBorderButton"},{default:e.withCtx(()=>v[26]||(v[26]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[26]}),e.createVNode(be,{class:"ok-button",onClick:nt,id:"themeButton"},{default:e.withCtx(()=>v[27]||(v[27]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[27]})])]),_:1},8,["title","visible","width"]),sa.value?(e.openBlock(),e.createBlock(fl.ssFilePreview,{key:2,fileDataList:de.value,onDestroy:lt},null,8,["fileDataList"])):e.createCommentVNode("",!0),ce.value?(e.openBlock(),e.createBlock(Mr.ssDialog,{key:3,visible:ce.value,onBeforeDestroy:bu,style:{height:"80vh",width:"80vw"},"body-class":"three-dialog-body","footer-class":"three-dialog-footer"},{default:e.withCtx(()=>[e.createVNode(No.ThreeViewerHost,{files:He.value,threeData:te.value},null,8,["files","threeData"])]),_:1},8,["visible"])):e.createCommentVNode("",!0),e.createVNode(Mr.ssDialog,{title:"OCR扫描录入",visible:Kl.value,"close-on-click-modal":!1,onBeforeDestroy:Ql,width:"1000px",dialogHeight:700,minWidth:900,minHeight:600,class:"ocr-upload-dialog",resizable:!0},{default:e.withCtx(()=>[v[38]||(v[38]=e.createElementVNode("div",{class:"ocr-header-bg"},null,-1)),e.createElementVNode("div",D3,[e.createElementVNode("div",T3,[e.createElementVNode("div",{class:e.normalizeClass(["ocr-step-item",{active:Ka.value===1}])},v[28]||(v[28]=[e.createElementVNode("div",{class:"step-circle"},"1",-1),e.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件识别",-1)]),2),v[31]||(v[31]=e.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),e.createElementVNode("div",{class:e.normalizeClass(["ocr-step-item",{active:Ka.value===2}])},v[29]||(v[29]=[e.createElementVNode("div",{class:"step-circle"},"2",-1),e.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件确认",-1)]),2),v[32]||(v[32]=e.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),e.createElementVNode("div",{class:e.normalizeClass(["ocr-step-item",{active:Ka.value===3}])},v[30]||(v[30]=[e.createElementVNode("div",{class:"step-circle"},"3",-1),e.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件提交",-1)]),2)]),Ka.value===1?(e.openBlock(),e.createElementBlock("div",B3,[e.createVNode(be,{onClick:o,class:"ocr-action-btn",disabled:Wl.value,size:"default"},{default:e.withCtx(()=>v[33]||(v[33]=[e.createTextVNode("扫描文件 ")])),_:1,__:[33]},8,["disabled"]),e.createVNode(be,{onClick:kn,class:"ocr-action-btn",disabled:Wl.value,size:"default"},{default:e.withCtx(()=>v[34]||(v[34]=[e.createTextVNode("上传文件 ")])),_:1,__:[34]},8,["disabled"])])):e.createCommentVNode("",!0),Ka.value===1?(e.openBlock(),e.createElementBlock("div",N3,[e.createElementVNode("div",A3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Nl.value,(ge,Fa)=>{var fa;return e.openBlock(),e.createElementBlock("div",{key:Fa,class:"ocr-file-item"},[e.createElementVNode("div",z3,[ge.raw&&((fa=ge.raw.type)!=null&&fa.startsWith("image/"))?(e.openBlock(),e.createElementBlock("img",{key:0,src:or(ge),alt:"预览",class:"thumbnail-image"},null,8,M3)):(e.openBlock(),e.createElementBlock("div",I3,[e.createVNode(ye,{size:40},{default:e.withCtx(()=>[e.createVNode(e.unref(Xa.document_default))]),_:1})])),e.createElementVNode("div",{class:e.normalizeClass(["file-progress-ring",{uploading:Bl(ge)==="uploading",processing:Bl(ge)==="processing",completed:Bl(ge)==="completed"||Bl(ge)==="uploaded",failed:Bl(ge)==="failed"}])},[(e.openBlock(),e.createElementBlock("svg",O3,[v[35]||(v[35]=e.createElementVNode("circle",{class:"progress-ring-bg",cx:"18",cy:"18",r:"16",fill:"none",stroke:"#e4e7ed","stroke-width":"2"},null,-1)),e.createElementVNode("circle",{class:e.normalizeClass(["progress-ring-fill",{completed:Bl(ge)==="completed"||Bl(ge)==="uploaded",uploading:Bl(ge)==="uploading",processing:Bl(ge)==="processing",failed:Bl(ge)==="failed"}]),cx:"18",cy:"18",r:"16",fill:"none",stroke:Bl(ge)==="failed"?"#f56c6c":Bl(ge)==="completed"||Bl(ge)==="uploaded"?"#67c23a":"#409eff","stroke-width":Bl(ge)==="completed"||Bl(ge)==="uploaded"||Bl(ge)==="failed"?3:2,"stroke-dasharray":Or(ge),"stroke-dashoffset":"0","stroke-linecap":"round",transform:"rotate(-90 18 18)"},null,10,L3)])),Bl(ge)==="completed"||Bl(ge)==="uploaded"?(e.openBlock(),e.createElementBlock("div",R3,[e.createVNode(ye,{class:"check-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Xa.check_default))]),_:1})])):e.createCommentVNode("",!0),Bl(ge)==="failed"?(e.openBlock(),e.createElementBlock("div",$3,[e.createVNode(ye,{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=>vu(Fa)},[e.createVNode(ye,null,{default:e.withCtx(()=>[e.createVNode(e.unref(Xa.close_default))]),_:1})],8,V3)]),e.createElementVNode("div",F3,e.toDisplayString(ge.name||"文件名123"),1)])}),128))]),Nl.value.length>0?(e.openBlock(),e.createElementBlock("div",P3,[e.createVNode(be,{onClick:za,class:"ocr-start-recognize-btn",disabled:Wl.value||Nl.value.length===0,size:"default"},{default:e.withCtx(()=>v[36]||(v[36]=[e.createTextVNode("开始识别 ")])),_:1,__:[36]},8,["disabled"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),Ka.value===1?(e.openBlock(),e.createElementBlock("div",j3,[e.createVNode(Ke,{percentage:na.value,"stroke-width":8},null,8,["percentage"])])):e.createCommentVNode("",!0),Ka.value===2?(e.openBlock(),e.createElementBlock("div",H3,[e.createElementVNode("div",U3,[e.createVNode(Ue,{title:"请核对识别结果。",type:"info",closable:!1,"show-icon":""})]),e.createElementVNode("div",q3,[e.createVNode(va,{data:xl.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(Xe,{type:"index",label:"序号",width:"60",fixed:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Te.value,ge=>(e.openBlock(),e.createBlock(Xe,{key:ge.prop,prop:ge.prop,"min-width":ge.minWidth||230,"class-name":ge.isAccuracy?"accuracy-column":""},{header:e.withCtx(()=>[e.createElementVNode("div",W3,[e.createElementVNode("span",null,e.toDisplayString(ge.label),1)])]),default:e.withCtx(({row:Fa,$index:fa})=>{var Ja,La,Ne;return[ge.isAccuracy?(e.openBlock(),e.createElementBlock("span",{key:0,class:"accuracy-value",style:e.normalizeStyle({color:Cl(Fa[ge.prop]),fontWeight:500})},e.toDisplayString(Al(Fa[ge.prop])),5)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[ml.value!==fa?(e.openBlock(),e.createElementBlock("span",K3,e.toDisplayString(Fa[ge.prop]),1)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Ua(ge.prop)),{key:1,modelValue:Fa[ge.prop],"onUpdate:modelValue":Z=>Fa[ge.prop]=Z,size:"small",placeholder:"请输入"+ge.label,content:((Ja=ra(ge.prop))==null?void 0:Ja.contents)??((La=ra(ge.prop))==null?void 0:La.options)??[],optionUrl:(Ne=ra(ge.prop))==null?void 0:Ne.optionUrl,onChange:Z=>ul(fa,ge.prop,Z),onFocus:Z=>El.value=ge.prop,onBlur:v[8]||(v[8]=Z=>El.value="")},null,40,["modelValue","onUpdate:modelValue","placeholder","content","optionUrl","onChange","onFocus"]))],64))]}),_:2},1032,["prop","min-width","class-name"]))),128)),e.createVNode(Xe,{label:"编辑",width:"80",fixed:"right"},{default:e.withCtx(({$index:ge})=>[ml.value===ge?(e.openBlock(),e.createBlock(ye,{key:0,class:"ocr-edit-icon editing",style:{"margin-left":"12px"},onClick:e.withModifiers(Fa=>jl(ge),["stop"])},{default:e.withCtx(()=>[e.createVNode(e.unref(Xa.check_default))]),_:2},1032,["onClick"])):(e.openBlock(),e.createBlock(N,{key:1,name:"edit_101",class:"ocr-edit-icon",onClick:e.withModifiers(Fa=>jl(ge),["stop"])},null,8,["onClick"]))]),_:1})]),_:1},8,["data"])])])):e.createCommentVNode("",!0),Ka.value===3?(e.openBlock(),e.createElementBlock("div",G3,[e.createVNode(ye,{size:"32",class:"ocr-success-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Xa.check_default))]),_:1}),v[37]||(v[37]=e.createElementVNode("div",{class:"ocr-success-text"},"文件提交成功",-1))])):e.createCommentVNode("",!0)]),e.createVNode(Ca,{ref:"ocrUploadRef","file-list":Nl.value,"onUpdate:fileList":v[9]||(v[9]=ge=>Nl.value=ge),multiple:"",action:"","auto-upload":!1,limit:20,accept:"image/*,application/pdf","on-change":Se,"show-file-list":!1,class:"ocr-upload-input",style:{display:"none"}},null,8,["file-list"])]),footer:e.withCtx(()=>[Ka.value!==3?(e.openBlock(),e.createElementBlock("div",Y3,[e.createVNode(be,{onClick:Bn,class:"ocr-start-recognize-btn",disabled:Ka.value===1||Wl.value},{default:e.withCtx(()=>v[39]||(v[39]=[e.createTextVNode(" 上一步 ")])),_:1,__:[39]},8,["disabled"]),e.createVNode(be,{onClick:xi,class:"ocr-start-recognize-btn",disabled:Wl.value},{default:e.withCtx(()=>v[40]||(v[40]=[e.createTextVNode(" 下一步 ")])),_:1,__:[40]},8,["disabled"])])):e.createCommentVNode("",!0)]),_:1},8,["visible"]),e.createVNode(u0,{visible:s.value,onConfirm:h,onCancel:v[10]||(v[10]=ge=>s.value=!1)},null,8,["visible"]),e.createVNode(Bd,{visible:zr.value,"onUpdate:visible":v[11]||(v[11]=ge=>zr.value=ge),versions:$a.value},null,8,["visible","versions"]),e.createVNode(vd,{visible:ze.value,"onUpdate:visible":v[12]||(v[12]=ge=>ze.value=ge),images:ha.value,"default-image-name":ca.value,"field-meta":ml.value!==null?((tl=xl.value[ml.value])==null?void 0:tl.__ocrFieldMeta)||{}:{},"focused-field-name":El.value,onClose:v[13]||(v[13]=ge=>ze.value=!1),class:"ocr-img-preview-dialog"},null,8,["visible","images","default-image-name","field-meta","focused-field-name"]),e.createVNode(jd,{visible:ga.value,"onUpdate:visible":v[14]||(v[14]=ge=>ga.value=ge),candidates:ma.value,"name-prop":Sa.value,"mfr-prop":pl.value,columns:F.value,onSubmit:Sr,onPreviewFile:hu},null,8,["visible","candidates","name-prop","mfr-prop","columns"]),e.createVNode(Yd,{visible:Ya.value,"onUpdate:visible":v[15]||(v[15]=ge=>Ya.value=ge),ocrPreviewData:xl.value,"onUpdate:ocrPreviewData":v[16]||(v[16]=ge=>xl.value=ge),ocrSelectedFields:el.value,"onUpdate:ocrSelectedFields":v[17]||(v[17]=ge=>el.value=ge),ocrPreviewColumns:Te.value,onConfirm:ll,onFieldChange:v[18]||(v[18]=({rowIndex:ge,prop:Fa,value:fa})=>ul(ge,Fa,fa))},null,8,["visible","ocrPreviewData","ocrSelectedFields","ocrPreviewColumns"]),e.createVNode(Mr.ssDialog,{title:y.title,visible:y.show,width:y.width,onBeforeDestroy:ke},{default:e.withCtx(()=>[e.createElementVNode("div",J3,[e.createVNode(fl.ssForm,{rowContents:y==null?void 0:y.contents,formRules:y==null?void 0:y.formRules,showOperator:!1,buttonValue:y.buttonValue,isEdit:Ba.value,isStartJustify:!1,onOnButtonClick:qe},null,8,["rowContents","formRules","buttonValue","isEdit"])])]),_:1},8,["title","visible","width"]),e.createVNode(Mr.ssDialog,{title:"",visible:k.show,width:k.width,alignCenter:!0,onBeforeDestroy:L},{header:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("div",X3,e.toDisplayString(k.title),1),e.createVNode(Da,{size:"small",type:"danger",style:{width:"100%"}},{default:e.withCtx(()=>v[41]||(v[41]=[e.createTextVNode(" (选择【覆盖】,可能会影响到原数据的引用关系;选择【跳过】将会放弃重复数据的导入。请谨慎操作!) ")])),_:1,__:[41]})])]),footer:e.withCtx(()=>[e.createElementVNode("div",Z3,[e.createVNode(Da,{size:"small",style:{width:"100%","text-align":"left"},type:"info"},{default:e.withCtx(()=>[e.createTextVNode("引用模块:"+e.toDisplayString(_n.value||"暂无"),1)]),_:1}),e.createElementVNode("div",Q3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k==null?void 0:k.buttonValue,ge=>(e.openBlock(),e.createBlock(be,{key:ge==null?void 0:ge.label,style:e.normalizeStyle({background:ge==null?void 0:ge.background,color:ge==null?void 0:ge.color}),onClick:Fa=>ae(ge==null?void 0:ge.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(ge==null?void 0:ge.label),1)]),_:2},1032,["style","onClick"]))),128))])])]),default:e.withCtx(()=>[e.createVNode(Of,{columns:k==null?void 0:k.columns,tableData:k==null?void 0:k.tableData},{content:e.withCtx(({row:ge,item:Fa,slotData:fa,scope:Ja,column:La,columnProp:Ne,$index:Z})=>[e.createTextVNode(e.toDisplayString((ge==null?void 0:ge[La==null?void 0:La.prop])||(ge==null?void 0:ge[La==null?void 0:La.label])||(ge==null?void 0:ge[La==null?void 0:La.property])||(fa==null?void 0:fa[La==null?void 0:La.property])),1)]),_:1},8,["columns","tableData"])]),_:1},8,["visible","width"])])}}},$c=nr._export_sfc(ah,[["__scopeId","data-v-006bf505"]]),lh={key:1,class:"static-form-body"},rh=["onClick"],nh={key:1},ih=e.defineComponent({__name:"index",props:{itemData:{default:()=>[]},fields:{default:()=>[]},compName:{default:""},title:{default:""},disabled:{type:Boolean,default:!1},textSize:{default:void 0},textColor:{default:void 0},backGround:{default:void 0},backGroundImage:{default:void 0},backgroundUrl:{default:void 0}},emits:["update:backGroundImage"],setup(a,{emit:l}){const n=a,r=l,i=S=>{switch(S){case"占用":return"warning";case"注销":return"info";case"损坏":return"danger";case"可用":return"success";default:return""}},t=e.computed(()=>{var R;const S=(R=n.itemData)==null?void 0:R.find($=>($==null?void 0:$.key)==="formContent"),b=(S==null?void 0:S.contents)||[];return(n.fields&&n.fields.length>0?n.fields:b).filter($=>($==null?void 0:$.label)||($==null?void 0:$.isHideInForm)).map($=>{let le=$==null?void 0:$.value;Array.isArray(le)&&(le=le.map(H=>H==null?"":typeof H=="object"?H.label??H.value??H.name??JSON.stringify(H):String(H)).filter(Boolean).join(",")),le!=null&&typeof le=="object"&&(le=le.label??le.value??le.name??JSON.stringify(le));const ee=$.isHideInForm?"":$.label??"",_e=le==null||le===""?"-":String(le),pe=ee==="使用状态";return{label:ee,value:_e,isStatus:pe,tagType:pe?i(_e):"",width:$.width??1,field:$}})}),f=e.ref(null),c=e.ref(null),u=e.computed(()=>{const S=Number(n==null?void 0:n.textSize),b=ie.rgbaToColor(n==null?void 0:n.textColor),C={},R={},$={},le={};return!Number.isNaN(S)&&S&&(C.fontSize=`${S}px`,R.fontSize=`${S+1}px`,$.fontSize=`${S}px`,le.fontSize=`${S}px`),b&&(R.color=b,$.color=b,le.color=b),{item:C,label:R,value:$,empty:le}}),m=e.ref(""),g=e.ref(""),_=e.ref(!1),p=async S=>{if(S){g.value&&(URL.revokeObjectURL(g.value),g.value="");try{const b=await z.platformDownloadFile({url:S}),C=new Blob([b==null?void 0:b.data],{type:(b==null?void 0:b.headers["content-type"])||"image/*"});g.value=URL.createObjectURL(C)}catch{g.value=""}}};e.watch(()=>n==null?void 0:n.backGroundImage,S=>{S&&(m.value=S)},{immediate:!0}),e.watch(m,S=>{p(S)},{immediate:!0});const M=()=>{var S;(S=c.value)==null||S.click()},w=async S=>{var R,$,le;const b=S.target,C=(R=b==null?void 0:b.files)==null?void 0:R[0];if(!C){b.value="";return}_.value=!0;try{const ee=new FormData;ee.append("file",C);const _e=await z.platformUploadFile(ee),pe=(le=($=_e==null?void 0:_e.data)==null?void 0:$.result)==null?void 0:le.url;pe?(m.value=pe,r("update:backGroundImage",pe),p(pe),Xa.ElMessage.success("背景图片上传成功")):Xa.ElMessage.error("背景图片上传失败")}catch{Xa.ElMessage.error("背景图片上传失败")}finally{_.value=!1,b.value=""}},G=e.computed(()=>{var S;return g.value||(n==null?void 0:n.backgroundUrl)!==""?{backgroundImage:`url("${(S=n==null?void 0:n.backgroundUrl)==null?void 0:S.replace(/\\/g,"/")}")`,backgroundSize:"contain",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{}}),A=S=>fl.getComponent(S),P=S=>{if(!S)return;const b=S.querySelector("input, textarea, .el-input__inner");b&&typeof b.focus=="function"&&b.focus()},O=(S,b,C)=>{n.disabled||(f.value=b,e.nextTick(()=>{P(C.currentTarget)}))},E=()=>{f.value=null},x=S=>{const b=S!=null&&S.width&&S.width>0?S.width:1,R=`calc((100% - ${(b-1)*48}px) / ${b})`;return{flex:`0 0 ${R}`,maxWidth:R,minWidth:"0",boxSizing:"border-box"}};return(S,b)=>{const C=e.resolveComponent("el-tag");return e.openBlock(),e.createElementBlock("div",{class:"static-form-card",style:e.normalizeStyle(G.value),onClick:b[2]||(b[2]=R=>(n==null?void 0:n.backGround)==="Yes"&&M())},[(n==null?void 0:n.backGround)==="Yes"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"form-backGround-upload",onClick:b[0]||(b[0]=e.withModifiers(R=>M(),["stop"]))},[e.createElementVNode("input",{ref_key:"bgUploadRef",ref:c,type:"file",accept:"image/*",style:{display:"none"},onChange:w},null,544),b[3]||(b[3]=e.createElementVNode("img",{src:fl._imports_0,class:"bg-upload-icon",alt:"上传背景"},null,-1))])):e.createCommentVNode("",!0),t.value.length?(e.openBlock(),e.createElementBlock("div",lh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(R,$)=>{var le,ee,_e,pe,H,F,X,re,ve;return e.openBlock(),e.createElementBlock("div",{key:$,class:"static-form-item",style:e.normalizeStyle({...x(R),...u.value.item}),onClick:b[1]||(b[1]=e.withModifiers(()=>{},["stop"]))},[R.label&&!((le=R==null?void 0:R.field)!=null&&le.isHideInForm)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"static-form-label",style:e.normalizeStyle(u.value.label)},e.toDisplayString(R.label)+": ",5)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"static-form-value",style:e.normalizeStyle(u.value.value),onClick:Re=>{var ce;return(ce=R.field)!=null&&ce.isNoClick?null:O(R,$,Re)}},[f.value===$&&R.field?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(A(((ee=R.field)==null?void 0:ee.type)??"Input")),{key:0,modelValue:R.field.value,"onUpdate:modelValue":Re=>R.field.value=Re,isEdit:!0,disabled:(_e=R.field)==null?void 0:_e.disabled,content:((pe=R.field)==null?void 0:pe.contents)??[],optionUrl:R.field,originalValue:(H=R.field)==null?void 0:H.value,config:(F=R.field)==null?void 0:F.config,configModel:((X=R.field)==null?void 0:X.prop)??((re=R.field)==null?void 0:re.name),selectedTagList:((ve=R.field)==null?void 0:ve.selectValue)??[],onBlur:E,onBlurChange:E},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[R.isStatus?(e.openBlock(),e.createBlock(C,{key:0,type:R.tagType,size:"Default",effect:"plain"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(R.value??"-"),1)]),_:2},1032,["type"])):(e.openBlock(),e.createElementBlock("span",nh,e.toDisplayString(R.value??"-"),1))],64))],12,rh)],4)}),128))])):(e.openBlock(),e.createElementBlock("div",{key:2,class:"static-form-empty",style:e.normalizeStyle(u.value.empty)}," 暂无数据 ",4))],4)}}}),Vc=nr._export_sfc(ih,[["__scopeId","data-v-5937a104"]]),oh={class:"form-content"},th={title:"选择标签"},sh={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},ch={class:"col-operate-wrap"},uh={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},dh={__name:"index",props:{formRules:Object,itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,compName:{type:String,default:""},allMapContents:{type:Object},config:{type:Object,default:()=>{}}},emits:["change","contentChange","routeUrl","clickTrigger"],setup(a,{emit:l}){const n=()=>{c.value=!1,u.value=!1,m.value=[]},r=a;e.computed(()=>{var Fe;const K=(Fe=_a.value)==null?void 0:Fe.split("/");return(K==null?void 0:K.some(We=>(We==null?void 0:We.includes("updateLoading"))||(We==null?void 0:We.includes("loading"))))?!1:Re.value==="view"});const i=l,t=e.ref(""),f=e.ref([]),c=e.ref(!1),u=e.ref(!1),m=e.ref([]),{getFileExtension:g}=No.useThreeSystem(),_=e.ref(),p=e.ref(!1),M=e.ref(!1),w=z.useUnit(z.pinia),{chooseTitle:G}=z.storeToRefs(w),A=e.ref([]),P=e.ref(),O=e.ref(!1),E=e.ref([]),x=bc(z.pinia),S=It(z.pinia),b=e.ref(!1),C=e.ref(),R=e.ref(),$=e.ref(),le=e.ref(),ee=e.ref(),_e=z.useLoginState(z.pinia),{loginUserInfo:pe}=z.storeToRefs(_e),H=e.ref(),F=e.ref(!0),X=z.useModelComp(z.pinia),{tableViewContents:re,itemData:ve,isEdit:Re,routeToChildPath:ce,lockingPage:B,homepageBackgroundTableId:te,refreshCurrentPageInform:q}=z.storeToRefs(X),xe=e.ref(null),Me=e.ref(!1),$e=e.ref(!1),Qe=z.useMenuState(),{activeMenuPath:_a}=z.storeToRefs(Qe),oe=ie.useOriginalState(z.pinia),{originalPath:sa}=z.storeToRefs(oe),{compType:de,hasEditable:ea}=nc.useRole(),Ae=()=>!ea(r.config,{type:de.FORM});e.computed(()=>_a.value==="设备管理/试验设备"&&r.compName==="设备概要");const ue=async()=>{var Fe,We,Na;const K=te==null?void 0:te.value,J=(Fe=pe==null?void 0:pe.value)==null?void 0:Fe.plat_id;if(!(!K||!J))try{const da=await z.getAllTables({platId:parseInt(J),tableNames:[`content_${K}`,`struct_${K}`],user_unique_id:"0"}),Aa=((Na=(We=da==null?void 0:da.data)==null?void 0:We.result)==null?void 0:Na[0])??[],Oe=String((r==null?void 0:r.index)??""),He=Aa==null?void 0:Aa.find(Ie=>String(Ie==null?void 0:Ie.relatedForm_id)===Oe);He!=null&&He.backgroundImg_url&&(le.value=He.backgroundImg_url)}catch(da){console.error("获取首页背景图片表数据失败:",da)}},he=e.ref([]),Ge=e.ref([{label:"编辑",value:"operable",checked:!1},{label:"禁用",value:"disabled",checked:!1}]),wa=async K=>{$e.value=K,await ua("disabled",null,K,!0)},Ia=async K=>{await ua("operable",null,K,!0)};e.watch(()=>_a.value,async()=>{f.value=[],m.value=[]},{deep:!0,immediate:!0});const U=()=>{e.nextTick(()=>{me()})},V=K=>{var J;f.value=(J=f.value)==null?void 0:J.map(Fe=>({...Fe,isFormColHidden:!(K!=null&&K.includes(Fe.label))}))};e.onUnmounted(()=>{xe.value=null});const Q=K=>{i("clickTrigger",K)},fe=async K=>{var J,Fe,We,Na,da,Aa;if(K===""){let Oe="";(J=f.value)==null||J.forEach(we=>{we!=null&&we.isMain&&(Oe=we==null?void 0:we.value)});let He=await ie.getItemData(ce.value,sessionStorage.getItem("systemKey"),"");Oe=((Aa=(da=(Na=(We=(Fe=He==null?void 0:He[0])==null?void 0:Fe.compData)==null?void 0:We.find(we=>(we==null?void 0:we.key)==="mainRouters"))==null?void 0:Na.contents)==null?void 0:da[0])==null?void 0:Aa.routerContent)+sa.value+Oe;let Ve=await ie.getItemData(Oe,sessionStorage.getItem("systemKey"),"");O.value=!0,E.value=Ve==null?void 0:Ve.filter(we=>(we==null?void 0:we.comp)!=="methodButton"),i("routeUrl",E.value)}},me=()=>{var J;const K=(J=xe.value)==null?void 0:J.$el;K&&Hl.Sortable.create(K,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:Fe=>{const{oldIndex:We,newIndex:Na}=Fe;if(We===Na)return;const da=f.value.splice(We,1)[0];f.value.splice(Na,0,da)}})},ua=async(K,J,Fe,We=!1)=>{try{X.setRefreshCurStructure(!1)}catch{Xa.ElMessage.error("编辑处理失败")}},ta=async(K,J)=>{await ua()},je=async(K,J)=>{K&&await ua()},ba=async(K,J,Fe)=>{await ua(J,Fe,K,!1)},Ta=(K,J)=>{H.value===J?F.value=!1:F.value=!0,H.value=J==null?void 0:J.changeProp},Ee=async K=>{var Aa;le.value=K;const J=r.itemData,Fe=J==null?void 0:J.find(Oe=>(Oe==null?void 0:Oe.key)==="backGroundImage");Fe?Fe.contents=K:J==null||J.push({key:"backGroundImage",contents:K}),i("change",{key:"backGroundImage",contents:K});const We=te==null?void 0:te.value,Na=r==null?void 0:r.index,da=(Aa=pe==null?void 0:pe.value)==null?void 0:Aa.plat_id;if(!(!We||!da||!Na||!K))try{await z.pageBatchAddApi({platId:parseInt(da),changeContents:[{tableName:`content_${We}`,tableContents:[{backgroundImg_url:K,relatedForm_id:String(Na)}]}],user_unique_id:"0"})}catch(Oe){console.error("保存背景图片记录失败:",Oe),Xa.ElMessage.error("背景图片记录保存失败")}},Pa=async K=>{var Fe,We,Na,da,Aa,Oe,He,Ie,Ve,we,ol,Sl,Ll,Vl,zl;let J=[];if((Fe=K==null?void 0:K.toString())!=null&&Fe.includes(".urdf")){if(K.includes(",")){Xa.ElMessage.error("当前版本仅允许单个urdf预览!");return}m.value=[{url:K,extension:g(K)}],u.value=!0,c.value=!0;return}if((We=K==null?void 0:K.toString())!=null&&We.includes(".stl")||(Na=K==null?void 0:K.toString())!=null&&Na.includes(".STL")||(da=K==null?void 0:K.toString())!=null&&da.includes(".obj")||(Aa=K==null?void 0:K.toString())!=null&&Aa.includes(".mtl")){const rl=((Oe=K==null?void 0:K.toString())==null?void 0:Oe.split(",")).map(Fl=>({url:Fl,extension:g(Fl)}));m.value=rl,u.value=!1,c.value=!0;return}if((He=K==null?void 0:K.toString())!=null&&He.includes(".stl")||(Ie=K==null?void 0:K.toString())!=null&&Ie.includes(".STL")||(Ve=K==null?void 0:K.toString())!=null&&Ve.includes(".obj")||(we=K==null?void 0:K.toString())!=null&&we.includes(".mtl")){let Jl,rl=[],Fl={};if(Array.isArray(K)?Jl=K:Jl=K==null?void 0:K.split(","),Jl==null||Jl.forEach(Wa=>{Wa.includes(".mtl")?rl.push(Wa):Fl.blob=Fl.blob?Fl.blob+","+Wa:Wa}),(rl==null?void 0:rl.length)>0&&(Fl.mtlBlobs=rl),(Sl=(ol=Object.values(Fl))==null?void 0:ol[0])!=null&&Sl.includes("http:"))J.push(Fl);else{const Wa=new Blob([Fl.blob],{type:"application/octet-stream;charset=UTF-8"});let Kl=URL.createObjectURL(Wa),Wl="";(Ll=K==null?void 0:K.split("/"))==null||Ll.forEach((Nl,Tl)=>{var zr;Tl===((zr=K==null?void 0:K.split("/"))==null?void 0:zr.length)-1&&(Wl=Nl)}),(Vl=Fl.blob)!=null&&Vl.includes(".stl")&&(Wl=(Wl==null?void 0:Wl.replaceAll(">",""))+".urdf"),P.value=[{name:Wl,blobUrl:Kl}],M.value=!0}}else{const Jl=z.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),rl=await Xa.axios.get(K,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{Jl.close()}),Fl=new Blob([rl.data],{type:"application/octet-stream;charset=UTF-8"});let Wa=URL.createObjectURL(Fl),Kl="";(zl=K==null?void 0:K.split("/"))==null||zl.forEach((Wl,Nl)=>{var Tl;Nl===((Tl=K==null?void 0:K.split("/"))==null?void 0:Tl.length)-1&&(Kl=Wl)}),P.value=[{name:Kl,blobUrl:Wa}],M.value=!0}(J==null?void 0:J.length)>0&&S.setBlobUrls(J)},Ea=()=>{M.value=!1},ia=K=>{var da,Aa,Oe,He;const J=(Aa=(da=fl.safeClone(r.itemData))==null?void 0:da.find(Ie=>(Ie==null?void 0:Ie.key)==="formContent"))==null?void 0:Aa.contents,Fe=fl.safeClone(K.content);let We={};Fe&&((Oe=Object.values(Fe))==null?void 0:Oe.length)>0&&((He=Object.values(Fe))==null||He.forEach((Ie,Ve)=>{We[J[Ve].key]=Ie}));const Na={content:We,index:r==null?void 0:r.index,buttonName:K==null?void 0:K.buttonName};i("change",Na)};e.computed(()=>"http://222.92.178.198:62001");const Ba=async K=>{var ol,Sl,Ll,Vl,zl,Jl,rl,Fl,Wa,Kl,Wl,Nl,Tl,zr,$a,Ka;if(!K)return;(Sl=(ol=r==null?void 0:r.itemData)==null?void 0:ol.find(pa=>(pa==null?void 0:pa.key)==="parentFormPath"))==null||Sl.contents;let J=re.value;(J==null?void 0:J.length)>0&&(J=J==null?void 0:J.map(pa=>{var na,Ya,xl,Te;let ja=(na=pa==null?void 0:pa.key)==null?void 0:na.split("/");return(r==null?void 0:r.compName)===(ja==null?void 0:ja[0])&&(Ya=f.value)!=null&&Ya.find(ra=>(ra==null?void 0:ra.prop)===(ja==null?void 0:ja[1]))&&(pa.value=(Te=(xl=f.value)==null?void 0:xl.find(ra=>(ra==null?void 0:ra.prop)===(ja==null?void 0:ja[1])))==null?void 0:Te.value),pa}),X.setTableViewContents(J));const Fe=fl.safeClone(r.itemData);let We=Fe==null?void 0:Fe.map(pa=>{var ja;return(pa==null?void 0:pa.key)==="formContent"&&((ja=pa.contents)==null||ja.map((na,Ya)=>{var xl,Te,ra,Ua,De,Ra,el,ml,El,ze,ha,ca,ga,ma,cl,Le,yl,Be,Ul,Sa,pl;return na.type=(Te=(xl=f.value)==null?void 0:xl.find(Qa=>(Qa==null?void 0:Qa.prop)===(na==null?void 0:na.prop)))==null?void 0:Te.type,na.options=na!=null&&na.options?na.options:((De=(Ua=(ra=na==null?void 0:na.key)==null?void 0:ra.split("$"))==null?void 0:Ua[1])==null?void 0:De.length)>0?(El=(ml=qu((el=(Ra=na==null?void 0:na.key)==null?void 0:Ra.split("$"))==null?void 0:el[1]))==null?void 0:ml.split(","))==null?void 0:El.map(Qa=>({label:Qa,value:Qa})):[],(ze=na==null?void 0:na.key)!=null&&ze.includes("$")&&(na.key=(ca=(ha=na==null?void 0:na.key)==null?void 0:ha.split("$"))==null?void 0:ca[0]),na.signature=(ma=(ga=f.value)==null?void 0:ga.find(Qa=>(Qa==null?void 0:Qa.prop)===(na==null?void 0:na.prop)))==null?void 0:ma.signature,na.isLoginUser=(Le=(cl=f.value)==null?void 0:cl.find(Qa=>(Qa==null?void 0:Qa.prop)===(na==null?void 0:na.prop)))==null?void 0:Le.isLoginUser,na.value=(yl=Object.values(K))==null?void 0:yl[Ya],na.isFormColHidden=(Ul=(Be=f.value)==null?void 0:Be.find(Qa=>(Qa==null?void 0:Qa.prop)===(na==null?void 0:na.prop)))==null?void 0:Ul.isFormColHidden,na.isHideInForm=(pl=(Sa=f.value)==null?void 0:Sa.find(Qa=>(Qa==null?void 0:Qa.prop)===(na==null?void 0:na.prop)))==null?void 0:pl.isHideInForm,na})),pa}),Na=f.value,da=(Vl=(Ll=fl.safeClone(We))==null?void 0:Ll.find(pa=>(pa==null?void 0:pa.key)==="formContent"))==null?void 0:Vl.contents;if(Na=Na==null?void 0:Na.map(pa=>{var ja,na;return(pa==null?void 0:pa.type)==="Select"&&((ja=pa==null?void 0:pa.allSelectionContents)==null?void 0:ja.length)>0&&(pa.contactValue=K),pa.value=(na=da==null?void 0:da.find((Ya,xl)=>((Ya==null?void 0:Ya.id)??xl)===(pa==null?void 0:pa.id)))==null?void 0:na.value,pa}),!F.value){i("contentChange",{contents:We,index:r.index});return}let Aa="",Oe=(rl=(Jl=(zl=fl.safeClone(We))==null?void 0:zl.find(pa=>(pa==null?void 0:pa.key)==="formContent"))==null?void 0:Jl.contents)==null?void 0:rl.find((pa,ja)=>{var na,Ya,xl;return(pa==null?void 0:pa.label)===H.value||ja.toString()===((xl=(Ya=(na=H.value)==null?void 0:na.split("t"))==null?void 0:Ya[1])==null?void 0:xl.toString())}),He=(Fl=Oe==null?void 0:Oe.optionUrl)==null?void 0:Fl.menuSelect,Ie=!0;if((Wl=(Kl=(Wa=fl.safeClone(We))==null?void 0:Wa.find(pa=>(pa==null?void 0:pa.key)==="formContent"))==null?void 0:Kl.contents)==null||Wl.forEach(pa=>{var ja,na,Ya,xl,Te,ra;Ie&&((Ya=(na=(ja=pa==null?void 0:pa.optionUrl)==null?void 0:ja.groupSelect)==null?void 0:na[1])!=null&&Ya.includes("["))&&(Aa=(Te=(xl=pa==null?void 0:pa.optionUrl)==null?void 0:xl.groupSelect)==null?void 0:Te[1],JSON.stringify(He)===JSON.stringify((ra=pa==null?void 0:pa.optionUrl)==null?void 0:ra.menuSelect)&&(Ie=!1))}),(Nl=Oe==null?void 0:Oe.optionUrl)!=null&&Nl.menuSelect&&F.value){let pa=await Ct(Oe),ja,na=(Tl=Oe==null?void 0:Oe.optionUrl)==null?void 0:Tl.menuSelect;if(pa==null||pa.forEach(Ya=>{var xl,Te,ra,Ua,De,Ra,el,ml,El,ze;Aa===((Te=(xl=Oe==null?void 0:Oe.optionUrl)==null?void 0:xl.groupSelect)==null?void 0:Te[1])&&((De=(Ua=(ra=Oe==null?void 0:Oe.optionUrl)==null?void 0:ra.groupSelect)==null?void 0:Ua[1])!=null&&De.includes("["))&&((ze=fl.safeClone(Ya))==null?void 0:ze[(El=(ml=(el=(Ra=Oe==null?void 0:Oe.optionUrl)==null?void 0:Ra.groupSelect)==null?void 0:el[1])==null?void 0:ml.replaceAll("[",""))==null?void 0:El.replaceAll("]","")])===(Oe==null?void 0:Oe.value)&&(ja=Ya)}),ja){let Ya=fl.safeClone(Na);Ya=Ya==null?void 0:Ya.map(Te=>{var ra,Ua,De,Ra,el,ml,El,ze,ha,ca,ga;return(ja!=null&&ja[Te==null?void 0:Te.label]||ja!=null&&ja[(Ra=(De=(Ua=(ra=Te==null?void 0:Te.optionUrl)==null?void 0:ra.groupSelect)==null?void 0:Ua[1])==null?void 0:De.replaceAll("[",""))==null?void 0:Ra.replaceAll("]","")])&&((El=(ml=(el=Te==null?void 0:Te.optionUrl)==null?void 0:el.groupSelect)==null?void 0:ml[1])!=null&&El.includes("["))&&na!=null&&na.every(ma=>{var cl,Le;return(Le=(cl=Te==null?void 0:Te.optionUrl)==null?void 0:cl.menuSelect)==null?void 0:Le.includes(ma)})&&(Te.value=(ja==null?void 0:ja[Te==null?void 0:Te.label])||(ja==null?void 0:ja[(ga=(ca=(ha=(ze=Te==null?void 0:Te.optionUrl)==null?void 0:ze.groupSelect)==null?void 0:ha[1])==null?void 0:ca.replaceAll("[",""))==null?void 0:ga.replaceAll("]","")]),Array.isArray(Te.value)&&Te.value.every(ma=>(ma==null?void 0:ma.url)&&(ma==null?void 0:ma.name))&&(Te.type="Upload")),Te}),Ya=Ya==null?void 0:Ya.map(Te=>{var ra,Ua,De;return(ra=Te==null?void 0:Te.optionUrl)!=null&&ra.oldMenuSelect&&(Te.optionUrl.menuSelect=(De=(Ua=fl.safeClone(Te))==null?void 0:Ua.optionUrl)==null?void 0:De.oldMenuSelect),Te}),f.value=fl.safeClone(Ya);let xl=fl.safeClone(Ya);xl=xl==null?void 0:xl.map(Te=>{var ra,Ua,De,Ra,el,ml;return(Ua=(ra=Te==null?void 0:Te.optionUrl)==null?void 0:ra.menuSelect)!=null&&Ua.some(El=>El==null?void 0:El.includes("["))&&(Te.optionUrl.oldMenuSelect=(Ra=(De=fl.safeClone(Te))==null?void 0:De.optionUrl)==null?void 0:Ra.menuSelect,Te.optionUrl.menuSelect=(ml=(el=Te==null?void 0:Te.optionUrl)==null?void 0:el.menuSelect)==null?void 0:ml.map(El=>{var ze,ha,ca,ga;if(El!=null&&El.includes("[")){let ma=(ha=(ze=El==null?void 0:El.replaceAll("[","").replaceAll("]",""))==null?void 0:ze.split(":"))==null?void 0:ha[1];El=(ga=(ca=fl.safeClone(Ya))==null?void 0:ca.find(cl=>(cl==null?void 0:cl.label)===ma))==null?void 0:ga.value}return El})),Te}),f.value=xl}else f.value=Na;We=We==null?void 0:We.map(Ya=>{var xl;return(Ya==null?void 0:Ya.key)==="formContent"&&(Ya.contents=(xl=Ya.contents)==null?void 0:xl.map(Te=>{var ra,Ua,De,Ra;return Te.value=((Ua=(ra=f.value)==null?void 0:ra.find(el=>(el==null?void 0:el.label)===(Te==null?void 0:Te.key)))==null?void 0:Ua.value)??(Te==null?void 0:Te.value),Te.type=((Ra=(De=f.value)==null?void 0:De.find(el=>(el==null?void 0:el.prop)===(Te==null?void 0:Te.key)))==null?void 0:Ra.type)??(Te==null?void 0:Te.type),Te})),Ya})}F.value=!1,i("contentChange",{contents:We,index:r.index});let Ve=[],we=[];if(($a=fl.safeClone((zr=We==null?void 0:We.find(pa=>(pa==null?void 0:pa.key)==="formContent"))==null?void 0:zr.contents))==null||$a.forEach(pa=>{var ja;Array.isArray(pa==null?void 0:pa.value)&&((ja=pa==null?void 0:pa.value)!=null&&ja.find(na=>{var Ya;return(Ya=na==null?void 0:na.url)==null?void 0:Ya.includes(".obj")}))&&(we=pa==null?void 0:pa.value)}),(we==null?void 0:we.length)>0){const pa=(Ka=fl.safeClone(we))==null?void 0:Ka.filter(ja=>{var na;return(na=ja==null?void 0:ja.url)==null?void 0:na.includes(".obj")});pa==null||pa.forEach(ja=>{var Ya,xl,Te,ra;const na=(Ya=we==null?void 0:we.filter(Ua=>{var De;return(Ua==null?void 0:Ua.name)===(ja==null?void 0:ja.name)&&((De=Ua==null?void 0:Ua.url)==null?void 0:De.includes(".mtl"))}))==null?void 0:Ya.map(Ua=>Ua==null?void 0:Ua.url);Ve.push({objUrl:ja==null?void 0:ja.url,mtlUrls:((xl=we==null?void 0:we.filter(Ua=>{var De;return(Ua==null?void 0:Ua.name)===(ja==null?void 0:ja.name)&&((De=Ua==null?void 0:Ua.url)==null?void 0:De.includes(".mtl"))}))==null?void 0:xl.length)===1?(ra=(Te=we==null?void 0:we.filter(Ua=>{var De;return(Ua==null?void 0:Ua.name)===(ja==null?void 0:ja.name)&&((De=Ua==null?void 0:Ua.url)==null?void 0:De.includes(".mtl"))}))==null?void 0:Te[0])==null?void 0:ra.url:na})}),S.setObjUrl(Ve)}},Ce=(K,J,Fe)=>{let We="";const Na=J==null?void 0:J.map(da=>{var Aa;return(Aa=da==null?void 0:da.value)==null?void 0:Aa.pageData});return Na==null||Na.forEach(da=>{var Aa;(da==null?void 0:da.name)===(K==null?void 0:K[0])&&((Aa=da==null?void 0:da.compData)==null||Aa.forEach(Oe=>{var He;(Oe==null?void 0:Oe.key)==="formContent"&&((He=Oe==null?void 0:Oe.contents)==null||He.forEach(Ie=>{var Ve;(Ie==null?void 0:Ie.prop)===(K==null?void 0:K[1])&&(We=(Ie==null?void 0:Ie.value)===""?ie.judgeContents((Ve=fl.safeClone(Ie))==null?void 0:Ve.optionUrl,Fe):Ie==null?void 0:Ie.value)}))}))}),We},ka=(K,J,Fe,We)=>{var Oe,He;let Na="",da="";(Oe=fl.safeClone(J))==null||Oe.forEach((Ie,Ve)=>{Ie!=null&&Ie.includes("[")?da=da+sa.value+K[Ve]:da=da===""?da+Ie:da+"/"+Ie});let Aa=(He=We[da])==null?void 0:He.map(Ie=>{var Ve;return(Ve=Ie==null?void 0:Ie.value)==null?void 0:Ve.pageData});return Aa==null||Aa.forEach(Ie=>{var Ve;(Ie==null?void 0:Ie.name)===(Fe==null?void 0:Fe[0])&&((Ve=Ie==null?void 0:Ie.compData)==null||Ve.forEach(we=>{var ol;(we==null?void 0:we.key)==="formContent"&&((ol=we==null?void 0:we.contents)==null||ol.forEach(Sl=>{(Sl==null?void 0:Sl.prop)===(Fe==null?void 0:Fe[1])&&(Na=Sl==null?void 0:Sl.value)}))}))}),Na};e.watch(()=>te==null?void 0:te.value,async()=>{await ue()},{immediate:!0});const Je=async K=>await Xp(K,"Auto");return e.watch(()=>q.value,async()=>{var K;(K=f.value)!=null&&K.some(J=>(J==null?void 0:J.functionName)&&(J==null?void 0:J.functionName)!=="")&&(f.value=await Je(f.value))},{immediate:!0,deep:!0}),e.watch(()=>r.itemData,async()=>{var Sl,Ll,Vl,zl,Jl,rl,Fl,Wa,Kl,Wl,Nl,Tl,zr,$a,Ka,pa,ja,na,Ya,xl,Te,ra,Ua,De,Ra,el,ml,El;const K=(Sl=r.itemData)==null?void 0:Sl.find(ze=>(ze==null?void 0:ze.key)==="formContent");let J=(Ll=r.itemData)==null?void 0:Ll.find(ze=>(ze==null?void 0:ze.key)==="backGround");J&&((Vl=J==null?void 0:J.contents)==null?void 0:Vl.length)>0&&(t.value=((Jl=(zl=J==null?void 0:J.contents)==null?void 0:zl[0])==null?void 0:Jl.url)??"");const Fe=(rl=fl.safeClone(r.itemData))==null?void 0:rl.find(ze=>(ze==null?void 0:ze.key)==="formButton"),We=(Fl=fl.safeClone(r.itemData))==null?void 0:Fl.find(ze=>(ze==null?void 0:ze.key)==="formFlex"),Na=(Wa=fl.safeClone(r.itemData))==null?void 0:Wa.find(ze=>(ze==null?void 0:ze.key)==="formWrap"),da=(Kl=fl.safeClone(r.itemData))==null?void 0:Kl.find(ze=>(ze==null?void 0:ze.key)==="enableWrap"),Aa=(Wl=fl.safeClone(r.itemData))==null?void 0:Wl.find(ze=>(ze==null?void 0:ze.key)==="textSize"),Oe=(Nl=fl.safeClone(r.itemData))==null?void 0:Nl.find(ze=>(ze==null?void 0:ze.key)==="textRGBA"),He=(Tl=fl.safeClone(r.itemData))==null?void 0:Tl.find(ze=>(ze==null?void 0:ze.key)==="backGround"),Ie=(zr=fl.safeClone(r.itemData))==null?void 0:zr.find(ze=>(ze==null?void 0:ze.key)==="backGroundImage");(Na==null?void 0:Na.contents)==="纵向"?p.value=!1:p.value=!0;const Ve=Number(Aa==null?void 0:Aa.contents);C.value=Number.isNaN(Ve)?void 0:Ve,R.value=Oe==null?void 0:Oe.contents,$.value=He==null?void 0:He.contents,le.value=Ie==null?void 0:Ie.contents;const we=da==null?void 0:da.contents;if(we===void 0?b.value=ui.BLOCK:typeof we=="boolean"?b.value=we?ui.ORDINARY:ui.BLOCK:b.value=we,ee.value=typeof(We==null?void 0:We.contents)!="boolean"?!(!(We!=null&&We.contents)===""||(($a=We==null?void 0:We.contents)==null?void 0:$a.toUpperCase())==="VERTICAL"):We==null?void 0:We.contents,((Ka=K==null?void 0:K.contents)==null?void 0:Ka.length)>0&&Array.isArray(K==null?void 0:K.contents)){let ze=r.allMapContents;const ha=(ja=(pa=fl.safeClone(K))==null?void 0:pa.contents)==null?void 0:ja.map((Be,Ul)=>{var Ur,en,an,cr,br,jr,Xl,Ml,Dr,Yl,vr,Tr,kr;let Sa=(Be==null?void 0:Be.label)??(Be==null?void 0:Be.key)??"";Be==null||Be.type;let pl=(Be==null?void 0:Be.options)??[];if((Ur=Be==null?void 0:Be.key)!=null&&Ur.includes("$")&&(Sa=(en=fl.safeClone(Be==null?void 0:Be.key).split("$"))==null?void 0:en[0],((cr=(an=fl.safeClone(Be==null?void 0:Be.key).split("$"))==null?void 0:an[1])==null?void 0:cr.length)>0)){const[wr,tn]=(jr=(br=fl.safeClone(Be==null?void 0:Be.key).split("$"))==null?void 0:br[1])==null?void 0:jr.split(/[()]/);(Xl=ie.FormType.find(yn=>(yn==null?void 0:yn.key)===wr))==null||Xl.value,((Ml=tn==null?void 0:tn.split(","))==null?void 0:Ml.length)>0&&(pl=(Dr=tn==null?void 0:tn.split(","))==null?void 0:Dr.map(yn=>({label:yn,value:yn})))}let Qa=Be==null?void 0:Be.options;((Yl=Be==null?void 0:Be.optionUrl)==null?void 0:Yl.selectRelateType)==="自定义绑定"&&(Qa=(Tr=(vr=Be==null?void 0:Be.optionUrl)==null?void 0:vr.defaultSelect)==null?void 0:Tr.map(wr=>({label:wr,value:wr})));let gl=(Be==null?void 0:Be.menuPath)??[],Oa=(Be==null?void 0:Be.groups)??[],Pl=(Be==null?void 0:Be.columns)??[],Sr=!1,Qr=(Be==null?void 0:Be.isFormColHidden)??!1,Wr="",Gl=Be!=null&&Be.value?Be.value:(Qa==null?void 0:Qa.length)>0?(kr=Qa==null?void 0:Qa[0])==null?void 0:kr.value:(Be==null?void 0:Be.value)??"",ir=!1,on="Input";return((Qa==null?void 0:Qa.length)>0||(gl==null?void 0:gl.length)>0)&&(on="Select"),(Array.isArray(Wr)&&(Wr!=null&&Wr.every(wr=>(wr==null?void 0:wr.name)&&(wr==null?void 0:wr.url)))||Array.isArray(Gl)&&(Gl!=null&&Gl.every(wr=>(wr==null?void 0:wr.name)&&(wr==null?void 0:wr.url))))&&(on="upload"),Be!=null&&Be.isMainUrl&&(on="Url"),{label:Sa??"",name:Sa??"t"+Ul,prop:Sa??fl.safeClone(Be==null?void 0:Be.key),type:(Be==null?void 0:Be.type)??on,value:(Be==null?void 0:Be.type)==="Date"&&Gl===""?new Date:Gl,id:(Be==null?void 0:Be.id)??Ul,contents:(Qa==null?void 0:Qa.length)>0?Qa:pl??[],width:(Be==null?void 0:Be.width)??1,isLoginUser:Sr,config:Be==null?void 0:Be.config,optionUrl:(Be==null?void 0:Be.optionUrl)??Be,isFormColHidden:Qr,isHideInForm:(Be==null?void 0:Be.isHideInForm)??!1,signature:ir,isMain:Be==null?void 0:Be.isMain,required:(Be==null?void 0:Be.required)??!1,isMainUrl:Be==null?void 0:Be.isMainUrl,operable:(Be==null?void 0:Be.operable)??!1,disabled:(Be==null?void 0:Be.disabled)??!1,isSync:Be==null?void 0:Be.isSync,menus:gl,groups:Oa,words:Pl,allSelectionContents:Be==null?void 0:Be.allContents,filterContent:Be==null?void 0:Be.filterContents,isNoClick:(Be==null?void 0:Be.isNoClick)??!1,functionName:Be==null?void 0:Be.functionName,functionRelatedWords:Be==null?void 0:Be.functionRelatedWords,calculatorFilter:Be==null?void 0:Be.calculatorFilter}}),ca=ha==null?void 0:ha.map(Be=>Be==null?void 0:Be.value);let ga="";ca==null||ca.forEach(Be=>{Be!==""&&Be!==void 0&&(ga=ga===""?Be:ga+"/"+Be)}),x.setSelectArray(ca),x.setSelectString(ga);let ma=(na=fl.safeClone(ha))==null?void 0:na.map(Be=>(Be!=null&&Be.value&&ie.IsJson(Be==null?void 0:Be.value)&&Array.isArray(JSON.parse(Be==null?void 0:Be.value))&&(Be.value=JSON.parse(Be.value)),Be)),cl={};ma==null||ma.forEach(Be=>{cl[Be.label]=Be==null?void 0:Be.value}),ma=ma==null?void 0:ma.map(Be=>{var Ul,Sa,pl,Qa,gl,Oa,Pl,Sr,Qr;if((Be==null?void 0:Be.type)==="Select"&&((Ul=Be==null?void 0:Be.allSelectionContents)==null?void 0:Ul.length)>0&&(Be.contactValue=cl),(pl=(Sa=Be==null?void 0:Be.optionUrl)==null?void 0:Sa.menuSelect)!=null&&pl.some(Wr=>Wr==null?void 0:Wr.includes("["))){let Wr="";Be.optionUrl.oldMenuSelect=(gl=(Qa=fl.safeClone(Be))==null?void 0:Qa.optionUrl)==null?void 0:gl.menuSelect,Be.optionUrl.menuSelect=(Pl=(Oa=Be==null?void 0:Be.optionUrl)==null?void 0:Oa.menuSelect)==null?void 0:Pl.map(Gl=>{var ir,on,Jr,Ur,en,an;if(Gl!=null&&Gl.includes("[")){let cr=(on=(ir=Gl==null?void 0:Gl.replaceAll("[","").replaceAll("]",""))==null?void 0:ir.split(":"))==null?void 0:on[1];Wr=Ce((Jr=Gl==null?void 0:Gl.replaceAll("[","").replaceAll("]",""))==null?void 0:Jr.split(":"),ze==null?void 0:ze[_a.value],ze),Gl=((en=(Ur=fl.safeClone(ma))==null?void 0:Ur.find(br=>(br==null?void 0:br.label)===cr))==null?void 0:en.value)||Ce((an=Gl==null?void 0:Gl.replaceAll("[","").replaceAll("]",""))==null?void 0:an.split(":"),ze==null?void 0:ze[_a.value],ze)}return Gl}),Wr!==""&&Be.value===""&&(Be.value=ka(Be.optionUrl.menuSelect,Be.optionUrl.oldMenuSelect,(Sr=Be==null?void 0:Be.optionUrl)==null?void 0:Sr.groupSelect,ze),Array.isArray(Be.value)&&((Qr=Be.value)!=null&&Qr.every(Gl=>Gl==null?void 0:Gl.url))&&(Be.type="UPLOAD"))}return Be}),f.value=ma,$e.value=((Ya=f.value)==null?void 0:Ya.every(Be=>Be==null?void 0:Be.disabled))||B.value===_a.value,Me.value=(xl=f.value)==null?void 0:xl.every(Be=>Be==null?void 0:Be.operable),he.value=(Te=f.value)==null?void 0:Te.map(Be=>Be==null?void 0:Be.label);let Le=[],yl=[];if((ra=fl.safeClone(f.value))==null||ra.forEach(Be=>{var Ul;Array.isArray(Be==null?void 0:Be.value)&&((Ul=Be==null?void 0:Be.value)!=null&&Ul.find(Sa=>{var pl;return(pl=Sa==null?void 0:Sa.url)==null?void 0:pl.includes(".obj")}))&&(yl=Be==null?void 0:Be.value)}),(yl==null?void 0:yl.length)>0){const Be=(Ua=fl.safeClone(yl))==null?void 0:Ua.filter(Ul=>{var Sa;return(Sa=Ul==null?void 0:Ul.url)==null?void 0:Sa.includes(".obj")});Be==null||Be.forEach(Ul=>{var pl,Qa,gl,Oa;const Sa=(pl=yl==null?void 0:yl.filter(Pl=>{var Sr;return(Pl==null?void 0:Pl.name)===(Ul==null?void 0:Ul.name)&&((Sr=Pl==null?void 0:Pl.url)==null?void 0:Sr.includes(".mtl"))}))==null?void 0:pl.map(Pl=>Pl==null?void 0:Pl.url);Le.push({objUrl:Ul==null?void 0:Ul.url,mtlUrls:((Qa=yl==null?void 0:yl.filter(Pl=>{var Sr;return(Pl==null?void 0:Pl.name)===(Ul==null?void 0:Ul.name)&&((Sr=Pl==null?void 0:Pl.url)==null?void 0:Sr.includes(".mtl"))}))==null?void 0:Qa.length)===1?(Oa=(gl=yl==null?void 0:yl.filter(Pl=>{var Sr;return(Pl==null?void 0:Pl.name)===(Ul==null?void 0:Ul.name)&&((Sr=Pl==null?void 0:Pl.url)==null?void 0:Sr.includes(".mtl"))}))==null?void 0:gl[0])==null?void 0:Oa.url:Sa})}),S.setObjUrl(Le)}(De=fl.safeClone(f.value))==null||De.forEach(Be=>{var Ul,Sa,pl,Qa,gl,Oa,Pl,Sr,Qr,Wr,Gl,ir,on;if((Sa=(Ul=Be==null?void 0:Be.value)==null?void 0:Ul.toString())!=null&&Sa.includes(".stl")||(Qa=(pl=Be==null?void 0:Be.value)==null?void 0:pl.toString())!=null&&Qa.includes(".STL")||(Oa=(gl=Be==null?void 0:Be.value)==null?void 0:gl.toString())!=null&&Oa.includes(".obj")||(Sr=(Pl=Be==null?void 0:Be.value)==null?void 0:Pl.toString())!=null&&Sr.includes(".mtl")||(Wr=(Qr=Be==null?void 0:Be.value)==null?void 0:Qr.toString())!=null&&Wr.includes(".urdf")){let Jr={},Ur=[],en;Array.isArray(Be==null?void 0:Be.value)?en=Be==null?void 0:Be.value:en=(Gl=Be==null?void 0:Be.value)==null?void 0:Gl.split(","),en==null||en.forEach(an=>{an.includes(".mtl")?Ur.push(an):Jr.blob=Jr.blob==="undefined"?an:Jr.blob+","+an}),(Ur==null?void 0:Ur.length)>0&&(Jr.mtlBlobs=Ur),(on=(ir=Object.values(Jr))==null?void 0:ir[0])!=null&&on.includes("http:")}})}else f.value=[];let ol=re.value;if((ol==null?void 0:ol.length)>0&&(ol=ol==null?void 0:ol.map(ze=>{var ca,ga,ma,cl;let ha=(ca=ze==null?void 0:ze.key)==null?void 0:ca.split("/");return(r==null?void 0:r.compName)===(ha==null?void 0:ha[0])&&(ga=f.value)!=null&&ga.find(Le=>(Le==null?void 0:Le.prop)===(ha==null?void 0:ha[1]))&&(ze.value=(cl=(ma=f.value)==null?void 0:ma.find(Le=>(Le==null?void 0:Le.prop)===(ha==null?void 0:ha[1])))==null?void 0:cl.value),ze}),X.setTableViewContents(ol)),r!=null&&r.formRules)_.value=r==null?void 0:r.formRules;else{let ze={};(Ra=fl.safeClone(f).value)==null||Ra.forEach(ha=>{((ha==null?void 0:ha.isMain)===!0||(ha==null?void 0:ha.required)===!0)&&(ze[(ha==null?void 0:ha.prop)??(ha==null?void 0:ha.name)]=[{required:!0,message:`${(ha==null?void 0:ha.label)||(ha==null?void 0:ha.prop)||(ha==null?void 0:ha.name)}不能为空`}])}),_.value=ze}if(((el=Fe==null?void 0:Fe.contents)==null?void 0:el.length)>0){const ze=[];(ml=Fe==null?void 0:Fe.contents)==null||ml.forEach((ha,ca)=>{(ha==null?void 0:ha.label)!==""&&ze.push({label:(ha==null?void 0:ha.label)??"",id:(ha==null?void 0:ha.id)??ca,type:(ha==null?void 0:ha.type)??"",background:ha==null?void 0:ha.background})}),A.value=ze}else A.value=[];(El=f.value)!=null&&El.some(ze=>(ze==null?void 0:ze.functionName)&&(ze==null?void 0:ze.functionName)!=="")&&(f.value=await Je(f.value))},{deep:!0,immediate:!0}),e.watch(()=>B.value,K=>{$e.value=K===_a.value},{immediate:!0}),(K,J)=>{var Oe;const Fe=e.resolveComponent("svg-icon"),We=e.resolveComponent("el-switch"),Na=e.resolveComponent("el-checkbox"),da=e.resolveComponent("el-popover"),Aa=e.resolveComponent("el-checkbox-group");return e.openBlock(),e.createElementBlock("div",oh,[b.value===e.unref(ui).TEXT?(e.openBlock(),e.createBlock(Vc,{key:0,itemData:a.itemData,compName:a.compName,fields:f.value,textSize:C.value,textColor:R.value,backGround:$.value,backGroundImage:le.value,disabled:$e.value||Ae(),"onUpdate:backGroundImage":Ee,backgroundUrl:t.value},null,8,["itemData","compName","fields","textSize","textColor","backGround","backGroundImage","disabled","backgroundUrl"])):b.value===e.unref(ui).BLOCK?(e.openBlock(),e.createBlock(Pf,{key:1,items:(Oe=f.value)==null?void 0:Oe.map(He=>({label:He!=null&&He.isHideInForm?"":He==null?void 0:He.label,value:He==null?void 0:He.value,width:(He==null?void 0:He.width)??1,field:He})),textSize:C.value,textColor:R.value,backGround:$.value,backGroundImage:le.value,disabled:$e.value||Ae(),"onUpdate:backGroundImage":Ee,backgroundUrl:t.value},null,8,["items","textSize","textColor","backGround","backGroundImage","disabled","backgroundUrl"])):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"form-shadow-box":b.value===e.unref(ui).ORDINARY})},[e.createVNode(fl.ssForm,{rowContents:f.value,formRules:_.value,buttonValue:A.value,isRowFlex:!1,isEnableWrap:!0,textSize:C.value,textColor:R.value,backGround:$.value,backGroundImage:le.value,onOnButtonClick:ia,onChange:Ba,formDisabled:$e.value||Ae(),formLabelsOperable:Me.value,isButtonRow:p.value,onPreview:Pa,onBlurChange:Ta,style:e.normalizeStyle({backGroundImage:t.value!==""?`url("${t.value}")`:void 0}),onHandleColEditChange:ta,onHandleColTypeChange:je,onRouteUrl:fe,onClickTrigger:Q,"onUpdate:backGroundImage":Ee},{operateCol:e.withCtx(({renderColumns:He,formDisabled:Ie,formLabelsOperable:Ve})=>[e.createVNode(da,{title:"选择操作的标签",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:U},{reference:e.withCtx(()=>[e.createElementVNode("span",th,[e.createVNode(Fe,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})])]),default:e.withCtx(()=>[e.createElementVNode("div",sh,[J[1]||(J[1]=e.createElementVNode("div",{class:"group-title"},"表单操作",-1)),e.createVNode(We,{"model-value":Ie,"active-text":"禁用","inactive-text":"",onChange:wa,style:{"margin-right":"8px"}},null,8,["model-value"]),e.createVNode(We,{"model-value":Ve,"active-text":"编辑所有标签","inactive-text":"",onChange:Ia},null,8,["model-value"]),J[2]||(J[2]=e.createElementVNode("div",{class:"group-title"},"表单列操作",-1)),e.createVNode(Aa,{modelValue:he.value,"onUpdate:modelValue":J[0]||(J[0]=we=>he.value=we),style:{height:"100%"},ref_key:"checkboxGroupRef",ref:xe,onChange:V},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(He,we=>(e.openBlock(),e.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:we.label},[e.createVNode(Na,{value:we.label,style:{width:"100%",marginRight:0}},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(we.label),1)]),_:2},1032,["value"]),e.createVNode(da,{title:"标签操作",placement:"left",teleported:!1,trigger:"hover"},{reference:e.withCtx(()=>[e.createVNode(Fe,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:e.withCtx(()=>{var ol;return[e.createElementVNode("div",ch,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((ol=Object.keys(we))==null?void 0:ol.filter(Sl=>{var Ll;return(Ll=Ge.value)==null?void 0:Ll.find(Vl=>(Vl==null?void 0:Vl.value)===Sl)}),Sl=>{var Ll,Vl;return e.openBlock(),e.createElementBlock("div",{key:Sl},[e.createVNode(fl._sfc_main$1,{value:we==null?void 0:we[Sl],"active-text":(Vl=(Ll=Ge.value)==null?void 0:Ll.find(zl=>(zl==null?void 0:zl.value)===Sl))==null?void 0:Vl.label,inactiveText:"",onChange:zl=>ba(zl,Sl,we)},null,8,["value","active-text","onChange"])])}),128))])]}),_:2},1024),e.createElementVNode("span",uh,[e.createVNode(Fe,{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)),M.value?(e.openBlock(),e.createBlock(fl.ssFilePreview,{key:3,fileDataList:P.value,onDestroy:Ea},null,8,["fileDataList"])):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createBlock(Mr.ssDialog,{key:4,visible:c.value,onBeforeDestroy:n,style:{height:"700px",width:"1000px"}},{default:e.withCtx(()=>[e.createVNode(No.ThreeViewerHost,{files:m.value,onGetAnimationData:K.onAnimationData},null,8,["files","onGetAnimationData"])]),_:1},8,["visible"])):e.createCommentVNode("",!0)])}}},Ns=nr._export_sfc(dh,[["__scopeId","data-v-4eb80a57"]]),$o=e.ref(0),Fc=a=>{var l;return!a||(a==null?void 0:a.length)===0?[]:(l=z.cloneDeep(a))==null?void 0:l.map(r=>($o.value++,r={label:(r==null?void 0:r.label)??"",prop:(r==null?void 0:r.label)==="操作"?"operate":r==null?void 0:r.prop,width:r!=null&&r.width?parseInt(r.width):"",fixed:(r==null?void 0:r.fixed)??void 0,sortable:(r==null?void 0:r.sortable)??!1,align:(r==null?void 0:r.align)??"left",showOverflowTooltip:(r==null?void 0:r.showOverflowTooltip)??!0,isNotDrag:(r==null?void 0:r.isNotDrag)??!1,isEditCol:(r==null?void 0:r.isEditCol)??!1,isOperate:(r==null?void 0:r.isOperate)??!1,id:(r==null?void 0:r.id)??$o.value,children:Fc(r==null?void 0:r.children)},r))},ph=a=>{var n;return(n=z.cloneDeep(a))==null?void 0:n.map(r=>($o.value++,r={label:(r==null?void 0:r.label)??"",prop:(r==null?void 0:r.label)==="操作"?"operate":r==null?void 0:r.prop,width:r!=null&&r.width?parseInt(r.width):"",fixed:(r==null?void 0:r.fixed)??void 0,sortable:(r==null?void 0:r.sortable)??!1,align:(r==null?void 0:r.align)??"left",showOverflowTooltip:(r==null?void 0:r.showOverflowTooltip)??!0,isNotDrag:(r==null?void 0:r.isNotDrag)??!1,isEditCol:(r==null?void 0:r.isEditCol)??!1,isOperate:(r==null?void 0:r.isOperate)??!1,id:(r==null?void 0:r.id)??$o.value,children:Fc(r==null?void 0:r.children)},r))},Pc=(a,l)=>{var n;return a!=null&&a.find(r=>(r==null?void 0:r.id)===l)?(n=z.cloneDeep(a))==null?void 0:n.filter(i=>(i==null?void 0:i.id)!==l):(a=a==null?void 0:a.map(r=>(r.children=Pc(r==null?void 0:r.children,l),r)),a)},jc=(a,l)=>{var n;return a!=null&&a.find(r=>(r==null?void 0:r.id)===(l==null?void 0:l.id))?(n=z.cloneDeep(a))==null?void 0:n.map(i=>((i==null?void 0:i.id)===(l==null?void 0:l.id)&&(i=l),i)):(a=a==null?void 0:a.map(r=>(r.children=jc(r==null?void 0:r.children,l),r)),a)},Hc=(a,l)=>{var n;return a!=null&&a.find(r=>{var i;return(r==null?void 0:r.id)===((i=l==null?void 0:l.contents)==null?void 0:i.id)})?(n=z.cloneDeep(a))==null?void 0:n.map(i=>{var t;return(i==null?void 0:i.id)===((t=l==null?void 0:l.contents)==null?void 0:t.id)&&(i=l==null?void 0:l.contents),i}):(a=a==null?void 0:a.map(r=>(r.children=Hc(r==null?void 0:r.children,l),r)),a)},Uc=(a,l)=>{var n;return a!=null&&a.find(r=>(r==null?void 0:r.id)===(l==null?void 0:l.id))?(n=z.cloneDeep(a))==null?void 0:n.map(i=>((i==null?void 0:i.id)===(l==null?void 0:l.id)&&(i!=null&&i.children||(i.children=[]),i.children.push(l.contents)),i)):(a=a==null?void 0:a.map(r=>(r.children=Uc(r==null?void 0:r.children,l),r)),a)},yr=[{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"}],fh=[{label:"查看",value:"view"},{label:"修改",value:"fix"},{label:"删除",value:"delete"},{label:"三维算例",value:"modelExample"}],hh=[{label:"新增",value:"add"}],Un=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:hh},{key:"background",label:"按钮背景色",type:"Color"}],qn=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:fh},{key:"textColor",label:"按钮颜色",type:"Color"}],vh={class:"table-header-child"},mh={class:"table-header-child-main"},yh={class:"table-header-child-content"},gh={class:"table-header-child-content-item"},bh={class:"fix-button"},kh={key:0},xh={class:"form-content"},wh={__name:"tableNewChild",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(a,{emit:l}){const n=a,r=l,i=e.ref(!1),t=e.ref(""),f=ie.useTableComp(z.pinia),{tableIndex:c}=z.storeToRefs(f);e.ref(0);const u=e.ref(""),m=e.ref([]),g=e.ref([]),_=E=>{var S;i.value=!0;let x=[];yr==null||yr.forEach(b=>{let C=z.cloneDeep(c.value)+1;f.setTableIndex(C),x.push({label:b==null?void 0:b.label,name:b==null?void 0:b.label,type:b.type,value:E[b.key],id:c.value,contents:b==null?void 0:b.options})}),E!=null&&E.children&&((S=E==null?void 0:E.children)==null?void 0:S.length)>0&&x.push({children:E==null?void 0:E.children,isFormColHidden:!0}),u.value=E==null?void 0:E.id,m.value=x,g.value=x},p=E=>{r("fixChange",z.cloneDeep(E))},M=E=>{r("deleteChange",z.cloneDeep(E))},w=E=>{i.value=!0;let x=[];yr==null||yr.forEach(S=>{let b=z.cloneDeep(c.value)+1;f.setTableIndex(b),x.push({label:S==null?void 0:S.label,name:S==null?void 0:S.label,type:S.type,value:"",id:c.value,contents:S==null?void 0:S.options})}),t.value=E==null?void 0:E.id,m.value=x,g.value=x},G=E=>{let x=z.cloneDeep(g.value);x=x==null?void 0:x.map(S=>(S.children||(S.value=E==null?void 0:E[S.name]),S)),g.value=x},A=()=>{var x,S;m.value=g.value;let E={};if(u.value!=="")E.id=u.value,(x=m.value)==null||x.forEach(b=>{const C=yr==null?void 0:yr.find(R=>(R==null?void 0:R.label)===(b==null?void 0:b.label));C?E[C.key]=b.value:b!=null&&b.children&&b.children.length>0&&(E.children=b.children)}),i.value=!1,r("fixChange",{contents:z.cloneDeep(E),id:t.value,type:"fix"});else{let b=z.cloneDeep(c.value)+1;f.setTableIndex(b),E.id="id"+c.value,(S=m.value)==null||S.forEach(C=>{const R=yr==null?void 0:yr.find($=>($==null?void 0:$.label)===(C==null?void 0:C.label));R?E[R.key]=C.value:C!=null&&C.children&&C.children.length>0&&(E.children=C.children)}),i.value=!1,r("fixChange",{contents:z.cloneDeep(E),id:t.value,type:"add"})}u.value="",m.value=[],g.value=[]},P=()=>{i.value=!1,u.value="",t.value="",m.value=[],g.value=[]},O=E=>{z.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{r("deleteChange",E),Xa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(E,x)=>{const S=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",vh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n==null?void 0:n.tableChildContents,(b,C)=>(e.openBlock(),e.createElementBlock("div",mh,[e.createElementVNode("div",yh,[e.createElementVNode("div",gh,e.toDisplayString(b.label),1),e.createElementVNode("div",bh,[e.createVNode(S,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:R=>w(b)},null,8,["onClick"]),e.createVNode(S,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:R=>_(b)},null,8,["onClick"]),e.createVNode(S,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:R=>O(b)},null,8,["onClick"])])]),b!=null&&b.children&&b.children.length>0?(e.openBlock(),e.createElementBlock("div",kh,[e.createVNode(qc,{tableChildContents:b==null?void 0:b.children,onDeleteChange:M,onFixChange:p},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),256)),e.createVNode(Mr.ssDialog,{visible:i.value,onBeforeDestroy:P,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",xh,[(e.openBlock(),e.createBlock(fl.ssForm,{rowContents:m.value,key:m.value,isEnableWrap:!0,onChange:G},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:P,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:A},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},_h=nr._export_sfc(wh,[["__scopeId","data-v-e0fef72d"]]),Sh={class:"table-header-child"},Eh={class:"table-header-child-main"},Ch={class:"table-header-child-content"},Dh={class:"table-header-child-content-item"},Th={class:"fix-button"},Bh={key:0},Nh={class:"form-content"},Ah={class:"dialog-footer"},zh={__name:"tableChildren",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(a,{emit:l}){const n=a,r=l,i=e.ref(!1),t=e.ref(""),f=ie.useTableComp(z.pinia),{tableIndex:c}=z.storeToRefs(f),u=e.ref(""),m=e.ref([]),g=e.ref([]),_=E=>{r("fixChange",z.cloneDeep(E))},p=E=>{var S;i.value=!0;let x=[];yr==null||yr.forEach(b=>{let C=z.cloneDeep(c.value)+1;f.setTableIndex(C),x.push({label:b==null?void 0:b.label,name:b==null?void 0:b.label,type:b.type,value:E[b.key],id:c.value,contents:b==null?void 0:b.options})}),E!=null&&E.children&&((S=E==null?void 0:E.children)==null?void 0:S.length)>0&&x.push({children:E==null?void 0:E.children,isFormColHidden:!0}),u.value=E==null?void 0:E.id,m.value=x,g.value=x},M=E=>{i.value=!0;let x=[];yr==null||yr.forEach(S=>{let b=z.cloneDeep(c.value)+1;f.setTableIndex(b),x.push({label:S==null?void 0:S.label,name:S==null?void 0:S.label,type:S.type,value:"",id:c.value,contents:S==null?void 0:S.options})}),t.value=E==null?void 0:E.id,m.value=x,g.value=x},w=E=>{let x=z.cloneDeep(g.value);x=x==null?void 0:x.map(S=>(S.children||(S.value=E==null?void 0:E[S.name]),S)),g.value=x},G=()=>{var x,S;m.value=g.value;let E={};if(u.value!=="")E.id=u.value,(x=m.value)==null||x.forEach(b=>{const C=yr==null?void 0:yr.find(R=>(R==null?void 0:R.label)===(b==null?void 0:b.label));C?E[C.key]=b.value:b!=null&&b.children&&b.children.length>0&&(E.children=b.children)}),i.value=!1,r("fixChange",{contents:z.cloneDeep(E),id:t.value,type:"fix"});else{let b=z.cloneDeep(c.value)+1;f.setTableIndex(b),E.id="idChild"+c.value,(S=m.value)==null||S.forEach(C=>{const R=yr==null?void 0:yr.find($=>($==null?void 0:$.label)===(C==null?void 0:C.label));R?E[R.key]=C.value:C!=null&&C.children&&C.children.length>0&&(E.children=C.children)}),i.value=!1,r("fixChange",{contents:z.cloneDeep(E),id:t.value,type:"add"})}u.value="",m.value=[],g.value=[]},A=()=>{i.value=!1,u.value="",t.value="",m.value=[],g.value=[]},P=E=>{z.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{r("deleteChange",E),Xa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},O=E=>{r("deleteChange",E)};return(E,x)=>{const S=e.resolveComponent("svg-icon"),b=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",Sh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n==null?void 0:n.tableChildContents,(C,R)=>(e.openBlock(),e.createElementBlock("div",Eh,[e.createElementVNode("div",Ch,[e.createElementVNode("div",Dh,e.toDisplayString(C.label),1),e.createElementVNode("div",Th,[e.createVNode(S,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:$=>M(C)},null,8,["onClick"]),e.createVNode(S,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:$=>p(C)},null,8,["onClick"]),e.createVNode(S,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:$=>P(C)},null,8,["onClick"])])]),C!=null&&C.children&&C.children.length>0?(e.openBlock(),e.createElementBlock("div",Bh,[e.createVNode(_h,{tableChildContents:C==null?void 0:C.children,onDeleteChange:O,onFixChange:_},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),256)),e.createVNode(Mr.ssDialog,{visible:i.value,onBeforeDestroy:A,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Nh,[(e.openBlock(),e.createBlock(fl.ssForm,{rowContents:m.value,key:m.value,isEnableWrap:!0,onChange:w},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",Ah,[e.createVNode(b,{onClick:A,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>x[0]||(x[0]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[0]}),e.createVNode(b,{class:"ok-button button",onClick:G,id:"themeButton"},{default:e.withCtx(()=>x[1]||(x[1]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},qc=nr._export_sfc(zh,[["__scopeId","data-v-ebd68fa1"]]),Mh={class:"table-operate-content"},Ih={class:"table-operate-item"},Oh={class:"operate-title"},Lh={class:"operate-content"},Rh={class:"fix-content"},$h={class:"fix-content-label"},Vh={class:"fix-button"},Fh={key:0},Ph={class:"operate-title"},jh={class:"operate-content"},Hh={class:"fix-content"},Uh={class:"fix-content-label"},qh={class:"fix-button"},Wh={class:"operate-title"},Kh={class:"operate-content"},Gh={class:"fix-content"},Yh={class:"fix-content-label"},Jh={class:"fix-button"},Xh={class:"operate-title"},Zh={class:"operate-content"},Qh={class:"fix-content"},e6={class:"fix-content-label"},a6={class:"fix-button"},l6={class:"operate-content"},r6={style:{display:"flex","justify-content":"space-between"}},n6={class:"form-content"},i6={class:"dialog-footer"},o6={class:"form-content"},t6={class:"dialog-footer"},s6={class:"form-content"},c6={class:"dialog-footer"},u6={class:"form-content"},d6={class:"dialog-footer"},p6={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const n=a,r=l,i=e.ref([]),t=e.ref(!1),f=e.ref(!1),c=e.ref([]),u=e.ref(!1),m=e.ref([]),g=e.ref(!1),_=e.ref([]),p=e.ref(""),M=e.ref(""),w=e.ref([]),G=e.ref([]),A=e.ref([]),P=e.ref([]),O=e.ref(!1),E=e.ref([]),x=e.ref([]),S=e.ref(0),b=e.ref([]),C=e.ref([]),R=e.ref([]),$=()=>{O.value=!0;let U=[];Un==null||Un.forEach(V=>{S.value++,U.push({label:V==null?void 0:V.label,name:V==null?void 0:V.label,type:V.type,value:(V==null?void 0:V.key)==="background"?"var(--ssComponent-primary-color)":"",id:S.value,contents:V==null?void 0:V.options})}),E.value=U,x.value=U},le=()=>{var V,Q,fe;f.value=!0;let U=[];(fe=(Q=(V=ie.FormContent)==null?void 0:V.find(me=>(me==null?void 0:me.key)==="Input"))==null?void 0:Q.value)==null||fe.forEach(me=>{S.value++,U.push({label:me==null?void 0:me.label,name:(me==null?void 0:me.name)||(me==null?void 0:me.label),type:me.type,value:(me==null?void 0:me.label)==="类型"?"Input":"",id:S.value,contents:me==null?void 0:me.options})}),b.value=U,C.value=U},ee=U=>{U||(b.value=C.value)},_e=async U=>{var V,Q,fe,me,ua,ta,je,ba,Ta,Ee,Pa,Ea;if((U==null?void 0:U.类型)!==((Q=(V=C.value)==null?void 0:V.find(ia=>(ia==null?void 0:ia.label)==="类型"))==null?void 0:Q.value)){let ia=[],Ba=await((ua=(me=(fe=ie.FormContent)==null?void 0:fe.find(Ce=>(Ce==null?void 0:Ce.key)===((U==null?void 0:U.类型)===""?"Input":U==null?void 0:U.类型)))==null?void 0:me.value)==null?void 0:ua.value)?await((Ee=(Ta=(ba=ie.FormContent)==null?void 0:ba.find(Ce=>(Ce==null?void 0:Ce.key)===((U==null?void 0:U.类型)===""?"Input":U==null?void 0:U.类型)))==null?void 0:Ta.value)==null?void 0:Ee.value):(je=(ta=ie.FormContent)==null?void 0:ta.find(Ce=>(Ce==null?void 0:Ce.key)===((U==null?void 0:U.类型)===""?"Input":U==null?void 0:U.类型)))==null?void 0:je.value;if(Ba==null||Ba.forEach(Ce=>{S.value++,ia.push({label:Ce==null?void 0:Ce.label,name:(Ce==null?void 0:Ce.name)||(Ce==null?void 0:Ce.label),type:Ce.type,value:Ce!=null&&Ce.属性名?(U==null?void 0:U.prop)||(U==null?void 0:U.name)||(U==null?void 0:U.label):(U==null?void 0:U[Ce.label])??"",id:S.value,contents:Ce==null?void 0:Ce.options,prop:(Ce==null?void 0:Ce.prop)||(Ce==null?void 0:Ce.name)||(Ce==null?void 0:Ce.label)})}),U!=null&&U.菜单选项&&((Pa=U==null?void 0:U.菜单选项)==null?void 0:Pa.length)>0){const Ce=await ie.menuToContentType(U==null?void 0:U.菜单选项);ia=ia==null?void 0:ia.map(ka=>((ka==null?void 0:ka.name)==="组信息选项"&&(ka.contents=Ce),ka))}C.value=await ie.selectToBase(z.cloneDeep(ia)),b.value=await ie.selectToBase(z.cloneDeep(ia))}else{let ia=z.cloneDeep(b.value);if(ia=ia==null?void 0:ia.map(Ba=>(Ba.value=U==null?void 0:U[Ba.name],Ba)),U!=null&&U.菜单选项&&((Ea=U==null?void 0:U.菜单选项)==null?void 0:Ea.length)>0){const Ba=await ie.menuToContentType(U==null?void 0:U.菜单选项);ia=ia==null?void 0:ia.map(Ce=>((Ce==null?void 0:Ce.name)==="组信息选项"&&(Ce.contents=Ba),Ce))}ia=ie.formToOptionsContents(ia),C.value=await ie.selectToBase(z.cloneDeep(ia))}},pe=async U=>{await _e(U),b.value=C.value},H=(U,V)=>{if((V==null?void 0:V.type)=="Select"&&(U==null?void 0:U.key)==="selectRelateType"){const Q=V==null?void 0:V.optionUrl;return(Q==null?void 0:Q.selectRelateType)||V[U.key]}if((V==null?void 0:V.type)=="Select"&&(U==null?void 0:U.key)==="menuSelect"){const Q=V==null?void 0:V.optionUrl;return(Q==null?void 0:Q.menuSelect)||V[U.key]}if((V==null?void 0:V.type)=="Select"&&(U==null?void 0:U.key)==="groupSelect"){const Q=V==null?void 0:V.optionUrl;return(Q==null?void 0:Q.groupSelect)||V[U.key]}if((V==null?void 0:V.type)=="Select"&&(U==null?void 0:U.key)==="originalContent")return(V==null?void 0:V.value)||V[U.key];if((V==null?void 0:V.type)=="Select"&&(U==null?void 0:U.key)==="multiple"){const Q=V[U.key];return oc(Q)?Q:U.default}return(U==null?void 0:U.label)==="类型"&&V[U.key]===""?"Input":(U==null?void 0:U.key)==="isFormColHidden"&&!V[U.key]?!1:V[U.key]},F=async U=>{var fe,me,ua,ta,je,ba,Ta,Ee,Pa;f.value=!0;let V=[];const Q=await((ua=(me=(fe=ie.FormContent)==null?void 0:fe.find(Ea=>(Ea==null?void 0:Ea.key)===((U==null?void 0:U.type)===""?"Input":U==null?void 0:U.type)))==null?void 0:me.value)==null?void 0:ua.value)?await((Ee=(Ta=(ba=ie.FormContent)==null?void 0:ba.find(Ea=>(Ea==null?void 0:Ea.key)===((U==null?void 0:U.type)===""?"Input":U==null?void 0:U.type)))==null?void 0:Ta.value)==null?void 0:Ee.value):(je=(ta=ie.FormContent)==null?void 0:ta.find(Ea=>(Ea==null?void 0:Ea.key)===((U==null?void 0:U.type)===""?"Input":U==null?void 0:U.type)))==null?void 0:je.value;if(Q==null||Q.forEach(Ea=>{S.value++,V.push({label:Ea==null?void 0:Ea.label,name:(Ea==null?void 0:Ea.name)||(Ea==null?void 0:Ea.label),type:Ea.type,value:(Ea==null?void 0:Ea.label)==="属性名"?(U==null?void 0:U.prop)||(U==null?void 0:U.name)||(U==null?void 0:U.label):H(Ea,U),id:S.value,contents:Ea==null?void 0:Ea.options})}),U!=null&&U.menuSelect&&((Pa=U==null?void 0:U.menuSelect)==null?void 0:Pa.length)>0){const Ea=await ie.menuToContentType(U==null?void 0:U.menuSelect);V=V==null?void 0:V.map(ia=>((ia==null?void 0:ia.name)==="组信息选项"&&(ia.contents=Ea),ia))}p.value=U==null?void 0:U.id,b.value=await ie.selectToBase(ie.formToOptionsContents(V)),C.value=await ie.selectToBase(ie.formToOptionsContents(V))},X=U=>{z.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var V,Q;R.value=(V=z.cloneDeep(R.value))==null?void 0:V.filter(fe=>(fe==null?void 0:fe.id)!==(U==null?void 0:U.id)),r("change",(Q=z.cloneDeep(n.originalItemContents))==null?void 0:Q.map(fe=>((fe==null?void 0:fe.key)==="tableToForm"&&(fe.contents=R.value),fe))),Xa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},re=()=>{f.value=!1,b.value=[],p.value=""},ve=async()=>{var fe,me,ua,ta,je,ba,Ta,Ee,Pa,Ea;b.value=C.value;let U={};p.value!==""?U.id=p.value:(S.value++,U.id="id"+S.value);let V=await((ua=(me=(fe=ie.FormContent)==null?void 0:fe.find(ia=>{var Ba,Ce;return(ia==null?void 0:ia.key)===(((Ce=(Ba=b.value)==null?void 0:Ba.find(ka=>(ka==null?void 0:ka.label)==="类型"))==null?void 0:Ce.value)??"label")}))==null?void 0:me.value)==null?void 0:ua.value)??((je=(ta=ie.FormContent)==null?void 0:ta.find(ia=>{var Ba,Ce;return(ia==null?void 0:ia.key)===(((Ce=(Ba=b.value)==null?void 0:Ba.find(ka=>(ka==null?void 0:ka.label)==="类型"))==null?void 0:Ce.value)??"label")}))==null?void 0:je.value);if((ba=b.value)==null||ba.forEach(ia=>{const Ba=V==null?void 0:V.find(Ce=>(Ce==null?void 0:Ce.label)===(ia==null?void 0:ia.label));Ba&&(U[Ba.key]=ia.value)}),U.name=U.label,(Ta=R.value)!=null&&Ta.find(ia=>ia.id===U.id))R.value=(Ee=R.value)==null?void 0:Ee.map(ia=>(ia.id===U.id&&(ia=U),ia));else{let ia=z.cloneDeep(R.value);R.value||(R.value=[]),ia.push(U),R.value=ia}R.value=R.value.map(({id:ia,...Ba})=>Ba),f.value=!1,p.value="";let Q=z.cloneDeep(n.originalItemContents);(Pa=z.cloneDeep(n.originalItemContents))!=null&&Pa.find(ia=>(ia==null?void 0:ia.key)==="tableToForm")?Q=(Ea=z.cloneDeep(n.originalItemContents))==null?void 0:Ea.map(ia=>((ia==null?void 0:ia.key)==="tableToForm"&&(ia.contents=R.value),ia)):Q.push({key:"tableToForm",contents:R.value}),r("change",Q)},Re=U=>{O.value=!0;let V=[];Un==null||Un.forEach(Q=>{S.value++,V.push({label:Q==null?void 0:Q.label,name:Q==null?void 0:Q.label,type:Q.type,value:U[Q.key],id:S.value,contents:Q==null?void 0:Q.options})}),p.value=U==null?void 0:U.id,E.value=V,x.value=V};e.watch(()=>g.value,()=>{var V,Q;let U=z.cloneDeep(n.originalItemContents);(V=z.cloneDeep(n.originalItemContents))!=null&&V.find(fe=>(fe==null?void 0:fe.key)==="page")?U=(Q=z.cloneDeep(n.originalItemContents))==null?void 0:Q.map(fe=>((fe==null?void 0:fe.key)==="page"&&(fe.contents=g.value),fe)):U.push({key:"page",contents:g.value}),r("change",U)},{deep:!0});const ce=U=>{z.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var V,Q;G.value=(V=z.cloneDeep(G.value))==null?void 0:V.filter(fe=>(fe==null?void 0:fe.id)!==(U==null?void 0:U.id)),r("change",(Q=z.cloneDeep(n.originalItemContents))==null?void 0:Q.map(fe=>((fe==null?void 0:fe.key)==="extraButton"&&(fe.contents=G.value),fe))),Xa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},B=()=>{var Q,fe,me,ua,ta;E.value=x.value;let U={};if(p.value!==""?U.id=p.value:(S.value++,U.id="id"+S.value),(Q=E.value)==null||Q.forEach(je=>{const ba=Un==null?void 0:Un.find(Ta=>(Ta==null?void 0:Ta.label)===(je==null?void 0:je.label));ba?U[ba.key]=je.value:je!=null&&je.children&&je.children.length>0&&(U.children=je.children)}),(fe=G.value)!=null&&fe.find(je=>je.id===U.id))G.value=(me=G.value)==null?void 0:me.map(je=>(je.id===U.id&&(je=U),je));else{let je=z.cloneDeep(G.value)??[];je.push(U),G.value=je}O.value=!1,p.value="";let V=z.cloneDeep(n.originalItemContents);(ua=z.cloneDeep(n.originalItemContents))!=null&&ua.find(je=>(je==null?void 0:je.key)==="extraButton")?V=(ta=z.cloneDeep(n.originalItemContents))==null?void 0:ta.map(je=>((je==null?void 0:je.key)==="extraButton"&&(je.contents=G.value),je)):V.push({key:"extraButton",contents:G.value}),r("change",V)},te=U=>{let V=z.cloneDeep(x.value);V=V==null?void 0:V.map(Q=>(Q.children||(Q.value=U==null?void 0:U[Q.name]),Q)),x.value=V},q=()=>{O.value=!1,E.value=[],p.value=""},xe=U=>{u.value=!0;let V=[];qn==null||qn.forEach(Q=>{S.value++,V.push({label:Q==null?void 0:Q.label,name:Q==null?void 0:Q.label,type:Q.type,value:U[Q.key],id:S.value,contents:Q==null?void 0:Q.options})}),p.value=U==null?void 0:U.id,A.value=V,P.value=V},Me=U=>{z.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var V,Q;w.value=(V=z.cloneDeep(w.value))==null?void 0:V.filter(fe=>(fe==null?void 0:fe.id)!==(U==null?void 0:U.id)),r("change",(Q=z.cloneDeep(n.originalItemContents))==null?void 0:Q.map(fe=>((fe==null?void 0:fe.key)==="rowButton"&&(fe.contents=w.value),fe))),Xa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},$e=()=>{t.value=!0;let U=[];yr==null||yr.forEach(V=>{S.value++,U.push({label:V==null?void 0:V.label,name:V==null?void 0:V.label,type:V.type,value:"",id:S.value,contents:V==null?void 0:V.options})}),m.value=U,_.value=U},Qe=()=>{u.value=!0;let U=[];qn==null||qn.forEach(V=>{S.value++,U.push({label:V==null?void 0:V.label,name:V==null?void 0:V.label,type:V.type,value:"",id:S.value,contents:V==null?void 0:V.options})}),A.value=U,P.value=U},_a=U=>{let V=z.cloneDeep(P.value);V=V==null?void 0:V.map(Q=>(Q.children||(Q.value=U==null?void 0:U[Q.name]),Q)),P.value=V},oe=()=>{var Q,fe,me,ua,ta;A.value=P.value;let U={};if(p.value!==""?U.id=p.value:(S.value++,U.id="id"+S.value),(Q=A.value)==null||Q.forEach(je=>{const ba=qn==null?void 0:qn.find(Ta=>(Ta==null?void 0:Ta.label)===(je==null?void 0:je.label));ba?U[ba.key]=je.value:je!=null&&je.children&&je.children.length>0&&(U.children=je.children)}),(fe=w.value)!=null&&fe.find(je=>je.id===U.id))w.value=(me=w.value)==null?void 0:me.map(je=>(je.id===U.id&&(je=U),je));else{let je=z.cloneDeep(w.value);je.push(U),w.value=je}u.value=!1,p.value="";let V=z.cloneDeep(n.originalItemContents);(ua=z.cloneDeep(n.originalItemContents))!=null&&ua.find(je=>(je==null?void 0:je.key)==="rowButton")?V=(ta=z.cloneDeep(n.originalItemContents))==null?void 0:ta.map(je=>((je==null?void 0:je.key)==="rowButton"&&(je.contents=w.value),je)):V.push({key:"rowButton",contents:w.value}),r("change",V)},sa=()=>{u.value=!1,p.value="",P.value=[],A.value=[]},de=U=>{t.value=!0;let V=[];yr==null||yr.forEach(Q=>{S.value++,V.push({label:Q==null?void 0:Q.label,name:Q==null?void 0:Q.label,type:Q.type,value:"",id:S.value,contents:Q==null?void 0:Q.options})}),m.value=V,M.value=U==null?void 0:U.id,_.value=V},ea=U=>{var V;c.value=Pc(z.cloneDeep(c.value),U==null?void 0:U.id),r("change",(V=z.cloneDeep(n.originalItemContents))==null?void 0:V.map(Q=>{var fe;return(Q==null?void 0:Q.key)==="header"&&(Q.contents=(fe=c.value)!=null&&fe.some(me=>me==null?void 0:me.children)?[c.value]:c.value),Q}))},Ae=U=>{var Q,fe,me;U.type==="fix"?U.id!==""?c.value=Hc(c.value,U):c.value=jc(c.value,U==null?void 0:U.contents):c.value=Uc(c.value,U),c.value=(Q=c.value)!=null&&Q.some(ua=>ua==null?void 0:ua.children)?[c.value]:c.value,p.value="";let V=z.cloneDeep(n.originalItemContents);(fe=z.cloneDeep(n.originalItemContents))!=null&&fe.find(ua=>(ua==null?void 0:ua.key)==="header")?V=(me=z.cloneDeep(n.originalItemContents))==null?void 0:me.map(ua=>((ua==null?void 0:ua.key)==="header"&&(ua.contents=c.value),ua)):V.push({key:"header",contents:c.value}),r("change",V)},ue=U=>{var Q;t.value=!0;let V=[];yr==null||yr.forEach(fe=>{S.value++,V.push({label:fe==null?void 0:fe.label,name:fe==null?void 0:fe.label,type:fe.type,value:U[fe.key],id:S.value,contents:fe==null?void 0:fe.options})}),U!=null&&U.children&&((Q=U==null?void 0:U.children)==null?void 0:Q.length)>0&&V.push({children:U==null?void 0:U.children,isFormColHidden:!0}),p.value=U==null?void 0:U.id,M.value="",m.value=V,_.value=V},he=U=>{let V=z.cloneDeep(_.value);V=V==null?void 0:V.map(Q=>(Q.children||(Q.value=U==null?void 0:U[Q.name]),Q)),_.value=V},Ge=()=>{t.value=!1,p.value="",M.value="",_.value=[]},wa=()=>{var Q,fe,me,ua,ta,je;m.value=_.value;let U={};if(p.value!==""?U.id=p.value:(S.value++,U.id="id"+S.value),(Q=m.value)==null||Q.forEach(ba=>{const Ta=yr==null?void 0:yr.find(Ee=>(Ee==null?void 0:Ee.label)===(ba==null?void 0:ba.label));Ta?U[Ta.key]=ba.value:ba!=null&&ba.children&&ba.children.length>0&&(U.children=ba.children)}),(fe=c.value)!=null&&fe.find(ba=>ba.id===U.id))c.value=(me=c.value)==null?void 0:me.map(ba=>(ba.id===U.id&&(ba=U),ba));else{let ba=z.cloneDeep(c.value)??[];M.value===""?ba.push(U):ba=ba==null?void 0:ba.map(Ta=>(Ta.id===M.value&&(Ta.children||(Ta.children=[]),Ta.children.push(U)),Ta)),c.value=ba}c.value=(ua=c.value)!=null&&ua.some(ba=>ba==null?void 0:ba.children)?[c.value]:c.value,t.value=!1,p.value="",M.value="";let V=z.cloneDeep(n.originalItemContents);(ta=z.cloneDeep(n.originalItemContents))!=null&&ta.find(ba=>(ba==null?void 0:ba.key)==="header")?V=(je=z.cloneDeep(n.originalItemContents))==null?void 0:je.map(ba=>((ba==null?void 0:ba.key)==="header"&&(ba.contents=c.value),ba)):V.push({key:"header",contents:c.value}),r("change",V)},Ia=U=>{z.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var V,Q;c.value=(V=z.cloneDeep(c.value))==null?void 0:V.filter(fe=>(fe==null?void 0:fe.id)!==(U==null?void 0:U.id)),r("change",(Q=z.cloneDeep(n.originalItemContents))==null?void 0:Q.map(fe=>{var me;return(fe==null?void 0:fe.key)==="header"&&(fe.contents=(me=c.value)!=null&&me.some(ua=>ua==null?void 0:ua.children)?[c.value]:c.value),fe})),Xa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return e.watch(()=>n.originalItemContents,()=>{var U,V,Q,fe,me,ua,ta,je,ba,Ta,Ee,Pa,Ea,ia,Ba,Ce,ka,Je,K;if(!(!n.originalItemContents||n.originalItemContents.length===0))if(i.value=z.cloneDeep(n.originalItemContents),c.value=(V=(U=i.value)==null?void 0:U.find(J=>(J==null?void 0:J.key)==="header"))==null?void 0:V.contents,w.value=(fe=(Q=i.value)==null?void 0:Q.find(J=>(J==null?void 0:J.key)==="rowButton"))==null?void 0:fe.contents,G.value=(ua=(me=i.value)==null?void 0:me.find(J=>(J==null?void 0:J.key)==="extraButton"))==null?void 0:ua.contents,g.value=(je=(ta=i.value)==null?void 0:ta.find(J=>(J==null?void 0:J.key)==="page"))!=null&&je.contents?!!((Ta=(ba=i.value)==null?void 0:ba.find(J=>(J==null?void 0:J.key)==="page"))!=null&&Ta.contents):!1,R.value=(Pa=(Ee=i.value)==null?void 0:Ee.find(J=>(J==null?void 0:J.key)==="tableToForm"))==null?void 0:Pa.contents,c.value=(Ea=c.value)==null?void 0:Ea.map((J,Fe)=>(Array.isArray(J)?J=ph(J):J={label:(J==null?void 0:J.label)??"",prop:(J==null?void 0:J.label)==="操作"?"operate":J==null?void 0:J.prop,width:J!=null&&J.width?parseInt(J.width):"",fixed:(J==null?void 0:J.fixed)??void 0,sortable:(J==null?void 0:J.sortable)??!1,align:(J==null?void 0:J.align)??"left",showOverflowTooltip:(J==null?void 0:J.showOverflowTooltip)??!0,isNotDrag:(J==null?void 0:J.isNotDrag)??!1,isEditCol:(J==null?void 0:J.isEditCol)??!1,isOperate:(J==null?void 0:J.isOperate)??!1,id:(J==null?void 0:J.id)??Fe,formMenuSelect:(J==null?void 0:J.formMenuSelect)??void 0,groupSelect:(J==null?void 0:J.groupSelect)??void 0},J)),c.value=(ia=c.value)!=null&&ia.every(J=>Array.isArray(J))?(Ba=c.value)==null?void 0:Ba[0]:c.value,w.value=(Ce=w.value)==null?void 0:Ce.map((J,Fe)=>J={label:(J==null?void 0:J.label)??"",type:(J==null?void 0:J.type)??"",textColor:(J==null?void 0:J.textColor)??"#000000",id:(J==null?void 0:J.id)??Fe}),G.value=(ka=G.value)==null?void 0:ka.map((J,Fe)=>J={label:(J==null?void 0:J.label)??"",type:(J==null?void 0:J.type)??"",background:(J==null?void 0:J.background)??"var(--ssComponent-primary-color)",id:(J==null?void 0:J.id)??Fe}),R.value)R.value=(K=R.value)==null?void 0:K.map(J=>{S.value++;let Fe=J;return Fe.id=S.value,Fe});else{let J=[];const Fe=(Je=ie.getColumnChild(z.cloneDeep(c.value)))==null?void 0:Je.filter(We=>(We==null?void 0:We.prop)!=="operate");Fe==null||Fe.forEach(We=>{var Na;S.value++,J.push({label:We==null?void 0:We.label,name:(We==null?void 0:We.prop)||(We==null?void 0:We.label),type:We!=null&&We.groupSelect?"Select":"Input",value:"",id:S.value,contents:We==null?void 0:We.options,menuSelect:We==null?void 0:We.formMenuSelect,groupSelect:(Na=We==null?void 0:We.groupSelect)==null?void 0:Na.split(":"),selectRelateType:"关联绑定列"})}),R.value=J}},{deep:!0,immediate:!0}),(U,V)=>{const Q=e.resolveComponent("svg-icon"),fe=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",Mh,[e.createElementVNode("div",Ih,[e.createElementVNode("div",Oh,[V[2]||(V[2]=e.createElementVNode("div",null,e.toDisplayString("表头"),-1)),e.createVNode(fe,{class:"icon-content",onClick:$e,id:"themeButton"},{icon:e.withCtx(()=>[e.createVNode(Q,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[V[1]||(V[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",Lh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(me,ua)=>(e.openBlock(),e.createElementBlock("div",{key:ua},[e.createElementVNode("div",Rh,[e.createElementVNode("div",$h,e.toDisplayString(me==null?void 0:me.label),1),e.createElementVNode("div",Vh,[e.createVNode(Q,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ta=>de(me)},null,8,["onClick"]),e.createVNode(Q,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ta=>ue(me)},null,8,["onClick"]),e.createVNode(Q,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ta=>Ia(me)},null,8,["onClick"])])]),me!=null&&me.children&&me.children.length>0?(e.openBlock(),e.createElementBlock("div",Fh,[e.createVNode(qc,{tableChildContents:me==null?void 0:me.children,onDeleteChange:ea,onFixChange:Ae},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),128))]),e.createElementVNode("div",Ph,[V[4]||(V[4]=e.createElementVNode("div",null,e.toDisplayString("行内按钮"),-1)),e.createVNode(fe,{class:"icon-content",id:"themeButton",onClick:Qe},{icon:e.withCtx(()=>[e.createVNode(Q,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[V[3]||(V[3]=e.createTextVNode(" 新增 "))]),_:1,__:[3]})]),e.createElementVNode("div",jh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(me,ua)=>(e.openBlock(),e.createElementBlock("div",{key:ua},[e.createElementVNode("div",Hh,[e.createElementVNode("div",Uh,e.toDisplayString(me==null?void 0:me.label),1),e.createElementVNode("div",qh,[e.createVNode(Q,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ta=>xe(me)},null,8,["onClick"]),e.createVNode(Q,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ta=>Me(me)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",Wh,[V[6]||(V[6]=e.createElementVNode("div",null,e.toDisplayString("表外按钮"),-1)),e.createVNode(fe,{class:"icon-content",id:"themeButton",onClick:$},{icon:e.withCtx(()=>[e.createVNode(Q,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[V[5]||(V[5]=e.createTextVNode(" 新增 "))]),_:1,__:[5]})]),e.createElementVNode("div",Kh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(G.value,(me,ua)=>(e.openBlock(),e.createElementBlock("div",{key:ua},[e.createElementVNode("div",Gh,[e.createElementVNode("div",Yh,e.toDisplayString(me==null?void 0:me.label),1),e.createElementVNode("div",Jh,[e.createVNode(Q,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ta=>Re(me)},null,8,["onClick"]),e.createVNode(Q,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ta=>ce(me)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",Xh,[V[8]||(V[8]=e.createElementVNode("div",null,e.toDisplayString("表格弹框字段设置"),-1)),e.createVNode(fe,{class:"icon-content",id:"themeButton",onClick:le},{icon:e.withCtx(()=>[e.createVNode(Q,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[V[7]||(V[7]=e.createTextVNode(" 新增 "))]),_:1,__:[7]})]),e.createElementVNode("div",Zh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R.value,(me,ua)=>(e.openBlock(),e.createElementBlock("div",{key:ua},[e.createElementVNode("div",Qh,[e.createElementVNode("div",e6,e.toDisplayString(me==null?void 0:me.label),1),e.createElementVNode("div",a6,[e.createVNode(Q,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ta=>F(me)},null,8,["onClick"]),e.createVNode(Q,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ta=>X(me)},null,8,["onClick"])])])]))),128))]),V[10]||(V[10]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("分页"))],-1)),e.createElementVNode("div",l6,[e.createElementVNode("div",r6,[V[9]||(V[9]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否分页"),-1)),e.createVNode(fl._sfc_main$1,{modelValue:g.value,"onUpdate:modelValue":V[0]||(V[0]=me=>g.value=me)},null,8,["modelValue"])])])]),e.createVNode(Mr.ssDialog,{visible:t.value,onBeforeDestroy:Ge,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",n6,[(e.openBlock(),e.createBlock(fl.ssForm,{rowContents:m.value,key:m.value,isEnableWrap:!0,onChange:he},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",i6,[e.createVNode(fe,{onClick:Ge,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>V[11]||(V[11]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[11]}),e.createVNode(fe,{class:"ok-button button",onClick:wa,id:"themeButton"},{default:e.withCtx(()=>V[12]||(V[12]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible"]),e.createVNode(Mr.ssDialog,{visible:u.value,onBeforeDestroy:sa,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",o6,[(e.openBlock(),e.createBlock(fl.ssForm,{rowContents:A.value,key:A.value,isEnableWrap:!0,onChange:_a},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",t6,[e.createVNode(fe,{onClick:sa,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>V[13]||(V[13]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[13]}),e.createVNode(fe,{class:"ok-button button",onClick:oe,id:"themeButton"},{default:e.withCtx(()=>V[14]||(V[14]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible"]),e.createVNode(Mr.ssDialog,{visible:O.value,onBeforeDestroy:q,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",s6,[(e.openBlock(),e.createBlock(fl.ssForm,{rowContents:E.value,key:E.value,isEnableWrap:!0,onChange:te},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",c6,[e.createVNode(fe,{onClick:q,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>V[15]||(V[15]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[15]}),e.createVNode(fe,{class:"ok-button button",onClick:B,id:"themeButton"},{default:e.withCtx(()=>V[16]||(V[16]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[16]})])]),_:1},8,["visible"]),e.createVNode(Mr.ssDialog,{visible:f.value,onBeforeDestroy:re,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",u6,[(e.openBlock(),e.createBlock(fl.ssForm,{rowContents:b.value,key:b.value,isEnableWrap:!0,onChange:_e,onChangeVisible:ee,onBlurChange:pe},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",d6,[e.createVNode(fe,{onClick:re,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>V[17]||(V[17]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[17]}),e.createVNode(fe,{class:"ok-button button",onClick:ve,id:"themeButton"},{default:e.withCtx(()=>V[18]||(V[18]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[18]})])]),_:1},8,["visible"])])}}},f6=nr._export_sfc(p6,[["__scopeId","data-v-7a6b87b5"]]),h6=z.useModelComp(z.pinia),{pageMapState:v6}=z.storeToRefs(h6),m6=z.useMenuState(z.pinia),{activeMenuPath:y6}=z.storeToRefs(m6),g6=e.ref(24),b6=e.ref(6),k6=e.ref(10),x6=e.ref(70),w6=e.ref(.18),_6=e.ref(45),S6=(a,l,n,r)=>{var i,t,f,c,u,m,g,_,p,M,w,G,A,P,O,E;return{x:((t=(i=a==null?void 0:a.value)==null?void 0:i.tableData)==null?void 0:t.x)||l%2*12,y:((c=(f=a==null?void 0:a.value)==null?void 0:f.tableData)==null?void 0:c.y)||l,w:((m=(u=a==null?void 0:a.value)==null?void 0:u.tableData)==null?void 0:m.w)||g6.value,h:((_=(g=a==null?void 0:a.value)==null?void 0:g.tableData)==null?void 0:_.h)||n,minW:((M=(p=a==null?void 0:a.value)==null?void 0:p.tableData)==null?void 0:M.minW)||b6.value,minH:((G=(w=a==null?void 0:a.value)==null?void 0:w.tableData)==null?void 0:G.minH)||w6.value,maxH:((P=(A=a==null?void 0:a.value)==null?void 0:A.tableData)==null?void 0:P.maxH)||_6.value,i:((E=(O=a==null?void 0:a.value)==null?void 0:O.tableData)==null?void 0:E.i)||l,id:(a==null?void 0:a.id)||l+"",component:r}},E6=(a,l)=>{var r,i,t,f,c,u,m,g;let n=1;if(a!=null&&a.compData&&Array.isArray(a==null?void 0:a.compData))if(((r=a==null?void 0:a.comp)==null?void 0:r.toUpperCase())==="TABLE"){if(((f=(t=(i=a==null?void 0:a.compData)==null?void 0:i.find(p=>(p==null?void 0:p.key)==="tableContents"))==null?void 0:t.contents)==null?void 0:f.length)===0)return 2}else((c=a==null?void 0:a.comp)==null?void 0:c.toUpperCase())==="FORM"&&(n=((g=(m=(u=a==null?void 0:a.compData)==null?void 0:u.find(p=>(p==null?void 0:p.key)==="formContent"))==null?void 0:m.contents)==null?void 0:g.length)/5);return n*2},Wc=(a,l,n)=>{var f,c;const r=(c=(f=v6.value)==null?void 0:f[y6.value])==null?void 0:c.filter(u=>{var m;return((m=u==null?void 0:u.key)==null?void 0:m.type)==="gridLayout"}),i=r==null?void 0:r.find(u=>{var m,g,_;return((_=(g=(m=u==null?void 0:u.value)==null?void 0:m.tableData)==null?void 0:g.component)==null?void 0:_.id)===a.id}),t=E6(a);return a!=null&&a.children&&(a==null?void 0:a.children.length)>0&&(a.children=a.children.map((u,m)=>Wc(u,m))),{...S6(i,l,t,a)}},C6=(a,l)=>{if((a==null?void 0:a.length)===0)return[];const n=z.cloneDeep(a);return Array.isArray(a)?n==null?void 0:n.map((r,i)=>Wc(r,i)):[]},D6=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}]}]}}),T6=(a,l)=>a==null?void 0:a.map(n=>{for(const r in l)if(r===(n==null?void 0:n.prop))return{...n,value:l[r]};return n}),B6=e.defineComponent({__name:"index",props:{compType:String,comp:Object,target:{type:String,default:"alone"},optionItems:Array},emits:["change"],setup(a,{emit:l}){const n=a,r=l,i=e.ref([]);e.watch(()=>n.compType,c=>{var g;const u=D6(n==null?void 0:n.optionItems),m=c?(g=u[c==null?void 0:c.toUpperCase()])==null?void 0:g[n==null?void 0:n.target]:[];i.value=m==null?void 0:m.map(_=>{for(const[p,M]of Object.entries((n==null?void 0:n.comp)||{}))if((_==null?void 0:_.prop)===p)return{..._,value:M};return _})},{immediate:!0});const t=c=>fl.getComponent(c),f=c=>{var u,m;(c==null?void 0:c.prop)==="layout"&&(c==null?void 0:c.value)==="horizontal"?i.value=(u=i.value)==null?void 0:u.map(g=>{var _;return(g==null?void 0:g.prop)==="isStepLayout"?{...g,options:(_=g==null?void 0:g.options)==null?void 0:_.map(p=>({...p,disabled:!0}))}:(g==null?void 0:g.prop)==="isGridLayout"?{...g,disabled:!0}:g}):i.value=(m=i.value)==null?void 0:m.map(g=>{var _;return(g==null?void 0:g.prop)==="isStepLayout"?{...g,options:(_=g==null?void 0:g.options)==null?void 0:_.map(p=>({...p,disabled:!1}))}:(g==null?void 0:g.prop)==="isGridLayout"?{...g,disabled:!1}:g}),r("change",{target:n==null?void 0:n.target,styleConfigs:i.value,prop:c==null?void 0:c.prop})};return(c,u)=>{const m=e.resolveComponent("el-col"),g=e.resolveComponent("el-row");return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,_=>(e.openBlock(),e.createBlock(g,{class:"style-row",key:_==null?void 0:_.prop},{default:e.withCtx(()=>[e.createVNode(m,{span:6,class:"style-row-title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_==null?void 0:_.label)+":",1)]),_:2},1024),e.createVNode(m,{span:18,style:{display:"flex"}},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t(_.type)),{modelValue:_.value,"onUpdate:modelValue":p=>_.value=p,content:_==null?void 0:_.options,optionUrl:_==null?void 0:_.optionUrl,disabled:_==null?void 0:_.disabled,activeText:_==null?void 0:_.activeText,inactiveText:_==null?void 0:_.inactiveText,onChange:p=>f(_)},null,40,["modelValue","onUpdate:modelValue","content","optionUrl","disabled","activeText","inactiveText","onChange"]))]),_:2},1024)]),_:2},1024))),128)}}}),N6=nr._export_sfc(B6,[["__scopeId","data-v-da01b651"]]),A6=e.defineComponent({__name:"index",props:{compType:String,activeTabName:String,comp:Object,extendItem:{type:Object,default:{}},target:{type:String,default:"alone"},relatedData:Array},emits:["change","onButtonClick"],setup(a,{emit:l}){const n=a,r=l,i=[{required:!0,message:"输入不能为空",trigger:"blur"}],t=e.ref([]),f=P=>P==null?void 0:P.reduce((O,E)=>(O[E==null?void 0:E.prop]=E==null?void 0:E.rule,O),{}),c=e.computed(()=>({formRules:f(t.value),buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"保存",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]})),u=e.ref([]),m=e.ref(""),g=(P,O,E)=>{var b;let x=[];(n==null?void 0:n.activeTabName)==="任务配置"?(x=[{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:P},{label:"按钮名称",value:"按钮名称",children:O}]},{label:"执行任务",prop:"执行任务",key:"执行任务",type:"cascader",value:[],width:1,isFormColHidden:!1,config:{checkOnClickNode:!0,showPrefix:!1},contents:[{label:"进度设置",value:"进度设置",children:[{label:"计时",value:"计时",children:[{label:"倒计时",value:"倒计时"},{label:"进行时",value:"进行时"}]},{label:"进度条",value:"进度条"}]},{label:"统计",value:"统计",children:[{label:"统计规则",value:"统计规则",children:[{label:"求和",value:"求和"},{label:"自定义",value:"自定义"}]}]}]},{label:"执行动作",prop:"执行动作",key:"执行动作",type:"select",value:[],width:1,isFormColHidden:!1,contents:[{label:"点击时",value:"点击时"},{label:"页面加载时",value:"页面加载时"}]},{label:"执行交互",prop:"执行交互",key:"执行交互",type:"cascader",value:[],width:1,isFormColHidden:!1,config:{checkOnClickNode:!0,showPrefix:!1},contents:[{label:"界面显示",value:"界面显示",children:[{label:"主页",value:"主页"},{label:"详情页",value:"详情页"}]},{label:"弹窗提示",value:"弹窗提示"},{label:"后台提交",value:"后台提交"}]},{label:"任务状态",prop:"任务状态",key:"任务状态",type:"radio",value:"启动",width:1,isFormColHidden:!1,contents:[{label:"启动",value:"启动"},{label:"暂停",value:"暂停"}]}],t.value=[{prop:"任务名称",rule:i},{prop:"任务关键词",rule:i},{prop:"执行任务",rule:i},{prop:"执行动作",rule:i},{prop:"执行交互",rule:i}]):(n==null?void 0:n.activeTabName)==="任务关联"&&(x=[{prop:"关联名称",label:"关联名称",key:"关联名称",type:"input",value:"",isTableColHidden:!1,isFormColHidden:!1},{label:"关联形式",prop:"关联形式",key:"关联形式",type:"select",value:"流程式",width:1,isFormColHidden:!1,contents:[{label:"流程式",value:"流程式"}]},{label:"关联任务集合",prop:"关联任务集合",key:"关联任务集合",type:"tag",value:[],width:1,isFormColHidden:!1,contents:(b=n==null?void 0:n.relatedData)==null?void 0:b.map(C=>({label:C==null?void 0:C.任务名称,value:C==null?void 0:C.任务名称}))},{prop:"关联状态",label:"关联状态",key:"关联状态",type:"radio",value:"启动",isTableColHidden:!1,isFormColHidden:!1,contents:[{label:"启动",value:"启动"},{label:"暂停",value:"暂停"}]}],t.value=[{prop:"关联名称",rule:i},{prop:"关联状态",rule:i},{prop:"关联形式",rule:i},{prop:"关联任务集合",rule:i}]);let S;return E&&(E==null?void 0:E.length)>0?S=[...x,..._(P,O,E)]:S=x,S},_=(P,O,E)=>{const x=[{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 E?x==null?void 0:x.filter(S=>E==null?void 0:E.includes(S==null?void 0:S.prop)):x},p=(P,O)=>{var C,R,$,le,ee,_e,pe,H,F;const E=((ee=(le=($=(R=(C=n==null?void 0:n.comp)==null?void 0:C.compData)==null?void 0:R.find(X=>(X==null?void 0:X.key)==="header"))==null?void 0:$.contents)==null?void 0:le.filter(X=>(X==null?void 0:X.label)!=="操作"))==null?void 0:ee.map(X=>({value:X==null?void 0:X.prop,label:X.label})))||[],x=/button/i,S=((F=(H=(pe=(_e=n==null?void 0:n.comp)==null?void 0:_e.compData)==null?void 0:pe.filter(X=>x.test(X==null?void 0:X.key)))==null?void 0:H.flatMap(X=>X==null?void 0:X.contents))==null?void 0:F.map(X=>({value:X==null?void 0:X.label,label:X.label})))||[],b=g(E,S,P);u.value=O?T6(b,O):b,P&&(P==null?void 0:P.length)>0&&t.value.push(...P==null?void 0:P.map(X=>({prop:X,rule:i})))};e.onMounted(()=>{p(null,n==null?void 0:n.extendItem)});const M=P=>{const O=P==null?void 0:P[m.value];if(m.value==="执行任务"){if(!(O!=null&&O.join("/")))return;const E=O==null?void 0:O.join("/");p(E==="统计/统计规则/自定义"?["统计算法源","统计是否获取错误集"]:E==="进度设置/进度条"?["进度关键词"]:null,P)}},w=P=>{r("change",{target:n==null?void 0:n.target,extendConfigs:P})},G=(P,O)=>{m.value=O==null?void 0:O.changeProp,M(P)},A=P=>{r("onButtonClick",P)};return(P,O)=>(e.openBlock(),e.createBlock(fl.ssForm,{rowContents:u.value,key:u.value,isStartJustify:!1,isEnableWrap:!1,formRules:c.value.formRules,buttonValue:c.value.buttonValue,onChange:w,onBlurChange:G,onOnButtonClick:A},null,8,["rowContents","formRules","buttonValue"]))}}),z6=nr._export_sfc(A6,[["__scopeId","data-v-4b39853f"]]),M6={};function I6(a,l){return null}const O6=nr._export_sfc(M6,[["render",I6]]),L6={class:"form-operate-content"},R6={class:"form-operate-item"},$6={class:"operate-title"},V6={class:"operate-content"},F6={class:"fix-content"},P6={class:"fix-button"},j6={class:"operate-title"},H6={class:"operate-content"},U6={class:"fix-content"},q6={class:"fix-button"},W6={style:{display:"flex","justify-content":"space-between"}},K6={class:"form-content"},G6={class:"dialog-footer"},Y6={class:"form-content"},J6={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const n=a,r=l,i=e.ref(!1),t=e.ref([]),f=e.ref([]),c=e.ref(!1),u=e.ref([]),m=e.ref([]),g=e.ref(""),_=e.ref(!1),p=e.ref(0),M=e.ref([]),w=e.ref([]),G=(H,F)=>{if((F==null?void 0:F.type)=="Select"&&(H==null?void 0:H.key)==="selectRelateType"){const X=F==null?void 0:F.optionUrl;return(X==null?void 0:X.selectRelateType)||F[H.key]}if((F==null?void 0:F.type)=="Select"&&(H==null?void 0:H.key)==="menuSelect"){const X=F==null?void 0:F.optionUrl;return(X==null?void 0:X.menuSelect)||F[H.key]}if((F==null?void 0:F.type)=="Select"&&(H==null?void 0:H.key)==="groupSelect"){const X=F==null?void 0:F.optionUrl;return(X==null?void 0:X.groupSelect)||F[H.key]}if((F==null?void 0:F.type)=="Select"&&(H==null?void 0:H.key)==="originalContent")return(F==null?void 0:F.value)||F[H.key];if((F==null?void 0:F.type)=="Select"&&(H==null?void 0:H.key)==="multiple"){const X=F[H.key];return oc(X)?X:H.default}return(H==null?void 0:H.label)==="类型"&&F[H.key]===""?"Input":(H==null?void 0:H.key)==="isFormColHidden"&&!F[H.key]?!1:F[H.key]},A=async H=>{var re,ve,Re,ce,B,te;i.value=!0;let F=[];const X=await((Re=(ve=(re=ie.FormContent)==null?void 0:re.find(q=>(q==null?void 0:q.key)===((H==null?void 0:H.type)===""?"Input":H==null?void 0:H.type)))==null?void 0:ve.value)==null?void 0:Re.value)??((B=(ce=ie.FormContent)==null?void 0:ce.find(q=>(q==null?void 0:q.key)===((H==null?void 0:H.type)===""?"Input":H==null?void 0:H.type)))==null?void 0:B.value);if(X==null||X.forEach(q=>{p.value++,F.push({label:q==null?void 0:q.label,name:q==null?void 0:q.label,type:q.type,prop:q==null?void 0:q.prop,value:G(q,H),id:p.value,contents:q==null?void 0:q.options,width:(H==null?void 0:H.width)??1})}),H!=null&&H.menuSelect&&((te=H==null?void 0:H.menuSelect)==null?void 0:te.length)>0){const q=await ie.menuToContentType(H==null?void 0:H.menuSelect);F=F==null?void 0:F.map(xe=>((xe==null?void 0:xe.name)==="组信息选项"&&(xe.contents=q),xe))}g.value=H==null?void 0:H.id,t.value=await ie.selectToBase(ie.formToOptionsContents(F)),f.value=await ie.selectToBase(ie.formToOptionsContents(F))},P=H=>{var X;c.value=!0;let F=[];(X=ie.FormButton)==null||X.forEach(re=>{p.value++,F.push({label:re==null?void 0:re.label,name:re==null?void 0:re.label,type:re.type,value:(re==null?void 0:re.label)==="类型"&&H[re.key]===""?"normal":H[re.key],id:p.value,contents:re==null?void 0:re.options})}),M.value=F,w.value=F,g.value=H==null?void 0:H.id};e.watch(()=>_.value,()=>{var F,X;let H=z.cloneDeep(n.originalItemContents);(F=z.cloneDeep(n.originalItemContents))!=null&&F.find(re=>(re==null?void 0:re.key)==="enableWrap")?H=(X=z.cloneDeep(n.originalItemContents))==null?void 0:X.map(re=>((re==null?void 0:re.key)==="enableWrap"&&(re.contents=!_.value),re)):H.push({key:"enableWrap",contents:!_.value}),r("change",H)},{deep:!0});const O=()=>{var X,re,ve,Re,ce;M.value=w.value;let H={};if(g.value!==""?H.id=g.value:(p.value++,H.id="id"+p.value),(X=M.value)==null||X.forEach(B=>{var q;const te=(q=ie.FormButton)==null?void 0:q.find(xe=>(xe==null?void 0:xe.label)===(B==null?void 0:B.label));te&&(H[te.key]=B.value)}),(re=u.value)!=null&&re.find(B=>B.id===H.id))u.value=(ve=u.value)==null?void 0:ve.map(B=>(B.id===H.id&&(B=H),B));else{let B=z.cloneDeep(u.value);u.value||(u.value=[]),B.push(H),u.value=B}c.value=!1,g.value="";let F=z.cloneDeep(n.originalItemContents);(Re=z.cloneDeep(n.originalItemContents))!=null&&Re.find(B=>(B==null?void 0:B.key)==="formButton")?F=(ce=z.cloneDeep(n.originalItemContents))==null?void 0:ce.map(B=>((B==null?void 0:B.key)==="formButton"&&(B.contents=u.value),B)):F.push({key:"formButton",contents:u.value}),r("change",F)},E=H=>{z.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var F,X;m.value=(F=z.cloneDeep(m.value))==null?void 0:F.filter(re=>(re==null?void 0:re.id)!==(H==null?void 0:H.id)),r("change",(X=z.cloneDeep(n.originalItemContents))==null?void 0:X.map(re=>((re==null?void 0:re.key)==="formContent"&&(re.contents=m.value),re))),Xa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},x=H=>{z.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var F,X;u.value=(F=z.cloneDeep(u.value))==null?void 0:F.filter(re=>(re==null?void 0:re.id)!==(H==null?void 0:H.id)),r("change",(X=z.cloneDeep(n.originalItemContents))==null?void 0:X.map(re=>((re==null?void 0:re.key)==="formButton"&&(re.contents=u.value),re))),Xa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},S=()=>{var F;c.value=!0;let H=[];(F=ie.FormButton)==null||F.forEach(X=>{p.value++,H.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:p.value,contents:X==null?void 0:X.options})}),M.value=H,w.value=H},b=()=>{var F,X,re;i.value=!0;let H=[];(re=(X=(F=ie.FormContent)==null?void 0:F.find(ve=>(ve==null?void 0:ve.key)==="Input"))==null?void 0:X.value)==null||re.forEach(ve=>{p.value++,H.push({label:ve==null?void 0:ve.label,name:ve==null?void 0:ve.label,type:ve.type,value:(ve==null?void 0:ve.label)==="类型"?"Input":"",id:p.value,contents:ve==null?void 0:ve.options})}),t.value=H,f.value=H},C=H=>{let F=z.cloneDeep(w.value);F=F==null?void 0:F.map(X=>(X.value=H==null?void 0:H[X.name],X)),w.value=F},R=H=>{const F=H.find(ve=>(ve==null?void 0:ve.name)==="类型");if((F==null?void 0:F.value)!="Select")return;const X=H.find(ve=>(ve==null?void 0:ve.name)==="多选"),re=H.find(ve=>(ve==null?void 0:ve.name)==="初始值");X!=null&&X.value&&Ao.isString(re.value)&&(re.value=[re.value]),!(X!=null&&X.value)&&!Ao.isString(re.value)&&(re.value="")},$=async H=>{var F,X,re,ve,Re,ce,B,te,q,xe,Me,$e;if((H==null?void 0:H.类型)!==((X=(F=f.value)==null?void 0:F.find(Qe=>(Qe==null?void 0:Qe.label)==="类型"))==null?void 0:X.value)){let Qe=[];const _a=await((Re=(ve=(re=ie.FormContent)==null?void 0:re.find(oe=>(oe==null?void 0:oe.key)===((H==null?void 0:H.类型)===""?"Input":H==null?void 0:H.类型)))==null?void 0:ve.value)==null?void 0:Re.value)?await((xe=(q=(te=ie.FormContent)==null?void 0:te.find(oe=>(oe==null?void 0:oe.key)===((H==null?void 0:H.类型)===""?"Input":H==null?void 0:H.类型)))==null?void 0:q.value)==null?void 0:xe.value):(B=(ce=ie.FormContent)==null?void 0:ce.find(oe=>(oe==null?void 0:oe.key)===((H==null?void 0:H.类型)===""?"Input":H==null?void 0:H.类型)))==null?void 0:B.value;if(_a==null||_a.forEach(oe=>{var de,ea;p.value++;const sa=Uu(oe==null?void 0:oe.default)?(H==null?void 0:H[oe.label])??oe.value??"":oe==null?void 0:oe.default;Qe.push({label:oe==null?void 0:oe.label,name:oe==null?void 0:oe.label,type:oe.type,value:sa,prop:oe==null?void 0:oe.prop,id:p.value,contents:oe==null?void 0:oe.options,width:((ea=(de=f.value)==null?void 0:de[0])==null?void 0:ea.width)??1})}),H!=null&&H.菜单选项&&((Me=H==null?void 0:H.菜单选项)==null?void 0:Me.length)>0){const oe=await ie.menuToContentType(H==null?void 0:H.菜单选项);Qe=Qe==null?void 0:Qe.map(sa=>((sa==null?void 0:sa.name)==="组信息选项"&&(sa.contents=oe),sa))}R(Qe),f.value=await ie.selectToBase(z.cloneDeep(Qe)),t.value=await ie.selectToBase(z.cloneDeep(Qe))}else{let Qe=z.cloneDeep(f.value);if(Qe=Qe==null?void 0:Qe.map(_a=>(_a.value=H==null?void 0:H[_a.name],_a)),H!=null&&H.菜单选项&&(($e=H==null?void 0:H.菜单选项)==null?void 0:$e.length)>0){const _a=await ie.menuToContentType(H==null?void 0:H.菜单选项);Qe=Qe==null?void 0:Qe.map(oe=>((oe==null?void 0:oe.name)==="组信息选项"&&(oe.contents=_a),oe))}Qe=ie.formToOptionsContents(Qe),R(Qe),f.value=await ie.selectToBase(z.cloneDeep(Qe))}},le=H=>{H||(t.value=f.value)},ee=async H=>{await $(H),t.value=f.value},_e=Hl.debounce(async()=>{var re,ve,Re,ce,B,te,q,xe,Me,$e,Qe,_a;t.value=f.value;let H={};H.width=((ve=(re=t.value)==null?void 0:re[0])==null?void 0:ve.width)??1,g.value!==""?H.id=g.value:(p.value++,H.id="id"+p.value);let F=await((B=(ce=(Re=ie.FormContent)==null?void 0:Re.find(oe=>{var sa,de;return(oe==null?void 0:oe.key)===(((de=(sa=t.value)==null?void 0:sa.find(ea=>(ea==null?void 0:ea.label)==="类型"))==null?void 0:de.value)??"label")}))==null?void 0:ce.value)==null?void 0:B.value)??((q=(te=ie.FormContent)==null?void 0:te.find(oe=>{var sa,de;return(oe==null?void 0:oe.key)===(((de=(sa=t.value)==null?void 0:sa.find(ea=>(ea==null?void 0:ea.label)==="类型"))==null?void 0:de.value)??"label")}))==null?void 0:q.value);if((xe=t.value)==null||xe.forEach(oe=>{const sa=F==null?void 0:F.find(de=>(de==null?void 0:de.label)===(oe==null?void 0:oe.label));sa&&(H[sa.key]=oe.value)}),H.width=H.width?H.width:1,H.key=H==null?void 0:H.label,H.isFormColHidden=H==null?void 0:H.isFormColHidden,(Me=m.value)!=null&&Me.find(oe=>oe.id===H.id))m.value=($e=m.value)==null?void 0:$e.map(oe=>(oe.id===H.id&&(oe=H),oe));else{let oe=z.cloneDeep(m.value);oe.push(H),m.value=oe}m.value=m.value.map(({id:oe,...sa})=>sa),i.value=!1,g.value="";let X=z.cloneDeep(n.originalItemContents);(Qe=z.cloneDeep(n.originalItemContents))!=null&&Qe.find(oe=>(oe==null?void 0:oe.key)==="formContent")?X=(_a=z.cloneDeep(n.originalItemContents))==null?void 0:_a.map(oe=>((oe==null?void 0:oe.key)==="formContent"&&(oe.contents=m.value),oe)):X.push({key:"formContent",contents:m.value}),r("change",X)},300),pe=()=>{i.value=!1,c.value=!1,g.value="",f.value=[],w.value=[]};return e.watch(()=>n.originalItemContents,()=>{var F,X,re,ve,Re,ce;if(!n.originalItemContents||n.originalItemContents.length===0)return;const H=z.cloneDeep(n.originalItemContents);m.value=((F=H==null?void 0:H.find(B=>(B==null?void 0:B.key)==="formContent"))==null?void 0:F.contents)??[],u.value=((X=H==null?void 0:H.find(B=>(B==null?void 0:B.key)==="formButton"))==null?void 0:X.contents)??[],_.value=(re=H==null?void 0:H.find(B=>(B==null?void 0:B.key)==="enableWrap"))!=null&&re.contents?!((ve=H==null?void 0:H.find(B=>(B==null?void 0:B.key)==="enableWrap"))!=null&&ve.contents):!0,m.value=(Re=z.cloneDeep(m.value))==null?void 0:Re.map((B,te)=>{var xe;let q=B;return q.id=(B==null?void 0:B.id)??te,B!=null&&B.label||(B.label=(B==null?void 0:B.key)??(B==null?void 0:B.label)??""),B!=null&&B.type||(B.type=(B==null?void 0:B.type)??""),B.contents=((xe=B==null?void 0:B.options)==null?void 0:xe.length)===0?(B==null?void 0:B.contents)??"":B==null?void 0:B.options,q}),m.value=ie.formToOptionsContents(m.value),u.value=(ce=u.value)==null?void 0:ce.map((B,te)=>B={label:(B==null?void 0:B.label)??"",type:(B==null?void 0:B.type)??"",background:(B==null?void 0:B.background)??"var(--ssComponent-primary-color)",id:te})},{deep:!0,immediate:!0}),(H,F)=>{const X=e.resolveComponent("svg-icon"),re=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",L6,[e.createElementVNode("div",R6,[e.createElementVNode("div",$6,[F[2]||(F[2]=e.createElementVNode("div",null,e.toDisplayString("表单内容"),-1)),e.createVNode(re,{class:"icon-content",id:"themeButton",onClick:b},{icon:e.withCtx(()=>[e.createVNode(X,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[F[1]||(F[1]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))]),_:1,__:[1]})]),e.createElementVNode("div",V6,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(ve,Re)=>(e.openBlock(),e.createElementBlock("div",{key:Re},[e.createElementVNode("div",F6,[e.createElementVNode("div",null,e.toDisplayString(ve.label),1),e.createElementVNode("div",P6,[e.createVNode(X,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ce=>A(ve)},null,8,["onClick"]),e.createVNode(X,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ce=>E(ve)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",j6,[F[4]||(F[4]=e.createElementVNode("div",null,e.toDisplayString("表单按钮"),-1)),e.createVNode(re,{class:"icon-content",id:"themeButton",onClick:S},{icon:e.withCtx(()=>[e.createVNode(X,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[F[3]||(F[3]=e.createTextVNode(" 新增 "))]),_:1,__:[3]})]),e.createElementVNode("div",H6,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(ve,Re)=>(e.openBlock(),e.createElementBlock("div",{key:Re},[e.createElementVNode("div",U6,[e.createElementVNode("div",null,e.toDisplayString(ve.label),1),e.createElementVNode("div",q6,[e.createVNode(X,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ce=>P(ve)},null,8,["onClick"]),e.createVNode(X,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ce=>x(ve)},null,8,["onClick"])])])]))),128))]),F[6]||(F[6]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("表单布局"))],-1)),e.createElementVNode("div",W6,[F[5]||(F[5]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否自动撑宽"),-1)),e.createVNode(fl._sfc_main$1,{modelValue:_.value,"onUpdate:modelValue":F[0]||(F[0]=ve=>_.value=ve)},null,8,["modelValue"])])]),e.createVNode(Mr.ssDialog,{visible:i.value,onBeforeDestroy:pe,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",K6,[(e.openBlock(),e.createBlock(fl.ssForm,{rowContents:t.value,key:t.value,isEnableWrap:!0,onChange:$,onChangeVisible:le,onBlurChange:ee},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",G6,[e.createVNode(re,{onClick:pe,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>F[7]||(F[7]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[7]}),e.createVNode(re,{class:"ok-button button",onClick:e.unref(_e),id:"themeButton"},{default:e.withCtx(()=>F[8]||(F[8]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[8]},8,["onClick"])])]),_:1},8,["visible"]),e.createVNode(Mr.ssDialog,{visible:c.value,onBeforeDestroy:pe,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Y6,[(e.openBlock(),e.createBlock(fl.ssForm,{rowContents:M.value,key:M.value,isEnableWrap:!0,onChange:C},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:pe,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:O},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},As=nr._export_sfc(J6,[["__scopeId","data-v-20850524"]]),X6={class:"step-module content"},Z6={class:"module-data"},Q6={class:"step-module layout"},e4={class:"form-content"},a4=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const n=a,r=l,i=e.ref([{label:"方向:",prop:"direction",type:"RADIO",contents:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}],value:"horizontal"},{label:"是否居中:",prop:"alignCenter",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0},{label:"应用简洁风格",prop:"simple",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1}]),t=e.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"标题",prop:"title",type:"input",value:""},{label:"描述",prop:"description",type:"input",value:""}]),f=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),c=e.reactive({visible:!1,width:"40%",title:"步骤条"}),u=e.ref("create"),m=e.ref({}),g=e.ref([]),_=A=>{var P;m.value=A,r("change",(P=w())==null?void 0:P.compData)},p=(A,P)=>{var O,E;switch(A){case"create":(O=t.value)==null||O.forEach(x=>{x.value=""}),u.value="create",c.visible=!0;break;case"update":(E=t.value)==null||E.forEach(x=>{x.value=P[x==null?void 0:x.prop]}),u.value="update",c.visible=!0;break;case"delete":g.value.splice(P,1),u.value="delete";break}},M=A=>{var P,O,E;if((A==null?void 0:A.buttonName)==="确认"){const x=z.cloneDeep(A==null?void 0:A.content);switch(Object.keys(x).forEach(S=>{x[S]===""&&delete x[S]}),u.value){case"create":g.value.push({...x,index:((P=g.value)==null?void 0:P.length)+1});break;case"update":g.value=(O=g.value)==null?void 0:O.map(S=>S.index===(x==null?void 0:x.index)?{...S,title:x==null?void 0:x.title,description:x==null?void 0:x.description}:S);break}r("change",(E=w())==null?void 0:E.compData),c.visible=!1}else c.visible=!1},w=()=>({comp:"Step",compData:[{key:"stepList",contents:g.value},{key:"stepConfig",contents:m.value}]}),G=()=>{c.visible=!1};return e.watch(()=>n==null?void 0:n.itemContents,A=>{var P,O;A&&(m.value=((P=A==null?void 0:A.find(E=>E.key==="stepConfig"))==null?void 0:P.contents)??{},g.value=((O=A==null?void 0:A.find(E=>E.key==="stepList"))==null?void 0:O.contents)??[])},{immediate:!0}),(A,P)=>{const O=e.resolveComponent("svg-icon"),E=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",X6,[P[2]||(P[2]=e.createElementVNode("h4",{class:"module-title"},"内容",-1)),e.createVNode(E,{class:"module-icon",id:"themeButton",onClick:P[0]||(P[0]=x=>p("create"))},{icon:e.withCtx(()=>[e.createVNode(O,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[P[1]||(P[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",Z6,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(x,S)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:S},[e.createElementVNode("span",null,e.toDisplayString(x==null?void 0:x.title),1),e.createElementVNode("div",null,[e.createVNode(E,{type:"primary",size:"small",onClick:b=>p("update",{...x,index:S+1})},{default:e.withCtx(()=>P[3]||(P[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(E,{type:"danger",size:"small",onClick:b=>p("delete",S)},{default:e.withCtx(()=>P[4]||(P[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",Q6,[P[5]||(P[5]=e.createElementVNode("div",{class:"module-title"},"布局",-1)),e.createVNode(fl.ssForm,{rowContents:i.value,onChange:_},null,8,["rowContents"])])]),e.createVNode(Mr.ssDialog,{visible:c.visible,title:c.title,onBeforeDestroy:G,width:c.width},{default:e.withCtx(()=>[e.createElementVNode("div",e4,[(e.openBlock(),e.createBlock(fl.ssForm,{rowContents:t.value,key:t.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:f.value,onOnButtonClick:M},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),l4=nr._export_sfc(a4,[["__scopeId","data-v-7dbd17f2"]]),r4={class:"step-module content"},n4={class:"module-data"},i4={class:"step-module layout"},o4={class:"form-content"},t4=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const n=a,r=l,i=e.ref("create"),t=e.ref({}),f=e.ref([]),c=e.ref([{label:"方向:",prop:"placement",type:"radio",contents:[{label:"底部",value:"bottom"},{label:"顶部",value:"top"}],value:"bottom"},{label:"节点类型:",prop:"type",type:"select",contents:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}],value:"primary"},{label:"颜色:",prop:"color",type:"color",value:""},{label:"尺寸:",prop:"size",type:"radio",contents:[{label:"normal",value:"normal"},{label:"large",value:"large"}],value:"normal"},{label:"是否空心",prop:"isHollow",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0},{label:"是否居中",prop:"isCenter",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),u=e.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"内容",prop:"content",type:"input",value:""},{label:"时间戳",prop:"timestamp",type:"datetime",value:""}]),m=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),g=e.reactive({visible:!1,width:"40%",title:"时间线"}),_=A=>{var P;t.value=A,r("change",(P=w())==null?void 0:P.compData)},p=(A,P)=>{var O,E;switch(A){case"create":(O=u.value)==null||O.forEach(x=>{x.value=""}),i.value="create",g.visible=!0;break;case"update":(E=u.value)==null||E.forEach(x=>{x.value=P[x==null?void 0:x.prop]}),i.value="update",g.visible=!0;break;case"delete":f.value.splice(P,1),i.value="delete";break}},M=A=>{var P,O,E,x;if((A==null?void 0:A.buttonName)==="确认"){const S=z.cloneDeep(A==null?void 0:A.content);switch(Object.keys(S).forEach(b=>{S[b]===""&&delete S[b]}),i.value){case"create":(O=f.value)==null||O.push({...S,index:((P=f.value)==null?void 0:P.length)+1});break;case"update":f.value=(E=f.value)==null?void 0:E.map(b=>b.index===(S==null?void 0:S.index)?{...b,content:S==null?void 0:S.content,timestamp:S==null?void 0:S.timestamp}:b);break}r("change",(x=w())==null?void 0:x.compData),g.visible=!1}else g.visible=!1},w=()=>({comp:"TimeLine",compData:[{key:"timeLineList",contents:f.value},{key:"timeLineConfig",contents:t.value}]}),G=()=>{g.visible=!1};return e.watch(()=>n==null?void 0:n.itemContents,A=>{var P,O;A&&(t.value=((P=A==null?void 0:A.find(E=>E.key==="timeLineConfig"))==null?void 0:P.contents)??{},f.value=((O=A==null?void 0:A.find(E=>E.key==="timeLineList"))==null?void 0:O.contents)??[])},{immediate:!0}),(A,P)=>{const O=e.resolveComponent("svg-icon"),E=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",r4,[P[2]||(P[2]=e.createElementVNode("h4",{class:"module-title"},"内容",-1)),e.createVNode(E,{class:"module-icon",id:"themeButton",onClick:P[0]||(P[0]=x=>p("create"))},{icon:e.withCtx(()=>[e.createVNode(O,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[P[1]||(P[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",n4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(x,S)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:S},[e.createElementVNode("span",null,e.toDisplayString(x==null?void 0:x.content),1),e.createElementVNode("div",null,[e.createVNode(E,{type:"primary",size:"small",onClick:b=>p("update",{...x,index:S+1})},{default:e.withCtx(()=>P[3]||(P[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(E,{type:"danger",size:"small",onClick:b=>p("delete",S)},{default:e.withCtx(()=>P[4]||(P[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",i4,[P[5]||(P[5]=e.createElementVNode("div",{class:"module-title"},"布局",-1)),e.createVNode(fl.ssForm,{rowContents:c.value,onChange:_},null,8,["rowContents"])])]),e.createVNode(Mr.ssDialog,{visible:g.visible,title:g.title,onBeforeDestroy:G,width:g.width},{default:e.withCtx(()=>[e.createElementVNode("div",o4,[(e.openBlock(),e.createBlock(fl.ssForm,{rowContents:u.value,key:u.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:m.value,onOnButtonClick:M},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),s4=nr._export_sfc(t4,[["__scopeId","data-v-39ffc861"]]),c4={};function u4(a,l){return e.openBlock(),e.createElementBlock("div")}const d4=nr._export_sfc(c4,[["render",u4]]),p4={class:"extra-content"},f4={key:0},h4={key:1},v4={class:"dialog-footer"},m4={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},emits:["change"],setup(a,{emit:l}){const n=a,r=e.ref(0),i=e.ref(),t=e.ref(),f=l,c=e.ref(!1),u=e.ref({}),m=e.ref({}),g=e.ref();e.watch(()=>[n.itemData],()=>{var x;const E=z.cloneDeep(n.itemData);i.value=(x=z.cloneDeep(E))==null?void 0:x.map(S=>{var b;if(S.key==="extra"){let C=[];(b=S.value)==null||b.forEach(R=>{var $;C.push(($=Object.values(R))==null?void 0:$[0])}),S.value=C}return S})},{deep:!0,immediate:!0});const _=(E,x,S,b)=>{var R;let C={};((R=E==null?void 0:E[0])==null?void 0:R.contents)==="详情"&&(c.value=!0,C[x]=E,t.value=E==null?void 0:E.filter($=>($==null?void 0:$.key)!=="tableContentName"),u.value=C,m.value=S,g.value=b.id)},p=E=>{var $,le,ee,_e;const x=(le=($=Object.values(z.cloneDeep(u.value)))==null?void 0:$[0])==null?void 0:le.filter(pe=>(pe==null?void 0:pe.key)==="tableContentName"),S=(_e=(ee=Object.values(z.cloneDeep(u.value)))==null?void 0:ee[0])==null?void 0:_e.filter(pe=>(pe==null?void 0:pe.key)!=="tableContentName"),b=S==null?void 0:S.map((pe,H)=>{var F;return H===E.index&&(pe==null?void 0:pe.comp)==="Table"&&(pe.compData=(F=pe.compData)==null?void 0:F.map(X=>{var re,ve;return(X==null?void 0:X.key)==="tableContents"&&(X.contents=(ve=(re=E.content)==null?void 0:re.map(Re=>{let ce={};for(let B in Re)B!=="id"&&(ce[B]=Re[B]);return ce}))==null?void 0:ve.map(Re=>Object.values(Re))),X})),pe});b.unshift(x==null?void 0:x[0]);let C=z.cloneDeep(u.value),R={};for(let pe in C)R[pe]=b;u.value=R},M=()=>{c.value=!1,u.value={},m.value={},g.value=void 0,r.value++},w=E=>{var $,le,ee,_e;const x=(le=($=Object.values(z.cloneDeep(u.value)))==null?void 0:$[0])==null?void 0:le.filter(pe=>(pe==null?void 0:pe.key)==="tableContentName"),S=(_e=(ee=Object.values(z.cloneDeep(u.value)))==null?void 0:ee[0])==null?void 0:_e.filter(pe=>(pe==null?void 0:pe.key)!=="tableContentName"),b=S==null?void 0:S.map((pe,H)=>(H===E.index&&(pe.compData=E.contents),pe));b.unshift(x==null?void 0:x[0]);let C=z.cloneDeep(u.value),R={};for(let pe in C)R[pe]=b;u.value=R},G=()=>{var x,S;let E={};for(let b in m.value)b===((x=Object.keys(u.value))==null?void 0:x[0])?E[b]=(S=Object.values(u.value))==null?void 0:S[0]:E[b]=m.value[b];f("change",{buttonName:"编辑",index:g.value,singleContent:E},"methodData"),c.value=!1,u.value={},m.value={},g.value=void 0},A=()=>{c.value=!1,u.value={},m.value={},g.value=void 0},P=E=>{f("change",E,"methodData")},O=E=>Ii(E);return(E,x)=>{const S=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",p4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(b,C)=>(e.openBlock(),e.createElementBlock("div",{key:r.value},[(b==null?void 0:b.key)==="extra"?(e.openBlock(),e.createElementBlock("div",f4)):(e.openBlock(),e.createElementBlock("div",h4,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(O(b.comp)),{itemData:b==null?void 0:b.compData,childItemData:b==null?void 0:b.itemChildData,key:C,index:(b==null?void 0:b.id)??C,onContentClick:_,onChange:P},null,40,["itemData","childItemData","index"]))]))]))),128)),e.createVNode(Mr.ssDialog,{visible:c.value,onBeforeDestroy:A},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(b,C)=>(e.openBlock(),e.createElementBlock("div",{key:C,class:"extra-dialog"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(O(b.comp)),{itemData:b==null?void 0:b.compData,onChange:p,childItemData:b==null?void 0:b.itemChildData,key:C,onContentChange:w,index:(b==null?void 0:b.id)??C,class:"extra-component"},null,40,["itemData","childItemData","index"]))]))),128))]),footer:e.withCtx(()=>[e.createElementVNode("div",v4,[e.createVNode(S,{class:"cancel-button footer-button",onClick:M,id:"themeBorderButton"},{default:e.withCtx(()=>x[0]||(x[0]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[0]}),e.createVNode(S,{class:"confirm-button footer-button",onClick:G,id:"themeButton"},{default:e.withCtx(()=>x[1]||(x[1]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},y4=nr._export_sfc(m4,[["__scopeId","data-v-2d9c5ab2"]]),g4={key:0,class:"method-content"},b4={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},setup(a){const l=e.ref([]),n=ie.useOriginalState(z.pinia),{originalPath:r}=z.storeToRefs(n),i=a,t=e.ref(!1),f=e.ref(),c=ie.useTableComp(z.pinia),{multipleTableConst:u}=z.storeToRefs(c),m=z.useModelComp(z.pinia),g=e.ref(!1),_=z.useMenuState(z.pinia),p=z.useLoginState(z.pinia),{itemData:M,isEdit:w,routeToChildPath:G,tableViewContents:A,lockingPage:P,payloadTypes:O}=z.storeToRefs(m),{activeMenuPath:E,platform:x,childMenu:S}=z.storeToRefs(_),{loginUserInfo:b}=z.storeToRefs(p),C=e.ref(!1),R=async()=>{var ce,B;(ce=l.value)!=null&&ce.find(te=>(te==null?void 0:te.buttonName)==="保存")&&await X((B=l.value)==null?void 0:B.find(te=>(te==null?void 0:te.buttonName)==="保存")),await ie.onSaveBack()};e.watch(()=>M.value,async()=>{w.value==="view"&&!C.value&&await Re(z.cloneDeep(i.itemData)),C.value=!1},{deep:!0});const $=()=>{t.value=!1,f.value=void 0},le=ce=>ce.map(B=>{const te={};for(const q in B){const xe=B[q];if(q.includes(u.value)){const Me=q.split(u.value);let $e=te;Me.forEach((Qe,_a)=>{_a===Me.length-1?$e[Qe]=xe:($e[Qe]||($e[Qe]={}),$e=$e[Qe])})}else te[q]=xe}return te}),ee=async(ce,B,te=[])=>{var xe,Me,$e,Qe,_a,oe,sa,de,ea,Ae,ue,he,Ge,wa,Ia;let q=(xe=z.cloneDeep(B))==null?void 0:xe.filter(U=>(U==null?void 0:U.comp)!=="methodButton");if(ce!=null&&ce.includes("[")){let U=(oe=(_a=(Qe=($e=(Me=z.cloneDeep(ce))==null?void 0:Me.split("["))==null?void 0:$e[1])==null?void 0:Qe.split("]"))==null?void 0:_a[0])==null?void 0:oe.split(":"),V="";if(U!=null&&U[0]){let Q=(sa=q==null?void 0:q.find(fe=>(fe==null?void 0:fe.name)===(U==null?void 0:U[0])))==null?void 0:sa.compData;if(!Q){let fe=(de=ce==null?void 0:ce.split("["))==null?void 0:de[0],me=await ie.getItemData(fe,sessionStorage.getItem("systemKey"),"",!1,"","",te);Q=(ea=me==null?void 0:me.find(ua=>(ua==null?void 0:ua.name)===(U==null?void 0:U[0])))==null?void 0:ea.compData}Q==null||Q.forEach(fe=>{var me,ua,ta,je,ba,Ta;if((fe==null?void 0:fe.key)==="formContent")(me=fe==null?void 0:fe.contents)==null||me.forEach(Ee=>{var Pa;(Ee==null?void 0:Ee.key)===(U==null?void 0:U[1])&&(Array.isArray(Ee==null?void 0:Ee.value)?V=Ee==null?void 0:Ee.value:V=(Pa=Ee==null?void 0:Ee.value)==null?void 0:Pa.toString())});else if((fe==null?void 0:fe.key)==="tableContents"){let Ee=[],Pa=(ua=Q==null?void 0:Q.find(ia=>(ia==null?void 0:ia.key)==="header"))==null?void 0:ua.contents,Ea=(U==null?void 0:U[1])??"";if(Pa!=null&&Pa.every(ia=>Array.isArray(ia))){let ia=ie.getColumnChild((ba=Pa==null?void 0:Pa[0])==null?void 0:ba.filter(Ba=>(Ba==null?void 0:Ba.label)!=="操作"));(Ta=fe.contents)==null||Ta.forEach(Ba=>{let Ce={};Ba=Ba==null?void 0:Ba.filter(ka=>!(ka!=null&&ka.id)),ia==null||ia.forEach((ka,Je)=>{let K=Ba[Je];typeof Ba[Je]=="number"&&(K=Ba[Je].toString()),(Ea===""||Ea===ka.prop)&&(Ce[ka.prop]=K)}),Ee.push(Ce)}),Ee=le(Ee)}else{let ia=(ta=Pa==null?void 0:Pa.map(Ba=>Ba==null?void 0:Ba.label))==null?void 0:ta.filter(Ba=>Ba!=="操作");(je=fe.contents)==null||je.forEach(Ba=>{let Ce={};Ba=Ba==null?void 0:Ba.filter(ka=>!(ka!=null&&ka.id)),ia==null||ia.forEach((ka,Je)=>{let K=Ba[Je];typeof Ba[Je]=="number"&&(K=Ba[Je].toString()),(Ea===""||Ea===ka)&&(Ce[ka]=K)}),Ee.push(Ce)})}V=Ee}})}return V}else if(ce!=null&&ce.includes("/")){let U={};return(Ae=z.cloneDeep(q))==null||Ae.forEach((V,Q)=>{var fe,me,ua,ta,je,ba,Ta,Ee,Pa,Ea,ia,Ba,Ce,ka,Je,K,J,Fe,We;if((V==null?void 0:V.comp)==="Table"){let Na=Array.isArray((ua=(me=(fe=V==null?void 0:V.compData)==null?void 0:fe.find(He=>(He==null?void 0:He.key)==="header"))==null?void 0:me.contents)==null?void 0:ua[0])?(Ta=(ba=(je=(ta=V==null?void 0:V.compData)==null?void 0:ta.find(He=>(He==null?void 0:He.key)==="header"))==null?void 0:je.contents)==null?void 0:ba[0])==null?void 0:Ta.some(He=>He==null?void 0:He.children):[],da=(Ea=(Pa=(Ee=V==null?void 0:V.compData)==null?void 0:Ee.find(He=>(He==null?void 0:He.key)==="tableContents"))==null?void 0:Pa.contents)==null?void 0:Ea.map(He=>(He!=null&&He.find(Ie=>Ie==null?void 0:Ie.id)&&(He=He.slice(1)),He)),Aa=(Je=(ka=(Ce=(Ba=(ia=V==null?void 0:V.compData)==null?void 0:ia.find(He=>(He==null?void 0:He.key)==="header"))==null?void 0:Ba.contents)==null?void 0:Ce[0])==null?void 0:ka[0])==null?void 0:Je.label,Oe=(J=(K=V==null?void 0:V.compData)==null?void 0:K.find(He=>(He==null?void 0:He.key)==="header"))==null?void 0:J.contents;if(Na)(Na==null?void 0:Na.length)===0?U[V.name]=U!=null&&U[V.name]?U[V.name]:ie.tableToForm(da,Oe):U[Aa]=ie.tableToForm(da,Oe);else{const He=[];Oe=Oe.slice(1,Oe.length-1),Oe==null||Oe.forEach((Ie,Ve)=>{da==null||da.forEach(we=>{He.push({key:Ie.label+we[0],value:we[Ve+1]})})}),U["form"+Q]=He}}else{const Na=(We=(Fe=V.compData)==null?void 0:Fe.find(Aa=>(Aa==null?void 0:Aa.key)==="formContent"))==null?void 0:We.contents;U!=null&&U.form||(U.form=[]);const da=[];Na==null||Na.forEach(Aa=>{Aa.key!==""&&(Aa={key:(Aa==null?void 0:Aa.key)??(Aa==null?void 0:Aa.label),value:Aa==null?void 0:Aa.value},da.push(Aa))}),U.form=[...da,...z.cloneDeep(U==null?void 0:U.form)]}}),U}else{if(ce==="createInsofDataApi"){let U=(ue=z.cloneDeep(B))==null?void 0:ue[0];return U={comp:(he=z.cloneDeep(U))==null?void 0:he.comp,compData:(Ge=z.cloneDeep(U))==null?void 0:Ge.compData,name:(wa=z.cloneDeep(U))==null?void 0:wa.name,isShow:(Ia=z.cloneDeep(U))==null?void 0:Ia.isShow},{key:{type:"structure",systemKey:sessionStorage.getItem("systemKey"),parentTable:"",pageKey:E.value},value:{pageData:U}}}return ce}},_e=async(ce,B,te)=>{var Me,$e,Qe;let q=await ie.getItemData(B,sessionStorage.getItem("systemKey"),""),xe=q==null?void 0:q.find(_a=>(_a==null?void 0:_a.name)===(te==null?void 0:te[0]));if(xe){if((xe==null?void 0:xe.comp)==="Table"){let _a={};for(let he in z.cloneDeep(ce))z.cloneDeep(ce)[he]!=="loginUser"?_a[he]=z.cloneDeep(ce)[he]:_a[he]=((Me=b.value)==null?void 0:Me.account)||(($e=b.value)==null?void 0:$e.账号);let oe=[],sa=_a;Array.isArray(ce)||(sa=[_a]),sa==null||sa.forEach(he=>{oe.push({[he[te[1]]]:he})});let de=[],ea=oe==null?void 0:oe.map(he=>{var Ge;return(Ge=Object.keys(he))==null?void 0:Ge[0]});q==null||q.forEach(he=>{var Ge;(he==null?void 0:he.name)===(te==null?void 0:te[0])&&((Ge=he==null?void 0:he.compData)==null||Ge.forEach(wa=>{var Ia;(wa==null?void 0:wa.key)==="tableContents"&&((Ia=wa==null?void 0:wa.contents)==null||Ia.forEach(U=>{U!=null&&U.some(V=>ea.includes(V))&&de.push({[U.find(V=>V.id).id]:U.find(V=>ea.includes(V))})}))}))});let Ae=de==null?void 0:de.map(he=>{var Ge;return(Ge=Object.keys(he))==null?void 0:Ge[0]}),ue=[];if(Ae==null||Ae.forEach(he=>{var Ia;let Ge=(Ia=de==null?void 0:de.find(U=>{var V;return((V=Object.keys(U))==null?void 0:V[0].toString())===he.toString()}))==null?void 0:Ia[he],wa=oe==null?void 0:oe.find(U=>{var V;return((V=Object.keys(U))==null?void 0:V[0])===Ge});ue.push({id:parseInt(he),value:{tableData:wa[Ge]}})}),(ue==null?void 0:ue.length)>0)return ue}else if((xe==null?void 0:xe.comp)==="Form"){let _a=z.cloneDeep(xe);_a.compData=(Qe=_a.compData)==null?void 0:Qe.map(de=>{var ea;return(de==null?void 0:de.key)==="formContent"&&(de.contents=(ea=de.contents)==null?void 0:ea.map(Ae=>((Ae==null?void 0:Ae.key)===(te==null?void 0:te[1])&&(Ae.value=(ce==null?void 0:ce[Ae==null?void 0:Ae.prop])||ce),Ae))),de});let oe={};for(let de in _a)de!=="id"&&(oe[de]=_a[de]);let sa=[];if(sa.push({id:xe==null?void 0:xe.id,keyType:te==null?void 0:te[1],value:{pageData:oe}}),(sa==null?void 0:sa.length)>0)return sa}}},pe=async(ce,B,te)=>{var Me,$e,Qe,_a,oe,sa,de,ea,Ae,ue;let q=await ie.getItemData(B,sessionStorage.getItem("systemKey"),""),xe=q==null?void 0:q.find(he=>(he==null?void 0:he.name)===(te==null?void 0:te[0]));if(xe){if((xe==null?void 0:xe.comp)==="Table"){let he={};for(let Ge in z.cloneDeep(ce))z.cloneDeep(ce)[Ge]!=="loginUser"?he[Ge]=z.cloneDeep(ce)[Ge]:he[Ge]=((Me=b.value)==null?void 0:Me.account)||(($e=b.value)==null?void 0:$e.账号);await qr.createInsofDataApi({key:{type:"data",pageKey:B,tableId:xe==null?void 0:xe.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:he}})}else if((xe==null?void 0:xe.comp)==="Form"){let he=z.cloneDeep(xe),Ge=Object.keys(ce),wa="";(_a=(Qe=z.cloneDeep(he))==null?void 0:Qe.compData)==null||_a.forEach(me=>{var ua,ta;(me==null?void 0:me.key)==="formContent"&&((ta=(ua=z.cloneDeep(me))==null?void 0:ua.contents)==null||ta.forEach(je=>{var ba;Ge.includes(je==null?void 0:je.key)&&(je==null?void 0:je.value)===((ba=b.value)==null?void 0:ba.姓名)&&(wa=je==null?void 0:je.key)}))});let Ia=[];(oe=Object.values(ce[wa]))==null||oe.forEach(me=>{me!=null&&me.includes("(")&&Ia.push(me)}),Ia=[...new Set(Ia)];const U=Ia==null?void 0:Ia.map(async me=>{var Ta,Ee,Pa,Ea,ia,Ba,Ce,ka,Je,K,J,Fe;let ua="";(Ba=(ia=(Ea=(Pa=(Ee=(Ta=z.cloneDeep(me))==null?void 0:Ta.split("("))==null?void 0:Ee[1])==null?void 0:Pa.split(")"))==null?void 0:Ea[0])==null?void 0:ia.split(":"))==null||Ba.forEach(We=>{ua=ua===""?ua+We.replaceAll("'",""):ua+"/"+We.replaceAll("'","")});let ta=[];(Fe=(J=(K=(Je=(ka=(Ce=z.cloneDeep(me))==null?void 0:Ce.split("<"))==null?void 0:ka[1])==null?void 0:Je.split(">"))==null?void 0:K[0])==null?void 0:J.split(":"))==null||Fe.forEach(We=>{ta.push(We.replaceAll("'",""))});const je=await ie.getItemData(ua,sessionStorage.getItem("systemKey"),"");let ba="";return je==null||je.forEach(We=>{var Na;We.name===(ta==null?void 0:ta[0])&&((Na=We==null?void 0:We.compData)==null||Na.forEach(da=>{var Aa;(da==null?void 0:da.key)==="formContent"&&((Aa=da.contents)==null||Aa.forEach(Oe=>{(Oe==null?void 0:Oe.key)===(ta==null?void 0:ta[1])&&(ba=Oe==null?void 0:Oe.value)}))}))}),{[me]:ba}}),V=await Promise.all(U);he.compData=(de=(sa=z.cloneDeep(he))==null?void 0:sa.compData)==null?void 0:de.map(me=>{var ua,ta;return(me==null?void 0:me.key)==="formContent"&&(me.contents=(ta=(ua=z.cloneDeep(me))==null?void 0:ua.contents)==null?void 0:ta.map(je=>{var ba,Ta,Ee,Pa;return(ba=ce[wa])!=null&&ba[je==null?void 0:je.key]&&(ce[wa][je==null?void 0:je.key].includes("(")?je.value=(Ta=V==null?void 0:V.find(Ea=>{var ia;return((ia=Object.keys(Ea))==null?void 0:ia[0])===ce[wa][je==null?void 0:je.key]}))==null?void 0:Ta[ce[wa][je==null?void 0:je.key]]:je.value=(Pa=(Ee=z.cloneDeep(ce))==null?void 0:Ee[wa])==null?void 0:Pa[je==null?void 0:je.key]),je})),me});const Q=await qr.getInsofDataApi({key:{type:"structure",pageKey:B,systemKey:sessionStorage.getItem("systemKey")}});let fe="";((ea=Q==null?void 0:Q.data)==null?void 0:ea.type)==="success"&&((ue=(Ae=Q==null?void 0:Q.data)==null?void 0:Ae.result)==null||ue.forEach(me=>{var ua,ta;((ta=(ua=me==null?void 0:me.value)==null?void 0:ua.pageData)==null?void 0:ta.name)===(te==null?void 0:te[0])&&(fe=me.id)}),await qr.updateInsofDataApi({id:fe,value:{pageData:he}}))}}},H=(ce,B="",te={})=>{for(const[q,xe]of Object.entries(ce)){const Me=B?`${B}.${q}`:q;xe!==null&&typeof xe=="object"&&!Array.isArray(xe)&&Object.prototype.toString.call(xe)!=="[object Date]"?H(xe,Me,te):te[Me]=xe}return te},F=async(ce,B,te,q)=>{var $e,Qe,_a,oe,sa,de,ea,Ae,ue,he,Ge,wa,Ia,U,V,Q,fe,me,ua,ta,je,ba,Ta,Ee,Pa;let xe=await ie.getItemData(B,sessionStorage.getItem("systemKey"),""),Me=xe==null?void 0:xe.find(Ea=>(Ea==null?void 0:Ea.name)===(te==null?void 0:te[0]));if(Me){if(!(te!=null&&te[1])&&(Me==null?void 0:Me.comp)==="Table"){let Ea={},ia=[],Ba=(Qe=($e=Me==null?void 0:Me.compData)==null?void 0:$e.find(Je=>(Je==null?void 0:Je.key)==="header"))==null?void 0:Qe.contents;Ba!=null&&Ba.every(Je=>Array.isArray(Je))?ia=(oe=ie.getColumnChild((_a=Ba==null?void 0:Ba[0])==null?void 0:_a.filter(Je=>(Je==null?void 0:Je.label)!=="操作")))==null?void 0:oe.map(Je=>Je==null?void 0:Je.prop):ia=Ba==null?void 0:Ba.map(Je=>Je==null?void 0:Je.label);for(let Je in z.cloneDeep(ce))if(z.cloneDeep(ce)[Je]!=="loginUser"){let K=H(z.cloneDeep(ce)[Je]),J={};for(let Fe in K)if(ia!=null&&ia.find(We=>We===Fe))J[Fe]=K[Fe];else if(ia!=null&&ia.find(We=>(We==null?void 0:We.toUpperCase())===(Fe==null?void 0:Fe.toUpperCase()))){let We=ia==null?void 0:ia.find(Na=>(Na==null?void 0:Na.toUpperCase())===(Fe==null?void 0:Fe.toUpperCase()));J[We]=K[Fe]}Ea[Je]=J}else Ea[Je]=((sa=b.value)==null?void 0:sa.account)||((de=b.value)==null?void 0:de.账号);let Ce=await qr.getInsofDataApi({keyLikes:{tableId:Me==null?void 0:Me.id}});if(((Ae=(ea=Ce==null?void 0:Ce.data)==null?void 0:ea.result)==null?void 0:Ae.length)>0){let Je=(he=(ue=Ce==null?void 0:Ce.data)==null?void 0:ue.result)==null?void 0:he.map(K=>K==null?void 0:K.id);(Je==null?void 0:Je.length)>0&&await qr.batchDeleteInsofDataApi({ids:Je})}let ka=[];if((Ge=Me==null?void 0:Me.compData)!=null&&Ge.find(Je=>(Je==null?void 0:Je.key)==="pageColumn")&&((U=(Ia=(wa=Me==null?void 0:Me.compData)==null?void 0:wa.find(Je=>(Je==null?void 0:Je.key)==="pageColumn"))==null?void 0:Ia.contents)!=null&&U.includes("["))){const Je=await qr.getInsofDataApi({id:Me==null?void 0:Me.tableId});let K=((me=(fe=(Q=(V=Je==null?void 0:Je.data)==null?void 0:V.result)==null?void 0:Q[0])==null?void 0:fe.key)==null?void 0:me.pageKey)??"";(ua=Object.values(Ea))==null||ua.forEach(J=>{ka.push({key:{type:"data",pageKey:K,tableId:Me==null?void 0:Me.tableId,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:J}})})}else(ta=Object.values(Ea))==null||ta.forEach(Je=>{ka.push({key:{type:"data",pageKey:B,tableId:Me==null?void 0:Me.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:Je}})});(ka==null?void 0:ka.length)>0&&await qr.batchAddInsofDataApi({dataList:ka})}else if(!(te!=null&&te[1])&&(Me==null?void 0:Me.comp)==="Form"){let Ea=z.cloneDeep(Me);Ea.compData=(ba=(je=z.cloneDeep(Ea))==null?void 0:je.compData)==null?void 0:ba.map(Ce=>{var ka,Je;return(Ce==null?void 0:Ce.key)==="formContent"&&(Ce.contents=(Je=(ka=z.cloneDeep(Ce))==null?void 0:ka.contents)==null?void 0:Je.map(K=>{var J,Fe;return(J=z.cloneDeep(ce))!=null&&J[K==null?void 0:K.key]&&(K.value=(Fe=z.cloneDeep(ce))==null?void 0:Fe[K==null?void 0:K.key]),K})),Ce});const ia=await qr.getInsofDataApi({key:{type:"structure",pageKey:B,systemKey:sessionStorage.getItem("systemKey")}});let Ba="";((Ta=ia==null?void 0:ia.data)==null?void 0:Ta.type)==="success"&&((Pa=(Ee=ia==null?void 0:ia.data)==null?void 0:Ee.result)==null||Pa.forEach(Ce=>{var ka,Je;((Je=(ka=Ce==null?void 0:Ce.value)==null?void 0:ka.pageData)==null?void 0:Je.name)===(te==null?void 0:te[0])&&(Ba=Ce.id)}),await qr.updateInsofDataApi({id:Ba,value:{pageData:Ea}}))}}},X=async ce=>{var B,te,q,xe,Me,$e,Qe,_a,oe,sa,de,ea,Ae,ue;_.setImportLoading(!0);try{if(ce.api){let he=new WeakMap,Ge=await ie.getItemData((S==null?void 0:S.value)===""?E.value:S==null?void 0:S.value,sessionStorage.getItem("systemKey"),"",!1,"","",he),wa="";if(Ge=Ge==null?void 0:Ge.map(ta=>{var je,ba,Ta,Ee,Pa,Ea,ia,Ba,Ce,ka,Je,K;if((ta==null?void 0:ta.comp)==="Form")ta.compData=(je=ta.compData)==null?void 0:je.map(J=>{var Fe;return(J==null?void 0:J.key)==="formContent"&&(J.contents=(Fe=J.contents)==null?void 0:Fe.map(We=>{var Na;if((We==null?void 0:We.value)===""&&(We==null?void 0:We.type)==="Select"){let da=ie.judgeContents((Na=z.cloneDeep(We))==null?void 0:Na.optionUrl,he);We.value=We.value||da}return We})),J});else if((ta==null?void 0:ta.comp)==="Table"&&(ba=ta.compData)!=null&&ba.find(J=>(J==null?void 0:J.key)==="pageColumn")){let J=(Ee=(Ta=ta.compData)==null?void 0:Ta.find(da=>(da==null?void 0:da.key)==="pageColumn"))==null?void 0:Ee.contents,Fe=((Ea=(Pa=ta.compData)==null?void 0:Pa.find(da=>(da==null?void 0:da.key)==="pageGroup"))==null?void 0:Ea.contents)??"",We=(Ce=(Ba=(ia=J==null?void 0:J.split("["))==null?void 0:ia[1])==null?void 0:Ba.split("]"))==null?void 0:Ce[0];wa=((ka=J==null?void 0:J.split("["))==null?void 0:ka[0])+((K=(Je=A.value)==null?void 0:Je.find(da=>(da==null?void 0:da.key)===We))==null?void 0:K.value)}return ta}),!(wa===""||wa==="")){const ta=await ie.getItemData(wa,sessionStorage.getItem("systemKey"),"",!1,"","",he);Ge=Ge==null?void 0:Ge.map(je=>{var ba,Ta,Ee,Pa,Ea,ia,Ba,Ce,ka,Je,K,J,Fe;if((je==null?void 0:je.comp)==="Table"&&(ba=je.compData)!=null&&ba.find(We=>(We==null?void 0:We.key)==="pageColumn")){let We=(Ee=(Ta=je.compData)==null?void 0:Ta.find(He=>(He==null?void 0:He.key)==="pageColumn"))==null?void 0:Ee.contents,Na=((Ea=(Pa=je.compData)==null?void 0:Pa.find(He=>(He==null?void 0:He.key)==="pageGroup"))==null?void 0:Ea.contents)??"",da=(Ce=(Ba=(ia=We==null?void 0:We.split("["))==null?void 0:ia[1])==null?void 0:Ba.split("]"))==null?void 0:Ce[0],Aa=((ka=We==null?void 0:We.split("["))==null?void 0:ka[0])+((K=(Je=A.value)==null?void 0:Je.find(He=>(He==null?void 0:He.key)===da))==null?void 0:K.value),Oe=(J=ta==null?void 0:ta.find(He=>(He==null?void 0:He.name)===(Na===""?i==null?void 0:i.compName:Na)))==null?void 0:J.compData;je.compData=(Fe=je.compData)==null?void 0:Fe.map(He=>{var Ie;return(He==null?void 0:He.key)==="tableContents"&&(He.contents=(Ie=Oe==null?void 0:Oe.find(Ve=>(Ve==null?void 0:Ve.key)==="tableContents"))==null?void 0:Ie.contents),He})}return je})}let Ia={};if(((te=(B=ce==null?void 0:ce.extraValues)==null?void 0:B.input)==null?void 0:te.length)>0){const ta=(xe=(q=ce==null?void 0:ce.extraValues)==null?void 0:q.input)==null?void 0:xe.map(async je=>{var ba;re!=null&&re.find(Ta=>Ta===je)?Ia=await ee(je,Ge):Ia[Object.keys(je)[0]]=await ee((ba=Object.values(je))==null?void 0:ba[0],Ge,he)});await Promise.all(ta)}else Ia=await ee("/",Ge);let U=!1;($e=(Me=ce==null?void 0:ce.extraValues)==null?void 0:Me.output)==null||$e.forEach(ta=>{var je,ba;(ba=(je=Object.values(ta))==null?void 0:je[0])!=null&&ba.includes(".doc")&&(U=!0)});let V;if(U){const ta=z.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});V=await Xa.axios.post(ce.api,Ia,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{ta.close()})}else V=await Xa.axios.post(ce.api,Ia,{headers:{"Content-Type":"application/json"}});let Q=(sa=(oe=(_a=(Qe=z.cloneDeep(ce))==null?void 0:Qe.extraValues)==null?void 0:_a.output)==null?void 0:oe.map(ta=>{var je,ba,Ta,Ee,Pa,Ea,ia,Ba,Ce,ka,Je,K,J,Fe,We,Na;if(!((ba=(je=Object.values(ta))==null?void 0:je[0])!=null&&ba.includes(".doc"))){let da=(ka=(Ce=(Ba=(Ee=z.cloneDeep((Ta=Object.values(ta))==null?void 0:Ta[0]))==null?void 0:Ee.split("["))==null?void 0:Ba[((ia=(Ea=z.cloneDeep((Pa=Object.values(ta))==null?void 0:Pa[0]))==null?void 0:Ea.split("["))==null?void 0:ia.length)-1])==null?void 0:Ce.split("]"))==null?void 0:ka[0],Aa=da==null?void 0:da.split(":"),Oe=(J=z.cloneDeep((Je=Object.values(ta))==null?void 0:Je[0]))==null?void 0:J.substring(0,z.cloneDeep((K=Object.values(ta))==null?void 0:K[0]).lastIndexOf("["));if(Oe=(We=z.cloneDeep(Oe))==null?void 0:We.slice(0,((Fe=z.cloneDeep(Oe))==null?void 0:Fe.length)-1),Oe!=null&&Oe.includes("[")){let He="";if((Na=ie.contentTransArrayToAll(Oe,"/"))==null||Na.forEach(Ie=>{var Ve,we,ol,Sl,Ll,Vl,zl;if(!(Ie!=null&&Ie.includes("[")))He=He===""?He+Ie.replaceAll("/",""):He+"/"+Ie.replaceAll("/","");else{let Jl=z.cloneDeep(Ie).slice(1,((Ve=z.cloneDeep(Ie))==null?void 0:Ve.length)-1),rl=(Vl=(Ll=(Sl=(ol=(we=z.cloneDeep(Jl))==null?void 0:we.split("["))==null?void 0:ol[1])==null?void 0:Sl.split("]"))==null?void 0:Ll[0])==null?void 0:Vl.split(":"),Fl="",Wa=(zl=Ge==null?void 0:Ge.find(Kl=>(Kl==null?void 0:Kl.name)===(rl==null?void 0:rl[0])))==null?void 0:zl.compData;Wa==null||Wa.forEach(Kl=>{var Wl;(Kl==null?void 0:Kl.key)==="formContent"&&((Wl=Kl==null?void 0:Kl.contents)==null||Wl.forEach(Nl=>{(Nl==null?void 0:Nl.key)===(rl==null?void 0:rl[1])&&(Fl=Nl==null?void 0:Nl.value)}))}),He=He===""?He+Fl.replaceAll("/",""):He+"/"+Fl.replaceAll("/","")}}),Oe=He,Oe[(Oe==null?void 0:Oe.length)-1]!=="/")return Oe}}}))==null?void 0:sa.filter(ta=>ta);Q=[...new Set(z.cloneDeep(Q))];let fe=Q==null?void 0:Q.map(async ta=>{let je=await ie.getItemData(ta,sessionStorage.getItem("systemKey"),"",!1,"","",he);if((je==null?void 0:je.length)===0)return await ie.getParentContents(ta)});await Promise.all(fe);let me=[],ua=(Ae=(ea=(de=z.cloneDeep(ce))==null?void 0:de.extraValues)==null?void 0:ea.output)==null?void 0:Ae.map(async ta=>{var Ba,Ce,ka,Je,K,J,Fe,We,Na,da,Aa,Oe,He,Ie,Ve,we,ol,Sl,Ll,Vl,zl,Jl,rl,Fl,Wa,Kl,Wl,Nl,Tl,zr,$a,Ka,pa,ja,na,Ya,xl,Te,ra,Ua,De,Ra,el,ml,El,ze,ha,ca,ga,ma,cl,Le,yl,Be,Ul,Sa,pl,Qa,gl,Oa,Pl,Sr,Qr,Wr,Gl,ir,on,Jr,Ur,en;if((Ce=(Ba=Object.values(ta))==null?void 0:Ba[0])!=null&&Ce.includes(".doc")){var je=new Blob([V.data],{type:"application/octet-stream;charset=UTF-8"}),ba=V.headers["content-disposition"],Ta=new RegExp("filename=([^;]+\\.[^\\.;]+);*"),Ee=Ta.exec(ba),Pa=Ee==null?void 0:Ee[1],Ea=document.createElement("a"),ia=window.URL.createObjectURL(je);f.value=[{name:Pa,blobUrl:ia}],t.value=!0}else{let an=(da=(Na=(We=(Je=z.cloneDeep((ka=Object.values(ta))==null?void 0:ka[0]))==null?void 0:Je.split("["))==null?void 0:We[((Fe=(J=z.cloneDeep((K=Object.values(ta))==null?void 0:K[0]))==null?void 0:J.split("["))==null?void 0:Fe.length)-1])==null?void 0:Na.split("]"))==null?void 0:da[0],cr=an==null?void 0:an.split(":"),br=(He=z.cloneDeep((Aa=Object.values(ta))==null?void 0:Aa[0]))==null?void 0:He.substring(0,z.cloneDeep((Oe=Object.values(ta))==null?void 0:Oe[0]).lastIndexOf("["));if(br!=null&&br.includes("[")?br=(Ve=z.cloneDeep(br))==null?void 0:Ve.slice(0,((Ie=z.cloneDeep(br))==null?void 0:Ie.length)-1):br===""&&(br=E.value),br=br.replaceAll("<","[").replaceAll(">","]"),br!=null&&br.includes("[")){let Xl="";(we=ie.contentTransArrayToAll(br,"/"))==null||we.forEach((Ml,Dr)=>{var Yl,vr,Tr,kr,wr,tn,yn,Dn,vi,_n,An;if(!(Ml!=null&&Ml.includes("[")))Xl=Xl===""?Xl+Ml.replaceAll("/",""):Xl+"/"+Ml.replaceAll("/","");else{let Kn="",gn="";(Yl=z.cloneDeep(Ml))!=null&&Yl.includes("]")?(Kn=z.cloneDeep(Ml).slice(1,((vr=z.cloneDeep(Ml))==null?void 0:vr.length)-1),gn=(yn=(tn=(wr=(kr=(Tr=z.cloneDeep(Kn))==null?void 0:Tr.split("["))==null?void 0:kr[1])==null?void 0:wr.split("]"))==null?void 0:tn[0])==null?void 0:yn.split(":")):(Kn=z.cloneDeep(Ml).slice(1,(Dn=z.cloneDeep(Ml))==null?void 0:Dn.length),gn=(vi=z.cloneDeep(Kn))==null?void 0:vi.split("/"));let Vn="",li=(_n=Ge==null?void 0:Ge.find(dn=>(dn==null?void 0:dn.name)===(gn==null?void 0:gn[0])))==null?void 0:_n.compData;li==null||li.forEach(dn=>{var zn;(dn==null?void 0:dn.key)==="formContent"&&((zn=dn==null?void 0:dn.contents)==null||zn.forEach(Tn=>{(Tn==null?void 0:Tn.key)===(gn==null?void 0:gn[1])&&(Vn=Tn==null?void 0:Tn.value)}))}),((An=ie.contentTransArrayToAll(br,"/"))==null?void 0:An.length)-1!==Dr?Xl=Xl===""?Xl+Vn.replaceAll("/",""):Xl+"/"+Vn.replaceAll("/",""):Xl=Xl+r.value+Vn.replaceAll("/","")}}),(ol=E.value)!=null&&ol.includes(Xl)?br=E.value:br=Xl}let jr=z.cloneDeep((Sl=Object.keys(ta))==null?void 0:Sl[0]);if(((Ll=V==null?void 0:V.data)==null?void 0:Ll.statusCode)===200||((Vl=V==null?void 0:V.data)==null?void 0:Vl.code)===200){if(((Jl=(zl=V==null?void 0:V.data)==null?void 0:zl.data)!=null&&Jl[jr]||(Fl=(rl=V==null?void 0:V.data)==null?void 0:rl.result)!=null&&Fl[jr])&&(cr==null?void 0:cr.length)===1)return await F(((Kl=(Wa=V==null?void 0:V.data)==null?void 0:Wa.data)==null?void 0:Kl[jr])||((Nl=(Wl=V==null?void 0:V.data)==null?void 0:Wl.result)==null?void 0:Nl[jr]),z.cloneDeep(br),cr,wa);if((zr=(Tl=V==null?void 0:V.data)==null?void 0:Tl.data)!=null&&zr[jr]||(Ka=($a=V==null?void 0:V.data)==null?void 0:$a.result)!=null&&Ka[jr]){let Xl=await _e(((ja=(pa=V==null?void 0:V.data)==null?void 0:pa.data)==null?void 0:ja[jr])||((Ya=(na=V==null?void 0:V.data)==null?void 0:na.result)==null?void 0:Ya[jr]),z.cloneDeep(br),cr);return Xl&&(me=[...me,...Xl]),Xl}else{if(!((xl=V==null?void 0:V.data)!=null&&xl.data)){let Xl=await ie.getItemData(E.value,sessionStorage.getItem("systemKey"),"",!1,"","",he);Xl=Xl==null?void 0:Xl.map(Dr=>{var Yl;return(Dr==null?void 0:Dr.name)===(cr==null?void 0:cr[0])&&(Dr.compData=(Yl=Dr.compData)==null?void 0:Yl.map(vr=>{var Tr;return(vr==null?void 0:vr.key)==="formContent"&&(vr.contents=(Tr=vr.contents)==null?void 0:Tr.map(kr=>{var wr,tn;return(kr==null?void 0:kr.key)===(cr==null?void 0:cr[1])&&(kr.value=(tn=(wr=V==null?void 0:V.data)==null?void 0:wr.result)==null?void 0:tn[jr==null?void 0:jr.replaceAll(":","")]),kr})),vr})),Dr});let Ml=[];(Te=Xl==null?void 0:Xl.filter(Dr=>(Dr==null?void 0:Dr.comp)==="Form"))==null||Te.forEach(async Dr=>{let Yl={};for(let vr in Dr)vr!=="id"&&(Yl[vr]=Dr[vr]);Ml.push({id:Dr==null?void 0:Dr.id,value:{pageData:Yl}})}),(Ml==null?void 0:Ml.length)>0&&await qr.batchUpdateInsofDataApi({dataList:Ml});return}if((cr==null?void 0:cr.length)===1){const Xl=(De=(Ua=(ra=V==null?void 0:V.data)==null?void 0:ra.data)==null?void 0:Ua.path)==null?void 0:De.path;let Ml="";(ze=(El=(ml=(el=(Ra=Xl==null?void 0:Xl.split("("))==null?void 0:Ra[1])==null?void 0:el.split(")"))==null?void 0:ml[0])==null?void 0:El.split(":"))==null||ze.forEach(vr=>{var Tr,kr;Ml=Ml===""?Ml+((Tr=vr==null?void 0:vr.replaceAll("'",""))==null?void 0:Tr.trim()):Ml+"/"+((kr=vr==null?void 0:vr.replaceAll("'",""))==null?void 0:kr.trim())});let Dr=[(cl=(ma=(ga=(ca=(ha=Xl==null?void 0:Xl.split("<"))==null?void 0:ha[1])==null?void 0:ca.split(">"))==null?void 0:ga[0])==null?void 0:ma.replaceAll("'",""))==null?void 0:cl.trim()],Yl;return(Be=(yl=(Le=V==null?void 0:V.data)==null?void 0:Le.data)==null?void 0:yl.data)!=null&&Be[cr==null?void 0:cr[0]]?Yl=await F((pl=(Sa=(Ul=V==null?void 0:V.data)==null?void 0:Ul.data)==null?void 0:Sa.data)==null?void 0:pl[cr==null?void 0:cr[0]],Ml,cr,wa):Yl=await pe((gl=(Qa=V==null?void 0:V.data)==null?void 0:Qa.data)==null?void 0:gl.data,Ml,Dr,he),Yl}else{const Xl=(Sr=(Pl=(Oa=V==null?void 0:V.data)==null?void 0:Oa.data)==null?void 0:Pl.path)==null?void 0:Sr.path;let Ml="";return(on=(ir=(Gl=(Wr=(Qr=Xl==null?void 0:Xl.split("("))==null?void 0:Qr[1])==null?void 0:Wr.split(")"))==null?void 0:Gl[0])==null?void 0:ir.split(":"))==null||on.forEach(Yl=>{var vr,Tr;Ml=Ml===""?Ml+((vr=Yl==null?void 0:Yl.replaceAll("'",""))==null?void 0:vr.trim()):Ml+"/"+((Tr=Yl==null?void 0:Yl.replaceAll("'",""))==null?void 0:Tr.trim())}),await _e((en=(Ur=(Jr=V==null?void 0:V.data)==null?void 0:Jr.data)==null?void 0:Ur.data)==null?void 0:en[cr==null?void 0:cr[0]],Ml,cr)}}}}});if(await Promise.all(ua),(me==null?void 0:me.length)>0){let ta=[];me==null||me.forEach(Ta=>{ta!=null&&ta.find(Ee=>{var Pa,Ea,ia,Ba;return((Ea=(Pa=Ee==null?void 0:Ee.value)==null?void 0:Pa.pageData)==null?void 0:Ea.name)===((Ba=(ia=Ta==null?void 0:Ta.value)==null?void 0:ia.pageData)==null?void 0:Ba.name)})||ta.push(Ta)});let je=[];ta==null||ta.forEach(Ta=>{var Ea,ia,Ba,Ce;let Ee=z.cloneDeep(Ta);Ee.value.pageData.compData=(Ea=Ee.value.pageData.compData)==null?void 0:Ea.map(ka=>{var Je;return(ka==null?void 0:ka.key)==="formContent"&&(ka.contents=(Je=ka.contents)==null?void 0:Je.map(K=>{var Fe,We,Na,da;let J=(Fe=z.cloneDeep(me))==null?void 0:Fe.find(Aa=>(Aa==null?void 0:Aa.keyType)===(K==null?void 0:K.key));if(J){let Aa=(da=(Na=(We=J.value.pageData.compData)==null?void 0:We.find(Oe=>(Oe==null?void 0:Oe.key)==="formContent"))==null?void 0:Na.contents)==null?void 0:da.find(Oe=>(Oe==null?void 0:Oe.key)===(K==null?void 0:K.key));K.value=Aa==null?void 0:Aa.value}return K})),ka}),je.push({id:Ee==null?void 0:Ee.id,value:Ee==null?void 0:Ee.value});let Pa=[];(Ce=(Ba=(ia=Ee==null?void 0:Ee.value)==null?void 0:ia.pageData)==null?void 0:Ba.compData)==null||Ce.forEach(ka=>{var Je;(ka==null?void 0:ka.key)==="formContent"&&((Je=ka==null?void 0:ka.contents)==null||Je.forEach(K=>{var J,Fe,We,Na,da,Aa;if((Fe=(J=K==null?void 0:K.optionUrl)==null?void 0:J.menuSelect)!=null&&Fe.find(Oe=>Oe==null?void 0:Oe.includes("[")))if(Pa!=null&&Pa.find(Oe=>{var He,Ie,Ve;return((He=Oe==null?void 0:Oe.key)==null?void 0:He.join(","))===((Ve=(Ie=K==null?void 0:K.optionUrl)==null?void 0:Ie.menuSelect)==null?void 0:Ve.join(","))})){let Oe=(We=Pa==null?void 0:Pa.find(He=>{var Ie,Ve,we;return((Ie=He==null?void 0:He.key)==null?void 0:Ie.join(","))===((we=(Ve=K==null?void 0:K.optionUrl)==null?void 0:Ve.menuSelect)==null?void 0:we.join(","))}))==null?void 0:We.value;Oe.push({key:K==null?void 0:K.prop,groups:(Na=K==null?void 0:K.optionUrl)==null?void 0:Na.groupSelect,value:K==null?void 0:K.value}),Pa=Pa==null?void 0:Pa.map(He=>{var Ie,Ve,we;return((Ie=He==null?void 0:He.key)==null?void 0:Ie.join(","))===((we=(Ve=K==null?void 0:K.optionUrl)==null?void 0:Ve.menuSelect)==null?void 0:we.join(","))&&(He.value=Oe),He})}else Pa.push({key:(da=K==null?void 0:K.optionUrl)==null?void 0:da.menuSelect,value:[{key:K==null?void 0:K.prop,groups:(Aa=K==null?void 0:K.optionUrl)==null?void 0:Aa.groupSelect,value:K==null?void 0:K.value}]})}))}),(Pa==null?void 0:Pa.length)>0&&(Pa=Pa==null?void 0:Pa.map(ka=>{var K;let Je="";return(K=ka==null?void 0:ka.key)==null||K.forEach(J=>{var Fe;if(!(J!=null&&J.includes("[")))Je=Je===""?Je+J:Je+"/"+J;else{let We="",Na=(Fe=J==null?void 0:J.replaceAll("[","").replaceAll("]",""))==null?void 0:Fe.split(":");Ge==null||Ge.forEach(da=>{var Aa;(da==null?void 0:da.name)===(Na==null?void 0:Na[0])&&((Aa=da==null?void 0:da.compData)==null||Aa.forEach(Oe=>{var He;(Oe==null?void 0:Oe.key)==="formContent"&&((He=Oe==null?void 0:Oe.contents)==null||He.forEach(Ie=>{(Ie==null?void 0:Ie.prop)===(Na==null?void 0:Na[1])&&(We=Ie==null?void 0:Ie.value)}))}))}),Je=Je+r.value+We}}),ka.key=Je,ka})),Pa==null||Pa.forEach(ka=>{var Fe,We,Na;let Je=(Fe=he[ka.key])==null?void 0:Fe.find(da=>{var Aa,Oe,He,Ie,Ve,we,ol;return((Oe=(Aa=da==null?void 0:da.value)==null?void 0:Aa.pageData)==null?void 0:Oe.name)===((Ve=(Ie=(He=ka==null?void 0:ka.value)==null?void 0:He[0])==null?void 0:Ie.groups)==null?void 0:Ve[0])&&((ol=(we=da==null?void 0:da.value)==null?void 0:we.pageData)==null?void 0:ol.name)!==void 0}),K=Je==null?void 0:Je.id,J=(We=Je==null?void 0:Je.value)==null?void 0:We.pageData;J.compData=(Na=J.compData)==null?void 0:Na.map(da=>{var Aa;return(da==null?void 0:da.key)==="formContent"&&(da.contents=(Aa=da.contents)==null?void 0:Aa.map(Oe=>{var Ie;let He=(Ie=ka.value)==null?void 0:Ie.find(Ve=>(Ve==null?void 0:Ve.key)===(Oe==null?void 0:Oe.prop));return He&&(Oe.value=He.value),Oe})),da}),je.push({id:K,value:{pageData:J}})})});let ba=(ue=z.cloneDeep(me))==null?void 0:ue[0];(je==null?void 0:je.length)>0&&await qr.batchUpdateInsofDataApi({dataList:je})}m.setFreshContent(!0)}_.setImportLoading(!1)}catch{Xa.ElMessage.error("方法执行错误,请查看方法!"),_.setImportLoading(!1)}C.value=!0},re=["createInsofDataApi"],ve=Hl.debounce(async ce=>{X(ce)},100),Re=async ce=>{var $e,Qe,_a;const B=z.cloneDeep(ce);let te,q=new WeakMap;ce!=null&&ce[0].path&&(te=await(B==null?void 0:B.map(async(oe,sa)=>{var Ia,U,V,Q,fe,me,ua,ta,je,ba,Ta,Ee,Pa,Ea,ia,Ba;const ea=(Ia=q[oe==null?void 0:oe.path])==null?void 0:Ia.filter(Ce=>{var ka;return((ka=Ce==null?void 0:Ce.key)==null?void 0:ka.type)==="data"});let Ae="";const ue=await ie.getItemData(E.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,q);ea==null||ea.forEach(Ce=>{var ka,Je,K,J,Fe;((Je=(ka=Ce==null?void 0:Ce.value)==null?void 0:ka.tableData)==null?void 0:Je.算法名称)===((K=B==null?void 0:B[sa])==null?void 0:K.method)&&(Ae=(Fe=(J=Ce==null?void 0:Ce.value)==null?void 0:J.tableData)==null?void 0:Fe.算法体)});const he=await ie.getItemData(oe==null?void 0:oe.path,sessionStorage.getItem("systemKey"),"",!1,[],!1,q);let Ge="",wa=(fe=(Q=(V=(U=he==null?void 0:he[0])==null?void 0:U.compData)==null?void 0:V.find(Ce=>(Ce==null?void 0:Ce.key)==="header"))==null?void 0:Q.contents)==null?void 0:fe.findIndex(Ce=>(Ce==null?void 0:Ce.prop)==="算法体");return(ua=(me=he==null?void 0:he[0])==null?void 0:me.compData)==null||ua.forEach(Ce=>{var ka;(Ce==null?void 0:Ce.key)==="tableContents"&&((ka=Ce==null?void 0:Ce.contents)==null||ka.forEach(Je=>{Je!=null&&Je.find(K=>K===(oe==null?void 0:oe.method))&&(Ge=Je[wa])}))}),{buttonName:((ta=B==null?void 0:B[sa])==null?void 0:ta.method)||((Ta=(ba=(je=ea==null?void 0:ea[0])==null?void 0:je.value)==null?void 0:ba.tableData)==null?void 0:Ta.算法名称),api:(Ae===""?(Ea=(Pa=(Ee=ea==null?void 0:ea[0])==null?void 0:Ee.value)==null?void 0:Pa.tableData)==null?void 0:Ea.算法体:Ae)||Ge,content:ue==null?void 0:ue.filter(Ce=>Ce.comp!=="methodButton"),extraContent:(ia=z.cloneDeep(oe.value))==null?void 0:ia.slice(1),methodName:(oe==null?void 0:oe.path)??"",extraValues:(Ba=B==null?void 0:B[sa])==null?void 0:Ba.data}})));const xe=B==null?void 0:B.map(async oe=>{var he,Ge,wa,Ia,U,V;const sa=(he=resAll.data.result)==null?void 0:he.filter(Q=>{var fe,me,ua;return((fe=Q==null?void 0:Q.key)==null?void 0:fe.parentTable)===""&&((me=Q==null?void 0:Q.key)==null?void 0:me.type)==="method"&&((ua=Q==null?void 0:Q.key)==null?void 0:ua.methodName)===Q.method}),de=sa==null?void 0:sa[0],ea=(Ge=resAll.data.result)==null?void 0:Ge.filter(Q=>{var fe,me;return((fe=Q==null?void 0:Q.key)==null?void 0:fe.type)==="methodData"&&((me=Q==null?void 0:Q.key)==null?void 0:me.tableId)===(de==null?void 0:de.id)}),Ae=await ie.getItemData(E.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,q),ue=ea==null?void 0:ea[0];return{buttonName:(wa=de==null?void 0:de.key)==null?void 0:wa.methodKey,api:(U=(Ia=ue==null?void 0:ue.value)==null?void 0:Ia.tableData)==null?void 0:U[0],content:Ae==null?void 0:Ae.filter(Q=>Q.comp!=="methodButton"),extraContent:(V=z.cloneDeep(oe.value))==null?void 0:V.slice(1),methodName:(oe==null?void 0:oe.method)??""}}),Me=($e=ce==null?void 0:ce[0])!=null&&$e.path&&((Qe=ce==null?void 0:ce[0])==null?void 0:Qe.path)!==""?await Promise.all(te):await Promise.all(xe);l.value=Me==null?void 0:Me.filter(oe=>oe==null?void 0:oe.extraContent),(_a=l.value)==null||_a.forEach(oe=>{var sa;oe.api===""&&((sa=oe.content)==null||sa.forEach(de=>{var ea;de.comp=="Table"&&m.setExtraContents(ie.methodTableToContent(de.compData,(ea=oe.extraContent)==null?void 0:ea[0]))}))})};return e.watch(()=>i.itemData,async()=>{w.value=="view"&&!C.value&&await Re(z.cloneDeep(i.itemData)),C.value=!1},{immediate:!0,deep:!0}),(ce,B)=>{var te,q,xe;return e.unref(w)!=="edit"?(e.openBlock(),e.createElementBlock("div",g4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((te=l.value)==null?void 0:te.filter(Me=>(Me==null?void 0:Me.buttonName)!=="保存"),Me=>{var $e;return e.openBlock(),e.createElementBlock("div",null,[Me.api!==""?(e.openBlock(),e.createBlock(e.unref(ds._sfc_main),{key:0,disabled:e.unref(P)===e.unref(E)&&!(($e=Me==null?void 0:Me.buttonName)!=null&&$e.includes("预览")),class:"calculator-content",modelValue:Me.buttonName,onClickTrigger:Qe=>e.unref(ve)(Me),loading:g.value},null,8,["disabled","modelValue","onClickTrigger","loading"])):e.createCommentVNode("",!0)])}),256)),e.createElementVNode("div",null,[e.unref(G)!==""&&((xe=e.unref(E))==null?void 0:xe[((q=e.unref(E))==null?void 0:q.length)-1])!==e.unref(r)?(e.openBlock(),e.createBlock(e.unref(ds._sfc_main),{key:0,class:"calculator-content",onClickTrigger:R,modelValue:"保存"})):e.createCommentVNode("",!0)]),t.value?(e.openBlock(),e.createBlock(fl.ssFilePreview,{key:0,fileDataList:f.value,onDestroy:$},null,8,["fileDataList"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}}},k4=nr._export_sfc(b4,[["__scopeId","data-v-063aa9af"]]),x4={};function w4(a,l){return" 567 "}const _4=nr._export_sfc(x4,[["render",w4]]),S4={class:"module content"},E4={class:"module data"},C4={class:"module layout"},D4={class:"form-content"},T4=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const n=a,r=l,i=e.reactive({visible:!1,width:"40%",title:"签名配置"}),t=e.ref("create"),f=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),c=e.ref([{label:"宽度(%):",prop:"signPadWidth",type:"number",value:"30"},{label:"弹窗名称:",prop:"dialogTitle",type:"input",value:""},{label:"弹窗宽度(%):",prop:"dialogWidth",type:"number",value:"30"},{label:"弹窗显示:",prop:"dialogShow",type:"radio",contents:[{label:"显示",value:!0},{label:"隐藏",value:!1}],value:!1,isFormColHidden:!0},{label:"路径:",prop:"url",type:"input",value:"",isFormColHidden:!0}]),u=e.computed(()=>[{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"类型:",prop:"label",type:"select",contents:[{label:"电子签名",value:"电子签名"},{label:"签字版",value:"签字版"},{label:"上传签名",value:"上传签名"}],value:""},{label:"图标",prop:"icon",type:"inputPopover",value:""}]),m=e.ref({}),g=e.ref([]),_=()=>({comp:"Signature",compData:[{key:"signTypeList",contents:g.value},{key:"signConfig",contents:m.value}]}),p=A=>{var P;m.value=z.cloneDeep(A),r("change",(P=_())==null?void 0:P.compData)},M=A=>{var P,O;if((A==null?void 0:A.buttonName)==="确认"){const E=z.cloneDeep(A==null?void 0:A.content);switch(t.value){case"create":g.value.push({...E,index:((P=g.value)==null?void 0:P.length)+1});break}r("change",(O=_())==null?void 0:O.compData),i.visible=!1}else i.visible=!1},w=(A,P)=>{var O,E;switch(A){case"create":(O=u.value)==null||O.forEach(x=>{x.value=""}),t.value="create",i.visible=!0;break;case"update":(E=u.value)==null||E.forEach(x=>{x.value=P[x==null?void 0:x.prop]}),t.value="update",i.visible=!0;break;case"delete":g.value.splice(P,1),t.value="delete";break}},G=()=>{i.visible=!1};return e.watch(()=>n==null?void 0:n.itemContents,A=>{var P,O;A&&(m.value=((P=A==null?void 0:A.find(E=>E.key==="signConfig"))==null?void 0:P.contents)??{},g.value=((O=A==null?void 0:A.find(E=>E.key==="signTypeList"))==null?void 0:O.contents)??[])},{immediate:!0}),(A,P)=>{const O=e.resolveComponent("svg-icon"),E=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",S4,[P[2]||(P[2]=e.createElementVNode("h4",{class:"module-title"},"签名类型",-1)),e.createVNode(E,{class:"module-icon",id:"themeButton",onClick:P[0]||(P[0]=x=>w("create"))},{icon:e.withCtx(()=>[e.createVNode(O,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[P[1]||(P[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",E4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(x,S)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:S},[e.createElementVNode("span",null,e.toDisplayString(x==null?void 0:x.label),1),e.createElementVNode("div",null,[e.createVNode(E,{type:"primary",size:"small",onClick:b=>w("update",{...x,index:S+1})},{default:e.withCtx(()=>P[3]||(P[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(E,{type:"danger",size:"small",onClick:b=>w("delete",S)},{default:e.withCtx(()=>P[4]||(P[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",C4,[e.createVNode(fl.ssForm,{rowContents:c.value,onChange:p},null,8,["rowContents"])])]),e.createVNode(Mr.ssDialog,{visible:i.visible,title:i.title,onBeforeDestroy:G,width:i.width},{default:e.withCtx(()=>[e.createElementVNode("div",D4,[(e.openBlock(),e.createBlock(fl.ssForm,{rowContents:u.value,key:u.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:f.value,onOnButtonClick:M},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),B4=nr._export_sfc(T4,[["__scopeId","data-v-487e0536"]]),N4=e.defineComponent({__name:"index",props:{stepConfig:{type:Object,default:{}},stepList:{type:Array,default:()=>[]}},emits:["clickStep","clickTrigger","changeTrigger"],setup(a,{emit:l}){const n=a,r=l,i=e.ref(0),t=e.computed(()=>{var _,p;return(_=n==null?void 0:n.stepConfig)!=null&&_.allowTrigger?i.value:(p=n==null?void 0:n.stepConfig)==null?void 0:p.active}),f=(_,p)=>{i.value=p-1,r("clickStep",_,p)};e.onMounted(()=>{var _;r("clickStep",(_=n==null?void 0:n.stepList)==null?void 0:_[0],0)});const c=_=>fl.getComponent(_),u=()=>{var p;const _=(p=n==null?void 0:n.stepList)==null?void 0:p.find((M,w)=>w+1===t.value);return console.log("findStep",_),_?_==null?void 0:_.children:[]},m=_=>{r("clickTrigger",_)},g=_=>{r("changeTrigger",_)};return(_,p)=>{var G,A,P,O,E;const M=e.resolveComponent("el-step"),w=e.resolveComponent("el-steps");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(w,{direction:(G=a.stepConfig)==null?void 0:G.direction,active:t.value,"finish-status":"success",simple:(A=a.stepConfig)==null?void 0:A.simple,"align-center":((P=a.stepConfig)==null?void 0:P.alignCenter)??!0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.stepList,(x,S)=>(e.openBlock(),e.createBlock(M,{key:S,class:"step-item",onClick:b=>f(x,S+1)},{title:e.withCtx(()=>[e.renderSlot(_.$slots,"title",{title:x==null?void 0:x.title},void 0,!0)]),description:e.withCtx(()=>[e.renderSlot(_.$slots,"description",{descriptions:x==null?void 0:x.description},void 0,!0)]),_:2},1032,["onClick"]))),128))]),_:3},8,["direction","active","simple","align-center"]),(O=a.stepConfig)!=null&&O.allowTrigger&&((E=a.stepConfig)!=null&&E.active)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u(),(x,S)=>(e.openBlock(),e.createElementBlock("div",{key:S,class:"step-cont-wrap"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c(x==null?void 0:x.type)),{modelValue:x.value,"onUpdate:modelValue":b=>x.value=b,onClickTrigger:m,onChangeTrigger:g,content:x==null?void 0:x.content},e.createSlots({_:2},[e.renderList(_.$slots,(b,C)=>({name:C,fn:e.withCtx(R=>[e.renderSlot(_.$slots,C,e.mergeProps({ref_for:!0},R||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"]))]))),128)):e.createCommentVNode("",!0)],64)}}}),A4=nr._export_sfc(N4,[["__scopeId","data-v-a30ff621"]]),z4=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]}},emits:["clickStep"],setup(a,{emit:l}){const n=a,r=l,i=e.ref({}),t=e.ref([]),f=(c,u)=>{r("clickStep",c,u)};return e.watch(()=>n==null?void 0:n.itemData,c=>{var _,p,M,w;i.value={direction:"horizontal",simple:!1,alignCenter:!0,allowTrigger:!0};let u=((_=c==null?void 0:c.find(G=>(G==null?void 0:G.key)==="stepName"))==null?void 0:_.contents)??[],m=[];(M=(p=c==null?void 0:c.find(G=>(G==null?void 0:G.key)==="header"))==null?void 0:p.contents)==null||M.forEach(G=>{m.push({label:G==null?void 0:G.label,prop:G==null?void 0:G.prop,name:G==null?void 0:G.prop,type:"text",disabled:!0})});let g=((w=c==null?void 0:c.find(G=>(G==null?void 0:G.key)==="tableContents"))==null?void 0:w.contents)??[];u=u==null?void 0:u.map((G,A)=>{let P=m==null?void 0:m.map(O=>{var E;return{...O,value:(E=g==null?void 0:g[A])==null?void 0:E[O==null?void 0:O.prop]}});return{title:G,description:P}}),t.value=u},{immediate:!0,deep:!0}),(c,u)=>{const m=e.resolveComponent("svg-icon");return e.openBlock(),e.createBlock(A4,{stepConfig:i.value,stepList:t.value,onClickStep:f},{icon:e.withCtx(()=>[e.createVNode(m,{name:"import"})]),title:e.withCtx(({title:g})=>[e.createTextVNode(e.toDisplayString(g),1)]),description:e.withCtx(({descriptions:g})=>[e.createVNode(fl.ssForm,{ref:"formRef",rowContents:g,showOperator:!0,isEnableWrap:!1,isEdit:!1},null,8,["rowContents"])]),_:1},8,["stepConfig","stepList"])}}}),M4=e.defineComponent({__name:"index",props:{activities:{type:Array,default:()=>[]},timeLineConfig:{type:Object,default:()=>{}}},setup(a){return(l,n)=>{const r=e.resolveComponent("el-timeline-item"),i=e.resolveComponent("el-timeline");return e.openBlock(),e.createBlock(i,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.activities,(t,f)=>(e.openBlock(),e.createBlock(r,{key:f,timestamp:t.timestamp,placement:a.timeLineConfig.placement,center:a.timeLineConfig.isCenter,"hide-timestamp":!0,type:a.timeLineConfig.type,color:a.timeLineConfig.color,size:a.timeLineConfig.size,icon:a.timeLineConfig.icon,hollow:a.timeLineConfig.isHollow},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"content",{content:t==null?void 0:t.content,timestamp:t==null?void 0:t.timestamp},void 0,!0)]),_:2},1032,["timestamp","placement","center","type","color","size","icon","hollow"]))),128))]),_:3})}}}),I4=nr._export_sfc(M4,[["__scopeId","data-v-4172a886"]]),O4={class:"line-content"},L4={class:"line-time"},R4=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},setup(a){const l=a,n=e.ref({}),r=e.ref([]);return e.watch(()=>l==null?void 0:l.itemData,i=>{var t,f;r.value=(t=i==null?void 0:i.find(c=>(c==null?void 0:c.key)==="timeLineList"))==null?void 0:t.contents,n.value=(f=i==null?void 0:i.find(c=>(c==null?void 0:c.key)==="timeLineConfig"))==null?void 0:f.contents},{immediate:!0}),(i,t)=>(e.openBlock(),e.createBlock(I4,{activities:r.value,timeLineConfig:n.value},{content:e.withCtx(({content:f,timestamp:c})=>[e.createElementVNode("span",O4,e.toDisplayString(f),1),e.createElementVNode("span",L4,e.toDisplayString(c),1)]),_:1},8,["activities","timeLineConfig"]))}}),$4=nr._export_sfc(R4,[["__scopeId","data-v-b4d9deed"]]),V4={class:"tabs-content"},F4=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},tabsData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,compNames:{type:String,default:""},cacheNewData:{type:Object},isDevMode:{type:Boolean},allMapContents:{type:Array,default:()=>[]}},emits:["change","contentChange","pageChange","rowClick","routeUrl","clickTrigger","clickMainKey"],setup(a,{emit:l}){const n=a,r=l,i=e.ref();e.watch(()=>n==null?void 0:n.itemData,()=>{i.value=n==null?void 0:n.itemData},{immediate:!0,deep:!0});const t=p=>{r("change",p)},f=(p,M)=>{r("contentChange",p,M)},c=p=>{r("pageChange",p)},u=p=>{r("rowClick",p)},m=(p,M)=>{r("routeUrl",p,M)},g=p=>{r("clickTrigger",p)},_=(p,M)=>{r("clickMainKey",p,M)};return(p,M)=>{var w,G;return e.openBlock(),e.createElementBlock("div",V4,[(w=i.value)!=null&&w.length?(e.openBlock(),e.createBlock(fl.ssTab,{tabsContents:i.value,key:(G=i.value)==null?void 0:G.length},{pane:e.withCtx(({tab:A,index:P})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Xi)(A==null?void 0:A.comp)),{related:A==null?void 0:A.relatedTables,compNames:n==null?void 0:n.compNames,compName:A==null?void 0:A.name,cacheNewData:n==null?void 0:n.cacheNewData,isDevMode:a.isDevMode,itemData:A==null?void 0:A.compData,childItemData:A==null?void 0:A.itemChildData,onChange:t,index:(A==null?void 0:A.id)??P,config:{showIndex:A==null?void 0:A.showIndex,allowMove:A==null?void 0:A.allowMove,viewport:A==null?void 0:A.viewport,status:A==null?void 0:A.status},onContentChange:f,onPageChange:c,onRowClick:u,onRouteUrl:m,parentTableId:A==null?void 0:A.tableId,allMapContents:a.allMapContents,children:A==null?void 0:A.children,level:1,onClickTrigger:g,onClickMainKey:_},null,40,["related","compNames","compName","cacheNewData","isDevMode","itemData","childItemData","index","config","parentTableId","allMapContents","children"]))]),_:1},8,["tabsContents"])):e.createCommentVNode("",!0)])}}}),P4=nr._export_sfc(F4,[["__scopeId","data-v-1ea318b4"]]),j4={class:"type-select"},H4=["onClick"],U4={class:"list-icon"},q4={__name:"modelSelect",setup(a){const l=ai(z.pinia),{itemData:n}=z.storeToRefs(l),r=i=>{const t=z.cloneDeep(n.value);t.push({comp:i.comp,name:i.name,compData:[]}),l.setItemData(t)};return(i,t)=>{const f=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",j4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(fu),(c,u)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",key:u},[e.createElementVNode("div",{class:"list-content",onClick:m=>r(c)},[e.createElementVNode("div",U4,[e.createVNode(f,{name:c.icon},null,8,["name"])]),e.createElementVNode("div",null,e.toDisplayString(c.name),1)],8,H4)]))),128))])}}},W4=nr._export_sfc(q4,[["__scopeId","data-v-91799bf8"]]),K4={class:"fill-content"},G4={class:"operate-content"},Y4={class:"collapse-title-content"},J4={class:"collapse-title-item"},X4={key:1},Z4=["onClick"],Q4={class:"icon-content"},e2={key:0,class:"edit-content"},a2=["onClick"],l2={class:"comp-child"},r2={__name:"modelFill",setup(a){const l=ai(z.pinia),{itemData:n,originalData:r}=z.storeToRefs(l),i=e.ref([]);e.ref([]);const t=e.ref([]),f=e.ref([]),c=M=>{var G;let w=(G=z.cloneDeep(f.value))==null?void 0:G.map((A,P)=>(M===P&&(A.content=!0),A));f.value=w},u=M=>{var G;let w=(G=z.cloneDeep(f.value))==null?void 0:G.map((A,P)=>(M===P&&(A.content=!1),A));f.value=w,i.value=z.cloneDeep(n.value)},m=(M,w)=>{var O;let G=(O=z.cloneDeep(f.value))==null?void 0:O.map((E,x)=>(M===x&&(E.content=!1),E));f.value=G;const A=z.cloneDeep(n.value),P=A==null?void 0:A.filter((E,x)=>(x===M&&(E.name=w),E));l.setOriginalData(P),l.setItemData(P)};e.watch(()=>n.value,()=>{var M,w,G;!n.value||((M=n.value)==null?void 0:M.length)===0?i.value=[]:i.value=(w=z.cloneDeep(n.value))==null?void 0:w.filter(A=>(A==null?void 0:A.comp)!=="methodButton"),t.value=i.value,f.value=(G=z.cloneDeep(t.value))==null?void 0:G.map((A,P)=>({id:P,content:!1}))},{deep:!0,immediate:!0});const g=M=>Ii(M),_=(M,w,G)=>{var P,O;if(!M)return;let A=z.cloneDeep(n.value);A=(P=A==null?void 0:A.map((E,x)=>(x===G&&(E.compData=M),E)))==null?void 0:P.filter(E=>(E==null?void 0:E.comp)!=="methodButton"),f.value=(O=z.cloneDeep(A))==null?void 0:O.map((E,x)=>({id:x,content:!1})),l.setOriginalData(A),l.setItemData(A)},p=M=>{z.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const w=z.cloneDeep(n.value),G=w==null?void 0:w.filter((A,P)=>P!==M);l.setOriginalData(G),l.setItemData(G),Xa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(M,w)=>{const G=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",K4,[w[1]||(w[1]=e.createElementVNode("div",{class:"fill-operate"},e.toDisplayString("操作栏"),-1)),e.createElementVNode("div",G4,[e.createVNode(ic.default,{class:"collapse-content",collapseContents:i.value},{title:e.withCtx(({item:A,index:P})=>{var O,E,x,S,b,C,R,$,le,ee;return[e.createElementVNode("div",Y4,[e.createElementVNode("div",J4,[(E=(O=f.value)==null?void 0:O.find(_e=>_e.id===P))!=null&&E.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"collapse-title",style:e.normalizeStyle({marginRight:A.name&&A.name!==""?"8px":"0px"})},e.toDisplayString(A.name),5)),(S=(x=f.value)==null?void 0:x.find(_e=>_e.id===P))!=null&&S.content?(e.openBlock(),e.createElementBlock("div",X4,[e.createVNode(fl.ssInput,{modelValue:A.name,"onUpdate:modelValue":_e=>A.name=_e,onClick:w[0]||(w[0]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0),(C=(b=f.value)==null?void 0:b.find(_e=>_e.id===P))!=null&&C.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:e.withModifiers(_e=>c(P),["stop"]),class:"icon-content"},[e.createVNode(G,{name:"Edit",style:{width:"16px",height:"16px"}})],8,Z4))]),e.createElementVNode("div",Q4,[($=(R=f.value)==null?void 0:R.find(_e=>_e.id===P))!=null&&$.content?(e.openBlock(),e.createElementBlock("div",e2,[e.createVNode(G,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:e.withModifiers(_e=>u(P),["stop"])},null,8,["onClick"]),e.createVNode(G,{name:"Save",onClick:e.withModifiers(_e=>m(P,A.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):e.createCommentVNode("",!0),(ee=(le=f.value)==null?void 0:le.find(_e=>_e.id===P))!=null&&ee.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:e.withModifiers(_e=>p(P),["stop"]),class:"icon-content"},[e.createVNode(G,{name:"Delete",style:{width:"16px",height:"16px"}})],8,a2))])])]}),content:e.withCtx(({item:A,index:P})=>{var O,E;return[e.createElementVNode("div",l2,[e.createTextVNode(e.toDisplayString(g(A.comp+"Operate"))+" ",1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(g(A.comp+"Operate")),{itemContents:A==null?void 0:A.compData,originalItemContents:(E=(O=t.value)==null?void 0:O.find((x,S)=>S===P))==null?void 0:E.compData,onChange:x=>_(x,A,P)},null,40,["itemContents","originalItemContents","onChange"]))])]}),_:1},8,["collapseContents"])])])}}},n2=nr._export_sfc(r2,[["__scopeId","data-v-a46a44b9"]]),i2={key:0,class:"show-content"},o2={style:{display:"flex"}},t2={__name:"modelShow",setup(a){const l=ai(z.pinia),{itemData:n}=z.storeToRefs(l),r=e.ref([]);e.watch(()=>n.value,()=>{var t;!n.value||((t=n.value)==null?void 0:t.length)===0?r.value=[]:r.value=z.cloneDeep(n.value)},{deep:!0,immediate:!0});const i=t=>Ii(t);return(t,f)=>{var c;return((c=r.value)==null?void 0:c.length)>0?(e.openBlock(),e.createElementBlock("div",i2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(u,m)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:m},[e.createElementVNode("div",o2,e.toDisplayString(u.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i(u.comp)),{itemData:u==null?void 0:u.compData,childItemData:u==null?void 0:u.itemChildData,key:m},null,8,["itemData","childItemData"]))]))),128))])):e.createCommentVNode("",!0)}}},s2=nr._export_sfc(t2,[["__scopeId","data-v-3f3e863e"]]),c2={class:"tabs-header"},u2={class:"tabs-list"},d2={class:"tab-name"},p2={class:"tab-actions"},f2=["onClick"],h2=["onClick"],v2=["onClick"],m2={class:"model-operate"},y2={class:"model-select",style:{display:"unset"}},g2={class:"existing-components"},b2={class:"component-list"},k2=["onClick"],x2={class:"component-info"},w2={class:"component-type"},_2={class:"component-name"},S2={class:"model-fill"},E2={__name:"operate",props:{itemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const n=a,r=l,i=e.ref([]),t=e.ref(!1),f=e.ref(""),c=e.ref({title:""}),u=e.ref(-1),m=e.ref(!1),g=e.ref(-1),_=e.ref(new WeakMap),p=e.ref(null),M=ai(z.pinia),{itemData:w}=z.storeToRefs(M),G=()=>{f.value="新增标签页",c.value.title="",u.value=-1,t.value=!0},A=ce=>{f.value="修改标签页",c.value.title=i.value[ce].title,u.value=ce,t.value=!0},P=ce=>{const B=x(ce);_.value.delete(B),i.value.splice(ce,1),Re()},O=()=>{if(c.value.title.trim()){if(u.value===-1){const ce={title:c.value.title,value:c.value.title,label:c.value.title,children:[],id:E()};i.value.push(ce)}else i.value[u.value].title=c.value.title,i.value[u.value].value=c.value.title,i.value[u.value].label=c.value.title;t.value=!1,Re()}},E=()=>`tab_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,x=ce=>{const B=i.value[ce];return B.id||(B.id=E()),B.id},S=ce=>{var q;g.value=ce;const B=x(ce);p.value=z.cloneDeep(w.value);let te=_.value.get(B);!te&&((q=i.value[ce].children)==null?void 0:q.length)>0&&(te=$(i.value[ce].children)),te?M.setItemData(z.cloneDeep(te)):M.setItemData([]),m.value=!0},b=e.computed(()=>{const ce=z.useModelComp(z.pinia),B=z.storeToRefs(ce).itemData.value;return console.log("可用组件数据",B),!B||!Array.isArray(B)?[]:B.filter(te=>{var q;if(te.comp==="Tabs"&&g.value>=0){const xe=x(g.value);if((q=te.compData)==null?void 0:q.some($e=>{var Qe;return $e.key==="stepList"&&((Qe=$e.contents)==null?void 0:Qe.some(_a=>_a.id===xe))}))return!1}return!0})}),C=ce=>({Table:"表格",Form:"表单",Tabs:"标签页",Chart:"图表",Card:"卡片"})[ce]||ce,R=ce=>{var B;try{const te=z.cloneDeep(ce);te.id=Date.now()+Math.random(),te.comp==="Tabs"&&((B=te.compData)==null||B.forEach(xe=>{xe.key==="stepList"&&xe.contents&&xe.contents.forEach(Me=>{Me.id=E()})}));const q=z.cloneDeep(w.value);q.push(te),M.setItemData(q)}catch(te){console.error("添加组件失败:",te)}},$=ce=>ce.map(B=>{var te;switch(B.type){case"form":return{comp:"Form",name:B.value||"表单",compData:le(B.content)};case"table":return{comp:"Table",name:B.value||"表格",compData:ee(B.content)};default:return{comp:"Unknown",name:B.value||"",compData:((te=B.content)==null?void 0:te.originalData)||[]}}}),le=ce=>{if(!ce)return[];const B=[];return ce.rowContents&&B.push({key:"formContent",contents:ce.rowContents}),ce.buttonValue&&B.push({key:"formButton",contents:ce.buttonValue}),typeof ce.isEnableWrap<"u"&&B.push({key:"enableWrap",contents:ce.isEnableWrap}),B},ee=ce=>[],_e=()=>{if(g.value>=0&&g.value<i.value.length){const ce=x(g.value);_.value.set(ce,z.cloneDeep(w.value)),i.value[g.value].children=F(w.value),console.log("保存后的数据",F(w.value))}m.value=!1,g.value=-1,p.value=null,Re()},pe=()=>{p.value&&M.setItemData(z.cloneDeep(p.value)),m.value=!1,g.value=-1,p.value=null},H=()=>{m.value&&pe()},F=ce=>{if(!Array.isArray(ce))throw new Error("sourceData must be an array");return ce.map((B,te)=>{if(!B||typeof B!="object")return B;const{comp:q,name:xe,compData:Me}=B;switch(q){case"Form":return{type:"form",content:X(Me||[]),value:"表单"};case"Table":return{type:"table",content:re(Me||[]),value:"表格"};default:return{type:"xxx",content:ve(Me||[]),value:""}}})},X=ce=>{const B={formRules:{},rowContents:[],buttonValue:[],rowValues:[],isEnableWrap:!0,isRowFlex:!0,isButtonRow:!0,isEdit:!0,isStartJustify:!0},te={formContent:"rowContents",enableWrap:"isEnableWrap",formButton:"buttonValue"};return ce.forEach((q,xe)=>{if(!q||typeof q!="object"){console.warn(`Invalid config at index ${xe}:`,q);return}const{key:Me,contents:$e}=q,Qe=te[Me];if(!Qe){console.warn(`Unknown Form config key: ${Me}`);return}Me==="enableWrap"?B[Qe]=!!$e:B[Qe]=Array.isArray($e)?$e:[]}),B},re=ce=>{const B={columns:[],tableData:[],extraButton:[],rowButton:[],currentPage:0,total:0,pageSize:0,isShowPagination:!0,isShowEdit:!0,isMoveColumn:!0,isShowDelete:!0},te={header:"columns",tableContents:"tableData"};return ce.forEach((q,xe)=>{if(!q||typeof q!="object"){console.warn(`Invalid config at index ${xe}:`,q);return}const{key:Me,contents:$e}=q,Qe=te[Me];if(!Qe){console.warn(`Unknown Table config key: ${Me}`);return}B[Qe]=Array.isArray($e)?$e:[]}),B},ve=ce=>(console.log("Default conversion logic - to be implemented"),{originalData:ce,processed:!1,componentType:"unknown"}),Re=()=>{const ce=[{key:"stepList",contents:i.value}];r("change",ce)};return e.watch(()=>n.itemContents,ce=>{if(ce&&ce.length>0){const B=ce.find(te=>te.key==="stepList");B&&B.contents&&(i.value=B.contents.map(te=>({title:te.title||"",value:te.value||te.title||"",label:te.label||te.title||"",children:te.children||[],id:te.id||E()})))}},{immediate:!0,deep:!0}),(ce,B)=>{const te=e.resolveComponent("svg-icon"),q=e.resolveComponent("el-input"),xe=e.resolveComponent("el-form-item"),Me=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",c2,[B[6]||(B[6]=e.createElementVNode("h4",null,"标签页管理",-1)),e.createElementVNode("button",{onClick:G},[e.createVNode(te,{name:"Plus",style:{width:"14px",height:"14px","margin-right":"4px"}}),B[5]||(B[5]=e.createTextVNode(" 新增标签页 "))])]),e.createElementVNode("div",u2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,($e,Qe)=>(e.openBlock(),e.createElementBlock("div",{class:"tab-item",key:Qe},[e.createElementVNode("span",d2,e.toDisplayString($e.title),1),e.createElementVNode("div",p2,[e.createElementVNode("button",{onClick:_a=>A(Qe)},"修改标题",8,f2),e.createElementVNode("button",{onClick:_a=>S(Qe)},"布局调整",8,h2),e.createElementVNode("button",{onClick:_a=>P(Qe)},"删除",8,v2)])]))),128))]),e.createVNode(Mr.ssDialog,{modelValue:t.value,"onUpdate:modelValue":B[2]||(B[2]=$e=>t.value=$e),title:f.value,onBeforeDestroy:B[3]||(B[3]=$e=>t.value=!1)},{footer:e.withCtx(()=>[e.createElementVNode("button",{onClick:B[1]||(B[1]=$e=>t.value=!1)},"取消"),e.createElementVNode("button",{type:"primary",onClick:O},"确定")]),default:e.withCtx(()=>[e.createVNode(Me,{model:c.value,"label-width":"80px"},{default:e.withCtx(()=>[e.createVNode(xe,{label:"标签名称",required:""},{default:e.withCtx(()=>[e.createVNode(q,{modelValue:c.value.title,"onUpdate:modelValue":B[0]||(B[0]=$e=>c.value.title=$e),placeholder:"请输入标签页名称"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),e.createVNode(Mr.ssDialog,{modelValue:m.value,"onUpdate:modelValue":B[4]||(B[4]=$e=>m.value=$e),title:"布局调整",fullScreen:"",onBeforeDestroy:H},{footer:e.withCtx(()=>[e.createElementVNode("button",{onClick:pe},"取消"),e.createElementVNode("button",{onClick:_e},"确定")]),default:e.withCtx(()=>[e.createElementVNode("div",m2,[e.createElementVNode("div",y2,[e.createVNode(W4),e.createElementVNode("div",g2,[B[8]||(B[8]=e.createElementVNode("h5",null,"添加已有组件",-1)),e.createElementVNode("div",b2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,$e=>(e.openBlock(),e.createElementBlock("div",{key:$e.id,class:"component-item",onClick:Qe=>R($e)},[e.createElementVNode("div",x2,[e.createElementVNode("span",w2,e.toDisplayString(C($e.comp)),1),e.createElementVNode("span",_2,e.toDisplayString($e.name),1)]),B[7]||(B[7]=e.createElementVNode("button",{class:"add-btn"},"添加",-1))],8,k2))),128))])])]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:ce.innerWidth},[e.createVNode(s2)])),e.createElementVNode("div",S2,[e.createVNode(n2)])])]),_:1},8,["modelValue"])])}}},C2=nr._export_sfc(E2,[["__scopeId","data-v-9096ed0d"]]);function D2(){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 T2(a){return{type:"line",color:["#5070DD","#B6D634","#505372","#FF994E","#0CA8DF","#FFD10A","#FB628B","#8466C1","#3EBE95"],...a}}function B2(){return{title:{text:"",left:"center",top:10,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",data:[]},yAxis:[{type:"value"}],series:[]}}function N2(a){return{type:"bar",barWidth:"60%",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.1)"},itemStyle:{color:new Hl.LinearGradient(0,0,0,1,[{offset:0,color:"#94C2FD"},{offset:.7,color:"#6491E1"},{offset:1,color:"#3264C8"}])},emphasis:{itemStyle:{color:new Hl.LinearGradient(0,0,0,1,[{offset:0,color:"#3264C8"},{offset:.7,color:"#6491E1"},{offset:1,color:"#94C2FD"}])}},...a}}function A2(){return{title:{text:"",left:"center"},tooltip:{trigger:"item"},series:[]}}function z2(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 M2=()=>({title:{text:"",left:"center"},tooltip:{trigger:"item"},xAxis:{scale:!0},yAxis:{scale:!0},series:[]}),I2=a=>({type:"scatter",symbolSize:20,...a}),Cn={Line:{initBaseoptions:D2,initSeries:T2},Bar:{initBaseoptions:B2,initSeries:N2},Pie:{initBaseoptions:A2,initSeries:z2},Scatter:{initBaseoptions:M2,initSeries:I2}},O2=async({chartBaseConfig:a,chartDataConfig:l,chartDetailConfig:n})=>{const{type:r,title:i}=a||{},t=Cn==null?void 0:Cn[r];if(!t)return;const{initBaseoptions:f,initSeries:c}=t,u=f();u.title.text=i??"";const m=l==null?void 0:l.map(p=>p==null?void 0:p.prop);let g=[];if(m==null||m.forEach(p=>{var M;g.push((M=n==null?void 0:n[0])==null?void 0:M[p])}),!m||!g)return u;u.xAxis.data=m;const _=c({data:g});return u.series.push(_),u},L2=async({chartBaseConfig:a,chartDataConfig:l,chartDetailConfig:n})=>{const{type:r,title:i}=a||{},t=Cn==null?void 0:Cn[r];if(!t)return;const{initBaseoptions:f,initSeries:c}=t,u=f();u.title.text=i??"";const m=l==null?void 0:l.map(p=>p==null?void 0:p.prop);let g=[];if(m==null||m.forEach(p=>{var M;g.push((M=n==null?void 0:n[0])==null?void 0:M[p])}),!m||!g)return u;u.xAxis.data=m;const _=c({data:g});return u.series.push(_),u},R2=async({chartBaseConfig:a,chartDataConfig:l,chartDetailConfig:n})=>{const{type:r,title:i}=a||{},t=Cn==null?void 0:Cn[r];if(!t)return;const{initBaseoptions:f,initSeries:c}=t,u=f();u.title.text=i??"";const m=l==null?void 0:l.map(M=>M==null?void 0:M.prop);let g=[];if(m==null||m.forEach(M=>{var w;g.push((w=n==null?void 0:n[0])==null?void 0:w[M])}),!m||!g)return u;const _=[];for(let M=0;M<m.length;M++){const w=m[M],G=g[M];_.push({name:w,value:G})}const p=c({data:_});return u.series.push(p),u},$2=({chartBaseConfig:a,chartDataConfig:l,chartDetailConfig:n})=>{const{type:r,title:i}=a||{},t=Cn==null?void 0:Cn[r];if(!t)return;const{initBaseoptions:f,initSeries:c}=t,u=f();u.title.text=i??"";let m=[];const g=l==null?void 0:l.map(M=>M==null?void 0:M.prop);if(m=g==null?void 0:g.map(M=>{var G;let w=[];return w.push(M),w.push((G=n==null?void 0:n[0])==null?void 0:G[M]),w}),!m)return u;const p=c({data:m});return u.series.push(p),u},V2=async(a=[])=>{var f,c,u;const l=((f=a==null?void 0:a.find(m=>m.key==="ChartType"))==null?void 0:f.contents)??{},n=((c=a==null?void 0:a.find(m=>m.key==="header"))==null?void 0:c.contents)??[],r=((u=a==null?void 0:a.find(m=>m.key==="tableContents"))==null?void 0:u.contents)??[];let{type:i}=l,t={};return i==="Line"&&(t=await O2({chartBaseConfig:l,chartDataConfig:n,chartDetailConfig:r})),i==="Bar"&&(t=await L2({chartBaseConfig:l,chartDataConfig:n,chartDetailConfig:r})),i==="Pie"&&(t=await R2({chartBaseConfig:l,chartDataConfig:n,chartDetailConfig:r})),i==="Scatter"&&(t=await $2({chartBaseConfig:l,chartDataConfig:n,chartDetailConfig:r})),t},F2=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}},height:{type:String,default:"300px"}},setup(a){const l=a,n=e.ref({});e.onMounted(async()=>{const i=l==null?void 0:l.itemData;n.value=await V2(i)});const r=e.computed(()=>(l==null?void 0:l.height)||"300px");return(i,t)=>(e.openBlock(),e.createElementBlock("div",{class:"eCharts",style:e.normalizeStyle({height:r.value})},[e.createVNode(Pu.ssChart,{optionContents:n.value},null,8,["optionContents"])],4))}}),P2=nr._export_sfc(F2,[["__scopeId","data-v-d4c081e8"]]),j2={class:"chart-module layout"},H2={class:"chart-module content"},U2={class:"chart-module content"},q2={class:"form-content"},W2={class:"dialog-footer"},K2={class:"form-content"},G2={class:"dialog-footer"},Y2={class:"form-content"},J2={class:"dialog-footer"},X2=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const n=a,r=l,i=e.reactive({visible:!1,width:"840",title:"基础配置"}),t=e.ref([]),f=()=>[{label:"类型",prop:"type",type:"select",contents:[{label:"柱状图",value:"bar"},{label:"饼图",value:"pie"},{label:"折线图",value:"line"}],value:""},{label:"标题",prop:"title",type:"input",value:""}],c=e.ref({}),u=()=>{var Ae;t.value=f(),(Ae=t.value)==null||Ae.forEach(ue=>{var Ge;const he=ue==null?void 0:ue.prop;ue.value=(Ge=c==null?void 0:c.value)==null?void 0:Ge[he]}),i.visible=!0},m=Ae=>{c.value=Ae},g=()=>{var Ae;i.visible=!1,r("change",(Ae=de())==null?void 0:Ae.compData)},_=e.reactive({visible:!1,width:"840",title:"数据配置"}),p=e.ref([]),M=()=>[{label:"菜单选项",prop:"menu",type:"cascader",contents:[]},{label:"组信息选项",prop:"group",type:"select",contents:[]},{label:"名称列",prop:"nameCol",type:"select",contents:[]},{label:"取值列",prop:"valueCol",type:"select",contents:[]}],w=e.ref({}),G=()=>{const Ae=p.value,ue=z.cloneDeep(Ae);return ue==null||ue.forEach(he=>{var wa;const Ge=he==null?void 0:he.prop;he.value=(wa=w.value)==null?void 0:wa[Ge]}),ue},A=Ae=>{var he;w.value=Ae;const ue=G();p.value=ue,r("change",(he=de())==null?void 0:he.compData)},P=async()=>{const Ae=await ie.getMenusContent(),ue=G();ue==null||ue.forEach(he=>{(he==null?void 0:he.prop)==="menu"&&(he.contents=Ae)}),p.value=ue,_.visible=!0,await $e(w.value.menu),await oe(w.value.group)},O=e.reactive({visible:!1,width:"840",title:"详情页配置"}),E=e.ref([]),x=()=>[{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:[]}],S=e.ref({}),b=()=>{const Ae=E.value,ue=z.cloneDeep(Ae);return ue==null||ue.forEach(he=>{var wa;const Ge=he==null?void 0:he.prop;he.value=(wa=S.value)==null?void 0:wa[Ge]}),ue},C=Ae=>{var he;S.value=Ae;const ue=b();E.value=ue,r("change",(he=de())==null?void 0:he.compData)},R=async()=>{await H();const Ae=z.cloneDeep($.value),ue=b();ue==null||ue.forEach(he=>{var wa;const Ge=he==null?void 0:he.prop;he.value=(wa=S==null?void 0:S.value)==null?void 0:wa[Ge],Ge==="mainKey"&&(he.contents=Ae)}),E.value=ue,O.visible=!0},$=e.ref([]),le=e.ref([]),ee=e.ref({}),_e=e.ref({}),pe=()=>{const{compData:Ae}=q.value||{},ue=Ae==null?void 0:Ae.find(Q=>{const{key:fe}=Q;return fe==="header"}),he=(ue==null?void 0:ue.contents)||[],Ge=he==null?void 0:he.filter((Q,fe)=>{const{label:me}=Q;return me!=="操作"}),wa=Ge==null?void 0:Ge.findIndex((Q,fe)=>{const{isMainKey:me}=Q;return me});if(wa<0)return[];const Ia=Ae==null?void 0:Ae.find(Q=>{const{key:fe}=Q;return fe==="tableContents"}),U=(Ia==null?void 0:Ia.contents)||[];return U==null?void 0:U.map(Q=>{const fe=Q==null?void 0:Q[0];let me=wa;Xa.isObject(fe)&&(fe!=null&&fe.id)&&(me=me+1);const ua=Q==null?void 0:Q[me];return{label:ua,value:ua}})},H=async()=>{const Ae=await pe();$.value=Ae},F=async Ae=>{const ue=sessionStorage.getItem("systemKey");return await ie.getItemData(Ae,ue,"")},X=async Ae=>{const ue=Ae;le.value=ue==null?void 0:ue.map(he=>{const{name:Ge}=he;return ee.value[Ge]=he,{label:Ge,value:Ge}})},re=Ae=>{const{comp:ue,compData:he}=_e.value||{};if(ue==="Table"){let Ge=b();Ge=Ge.filter(wa=>{const{prop:Ia}=wa;return Ia!=="formItems"}),Qe(Ge,he),E.value=Ge}},ve=async()=>{var he,Ge;const Ae=(he=S==null?void 0:S.value)==null?void 0:he.mainKey,ue=(Ge=w==null?void 0:w.value)==null?void 0:Ge.menu;if(Ae){const Ia=`${ue==null?void 0:ue.join("/")}^${Ae}`,U=await F(Ia);await X(U);const V=b();V==null||V.forEach(Q=>{(Q==null?void 0:Q.prop)==="group"&&(Q.contents=le.value)}),E.value=V}};e.watch(()=>{var Ae;return(Ae=S==null?void 0:S.value)==null?void 0:Ae.mainKey},async(Ae,ue)=>{Ae!=ue&&Ae&&await ve()});const Re=async Ae=>{const ue=ee.value[Ae];_e.value=ue,await re()};e.watch(()=>{var Ae;return(Ae=S==null?void 0:S.value)==null?void 0:Ae.group},async(Ae,ue)=>{Ae!=ue&&Ae&&Re(Ae)});const ce=async()=>{var ue;await ve();const Ae=(ue=S.value)==null?void 0:ue.group;await Re(Ae)},B=e.ref([]),te=e.ref({}),q=e.ref({}),xe=async Ae=>{const ue=Ae==null?void 0:Ae.join("/"),he=sessionStorage.getItem("systemKey");return await ie.getItemData(ue,he,"")},Me=async Ae=>{const ue=await xe(Ae);B.value=ue==null?void 0:ue.map(he=>{const{name:Ge}=he;return te.value[Ge]=he,{label:Ge,value:Ge}})},$e=async(Ae,ue)=>{await Me(Ae);const he=G();he==null||he.forEach(Ge=>{(Ge==null?void 0:Ge.prop)==="group"&&(Ge.contents=B.value)}),p.value=he};e.watch(()=>{var Ae;return(Ae=w==null?void 0:w.value)==null?void 0:Ae.menu},async(Ae,ue)=>{const he=Ae==null?void 0:Ae.join("/"),Ge=ue==null?void 0:ue.join("/");he!=Ge&&await $e(Ae)});const Qe=(Ae,ue)=>{const he=ue==null?void 0:ue.find(U=>{const{key:V}=U;return V==="header"}),Ge=(he==null?void 0:he.contents)||[],wa=Ge==null?void 0:Ge.filter((U,V)=>{const{label:Q}=U;return Q!=="操作"}),Ia=wa==null?void 0:wa.map((U,V)=>{const{label:Q}=U;return{label:Q,value:V}});Ae==null||Ae.forEach(U=>{const V=U==null?void 0:U.prop;(V==="nameCol"||V==="valueCol")&&(U.contents=Ia)})},_a=Ae=>{const{comp:ue,compData:he}=q.value||{};if(ue==="Table"){w.value.formItems=[];let Ge=G();Ge=Ge.filter(wa=>{const{prop:Ia}=wa;return Ia!=="formItems"}),Qe(Ge,he),p.value=Ge}},oe=async Ae=>{const ue=te.value[Ae];q.value=ue,await _a()};e.watch(()=>{var Ae;return(Ae=w==null?void 0:w.value)==null?void 0:Ae.group},async(Ae,ue)=>{Ae!=ue&&oe(Ae)});const sa=async()=>{var he,Ge;const Ae=(he=w.value)==null?void 0:he.menu;await $e(Ae);const ue=(Ge=w.value)==null?void 0:Ge.group;await oe(ue)},de=()=>({comp:"chart",compData:[{key:"chartBaseConfig",contents:c.value},{key:"chartDataConfig",contents:w.value},{key:"chartDetailConfig",contents:S.value}]}),ea=()=>{i.visible=!1,_.visible=!1,O.visible=!1};return e.onMounted(async()=>{var ue,he,Ge;p.value=M(),E.value=x();const Ae=n==null?void 0:n.itemContents;c.value=((ue=Ae==null?void 0:Ae.find(wa=>wa.key==="chartBaseConfig"))==null?void 0:ue.contents)??{},w.value=((he=Ae==null?void 0:Ae.find(wa=>wa.key==="chartDataConfig"))==null?void 0:he.contents)??{},await sa(),S.value=((Ge=Ae==null?void 0:Ae.find(wa=>wa.key==="chartDetailConfig"))==null?void 0:Ge.contents)??{},await ce()}),(Ae,ue)=>{const he=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",j2,[ue[4]||(ue[4]=e.createElementVNode("div",{class:"module-title"},"基础配置",-1)),e.createVNode(he,{id:"themeButton",onClick:ue[0]||(ue[0]=Ge=>u())},{default:e.withCtx(()=>ue[3]||(ue[3]=[e.createTextVNode(" 修改 ")])),_:1,__:[3]})]),e.createElementVNode("div",H2,[ue[6]||(ue[6]=e.createElementVNode("h4",{class:"module-title"},"数据配置",-1)),e.createVNode(he,{id:"themeButton",onClick:ue[1]||(ue[1]=Ge=>P())},{default:e.withCtx(()=>ue[5]||(ue[5]=[e.createTextVNode(" 修改 ")])),_:1,__:[5]})]),e.createElementVNode("div",U2,[ue[8]||(ue[8]=e.createElementVNode("h4",{class:"module-title"},"详情数据配置",-1)),e.createVNode(he,{id:"themeButton",onClick:ue[2]||(ue[2]=Ge=>R())},{default:e.withCtx(()=>ue[7]||(ue[7]=[e.createTextVNode(" 修改 ")])),_:1,__:[7]})])]),e.createVNode(Mr.ssDialog,{visible:i.visible,title:i.title,onBeforeDestroy:ea,width:i.width},{default:e.withCtx(()=>[e.createElementVNode("div",q2,[(e.openBlock(),e.createBlock(fl.ssForm,{rowContents:t.value,key:t.value,isEnableWrap:!0,onChange:m},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",W2,[e.createVNode(he,{class:"cancel-button button",onClick:ea,id:"themeBorderButton"},{default:e.withCtx(()=>ue[9]||(ue[9]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[9]}),e.createVNode(he,{class:"ok-button button",onClick:g,id:"themeButton"},{default:e.withCtx(()=>ue[10]||(ue[10]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[10]})])]),_:1},8,["visible","title","width"]),e.createVNode(Mr.ssDialog,{visible:_.visible,title:_.title,onBeforeDestroy:ea,width:_.width},{default:e.withCtx(()=>[e.createElementVNode("div",K2,[(e.openBlock(),e.createBlock(fl.ssForm,{rowContents:p.value,key:p.value,isEnableWrap:!0,onChange:A},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",G2,[e.createVNode(he,{class:"cancel-button button",onClick:ea,id:"themeBorderButton"},{default:e.withCtx(()=>ue[11]||(ue[11]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[11]}),e.createVNode(he,{class:"ok-button button",onClick:ea,id:"themeButton"},{default:e.withCtx(()=>ue[12]||(ue[12]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible","title","width"]),e.createVNode(Mr.ssDialog,{visible:O.visible,title:O.title,onBeforeDestroy:ea,width:O.width},{default:e.withCtx(()=>[e.createElementVNode("div",Y2,[(e.openBlock(),e.createBlock(fl.ssForm,{rowContents:E.value,key:E.value,isEnableWrap:!0,onChange:C},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",J2,[e.createVNode(he,{class:"cancel-button button",onClick:ea,id:"themeBorderButton"},{default:e.withCtx(()=>ue[13]||(ue[13]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[13]}),e.createVNode(he,{class:"ok-button button",onClick:ea,id:"themeButton"},{default:e.withCtx(()=>ue[14]||(ue[14]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible","title","width"])],64)}}}),Z2=nr._export_sfc(X2,[["__scopeId","data-v-fe119645"]]),Q2={class:"layout"},e1=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["rowClick"],setup(a,{emit:l}){const n=l,r=a;e.onMounted(async()=>{});const i=e.computed(()=>z.cloneDeep(r==null?void 0:r.itemData)||[]),t=e.computed(()=>{var g;const m=(g=i==null?void 0:i.value)==null?void 0:g.find(_=>{const{key:p}=_;return p==="baseConfig"});return m==null?void 0:m.contents}),f=e.computed(()=>{var g;const m=(g=i==null?void 0:i.value)==null?void 0:g.find(_=>{const{key:p}=_;return p==="children"});return m==null?void 0:m.contents}),c=e.computed(()=>{let m=z.cloneDeep(f.value)||[];const g=m.length;let _=0;const p=[];if(m=m.map(M=>{const w=M.span;return w?(M.span=Number(w),_=_+M.span):p.push(M),M}),_<24){const M=Math.floor((24-_)/g);p.forEach(w=>{w.span=M})}return m}),u=m=>{n("rowClick",m)};return(m,g)=>{var M;const _=e.resolveComponent("el-col"),p=e.resolveComponent("el-row");return e.openBlock(),e.createElementBlock("div",Q2,[e.createVNode(p,{style:e.normalizeStyle({height:(M=t.value)==null?void 0:M.height})},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(w,G)=>(e.openBlock(),e.createBlock(_,{span:w==null?void 0:w.span},{default:e.withCtx(()=>{var A;return[e.unref(Mi)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Xi)(w.comp)),{key:e.unref(ei),compName:w.name,index:(w==null?void 0:w.id)??G,height:(A=t.value)==null?void 0:A.height,itemData:w==null?void 0:w.compData,childItemData:w==null?void 0:w.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"])])}}}),a1=nr._export_sfc(e1,[["__scopeId","data-v-ab9a36ed"]]),l1={class:"layout-operate"},r1={class:"layout-module"},n1={class:"collapse-title-item"},i1={class:"collapse-title"},o1={class:"icon-content"},s1=["onClick"],c1={class:"comp-child"},u1=e.defineComponent({__name:"operate",props:{itemContents:{type:Object,default:()=>{}},originalItemContents:{type:Array,default:()=>[]},itemChildData:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const n=a,r=l;e.onMounted(()=>{G()});const i=e.ref({}),t=e.ref({}),f=e.ref([]),c=S=>[{label:"高度",prop:"height",type:"input",value:S==null?void 0:S.height}],u=S=>{t.value=S,r("change",x(),!0)},m=e.ref([]),g=e.ref([]),_=S=>[{label:"占比",prop:"span",type:"input",value:S==null?void 0:S.span}],p=e.computed(()=>{const S=n==null?void 0:n.itemContents;return z.cloneDeep(S)}),M=e.computed(()=>{const S=p==null?void 0:p.value,b=S==null?void 0:S.find(C=>{const{key:R}=C;return R==="baseConfig"});return b==null?void 0:b.contents}),w=e.computed(()=>{const S=p==null?void 0:p.value,b=S==null?void 0:S.find(C=>{const{key:R}=C;return R==="children"});return b==null?void 0:b.contents}),G=()=>{var S;i.value=p.value||{},m.value=(w==null?void 0:w.value)||[],f.value=c(),f.value=(S=f.value)==null?void 0:S.map(b=>{var R;const{prop:C}=b;return b.value=(R=M.value)==null?void 0:R[C],b})};e.watch(()=>{var S;return(S=w==null?void 0:w.value)==null?void 0:S.length},()=>{var S;m.value=(w==null?void 0:w.value)||[],g.value=(S=w.value)==null?void 0:S.map(b=>_(b))},{immediate:!0});const A=(S,b)=>{const C=z.cloneDeep(w==null?void 0:w.value);C[b].span=S.span,m.value=C,r("change",x(),!0)},P=S=>Ii(S),O=(S,b,C)=>{if(!S)return;const R=z.cloneDeep(w==null?void 0:w.value);R[C]&&(R[C].compData=S,m.value=R,r("change",x(),!0))},E=S=>{z.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{let b=z.cloneDeep(w==null?void 0:w.value);b=b==null?void 0:b.filter((C,R)=>S!==R),m.value=b,r("change",x(),!0),Xa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},x=()=>({compData:[{key:"baseConfig",contents:t.value},{key:"children",contents:m==null?void 0:m.value}]});return(S,b)=>{const C=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",l1,[e.createElementVNode("div",r1,[b[1]||(b[1]=e.createElementVNode("div",{class:"module-title"},"基础配置",-1)),e.createElementVNode("div",null,[e.createVNode(fl.ssForm,{rowContents:f.value,isEnableWrap:!0,onChange:b[0]||(b[0]=R=>u(R))},null,8,["rowContents"])])]),e.createVNode(ic.default,{class:"collapse-content",collapseContents:w.value},{title:e.withCtx(({item:R,index:$})=>[e.createElementVNode("div",n1,[e.createElementVNode("div",i1,e.toDisplayString(R.name),1),e.createElementVNode("div",o1,[e.createElementVNode("div",{onClick:e.withModifiers(le=>E($),["stop"]),class:"icon-content"},[e.createVNode(C,{name:"Delete",style:{width:"16px",height:"16px"}})],8,s1)])])]),content:e.withCtx(({item:R,index:$})=>[e.createElementVNode("div",c1,[e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(fl.ssForm,{rowContents:g.value[$],key:$,isEnableWrap:!0,onChange:le=>A(le,$)},null,8,["rowContents","onChange"]))]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(P(R.comp+"Operate")),{itemContents:R==null?void 0:R.compData,originalItemContents:R.compData,onChange:le=>O(le,R,$)},null,40,["itemContents","originalItemContents","onChange"]))])]),_:1},8,["collapseContents"])])}}}),d1=nr._export_sfc(u1,[["__scopeId","data-v-ba05456e"]]),p1=typeof window<"u";var zs;p1&&((zs=window==null?void 0:window.navigator)!=null&&zs.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function xn(a){return a==null}function Kc(){}const f1=Object.freeze({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"});Object.freeze(new Set(Object.keys(f1)));function h1(){const a=new Map;return{on(l,n){const r=a.get(l);r!=null&&r.add(n)||a.set(l,new Set([n]))},off(l,n){const r=a.get(l);r&&r.delete(n)},clear(l){const n=a.get(l);n&&n.clear()},clearAll(){a.clear()},emit(l,...n){const r=a.get(l);r&&r.forEach(i=>{i(...n)})}}}function Ms(a,l=16){if(typeof a!="function")return Kc;const n=(...t)=>{a(...t)};if(l<=0)return Gc(n);let r=0,i;return function(...t){const f=Date.now(),c=f-r;clearTimeout(i),c>=l?(r=f,n(...t)):i=setTimeout(()=>{r=Date.now(),n(...t)},Math.max(0,l-c))}}function v1(a,l=100){if(typeof a!="function")return Kc;const n=(...i)=>{a(...i)};if(l<=0)return Gc(n);let r;return function(...i){clearTimeout(r),r=setTimeout(()=>{n(...i)},l)}}function Gc(a){if(typeof a!="function")return a;let l=!1,n,r;return function(...i){return n=i,l||(l=!0,r=Promise.resolve().then(()=>(l=!1,r=void 0,a(...n)))),r}}const Ki=new Set,Yc=new WeakMap;function m1(){Ki.forEach(a=>{a(...Yc.get(a))}),Ki.clear()}function pn(a,...l){if(typeof a!="function")return a;Yc.set(a,l),!Ki.has(a)&&(Ki.add(a),Ki.size===1&&Promise.resolve().then(m1))}const Jc=Symbol("LAYOUT_KEY"),Xc=Symbol("EMITTER_KEY");function y1(a){let l=0,n;for(let r=0,i=a.length;r<i;r++)n=a[r].y+a[r].h,n>l&&(l=n);return l}function At(a){const l=Array(a.length);for(let n=0,r=a.length;n<r;n++)l[n]=g1(a[n]);return l}function g1(a){return{...a}}function Zc(a,l){return!(a===l||a.x+a.w<=l.x||a.x>=l.x+l.w||a.y+a.h<=l.y||a.y>=l.y+l.h)}function Ti(a,l,n){const r=eu(a),i=au(a),t=Array(a.length);for(let f=0,c=i.length;f<c;f++){let u=i[f];u.static||(u=b1(r,u,l,n),r.push(u)),t[a.findIndex(m=>m.i===u.i)]=u,u.moved=!1}return t}function b1(a,l,n,r){if(n)for(;l.y>0&&!Gi(a,l);)l.y--;else if(r){const t=r[l.i].y;for(;l.y>t&&!Gi(a,l);)l.y--}let i;for(;i=Gi(a,l);)l.y=i.y+i.h;return l}function k1(a,l){const n=eu(a);for(let r=0,i=a.length;r<i;r++){const t=a[r];if(t.x+t.w>l.cols&&(t.x=l.cols-t.w),t.x<0&&(t.x=0,t.w=l.cols),!t.static)n.push(t);else for(;Gi(n,t);)t.y++}return a}function Is(a,l){for(let n=0,r=a.length;n<r;n++)if(a[n].i===l)return a[n]}function Gi(a,l){for(let n=0,r=a.length;n<r;n++)if(Zc(a[n],l))return a[n]}function Qc(a,l){return a.filter(n=>Zc(n,l))}function eu(a){return a.filter(l=>l.static)}function zt(a,l,n,r,i=!1,t=!1){if(l.static)return a;const f=l.x,c=l.y,u=r&&l.y>r;typeof n=="number"&&(l.x=n),typeof r=="number"&&(l.y=r),l.moved=!0;let m=au(a);u&&(m=m.reverse());const g=Qc(m,l);if(t&&g.length)return l.x=f,l.y=c,l.moved=!1,a;for(let _=0,p=g.length;_<p;_++){const M=g[_];M.moved||l.y>M.y&&l.y-M.y>M.h/4||(M.static?a=Os(a,M,l,i):a=Os(a,l,M,i))}return a}function Os(a,l,n,r){if(r){const i={x:n.x,y:n.y,w:n.w,h:n.h};if(i.y=Math.max(l.y-n.h,0),!Gi(a,i))return zt(a,n,void 0,i.y,!1)}return zt(a,n,void 0,n.y+1,!1)}function x1(a,l,n,r){const i="translate3d("+l+"px,"+a+"px, 0)";return{transform:i,WebkitTransform:i,MozTransform:i,msTransform:i,OTransform:i,width:n+"px",height:r+"px",position:"absolute"}}function w1(a,l,n,r){const i="translate3d("+l*-1+"px,"+a+"px, 0)";return{transform:i,WebkitTransform:i,MozTransform:i,msTransform:i,OTransform:i,width:n+"px",height:r+"px",position:"absolute"}}function _1(a,l,n,r){return{top:a+"px",left:l+"px",width:n+"px",height:r+"px",position:"absolute"}}function S1(a,l,n,r){return{top:a+"px",right:l+"px",width:n+"px",height:r+"px",position:"absolute"}}function au(a){return Array.from(a).sort(function(l,n){return l.y===n.y&&l.x===n.x?0:l.y>n.y||l.y===n.y&&l.x>n.x?1:-1})}function E1(a,l){l=l||"Layout";const n=["x","y","w","h"],r=[];if(!Array.isArray(a))throw new Error(l+" must be an array!");for(let i=0,t=a.length;i<t;i++){const f=a[i];for(let c=0;c<n.length;c++)if(typeof f[n[c]]!="number")throw new Error("VueGridLayout: "+l+"["+i+"]."+n[c]+" must be a number!");if(f.i===void 0||f.i===null)throw new Error("VueGridLayout: "+l+"["+i+"].i cannot be null!");if(typeof f.i!="number"&&typeof f.i!="string")throw new Error("VueGridLayout: "+l+"["+i+"].i must be a string or number!");if(r.indexOf(f.i)>=0)throw new Error("VueGridLayout: "+l+"["+i+"].i must be unique!");if(r.push(f.i),f.static!==void 0&&typeof f.static!="boolean")throw new Error("VueGridLayout: "+l+"["+i+"].static must be a boolean!")}}function C1(a,l="vgl"){const n=()=>`${l}-${a}`;return{b:n,be:r=>`${n()}__${r}`,bm:r=>`${n()}--${r}`,bem:(r,i)=>`${n()}__${r}--${i}`}}function Ls(a){return D1(a)}function D1(a){var l;const n=((l=a.target)==null?void 0:l.offsetParent)||document.body,r=a.offsetParent===document.body?{left:0,top:0}:n.getBoundingClientRect(),i=a.clientX+n.scrollLeft-r.left,t=a.clientY+n.scrollTop-r.top;return{x:i,y:t}}function Rs(a,l,n,r){return T1(a)?{deltaX:n-a,deltaY:r-l,lastX:a,lastY:l,x:n,y:r}:{deltaX:0,deltaY:0,lastX:n,lastY:r,x:n,y:r}}function T1(a){return typeof a=="number"&&!Number.isNaN(a)}function B1(a,l){const n=ru(a);let r=n[0];for(let i=1,t=n.length;i<t;i++){const f=n[i];l>a[f]&&(r=f)}return r}function lu(a,l){if(!l[a])throw new Error("ResponsiveGridLayout: `cols` entry for breakpoint "+a+" is missing!");return l[a]}function N1(a,l,n,r,i,t,f){if(l[r])return At(l[r]);let c=a;const u=ru(n),m=u.slice(u.indexOf(r));for(let g=0,_=m.length;g<_;g++){const p=m[g];if(l[p]){c=l[p];break}}return c=At(c||[]),Ti(k1(c,{cols:t}),f)}function ru(a){return Object.keys(a).sort((l,n)=>a[l]-a[n])}let A1="auto";function z1(){return typeof document<"u"}function $s(){return z1()?typeof document.dir<"u"?document.dir:document.getElementsByTagName("html")[0].getAttribute("dir"):A1}var qi={exports:{}},M1=qi.exports,Vs;function I1(){return Vs||(Vs=1,function(a,l){(function(n,r){a.exports=r()})(M1,function(){function n(s,o){var h=Object.keys(s);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(s);o&&(y=y.filter(function(k){return Object.getOwnPropertyDescriptor(s,k).enumerable})),h.push.apply(h,y)}return h}function r(s){for(var o=1;o<arguments.length;o++){var h=arguments[o]!=null?arguments[o]:{};o%2?n(Object(h),!0).forEach(function(y){u(s,y,h[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(h)):n(Object(h)).forEach(function(y){Object.defineProperty(s,y,Object.getOwnPropertyDescriptor(h,y))})}return s}function i(s){return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},i(s)}function t(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function f(s,o){for(var h=0;h<o.length;h++){var y=o[h];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(s,G(y.key),y)}}function c(s,o,h){return o&&f(s.prototype,o),Object.defineProperty(s,"prototype",{writable:!1}),s}function u(s,o,h){return(o=G(o))in s?Object.defineProperty(s,o,{value:h,enumerable:!0,configurable:!0,writable:!0}):s[o]=h,s}function m(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),o&&_(s,o)}function g(s){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},g(s)}function _(s,o){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,y){return h.__proto__=y,h},_(s,o)}function p(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function M(s){var o=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,y=g(s);if(o){var k=g(this).constructor;h=Reflect.construct(y,arguments,k)}else h=y.apply(this,arguments);return function(L,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 p(L)}(this,h)}}function w(){return w=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,o,h){var y=function(L,Y){for(;!Object.prototype.hasOwnProperty.call(L,Y)&&(L=g(L))!==null;);return L}(s,o);if(y){var k=Object.getOwnPropertyDescriptor(y,o);return k.get?k.get.call(arguments.length<3?s:h):k.value}},w.apply(this,arguments)}function G(s){var o=function(h,y){if(typeof h!="object"||h===null)return h;var k=h[Symbol.toPrimitive];if(k!==void 0){var L=k.call(h,y);if(typeof L!="object")return L;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(h)}(s,"string");return typeof o=="symbol"?o:o+""}var A=function(s){return!(!s||!s.Window)&&s instanceof s.Window},P=void 0,O=void 0;function E(s){P=s;var o=s.document.createTextNode("");o.ownerDocument!==s.document&&typeof s.wrap=="function"&&s.wrap(o)===o&&(s=s.wrap(s)),O=s}function x(s){return A(s)?s:(s.ownerDocument||s).defaultView||O.window}typeof window<"u"&&window&&E(window);var S=function(s){return!!s&&i(s)==="object"},b=function(s){return typeof s=="function"},C={window:function(s){return s===O||A(s)},docFrag:function(s){return S(s)&&s.nodeType===11},object:S,func:b,number:function(s){return typeof s=="number"},bool:function(s){return typeof s=="boolean"},string:function(s){return typeof s=="string"},element:function(s){if(!s||i(s)!=="object")return!1;var o=x(s)||O;return/object|function/.test(typeof Element>"u"?"undefined":i(Element))?s instanceof Element||s instanceof o.Element:s.nodeType===1&&typeof s.nodeName=="string"},plainObject:function(s){return S(s)&&!!s.constructor&&/function Object\b/.test(s.constructor.toString())},array:function(s){return S(s)&&s.length!==void 0&&b(s.splice)}};function R(s){var o=s.interaction;if(o.prepared.name==="drag"){var h=o.prepared.axis;h==="x"?(o.coords.cur.page.y=o.coords.start.page.y,o.coords.cur.client.y=o.coords.start.client.y,o.coords.velocity.client.y=0,o.coords.velocity.page.y=0):h==="y"&&(o.coords.cur.page.x=o.coords.start.page.x,o.coords.cur.client.x=o.coords.start.client.x,o.coords.velocity.client.x=0,o.coords.velocity.page.x=0)}}function $(s){var o=s.iEvent,h=s.interaction;if(h.prepared.name==="drag"){var y=h.prepared.axis;if(y==="x"||y==="y"){var k=y==="x"?"y":"x";o.page[k]=h.coords.start.page[k],o.client[k]=h.coords.start.client[k],o.delta[k]=0}}}var le={id:"actions/drag",install:function(s){var o=s.actions,h=s.Interactable,y=s.defaults;h.prototype.draggable=le.draggable,o.map.drag=le,o.methodDict.drag="draggable",y.actions.drag=le.defaults},listeners:{"interactions:before-action-move":R,"interactions:action-resume":R,"interactions:action-move":$,"auto-start:check":function(s){var o=s.interaction,h=s.interactable,y=s.buttons,k=h.options.drag;if(k&&k.enabled&&(!o.pointerIsDown||!/mouse|pointer/.test(o.pointerType)||(y&h.options.drag.mouseButtons)!=0))return s.action={name:"drag",axis:k.lockAxis==="start"?k.startAxis:k.lockAxis},!1}},draggable:function(s){return C.object(s)?(this.options.drag.enabled=s.enabled!==!1,this.setPerAction("drag",s),this.setOnEvents("drag",s),/^(xy|x|y|start)$/.test(s.lockAxis)&&(this.options.drag.lockAxis=s.lockAxis),/^(xy|x|y)$/.test(s.startAxis)&&(this.options.drag.startAxis=s.startAxis),this):C.bool(s)?(this.options.drag.enabled=s,this):this.options.drag},beforeMove:R,move:$,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(s){return s.search("drag")===0}},ee=le,_e={init:function(s){var o=s;_e.document=o.document,_e.DocumentFragment=o.DocumentFragment||pe,_e.SVGElement=o.SVGElement||pe,_e.SVGSVGElement=o.SVGSVGElement||pe,_e.SVGElementInstance=o.SVGElementInstance||pe,_e.Element=o.Element||pe,_e.HTMLElement=o.HTMLElement||_e.Element,_e.Event=o.Event,_e.Touch=o.Touch||pe,_e.PointerEvent=o.PointerEvent||o.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function pe(){}var H=_e,F={init:function(s){var o=H.Element,h=s.navigator||{};F.supportsTouch="ontouchstart"in s||C.func(s.DocumentTouch)&&H.document instanceof s.DocumentTouch,F.supportsPointerEvent=h.pointerEnabled!==!1&&!!H.PointerEvent,F.isIOS=/iP(hone|od|ad)/.test(h.platform),F.isIOS7=/iP(hone|od|ad)/.test(h.platform)&&/OS 7[^\d]/.test(h.appVersion),F.isIe9=/MSIE 9/.test(h.userAgent),F.isOperaMobile=h.appName==="Opera"&&F.supportsTouch&&/Presto/.test(h.userAgent),F.prefixedMatchesSelector="matches"in o.prototype?"matches":"webkitMatchesSelector"in o.prototype?"webkitMatchesSelector":"mozMatchesSelector"in o.prototype?"mozMatchesSelector":"oMatchesSelector"in o.prototype?"oMatchesSelector":"msMatchesSelector",F.pEventTypes=F.supportsPointerEvent?H.PointerEvent===s.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,F.wheelEvent=H.document&&"onmousewheel"in H.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},X=F;function re(s,o){if(s.contains)return s.contains(o);for(;o;){if(o===s)return!0;o=o.parentNode}return!1}function ve(s,o){for(;C.element(s);){if(ce(s,o))return s;s=Re(s)}return null}function Re(s){var o=s.parentNode;if(C.docFrag(o)){for(;(o=o.host)&&C.docFrag(o););return o}return o}function ce(s,o){return O!==P&&(o=o.replace(/\/deep\//g," ")),s[X.prefixedMatchesSelector](o)}var B=function(s){return s.parentNode||s.host};function te(s,o){for(var h,y=[],k=s;(h=B(k))&&k!==o&&h!==k.ownerDocument;)y.unshift(k),k=h;return y}function q(s,o,h){for(;C.element(s);){if(ce(s,o))return!0;if((s=Re(s))===h)return ce(s,o)}return!1}function xe(s){return s.correspondingUseElement||s}function Me(s){var o=s instanceof H.SVGElement?s.getBoundingClientRect():s.getClientRects()[0];return o&&{left:o.left,right:o.right,top:o.top,bottom:o.bottom,width:o.width||o.right-o.left,height:o.height||o.bottom-o.top}}function $e(s){var o,h=Me(s);if(!X.isIOS7&&h){var y={x:(o=(o=x(s))||O).scrollX||o.document.documentElement.scrollLeft,y:o.scrollY||o.document.documentElement.scrollTop};h.left+=y.x,h.right+=y.x,h.top+=y.y,h.bottom+=y.y}return h}function Qe(s){for(var o=[];s;)o.push(s),s=Re(s);return o}function _a(s){return!!C.string(s)&&(H.document.querySelector(s),!0)}function oe(s,o){for(var h in o)s[h]=o[h];return s}function sa(s,o,h){return s==="parent"?Re(h):s==="self"?o.getRect(h):ve(h,s)}function de(s,o,h,y){var k=s;return C.string(k)?k=sa(k,o,h):C.func(k)&&(k=k.apply(void 0,y)),C.element(k)&&(k=$e(k)),k}function ea(s){return s&&{x:"x"in s?s.x:s.left,y:"y"in s?s.y:s.top}}function Ae(s){return!s||"x"in s&&"y"in s||((s=oe({},s)).x=s.left||0,s.y=s.top||0,s.width=s.width||(s.right||0)-s.x,s.height=s.height||(s.bottom||0)-s.y),s}function ue(s,o,h){s.left&&(o.left+=h.x),s.right&&(o.right+=h.x),s.top&&(o.top+=h.y),s.bottom&&(o.bottom+=h.y),o.width=o.right-o.left,o.height=o.bottom-o.top}function he(s,o,h){var y=h&&s.options[h];return ea(de(y&&y.origin||s.options.origin,s,o,[s&&o]))||{x:0,y:0}}function Ge(s,o){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(ke){return!0},y=arguments.length>3?arguments[3]:void 0;if(y=y||{},C.string(s)&&s.search(" ")!==-1&&(s=wa(s)),C.array(s))return s.forEach(function(ke){return Ge(ke,o,h,y)}),y;if(C.object(s)&&(o=s,s=""),C.func(o)&&h(s))y[s]=y[s]||[],y[s].push(o);else if(C.array(o))for(var k=0,L=o;k<L.length;k++){var Y=L[k];Ge(s,Y,h,y)}else if(C.object(o))for(var ae in o)Ge(wa(ae).map(function(ke){return"".concat(s).concat(ke)}),o[ae],h,y);return y}function wa(s){return s.trim().split(/ +/)}var Ia=function(s,o){return Math.sqrt(s*s+o*o)},U=["webkit","moz"];function V(s,o){s.__set||(s.__set={});var h=function(k){if(U.some(function(L){return k.indexOf(L)===0}))return 1;typeof s[k]!="function"&&k!=="__set"&&Object.defineProperty(s,k,{get:function(){return k in s.__set?s.__set[k]:s.__set[k]=o[k]},set:function(L){s.__set[k]=L},configurable:!0})};for(var y in o)h(y);return s}function Q(s,o){s.page=s.page||{},s.page.x=o.page.x,s.page.y=o.page.y,s.client=s.client||{},s.client.x=o.client.x,s.client.y=o.client.y,s.timeStamp=o.timeStamp}function fe(s){s.page.x=0,s.page.y=0,s.client.x=0,s.client.y=0}function me(s){return s instanceof H.Event||s instanceof H.Touch}function ua(s,o,h){return s=s||"page",(h=h||{}).x=o[s+"X"],h.y=o[s+"Y"],h}function ta(s,o){return o=o||{x:0,y:0},X.isOperaMobile&&me(s)?(ua("screen",s,o),o.x+=window.scrollX,o.y+=window.scrollY):ua("page",s,o),o}function je(s){return C.number(s.pointerId)?s.pointerId:s.identifier}function ba(s,o,h){var y=o.length>1?Ee(o):o[0];ta(y,s.page),function(k,L){L=L||{},X.isOperaMobile&&me(k)?ua("screen",k,L):ua("client",k,L)}(y,s.client),s.timeStamp=h}function Ta(s){var o=[];return C.array(s)?(o[0]=s[0],o[1]=s[1]):s.type==="touchend"?s.touches.length===1?(o[0]=s.touches[0],o[1]=s.changedTouches[0]):s.touches.length===0&&(o[0]=s.changedTouches[0],o[1]=s.changedTouches[1]):(o[0]=s.touches[0],o[1]=s.touches[1]),o}function Ee(s){for(var o={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},h=0;h<s.length;h++){var y=s[h];for(var k in o)o[k]+=y[k]}for(var L in o)o[L]/=s.length;return o}function Pa(s){if(!s.length)return null;var o=Ta(s),h=Math.min(o[0].pageX,o[1].pageX),y=Math.min(o[0].pageY,o[1].pageY),k=Math.max(o[0].pageX,o[1].pageX),L=Math.max(o[0].pageY,o[1].pageY);return{x:h,y,left:h,top:y,right:k,bottom:L,width:k-h,height:L-y}}function Ea(s,o){var h=o+"X",y=o+"Y",k=Ta(s),L=k[0][h]-k[1][h],Y=k[0][y]-k[1][y];return Ia(L,Y)}function ia(s,o){var h=o+"X",y=o+"Y",k=Ta(s),L=k[1][h]-k[0][h],Y=k[1][y]-k[0][y];return 180*Math.atan2(Y,L)/Math.PI}function Ba(s){return C.string(s.pointerType)?s.pointerType:C.number(s.pointerType)?[void 0,void 0,"touch","pen","mouse"][s.pointerType]:/touch/.test(s.type||"")||s instanceof H.Touch?"touch":"mouse"}function Ce(s){var o=C.func(s.composedPath)?s.composedPath():s.path;return[xe(o?o[0]:s.target),xe(s.currentTarget)]}var ka=function(){function s(o){t(this,s),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=o}return c(s,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),s}();Object.defineProperty(ka.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var Je=function(s,o){for(var h=0;h<o.length;h++){var y=o[h];s.push(y)}return s},K=function(s){return Je([],s)},J=function(s,o){for(var h=0;h<s.length;h++)if(o(s[h],h,s))return h;return-1},Fe=function(s,o){return s[J(s,o)]},We=function(s){m(h,s);var o=M(h);function h(y,k,L){var Y;t(this,h),(Y=o.call(this,k._interaction)).dropzone=void 0,Y.dragEvent=void 0,Y.relatedTarget=void 0,Y.draggable=void 0,Y.propagationStopped=!1,Y.immediatePropagationStopped=!1;var ae=L==="dragleave"?y.prev:y.cur,ke=ae.element,qe=ae.dropzone;return Y.type=L,Y.target=ke,Y.currentTarget=ke,Y.dropzone=qe,Y.dragEvent=k,Y.relatedTarget=k.target,Y.draggable=k.interactable,Y.timeStamp=k.timeStamp,Y}return c(h,[{key:"reject",value:function(){var y=this,k=this._interaction.dropState;if(this.type==="dropactivate"||this.dropzone&&k.cur.dropzone===this.dropzone&&k.cur.element===this.target)if(k.prev.dropzone=this.dropzone,k.prev.element=this.target,k.rejected=!0,k.events.enter=null,this.stopImmediatePropagation(),this.type==="dropactivate"){var L=k.activeDrops,Y=J(L,function(ke){var qe=ke.dropzone,Se=ke.element;return qe===y.dropzone&&Se===y.target});k.activeDrops.splice(Y,1);var ae=new h(k,this.dragEvent,"dropdeactivate");ae.dropzone=this.dropzone,ae.target=this.target,this.dropzone.fire(ae)}else this.dropzone.fire(new h(k,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),h}(ka);function Na(s,o){for(var h=0,y=s.slice();h<y.length;h++){var k=y[h],L=k.dropzone,Y=k.element;o.dropzone=L,o.target=Y,L.fire(o),o.propagationStopped=o.immediatePropagationStopped=!1}}function da(s,o){for(var h=function(L,Y){for(var ae=[],ke=0,qe=L.interactables.list;ke<qe.length;ke++){var Se=qe[ke];if(Se.options.drop.enabled){var la=Se.options.drop.accept;if(!(C.element(la)&&la!==Y||C.string(la)&&!ce(Y,la)||C.func(la)&&!la({dropzone:Se,draggableElement:Y})))for(var za=0,al=Se.getAllElements();za<al.length;za++){var ll=al[za];ll!==Y&&ae.push({dropzone:Se,element:ll,rect:Se.getRect(ll)})}}}return ae}(s,o),y=0;y<h.length;y++){var k=h[y];k.rect=k.dropzone.getRect(k.element)}return h}function Aa(s,o,h){for(var y=s.dropState,k=s.interactable,L=s.element,Y=[],ae=0,ke=y.activeDrops;ae<ke.length;ae++){var qe=ke[ae],Se=qe.dropzone,la=qe.element,za=qe.rect,al=Se.dropCheck(o,h,k,L,la,za);Y.push(al?la:null)}var ll=function(ul){for(var Al,Cl,jl,Ql=[],or=0;or<ul.length;or++){var Bl=ul[or],ar=ul[Al];if(Bl&&or!==Al)if(ar){var Ir=B(Bl),Or=B(ar);if(Ir!==Bl.ownerDocument)if(Or!==Bl.ownerDocument)if(Ir!==Or){Ql=Ql.length?Ql:te(ar);var Vr=void 0;if(ar instanceof H.HTMLElement&&Bl instanceof H.SVGElement&&!(Bl instanceof H.SVGSVGElement)){if(Bl===Or)continue;Vr=Bl.ownerSVGElement}else Vr=Bl;for(var kn=te(Vr,ar.ownerDocument),Bn=0;kn[Bn]&&kn[Bn]===Ql[Bn];)Bn++;var xi=[kn[Bn-1],kn[Bn],Ql[Bn]];if(xi[0])for(var ti=xi[0].lastChild;ti;){if(ti===xi[1]){Al=or,Ql=kn;break}if(ti===xi[2])break;ti=ti.previousSibling}}else jl=ar,(parseInt(x(Cl=Bl).getComputedStyle(Cl).zIndex,10)||0)>=(parseInt(x(jl).getComputedStyle(jl).zIndex,10)||0)&&(Al=or);else Al=or}else Al=or}return Al}(Y);return y.activeDrops[ll]||null}function Oe(s,o,h){var y=s.dropState,k={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return h.type==="dragstart"&&(k.activate=new We(y,h,"dropactivate"),k.activate.target=null,k.activate.dropzone=null),h.type==="dragend"&&(k.deactivate=new We(y,h,"dropdeactivate"),k.deactivate.target=null,k.deactivate.dropzone=null),y.rejected||(y.cur.element!==y.prev.element&&(y.prev.dropzone&&(k.leave=new We(y,h,"dragleave"),h.dragLeave=k.leave.target=y.prev.element,h.prevDropzone=k.leave.dropzone=y.prev.dropzone),y.cur.dropzone&&(k.enter=new We(y,h,"dragenter"),h.dragEnter=y.cur.element,h.dropzone=y.cur.dropzone)),h.type==="dragend"&&y.cur.dropzone&&(k.drop=new We(y,h,"drop"),h.dropzone=y.cur.dropzone,h.relatedTarget=y.cur.element),h.type==="dragmove"&&y.cur.dropzone&&(k.move=new We(y,h,"dropmove"),h.dropzone=y.cur.dropzone)),k}function He(s,o){var h=s.dropState,y=h.activeDrops,k=h.cur,L=h.prev;o.leave&&L.dropzone.fire(o.leave),o.enter&&k.dropzone.fire(o.enter),o.move&&k.dropzone.fire(o.move),o.drop&&k.dropzone.fire(o.drop),o.deactivate&&Na(y,o.deactivate),h.prev.dropzone=k.dropzone,h.prev.element=k.element}function Ie(s,o){var h=s.interaction,y=s.iEvent,k=s.event;if(y.type==="dragmove"||y.type==="dragend"){var L=h.dropState;o.dynamicDrop&&(L.activeDrops=da(o,h.element));var Y=y,ae=Aa(h,Y,k);L.rejected=L.rejected&&!!ae&&ae.dropzone===L.cur.dropzone&&ae.element===L.cur.element,L.cur.dropzone=ae&&ae.dropzone,L.cur.element=ae&&ae.element,L.events=Oe(h,0,Y)}}var Ve={id:"actions/drop",install:function(s){var o=s.actions,h=s.interactStatic,y=s.Interactable,k=s.defaults;s.usePlugin(ee),y.prototype.dropzone=function(L){return function(Y,ae){if(C.object(ae)){if(Y.options.drop.enabled=ae.enabled!==!1,ae.listeners){var ke=Ge(ae.listeners),qe=Object.keys(ke).reduce(function(la,za){return la[/^(enter|leave)/.test(za)?"drag".concat(za):/^(activate|deactivate|move)/.test(za)?"drop".concat(za):za]=ke[za],la},{}),Se=Y.options.drop.listeners;Se&&Y.off(Se),Y.on(qe),Y.options.drop.listeners=qe}return C.func(ae.ondrop)&&Y.on("drop",ae.ondrop),C.func(ae.ondropactivate)&&Y.on("dropactivate",ae.ondropactivate),C.func(ae.ondropdeactivate)&&Y.on("dropdeactivate",ae.ondropdeactivate),C.func(ae.ondragenter)&&Y.on("dragenter",ae.ondragenter),C.func(ae.ondragleave)&&Y.on("dragleave",ae.ondragleave),C.func(ae.ondropmove)&&Y.on("dropmove",ae.ondropmove),/^(pointer|center)$/.test(ae.overlap)?Y.options.drop.overlap=ae.overlap:C.number(ae.overlap)&&(Y.options.drop.overlap=Math.max(Math.min(1,ae.overlap),0)),"accept"in ae&&(Y.options.drop.accept=ae.accept),"checker"in ae&&(Y.options.drop.checker=ae.checker),Y}return C.bool(ae)?(Y.options.drop.enabled=ae,Y):Y.options.drop}(this,L)},y.prototype.dropCheck=function(L,Y,ae,ke,qe,Se){return function(la,za,al,ll,ul,Al,Cl){var jl=!1;if(!(Cl=Cl||la.getRect(Al)))return!!la.options.drop.checker&&la.options.drop.checker(za,al,jl,la,Al,ll,ul);var Ql=la.options.drop.overlap;if(Ql==="pointer"){var or=he(ll,ul,"drag"),Bl=ta(za);Bl.x+=or.x,Bl.y+=or.y;var ar=Bl.x>Cl.left&&Bl.x<Cl.right,Ir=Bl.y>Cl.top&&Bl.y<Cl.bottom;jl=ar&&Ir}var Or=ll.getRect(ul);if(Or&&Ql==="center"){var Vr=Or.left+Or.width/2,kn=Or.top+Or.height/2;jl=Vr>=Cl.left&&Vr<=Cl.right&&kn>=Cl.top&&kn<=Cl.bottom}return Or&&C.number(Ql)&&(jl=Math.max(0,Math.min(Cl.right,Or.right)-Math.max(Cl.left,Or.left))*Math.max(0,Math.min(Cl.bottom,Or.bottom)-Math.max(Cl.top,Or.top))/(Or.width*Or.height)>=Ql),la.options.drop.checker&&(jl=la.options.drop.checker(za,al,jl,la,Al,ll,ul)),jl}(this,L,Y,ae,ke,qe,Se)},h.dynamicDrop=function(L){return C.bool(L)?(s.dynamicDrop=L,h):s.dynamicDrop},oe(o.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),o.methodDict.drop="dropzone",s.dynamicDrop=!1,k.actions.drop=Ve.defaults},listeners:{"interactions:before-action-start":function(s){var o=s.interaction;o.prepared.name==="drag"&&(o.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(s,o){var h=s.interaction,y=(s.event,s.iEvent);if(h.prepared.name==="drag"){var k=h.dropState;k.activeDrops=[],k.events={},k.activeDrops=da(o,h.element),k.events=Oe(h,0,y),k.events.activate&&(Na(k.activeDrops,k.events.activate),o.fire("actions/drop:start",{interaction:h,dragEvent:y}))}},"interactions:action-move":Ie,"interactions:after-action-move":function(s,o){var h=s.interaction,y=s.iEvent;if(h.prepared.name==="drag"){var k=h.dropState;He(h,k.events),o.fire("actions/drop:move",{interaction:h,dragEvent:y}),k.events={}}},"interactions:action-end":function(s,o){if(s.interaction.prepared.name==="drag"){var h=s.interaction,y=s.iEvent;Ie(s,o),He(h,h.dropState.events),o.fire("actions/drop:end",{interaction:h,dragEvent:y})}},"interactions:stop":function(s){var o=s.interaction;if(o.prepared.name==="drag"){var h=o.dropState;h&&(h.activeDrops=null,h.events=null,h.cur.dropzone=null,h.cur.element=null,h.prev.dropzone=null,h.prev.element=null,h.rejected=!1)}}},getActiveDrops:da,getDrop:Aa,getDropEvents:Oe,fireDropEvents:He,filterEventType:function(s){return s.search("drag")===0||s.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},we=Ve;function ol(s){var o=s.interaction,h=s.iEvent,y=s.phase;if(o.prepared.name==="gesture"){var k=o.pointers.map(function(qe){return qe.pointer}),L=y==="start",Y=y==="end",ae=o.interactable.options.deltaSource;if(h.touches=[k[0],k[1]],L)h.distance=Ea(k,ae),h.box=Pa(k),h.scale=1,h.ds=0,h.angle=ia(k,ae),h.da=0,o.gesture.startDistance=h.distance,o.gesture.startAngle=h.angle;else if(Y||o.pointers.length<2){var ke=o.prevEvent;h.distance=ke.distance,h.box=ke.box,h.scale=ke.scale,h.ds=0,h.angle=ke.angle,h.da=0}else h.distance=Ea(k,ae),h.box=Pa(k),h.scale=h.distance/o.gesture.startDistance,h.angle=ia(k,ae),h.ds=h.scale-o.gesture.scale,h.da=h.angle-o.gesture.angle;o.gesture.distance=h.distance,o.gesture.angle=h.angle,C.number(h.scale)&&h.scale!==1/0&&!isNaN(h.scale)&&(o.gesture.scale=h.scale)}}var Sl={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(s){var o=s.actions,h=s.Interactable,y=s.defaults;h.prototype.gesturable=function(k){return C.object(k)?(this.options.gesture.enabled=k.enabled!==!1,this.setPerAction("gesture",k),this.setOnEvents("gesture",k),this):C.bool(k)?(this.options.gesture.enabled=k,this):this.options.gesture},o.map.gesture=Sl,o.methodDict.gesture="gesturable",y.actions.gesture=Sl.defaults},listeners:{"interactions:action-start":ol,"interactions:action-move":ol,"interactions:action-end":ol,"interactions:new":function(s){s.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(s){if(!(s.interaction.pointers.length<2)){var o=s.interactable.options.gesture;if(o&&o.enabled)return s.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(s){return s.search("gesture")===0}},Ll=Sl;function Vl(s,o,h,y,k,L,Y){if(!o)return!1;if(o===!0){var ae=C.number(L.width)?L.width:L.right-L.left,ke=C.number(L.height)?L.height:L.bottom-L.top;if(Y=Math.min(Y,Math.abs((s==="left"||s==="right"?ae:ke)/2)),ae<0&&(s==="left"?s="right":s==="right"&&(s="left")),ke<0&&(s==="top"?s="bottom":s==="bottom"&&(s="top")),s==="left"){var qe=ae>=0?L.left:L.right;return h.x<qe+Y}if(s==="top"){var Se=ke>=0?L.top:L.bottom;return h.y<Se+Y}if(s==="right")return h.x>(ae>=0?L.right:L.left)-Y;if(s==="bottom")return h.y>(ke>=0?L.bottom:L.top)-Y}return!!C.element(y)&&(C.element(o)?o===y:q(y,o,k))}function zl(s){var o=s.iEvent,h=s.interaction;if(h.prepared.name==="resize"&&h.resizeAxes){var y=o;h.interactable.options.resize.square?(h.resizeAxes==="y"?y.delta.x=y.delta.y:y.delta.y=y.delta.x,y.axes="xy"):(y.axes=h.resizeAxes,h.resizeAxes==="x"?y.delta.y=0:h.resizeAxes==="y"&&(y.delta.x=0))}}var Jl,rl,Fl={id:"actions/resize",before:["actions/drag"],install:function(s){var o=s.actions,h=s.browser,y=s.Interactable,k=s.defaults;Fl.cursors=function(L){return L.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(h),Fl.defaultMargin=h.supportsTouch||h.supportsPointerEvent?20:10,y.prototype.resizable=function(L){return function(Y,ae,ke){return C.object(ae)?(Y.options.resize.enabled=ae.enabled!==!1,Y.setPerAction("resize",ae),Y.setOnEvents("resize",ae),C.string(ae.axis)&&/^x$|^y$|^xy$/.test(ae.axis)?Y.options.resize.axis=ae.axis:ae.axis===null&&(Y.options.resize.axis=ke.defaults.actions.resize.axis),C.bool(ae.preserveAspectRatio)?Y.options.resize.preserveAspectRatio=ae.preserveAspectRatio:C.bool(ae.square)&&(Y.options.resize.square=ae.square),Y):C.bool(ae)?(Y.options.resize.enabled=ae,Y):Y.options.resize}(this,L,s)},o.map.resize=Fl,o.methodDict.resize="resizable",k.actions.resize=Fl.defaults},listeners:{"interactions:new":function(s){s.interaction.resizeAxes="xy"},"interactions:action-start":function(s){(function(o){var h=o.iEvent,y=o.interaction;if(y.prepared.name==="resize"&&y.prepared.edges){var k=h,L=y.rect;y._rects={start:oe({},L),corrected:oe({},L),previous:oe({},L),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},k.edges=y.prepared.edges,k.rect=y._rects.corrected,k.deltaRect=y._rects.delta}})(s),zl(s)},"interactions:action-move":function(s){(function(o){var h=o.iEvent,y=o.interaction;if(y.prepared.name==="resize"&&y.prepared.edges){var k=h,L=y.interactable.options.resize.invert,Y=L==="reposition"||L==="negate",ae=y.rect,ke=y._rects,qe=ke.start,Se=ke.corrected,la=ke.delta,za=ke.previous;if(oe(za,Se),Y){if(oe(Se,ae),L==="reposition"){if(Se.top>Se.bottom){var al=Se.top;Se.top=Se.bottom,Se.bottom=al}if(Se.left>Se.right){var ll=Se.left;Se.left=Se.right,Se.right=ll}}}else Se.top=Math.min(ae.top,qe.bottom),Se.bottom=Math.max(ae.bottom,qe.top),Se.left=Math.min(ae.left,qe.right),Se.right=Math.max(ae.right,qe.left);for(var ul in Se.width=Se.right-Se.left,Se.height=Se.bottom-Se.top,Se)la[ul]=Se[ul]-za[ul];k.edges=y.prepared.edges,k.rect=Se,k.deltaRect=la}})(s),zl(s)},"interactions:action-end":function(s){var o=s.iEvent,h=s.interaction;if(h.prepared.name==="resize"&&h.prepared.edges){var y=o;y.edges=h.prepared.edges,y.rect=h._rects.corrected,y.deltaRect=h._rects.delta}},"auto-start:check":function(s){var o=s.interaction,h=s.interactable,y=s.element,k=s.rect,L=s.buttons;if(k){var Y=oe({},o.coords.cur.page),ae=h.options.resize;if(ae&&ae.enabled&&(!o.pointerIsDown||!/mouse|pointer/.test(o.pointerType)||(L&ae.mouseButtons)!=0)){if(C.object(ae.edges)){var ke={left:!1,right:!1,top:!1,bottom:!1};for(var qe in ke)ke[qe]=Vl(qe,ae.edges[qe],Y,o._latestPointer.eventTarget,y,k,ae.margin||Fl.defaultMargin);ke.left=ke.left&&!ke.right,ke.top=ke.top&&!ke.bottom,(ke.left||ke.right||ke.top||ke.bottom)&&(s.action={name:"resize",edges:ke})}else{var Se=ae.axis!=="y"&&Y.x>k.right-Fl.defaultMargin,la=ae.axis!=="x"&&Y.y>k.bottom-Fl.defaultMargin;(Se||la)&&(s.action={name:"resize",axes:(Se?"x":"")+(la?"y":"")})}return!s.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(s){var o=s.edges,h=s.axis,y=s.name,k=Fl.cursors,L=null;if(h)L=k[y+h];else if(o){for(var Y="",ae=0,ke=["top","bottom","left","right"];ae<ke.length;ae++){var qe=ke[ae];o[qe]&&(Y+=qe)}L=k[Y]}return L},filterEventType:function(s){return s.search("resize")===0},defaultMargin:null},Wa=Fl,Kl={id:"actions",install:function(s){s.usePlugin(Ll),s.usePlugin(Wa),s.usePlugin(ee),s.usePlugin(we)}},Wl=0,Nl={request:function(s){return Jl(s)},cancel:function(s){return rl(s)},init:function(s){if(Jl=s.requestAnimationFrame,rl=s.cancelAnimationFrame,!Jl)for(var o=["ms","moz","webkit","o"],h=0;h<o.length;h++){var y=o[h];Jl=s["".concat(y,"RequestAnimationFrame")],rl=s["".concat(y,"CancelAnimationFrame")]||s["".concat(y,"CancelRequestAnimationFrame")]}Jl=Jl&&Jl.bind(s),rl=rl&&rl.bind(s),Jl||(Jl=function(k){var L=Date.now(),Y=Math.max(0,16-(L-Wl)),ae=s.setTimeout(function(){k(L+Y)},Y);return Wl=L+Y,ae},rl=function(k){return clearTimeout(k)})}},Tl={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(s){Tl.isScrolling=!0,Nl.cancel(Tl.i),s.autoScroll=Tl,Tl.interaction=s,Tl.prevTime=Tl.now(),Tl.i=Nl.request(Tl.scroll)},stop:function(){Tl.isScrolling=!1,Tl.interaction&&(Tl.interaction.autoScroll=null),Nl.cancel(Tl.i)},scroll:function(){var s=Tl.interaction,o=s.interactable,h=s.element,y=s.prepared.name,k=o.options[y].autoScroll,L=zr(k.container,o,h),Y=Tl.now(),ae=(Y-Tl.prevTime)/1e3,ke=k.speed*ae;if(ke>=1){var qe={x:Tl.x*ke,y:Tl.y*ke};if(qe.x||qe.y){var Se=$a(L);C.window(L)?L.scrollBy(qe.x,qe.y):L&&(L.scrollLeft+=qe.x,L.scrollTop+=qe.y);var la=$a(L),za={x:la.x-Se.x,y:la.y-Se.y};(za.x||za.y)&&o.fire({type:"autoscroll",target:h,interactable:o,delta:za,interaction:s,container:L})}Tl.prevTime=Y}Tl.isScrolling&&(Nl.cancel(Tl.i),Tl.i=Nl.request(Tl.scroll))},check:function(s,o){var h;return(h=s.options[o].autoScroll)==null?void 0:h.enabled},onInteractionMove:function(s){var o=s.interaction,h=s.pointer;if(o.interacting()&&Tl.check(o.interactable,o.prepared.name))if(o.simulation)Tl.x=Tl.y=0;else{var y,k,L,Y,ae=o.interactable,ke=o.element,qe=o.prepared.name,Se=ae.options[qe].autoScroll,la=zr(Se.container,ae,ke);if(C.window(la))Y=h.clientX<Tl.margin,y=h.clientY<Tl.margin,k=h.clientX>la.innerWidth-Tl.margin,L=h.clientY>la.innerHeight-Tl.margin;else{var za=Me(la);Y=h.clientX<za.left+Tl.margin,y=h.clientY<za.top+Tl.margin,k=h.clientX>za.right-Tl.margin,L=h.clientY>za.bottom-Tl.margin}Tl.x=k?1:Y?-1:0,Tl.y=L?1:y?-1:0,Tl.isScrolling||(Tl.margin=Se.margin,Tl.speed=Se.speed,Tl.start(o))}}};function zr(s,o,h){return(C.string(s)?sa(s,o,h):s)||x(h)}function $a(s){return C.window(s)&&(s=window.document.body),{x:s.scrollLeft,y:s.scrollTop}}var Ka={id:"auto-scroll",install:function(s){var o=s.defaults,h=s.actions;s.autoScroll=Tl,Tl.now=function(){return s.now()},h.phaselessTypes.autoscroll=!0,o.perAction.autoScroll=Tl.defaults},listeners:{"interactions:new":function(s){s.interaction.autoScroll=null},"interactions:destroy":function(s){s.interaction.autoScroll=null,Tl.stop(),Tl.interaction&&(Tl.interaction=null)},"interactions:stop":Tl.stop,"interactions:action-move":function(s){return Tl.onInteractionMove(s)}}},pa=Ka;function ja(s,o){var h=!1;return function(){return h||(O.console.warn(o),h=!0),s.apply(this,arguments)}}function na(s,o){return s.name=o.name,s.axis=o.axis,s.edges=o.edges,s}function Ya(s){return C.bool(s)?(this.options.styleCursor=s,this):s===null?(delete this.options.styleCursor,this):this.options.styleCursor}function xl(s){return C.func(s)?(this.options.actionChecker=s,this):s===null?(delete this.options.actionChecker,this):this.options.actionChecker}var Te={id:"auto-start/interactableMethods",install:function(s){var o=s.Interactable;o.prototype.getAction=function(h,y,k,L){var Y=function(ae,ke,qe,Se,la){var za=ae.getRect(Se),al=ke.buttons||{0:1,1:4,3:8,4:16}[ke.button],ll={action:null,interactable:ae,interaction:qe,element:Se,rect:za,buttons:al};return la.fire("auto-start:check",ll),ll.action}(this,y,k,L,s);return this.options.actionChecker?this.options.actionChecker(h,y,Y,this,L,k):Y},o.prototype.ignoreFrom=ja(function(h){return this._backCompatOption("ignoreFrom",h)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),o.prototype.allowFrom=ja(function(h){return this._backCompatOption("allowFrom",h)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),o.prototype.actionChecker=xl,o.prototype.styleCursor=Ya}};function ra(s,o,h,y,k){return o.testIgnoreAllow(o.options[s.name],h,y)&&o.options[s.name].enabled&&el(o,h,s,k)?s:null}function Ua(s,o,h,y,k,L,Y){for(var ae=0,ke=y.length;ae<ke;ae++){var qe=y[ae],Se=k[ae],la=qe.getAction(o,h,s,Se);if(la){var za=ra(la,qe,Se,L,Y);if(za)return{action:za,interactable:qe,element:Se}}}return{action:null,interactable:null,element:null}}function De(s,o,h,y,k){var L=[],Y=[],ae=y;function ke(Se){L.push(Se),Y.push(ae)}for(;C.element(ae);){L=[],Y=[],k.interactables.forEachMatch(ae,ke);var qe=Ua(s,o,h,L,Y,y,k);if(qe.action&&!qe.interactable.options[qe.action.name].manualStart)return qe;ae=Re(ae)}return{action:null,interactable:null,element:null}}function Ra(s,o,h){var y=o.action,k=o.interactable,L=o.element;y=y||{name:null},s.interactable=k,s.element=L,na(s.prepared,y),s.rect=k&&y.name?k.getRect(L):null,ze(s,h),h.fire("autoStart:prepared",{interaction:s})}function el(s,o,h,y){var k=s.options,L=k[h.name].max,Y=k[h.name].maxPerElement,ae=y.autoStart.maxInteractions,ke=0,qe=0,Se=0;if(!(L&&Y&&ae))return!1;for(var la=0,za=y.interactions.list;la<za.length;la++){var al=za[la],ll=al.prepared.name;if(al.interacting()&&(++ke>=ae||al.interactable===s&&((qe+=ll===h.name?1:0)>=L||al.element===o&&(Se++,ll===h.name&&Se>=Y))))return!1}return ae>0}function ml(s,o){return C.number(s)?(o.autoStart.maxInteractions=s,this):o.autoStart.maxInteractions}function El(s,o,h){var y=h.autoStart.cursorElement;y&&y!==s&&(y.style.cursor=""),s.ownerDocument.documentElement.style.cursor=o,s.style.cursor=o,h.autoStart.cursorElement=o?s:null}function ze(s,o){var h=s.interactable,y=s.element,k=s.prepared;if(s.pointerType==="mouse"&&h&&h.options.styleCursor){var L="";if(k.name){var Y=h.options[k.name].cursorChecker;L=C.func(Y)?Y(k,h,y,s._interacting):o.actions.map[k.name].getCursor(k)}El(s.element,L||"",o)}else o.autoStart.cursorElement&&El(o.autoStart.cursorElement,"",o)}var ha={id:"auto-start/base",before:["actions"],install:function(s){var o=s.interactStatic,h=s.defaults;s.usePlugin(Te),h.base.actionChecker=null,h.base.styleCursor=!0,oe(h.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),o.maxInteractions=function(y){return ml(y,s)},s.autoStart={maxInteractions:1/0,withinInteractionLimit:el,cursorElement:null}},listeners:{"interactions:down":function(s,o){var h=s.interaction,y=s.pointer,k=s.event,L=s.eventTarget;h.interacting()||Ra(h,De(h,y,k,L,o),o)},"interactions:move":function(s,o){(function(h,y){var k=h.interaction,L=h.pointer,Y=h.event,ae=h.eventTarget;k.pointerType!=="mouse"||k.pointerIsDown||k.interacting()||Ra(k,De(k,L,Y,ae,y),y)})(s,o),function(h,y){var k=h.interaction;if(k.pointerIsDown&&!k.interacting()&&k.pointerWasMoved&&k.prepared.name){y.fire("autoStart:before-start",h);var L=k.interactable,Y=k.prepared.name;Y&&L&&(L.options[Y].manualStart||!el(L,k.element,k.prepared,y)?k.stop():(k.start(k.prepared,L,k.element),ze(k,y)))}}(s,o)},"interactions:stop":function(s,o){var h=s.interaction,y=h.interactable;y&&y.options.styleCursor&&El(h.element,"",o)}},maxInteractions:ml,withinInteractionLimit:el,validateAction:ra},ca=ha,ga={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(s,o){var h=s.interaction,y=s.eventTarget,k=s.dx,L=s.dy;if(h.prepared.name==="drag"){var Y=Math.abs(k),ae=Math.abs(L),ke=h.interactable.options.drag,qe=ke.startAxis,Se=Y>ae?"x":Y<ae?"y":"xy";if(h.prepared.axis=ke.lockAxis==="start"?Se[0]:ke.lockAxis,Se!=="xy"&&qe!=="xy"&&qe!==Se){h.prepared.name=null;for(var la=y,za=function(ll){if(ll!==h.interactable){var ul=h.interactable.options.drag;if(!ul.manualStart&&ll.testIgnoreAllow(ul,la,y)){var Al=ll.getAction(h.downPointer,h.downEvent,h,la);if(Al&&Al.name==="drag"&&function(Cl,jl){if(!jl)return!1;var Ql=jl.options.drag.startAxis;return Cl==="xy"||Ql==="xy"||Ql===Cl}(Se,ll)&&ca.validateAction(Al,ll,la,y,o))return ll}}};C.element(la);){var al=o.interactables.forEachMatch(la,za);if(al){h.prepared.name="drag",h.interactable=al,h.element=la;break}la=Re(la)}}}}}};function ma(s){var o=s.prepared&&s.prepared.name;if(!o)return null;var h=s.interactable.options;return h[o].hold||h[o].delay}var cl={id:"auto-start/hold",install:function(s){var o=s.defaults;s.usePlugin(ca),o.perAction.hold=0,o.perAction.delay=0},listeners:{"interactions:new":function(s){s.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(s){var o=s.interaction,h=ma(o);h>0&&(o.autoStartHoldTimer=setTimeout(function(){o.start(o.prepared,o.interactable,o.element)},h))},"interactions:move":function(s){var o=s.interaction,h=s.duplicate;o.autoStartHoldTimer&&o.pointerWasMoved&&!h&&(clearTimeout(o.autoStartHoldTimer),o.autoStartHoldTimer=null)},"autoStart:before-start":function(s){var o=s.interaction;ma(o)>0&&(o.prepared.name=null)}},getHoldDuration:ma},Le=cl,yl={id:"auto-start",install:function(s){s.usePlugin(ca),s.usePlugin(Le),s.usePlugin(ga)}},Be=function(s){return/^(always|never|auto)$/.test(s)?(this.options.preventDefault=s,this):C.bool(s)?(this.options.preventDefault=s?"always":"never",this):this.options.preventDefault};function Ul(s){var o=s.interaction,h=s.event;o.interactable&&o.interactable.checkAndPreventDefault(h)}var Sa={id:"core/interactablePreventDefault",install:function(s){var o=s.Interactable;o.prototype.preventDefault=Be,o.prototype.checkAndPreventDefault=function(h){return function(y,k,L){var Y=y.options.preventDefault;if(Y!=="never")if(Y!=="always"){if(k.events.supportsPassive&&/^touch(start|move)$/.test(L.type)){var ae=x(L.target).document,ke=k.getDocOptions(ae);if(!ke||!ke.events||ke.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(L.type)||C.element(L.target)&&ce(L.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||L.preventDefault()}else L.preventDefault()}(this,s,h)},s.interactions.docEvents.push({type:"dragstart",listener:function(h){for(var y=0,k=s.interactions.list;y<k.length;y++){var L=k[y];if(L.element&&(L.element===h.target||re(L.element,h.target)))return void L.interactable.checkAndPreventDefault(h)}}})},listeners:["down","move","up","cancel"].reduce(function(s,o){return s["interactions:".concat(o)]=Ul,s},{})};function pl(s,o){if(o.phaselessTypes[s])return!0;for(var h in o.map)if(s.indexOf(h)===0&&s.substr(h.length)in o.phases)return!0;return!1}function Qa(s){var o={};for(var h in s){var y=s[h];C.plainObject(y)?o[h]=Qa(y):C.array(y)?o[h]=K(y):o[h]=y}return o}var gl=function(){function s(o){t(this,s),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=o,this.result=Oa(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return c(s,[{key:"start",value:function(o,h){var y,k,L=o.phase,Y=this.interaction,ae=function(qe){var Se=qe.interactable.options[qe.prepared.name],la=Se.modifiers;return la&&la.length?la:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(za){var al=Se[za];return al&&al.enabled&&{options:al,methods:al._methods}}).filter(function(za){return!!za})}(Y);this.prepareStates(ae),this.startEdges=oe({},Y.edges),this.edges=oe({},this.startEdges),this.startOffset=(y=Y.rect,k=h,y?{left:k.x-y.left,top:k.y-y.top,right:y.right-k.x,bottom:y.bottom-k.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var ke=this.fillArg({phase:L,pageCoords:h,preEnd:!1});return this.result=Oa(),this.startAll(ke),this.result=this.setAll(ke)}},{key:"fillArg",value:function(o){var h=this.interaction;return o.interaction=h,o.interactable=h.interactable,o.element=h.element,o.rect||(o.rect=h.rect),o.edges||(o.edges=this.startEdges),o.startOffset=this.startOffset,o}},{key:"startAll",value:function(o){for(var h=0,y=this.states;h<y.length;h++){var k=y[h];k.methods.start&&(o.state=k,k.methods.start(o))}}},{key:"setAll",value:function(o){var h=o.phase,y=o.preEnd,k=o.skipModifiers,L=o.rect,Y=o.edges;o.coords=oe({},o.pageCoords),o.rect=oe({},L),o.edges=oe({},Y);for(var ae=k?this.states.slice(k):this.states,ke=Oa(o.coords,o.rect),qe=0;qe<ae.length;qe++){var Se,la=ae[qe],za=la.options,al=oe({},o.coords),ll=null;(Se=la.methods)!=null&&Se.set&&this.shouldDo(za,y,h)&&(o.state=la,ll=la.methods.set(o),ue(o.edges,o.rect,{x:o.coords.x-al.x,y:o.coords.y-al.y})),ke.eventProps.push(ll)}oe(this.edges,o.edges),ke.delta.x=o.coords.x-o.pageCoords.x,ke.delta.y=o.coords.y-o.pageCoords.y,ke.rectDelta.left=o.rect.left-L.left,ke.rectDelta.right=o.rect.right-L.right,ke.rectDelta.top=o.rect.top-L.top,ke.rectDelta.bottom=o.rect.bottom-L.bottom;var ul=this.result.coords,Al=this.result.rect;if(ul&&Al){var Cl=ke.rect.left!==Al.left||ke.rect.right!==Al.right||ke.rect.top!==Al.top||ke.rect.bottom!==Al.bottom;ke.changed=Cl||ul.x!==ke.coords.x||ul.y!==ke.coords.y}return ke}},{key:"applyToInteraction",value:function(o){var h=this.interaction,y=o.phase,k=h.coords.cur,L=h.coords.start,Y=this.result,ae=this.startDelta,ke=Y.delta;y==="start"&&oe(this.startDelta,Y.delta);for(var qe=0,Se=[[L,ae],[k,ke]];qe<Se.length;qe++){var la=Se[qe],za=la[0],al=la[1];za.page.x+=al.x,za.page.y+=al.y,za.client.x+=al.x,za.client.y+=al.y}var ll=this.result.rectDelta,ul=o.rect||h.rect;ul.left+=ll.left,ul.right+=ll.right,ul.top+=ll.top,ul.bottom+=ll.bottom,ul.width=ul.right-ul.left,ul.height=ul.bottom-ul.top}},{key:"setAndApply",value:function(o){var h=this.interaction,y=o.phase,k=o.preEnd,L=o.skipModifiers,Y=this.setAll(this.fillArg({preEnd:k,phase:y,pageCoords:o.modifiedCoords||h.coords.cur.page}));if(this.result=Y,!Y.changed&&(!L||L<this.states.length)&&h.interacting())return!1;if(o.modifiedCoords){var ae=h.coords.cur.page,ke={x:o.modifiedCoords.x-ae.x,y:o.modifiedCoords.y-ae.y};Y.coords.x+=ke.x,Y.coords.y+=ke.y,Y.delta.x+=ke.x,Y.delta.y+=ke.y}this.applyToInteraction(o)}},{key:"beforeEnd",value:function(o){var h=o.interaction,y=o.event,k=this.states;if(k&&k.length){for(var L=!1,Y=0;Y<k.length;Y++){var ae=k[Y];o.state=ae;var ke=ae.options,qe=ae.methods,Se=qe.beforeEnd&&qe.beforeEnd(o);if(Se)return this.endResult=Se,!1;L=L||!L&&this.shouldDo(ke,!0,o.phase,!0)}L&&h.move({event:y,preEnd:!0})}}},{key:"stop",value:function(o){var h=o.interaction;if(this.states&&this.states.length){var y=oe({states:this.states,interactable:h.interactable,element:h.element,rect:null},o);this.fillArg(y);for(var k=0,L=this.states;k<L.length;k++){var Y=L[k];y.state=Y,Y.methods.stop&&Y.methods.stop(y)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(o){this.states=[];for(var h=0;h<o.length;h++){var y=o[h],k=y.options,L=y.methods,Y=y.name;this.states.push({options:k,methods:L,index:h,name:Y})}return this.states}},{key:"restoreInteractionCoords",value:function(o){var h=o.interaction,y=h.coords,k=h.rect,L=h.modification;if(L.result){for(var Y=L.startDelta,ae=L.result,ke=ae.delta,qe=ae.rectDelta,Se=0,la=[[y.start,Y],[y.cur,ke]];Se<la.length;Se++){var za=la[Se],al=za[0],ll=za[1];al.page.x-=ll.x,al.page.y-=ll.y,al.client.x-=ll.x,al.client.y-=ll.y}k.left-=qe.left,k.right-=qe.right,k.top-=qe.top,k.bottom-=qe.bottom}}},{key:"shouldDo",value:function(o,h,y,k){return!(!o||o.enabled===!1||k&&!o.endOnly||o.endOnly&&!h||y==="start"&&!o.setStart)}},{key:"copyFrom",value:function(o){this.startOffset=o.startOffset,this.startDelta=o.startDelta,this.startEdges=o.startEdges,this.edges=o.edges,this.states=o.states.map(function(h){return Qa(h)}),this.result=Oa(oe({},o.result.coords),oe({},o.result.rect))}},{key:"destroy",value:function(){for(var o in this)this[o]=null}}]),s}();function Oa(s,o){return{rect:o,coords:s,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function Pl(s,o){var h=s.defaults,y={start:s.start,set:s.set,beforeEnd:s.beforeEnd,stop:s.stop},k=function(L){var Y=L||{};for(var ae in Y.enabled=Y.enabled!==!1,h)ae in Y||(Y[ae]=h[ae]);var ke={options:Y,methods:y,name:o,enable:function(){return Y.enabled=!0,ke},disable:function(){return Y.enabled=!1,ke}};return ke};return o&&typeof o=="string"&&(k._defaults=h,k._methods=y),k}function Sr(s){var o=s.iEvent,h=s.interaction.modification.result;h&&(o.modifiers=h.eventProps)}var Qr={id:"modifiers/base",before:["actions"],install:function(s){s.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(s){var o=s.interaction;o.modification=new gl(o)},"interactions:before-action-start":function(s){var o=s.interaction,h=s.interaction.modification;h.start(s,o.coords.start.page),o.edges=h.edges,h.applyToInteraction(s)},"interactions:before-action-move":function(s){var o=s.interaction,h=o.modification,y=h.setAndApply(s);return o.edges=h.edges,y},"interactions:before-action-end":function(s){var o=s.interaction,h=o.modification,y=h.beforeEnd(s);return o.edges=h.startEdges,y},"interactions:action-start":Sr,"interactions:action-move":Sr,"interactions:action-end":Sr,"interactions:after-action-start":function(s){return s.interaction.modification.restoreInteractionCoords(s)},"interactions:after-action-move":function(s){return s.interaction.modification.restoreInteractionCoords(s)},"interactions:stop":function(s){return s.interaction.modification.stop(s)}}},Wr=Qr,Gl={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},ir=function(s){m(h,s);var o=M(h);function h(y,k,L,Y,ae,ke,qe){var Se;t(this,h),(Se=o.call(this,y)).relatedTarget=null,Se.screenX=void 0,Se.screenY=void 0,Se.button=void 0,Se.buttons=void 0,Se.ctrlKey=void 0,Se.shiftKey=void 0,Se.altKey=void 0,Se.metaKey=void 0,Se.page=void 0,Se.client=void 0,Se.delta=void 0,Se.rect=void 0,Se.x0=void 0,Se.y0=void 0,Se.t0=void 0,Se.dt=void 0,Se.duration=void 0,Se.clientX0=void 0,Se.clientY0=void 0,Se.velocity=void 0,Se.speed=void 0,Se.swipe=void 0,Se.axes=void 0,Se.preEnd=void 0,ae=ae||y.element;var la=y.interactable,za=(la&&la.options||Gl).deltaSource,al=he(la,ae,L),ll=Y==="start",ul=Y==="end",Al=ll?p(Se):y.prevEvent,Cl=ll?y.coords.start:ul?{page:Al.page,client:Al.client,timeStamp:y.coords.cur.timeStamp}:y.coords.cur;return Se.page=oe({},Cl.page),Se.client=oe({},Cl.client),Se.rect=oe({},y.rect),Se.timeStamp=Cl.timeStamp,ul||(Se.page.x-=al.x,Se.page.y-=al.y,Se.client.x-=al.x,Se.client.y-=al.y),Se.ctrlKey=k.ctrlKey,Se.altKey=k.altKey,Se.shiftKey=k.shiftKey,Se.metaKey=k.metaKey,Se.button=k.button,Se.buttons=k.buttons,Se.target=ae,Se.currentTarget=ae,Se.preEnd=ke,Se.type=qe||L+(Y||""),Se.interactable=la,Se.t0=ll?y.pointers[y.pointers.length-1].downTime:Al.t0,Se.x0=y.coords.start.page.x-al.x,Se.y0=y.coords.start.page.y-al.y,Se.clientX0=y.coords.start.client.x-al.x,Se.clientY0=y.coords.start.client.y-al.y,Se.delta=ll||ul?{x:0,y:0}:{x:Se[za].x-Al[za].x,y:Se[za].y-Al[za].y},Se.dt=y.coords.delta.timeStamp,Se.duration=Se.timeStamp-Se.t0,Se.velocity=oe({},y.coords.velocity[za]),Se.speed=Ia(Se.velocity.x,Se.velocity.y),Se.swipe=ul||Y==="inertiastart"?Se.getSwipe():null,Se}return c(h,[{key:"getSwipe",value:function(){var y=this._interaction;if(y.prevEvent.speed<600||this.timeStamp-y.prevEvent.timeStamp>150)return null;var k=180*Math.atan2(y.prevEvent.velocityY,y.prevEvent.velocityX)/Math.PI;k<0&&(k+=360);var L=112.5<=k&&k<247.5,Y=202.5<=k&&k<337.5;return{up:Y,down:!Y&&22.5<=k&&k<157.5,left:L,right:!L&&(292.5<=k||k<67.5),angle:k,speed:y.prevEvent.speed,velocity:{x:y.prevEvent.velocityX,y:y.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),h}(ka);Object.defineProperties(ir.prototype,{pageX:{get:function(){return this.page.x},set:function(s){this.page.x=s}},pageY:{get:function(){return this.page.y},set:function(s){this.page.y=s}},clientX:{get:function(){return this.client.x},set:function(s){this.client.x=s}},clientY:{get:function(){return this.client.y},set:function(s){this.client.y=s}},dx:{get:function(){return this.delta.x},set:function(s){this.delta.x=s}},dy:{get:function(){return this.delta.y},set:function(s){this.delta.y=s}},velocityX:{get:function(){return this.velocity.x},set:function(s){this.velocity.x=s}},velocityY:{get:function(){return this.velocity.y},set:function(s){this.velocity.y=s}}});var on=c(function s(o,h,y,k,L){t(this,s),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=o,this.pointer=h,this.event=y,this.downTime=k,this.downTarget=L}),Jr=function(s){return s.interactable="",s.element="",s.prepared="",s.pointerIsDown="",s.pointerWasMoved="",s._proxy="",s}({}),Ur=function(s){return s.start="",s.move="",s.end="",s.stop="",s.interacting="",s}({}),en=0,an=function(){function s(o){var h=this,y=o.pointerType,k=o.scopeFire;t(this,s),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=ja(function(Se){this.move(Se)},"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=en++,this._scopeFire=k,this.pointerType=y;var L=this;this._proxy={};var Y=function(Se){Object.defineProperty(h._proxy,Se,{get:function(){return L[Se]}})};for(var ae in Jr)Y(ae);var ke=function(Se){Object.defineProperty(h._proxy,Se,{value:function(){return L[Se].apply(L,arguments)}})};for(var qe in Ur)ke(qe);this._scopeFire("interactions:new",{interaction:this})}return c(s,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(o,h,y){var k=this.updatePointer(o,h,y,!0),L=this.pointers[k];this._scopeFire("interactions:down",{pointer:o,event:h,eventTarget:y,pointerIndex:k,pointerInfo:L,type:"down",interaction:this})}},{key:"start",value:function(o,h,y){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(o.name==="gesture"?2:1)||!h.options[o.name].enabled)&&(na(this.prepared,o),this.interactable=h,this.element=y,this.rect=h.getRect(y),this.edges=this.prepared.edges?oe({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(o,h,y){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(o,h,y,!1);var k,L,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&&(k=this.coords.cur.client.x-this.coords.start.client.x,L=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=Ia(k,L)>this.pointerMoveTolerance);var ae,ke,qe,Se=this.getPointerIndex(o),la={pointer:o,pointerIndex:Se,pointerInfo:this.pointers[Se],event:h,type:"move",eventTarget:y,dx:k,dy:L,duplicate:Y,interaction:this};Y||(ae=this.coords.velocity,ke=this.coords.delta,qe=Math.max(ke.timeStamp/1e3,.001),ae.page.x=ke.page.x/qe,ae.page.y=ke.page.y/qe,ae.client.x=ke.client.x/qe,ae.client.y=ke.client.y/qe,ae.timeStamp=qe),this._scopeFire("interactions:move",la),Y||this.simulation||(this.interacting()&&(la.type=null,this.move(la)),this.pointerWasMoved&&Q(this.coords.prev,this.coords.cur))}},{key:"move",value:function(o){o&&o.event||fe(this.coords.delta),(o=oe({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},o||{})).phase="move",this._doPhase(o)}},{key:"pointerUp",value:function(o,h,y,k){var L=this.getPointerIndex(o);L===-1&&(L=this.updatePointer(o,h,y,!1));var Y=/cancel$/i.test(h.type)?"cancel":"up";this._scopeFire("interactions:".concat(Y),{pointer:o,pointerIndex:L,pointerInfo:this.pointers[L],event:h,eventTarget:y,type:Y,curEventTarget:k,interaction:this}),this.simulation||this.end(h),this.removePointer(o,h)}},{key:"documentBlur",value:function(o){this.end(o),this._scopeFire("interactions:blur",{event:o,type:"blur",interaction:this})}},{key:"end",value:function(o){var h;this._ending=!0,o=o||this._latestPointer.event,this.interacting()&&(h=this._doPhase({event:o,interaction:this,phase:"end"})),this._ending=!1,h===!0&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(o){var h=je(o);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:J(this.pointers,function(y){return y.id===h})}},{key:"getPointerInfo",value:function(o){return this.pointers[this.getPointerIndex(o)]}},{key:"updatePointer",value:function(o,h,y,k){var L,Y,ae,ke=je(o),qe=this.getPointerIndex(o),Se=this.pointers[qe];return k=k!==!1&&(k||/(down|start)$/i.test(h.type)),Se?Se.pointer=o:(Se=new on(ke,o,h,null,null),qe=this.pointers.length,this.pointers.push(Se)),ba(this.coords.cur,this.pointers.map(function(la){return la.pointer}),this._now()),L=this.coords.delta,Y=this.coords.prev,ae=this.coords.cur,L.page.x=ae.page.x-Y.page.x,L.page.y=ae.page.y-Y.page.y,L.client.x=ae.client.x-Y.client.x,L.client.y=ae.client.y-Y.client.y,L.timeStamp=ae.timeStamp-Y.timeStamp,k&&(this.pointerIsDown=!0,Se.downTime=this.coords.cur.timeStamp,Se.downTarget=y,V(this.downPointer,o),this.interacting()||(Q(this.coords.start,this.coords.cur),Q(this.coords.prev,this.coords.cur),this.downEvent=h,this.pointerWasMoved=!1)),this._updateLatestPointer(o,h,y),this._scopeFire("interactions:update-pointer",{pointer:o,event:h,eventTarget:y,down:k,pointerInfo:Se,pointerIndex:qe,interaction:this}),qe}},{key:"removePointer",value:function(o,h){var y=this.getPointerIndex(o);if(y!==-1){var k=this.pointers[y];this._scopeFire("interactions:remove-pointer",{pointer:o,event:h,eventTarget:null,pointerIndex:y,pointerInfo:k,interaction:this}),this.pointers.splice(y,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(o,h,y){this._latestPointer.pointer=o,this._latestPointer.event=h,this._latestPointer.eventTarget=y}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(o,h,y,k){return new ir(this,o,this.prepared.name,h,this.element,y,k)}},{key:"_fireEvent",value:function(o){var h;(h=this.interactable)==null||h.fire(o),(!this.prevEvent||o.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=o)}},{key:"_doPhase",value:function(o){var h=o.event,y=o.phase,k=o.preEnd,L=o.type,Y=this.rect;if(Y&&y==="move"&&(ue(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(y),o)===!1)return!1;var ae=o.iEvent=this._createPreparedEvent(h,y,k,L);return this._scopeFire("interactions:action-".concat(y),o),y==="start"&&(this.prevEvent=ae),this._fireEvent(ae),this._scopeFire("interactions:after-action-".concat(y),o),!0}},{key:"_now",value:function(){return Date.now()}}]),s}();function cr(s){br(s.interaction)}function br(s){if(!function(h){return!(!h.offset.pending.x&&!h.offset.pending.y)}(s))return!1;var o=s.offset.pending;return Xl(s.coords.cur,o),Xl(s.coords.delta,o),ue(s.edges,s.rect,o),o.x=0,o.y=0,!0}function jr(s){var o=s.x,h=s.y;this.offset.pending.x+=o,this.offset.pending.y+=h,this.offset.total.x+=o,this.offset.total.y+=h}function Xl(s,o){var h=s.page,y=s.client,k=o.x,L=o.y;h.x+=k,h.y+=L,y.x+=k,y.y+=L}Ur.offsetBy="";var Ml={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(s){s.Interaction.prototype.offsetBy=jr},listeners:{"interactions:new":function(s){s.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(s){return function(o){o.pointerIsDown&&(Xl(o.coords.cur,o.offset.total),o.offset.pending.x=0,o.offset.pending.y=0)}(s.interaction)},"interactions:before-action-start":cr,"interactions:before-action-move":cr,"interactions:before-action-end":function(s){var o=s.interaction;if(br(o))return o.move({offset:!0}),o.end(),!1},"interactions:stop":function(s){var o=s.interaction;o.offset.total.x=0,o.offset.total.y=0,o.offset.pending.x=0,o.offset.pending.y=0}}},Dr=Ml,Yl=function(){function s(o){t(this,s),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=o}return c(s,[{key:"start",value:function(o){var h=this.interaction,y=vr(h);if(!y||!y.enabled)return!1;var k=h.coords.velocity.client,L=Ia(k.x,k.y),Y=this.modification||(this.modification=new gl(h));if(Y.copyFrom(h.modification),this.t0=h._now(),this.allowResume=y.allowResume,this.v0=L,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&&L>y.minSpeed&&L>y.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:o,phase:"inertiastart"}),h.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),h.modification.result.rect=null,this.active=!0,h.simulation=this,!0}},{key:"startInertia",value:function(){var o=this,h=this.interaction.coords.velocity.client,y=vr(this.interaction),k=y.resistance,L=-Math.log(y.endSpeed/this.v0)/k;this.targetOffset={x:(h.x-L)/k,y:(h.y-L)/k},this.te=L,this.lambda_v0=k/this.v0,this.one_ve_v0=1-y.endSpeed/this.v0;var Y=this.modification,ae=this.modifierArg;ae.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},Y.result=Y.setAll(ae),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 o.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var o=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame(function(){return o.smoothEndTick()})}},{key:"onNextFrame",value:function(o){var h=this;this.timeout=Nl.request(function(){h.active&&o()})}},{key:"inertiaTick",value:function(){var o,h,y,k,L,Y,ae,ke=this,qe=this.interaction,Se=vr(qe).resistance,la=(qe._now()-this.t0)/1e3;if(la<this.te){var za,al=1-(Math.exp(-Se*la)-this.lambda_v0)/this.one_ve_v0;this.isModified?(o=0,h=0,y=this.targetOffset.x,k=this.targetOffset.y,L=this.modifiedOffset.x,Y=this.modifiedOffset.y,za={x:kr(ae=al,o,y,L),y:kr(ae,h,k,Y)}):za={x:this.targetOffset.x*al,y:this.targetOffset.y*al};var ll={x:za.x-this.currentOffset.x,y:za.y-this.currentOffset.y};this.currentOffset.x+=ll.x,this.currentOffset.y+=ll.y,qe.offsetBy(ll),qe.move(),this.onNextFrame(function(){return ke.inertiaTick()})}else qe.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var o=this,h=this.interaction,y=h._now()-this.t0,k=vr(h).smoothEndDuration;if(y<k){var L={x:wr(y,0,this.targetOffset.x,k),y:wr(y,0,this.targetOffset.y,k)},Y={x:L.x-this.currentOffset.x,y:L.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 o.smoothEndTick()})}else h.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(o){var h=o.pointer,y=o.event,k=o.eventTarget,L=this.interaction;L.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),L.updatePointer(h,y,k,!0),L._doPhase({interaction:L,event:y,phase:"resume"}),Q(L.coords.prev,L.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,Nl.cancel(this.timeout)}}]),s}();function vr(s){var o=s.interactable,h=s.prepared;return o&&o.options&&h.name&&o.options[h.name].inertia}var Tr={id:"inertia",before:["modifiers","actions"],install:function(s){var o=s.defaults;s.usePlugin(Dr),s.usePlugin(Wr),s.actions.phases.inertiastart=!0,s.actions.phases.resume=!0,o.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(s){var o=s.interaction;o.inertia=new Yl(o)},"interactions:before-action-end":function(s){var o=s.interaction,h=s.event;return(!o._interacting||o.simulation||!o.inertia.start(h))&&null},"interactions:down":function(s){var o=s.interaction,h=s.eventTarget,y=o.inertia;if(y.active)for(var k=h;C.element(k);){if(k===o.element){y.resume(s);break}k=Re(k)}},"interactions:stop":function(s){var o=s.interaction.inertia;o.active&&o.stop()},"interactions:before-action-resume":function(s){var o=s.interaction.modification;o.stop(s),o.start(s,s.interaction.coords.cur.page),o.applyToInteraction(s)},"interactions:before-action-inertiastart":function(s){return s.interaction.modification.setAndApply(s)},"interactions:action-resume":Sr,"interactions:action-inertiastart":Sr,"interactions:after-action-inertiastart":function(s){return s.interaction.modification.restoreInteractionCoords(s)},"interactions:after-action-resume":function(s){return s.interaction.modification.restoreInteractionCoords(s)}}};function kr(s,o,h,y){var k=1-s;return k*k*o+2*k*s*h+s*s*y}function wr(s,o,h,y){return-h*(s/=y)*(s-2)+o}var tn=Tr;function yn(s,o){for(var h=0;h<o.length;h++){var y=o[h];if(s.immediatePropagationStopped)break;y(s)}}var Dn=function(){function s(o){t(this,s),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=oe({},o||{})}return c(s,[{key:"fire",value:function(o){var h,y=this.global;(h=this.types[o.type])&&yn(o,h),!o.propagationStopped&&y&&(h=y[o.type])&&yn(o,h)}},{key:"on",value:function(o,h){var y=Ge(o,h);for(o in y)this.types[o]=Je(this.types[o]||[],y[o])}},{key:"off",value:function(o,h){var y=Ge(o,h);for(o in y){var k=this.types[o];if(k&&k.length)for(var L=0,Y=y[o];L<Y.length;L++){var ae=Y[L],ke=k.indexOf(ae);ke!==-1&&k.splice(ke,1)}}}},{key:"getRect",value:function(o){return null}}]),s}(),vi=function(){function s(o){t(this,s),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=o,V(this,o)}return c(s,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),s}();function _n(s){return C.object(s)?{capture:!!s.capture,passive:!!s.passive}:{capture:!!s,passive:!1}}function An(s,o){return s===o||(typeof s=="boolean"?!!o.capture===s&&!o.passive:!!s.capture==!!o.capture&&!!s.passive==!!o.passive)}var Kn={id:"events",install:function(s){var o,h=[],y={},k=[],L={add:Y,remove:ae,addDelegate:function(Se,la,za,al,ll){var ul=_n(ll);if(!y[za]){y[za]=[];for(var Al=0;Al<k.length;Al++){var Cl=k[Al];Y(Cl,za,ke),Y(Cl,za,qe,!0)}}var jl=y[za],Ql=Fe(jl,function(or){return or.selector===Se&&or.context===la});Ql||(Ql={selector:Se,context:la,listeners:[]},jl.push(Ql)),Ql.listeners.push({func:al,options:ul})},removeDelegate:function(Se,la,za,al,ll){var ul,Al=_n(ll),Cl=y[za],jl=!1;if(Cl)for(ul=Cl.length-1;ul>=0;ul--){var Ql=Cl[ul];if(Ql.selector===Se&&Ql.context===la){for(var or=Ql.listeners,Bl=or.length-1;Bl>=0;Bl--){var ar=or[Bl];if(ar.func===al&&An(ar.options,Al)){or.splice(Bl,1),or.length||(Cl.splice(ul,1),ae(la,za,ke),ae(la,za,qe,!0)),jl=!0;break}}if(jl)break}}},delegateListener:ke,delegateUseCapture:qe,delegatedEvents:y,documents:k,targets:h,supportsOptions:!1,supportsPassive:!1};function Y(Se,la,za,al){if(Se.addEventListener){var ll=_n(al),ul=Fe(h,function(Al){return Al.eventTarget===Se});ul||(ul={eventTarget:Se,events:{}},h.push(ul)),ul.events[la]||(ul.events[la]=[]),Fe(ul.events[la],function(Al){return Al.func===za&&An(Al.options,ll)})||(Se.addEventListener(la,za,L.supportsOptions?ll:ll.capture),ul.events[la].push({func:za,options:ll}))}}function ae(Se,la,za,al){if(Se.addEventListener&&Se.removeEventListener){var ll=J(h,function(Ir){return Ir.eventTarget===Se}),ul=h[ll];if(ul&&ul.events)if(la!=="all"){var Al=!1,Cl=ul.events[la];if(Cl){if(za==="all"){for(var jl=Cl.length-1;jl>=0;jl--){var Ql=Cl[jl];ae(Se,la,Ql.func,Ql.options)}return}for(var or=_n(al),Bl=0;Bl<Cl.length;Bl++){var ar=Cl[Bl];if(ar.func===za&&An(ar.options,or)){Se.removeEventListener(la,za,L.supportsOptions?or:or.capture),Cl.splice(Bl,1),Cl.length===0&&(delete ul.events[la],Al=!0);break}}}Al&&!Object.keys(ul.events).length&&h.splice(ll,1)}else for(la in ul.events)ul.events.hasOwnProperty(la)&&ae(Se,la,"all")}}function ke(Se,la){for(var za=_n(la),al=new vi(Se),ll=y[Se.type],ul=Ce(Se)[0],Al=ul;C.element(Al);){for(var Cl=0;Cl<ll.length;Cl++){var jl=ll[Cl],Ql=jl.selector,or=jl.context;if(ce(Al,Ql)&&re(or,ul)&&re(or,Al)){var Bl=jl.listeners;al.currentTarget=Al;for(var ar=0;ar<Bl.length;ar++){var Ir=Bl[ar];An(Ir.options,za)&&Ir.func(al)}}}Al=Re(Al)}}function qe(Se){return ke(Se,!0)}return(o=s.document)==null||o.createElement("div").addEventListener("test",null,{get capture(){return L.supportsOptions=!0},get passive(){return L.supportsPassive=!0}}),s.events=L,L}},gn={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(s){for(var o=0,h=gn.methodOrder;o<h.length;o++){var y=h[o],k=gn[y](s);if(k)return k}return null},simulationResume:function(s){var o=s.pointerType,h=s.eventType,y=s.eventTarget,k=s.scope;if(!/down|start/i.test(h))return null;for(var L=0,Y=k.interactions.list;L<Y.length;L++){var ae=Y[L],ke=y;if(ae.simulation&&ae.simulation.allowResume&&ae.pointerType===o)for(;ke;){if(ke===ae.element)return ae;ke=Re(ke)}}return null},mouseOrPen:function(s){var o,h=s.pointerId,y=s.pointerType,k=s.eventType,L=s.scope;if(y!=="mouse"&&y!=="pen")return null;for(var Y=0,ae=L.interactions.list;Y<ae.length;Y++){var ke=ae[Y];if(ke.pointerType===y){if(ke.simulation&&!Vn(ke,h))continue;if(ke.interacting())return ke;o||(o=ke)}}if(o)return o;for(var qe=0,Se=L.interactions.list;qe<Se.length;qe++){var la=Se[qe];if(!(la.pointerType!==y||/down/i.test(k)&&la.simulation))return la}return null},hasPointer:function(s){for(var o=s.pointerId,h=0,y=s.scope.interactions.list;h<y.length;h++){var k=y[h];if(Vn(k,o))return k}return null},idle:function(s){for(var o=s.pointerType,h=0,y=s.scope.interactions.list;h<y.length;h++){var k=y[h];if(k.pointers.length===1){var L=k.interactable;if(L&&(!L.options.gesture||!L.options.gesture.enabled))continue}else if(k.pointers.length>=2)continue;if(!k.interacting()&&o===k.pointerType)return k}return null}};function Vn(s,o){return s.pointers.some(function(h){return h.id===o})}var li=gn,dn=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function zn(s,o){return function(h){var y=o.interactions.list,k=Ba(h),L=Ce(h),Y=L[0],ae=L[1],ke=[];if(/^touch/.test(h.type)){o.prevTouchTime=o.now();for(var qe=0,Se=h.changedTouches;qe<Se.length;qe++){var la=Se[qe],za={pointer:la,pointerId:je(la),pointerType:k,eventType:h.type,eventTarget:Y,curEventTarget:ae,scope:o},al=Tn(za);ke.push([za.pointer,za.eventTarget,za.curEventTarget,al])}}else{var ll=!1;if(!X.supportsPointerEvent&&/mouse/.test(h.type)){for(var ul=0;ul<y.length&&!ll;ul++)ll=y[ul].pointerType!=="mouse"&&y[ul].pointerIsDown;ll=ll||o.now()-o.prevTouchTime<500||h.timeStamp===0}if(!ll){var Al={pointer:h,pointerId:je(h),pointerType:k,eventType:h.type,curEventTarget:ae,eventTarget:Y,scope:o},Cl=Tn(Al);ke.push([Al.pointer,Al.eventTarget,Al.curEventTarget,Cl])}}for(var jl=0;jl<ke.length;jl++){var Ql=ke[jl],or=Ql[0],Bl=Ql[1],ar=Ql[2];Ql[3][s](or,h,Bl,ar)}}}function Tn(s){var o=s.pointerType,h=s.scope,y={interaction:li.search(s),searchDetails:s};return h.fire("interactions:find",y),y.interaction||h.interactions.new({pointerType:o})}function mi(s,o){var h=s.doc,y=s.scope,k=s.options,L=y.interactions.docEvents,Y=y.events,ae=Y[o];for(var ke in y.browser.isIOS&&!k.events&&(k.events={passive:!1}),Y.delegatedEvents)ae(h,ke,Y.delegateListener),ae(h,ke,Y.delegateUseCapture,!0);for(var qe=k&&k.events,Se=0;Se<L.length;Se++){var la=L[Se];ae(h,la.type,la.listener,qe)}}var Ho={id:"core/interactions",install:function(s){for(var o={},h=0;h<dn.length;h++){var y=dn[h];o[y]=zn(y,s)}var k,L=X.pEventTypes;function Y(){for(var ae=0,ke=s.interactions.list;ae<ke.length;ae++){var qe=ke[ae];if(qe.pointerIsDown&&qe.pointerType==="touch"&&!qe._interacting)for(var Se=function(){var al=za[la];s.documents.some(function(ll){return re(ll.doc,al.downTarget)})||qe.removePointer(al.pointer,al.event)},la=0,za=qe.pointers;la<za.length;la++)Se()}}(k=H.PointerEvent?[{type:L.down,listener:Y},{type:L.down,listener:o.pointerDown},{type:L.move,listener:o.pointerMove},{type:L.up,listener:o.pointerUp},{type:L.cancel,listener:o.pointerUp}]:[{type:"mousedown",listener:o.pointerDown},{type:"mousemove",listener:o.pointerMove},{type:"mouseup",listener:o.pointerUp},{type:"touchstart",listener:Y},{type:"touchstart",listener:o.pointerDown},{type:"touchmove",listener:o.pointerMove},{type:"touchend",listener:o.pointerUp},{type:"touchcancel",listener:o.pointerUp}]).push({type:"blur",listener:function(ae){for(var ke=0,qe=s.interactions.list;ke<qe.length;ke++)qe[ke].documentBlur(ae)}}),s.prevTouchTime=0,s.Interaction=function(ae){m(qe,ae);var ke=M(qe);function qe(){return t(this,qe),ke.apply(this,arguments)}return c(qe,[{key:"pointerMoveTolerance",get:function(){return s.interactions.pointerMoveTolerance},set:function(Se){s.interactions.pointerMoveTolerance=Se}},{key:"_now",value:function(){return s.now()}}]),qe}(an),s.interactions={list:[],new:function(ae){ae.scopeFire=function(qe,Se){return s.fire(qe,Se)};var ke=new s.Interaction(ae);return s.interactions.list.push(ke),ke},listeners:o,docEvents:k,pointerMoveTolerance:1},s.usePlugin(Sa)},listeners:{"scope:add-document":function(s){return mi(s,"add")},"scope:remove-document":function(s){return mi(s,"remove")},"interactable:unset":function(s,o){for(var h=s.interactable,y=o.interactions.list.length-1;y>=0;y--){var k=o.interactions.list[y];k.interactable===h&&(k.stop(),o.fire("interactions:destroy",{interaction:k}),k.destroy(),o.interactions.list.length>2&&o.interactions.list.splice(y,1))}}},onDocSignal:mi,doOnInteractions:zn,methodNames:dn},Uo=Ho,Mn=function(s){return s[s.On=0]="On",s[s.Off=1]="Off",s}(Mn||{}),qo=function(){function s(o,h,y,k){t(this,s),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new Dn,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=h.actions,this.target=o,this._context=h.context||y,this._win=x(_a(o)?this._context:o),this._doc=this._win.document,this._scopeEvents=k,this.set(h)}return c(s,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(o,h){return C.func(h.onstart)&&this.on("".concat(o,"start"),h.onstart),C.func(h.onmove)&&this.on("".concat(o,"move"),h.onmove),C.func(h.onend)&&this.on("".concat(o,"end"),h.onend),C.func(h.oninertiastart)&&this.on("".concat(o,"inertiastart"),h.oninertiastart),this}},{key:"updatePerActionListeners",value:function(o,h,y){var k,L=this,Y=(k=this._actions.map[o])==null?void 0:k.filterEventType,ae=function(ke){return(Y==null||Y(ke))&&pl(ke,L._actions)};(C.array(h)||C.object(h))&&this._onOff(Mn.Off,o,h,void 0,ae),(C.array(y)||C.object(y))&&this._onOff(Mn.On,o,y,void 0,ae)}},{key:"setPerAction",value:function(o,h){var y=this._defaults;for(var k in h){var L=k,Y=this.options[o],ae=h[L];L==="listeners"&&this.updatePerActionListeners(o,Y.listeners,ae),C.array(ae)?Y[L]=K(ae):C.plainObject(ae)?(Y[L]=oe(Y[L]||{},Qa(ae)),C.object(y.perAction[L])&&"enabled"in y.perAction[L]&&(Y[L].enabled=ae.enabled!==!1)):C.bool(ae)&&C.object(y.perAction[L])?Y[L].enabled=ae:Y[L]=ae}}},{key:"getRect",value:function(o){return o=o||(C.element(this.target)?this.target:null),C.string(this.target)&&(o=o||this._context.querySelector(this.target)),$e(o)}},{key:"rectChecker",value:function(o){var h=this;return C.func(o)?(this.getRect=function(y){var k=oe({},o.apply(h,y));return"width"in k||(k.width=k.right-k.left,k.height=k.bottom-k.top),k},this):o===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(o,h){if(_a(h)||C.object(h)){for(var y in this.options[o]=h,this._actions.map)this.options[y][o]=h;return this}return this.options[o]}},{key:"origin",value:function(o){return this._backCompatOption("origin",o)}},{key:"deltaSource",value:function(o){return o==="page"||o==="client"?(this.options.deltaSource=o,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var o=this.target;return C.string(o)?Array.from(this._context.querySelectorAll(o)):C.func(o)&&o.getAllElements?o.getAllElements():C.element(o)?[o]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(o){return this._context===o.ownerDocument||re(this._context,o)}},{key:"testIgnoreAllow",value:function(o,h,y){return!this.testIgnore(o.ignoreFrom,h,y)&&this.testAllow(o.allowFrom,h,y)}},{key:"testAllow",value:function(o,h,y){return!o||!!C.element(y)&&(C.string(o)?q(y,o,h):!!C.element(o)&&re(o,y))}},{key:"testIgnore",value:function(o,h,y){return!(!o||!C.element(y))&&(C.string(o)?q(y,o,h):!!C.element(o)&&re(o,y))}},{key:"fire",value:function(o){return this.events.fire(o),this}},{key:"_onOff",value:function(o,h,y,k,L){C.object(h)&&!C.array(h)&&(k=y,y=null);var Y=Ge(h,y,L);for(var ae in Y){ae==="wheel"&&(ae=X.wheelEvent);for(var ke=0,qe=Y[ae];ke<qe.length;ke++){var Se=qe[ke];pl(ae,this._actions)?this.events[o===Mn.On?"on":"off"](ae,Se):C.string(this.target)?this._scopeEvents[o===Mn.On?"addDelegate":"removeDelegate"](this.target,this._context,ae,Se,k):this._scopeEvents[o===Mn.On?"add":"remove"](this.target,ae,Se,k)}}return this}},{key:"on",value:function(o,h,y){return this._onOff(Mn.On,o,h,y)}},{key:"off",value:function(o,h,y){return this._onOff(Mn.Off,o,h,y)}},{key:"set",value:function(o){var h=this._defaults;for(var y in C.object(o)||(o={}),this.options=Qa(h.base),this._actions.methodDict){var k=y,L=this._actions.methodDict[k];this.options[k]={},this.setPerAction(k,oe(oe({},h.perAction),h.actions[k])),this[L](o[k])}for(var Y in o)Y!=="getRect"?C.func(this[Y])&&this[Y](o[Y]):this.rectChecker(o.getRect);return this}},{key:"unset",value:function(){if(C.string(this.target))for(var o in this._scopeEvents.delegatedEvents)for(var h=this._scopeEvents.delegatedEvents[o],y=h.length-1;y>=0;y--){var k=h[y],L=k.selector,Y=k.context,ae=k.listeners;L===this.target&&Y===this._context&&h.splice(y,1);for(var ke=ae.length-1;ke>=0;ke--)this._scopeEvents.removeDelegate(this.target,this._context,o,ae[ke][0],ae[ke][1])}else this._scopeEvents.remove(this.target,"all")}}]),s}(),Wo=function(){function s(o){var h=this;t(this,s),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=o,o.addListeners({"interactable:unset":function(y){var k=y.interactable,L=k.target,Y=C.string(L)?h.selectorMap[L]:L[h.scope.id],ae=J(Y,function(ke){return ke===k});Y.splice(ae,1)}})}return c(s,[{key:"new",value:function(o,h){h=oe(h||{},{actions:this.scope.actions});var y=new this.scope.Interactable(o,h,this.scope.document,this.scope.events);return this.scope.addDocument(y._doc),this.list.push(y),C.string(o)?(this.selectorMap[o]||(this.selectorMap[o]=[]),this.selectorMap[o].push(y)):(y.target[this.scope.id]||Object.defineProperty(o,this.scope.id,{value:[],configurable:!0}),o[this.scope.id].push(y)),this.scope.fire("interactable:new",{target:o,options:h,interactable:y,win:this.scope._win}),y}},{key:"getExisting",value:function(o,h){var y=h&&h.context||this.scope.document,k=C.string(o),L=k?this.selectorMap[o]:o[this.scope.id];if(L)return Fe(L,function(Y){return Y._context===y&&(k||Y.inContext(o))})}},{key:"forEachMatch",value:function(o,h){for(var y=0,k=this.list;y<k.length;y++){var L=k[y],Y=void 0;if((C.string(L.target)?C.element(o)&&ce(o,L.target):o===L.target)&&L.inContext(o)&&(Y=h(L)),Y!==void 0)return Y}}}]),s}(),Ko=function(){function s(){var o=this;t(this,s),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=X,this.defaults=Qa(Gl),this.Eventable=Dn,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(y){var k=function L(Y,ae){var ke=y.interactables.getExisting(Y,ae);return ke||((ke=y.interactables.new(Y,ae)).events.global=L.globalEvents),ke};return k.getPointerAverage=Ee,k.getTouchBBox=Pa,k.getTouchDistance=Ea,k.getTouchAngle=ia,k.getElementRect=$e,k.getElementClientRect=Me,k.matchesSelector=ce,k.closest=ve,k.globalEvents={},k.version="1.10.27",k.scope=y,k.use=function(L,Y){return this.scope.usePlugin(L,Y),this},k.isSet=function(L,Y){return!!this.scope.interactables.get(L,Y&&Y.context)},k.on=ja(function(L,Y,ae){if(C.string(L)&&L.search(" ")!==-1&&(L=L.trim().split(/ +/)),C.array(L)){for(var ke=0,qe=L;ke<qe.length;ke++){var Se=qe[ke];this.on(Se,Y,ae)}return this}if(C.object(L)){for(var la in L)this.on(la,L[la],Y);return this}return pl(L,this.scope.actions)?this.globalEvents[L]?this.globalEvents[L].push(Y):this.globalEvents[L]=[Y]:this.scope.events.add(this.scope.document,L,Y,{options:ae}),this},"The interact.on() method is being deprecated"),k.off=ja(function(L,Y,ae){if(C.string(L)&&L.search(" ")!==-1&&(L=L.trim().split(/ +/)),C.array(L)){for(var ke=0,qe=L;ke<qe.length;ke++){var Se=qe[ke];this.off(Se,Y,ae)}return this}if(C.object(L)){for(var la in L)this.off(la,L[la],Y);return this}var za;return pl(L,this.scope.actions)?L in this.globalEvents&&(za=this.globalEvents[L].indexOf(Y))!==-1&&this.globalEvents[L].splice(za,1):this.scope.events.remove(this.scope.document,L,Y,ae),this},"The interact.off() method is being deprecated"),k.debug=function(){return this.scope},k.supportsTouch=function(){return X.supportsTouch},k.supportsPointerEvent=function(){return X.supportsPointerEvent},k.stop=function(){for(var L=0,Y=this.scope.interactions.list;L<Y.length;L++)Y[L].stop();return this},k.pointerMoveTolerance=function(L){return C.number(L)?(this.scope.interactions.pointerMoveTolerance=L,this):this.scope.interactions.pointerMoveTolerance},k.addDocument=function(L,Y){this.scope.addDocument(L,Y)},k.removeDocument=function(L){this.scope.removeDocument(L)},k}(this),this.InteractEvent=ir,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(y){return o.removeDocument(y.target)};var h=this;this.Interactable=function(y){m(L,y);var k=M(L);function L(){return t(this,L),k.apply(this,arguments)}return c(L,[{key:"_defaults",get:function(){return h.defaults}},{key:"set",value:function(Y){return w(g(L.prototype),"set",this).call(this,Y),h.fire("interactable:set",{options:Y,interactable:this}),this}},{key:"unset",value:function(){w(g(L.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}))}}]),L}(qo)}return c(s,[{key:"addListeners",value:function(o,h){this.listenerMaps.push({id:h,map:o})}},{key:"fire",value:function(o,h){for(var y=0,k=this.listenerMaps;y<k.length;y++){var L=k[y].map[o];if(L&&L(h,this,o)===!1)return!1}}},{key:"init",value:function(o){return this.isInitialized?this:function(h,y){return h.isInitialized=!0,C.window(y)&&E(y),H.init(y),X.init(y),Nl.init(y),h.window=y,h.document=y.document,h.usePlugin(Uo),h.usePlugin(Kn),h}(this,o)}},{key:"pluginIsInstalled",value:function(o){var h=o.id;return h?!!this._plugins.map[h]:this._plugins.list.indexOf(o)!==-1}},{key:"usePlugin",value:function(o,h){if(!this.isInitialized)return this;if(this.pluginIsInstalled(o))return this;if(o.id&&(this._plugins.map[o.id]=o),this._plugins.list.push(o),o.install&&o.install(this,h),o.listeners&&o.before){for(var y=0,k=this.listenerMaps.length,L=o.before.reduce(function(ae,ke){return ae[ke]=!0,ae[Qi(ke)]=!0,ae},{});y<k;y++){var Y=this.listenerMaps[y].id;if(Y&&(L[Y]||L[Qi(Y)]))break}this.listenerMaps.splice(y,0,{id:o.id,map:o.listeners})}else o.listeners&&this.listenerMaps.push({id:o.id,map:o.listeners});return this}},{key:"addDocument",value:function(o,h){if(this.getDocIndex(o)!==-1)return!1;var y=x(o);h=h?oe({},h):{},this.documents.push({doc:o,options:h}),this.events.documents.push(o),o!==this.document&&this.events.add(y,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:o,window:y,scope:this,options:h})}},{key:"removeDocument",value:function(o){var h=this.getDocIndex(o),y=x(o),k=this.documents[h].options;this.events.remove(y,"unload",this.onWindowUnload),this.documents.splice(h,1),this.events.documents.splice(h,1),this.fire("scope:remove-document",{doc:o,window:y,scope:this,options:k})}},{key:"getDocIndex",value:function(o){for(var h=0;h<this.documents.length;h++)if(this.documents[h].doc===o)return h;return-1}},{key:"getDocOptions",value:function(o){var h=this.getDocIndex(o);return h===-1?null:this.documents[h].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),s}();function Qi(s){return s&&s.replace(/\/.*$/,"")}var Oi=new Ko,sn=Oi.interactStatic,Go=typeof globalThis<"u"?globalThis:window;Oi.init(Go);var Yo=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(s){var o=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(y){var k=y[0],L=y[1];return k in s||L in s}),h=function(y,k){for(var L=s.range,Y=s.limits,ae=Y===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:Y,ke=s.offset,qe=ke===void 0?{x:0,y:0}:ke,Se={range:L,grid:s,x:null,y:null},la=0;la<o.length;la++){var za=o[la],al=za[0],ll=za[1],ul=Math.round((y-qe.x)/s[al]),Al=Math.round((k-qe.y)/s[ll]);Se[al]=Math.max(ae.left,Math.min(ae.right,ul*s[al]+qe.x)),Se[ll]=Math.max(ae.top,Math.min(ae.bottom,Al*s[ll]+qe.y))}return Se};return h.grid=s,h.coordFields=o,h}}),Jo={id:"snappers",install:function(s){var o=s.interactStatic;o.snappers=oe(o.snappers||{},Yo),o.createSnapGrid=o.snappers.grid}},Li=Jo,Xo={start:function(s){var o=s.state,h=s.rect,y=s.edges,k=s.pageCoords,L=o.options,Y=L.ratio,ae=L.enabled,ke=o.options,qe=ke.equalDelta,Se=ke.modifiers;Y==="preserve"&&(Y=h.width/h.height),o.startCoords=oe({},k),o.startRect=oe({},h),o.ratio=Y,o.equalDelta=qe;var la=o.linkedEdges={top:y.top||y.left&&!y.bottom,left:y.left||y.top&&!y.right,bottom:y.bottom||y.right&&!y.top,right:y.right||y.bottom&&!y.left};if(o.xIsPrimaryAxis=!(!y.left&&!y.right),o.equalDelta){var za=(la.left?1:-1)*(la.top?1:-1);o.edgeSign={x:za,y:za}}else o.edgeSign={x:la.left?-1:1,y:la.top?-1:1};if(ae!==!1&&oe(y,la),Se!=null&&Se.length){var al=new gl(s.interaction);al.copyFrom(s.interaction.modification),al.prepareStates(Se),o.subModification=al,al.startAll(r({},s))}},set:function(s){var o=s.state,h=s.rect,y=s.coords,k=o.linkedEdges,L=oe({},y),Y=o.equalDelta?Ri:eo;if(oe(s.edges,k),Y(o,o.xIsPrimaryAxis,y,h),!o.subModification)return null;var ae=oe({},h);ue(k,ae,{x:y.x-L.x,y:y.y-L.y});var ke=o.subModification.setAll(r(r({},s),{},{rect:ae,edges:k,pageCoords:y,prevCoords:y,prevRect:ae})),qe=ke.delta;return ke.changed&&(Y(o,Math.abs(qe.x)>Math.abs(qe.y),ke.coords,ke.rect),oe(y,ke.coords)),ke.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function Ri(s,o,h){var y=s.startCoords,k=s.edgeSign;o?h.y=y.y+(h.x-y.x)*k.y:h.x=y.x+(h.y-y.y)*k.x}function eo(s,o,h,y){var k=s.startRect,L=s.startCoords,Y=s.ratio,ae=s.edgeSign;if(o){var ke=y.width/Y;h.y=L.y+(ke-k.height)*ae.y}else{var qe=y.height*Y;h.x=L.x+(qe-k.width)*ae.x}}var ao=Pl(Xo,"aspectRatio"),lo=function(){};lo._defaults={};var yi=lo;function Fn(s,o,h){return C.func(s)?de(s,o.interactable,o.element,[h.x,h.y,o]):de(s,o.interactable,o.element)}var In={start:function(s){var o=s.rect,h=s.startOffset,y=s.state,k=s.interaction,L=s.pageCoords,Y=y.options,ae=Y.elementRect,ke=oe({left:0,top:0,right:0,bottom:0},Y.offset||{});if(o&&ae){var qe=Fn(Y.restriction,k,L);if(qe){var Se=qe.right-qe.left-o.width,la=qe.bottom-qe.top-o.height;Se<0&&(ke.left+=Se,ke.right+=Se),la<0&&(ke.top+=la,ke.bottom+=la)}ke.left+=h.left-o.width*ae.left,ke.top+=h.top-o.height*ae.top,ke.right+=h.right-o.width*(1-ae.right),ke.bottom+=h.bottom-o.height*(1-ae.bottom)}y.offset=ke},set:function(s){var o=s.coords,h=s.interaction,y=s.state,k=y.options,L=y.offset,Y=Fn(k.restriction,h,o);if(Y){var ae=function(ke){return!ke||"left"in ke&&"top"in ke||((ke=oe({},ke)).left=ke.x||0,ke.top=ke.y||0,ke.right=ke.right||ke.left+ke.width,ke.bottom=ke.bottom||ke.top+ke.height),ke}(Y);o.x=Math.max(Math.min(ae.right-L.right,o.x),ae.left+L.left),o.y=Math.max(Math.min(ae.bottom-L.bottom,o.y),ae.top+L.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},ro=Pl(In,"restrict"),gi={top:1/0,left:1/0,bottom:-1/0,right:-1/0},no={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function io(s,o){for(var h=0,y=["top","left","bottom","right"];h<y.length;h++){var k=y[h];k in s||(s[k]=o[k])}return s}var ri={noInner:gi,noOuter:no,start:function(s){var o,h=s.interaction,y=s.startOffset,k=s.state,L=k.options;L&&(o=ea(Fn(L.offset,h,h.coords.start.page))),o=o||{x:0,y:0},k.offset={top:o.y+y.top,left:o.x+y.left,bottom:o.y-y.bottom,right:o.x-y.right}},set:function(s){var o=s.coords,h=s.edges,y=s.interaction,k=s.state,L=k.offset,Y=k.options;if(h){var ae=oe({},o),ke=Fn(Y.inner,y,ae)||{},qe=Fn(Y.outer,y,ae)||{};io(ke,gi),io(qe,no),h.top?o.y=Math.min(Math.max(qe.top+L.top,ae.y),ke.top+L.top):h.bottom&&(o.y=Math.max(Math.min(qe.bottom+L.bottom,ae.y),ke.bottom+L.bottom)),h.left?o.x=Math.min(Math.max(qe.left+L.left,ae.x),ke.left+L.left):h.right&&(o.x=Math.max(Math.min(qe.right+L.right,ae.x),ke.right+L.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},Zo=Pl(ri,"restrictEdges"),oo=oe({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(s){}},In.defaults),ni=Pl({start:In.start,set:In.set,defaults:oo},"restrictRect"),to={width:-1/0,height:-1/0},so={width:1/0,height:1/0},ii=Pl({start:function(s){return ri.start(s)},set:function(s){var o=s.interaction,h=s.state,y=s.rect,k=s.edges,L=h.options;if(k){var Y=Ae(Fn(L.min,o,s.coords))||to,ae=Ae(Fn(L.max,o,s.coords))||so;h.options={endOnly:L.endOnly,inner:oe({},ri.noInner),outer:oe({},ri.noOuter)},k.top?(h.options.inner.top=y.bottom-Y.height,h.options.outer.top=y.bottom-ae.height):k.bottom&&(h.options.inner.bottom=y.top+Y.height,h.options.outer.bottom=y.top+ae.height),k.left?(h.options.inner.left=y.right-Y.width,h.options.outer.left=y.right-ae.width):k.right&&(h.options.inner.right=y.left+Y.width,h.options.outer.right=y.left+ae.width),ri.set(s),h.options=L}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),$i={start:function(s){var o,h=s.interaction,y=s.interactable,k=s.element,L=s.rect,Y=s.state,ae=s.startOffset,ke=Y.options,qe=ke.offsetWithOrigin?function(za){var al=za.interaction.element,ll=ea(de(za.state.options.origin,null,null,[al])),ul=ll||he(za.interactable,al,za.interaction.prepared.name);return ul}(s):{x:0,y:0};if(ke.offset==="startCoords")o={x:h.coords.start.page.x,y:h.coords.start.page.y};else{var Se=de(ke.offset,y,k,[h]);(o=ea(Se)||{x:0,y:0}).x+=qe.x,o.y+=qe.y}var la=ke.relativePoints;Y.offsets=L&&la&&la.length?la.map(function(za,al){return{index:al,relativePoint:za,x:ae.left-L.width*za.x+o.x,y:ae.top-L.height*za.y+o.y}}):[{index:0,relativePoint:null,x:o.x,y:o.y}]},set:function(s){var o=s.interaction,h=s.coords,y=s.state,k=y.options,L=y.offsets,Y=he(o.interactable,o.element,o.prepared.name),ae=oe({},h),ke=[];k.offsetWithOrigin||(ae.x-=Y.x,ae.y-=Y.y);for(var qe=0,Se=L;qe<Se.length;qe++)for(var la=Se[qe],za=ae.x-la.x,al=ae.y-la.y,ll=0,ul=k.targets.length;ll<ul;ll++){var Al=k.targets[ll],Cl=void 0;(Cl=C.func(Al)?Al(za,al,o._proxy,la,ll):Al)&&ke.push({x:(C.number(Cl.x)?Cl.x:za)+la.x,y:(C.number(Cl.y)?Cl.y:al)+la.y,range:C.number(Cl.range)?Cl.range:k.range,source:Al,index:ll,offset:la})}for(var jl={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},Ql=0;Ql<ke.length;Ql++){var or=ke[Ql],Bl=or.range,ar=or.x-ae.x,Ir=or.y-ae.y,Or=Ia(ar,Ir),Vr=Or<=Bl;Bl===1/0&&jl.inRange&&jl.range!==1/0&&(Vr=!1),jl.target&&!(Vr?jl.inRange&&Bl!==1/0?Or/Bl<jl.distance/jl.range:Bl===1/0&&jl.range!==1/0||Or<jl.distance:!jl.inRange&&Or<jl.distance)||(jl.target=or,jl.distance=Or,jl.range=Bl,jl.inRange=Vr,jl.delta.x=ar,jl.delta.y=Ir)}return jl.inRange&&(h.x=jl.target.x,h.y=jl.target.y),y.closest=jl,jl},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},co=Pl($i,"snap"),On={start:function(s){var o=s.state,h=s.edges,y=o.options;if(!h)return null;s.state={options:{targets:null,relativePoints:[{x:h.left?0:1,y:h.top?0:1}],offset:y.offset||"self",origin:{x:0,y:0},range:y.range}},o.targetFields=o.targetFields||[["width","height"],["x","y"]],$i.start(s),o.offsets=s.state.offsets,s.state=o},set:function(s){var o=s.interaction,h=s.state,y=s.coords,k=h.options,L=h.offsets,Y={x:y.x-L[0].x,y:y.y-L[0].y};h.options=oe({},k),h.options.targets=[];for(var ae=0,ke=k.targets||[];ae<ke.length;ae++){var qe=ke[ae],Se=void 0;if(Se=C.func(qe)?qe(Y.x,Y.y,o):qe){for(var la=0,za=h.targetFields;la<za.length;la++){var al=za[la],ll=al[0],ul=al[1];if(ll in Se||ul in Se){Se.x=Se[ll],Se.y=Se[ul];break}}h.options.targets.push(Se)}}var Al=$i.set(s);return h.options=k,Al},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},Qo=Pl(On,"snapSize"),Vi={aspectRatio:ao,restrictEdges:Zo,restrict:ro,restrictRect:ni,restrictSize:ii,snapEdges:Pl({start:function(s){var o=s.edges;return o?(s.state.targetFields=s.state.targetFields||[[o.left?"left":"right",o.top?"top":"bottom"]],On.start(s)):null},set:On.set,defaults:oe(Qa(On.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:co,snapSize:Qo,spring:yi,avoid:yi,transform:yi,rubberband:yi},et={id:"modifiers",install:function(s){var o=s.interactStatic;for(var h in s.usePlugin(Wr),s.usePlugin(Li),o.modifiers=Vi,Vi){var y=Vi[h],k=y._defaults,L=y._methods;k._methods=L,s.defaults.perAction[h]=k}}},at=et,uo=function(s){m(h,s);var o=M(h);function h(y,k,L,Y,ae,ke){var qe;if(t(this,h),V(p(qe=o.call(this,ae)),L),L!==k&&V(p(qe),k),qe.timeStamp=ke,qe.originalEvent=L,qe.type=y,qe.pointerId=je(k),qe.pointerType=Ba(k),qe.target=Y,qe.currentTarget=null,y==="tap"){var Se=ae.getPointerIndex(k);qe.dt=qe.timeStamp-ae.pointers[Se].downTime;var la=qe.timeStamp-ae.tapTime;qe.double=!!ae.prevTap&&ae.prevTap.type!=="doubletap"&&ae.prevTap.target===qe.target&&la<500}else y==="doubletap"&&(qe.dt=k.timeStamp-ae.tapTime,qe.double=!0);return qe}return c(h,[{key:"_subtractOrigin",value:function(y){var k=y.x,L=y.y;return this.pageX-=k,this.pageY-=L,this.clientX-=k,this.clientY-=L,this}},{key:"_addOrigin",value:function(y){var k=y.x,L=y.y;return this.pageX+=k,this.pageY+=L,this.clientX+=k,this.clientY+=L,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),h}(ka),oi={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(s){s.pointerEvents=oi,s.defaults.actions.pointerEvents=oi.defaults,oe(s.actions.phaselessTypes,oi.types)},listeners:{"interactions:new":function(s){var o=s.interaction;o.prevTap=null,o.tapTime=0},"interactions:update-pointer":function(s){var o=s.down,h=s.pointerInfo;!o&&h.hold||(h.hold={duration:1/0,timeout:null})},"interactions:move":function(s,o){var h=s.interaction,y=s.pointer,k=s.event,L=s.eventTarget;s.duplicate||h.pointerIsDown&&!h.pointerWasMoved||(h.pointerIsDown&&bi(s),Ln({interaction:h,pointer:y,event:k,eventTarget:L,type:"move"},o))},"interactions:down":function(s,o){(function(h,y){for(var k=h.interaction,L=h.pointer,Y=h.event,ae=h.eventTarget,ke=h.pointerIndex,qe=k.pointers[ke].hold,Se=Qe(ae),la={interaction:k,pointer:L,event:Y,eventTarget:ae,type:"hold",targets:[],path:Se,node:null},za=0;za<Se.length;za++){var al=Se[za];la.node=al,y.fire("pointerEvents:collect-targets",la)}if(la.targets.length){for(var ll=1/0,ul=0,Al=la.targets;ul<Al.length;ul++){var Cl=Al[ul].eventable.options.holdDuration;Cl<ll&&(ll=Cl)}qe.duration=ll,qe.timeout=setTimeout(function(){Ln({interaction:k,eventTarget:ae,pointer:L,event:Y,type:"hold"},y)},ll)}})(s,o),Ln(s,o)},"interactions:up":function(s,o){bi(s),Ln(s,o),function(h,y){var k=h.interaction,L=h.pointer,Y=h.event,ae=h.eventTarget;k.pointerWasMoved||Ln({interaction:k,eventTarget:ae,pointer:L,event:Y,type:"tap"},y)}(s,o)},"interactions:cancel":function(s,o){bi(s),Ln(s,o)}},PointerEvent:uo,fire:Ln,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 Ln(s,o){var h=s.interaction,y=s.pointer,k=s.event,L=s.eventTarget,Y=s.type,ae=s.targets,ke=ae===void 0?po(s,o):ae,qe=new uo(Y,y,k,L,h,o.now());o.fire("pointerEvents:new",{pointerEvent:qe});for(var Se={interaction:h,pointer:y,event:k,eventTarget:L,targets:ke,type:Y,pointerEvent:qe},la=0;la<ke.length;la++){var za=ke[la];for(var al in za.props||{})qe[al]=za.props[al];var ll=he(za.eventable,za.node);if(qe._subtractOrigin(ll),qe.eventable=za.eventable,qe.currentTarget=za.node,za.eventable.fire(qe),qe._addOrigin(ll),qe.immediatePropagationStopped||qe.propagationStopped&&la+1<ke.length&&ke[la+1].node!==qe.currentTarget)break}if(o.fire("pointerEvents:fired",Se),Y==="tap"){var ul=qe.double?Ln({interaction:h,pointer:y,event:k,eventTarget:L,type:"doubletap"},o):qe;h.prevTap=ul,h.tapTime=ul.timeStamp}return qe}function po(s,o){var h=s.interaction,y=s.pointer,k=s.event,L=s.eventTarget,Y=s.type,ae=h.getPointerIndex(y),ke=h.pointers[ae];if(Y==="tap"&&(h.pointerWasMoved||!ke||ke.downTarget!==L))return[];for(var qe=Qe(L),Se={interaction:h,pointer:y,event:k,eventTarget:L,type:Y,path:qe,targets:[],node:null},la=0;la<qe.length;la++){var za=qe[la];Se.node=za,o.fire("pointerEvents:collect-targets",Se)}return Y==="hold"&&(Se.targets=Se.targets.filter(function(al){var ll,ul;return al.eventable.options.holdDuration===((ll=h.pointers[ae])==null||(ul=ll.hold)==null?void 0:ul.duration)})),Se.targets}function bi(s){var o=s.interaction,h=s.pointerIndex,y=o.pointers[h].hold;y&&y.timeout&&(clearTimeout(y.timeout),y.timeout=null)}var lt=Object.freeze({__proto__:null,default:oi});function rt(s){var o=s.interaction;o.holdIntervalHandle&&(clearInterval(o.holdIntervalHandle),o.holdIntervalHandle=null)}var nt={id:"pointer-events/holdRepeat",install:function(s){s.usePlugin(oi);var o=s.pointerEvents;o.defaults.holdRepeatInterval=0,o.types.holdrepeat=s.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce(function(s,o){return s["pointerEvents:".concat(o)]=rt,s},{"pointerEvents:new":function(s){var o=s.pointerEvent;o.type==="hold"&&(o.count=(o.count||0)+1)},"pointerEvents:fired":function(s,o){var h=s.interaction,y=s.pointerEvent,k=s.eventTarget,L=s.targets;if(y.type==="hold"&&L.length){var Y=L[0].eventable.options.holdRepeatInterval;Y<=0||(h.holdIntervalHandle=setTimeout(function(){o.pointerEvents.fire({interaction:h,eventTarget:k,type:"hold",pointer:y,event:y},o)},Y))}}})},it=nt,ki={id:"pointer-events/interactableTargets",install:function(s){var o=s.Interactable;o.prototype.pointerEvents=function(y){return oe(this.events.options,y),this};var h=o.prototype._backCompatOption;o.prototype._backCompatOption=function(y,k){var L=h.call(this,y,k);return L===this&&(this.events.options[y]=k),L}},listeners:{"pointerEvents:collect-targets":function(s,o){var h=s.targets,y=s.node,k=s.type,L=s.eventTarget;o.interactables.forEachMatch(y,function(Y){var ae=Y.events,ke=ae.options;ae.types[k]&&ae.types[k].length&&Y.testIgnoreAllow(ke,y,L)&&h.push({node:y,eventable:ae,props:{interactable:Y}})})},"interactable:new":function(s){var o=s.interactable;o.events.getRect=function(h){return o.getRect(h)}},"interactable:set":function(s,o){var h=s.interactable,y=s.options;oe(h.events.options,o.pointerEvents.defaults),oe(h.events.options,y.pointerEvents||{})}}},ot=ki,tt={id:"pointer-events",install:function(s){s.usePlugin(lt),s.usePlugin(it),s.usePlugin(ot)}},st=tt,ct={id:"reflow",install:function(s){var o=s.Interactable;s.actions.phases.reflow=!0,o.prototype.reflow=function(h){return function(y,k,L){for(var Y=y.getAllElements(),ae=L.window.Promise,ke=ae?[]:null,qe=function(){var la=Y[Se],za=y.getRect(la);if(!za)return 1;var al,ll=Fe(L.interactions.list,function(Cl){return Cl.interacting()&&Cl.interactable===y&&Cl.element===la&&Cl.prepared.name===k.name});if(ll)ll.move(),ke&&(al=ll._reflowPromise||new ae(function(Cl){ll._reflowResolve=Cl}));else{var ul=Ae(za),Al=function(Cl){return{coords:Cl,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:ul.x,y:ul.y},client:{x:ul.x,y:ul.y},timeStamp:L.now()});al=function(Cl,jl,Ql,or,Bl){var ar=Cl.interactions.new({pointerType:"reflow"}),Ir={interaction:ar,event:Bl,pointer:Bl,eventTarget:Ql,phase:"reflow"};ar.interactable=jl,ar.element=Ql,ar.prevEvent=Bl,ar.updatePointer(Bl,Bl,Ql,!0),fe(ar.coords.delta),na(ar.prepared,or),ar._doPhase(Ir);var Or=Cl.window,Vr=Or.Promise,kn=Vr?new Vr(function(Bn){ar._reflowResolve=Bn}):void 0;return ar._reflowPromise=kn,ar.start(or,jl,Ql),ar._interacting?(ar.move(Ir),ar.end(Bl)):(ar.stop(),ar._reflowResolve()),ar.removePointer(Bl,Bl),kn}(L,y,la,k,Al)}ke&&ke.push(al)},Se=0;Se<Y.length&&!qe();Se++);return ke&&ae.all(ke).then(function(){return y})}(this,h,s)}},listeners:{"interactions:stop":function(s,o){var h=s.interaction;h.pointerType==="reflow"&&(h._reflowResolve&&h._reflowResolve(),function(y,k){y.splice(y.indexOf(k),1)}(o.interactions.list,h))}}},fo=ct;if(sn.use(Sa),sn.use(Dr),sn.use(st),sn.use(tn),sn.use(at),sn.use(yl),sn.use(Kl),sn.use(pa),sn.use(fo),sn.default=sn,i(a)==="object"&&a)try{a.exports=sn}catch{}return sn.default=sn,sn})}(qi,qi.exports)),qi.exports}var O1=I1();const Fs=z.getDefaultExportFromCjs(O1),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:n}){const r=a,i=n,t=e.inject(Jc),f=e.inject(Xc);if(!t)throw new Error("[grid-layout-plus]: missing layout store, GridItem must under a GridLayout.");const c=e.shallowRef(null),u=e.reactive({cols:1,containerWidth:100,rowHeight:30,margin:[10,10],maxRows:1/0,draggable:void 0,resizable:void 0,bounded:void 0,transformScale:1,useCssTransforms:!0,useStyleCursor:!0,isDragging:!1,dragging:{top:-1,left:-1},isResizing:!1,resizing:{width:-1,height:-1},style:{},rtl:!1});let m=!1,g=!1,_=NaN,p=NaN,M=NaN,w=NaN,G=-1,A=-1,P=-1,O=-1,E=r.x,x=r.y,S=r.w,b=r.h;const C=e.ref(),R=e.reactive({i:e.toRef(r,"i"),state:u,wrapper:C,calcXY:de});function $(me){Ge(me)}function le(){wa()}function ee(me){xn(r.isDraggable)&&(u.draggable=me)}function _e(me){xn(r.isResizable)&&(u.resizable=me)}function pe(me){xn(r.isBounded)&&(u.bounded=me)}function H(me){u.transformScale=me}function F(me){u.rowHeight=me}function X(me){u.maxRows=me}function re(){u.rtl=$s()==="rtl",wa()}function ve(me){u.cols=Math.floor(me)}t.increaseItem(R),e.onBeforeMount(()=>{u.rtl=$s()==="rtl"}),e.onMounted(()=>{t.responsive&&t.lastBreakpoint?u.cols=lu(t.lastBreakpoint,t.cols):u.cols=t.colNum,u.rowHeight=t.rowHeight,u.containerWidth=t.width!==null?t.width:100,u.margin=t.margin!==void 0?t.margin.map(Number):[10,10],u.maxRows=t.maxRows,xn(r.isDraggable)?u.draggable=t.isDraggable:u.draggable=r.isDraggable,xn(r.isResizable)?u.resizable=t.isResizable:u.resizable=r.isResizable,xn(r.isBounded)?u.bounded=t.isBounded:u.bounded=r.isBounded,u.transformScale=t.transformScale,u.useCssTransforms=t.useCssTransforms,u.useStyleCursor=t.useStyleCursor,e.watchEffect(()=>{E=r.x,x=r.y,b=r.h,S=r.w,pn($e)}),f.on("updateWidth",$),f.on("compact",le),f.on("setDraggable",ee),f.on("setResizable",_e),f.on("setBounded",pe),f.on("setTransformScale",H),f.on("setRowHeight",F),f.on("setMaxRows",X),f.on("directionchange",re),f.on("setColNum",ve)}),e.onBeforeUnmount(()=>{f.off("updateWidth",$),f.off("compact",le),f.off("setDraggable",ee),f.off("setResizable",_e),f.off("setBounded",pe),f.off("setTransformScale",H),f.off("setRowHeight",F),f.off("setMaxRows",X),f.off("directionchange",re),f.off("setColNum",ve),c.value&&(c.value.unset(),c.value=null),t.decreaseItem(R)}),l({state:u,wrapper:C});const Re=typeof navigator<"u"?navigator.userAgent.toLowerCase().includes("android"):!1,ce=e.computed(()=>u.resizable&&!r.static),B=e.computed(()=>t.isMirrored?!u.rtl:u.rtl),te=e.computed(()=>(u.draggable||u.resizable)&&!r.static),q=C1("item"),xe=e.computed(()=>({[q.b()]:!0,[q.bm("resizable")]:ce.value,[q.bm("static")]:r.static,[q.bm("resizing")]:u.isResizing,[q.bm("dragging")]:u.isDragging,[q.bm("transform")]:u.useCssTransforms,[q.bm("rtl")]:B.value,[q.bm("no-touch")]:Re&&te.value})),Me=e.computed(()=>[q.be("resizer"),B.value&&q.bem("resizer","rtl")].filter(Boolean));e.watch(()=>r.isDraggable,me=>{u.draggable=me}),e.watch(()=>r.static,()=>{pn(V),pn(fe)}),e.watch(()=>u.draggable,()=>{pn(V)}),e.watch(()=>r.isResizable,me=>{u.resizable=me}),e.watch(()=>r.isBounded,me=>{u.bounded=me}),e.watch(()=>u.resizable,()=>{pn(fe)}),e.watch(()=>u.rowHeight,()=>{pn($e),pn(Qe)}),e.watch([()=>u.cols,()=>u.containerWidth],()=>{pn(fe),pn($e),pn(Qe)}),e.watch([()=>r.minH,()=>r.maxH,()=>r.minW,()=>r.maxW],()=>{pn(fe)}),e.watch(B,()=>{pn(fe),pn($e)}),e.watch([()=>t.margin,()=>t.margin[0],()=>t.margin[1]],()=>{const me=t.margin;!me||me[0]===u.margin[0]&&me[1]===u.margin[1]||(u.margin=me.map(Number),pn($e),pn(Qe))});function $e(){r.x+r.w>u.cols?(E=0,S=r.w>u.cols?u.cols:r.w):(E=r.x,S=r.w);const me=sa(E,x,S,b);u.isDragging&&(me.top=u.dragging.top,B.value?me.right=u.dragging.left:me.left=u.dragging.left),u.isResizing&&(me.width=u.resizing.width,me.height=u.resizing.height);let ua;u.useCssTransforms?B.value?ua=w1(me.top,me.right,me.width,me.height):ua=x1(me.top,me.left,me.width,me.height):B.value?ua=S1(me.top,me.right,me.width,me.height):ua=_1(me.top,me.left,me.width,me.height),u.style=ua}function Qe(){const me={};for(const ua of["width","height"]){const ta=u.style[ua].match(/^(\d+)px$/);if(!ta)return;me[ua]=ta[1]}i("container-resized",r.i,r.h,r.w,me.height,me.width)}function _a(me){if(r.static)return;const ua=me.type;if(ua==="resizestart"&&u.isResizing||ua!=="resizestart"&&!u.isResizing)return;const ta=Ls(me);if(xn(ta))return;const{x:je,y:ba}=ta,Ta={width:0,height:0};let Ee;switch(ua){case"resizestart":{fe(),G=S,A=b,Ee=sa(E,x,S,b),Ta.width=Ee.width,Ta.height=Ee.height,u.resizing=Ta,u.isResizing=!0;break}case"resizemove":{!me.edges.right&&!me.edges.left&&(M=je),!me.edges.top&&!me.edges.bottom&&(w=ba);const Pa=Rs(M,w,je,ba);B.value?Ta.width=u.resizing.width-Pa.deltaX/u.transformScale:Ta.width=u.resizing.width+Pa.deltaX/u.transformScale,Ta.height=u.resizing.height+Pa.deltaY/u.transformScale,u.resizing=Ta;break}case"resizeend":{Ee=sa(E,x,S,b),Ta.width=Ee.width,Ta.height=Ee.height,u.resizing={width:-1,height:-1},u.isResizing=!1;break}}Ee=he(Ta.height,Ta.width),Ee.w<r.minW&&(Ee.w=r.minW),Ee.w>r.maxW&&(Ee.w=r.maxW),Ee.h<r.minH&&(Ee.h=r.minH),Ee.h>r.maxH&&(Ee.h=r.maxH),Ee.h<1&&(Ee.h=1),Ee.w<1&&(Ee.w=1),M=je,w=ba,(S!==Ee.w||b!==Ee.h)&&i("resize",r.i,Ee.h,Ee.w,Ta.height,Ta.width),me.type==="resizeend"&&(G!==S||A!==b)&&i("resized",r.i,Ee.h,Ee.w,Ta.height,Ta.width),f.emit("resizeEvent",me.type,r.i,E,x,Ee.h,Ee.w)}function oe(me){if(r.static||u.isResizing)return;const ua=me.type;if(ua==="dragstart"&&u.isDragging||ua!=="dragstart"&&!u.isDragging)return;const ta=Ls(me);if(xn(ta))return;const{x:je,y:ba}=ta,Ta=me.target;if(!Ta.offsetParent)return;const Ee={top:0,left:0};switch(ua){case"dragstart":{P=E,O=x;const Ea=Ta.offsetParent.getBoundingClientRect(),ia=Ta.getBoundingClientRect(),Ba=ia.left/u.transformScale,Ce=Ea.left/u.transformScale,ka=ia.right/u.transformScale,Je=Ea.right/u.transformScale,K=ia.top/u.transformScale,J=Ea.top/u.transformScale;B.value?Ee.left=(ka-Je)*-1:Ee.left=Ba-Ce,Ee.top=K-J,u.dragging=Ee,u.isDragging=!0;break}case"dragmove":{const Ea=Rs(_,p,je,ba);if(B.value?Ee.left=u.dragging.left-Ea.deltaX/u.transformScale:Ee.left=u.dragging.left+Ea.deltaX/u.transformScale,Ee.top=u.dragging.top+Ea.deltaY/u.transformScale,u.bounded){const ia=Ta.offsetParent.clientHeight-Ae(r.h,u.rowHeight,u.margin[1]);Ee.top=ue(Ee.top,0,ia);const Ba=ea(),Ce=u.containerWidth-Ae(r.w,Ba,u.margin[0]);Ee.left=ue(Ee.left,0,Ce)}u.dragging=Ee;break}case"dragend":{const Ea=Ta.offsetParent.getBoundingClientRect(),ia=Ta.getBoundingClientRect(),Ba=ia.left/u.transformScale,Ce=Ea.left/u.transformScale,ka=ia.right/u.transformScale,Je=Ea.right/u.transformScale,K=ia.top/u.transformScale,J=Ea.top/u.transformScale;B.value?Ee.left=(ka-Je)*-1:Ee.left=Ba-Ce,Ee.top=K-J,u.dragging={top:-1,left:-1},u.isDragging=!1;break}}let Pa;B.value,Pa=de(Ee.top,Ee.left),_=je,p=ba,(E!==Pa.x||x!==Pa.y)&&i("move",r.i,Pa.x,Pa.y),me.type==="dragend"&&(P!==E||O!==x)&&i("moved",r.i,Pa.x,Pa.y),f.emit("dragEvent",me.type,r.i,Pa.x,Pa.y,b,S)}function sa(me,ua,ta,je){const ba=ea();let Ta;return B.value?Ta={right:Math.round(ba*me+(me+1)*u.margin[0]),top:Math.round(u.rowHeight*ua+(ua+1)*u.margin[1]),width:ta===1/0?ta:Math.round(ba*ta+Math.max(0,ta-1)*u.margin[0]),height:je===1/0?je:Math.round(u.rowHeight*je+Math.max(0,je-1)*u.margin[1])}:Ta={left:Math.round(ba*me+(me+1)*u.margin[0]),top:Math.round(u.rowHeight*ua+(ua+1)*u.margin[1]),width:ta===1/0?ta:Math.round(ba*ta+Math.max(0,ta-1)*u.margin[0]),height:je===1/0?je:Math.round(u.rowHeight*je+Math.max(0,je-1)*u.margin[1])},Ta}function de(me,ua){const ta=ea();let je=Math.round((ua-u.margin[0])/(ta+u.margin[0])),ba=Math.round((me-u.margin[1])/(u.rowHeight+u.margin[1]));return je=Math.max(Math.min(je,u.cols-S),0),ba=Math.max(Math.min(ba,u.maxRows-b),0),{x:je,y:ba}}function ea(){return(u.containerWidth-u.margin[0]*(u.cols+1))/u.cols}function Ae(me,ua,ta){return Number.isFinite(me)?Math.round(ua*me+Math.max(0,me-1)*ta):me}function ue(me,ua,ta){return Math.max(Math.min(me,ta),ua)}function he(me,ua,ta=!1){const je=ea();let ba=Math.round((ua+u.margin[0])/(je+u.margin[0])),Ta=0;return ta?Ta=Math.ceil((me+u.margin[1])/(u.rowHeight+u.margin[1])):Ta=Math.round((me+u.margin[1])/(u.rowHeight+u.margin[1])),ba=Math.max(Math.min(ba,u.cols-E),0),Ta=Math.max(Math.min(Ta,u.maxRows-x),0),{w:ba,h:Ta}}function Ge(me,ua){u.containerWidth=me}function wa(){$e()}function Ia(){!c.value&&C.value&&(c.value=Fs(C.value),u.useStyleCursor||c.value.styleCursor(!1))}const U=Ms(oe);function V(){if(Ia(),!!c.value)if(u.draggable&&!r.static){const me={ignoreFrom:r.dragIgnoreFrom,allowFrom:r.dragAllowFrom,...r.dragOption};c.value.draggable(me),m||(m=!0,c.value.on("dragstart dragmove dragend",ua=>{ua.type==="dragmove"?U(ua):oe(ua)}))}else c.value.draggable({enabled:!1})}const Q=Ms(_a);function fe(){if(Ia(),!!c.value)if(u.resizable&&!r.static){const me=sa(0,0,r.maxW,r.maxH),ua=sa(0,0,r.minW,r.minH),ta={edges:{left:B.value?`.${Me.value[0]}`:!1,right:B.value?!1:`.${Me.value[0]}`,bottom:`.${Me.value[0]}`,top:!1},ignoreFrom:r.resizeIgnoreFrom,restrictSize:{min:{height:ua.height*u.transformScale,width:ua.width*u.transformScale},max:{height:me.height*u.transformScale,width:me.width*u.transformScale}},...r.resizeOption};r.preserveAspectRatio&&(ta.modifiers=[Fs.modifiers.aspectRatio({ratio:"preserve"})]),c.value.resizable(ta),g||(g=!0,c.value.on("resizestart resizemove resizeend",je=>{je.type==="resizemove"?Q(je):_a(je)}))}else c.value.resizable({enabled:!1})}return(me,ua)=>(e.openBlock(),e.createElementBlock("section",{ref_key:"wrapper",ref:C,class:e.normalizeClass(xe.value),style:e.normalizeStyle(u.style)},[e.renderSlot(me.$slots,"default"),ce.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(Me.value)},null,2)):e.createCommentVNode("",!0)],6))}}),hi=typeof window<"u";var Ps;hi&&(Ps=window==null?void 0:window.navigator)!=null&&Ps.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function js(a){return a!=null}function Hs(){}const L1=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(L1)));const R1=hi&&("ontouchstart"in window||V1()>0),$1=R1?"pointerdown":"click";function V1(){return typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)||0}function F1(a,l,n=window.Event){const{type:r,bubbles:i=!1,cancelable:t=!1,...f}=l;if(!js(r)||r==="")return!1;let c;return js(n)?c=new n(r,{bubbles:i,cancelable:t}):(c=document.createEvent("HTMLEvents"),c.initEvent(r,i,t)),Object.assign(c,f),a.dispatchEvent(c)}const P1="clickoutside",j1=new Set;hi&&document.addEventListener($1,a=>{const l=a.target,n=a.composedPath&&a.composedPath();j1.forEach(r=>{r!==l&&(n?!n.includes(r):!r.contains(l))&&(!r.__transferElement||r.__transferElement!==l&&!r.__transferElement.contains(l))&&F1(r,{type:P1})})},!0);const H1=[["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(hi){for(const a of H1)if(a[1]in document){To=a;break}}e.computed(()=>!1);const U1=new Set,q1=new WeakMap;if(hi&&To){const a=To[2],l=To[4];document.addEventListener(l,()=>{if(U1.forEach(n=>{n.value=!1}),document[a]){const n=q1.get(document[a]);n&&(n.value=!0)}},!1)}const nu=new Map;nu.set("x",0);nu.set("y",0);var pi=[],W1=function(){return pi.some(function(a){return a.activeTargets.length>0})},K1=function(){return pi.some(function(a){return a.skippedTargets.length>0})},Us="ResizeObserver loop completed with undelivered notifications.",G1=function(){var a;typeof ErrorEvent=="function"?a=new ErrorEvent("error",{message:Us}):(a=document.createEvent("Event"),a.initEvent("error",!1,!1),a.message=Us),window.dispatchEvent(a)},Zi;(function(a){a.BORDER_BOX="border-box",a.CONTENT_BOX="content-box",a.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Zi||(Zi={}));var fi=function(a){return Object.freeze(a)},Y1=function(){function a(l,n){this.inlineSize=l,this.blockSize=n,fi(this)}return a}(),iu=function(){function a(l,n,r,i){return this.x=l,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,fi(this)}return a.prototype.toJSON=function(){var l=this,n=l.x,r=l.y,i=l.top,t=l.right,f=l.bottom,c=l.left,u=l.width,m=l.height;return{x:n,y:r,top:i,right:t,bottom:f,left:c,width:u,height:m}},a.fromRect=function(l){return new a(l.x,l.y,l.width,l.height)},a}(),Lt=function(a){return a instanceof SVGElement&&"getBBox"in a},ou=function(a){if(Lt(a)){var l=a.getBBox(),n=l.width,r=l.height;return!n&&!r}var i=a,t=i.offsetWidth,f=i.offsetHeight;return!(t||f||a.getClientRects().length)},qs=function(a){var l;if(a instanceof Element)return!0;var n=(l=a==null?void 0:a.ownerDocument)===null||l===void 0?void 0:l.defaultView;return!!(n&&a instanceof n.Element)},J1=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},Yi=typeof window<"u"?window:{},So=new WeakMap,Ws=/auto|scroll/,X1=/^tb|vertical/,Z1=/msie|trident/i.test(Yi.navigator&&Yi.navigator.userAgent),$n=function(a){return parseFloat(a||"0")},Ai=function(a,l,n){return a===void 0&&(a=0),l===void 0&&(l=0),n===void 0&&(n=!1),new Y1((n?l:a)||0,(n?a:l)||0)},Ks=fi({devicePixelContentBoxSize:Ai(),borderBoxSize:Ai(),contentBoxSize:Ai(),contentRect:new iu(0,0,0,0)}),tu=function(a,l){if(l===void 0&&(l=!1),So.has(a)&&!l)return So.get(a);if(ou(a))return So.set(a,Ks),Ks;var n=getComputedStyle(a),r=Lt(a)&&a.ownerSVGElement&&a.getBBox(),i=!Z1&&n.boxSizing==="border-box",t=X1.test(n.writingMode||""),f=!r&&Ws.test(n.overflowY||""),c=!r&&Ws.test(n.overflowX||""),u=r?0:$n(n.paddingTop),m=r?0:$n(n.paddingRight),g=r?0:$n(n.paddingBottom),_=r?0:$n(n.paddingLeft),p=r?0:$n(n.borderTopWidth),M=r?0:$n(n.borderRightWidth),w=r?0:$n(n.borderBottomWidth),G=r?0:$n(n.borderLeftWidth),A=_+m,P=u+g,O=G+M,E=p+w,x=c?a.offsetHeight-E-a.clientHeight:0,S=f?a.offsetWidth-O-a.clientWidth:0,b=i?A+O:0,C=i?P+E:0,R=r?r.width:$n(n.width)-b-S,$=r?r.height:$n(n.height)-C-x,le=R+A+S+O,ee=$+P+x+E,_e=fi({devicePixelContentBoxSize:Ai(Math.round(R*devicePixelRatio),Math.round($*devicePixelRatio),t),borderBoxSize:Ai(le,ee,t),contentBoxSize:Ai(R,$,t),contentRect:new iu(_,u,R,$)});return So.set(a,_e),_e},su=function(a,l,n){var r=tu(a,n),i=r.borderBoxSize,t=r.contentBoxSize,f=r.devicePixelContentBoxSize;switch(l){case Zi.DEVICE_PIXEL_CONTENT_BOX:return f;case Zi.BORDER_BOX:return i;default:return t}},Q1=function(){function a(l){var n=tu(l);this.target=l,this.contentRect=n.contentRect,this.borderBoxSize=fi([n.borderBoxSize]),this.contentBoxSize=fi([n.contentBoxSize]),this.devicePixelContentBoxSize=fi([n.devicePixelContentBoxSize])}return a}(),cu=function(a){if(ou(a))return 1/0;for(var l=0,n=a.parentNode;n;)l+=1,n=n.parentNode;return l},ev=function(){var a=1/0,l=[];pi.forEach(function(t){if(t.activeTargets.length!==0){var f=[];t.activeTargets.forEach(function(c){var u=new Q1(c.target),m=cu(c.target);f.push(u),c.lastReportedSize=su(c.target,c.observedBox),m<a&&(a=m)}),l.push(function(){t.callback.call(t.observer,f,t.observer)}),t.activeTargets.splice(0,t.activeTargets.length)}});for(var n=0,r=l;n<r.length;n++){var i=r[n];i()}return a},Gs=function(a){pi.forEach(function(l){l.activeTargets.splice(0,l.activeTargets.length),l.skippedTargets.splice(0,l.skippedTargets.length),l.observationTargets.forEach(function(n){n.isActive()&&(cu(n.target)>a?l.activeTargets.push(n):l.skippedTargets.push(n))})})},av=function(){var a=0;for(Gs(a);W1();)a=ev(),Gs(a);return K1()&&G1(),a>0},bt,uu=[],lv=function(){return uu.splice(0).forEach(function(a){return a()})},rv=function(a){if(!bt){var l=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return lv()}).observe(n,r),bt=function(){n.textContent="".concat(l?l--:l++)}}uu.push(a),bt()},nv=function(a){rv(function(){requestAnimationFrame(a)})},Bo=0,iv=function(){return!!Bo},ov=250,tv={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ys=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Js=function(a){return a===void 0&&(a=0),Date.now()+a},kt=!1,sv=function(){function a(){var l=this;this.stopped=!0,this.listener=function(){return l.schedule()}}return a.prototype.run=function(l){var n=this;if(l===void 0&&(l=ov),!kt){kt=!0;var r=Js(l);nv(function(){var i=!1;try{i=av()}finally{if(kt=!1,l=r-Js(),!iv())return;i?n.run(1e3):l>0?n.run(l):n.start()}})}},a.prototype.schedule=function(){this.stop(),this.run()},a.prototype.observe=function(){var l=this,n=function(){return l.observer&&l.observer.observe(document.body,tv)};document.body?n():Yi.addEventListener("DOMContentLoaded",n)},a.prototype.start=function(){var l=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ys.forEach(function(n){return Yi.addEventListener(n,l.listener,!0)}))},a.prototype.stop=function(){var l=this;this.stopped||(this.observer&&this.observer.disconnect(),Ys.forEach(function(n){return Yi.removeEventListener(n,l.listener,!0)}),this.stopped=!0)},a}(),Mt=new sv,Xs=function(a){!Bo&&a>0&&Mt.start(),Bo+=a,!Bo&&Mt.stop()},cv=function(a){return!Lt(a)&&!J1(a)&&getComputedStyle(a).display==="inline"},uv=function(){function a(l,n){this.target=l,this.observedBox=n||Zi.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return a.prototype.isActive=function(){var l=su(this.target,this.observedBox,!0);return cv(this.target)&&(this.lastReportedSize=l),this.lastReportedSize.inlineSize!==l.inlineSize||this.lastReportedSize.blockSize!==l.blockSize},a}(),dv=function(){function a(l,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=l,this.callback=n}return a}(),Eo=new WeakMap,Zs=function(a,l){for(var n=0;n<a.length;n+=1)if(a[n].target===l)return n;return-1},Co=function(){function a(){}return a.connect=function(l,n){var r=new dv(l,n);Eo.set(l,r)},a.observe=function(l,n,r){var i=Eo.get(l),t=i.observationTargets.length===0;Zs(i.observationTargets,n)<0&&(t&&pi.push(i),i.observationTargets.push(new uv(n,r&&r.box)),Xs(1),Mt.schedule())},a.unobserve=function(l,n){var r=Eo.get(l),i=Zs(r.observationTargets,n),t=r.observationTargets.length===1;i>=0&&(t&&pi.splice(pi.indexOf(r),1),r.observationTargets.splice(i,1),Xs(-1))},a.disconnect=function(l){var n=this,r=Eo.get(l);r.observationTargets.slice().forEach(function(i){return n.unobserve(l,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},a}(),pv=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.");Co.connect(this,l)}return a.prototype.observe=function(l,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!qs(l))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Co.observe(this,l,n)},a.prototype.unobserve=function(l){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!qs(l))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Co.unobserve(this,l)},a.prototype.disconnect=function(){Co.disconnect(this)},a.toString=function(){return"function ResizeObserver () { [polyfill code] }"},a}();const Fo=new WeakMap;function fv(a){var l;for(let n=0,r=a.length;n<r;++n){const i=a[n],t=Fo.get(i.target);if(typeof t=="function"){const{inlineSize:f,blockSize:c}=((l=i.borderBoxSize)==null?void 0:l[0])??{},{offsetWidth:u,offsetHeight:m}=i.target;t(Object.assign(i,{offsetWidth:u,offsetHeight:m,width:f??u,height:c??m}))}}}const du=new(hi&&window.ResizeObserver||pv)(fv);function Qs(a,l){Fo.set(a,l),du.observe(a)}function ec(a){Fo.has(a)&&(du.unobserve(a),Fo.delete(a))}function hv(a={}){let l=Hs;const n=e.watch(()=>e.unref(a.target),i=>{l(),!(!i||typeof a.onResize!="function")&&(Qs(i,a.onResize),l=()=>{ec(i),l=Hs})},{immediate:!0}),r=()=>{n(),l()};return e.getCurrentScope()&&e.onScopeDispose(r),{observeResize:Qs,unobserveResize:ec,unobserve:r}}const vv=e.ref(!1);e.computed(()=>vv.value);const ac="__theme_style__",xt="__theme_observer__",lc=e.reactive(new Map),rc=new Map;e.watch(lc,()=>{if(!hi)return;rc.clear();const a=document.head.querySelector(`#${ac}`);a&&document.head.removeChild(a);const l=document.createElement("style");let n=`.${xt} { width: 1px }`,r=1;for(const[i,[t,f]]of lc.entries())n+=` html.${t} .${xt}, .${f} .${xt} { width: ${++r}px }`,rc.set(r,i);l.textContent=n,l.id=ac,document.head.appendChild(l)});const pu=e.defineComponent({__name:"grid-layout",props:{autoSize:{type:Boolean,default:!0},colNum:{default:12},rowHeight:{default:150},maxRows:{default:1/0},margin:{default:()=>[10,10]},isDraggable:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!0},isMirrored:{type:Boolean,default:!1},isBounded:{type:Boolean,default:!1},useCssTransforms:{type:Boolean,default:!0},verticalCompact:{type:Boolean,default:!0},restoreOnDrag:{type:Boolean,default:!1},layout:{},responsive:{type:Boolean,default:!1},responsiveLayouts:{default:()=>({})},transformScale:{default:1},breakpoints:{default:()=>({lg:1200,md:996,sm:768,xs:480,xxs:0})},cols:{default:()=>({lg:12,md:10,sm:6,xs:4,xxs:2})},preventCollision:{type:Boolean,default:!1},useStyleCursor:{type:Boolean,default:!0}},emits:["layout-before-mount","layout-mounted","layout-updated","breakpoint-changed","update:layout","layout-ready"],setup(a,{expose:l,emit:n}){const r=a,i=n,t=e.reactive({width:-1,mergedStyle:{},lastLayoutLength:0,isDragging:!1,placeholder:{x:0,y:0,w:0,h:0,i:""},layouts:{},lastBreakpoint:null,originalLayout:null}),f=new Map,c=e.ref(r.layout),u=e.ref(),{observeResize:m,unobserveResize:g}=hv(),_=h1();_.on("resizeEvent",p),_.on("dragEvent",M),e.onBeforeMount(()=>{i("layout-before-mount",c.value)}),e.onMounted(()=>{i("layout-mounted",c.value),e.nextTick(()=>{E1(c.value),t.originalLayout=c.value,e.nextTick(()=>{$(),u.value&&m(u.value,v1(E,16)),Ti(c.value,r.verticalCompact),i("layout-updated",c.value),O(),E()})})}),e.onBeforeUnmount(()=>{_.clearAll(),u.value&&g(u.value)});function p(ee,_e,pe,H,F,X){C(ee,_e,pe,H,F,X)}function M(ee,_e,pe,H,F,X){b(ee,_e,pe,H,F,X)}e.watch(()=>t.width,(ee,_e)=>{e.nextTick(()=>{_.emit("updateWidth",ee),_e===-1&&e.nextTick(()=>{i("layout-ready",c.value)}),O()})}),e.watch(()=>[r.layout,r.layout.length],()=>{c.value=r.layout,P()}),e.watch(()=>r.colNum,ee=>{_.emit("setColNum",ee)}),e.watch(()=>r.rowHeight,ee=>{_.emit("setRowHeight",ee)}),e.watch(()=>r.isDraggable,ee=>{_.emit("setDraggable",ee)}),e.watch(()=>r.isResizable,ee=>{_.emit("setResizable",ee)}),e.watch(()=>r.isBounded,ee=>{_.emit("setBounded",ee)}),e.watch(()=>r.transformScale,ee=>{_.emit("setTransformScale",ee)}),e.watch(()=>r.responsive,ee=>{ee||(i("update:layout",t.originalLayout),_.emit("setColNum",r.colNum)),E()}),e.watch(()=>r.maxRows,ee=>{_.emit("setMaxRows",ee)}),e.watch([()=>r.margin,()=>r.margin[1]],O),e.provide(Jc,e.reactive({...e.toRefs(r),...e.toRefs(t),increaseItem:w,decreaseItem:G})),e.provide(Xc,_),l({state:t,getItem:A,resizeEvent:C,dragEvent:b,layoutUpdate:P});function w(ee){f.set(ee.i,ee)}function G(ee){f.delete(ee.i)}function A(ee){return f.get(ee)}function P(){if(!xn(c.value)&&!xn(t.originalLayout)){if(c.value.length!==t.originalLayout.length){const ee=le(c.value,t.originalLayout);if(ee.length>0)if(c.value.length>t.originalLayout.length)t.originalLayout=t.originalLayout.concat(ee);else{const _e=new Set(ee.map(pe=>pe.i));t.originalLayout=t.originalLayout.filter(pe=>!_e.has(pe.i))}t.lastLayoutLength=c.value.length,$()}Ti(c.value,r.verticalCompact),_.emit("updateWidth",t.width),O(),i("layout-updated",c.value)}}function O(){t.mergedStyle={height:x()}}function E(){u.value&&(t.width=u.value.offsetWidth),_.emit("resizeEvent")}function x(){if(!r.autoSize)return;const ee=parseFloat(r.margin[1]);return y1(c.value)*(r.rowHeight+ee)+ee+"px"}let S;function b(ee,_e,pe,H,F,X){let re=Is(c.value,_e);xn(re)&&(re={h:0,w:0,x:0,y:0,i:""}),ee==="dragstart"&&!r.verticalCompact&&(S=c.value.reduce((ve,{i:Re,x:ce,y:B})=>({...ve,[Re]:{x:ce,y:B}}),{})),ee==="dragmove"||ee==="dragstart"?(t.placeholder.i=_e,t.placeholder.x=re.x,t.placeholder.y=re.y,t.placeholder.w=X,t.placeholder.h=F,e.nextTick(()=>{t.isDragging=!0}),_.emit("updateWidth",t.width)):e.nextTick(()=>{t.isDragging=!1}),c.value=zt(c.value,re,pe,H,!0,r.preventCollision),r.restoreOnDrag?(re.static=!0,Ti(c.value,r.verticalCompact,S),re.static=!1):Ti(c.value,r.verticalCompact),_.emit("compact"),O(),ee==="dragend"&&(S=void 0,i("layout-updated",c.value))}function C(ee,_e,pe,H,F,X){let re=Is(c.value,_e);xn(re)&&(re={h:0,w:0,x:0,y:0,i:""});let ve;if(r.preventCollision){const Re=Qc(c.value,{...re,w:X,h:F}).filter(ce=>ce.i!==re.i);if(ve=Re.length>0,ve){let ce=1/0,B=1/0;Re.forEach(te=>{te.x>re.x&&(ce=Math.min(ce,te.x)),te.y>re.y&&(B=Math.min(B,te.y))}),Number.isFinite(ce)&&(re.w=ce-re.x),Number.isFinite(B)&&(re.h=B-re.y)}}ve||(re.w=X,re.h=F),ee==="resizestart"||ee==="resizemove"?(t.placeholder.i=_e,t.placeholder.x=pe,t.placeholder.y=H,t.placeholder.w=re.w,t.placeholder.h=re.h,e.nextTick(()=>{t.isDragging=!0}),_.emit("updateWidth",t.width)):ee&&e.nextTick(()=>{t.isDragging=!1}),r.responsive&&R(),Ti(c.value,r.verticalCompact),_.emit("compact"),O(),ee==="resizeend"&&i("layout-updated",c.value)}function R(){const ee=B1(r.breakpoints,t.width);if(ee===t.lastBreakpoint)return;const _e=lu(ee,r.cols);!xn(t.lastBreakpoint)&&!t.layouts[t.lastBreakpoint]&&(t.layouts[t.lastBreakpoint]=At(c.value));const pe=N1(t.originalLayout,t.layouts,r.breakpoints,ee,t.lastBreakpoint,_e,r.verticalCompact);t.layouts[ee]=pe,t.lastBreakpoint!==ee&&i("breakpoint-changed",ee,pe),c.value=pe,i("update:layout",pe),t.lastBreakpoint=ee,_.emit("setColNum",_e)}function $(){t.layouts=Object.assign({},r.responsiveLayouts)}function le(ee,_e){const pe=new Set(_e.map(re=>re.i)),H=new Set(ee.map(re=>re.i)),F=ee.filter(re=>!pe.has(re.i)),X=_e.filter(re=>!H.has(re.i));return F.concat(X)}return(ee,_e)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapper",ref:u,class:"vgl-layout",style:e.normalizeStyle(t.mergedStyle)},[ee.$slots.default?e.renderSlot(ee.$slots,"default",{key:0}):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(c.value,pe=>(e.openBlock(),e.createBlock(Vo,e.mergeProps({key:pe.i,ref_for:!0},pe),{default:e.withCtx(()=>[e.renderSlot(ee.$slots,"item",{item:pe})]),_:2},1040))),128)),e.withDirectives(e.createVNode(Vo,{class:"vgl-item--placeholder",x:t.placeholder.x,y:t.placeholder.y,w:t.placeholder.w,h:t.placeholder.h,i:t.placeholder.i},null,8,["x","y","w","h","i"]),[[e.vShow,t.isDragging]])],4))}});(function(){try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode('.vgl-layout{--vgl-placeholder-bg: red;--vgl-placeholder-opacity: 20%;--vgl-placeholder-z-index: 2;--vgl-item-resizing-z-index: 3;--vgl-item-resizing-opacity: 60%;--vgl-item-dragging-z-index: 3;--vgl-item-dragging-opacity: 100%;--vgl-resizer-size: 10px;--vgl-resizer-border-color: #444;--vgl-resizer-border-width: 2px;position:relative;box-sizing:border-box;transition:height .2s ease}.vgl-item{position:absolute;box-sizing:border-box;transition:.2s ease;transition-property:left,top,right}.vgl-item--placeholder{z-index:var(--vgl-placeholder-z-index, 2);-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:var(--vgl-placeholder-bg, red);opacity:var(--vgl-placeholder-opacity, 20%);transition-duration:.1s}.vgl-item--no-touch{touch-action:none}.vgl-item--transform{right:auto;left:0;transition-property:transform}.vgl-item--transform.vgl-item--rtl{right:0;left:auto}.vgl-item--resizing{z-index:var(--vgl-item-resizing-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-resizing-opacity, 60%)}.vgl-item--dragging{z-index:var(--vgl-item-dragging-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-dragging-opacity, 100%);transition:none}.vgl-item__resizer{position:absolute;right:0;bottom:0;box-sizing:border-box;width:var(--vgl-resizer-size);height:var(--vgl-resizer-size);cursor:se-resize}.vgl-item__resizer:before{position:absolute;top:0;right:3px;bottom:3px;left:0;content:"";border:0 solid var(--vgl-resizer-border-color);border-right-width:var(--vgl-resizer-border-width);border-bottom-width:var(--vgl-resizer-border-width)}.vgl-item__resizer--rtl{right:auto;left:0;cursor:sw-resize}.vgl-item__resizer--rtl:before{top:0;right:0;bottom:3px;left:3px;border-right-width:0;border-bottom-width:var(--vgl-resizer-border-width);border-left-width:var(--vgl-resizer-border-width)}')),document.head.appendChild(a)}}catch(l){console.error("vite-plugin-css-injected-by-js",l)}})();const mv={key:0,class:"item-view-group"},yv={key:0,class:"item-view-group"},gv=e.defineComponent({__name:"index",props:{children:{type:Object,default:()=>{}},level:{type:Number,default:1}},emits:["rowClick","routeUrl","radioChange"],setup(a,{emit:l}){const n=z.useModelComp(z.pinia),{isEdit:r}=z.storeToRefs(n),i=ai(z.pinia),t=l,f=a,c=e.ref(""),u=e.computed(()=>f==null?void 0:f.children),m=e.computed(()=>{var O,E,x,S;return((O=f==null?void 0:f.children)==null?void 0:O.length)>0&&((E=f==null?void 0:f.children)!=null&&E.every(b=>b==null?void 0:b.layout))?(S=(x=f==null?void 0:f.children)==null?void 0:x[0])==null?void 0:S.layout:"vertical"}),g=O=>{c.value=O,t("radioChange",O)},_=e.computed(()=>{var O,E;return((E=(O=f==null?void 0:f.children)==null?void 0:O[0])==null?void 0:E.isGridLayout)||!1}),p=e.ref((f==null?void 0:f.level)+1),M=e.computed(()=>{if(!(f!=null&&f.children)||!Array.isArray(f.children)||f.children.length<2)return!1;const O=f.children.some(x=>(x==null?void 0:x.name)==="测量系统配置表"&&(x==null?void 0:x.comp)==="ParentItem"),E=f.children.some(x=>(x==null?void 0:x.name)==="测量系统传递表"&&(x==null?void 0:x.comp)==="ParentItem");return O&&E}),w=e.computed(()=>{var E,x,S,b,C,R;let O=(E=f==null?void 0:f.children)==null?void 0:E.filter($=>$==null?void 0:$.choice);if(i.setSelectTab((x=O==null?void 0:O[0])==null?void 0:x.choiceName),(c==null?void 0:c.value)!=="")return(S=f==null?void 0:f.children)==null?void 0:S.filter($=>!($!=null&&$.choiceName)||($==null?void 0:$.choiceName)===(c==null?void 0:c.value));{let $=(C=(b=f==null?void 0:f.children)==null?void 0:b.find(le=>le==null?void 0:le.choice))==null?void 0:C.choiceName;return(R=f==null?void 0:f.children)==null?void 0:R.filter(le=>!(le!=null&&le.choiceName)||(le==null?void 0:le.choiceName)===$)}}),G=O=>{const E=(O==null?void 0:O.menuFilter)||[];return Array.isArray(E)&&(E==null?void 0:E.some(x=>{const S=typeof x=="string"?x:JSON.stringify(x);return S==null?void 0:S.includes("HideGroup=Yes")}))};e.watch(()=>f==null?void 0:f.children,()=>{M.value},{deep:!0});const A=O=>{t("rowClick",O)},P=(O,E)=>{t("routeUrl",O,E)};return(O,E)=>_.value?(e.openBlock(),e.createBlock(e.unref(pu),{key:0,layout:u.value,"onUpdate:layout":E[0]||(E[0]=x=>u.value=x),"is-draggable":e.unref(r)==="edit","is-resizable":e.unref(r)==="edit","col-num":24,margin:[8,16]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(x,S)=>(e.openBlock(),e.createBlock(e.unref(Vo),{key:x.i,x:x.x,y:x.y,"min-h":x.minH,"max-h":x.maxH,"min-w":x.minW,w:x.w,h:x.h,i:x.i},{default:e.withCtx(()=>{var b,C,R,$,le,ee,_e,pe,H,F,X,re,ve,Re;return[e.createElementVNode("div",{style:e.normalizeStyle({gap:"16px",display:"flex",flexDirection:"column",paddingBottom:S===((b=f==null?void 0:f.children)==null?void 0:b.length)-1?"0px":"24px"})},[((R=(C=x==null?void 0:x.component)==null?void 0:C.comp)==null?void 0:R.toUpperCase())!=="TABLE"&&(($=x==null?void 0:x.component)!=null&&$.name)?(e.openBlock(),e.createElementBlock("div",mv,[e.createElementVNode("div",{class:"group-name-wrap",style:e.normalizeStyle({paddingLeft:(parseInt(p.value.toString())-1)*12+"px",fontWeight:600-(p.value-1)*100>=400?600-(p.value-1)*100:400,fontSize:17-p.value>=14?17-p.value+"px":"14px"})},e.toDisplayString((le=x==null?void 0:x.component)==null?void 0:le.name),5)])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Xi)((ee=x==null?void 0:x.component)==null?void 0:ee.comp)),{pageLayout:m.value,config:{showIndex:(_e=e.unref(hr)[S])==null?void 0:_e.showIndex,allowMove:(pe=e.unref(hr)[S])==null?void 0:pe.allowMove,viewport:(H=e.unref(hr)[S])==null?void 0:H.viewport,status:(F=e.unref(hr)[S])==null?void 0:F.status},related:x==null?void 0:x.relatedTables,compName:x==null?void 0:x.component.name,compNames:e.unref(zc),itemData:(X=x==null?void 0:x.component)==null?void 0:X.compData,childItemData:(re=x==null?void 0:x.component)==null?void 0:re.itemChildData,key:e.unref(ei),cacheNewData:e.unref(Ac),onChange:e.unref(Oo),index:(x==null?void 0:x.id)??S,onContentChange:e.unref(Lo),onPageChange:e.unref(Ro),parentTableId:(ve=x==null?void 0:x.component)==null?void 0:ve.tableId,allMapContents:e.unref(Tt),children:(Re=x==null?void 0:x.component)==null?void 0:Re.children,level:p.value,onRowClick:A,onRouteUrl:P,onClickTrigger:e.unref(Mc),onClickMainKey:e.unref(Ic),onRadioChange:g},null,40,["pageLayout","config","related","compName","compNames","itemData","childItemData","cacheNewData","onChange","index","onContentChange","onPageChange","parentTableId","allMapContents","children","level","onClickTrigger","onClickMainKey"]))],4)]}),_:2},1032,["x","y","min-h","max-h","min-w","w","h","i"]))),128))]),_:1},8,["layout","is-draggable","is-resizable"])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(w.value,(x,S)=>{var b,C;return e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({gap:"16px",display:(x==null?void 0:x.isShow)===!1?"none":"flex",flexDirection:"column",paddingBottom:parseInt(S)===((b=f==null?void 0:f.children)==null?void 0:b.length)-1?"0px":"24px"})},[((C=x==null?void 0:x.comp)==null?void 0:C.toUpperCase())!=="TABLE"&&x.name?(e.openBlock(),e.createElementBlock("div",yv,[G(x)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"group-name-wrap",style:e.normalizeStyle({paddingLeft:parseInt(p.value.toString())>1?"12px":"0px",fontWeight:600-(p.value-1)*100>=400?600-(p.value-1)*100:400,fontSize:17-p.value>=14?17-p.value+"px":"14px"})},e.toDisplayString(x.name),5))])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Xi)(x.comp)),{compName:x.name,groupNames:x==null?void 0:x.nameContents,config:{showIndex:x==null?void 0:x.showIndex,allowMove:x==null?void 0:x.allowMove,viewport:x==null?void 0:x.viewport,status:x==null?void 0:x.status},itemData:x==null?void 0:x.compData,related:x==null?void 0:x.relatedTables,childItemData:x==null?void 0:x.itemChildData,key:e.unref(ei),onChange:e.unref(Oo),index:(x==null?void 0:x.id)??S,onContentChange:e.unref(Lo),onPageChange:e.unref(Ro),parentTableId:x==null?void 0:x.tableId,allMapContents:e.unref(Tt),children:x==null?void 0:x.children,level:p.value,onRowClick:A,onRouteUrl:P,onRadioChange:g},null,40,["compName","groupNames","config","itemData","related","childItemData","onChange","index","onContentChange","onPageChange","parentTableId","allMapContents","children","level"]))],4)}),256))}}),bv=nr._export_sfc(gv,[["__scopeId","data-v-bafbdd45"]]),kv={class:"radio-group-container"},xv=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},emits:["radioChange"],setup(a,{emit:l}){const n=a,r=l,i=e.ref(),t=ai(z.pinia),{selectTab:f}=z.storeToRefs(t);e.watch(()=>n==null?void 0:n.itemData,()=>{i.value=f.value},{immediate:!0,deep:!0});const c=u=>{i.value=u,r("radioChange",i.value)};return(u,m)=>(e.openBlock(),e.createElementBlock("div",kv,[e.createVNode(fl.ssRadio,{modelValue:i.value,"onUpdate:modelValue":m[0]||(m[0]=g=>i.value=g),content:n==null?void 0:n.itemData,onChange:c},null,8,["modelValue","content"])]))}}),wv=nr._export_sfc(xv,[["__scopeId","data-v-177d64c3"]]),_v=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},setup(a){const l=a,n=e.ref([]);return e.watch(()=>l==null?void 0:l.itemData,()=>{var r,i;n.value=((i=(r=l==null?void 0:l.itemData)==null?void 0:r.find(t=>(t==null?void 0:t.key)==="backGround"))==null?void 0:i.contents)??[]},{deep:!0,immediate:!0}),(r,i)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(fl.ssCarousel,{carouselList:n.value},null,8,["carouselList"])]))}}),fu=e.ref([{name:"表格",type:"table",comp:"Table",icon:"Table"},{name:"表单",type:"form",comp:"Form",icon:"Form"},{name:"折叠",type:"fold",comp:"Fold",icon:"Fold"},{name:"头像",type:"avatar",comp:"AvatarUpload",icon:"Avatar"},{name:"签名",type:"signature",comp:"Signature",icon:"Signature"},{name:"步骤条",type:"step",comp:"Step",icon:"Step"},{name:"时间线",type:"timeLine",comp:"TimeLine",icon:"TimeLine"},{name:"标签页",type:"tabs",comp:"Tabs",icon:"Tabs"},{name:"图表",type:"chart",comp:"Chart",icon:"chart-new"},{name:"行内布局",type:"layout",comp:"Layout",icon:"ai13"}]),Sv={TABLE:$c,FORM:Ns,STATICFORM:Vc,TABLEOPERATE:f6,TABLESTYLE:N6,TABLEEXTEND:z6,TABLEINTERACTION:O6,FORMOPERATE:As,FOLD:d4,CALCULATOR:y4,METHODBUTTON:k4,AVATARUPLOAD:us.ssAvatar,SIGNATURE:us.ssSignature,FORMTOP:Ns,STEP:z4,STEPOPERATE:l4,TIMELINE:$4,TIMELINEOPERATE:s4,FORMTOPOPERATE:As,SIGNATUREOPERATE:B4,AVATARUPLOADOPERATE:_4,TABS:P4,TABSOPERATE:C2,CHART:P2,CHARTOPERATE:Z2,LAYOUT:a1,LAYOUTOPERATE:d1,PARENTITEM:bv,RADIO:wv,CAROUSEL:_v};function Ii(a){return Sv[a==null?void 0:a.toUpperCase()]||null}exports.De=pu;exports.activeStepInfo=Bi;exports.addContents=Ji;exports.addVisibleDialog=Ot;exports.affixItems=j0;exports.allMapContents=Tt;exports.analyzeMenu=uc;exports.cacheNewData=Ac;exports.clickMainKey=Ic;exports.clickSavePage=P0;exports.clickStep=Lc;exports.clickTrigger=Mc;exports.compId=ei;exports.compNames=zc;exports.compShow=Mi;exports.existLayouts=J0;exports.fixChangeValue=Po;exports.generateLayouts=C6;exports.getComponent=Ii;exports.getComponents=Xi;exports.getPageConstruct=rp;exports.getPageData=Xr;exports.getSliceContLength=l3;exports.gridRowHeight=x6;exports.gridRowHeightHmPg=k6;exports.isStepLayout=Rc;exports.onBack=V0;exports.onButtonChange=W0;exports.onChange=Oo;exports.onClick=F0;exports.onClickStep=X0;exports.onContentChange=Lo;exports.onExtendTaskEnd=Y0;exports.onOk=K0;exports.onPageBack=Q0;exports.onPageChange=Ro;exports.onSelectFixContent=$0;exports.renderShowItems=Bc;exports.showItems=hr;exports.sliceTableLength=Nc;exports.slotContent=fu;exports.ssTable=$c;exports.st=Vo;exports.stepItems=r3;exports.tabChange=Z0;exports.toolBar=G0;exports.useFormComp=It;exports.useModelLoader=$f;exports.verifyButton=e3;