ss-component-new 1.3.261 → 1.3.263

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 (108) hide show
  1. package/dist/{MTLLoader-D9FXh0av.js → MTLLoader-CMHj3O6V.js} +1 -1
  2. package/dist/{MTLLoader-BsqwriNo.cjs → MTLLoader-Di_vHXvU.cjs} +1 -1
  3. package/dist/{OrbitControls-BhSNZh4X.js → OrbitControls-BafesYOu.js} +1 -1
  4. package/dist/{OrbitControls-Di7FQaXo.cjs → OrbitControls-Dm84cbvs.cjs} +1 -1
  5. package/dist/{URDFLoader-hx0-X57p.cjs → URDFLoader-BbO2ANmG.cjs} +1 -1
  6. package/dist/{URDFLoader-Cnhnyl94.js → URDFLoader-RpVi-sG9.js} +2 -2
  7. package/dist/{animationData-DlThKFpQ.cjs → animationData-Dx5mlcwZ.cjs} +1 -1
  8. package/dist/{animationData-XUsnpQH1.js → animationData-U9Ahgu5Q.js} +3 -3
  9. package/dist/{array-DV_ScmTv.cjs → array-Dran49KI.cjs} +1 -1
  10. package/dist/{array-CLSp1EEl.js → array-eoEZosoh.js} +3 -3
  11. package/dist/{clone-BMUYMGAE.js → clone-B213wVHW.js} +1 -1
  12. package/dist/clone-DkmYhMPj.cjs +1 -0
  13. package/dist/{iconfont-DmTbGwPr.js → iconfont-Ad0qAXrD.js} +2 -2
  14. package/dist/{iconfont-Dhyfi3HE.cjs → iconfont-CdUY4jGY.cjs} +1 -1
  15. package/dist/{index-ByDWpfXy.cjs → index-4153BFWl.cjs} +1 -1
  16. package/dist/{index-Byix7Qep.cjs → index-8WGtmbRz.cjs} +1 -1
  17. package/dist/{index-CujmqtON.cjs → index-B1hvIsWF.cjs} +1 -1
  18. package/dist/{index-BUs4hN8N.js → index-B8C1fJsm.js} +1 -1
  19. package/dist/{index-CYhghfwd.cjs → index-BAfClAl7.cjs} +1 -1
  20. package/dist/{index-DWpcy2fq.js → index-BBMjIUUH.js} +2 -2
  21. package/dist/{index-D7uc71w6.js → index-BEIhV9SX.js} +2 -2
  22. package/dist/{index-DerTmr6B.cjs → index-BEYWVksD.cjs} +1 -1
  23. package/dist/{index-CJyjWQPM.js → index-BMJrv3M8.js} +1 -1
  24. package/dist/{index-Btbn_YrP.js → index-BMKOhAua.js} +2 -2
  25. package/dist/{index-DzZTCDPY.js → index-BNICiMKI.js} +1 -1
  26. package/dist/{index-5YLH8rah.cjs → index-BT9aMk1B.cjs} +1 -1
  27. package/dist/{index-gJtLqTXS.js → index-BZaGEU1N.js} +2 -2
  28. package/dist/{index-CBw4RhET.js → index-BaZZkDhO.js} +3 -3
  29. package/dist/index-Bb7RsNv1.cjs +1 -0
  30. package/dist/{index-CCT01X-C.cjs → index-Bl3A_LXg.cjs} +1 -1
  31. package/dist/{index-DDSqGoFj.js → index-Bw2EYWc_.js} +1 -1
  32. package/dist/{index-DTWRo17N.cjs → index-Bz81pzIe.cjs} +1 -1
  33. package/dist/{index-Dbr-vT_L.js → index-BzPHIMQx.js} +2 -2
  34. package/dist/{index-B8D7Ltja.cjs → index-BzcWcIFK.cjs} +1 -1
  35. package/dist/{index-Bxx6Nkwu.cjs → index-C2veg6vn.cjs} +1 -1
  36. package/dist/{index-C-YyJd-9.cjs → index-C3Ptg78M.cjs} +1 -1
  37. package/dist/{index-BabDfdY_.js → index-C6TMhjBL.js} +1 -1
  38. package/dist/{index-laZQ5gZ5.cjs → index-C8iHedd-.cjs} +1 -1
  39. package/dist/{index-BIYEGouV.cjs → index-CDAD78uL.cjs} +1 -1
  40. package/dist/{index-BPghm1Ll.js → index-CFQ2i3H-.js} +1 -1
  41. package/dist/{index-BCeLHBwl.cjs → index-CHq0b-zB.cjs} +1 -1
  42. package/dist/{index-BSiHIc6v.cjs → index-CPkQWJ4L.cjs} +1 -1
  43. package/dist/{index-DNsv2poC.js → index-CR0p1rBc.js} +8 -8
  44. package/dist/{index-0DVUq91d.js → index-CRZHUWpC.js} +4 -4
  45. package/dist/{index-DZKh4dCv.js → index-CS-flako.js} +4 -4
  46. package/dist/{index-DVQM9XfF.js → index-CWePfaws.js} +19 -19
  47. package/dist/{index-CVNWkOWJ.cjs → index-CYMg6uja.cjs} +1 -1
  48. package/dist/{index-DdOOuoQQ.js → index-CaefM49R.js} +5 -5
  49. package/dist/{index-DkyzPRSf.js → index-CkCH4z-k.js} +2 -2
  50. package/dist/index-ClouXXMe.cjs +25 -0
  51. package/dist/{index-BMORX6RQ.cjs → index-Cm-U9tfu.cjs} +1 -1
  52. package/dist/index-Cp4vuXJ2.js +22009 -0
  53. package/dist/{index-C5QOeEOi.cjs → index-CuXU0jDA.cjs} +1 -1
  54. package/dist/{index-CgioU-I8.js → index-Cv-caPmS.js} +3 -3
  55. package/dist/{index-0v52Gu-5.js → index-CwH35J8v.js} +1 -1
  56. package/dist/{index-CeU4RrOX.js → index-D1QwVcxQ.js} +580 -574
  57. package/dist/{index-DoZrnDpN.js → index-D2U6CU-M.js} +8 -8
  58. package/dist/{index-B3Y3-rnP.js → index-D3GXDtyf.js} +3 -3
  59. package/dist/{index-Dkpg2pEy.cjs → index-D8Mby6nK.cjs} +1 -1
  60. package/dist/{index-CKqKt3uZ.js → index-DY-ufi0D.js} +2 -2
  61. package/dist/{index-DNtygOfw.js → index-DZ3VfxFJ.js} +2 -2
  62. package/dist/{index-D6hb3TO_.cjs → index-DgroST_b.cjs} +1 -1
  63. package/dist/{index-UcCsgBr8.cjs → index-DiRRa2aL.cjs} +1 -1
  64. package/dist/{index-8FH1gVb5.cjs → index-DsTdVkqf.cjs} +1 -1
  65. package/dist/{index-B9F2cDrZ.cjs → index-Gsgko7hZ.cjs} +1 -1
  66. package/dist/{index-DPtvW3Qt.cjs → index-MKPfUvIM.cjs} +1 -1
  67. package/dist/{index-DkN4USSH.cjs → index-jU-5AL6b.cjs} +7 -6
  68. package/dist/{index-Dt2zchu9.cjs → index-nm88GmCB.cjs} +1 -1
  69. package/dist/{index-1N-nZDRm.cjs → index-tR1QzToB.cjs} +1 -1
  70. package/dist/{index-6WZVQw1m.js → index-uvNkzWF3.js} +5 -5
  71. package/dist/{index-DcKX8pwL.js → index-vzXAzEFZ.js} +1 -1
  72. package/dist/{index-Dn6qcU75.js → index-y8S00w40.js} +1494 -1582
  73. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Bthm-Dpu.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DpyjUeBm.cjs} +388 -388
  74. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-SjvxLc8m.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-QdQaZtjW.js} +15842 -15818
  75. package/dist/{main-1l-tdijP.js → main-NwPOo-yo.js} +4 -4
  76. package/dist/{main-DntIBUcY.cjs → main-rVXsTF8F.cjs} +1 -1
  77. package/dist/{menuIndex-DNtUqq9P.js → menuIndex-C-KEoRiC.js} +1 -1
  78. package/dist/{menuIndex-Cc5Z3H4U.cjs → menuIndex-zfzmkCa8.cjs} +1 -1
  79. package/dist/obj/model.mtl +42 -0
  80. package/dist/obj/model.obj +26110 -0
  81. package/dist/ss-component.cjs +1 -1
  82. package/dist/ss-component.css +1 -1
  83. package/dist/ss-component.js +11 -11
  84. package/dist/ss-component2.cjs +1 -1
  85. package/dist/ss-component2.js +12 -12
  86. package/dist/{threeModel-B1mnD3BH.js → threeModel-CSaOx5lv.js} +4 -4
  87. package/dist/{threeModel-CmvF3DWe.cjs → threeModel-eVInH7HH.cjs} +1 -1
  88. package/dist/{threePreview-DxxHwNEc.js → threePreview-BYlnXcXx.js} +4 -4
  89. package/dist/{threePreview-De1lum21.cjs → threePreview-CtxHQbWO.cjs} +1 -1
  90. package/dist/{threeSceneView-CFieSJid.js → threeSceneView-BGJJb7MR.js} +11 -11
  91. package/dist/{threeSceneView-CbHHeZwl.cjs → threeSceneView-DjOeIm6C.cjs} +1 -1
  92. package/dist/{threeSceneViewForCPMPIP-DYkJmmAV.cjs → threeSceneViewForCPMPIP-BimvMbbp.cjs} +1 -1
  93. package/dist/{threeSceneViewForCPMPIP-D2MazBFn.js → threeSceneViewForCPMPIP-DRuYDJgc.js} +8 -8
  94. package/dist/{threeTrackPathView-DBXjN7uZ.cjs → threeTrackPathView-DW3j8iWv.cjs} +1 -1
  95. package/dist/{threeTrackPathView-Bx1aNg0b.js → threeTrackPathView-DZikD8gq.js} +4 -4
  96. package/dist/{threeViewerHost-lNm_AsOf.js → threeViewerHost-BDeO3Dsm.js} +3 -3
  97. package/dist/{threeViewerHost-HepDLH0y.cjs → threeViewerHost-CtuY-X_d.cjs} +1 -1
  98. package/dist/{urdfTree-B9ABOmxw.cjs → urdfTree-BdN94tte.cjs} +1 -1
  99. package/dist/{urdfTree-BYgt3igN.js → urdfTree-CGYdreFc.js} +1 -1
  100. package/dist/{workpieceTreePanel-C1TmYBn5.cjs → workpieceTreePanel-CJe7DqlA.cjs} +1 -1
  101. package/dist/{workpieceTreePanel-B6jLWUeB.js → workpieceTreePanel-Dz5kCzkH.js} +4 -4
  102. package/package.json +1 -1
  103. package/public/obj/model.mtl +42 -0
  104. package/public/obj/model.obj +26110 -0
  105. package/dist/clone-D29e8H2G.cjs +0 -1
  106. package/dist/index-BctLTNEM.js +0 -21921
  107. package/dist/index-Cz2BsVL0.cjs +0 -1
  108. package/dist/index-DDnjPPvF.cjs +0 -25
@@ -1,25 +0,0 @@
1
- "use strict";var uu=Object.defineProperty;var du=(l,n,r)=>n in l?uu(l,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):l[n]=r;var Vr=(l,n,r)=>du(l,typeof n!="symbol"?n+"":n,r);const a=require("vue"),Za=require("./request-BBDPqFah.cjs"),z=require("./index-DkN4USSH.cjs"),ul=require("./index-D6hb3TO_.cjs"),Ul=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Na=require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Bthm-Dpu.cjs"),dr=require("./index-CUw6nGTo.cjs"),go=require("./threeViewerHost-HepDLH0y.cjs"),sa=require("./index-Cz2BsVL0.cjs"),mr=require("./index-CDIharql.cjs"),Ui=require("./index-8FH1gVb5.cjs");require("./index-Bxx6Nkwu.cjs");const Vs=require("./index-B8D7Ltja.cjs");;/* empty css */const bo=require("./isString-Jc6FCt92.cjs"),qi=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),Rs=require("./index-BVaHwt5f.cjs"),pu=require("./index-C5QOeEOi.cjs"),Sn=require("./MTLLoader-BsqwriNo.cjs"),fu=require("./URDFLoader-hx0-X57p.cjs");var hu="[object Boolean]";function $s(l){return l===!0||l===!1||Za.isObjectLike(l)&&Za.baseGetTag(l)==hu}function vu(l){return l===void 0}const mu=l=>l.match(/\((.*)\)/)[1],yu={__name:"index",props:{isVisible:{type:Boolean,default:!1},title:{type:String,default:""},placement:{type:String,default:"bottom"},width:{type:Number,default:200},trigger:{type:String,default:"click"}},setup(l){const n=l,r=a.ref(null),t=a.ref(!1),s=a.ref(null);return a.watch(()=>n==null?void 0:n.isVisible,()=>{t.value=n==null?void 0:n.isVisible},{deep:!0,immediate:!0}),a.watch(()=>s.value,()=>{a.nextTick(()=>{var u,k;(k=(u=r.value)==null?void 0:u.updatePopper)==null||k.call(u)})},{deep:!0,immediate:!0}),(u,k)=>{const h=a.resolveComponent("el-popover");return a.openBlock(),a.createBlock(h,{visible:t.value,"onUpdate:visible":k[0]||(k[0]=v=>t.value=v),trigger:n.trigger,title:n==null?void 0:n.title,placement:n==null?void 0:n.placement,width:n==null?void 0:n.width,ref_key:"popOverRef",ref:r,"trigger-keys":"[]"},{reference:a.withCtx(()=>[a.createElementVNode("div",null,[a.renderSlot(u.$slots,"reference",{ref_key:"referenceRef",ref:s})])]),default:a.withCtx(()=>[a.createElementVNode("div",null,[a.renderSlot(u.$slots,"content")])]),_:3},8,["visible","trigger","title","placement","width"])}}},gu={__name:"index",props:{value:{type:[String,Number],default:""}},setup(l){const n=l,r=a.computed(()=>{const t=String(n.value??"");return t==="已完成"?"task-status-completed":t==="进行中"?"task-status-running":t==="终止"||t==="暂停"?"task-status-stopped":""});return(t,s)=>l.value!==void 0&&l.value!==null?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(["task-status-tag",r.value])},a.toDisplayString(l.value===0?"0":l.value),3)):a.createCommentVNode("",!0)}},Ps=Ul._export_sfc(gu,[["__scopeId","data-v-d81f59b4"]]);function bu(l,n,r,t={}){if(!l||!n||!r||r.length!==4)return;const s=l.getContext("2d");if(!s)return;const{color:u="rgba(255, 235, 59, 0.3)",strokeWidth:k=2,fillOpacity:h=.2}=t,v=l.getBoundingClientRect(),y=n.getBoundingClientRect(),c=n.naturalWidth,E=n.naturalHeight,A=y.width/c,L=y.height/E,_=Math.min(A,L),W=c*_,C=E*_,M=(v.width-W)/2,ae=(v.height-C)/2,S=r.map(([N,x])=>{const g=M+N*W,H=ae+x*C;return{x:g,y:H}});s.clearRect(0,0,l.width,l.height),s.beginPath(),s.moveTo(S[0].x,S[0].y);for(let N=1;N<S.length;N++)s.lineTo(S[N].x,S[N].y);s.closePath();const $=u.replace(/[\d.]+\)$/,`${h})`);s.fillStyle=$,s.fill(),s.strokeStyle=u.replace(/[\d.]+\)$/,"1)"),s.lineWidth=k,s.stroke()}function mt(l){if(!l)return;const n=l.getContext("2d");n&&n.clearRect(0,0,l.width,l.height)}function Ki(l,n){if(!l||!n)return null;const r=l[n];return!r||!r.bboxNorm||!Array.isArray(r.bboxNorm)||r.bboxNorm.length!==4?null:{bboxNorm:r.bboxNorm,imageName:r.imageName||""}}const ku={key:0,class:"ocr-img-preview-root"},xu={class:"ocr-img-preview-window"},_u={key:0,class:"img-preview-body"},wu={class:"img-preview-header"},Cu={class:"img-header-left"},Eu={class:"img-name"},Su={key:0,class:"img-header-right"},Du={class:"img-index"},Bu={key:0,class:"img-thumb-list"},Nu=["onClick"],Tu={key:1,class:"thumb-placeholder"},Au={class:"thumb-name"},Mu={class:"img-preview-container"},zu={key:0,class:"img-placeholder"},Ou={key:2,class:"img-placeholder"},Iu={key:0},Lu={key:1},Vu={key:1,class:"img-placeholder"},Ru=a.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(l,{emit:n}){const r=l,t=n,s=a.computed({get:()=>r.visible,set:D=>t("update:visible",D)});let u=!1,k="",h=0,v=0,y=0,c=0,E=0,A=0,L=null;const _=D=>{var ve,se;const ne=(se=(ve=D==null?void 0:D.target)==null?void 0:ve.closest)==null?void 0:se.call(ve,".ocr-img-preview-window");return ne||document.querySelector(".ocr-img-preview-window")},W=D=>{if(!D||D==="none")return{tx:0,ty:0};let ne=D.match(/matrix\(([^)]+)\)/);if(ne){const ve=ne[1].split(",").map(se=>Number(se.trim()));return{tx:(ve==null?void 0:ve[4])||0,ty:(ve==null?void 0:ve[5])||0}}if(ne=D.match(/matrix3d\(([^)]+)\)/),ne){const ve=ne[1].split(",").map(se=>Number(se.trim()));return{tx:(ve==null?void 0:ve[12])||0,ty:(ve==null?void 0:ve[13])||0}}return ne=D.match(/translate\(\s*([-\d.]+)px\s*,\s*([-\d.]+)px\s*\)/),ne?{tx:Number(ne[1])||0,ty:Number(ne[2])||0}:{tx:0,ty:0}},C=(D,ne,ve)=>{D.style.transform=`translate(${ne}px, ${ve}px)`},M=D=>{const ne=_(D);if(!ne)return;u=!0,L=ne,k="move",h=D.clientX,v=D.clientY;const ve=window.getComputedStyle(ne),{tx:se,ty:_e}=W(ve.transform);E=se,A=_e,document.addEventListener("mousemove",S),document.addEventListener("mouseup",$)},ae=(D,ne)=>{const ve=_(D);if(!ve)return;u=!0,L=ve,k=ne,h=D.clientX,v=D.clientY;const se=ve.getBoundingClientRect();y=se.width,c=se.height;const _e=window.getComputedStyle(ve),{tx:ra,ty:ba}=W(_e.transform);E=ra,A=ba,document.addEventListener("mousemove",S),document.addEventListener("mouseup",$)},S=D=>{if(!u||!L)return;const ne=D.clientX-h,ve=D.clientY-v,se=360,_e=420;let ra=y,ba=c,$a=E,le=A;if(k==="move"){$a=E+ne,le=A+ve,C(L,$a,le);return}if(k.includes("right")&&(ra=Math.max(se,y+ne)),k.includes("bottom")&&(ba=Math.max(_e,c+ve)),k.includes("left")){const Qe=y-ne;Qe<se?(ra=se,$a=E+(y-se)):(ra=Qe,$a=E+ne)}if(k.includes("top")){const Qe=c-ve;Qe<_e?(ba=_e,le=A+(c-_e)):(ba=Qe,le=A+ve)}L.style.width=`${ra}px`,L.style.height=`${ba}px`,C(L,$a,le)},$=()=>{u=!1,k="",L=null,document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",$)},N=a.ref([]),x=a.ref(!1);a.watch(()=>r.images,async D=>{if(!Array.isArray(D)||D.length===0){N.value=[];return}x.value=!0;const ne=[];for(const ve of D)if(ve.url&&!ve.url.startsWith("blob:")&&!ve.url.startsWith("http"))try{const se=await Na.downloadFile(ve.url),_e=URL.createObjectURL(se);ne.push({...ve,blobUrl:_e})}catch(se){console.error(`Failed to load image for preview: ${ve.url}`,se),ne.push({...ve,blobUrl:""})}else ne.push({...ve,blobUrl:ve.url});N.value=ne,x.value=!1},{deep:!0,immediate:!0});const g=a.ref(0),H=a.ref(null),q=a.ref(null),G=a.computed(()=>N.value[g.value]||null),he=()=>{if(!N.value.length){g.value=0;return}if(r.defaultImageName){const D=N.value.findIndex(ne=>(ne==null?void 0:ne.name)===r.defaultImageName);g.value=D>=0?D:0}else g.value=0},Be=D=>{if(!N.value.length)return;const ne=Math.max(0,Math.min(D,N.value.length-1));g.value=ne},xe=()=>Be(g.value-1),te=()=>Be(g.value+1),me=D=>{if(!D)return;const ne=N.value.findIndex(ve=>(ve==null?void 0:ve.name)===D);ne>=0&&(g.value=ne)},Z=()=>{if(!q.value)return;const D=q.value.parentElement;if(!D)return;const ne=D.getBoundingClientRect();q.value.width=ne.width,q.value.height=ne.height},ue=()=>{var se,_e;if(!q.value||!H.value||!r.focusedFieldName){q.value&&mt(q.value);return}const D=(se=H.value.$el)==null?void 0:se.querySelector("img");if(!D)return;if(!D.complete||D.naturalWidth===0){D.onload=()=>{a.nextTick(()=>{ue()})};return}const ne=((_e=G.value)==null?void 0:_e.name)||"",ve=Ki(r.fieldMeta,r.focusedFieldName);if(!ve){mt(q.value);return}if(ve.imageName!==ne){mt(q.value);return}Z(),bu(q.value,D,ve.bboxNorm)},Ue=()=>{a.nextTick(()=>{Z(),ue()})};a.watch(()=>r.focusedFieldName,()=>{if(!s.value)return;const D=Ki(r.fieldMeta,r.focusedFieldName);D!=null&&D.imageName&&me(D.imageName),a.nextTick(()=>{ue()})}),a.watch(()=>{var D;return(D=G.value)==null?void 0:D.name},()=>{s.value&&a.nextTick(()=>{q.value&&mt(q.value),ue()})}),a.watch(()=>r.visible,D=>{D?(he(),a.nextTick(()=>{Z(),ue()})):q.value&&mt(q.value)}),a.watch(()=>r.defaultImageName,()=>{s.value&&he()});let Ca=null;a.onMounted(()=>{var D;typeof ResizeObserver<"u"&&(Ca=new ResizeObserver(()=>{Z(),a.nextTick(()=>{ue()})}),(D=q.value)!=null&&D.parentElement&&Ca.observe(q.value.parentElement))}),a.onUnmounted(()=>{Ca&&(Ca.disconnect(),Ca=null),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",$)});const oe=()=>{q.value&&mt(q.value),t("update:visible",!1),t("close")};return(D,ne)=>{var ba,$a;const ve=a.resolveComponent("el-button"),se=a.resolveComponent("el-image"),_e=a.resolveComponent("Loading"),ra=a.resolveComponent("el-icon");return s.value?(a.openBlock(),a.createElementBlock("div",ku,[ne[12]||(ne[12]=a.createElementVNode("div",{class:"ocr-img-preview-backdrop"},null,-1)),a.createElementVNode("div",xu,[a.createElementVNode("div",{class:"ocr-img-preview-header",onMousedown:a.withModifiers(M,["stop"])},[ne[8]||(ne[8]=a.createElementVNode("span",{class:"ocr-img-preview-title"},"文件预览",-1)),a.createElementVNode("button",{type:"button",class:"ocr-img-preview-close",onClick:oe},"×")],32),a.createElementVNode("div",{class:"resizable-handle top",onMousedown:ne[0]||(ne[0]=a.withModifiers(le=>ae(le,"top"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle right",onMousedown:ne[1]||(ne[1]=a.withModifiers(le=>ae(le,"right"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom",onMousedown:ne[2]||(ne[2]=a.withModifiers(le=>ae(le,"bottom"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle left",onMousedown:ne[3]||(ne[3]=a.withModifiers(le=>ae(le,"left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle top-left",onMousedown:ne[4]||(ne[4]=a.withModifiers(le=>ae(le,"top-left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle top-right",onMousedown:ne[5]||(ne[5]=a.withModifiers(le=>ae(le,"top-right"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom-left",onMousedown:ne[6]||(ne[6]=a.withModifiers(le=>ae(le,"bottom-left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom-right",onMousedown:ne[7]||(ne[7]=a.withModifiers(le=>ae(le,"bottom-right"),["stop"]))},null,32),G.value?(a.openBlock(),a.createElementBlock("div",_u,[a.createElementVNode("div",wu,[a.createElementVNode("div",Cu,[a.createElementVNode("span",Eu,a.toDisplayString(G.value.name?G.value.name+(G.value.url&&G.value.url.lastIndexOf(".")!==-1?G.value.url.substring(G.value.url.lastIndexOf(".")):""):""),1)]),N.value.length>1?(a.openBlock(),a.createElementBlock("div",Su,[a.createVNode(ve,{size:"small",disabled:g.value===0,onClick:xe},{default:a.withCtx(()=>ne[9]||(ne[9]=[a.createTextVNode("上一张")])),_:1,__:[9]},8,["disabled"]),a.createElementVNode("span",Du,a.toDisplayString(g.value+1)+" / "+a.toDisplayString(N.value.length),1),a.createVNode(ve,{size:"small",disabled:g.value===N.value.length-1,onClick:te},{default:a.withCtx(()=>ne[10]||(ne[10]=[a.createTextVNode("下一张")])),_:1,__:[10]},8,["disabled"])])):a.createCommentVNode("",!0)]),N.value.length>1?(a.openBlock(),a.createElementBlock("div",Bu,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(N.value,(le,Qe)=>(a.openBlock(),a.createElementBlock("div",{key:(le.name||"")+"-"+Qe,class:a.normalizeClass(["img-thumb-item",{active:Qe===g.value}]),onClick:Ie=>Be(Qe)},[le!=null&&le.blobUrl?(a.openBlock(),a.createBlock(se,{key:0,src:le.blobUrl,fit:"cover",class:"thumb-image","preview-src-list":[le.blobUrl],"initial-index":0},null,8,["src","preview-src-list"])):(a.openBlock(),a.createElementBlock("div",Tu,"加载失败")),a.createElementVNode("div",Au,a.toDisplayString(le.name||"-"),1)],10,Nu))),128))])):a.createCommentVNode("",!0),a.createElementVNode("div",Mu,[x.value?(a.openBlock(),a.createElementBlock("div",zu,[a.createVNode(ra,{class:"is-loading"},{default:a.withCtx(()=>[a.createVNode(_e)]),_:1}),ne[11]||(ne[11]=a.createElementVNode("span",null,"图片加载中...",-1))])):(ba=G.value)!=null&&ba.blobUrl?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createVNode(se,{ref_key:"imageRef",ref:H,src:G.value.blobUrl,fit:"contain",class:"preview-image","preview-src-list":[G.value.blobUrl],onLoad:Ue},null,8,["src","preview-src-list"]),a.createElementVNode("canvas",{ref_key:"canvasRef",ref:q,class:"highlight-canvas"},null,512)],64)):(a.openBlock(),a.createElementBlock("div",Ou,[($a=G.value)!=null&&$a.url?(a.openBlock(),a.createElementBlock("span",Iu,"图片加载失败")):(a.openBlock(),a.createElementBlock("span",Lu,"暂无图片"))]))])])):(a.openBlock(),a.createElementBlock("div",Vu,"暂无图片"))])])):a.createCommentVNode("",!0)}}}),$u=Ul._export_sfc(Ru,[["__scopeId","data-v-48a4ecb1"]]),Pu={class:"cert-preview-body"},Fu={key:0,class:"pdf-preview-container"},ju={class:"thumbs"},Hu=["onClick"],Uu={class:"thumb-img"},qu=["src"],Ku={key:1,class:"thumb-loading"},Wu={class:"thumb-title"},Yu={class:"viewer"},Ju={key:0,class:"viewer-img-wrap"},Gu=["src"],Xu={key:1,class:"viewer-loading"},Zu=a.defineComponent({__name:"CertificatePreview",props:{visible:{type:Boolean},versions:{}},emits:["update:visible"],setup(l,{emit:n}){const r=l,t=n,s=a.ref(""),u=a.ref(""),k=a.computed(()=>(r.versions||[]).find(_=>String(_.versionId)===String(s.value))),h=a.ref({}),v=a.ref(""),y=a.ref("证书附件.pdf"),c=()=>{try{Object.values(h.value||{}).forEach(_=>{_&&URL.revokeObjectURL(_)}),v.value&&URL.revokeObjectURL(v.value)}catch{}h.value={},v.value=""},E=async _=>{if(!_||_.fileType==="pdf")return;const W=Array.isArray(_.images)?_.images:[];for(const C of W){const M=C==null?void 0:C.url;if(!(!M||h.value[M]))try{const ae=await z.platformDownloadFile({url:M}),S=URL.createObjectURL(ae.data);h.value={...h.value,[M]:S}}catch{}}},A=async _=>{var C;if(!_||_.fileType!=="pdf"){v.value="";return}const W=_.sourceUrl||"";if(!W){v.value="";return}if(v.value){try{URL.revokeObjectURL(v.value)}catch{}v.value=""}try{console.log("[CertificatePreview] 下载PDF附件:",{url:W,versionId:_==null?void 0:_.versionId,certNo:_==null?void 0:_.certNo});const M=await z.platformDownloadFile({url:W});console.log("[CertificatePreview] PDF响应:",{url:W,status:M==null?void 0:M.status,size:(C=M==null?void 0:M.data)==null?void 0:C.size});const ae=URL.createObjectURL(M.data);v.value=ae;const S=_.certNo?String(_.certNo):"";y.value=S?`${S}.pdf`:"证书附件.pdf"}catch(M){console.error("[CertificatePreview] PDF加载失败:",{url:W,error:M}),v.value=""}};a.watch(()=>r.visible,async _=>{var C;if(!_){c();return}const W=(C=r.versions)==null?void 0:C[0];s.value=(W==null?void 0:W.versionId)||"",await E(W),await A(W)},{immediate:!0}),a.watch(()=>s.value,async()=>{var W,C;const _=k.value;if(!_){u.value="",v.value="";return}if(_.fileType==="pdf"){u.value="",await A(_);return}v.value="",u.value=((C=(W=_.images)==null?void 0:W[0])==null?void 0:C.url)||"",await E(_)},{immediate:!0});const L=()=>{t("update:visible",!1),c()};return a.onBeforeUnmount(()=>{c()}),(_,W)=>{const C=a.resolveComponent("el-empty"),M=a.resolveComponent("el-tab-pane"),ae=a.resolveComponent("el-tabs"),S=a.resolveComponent("el-button"),$=a.resolveComponent("el-dialog");return a.openBlock(),a.createBlock($,{"model-value":_.visible,title:"证书附件预览",width:"1100px","close-on-click-modal":!1,onClose:L},{footer:a.withCtx(()=>[a.createVNode(S,{id:"themeBorderButton",onClick:L},{default:a.withCtx(()=>W[1]||(W[1]=[a.createTextVNode("关闭")])),_:1,__:[1]})]),default:a.withCtx(()=>[_.versions&&_.versions.length>0?(a.openBlock(),a.createBlock(ae,{key:0,modelValue:s.value,"onUpdate:modelValue":W[0]||(W[0]=N=>s.value=N),type:"card",class:"cert-version-tabs"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(_.versions,N=>(a.openBlock(),a.createBlock(M,{key:N.versionId,name:N.versionId,label:N.label},{default:a.withCtx(()=>[a.createElementVNode("div",Pu,[N.fileType==="pdf"?(a.openBlock(),a.createElementBlock("div",Fu,[v.value?(a.openBlock(),a.createBlock(ul.SsFilePreview,{key:1,fileName:y.value,blobUrl:v.value},null,8,["fileName","blobUrl"])):(a.openBlock(),a.createBlock(C,{key:0,description:"加载中"}))])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",ju,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(N.images||[],x=>(a.openBlock(),a.createElementBlock("div",{key:x.url,class:a.normalizeClass(["thumb",{active:x.url===u.value}]),onClick:g=>u.value=x.url},[a.createElementVNode("div",Uu,[h.value[x.url]?(a.openBlock(),a.createElementBlock("img",{key:0,src:h.value[x.url]},null,8,qu)):(a.openBlock(),a.createElementBlock("div",Ku,"加载中"))]),a.createElementVNode("div",Wu,a.toDisplayString(x.name),1)],10,Hu))),128))]),a.createElementVNode("div",Yu,[u.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[h.value[u.value]?(a.openBlock(),a.createElementBlock("div",Ju,[a.createElementVNode("img",{class:"viewer-img",src:h.value[u.value]},null,8,Gu)])):(a.openBlock(),a.createElementBlock("div",Xu,"加载中"))],64)):(a.openBlock(),a.createBlock(C,{key:0,description:"暂无图片"}))])],64))])]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])):(a.openBlock(),a.createBlock(C,{key:1,description:"暂无可预览的证书附件"}))]),_:1},8,["model-value"])}}}),Qu=Ul._export_sfc(Zu,[["__scopeId","data-v-220703c0"]]),ed={class:"ocr-candidate-wrap"},ad={class:"ocr-candidate-left"},ld={key:1},rd={key:0},nd={key:1},td={key:2},od={key:3},id={key:0,class:"ocr-candidate-right"},sd={class:"ocr-candidate-actions"},cd={key:1},ud={class:"dialog-footer"},dd={__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(l,{emit:n}){const r=(g=[])=>{const H=[],q=G=>{(G||[]).forEach(he=>{if(!he)return;const Be=he.children||he.childrens||he.columns;Array.isArray(Be)&&Be.length>0?q(Be):H.push(he)})};return q(g),H},t=l,s=n,u=a.computed(()=>{var g;return((g=A.value)==null?void 0:g.allowAdd)!==!1}),k=a.computed(()=>{var g;return((g=A.value)==null?void 0:g.allowReplace)!==!1}),h=g=>{if(!g)return[];if(Array.isArray(g))return g;if(typeof g=="string")try{const H=JSON.parse(g);return Array.isArray(H)?H:[]}catch{return[]}return[]},v=g=>{s("preview-file",g)},y=a.ref([]),c=a.ref(0),E=a.ref("");a.watch(()=>t.candidates,g=>{var H,q;y.value=(g||[]).map(G=>({...G,...(G==null?void 0:G.ocrRow)||{},selectedTargetId:(G==null?void 0:G.selectedTargetId)||"",__decision:G==null?void 0:G.__decision})),c.value=0,E.value=((q=(H=y.value)==null?void 0:H[0])==null?void 0:q.selectedTargetId)||""},{immediate:!0,deep:!0}),a.watch(()=>t.visible,g=>{var H,q;g&&(c.value=0,E.value=((q=(H=y.value)==null?void 0:H[0])==null?void 0:q.selectedTargetId)||"")});const A=a.computed(()=>{var H;const g=Number(c.value||0);return((H=y.value||[])==null?void 0:H[g])||null}),L=a.computed(()=>(r(t.columns||[])||[]).filter(q=>q&&q.prop).filter(q=>q.type!=="operate"&&q.label!=="操作"&&q.prop!=="operate")),_=a.computed(()=>L.value.filter(g=>g.label!=="证书附件"&&g.prop!=="证书附件")),W=g=>{if(!g)return;const H=(y.value||[]).findIndex(q=>(q==null?void 0:q.idx)===(g==null?void 0:g.idx));H>-1&&(c.value=H,E.value=(g==null?void 0:g.selectedTargetId)||"")},C=g=>{if(!g){E.value="";return}E.value=String((g==null?void 0:g.id)??"")},M=(g,H="")=>{const q=Number(c.value||0),G=y.value||[],he=G[q];he&&(he.__decision=g,he.selectedTargetId=H,E.value=H,y.value=[...G])},ae=()=>M("skip",""),S=()=>M("add",""),$=()=>{if(!E.value){Za.ElMessage.warning("请先选择要替换的目标记录");return}M("replace",E.value)},N=()=>{s("update:visible",!1)},x=()=>{const g=y.value||[];if(g.find(q=>(q==null?void 0:q.__decision)==="replace"&&!(q!=null&&q.selectedTargetId))){Za.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}s("submit",g),s("update:visible",!1)};return(g,H)=>{const q=a.resolveComponent("el-table-column"),G=a.resolveComponent("svg-icon"),he=a.resolveComponent("el-table"),Be=a.resolveComponent("el-button"),xe=a.resolveComponent("el-alert");return a.openBlock(),a.createBlock(dr.ssDialog,{title:"OCR候选匹配",visible:l.visible,"close-on-click-modal":!1,width:"90%",style:{maxWidth:"1200px"},onBeforeDestroy:N},{default:a.withCtx(()=>{var te,me;return[a.createElementVNode("div",ed,[a.createElementVNode("div",ad,[H[0]||(H[0]=a.createElementVNode("div",{class:"ocr-candidate-title"},"待处理OCR行(可跳过)",-1)),a.createVNode(he,{data:y.value,border:"",stripe:"","max-height":"300",style:{width:"100%"},"highlight-current-row":"",onCurrentChange:W},{default:a.withCtx(()=>[a.createVNode(q,{type:"index",label:"序号",width:"60"}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(_.value,Z=>(a.openBlock(),a.createBlock(q,{key:Z.prop,label:Z.label,prop:Z.prop,"min-width":Z.minWidth||160},{default:a.withCtx(({row:ue})=>[Z.label==="证书附件"||Z.prop==="证书附件"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[h(ue==null?void 0:ue[Z.prop]).length>0?(a.openBlock(),a.createBlock(G,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:a.withModifiers(Ue=>v({row:ue,prop:Z.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(a.openBlock(),a.createElementBlock("span",ld,"-"))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString((ue==null?void 0:ue[Z.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128)),a.createVNode(q,{label:"候选数",width:"90",fixed:"right"},{default:a.withCtx(({row:Z})=>[a.createTextVNode(a.toDisplayString(((Z==null?void 0:Z.candidates)||[]).length),1)]),_:1}),a.createVNode(q,{label:"处理状态",width:"120",fixed:"right"},{default:a.withCtx(({row:Z})=>[(Z==null?void 0:Z.__decision)==="replace"?(a.openBlock(),a.createElementBlock("span",rd,"替换")):(Z==null?void 0:Z.__decision)==="add"?(a.openBlock(),a.createElementBlock("span",nd,"新增")):(Z==null?void 0:Z.__decision)==="skip"?(a.openBlock(),a.createElementBlock("span",td,"跳过")):(a.openBlock(),a.createElementBlock("span",od,"未处理"))]),_:1})]),_:1},8,["data"])]),y.value&&y.value.length>0?(a.openBlock(),a.createElementBlock("div",id,[H[4]||(H[4]=a.createElementVNode("div",{class:"ocr-candidate-title"},"当前行候选记录(同编号)",-1)),a.createElementVNode("div",sd,[a.createVNode(Be,{id:"themeBorderButton",onClick:ae},{default:a.withCtx(()=>H[1]||(H[1]=[a.createTextVNode("跳过本行")])),_:1,__:[1]}),a.createVNode(Be,{id:"themeBorderButton",onClick:S,disabled:!u.value},{default:a.withCtx(()=>H[2]||(H[2]=[a.createTextVNode("新增本行")])),_:1,__:[2]},8,["disabled"]),a.createVNode(Be,{class:"ok-button",id:"themeButton",onClick:$,disabled:!k.value||!E.value},{default:a.withCtx(()=>H[3]||(H[3]=[a.createTextVNode("替换选中记录")])),_:1,__:[3]},8,["disabled"])]),(((te=A.value)==null?void 0:te.candidates)||[]).length===0?(a.openBlock(),a.createBlock(xe,{key:0,title:"该编号暂无候选记录,可选择“新增本行”或“跳过本行”。",type:"info",closable:!1,"show-icon":"",style:{margin:"8px 0"}})):a.createCommentVNode("",!0),a.createVNode(he,{data:((me=A.value)==null?void 0:me.candidates)||[],border:"",stripe:"","max-height":"300",style:{width:"100%"},onCurrentChange:C,"highlight-current-row":""},{default:a.withCtx(()=>[a.createVNode(q,{type:"index",label:"序号",width:"60"}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(L.value,Z=>(a.openBlock(),a.createBlock(q,{key:Z.prop,label:Z.label,prop:Z.prop,"min-width":Z.minWidth||160},{default:a.withCtx(({row:ue})=>[Z.label==="证书附件"||Z.prop==="证书附件"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[h(ue==null?void 0:ue[Z.prop]).length>0?(a.openBlock(),a.createBlock(G,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:a.withModifiers(Ue=>v({row:ue,prop:Z.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(a.openBlock(),a.createElementBlock("span",cd,"-"))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString((ue==null?void 0:ue[Z.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128))]),_:1},8,["data"])])):a.createCommentVNode("",!0)])]}),footer:a.withCtx(()=>[a.createElementVNode("div",ud,[a.createVNode(Be,{id:"themeBorderButton",onClick:N},{default:a.withCtx(()=>H[5]||(H[5]=[a.createTextVNode("取消")])),_:1,__:[5]}),a.createVNode(Be,{class:"ok-button",id:"themeButton",onClick:x},{default:a.withCtx(()=>H[6]||(H[6]=[a.createTextVNode("提交已处理")])),_:1,__:[6]})])]),_:1},8,["visible"])}}},pd=Ul._export_sfc(dd,[["__scopeId","data-v-89e0489c"]]),fd={class:"ocr-preview-content"},hd={class:"ocr-preview-tip"},vd={class:"ocr-preview-table"},md={style:{display:"flex","align-items":"center",gap:"8px"}},yd={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(l,{emit:n}){const r=l,t=n,s=a.ref([]),u=a.ref([]),k=a.ref([]);a.watch(()=>r.visible,L=>{L&&(s.value=JSON.parse(JSON.stringify(r.ocrPreviewData)),u.value=JSON.parse(JSON.stringify(r.ocrPreviewColumns)),k.value=[...r.ocrSelectedFields])});const h=(L,_)=>{const W=[...k.value];if(_)W.includes(L)||W.push(L);else{const C=W.indexOf(L);C>-1&&W.splice(C,1)}k.value=W,t("update:ocrSelectedFields",W)},v=(L,_,W)=>{t("fieldChange",{rowIndex:L,prop:_,value:W})},y=()=>{t("update:ocrPreviewData",s.value),t("confirm",s.value),t("update:visible",!1)},c=()=>{t("update:visible",!1)},E=L=>typeof L!="number"?"-":`${(L*100).toFixed(1)}%`,A=L=>typeof L!="number"?"#606266":L>=.9?"#67c23a":L>=.7?"#e6a23c":"#f56c6c";return(L,_)=>{const W=a.resolveComponent("el-alert"),C=a.resolveComponent("el-table-column"),M=a.resolveComponent("el-checkbox"),ae=a.resolveComponent("el-input"),S=a.resolveComponent("el-table"),$=a.resolveComponent("el-button");return a.openBlock(),a.createBlock(dr.ssDialog,{title:"OCR识别结果预览",visible:l.visible,onBeforeDestroy:c,width:"90%",style:{maxWidth:"1200px"}},{default:a.withCtx(()=>[a.createElementVNode("div",fd,[a.createElementVNode("div",hd,[a.createVNode(W,{title:"请核对识别结果。系统将按 编号+名称+制造厂 规则匹配并替换;未唯一命中但有编号的,将进入候选选择;无编号则直接新增。",type:"info",closable:!1,"show-icon":""})]),a.createElementVNode("div",vd,[a.createVNode(S,{data:s.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:a.withCtx(()=>[a.createVNode(C,{type:"index",label:"序号",width:"60",fixed:""}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(u.value,N=>(a.openBlock(),a.createBlock(C,{key:N.prop,prop:N.prop,"min-width":N.minWidth||230,"class-name":N.isAccuracy?"accuracy-column":""},{header:a.withCtx(()=>[a.createElementVNode("div",md,[N.isAccuracy?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(M,{key:0,"model-value":k.value.includes(N.prop),onChange:x=>h(N.prop,x),onClick:_[0]||(_[0]=a.withModifiers(()=>{},["stop"]))},null,8,["model-value","onChange"])),a.createElementVNode("span",null,a.toDisplayString(N.label),1)])]),default:a.withCtx(({row:x,$index:g})=>[N.isAccuracy?(a.openBlock(),a.createElementBlock("span",{key:0,class:"accuracy-value",style:a.normalizeStyle({color:A(x[N.prop]),fontWeight:500})},a.toDisplayString(E(x[N.prop])),5)):(a.openBlock(),a.createBlock(ae,{key:1,modelValue:x[N.prop],"onUpdate:modelValue":H=>x[N.prop]=H,size:"small",placeholder:"请输入"+N.label,onChange:H=>v(g,N.prop,H)},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"]))]),_:2},1032,["prop","min-width","class-name"]))),128))]),_:1},8,["data"])])])]),footer:a.withCtx(()=>[a.createElementVNode("div",yd,[a.createVNode($,{onClick:c,id:"themeBorderButton"},{default:a.withCtx(()=>_[1]||(_[1]=[a.createTextVNode("取消")])),_:1,__:[1]}),a.createVNode($,{class:"ok-button",onClick:y,id:"themeButton"},{default:a.withCtx(()=>_[2]||(_[2]=[a.createTextVNode("确认")])),_:1,__:[2]})])]),_:1},8,["visible"])}}},bd=Ul._export_sfc(gd,[["__scopeId","data-v-df66eb1f"]]),kt=l=>{var t;let n=l;(n==null?void 0:n[0])==="("&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1));let r=(t=Na.analyzeSplitToContent(n,","))==null?void 0:t.map(s=>((s==null?void 0:s[(s==null?void 0:s.length)-1])===","&&(s=s==null?void 0:s.slice(0,(s==null?void 0:s.length)-1)),ri(s)));return r=r==null?void 0:r.join(","),r};let Fa="$R",Fs="[Any]";const kd=l=>{var k,h;let n={},r=l==null?void 0:l[0],t=(h=(k=r==null?void 0:r.replace("{",Fa))==null?void 0:k.split(Fa))==null?void 0:h[0];(t==null?void 0:t[0])==="*"&&(t=t==null?void 0:t.slice(1,t==null?void 0:t.length)),t=t==null?void 0:t.split(":"),n.group=t;let s=l==null?void 0:l[1],u=s==null?void 0:s.replaceAll(Fs,"");return(u==null?void 0:u[0])==="$"&&(u=u==null?void 0:u.slice(1,u==null?void 0:u.length)),n.filter=u,n},xd=l=>{var c,E,A,L,_,W,C;let n=[],r=[],t=l==null?void 0:l.map(M=>{var S;let ae=(S=Na.analyzeSplitToContent(M,"@"))==null?void 0:S[0];return(ae==null?void 0:ae[(ae==null?void 0:ae.length)-1])==="@"&&(ae=ae==null?void 0:ae.slice(0,(ae==null?void 0:ae.length)-1)),ae}),s="",u=Na.analyzeSplitToContent(t==null?void 0:t[0],":");r=(c=u==null?void 0:u.filter(M=>!(M!=null&&M.includes("{"))&&!(M!=null&&M.includes("["))))==null?void 0:c.join(""),(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==null?void 0:r.slice(1,r==null?void 0:r.length)),r=r==null?void 0:r.split(":");let k=u==null?void 0:u.filter(M=>(M==null?void 0:M.includes("{"))||(M==null?void 0:M.includes("["))),h=(A=k==null?void 0:k[0])==null?void 0:A.slice(1,((E=k==null?void 0:k[0])==null?void 0:E.length)-1);h=(L=Na.analyzeSplitToContent(h,","))==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));let v="@"+((_=Na.analyzeSplitToContent(l==null?void 0:l[0],"@"))==null?void 0:_[1]);((W=Na.analyzeSplitToContent(v,":"))==null?void 0:W.length)>1&&(n=wt((C=Na.analyzeSplitToContent(v,":"))==null?void 0:C[1]),n=[n]);let y=[];return h==null||h.forEach((M,ae)=>{var Be,xe,te,me,Z,ue,Ue,Ca,oe,D,ne,ve,se,_e,ra,ba,$a,le,Qe,Ie,ka,Re,we,ze,qe,Sa,el,P,j,Y,V,K,Te,ee,ke,pe,$e,Ve,ca,ya,Oe,da,Le,_a,Fe,ma,ce;let S=(Be=M==null?void 0:M.split("=="))==null?void 0:Be[0],$=(xe=M==null?void 0:M.split("=="))==null?void 0:xe[1],N=[],x=[],g=[],H=[],q="Input",G=[],he=[];if((M==null?void 0:M[0])!=="{"){if(($==null?void 0:$[0])==="$")$=$==null?void 0:$.slice(1,$==null?void 0:$.length),N=(me=(te=$==null?void 0:$.split("*"))==null?void 0:te[0])==null?void 0:me.split(":"),x=(D=(oe=(Ca=(Ue=(ue=(Z=$==null?void 0:$.split("*"))==null?void 0:Z[1])==null?void 0:ue.replace("{",Fa))==null?void 0:Ue.split(Fa))==null?void 0:Ca[0])==null?void 0:oe.split(":"))==null?void 0:D.filter(ga=>ga!==""),g=(ve=(ne=$==null?void 0:$.replace("{",Fa))==null?void 0:ne.split(Fa))==null?void 0:ve[1],g=g==null?void 0:g.replaceAll("}",""),g=g==null?void 0:g.split(":"),q="Select";else if(((se=Na.analyzeSplitToContent(M,"="))==null?void 0:se.length)>1){let ga=(_e=S==null?void 0:S.split("="))==null?void 0:_e[1];if(S=(ra=S==null?void 0:S.split("="))==null?void 0:ra[0],q="Select",!(M!=null&&M.includes("||")))ga=(ba=ga==null?void 0:ga.split("/"))==null?void 0:ba.map(ye=>((ye==null?void 0:ye[(ye==null?void 0:ye.length)-1])==="/"&&(ye=ye==null?void 0:ye.slice(0,(ye==null?void 0:ye.length)-1)),ye)),H=ga==null?void 0:ga.map(ye=>({label:ye==null?void 0:ye.replaceAll("'",""),value:ye==null?void 0:ye.replaceAll("'","")}));else{let ye=[];(Ie=(Qe=(le=($a=M==null?void 0:M.replace("=",Fa))==null?void 0:$a.split(Fa))==null?void 0:le[1])==null?void 0:Qe.split("||"))==null||Ie.forEach(Ea=>{var Ye,Ke,Ce;G.push((Ke=(Ye=Ea==null?void 0:Ea.split("@Filter"))==null?void 0:Ye[0])==null?void 0:Ke.split("/")),ye.push((Ce=Ea==null?void 0:Ea.split("@Filter"))==null?void 0:Ce[1])}),he=ye==null?void 0:ye.map(Ea=>(Ea=Ea==null?void 0:Ea.slice(1,(Ea==null?void 0:Ea.length)-1),Ea))}}else if(M!=null&&M.includes("@")&&!(M!=null&&M.includes("||"))){S=(qe=(ze=(we=(Re=(ka=S==null?void 0:S.replace("(@",Fa))==null?void 0:ka.split(Fa))==null?void 0:Re[0])==null?void 0:we.replace("@",Fa))==null?void 0:ze.split(Fa))==null?void 0:qe[0];let ga=M!=null&&M.includes("(@")?"(@"+((el=(Sa=M==null?void 0:M.replace("(@",Fa))==null?void 0:Sa.split(Fa))==null?void 0:el[1]):"@"+((j=(P=M==null?void 0:M.replace("@",Fa))==null?void 0:P.split(Fa))==null?void 0:j[1]);if(ga=(Y=kt(ga))==null?void 0:Y.split(","),ga!=null&&ga.find(ye=>ye==null?void 0:ye.includes("@Type"))){let ye=(V=ga==null?void 0:ga.find(Ea=>Ea==null?void 0:Ea.includes("@Type")))==null?void 0:V.split("=");ye!=null&&ye.includes("File")&&(q="Upload"),ye!=null&&ye.includes("Date")&&(q="Date"),ye!=null&&ye.includes("DateTime")&&(q="DateTime"),ye!=null&&ye.includes("Time")&&(q="Time")}}y.push({prop:S,label:S,value:"",menuPath:N,groups:x,columns:g,width:h==null?void 0:h.length,options:H,type:q,allContents:G,filterContents:he})}else{s=s+"@"+((K=Na.analyzeSplitToContent(M,"@"))==null?void 0:K[1]);let ga=(Te=Na.analyzeSplitToContent(M,"@"))==null?void 0:Te[0];(ga==null?void 0:ga[(ga==null?void 0:ga.length)-1])==="@"&&(ga=ga==null?void 0:ga.slice(0,(ga==null?void 0:ga.length)-1));let ye=(ee=ga==null?void 0:ga.split("=="))==null?void 0:ee[0],Ea=(ke=ga==null?void 0:ga.split("=="))==null?void 0:ke[1],Ye=($e=(pe=Ea==null?void 0:Ea.split("*"))==null?void 0:pe[0])==null?void 0:$e.replace(Fs,"");(Ye==null?void 0:Ye[0])==="$"&&(Ye=Ye==null?void 0:Ye.slice(1,Ye==null?void 0:Ye.length)),Ye=Na.analyzeSplitToContent(Ye,"$"),Ye=(Ve=Ye==null?void 0:Ye.map((Ke,Ce)=>{var be;return Ce===0&&(Ye==null?void 0:Ye.length)>1&&(Ke=(be=Ke==null?void 0:Ke.split(":"))==null?void 0:be[0]),(Ye==null?void 0:Ye.length)>1&&Ce===(Ye==null?void 0:Ye.length)-1&&(Ke=Ke+":"),Ke}))==null?void 0:Ve.join(":"),N=Ye==null?void 0:Ye.split(":"),x=(_a=(Le=(da=(Oe=(ya=(ca=Ea==null?void 0:Ea.split("*"))==null?void 0:ca[1])==null?void 0:ya.replace("{",Fa))==null?void 0:Oe.split(Fa))==null?void 0:da[0])==null?void 0:Le.split(":"))==null?void 0:_a.filter(Ke=>Ke!==""),g=(ma=(Fe=Ea==null?void 0:Ea.replace("{",Fa))==null?void 0:Fe.split(Fa))==null?void 0:ma[1],g=g==null?void 0:g.replaceAll("}",""),ye=ye==null?void 0:ye.slice(1,(ye==null?void 0:ye.length)-1),g=g==null?void 0:g.split(","),q="Select",(ce=ye==null?void 0:ye.split(","))==null||ce.forEach((Ke,Ce)=>{var be,Ee;y.push({prop:Ke,label:Ke,value:"",menuPath:N,groups:x,columns:(be=g==null?void 0:g[Ce])==null?void 0:be.split(":"),width:(Ee=ye==null?void 0:ye.split(","))==null?void 0:Ee.length,type:q})})}}),{groupName:r,formContents:y,contents:n,filter:s}},wt=l=>{var t,s;let n=[],r=l.slice(1,(l==null?void 0:l.length)-1);if((r==null?void 0:r[0])!=="[")(t=Na.analyzeSplitToContent(r,","))==null||t.forEach(u=>{(u==null?void 0:u[(u==null?void 0:u.length)-1])===","&&(u=u.slice(0,(u==null?void 0:u.length)-1)),n.push(u??"")});else{let u=[];(s=Na.analyzeSplitToContent(r,","))==null||s.forEach(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)),u.push(wt(k))}),n=u}return n},li=(l,n)=>{var W,C,M,ae,S,$,N,x,g,H,q,G,he,Be,xe,te,me,Z,ue,Ue,Ca,oe,D,ne,ve,se,_e,ra,ba,$a,le,Qe,Ie,ka,Re,we,ze,qe,Sa,el,P,j,Y,V,K,Te,ee,ke,pe,$e,Ve,ca,ya,Oe,da,Le,_a,Fe,ma,ce,ga,ye,Ea,Ye,Ke;let r,t=[],s=[],u=[],k=[],h=[],v=[],y="Input",c,E="",A="",L=[],_="";if(l!=null&&l.includes("@Pam")||l!=null&&l.includes("==")||l!=null&&l.includes("="))if(l!=null&&l.includes("@Pam")){let Ce=Na.analyzeSplitToContent(l,"=");if((Ce==null?void 0:Ce.length)>1){l=Ce==null?void 0:Ce[0],l=l==null?void 0:l.slice(0,(l==null?void 0:l.length)-1);let pa=Ce==null?void 0:Ce[(Ce==null?void 0:Ce.length)-1];(pa==null?void 0:pa[0])==="&"&&(pa=pa==null?void 0:pa.slice(1,pa==null?void 0:pa.length)),A=(C=(W=pa==null?void 0:pa.replace("(",Fa))==null?void 0:W.split(Fa))==null?void 0:C[0];let na=(ae=(M=pa==null?void 0:pa.replace(")",Fa))==null?void 0:M.split(Fa))==null?void 0:ae[0];na=($=(S=na==null?void 0:na.replace("(",Fa))==null?void 0:S.split(Fa))==null?void 0:$[1],(na==null?void 0:na[0])==="{"&&(na=na==null?void 0:na.slice(1,na==null?void 0:na.length)),(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)),L=na==null?void 0:na.split(",");let rl=(x=(N=pa==null?void 0:pa.replace(")",Fa))==null?void 0:N.split(Fa))==null?void 0:x[1];rl&&rl!==""&&(_=kt(rl))}r=(H=(g=l==null?void 0:l.replace("@Pam",Fa))==null?void 0:g.split(Fa))==null?void 0:H[0];let be=(G=(q=l==null?void 0:l.replace("@Pam",Fa))==null?void 0:q.split(Fa))==null?void 0:G[1];be=be==null?void 0:be.slice(1,(be==null?void 0:be.length)-1),be=(he=Na.analyzeSplitToContent(be,","))==null?void 0:he.map(pa=>(pa="@"+pa,pa));let Ee=be==null?void 0:be.find(pa=>pa==null?void 0:pa.includes("@Type"));Ee!=null&&Ee.includes("File")&&(y="Upload"),Ee!=null&&Ee.includes("Date")&&(y="Date"),Ee!=null&&Ee.includes("DateTime")&&(y="DateTime"),Ee!=null&&Ee.includes("Time")&&(y="Time"),c=be==null?void 0:be.find(pa=>pa==null?void 0:pa.includes("@IdentName")),c=c?(xe=(Be=c==null?void 0:c.replace("=",Fa))==null?void 0:Be.split(Fa))==null?void 0:xe[1]:r}else{if(r=(te=l==null?void 0:l.split("=="))==null?void 0:te[0],c=(me=l==null?void 0:l.split("=="))==null?void 0:me[0],l!=null&&l.includes("=")&&!(l!=null&&l.includes("=="))&&!((Ue=(ue=(Z=l==null?void 0:l.replace("=",Fa))==null?void 0:Z.split(Fa))==null?void 0:ue[1])!=null&&Ue.includes("||")))if(r=(Ca=l==null?void 0:l.split("="))==null?void 0:Ca[0],c=r,l!=null&&l.includes("(@")||l!=null&&l.includes("@")){if(l!=null&&l.includes("(@")){let be=(oe=l==null?void 0:l.split("(@"))==null?void 0:oe[1];be=be==null?void 0:be.slice(0,(be==null?void 0:be.length)-1),be=(ne=(D=be==null?void 0:be.replace("(",Fa))==null?void 0:D.split(Fa))==null?void 0:ne[1],be=be==null?void 0:be.slice(0,(be==null?void 0:be.length)-1),u==null||u.push(be),l=(ve=l==null?void 0:l.split("(@"))==null?void 0:ve[0]}else{let be=(se=l==null?void 0:l.split("@"))==null?void 0:se[1];be=be==null?void 0:be.slice(0,(be==null?void 0:be.length)-1),be=(ra=(_e=be==null?void 0:be.replace("(",Fa))==null?void 0:_e.split(Fa))==null?void 0:ra[1],be=be==null?void 0:be.slice(0,(be==null?void 0:be.length)-1),u==null||u.push(be),l=(ba=l==null?void 0:l.split("@"))==null?void 0:ba[0]}let Ce=(le=($a=l==null?void 0:l.split("="))==null?void 0:$a[1])==null?void 0:le.split("/");s.push(Ce)}else t=(Ie=Na.analyzeSplitToContent((Qe=l==null?void 0:l.split("="))==null?void 0:Qe[1],"/"))==null?void 0:Ie.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)),t=t==null?void 0:t.map(Ce=>({label:Ce==null?void 0:Ce.replaceAll("'",""),value:Ce==null?void 0:Ce.replaceAll("'","")}));else if((we=(Re=(ka=l==null?void 0:l.replace("=",Fa))==null?void 0:ka.split(Fa))==null?void 0:Re[1])!=null&&we.includes("||")){r=(ze=l==null?void 0:l.split("="))==null?void 0:ze[0],c=(qe=l==null?void 0:l.split("="))==null?void 0:qe[0];let Ce=[];(j=(P=(el=(Sa=l==null?void 0:l.replace("=",Fa))==null?void 0:Sa.split(Fa))==null?void 0:el[1])==null?void 0:P.split("||"))==null||j.forEach(be=>{var Ee,pa,na;s.push((pa=(Ee=be==null?void 0:be.split("@Filter"))==null?void 0:Ee[0])==null?void 0:pa.split("/")),Ce.push((na=be==null?void 0:be.split("@Filter"))==null?void 0:na[1])}),u=Ce==null?void 0:Ce.map(be=>(be=be==null?void 0:be.slice(1,(be==null?void 0:be.length)-1),be))}else{let Ce=l==null?void 0:l.split("=="),be=(Y=Ce==null?void 0:Ce.filter(Ee=>(Ee==null?void 0:Ee[0])==="$"))==null?void 0:Y[0];if(!(be!=null&&be.includes("&"))){let Ee=(V=be==null?void 0:be.replace("*",Fa))==null?void 0:V.split(Fa),pa=(Ee==null?void 0:Ee[0])===""?n==null?void 0:n.value:Ee==null?void 0:Ee[0];pa=pa==null?void 0:pa.replaceAll("[Any]",""),(pa==null?void 0:pa[0])==="$"&&(pa=(K=pa==null?void 0:pa.slice(1,pa==null?void 0:pa.length))==null?void 0:K.replaceAll(":","/")),k=pa==null?void 0:pa.split("/");let na=(ee=(Te=Ee==null?void 0:Ee[1])==null?void 0:Te.replace("{",Fa))==null?void 0:ee.split(Fa),rl=na==null?void 0:na[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)),h=rl==null?void 0:rl.split(":"),v=(Ve=($e=(pe=(ke=na==null?void 0:na[1])==null?void 0:ke.replace("}",Fa))==null?void 0:pe.split(Fa))==null?void 0:$e[0])==null?void 0:Ve.split(":");let Il=(Oe=(ya=(ca=na==null?void 0:na[(na==null?void 0:na.length)-1])==null?void 0:ca.replace("}",Fa))==null?void 0:ya.split(Fa))==null?void 0:Oe[1];Il&&Il!==""&&(E=kt(Il))}if(Ce!=null&&Ce.some(Ee=>(Ee==null?void 0:Ee[0])==="&")){let Ee=(da=Ce==null?void 0:Ce.filter(rl=>(rl==null?void 0:rl[0])==="&"))==null?void 0:da[0];(Ee==null?void 0:Ee[0])==="&"&&(Ee=Ee==null?void 0:Ee.slice(1,Ee==null?void 0:Ee.length)),A=(_a=(Le=Ee==null?void 0:Ee.replace("(",Fa))==null?void 0:Le.split(Fa))==null?void 0:_a[0];let pa=(ma=(Fe=Ee==null?void 0:Ee.replace(")",Fa))==null?void 0:Fe.split(Fa))==null?void 0:ma[0];pa=(ga=(ce=pa==null?void 0:pa.replace("(",Fa))==null?void 0:ce.split(Fa))==null?void 0:ga[1],(pa==null?void 0:pa[0])==="{"&&(pa=pa==null?void 0:pa.slice(1,pa==null?void 0:pa.length)),(pa==null?void 0:pa[(pa==null?void 0:pa.length)-1])==="}"&&(pa=pa==null?void 0:pa.slice(0,(pa==null?void 0:pa.length)-1)),L=pa==null?void 0:pa.split(",");let na=(Ea=(ye=Ee==null?void 0:Ee.replace(")",Fa))==null?void 0:ye.split(Fa))==null?void 0:Ea[1];na&&na!==""&&(_=kt(na))}}y="Select"}else r=l,c=l;return r!=null&&r.includes("@Pam")&&(r=(Ke=(Ye=l==null?void 0:l.replace("@Pam",Fa))==null?void 0:Ye.split(Fa))==null?void 0:Ke[0],c=r),{label:r,prop:c,options:t,allContents:s,filterContents:u,menus:k,groups:h,words:v,align:"center",formType:y,filter:E,functionName:A,functionRelatedWords:L,calculatorFilter:_}},ko=(l,n)=>{var t,s,u,k,h,v,y,c,E,A,L,_,W,C,M,ae,S,$,N,x,g,H,q,G,he,Be,xe,te,me;let r=[];if((l==null?void 0:l[0])==="{"&&(l==null?void 0:l[(l==null?void 0:l.length)-1])==="}"&&!((k=(u=(s=(t=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1))==null?void 0:t.replace(":",Fa))==null?void 0:s.split(Fa))==null?void 0:u[0])!=null&&k.includes(","))){let Z=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1),ue=(h=Z==null?void 0:Z.replace(":",Fa))==null?void 0:h.split(Fa);if(((v=Na.analyzeSplitToContent(ue==null?void 0:ue[1],"="))==null?void 0:v.length)===1){let Ue=ue==null?void 0:ue[0],Ca=[];(E=Na.analyzeSplitToContent((c=ue==null?void 0:ue[1])==null?void 0:c.slice(1,((y=ue==null?void 0:ue[1])==null?void 0:y.length)-1),","))==null||E.forEach(oe=>{var D,ne;((D=Na.analyzeSplitToContent(oe,"="))==null?void 0:D.length)>1?((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)),Ca=[...Ca,...ko(oe,n)]):((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)),Ca.push((ne=ko(oe,n))==null?void 0:ne[0]))}),r==null||r.push({label:Ue,prop:Ue,children:Ca,align:"center"})}else{let Ue=[];if(((A=Na.analyzeSplitToContent(Z,"="))==null?void 0:A.length)>=2){let oe=(L=Na.analyzeSplitToContent(Z,"="))==null?void 0:L[1],D=(_=Na.analyzeSplitToContent(oe,"/"))==null?void 0:_.map(ne=>((ne==null?void 0:ne[(ne==null?void 0:ne.length)-1])==="/"&&(ne=ne==null?void 0:ne.slice(0,(ne==null?void 0:ne.length)-1)),ne));Ue=D==null?void 0:D.map(ne=>(ne=wt(ne),ne))}let Ca=($=(S=(ae=(M=(C=(W=Z==null?void 0:Z.replace("{",Fa))==null?void 0:W.split(Fa))==null?void 0:C[1])==null?void 0:M.replace("}",Fa))==null?void 0:ae.split(Fa))==null?void 0:S[0])==null?void 0:$.split(",");Ca==null||Ca.forEach((oe,D)=>{(Ue==null?void 0:Ue.length)>0&&D===0?r==null||r.push({label:oe,prop:oe,align:"center",formType:"Select",relatedContents:Ue==null?void 0:Ue.map(ne=>{let ve={};return Ca==null||Ca.forEach((se,_e)=>{ve[se]=ne==null?void 0:ne[_e]}),ve}),options:Ue==null?void 0:Ue.map(ne=>({label:ne==null?void 0:ne[0],value:ne==null?void 0:ne[0]})),mainKey:!0}):r==null||r.push({label:oe,prop:oe,align:"center"})})}}else if((l==null?void 0:l[0])==="{")if(((N=Na.analyzeSplitToContent(l,"="))==null?void 0:N.length)===2&&((g=(x=Na.analyzeSplitToContent(l,"="))==null?void 0:x[1])==null?void 0:g[0])==="["){let Z=[];if(((H=Na.analyzeSplitToContent(l,"="))==null?void 0:H.length)>=2){let Ue=(q=Na.analyzeSplitToContent(l,"="))==null?void 0:q[1],Ca=(G=Na.analyzeSplitToContent(Ue,"/"))==null?void 0:G.map(oe=>((oe==null?void 0:oe[(oe==null?void 0:oe.length)-1])==="/"&&(oe=oe==null?void 0:oe.slice(0,(oe==null?void 0:oe.length)-1)),oe));Z=Ca==null?void 0:Ca.map(oe=>(oe=wt(oe),oe))}let ue=(Be=(he=l==null?void 0:l.replace("}",Fa))==null?void 0:he.split(Fa))==null?void 0:Be[0];ue=(xe=ue==null?void 0:ue.slice(1,ue==null?void 0:ue.length))==null?void 0:xe.split(","),ue==null||ue.forEach((Ue,Ca)=>{(Z==null?void 0:Z.length)>0&&Ca===0?r==null||r.push({label:Ue,prop:Ue,align:"center",formType:"Select",relatedContents:Z==null?void 0:Z.map(oe=>{let D={};return ue==null||ue.forEach((ne,ve)=>{D[ne]=oe==null?void 0:oe[ve]}),D}),options:Z==null?void 0:Z.map(oe=>({label:oe==null?void 0:oe[0],value:oe==null?void 0:oe[0]})),mainKey:!0}):r==null||r.push({label:Ue,prop:Ue,align:"center"})})}else(te=Na.analyzeSplitToContent(l,","))==null||te.forEach(Z=>{var ue,Ue,Ca,oe,D,ne,ve,se,_e,ra,ba,$a,le,Qe,Ie,ka,Re,we,ze,qe,Sa,el,P,j,Y,V,K,Te,ee,ke,pe,$e,Ve,ca,ya,Oe,da,Le,_a,Fe,ma;if((Z==null?void 0:Z[(Z==null?void 0:Z.length)-1])===","&&(Z=Z==null?void 0:Z.slice(0,(Z==null?void 0:Z.length)-1)),(Z==null?void 0:Z[0])==="{"){let ce=Na.analyzeSplitToContent(Z,"="),ga=ce==null?void 0:ce[(ce==null?void 0:ce.length)-1],ye=[],Ea=[],Ye=[],Ke=[],Ce=[],be=(ue=ga==null?void 0:ga.replace("*",Fa))==null?void 0:ue.split(Fa),Ee=(be==null?void 0:be[0])===""?n==null?void 0:n.value:be==null?void 0:be[0];if(Ee=Ee==null?void 0:Ee.replaceAll("[Any]",""),(Ee==null?void 0:Ee[(Ee==null?void 0:Ee.length)-1])===":"&&(Ee=Ee!=null&&Ee.includes("(@")?((Ue=Ee==null?void 0:Ee.split("(@"))==null?void 0:Ue[0])+":":((Ca=Ee==null?void 0:Ee.split("@"))==null?void 0:Ca[0])+":"),(Ee==null?void 0:Ee[0])==="$"&&(Ee=(oe=Ee==null?void 0:Ee.slice(1,Ee==null?void 0:Ee.length))==null?void 0:oe.replaceAll(":","/")),Ee!=null&&Ee.includes("$")){let al=(D=Ee==null?void 0:Ee.split("$"))==null?void 0:D[0];al=(ne=al==null?void 0:al.split("/"))==null?void 0:ne[0],Ee=al+"/"+((ve=Ee==null?void 0:Ee.split("$"))==null?void 0:ve[1])+"/"}(Ee==null?void 0:Ee[(Ee==null?void 0:Ee.length)-1])==="/"&&(Ee==null?void 0:Ee[(Ee==null?void 0:Ee.length)-2])==="/"&&(Ee=Ee==null?void 0:Ee.slice(0,(Ee==null?void 0:Ee.length)-1)),ye=Ee==null?void 0:Ee.split("/");let pa=(_e=(se=be==null?void 0:be[1])==null?void 0:se.replace("{",Fa))==null?void 0:_e.split(Fa);if(($a=(ba=(ra=be==null?void 0:be[1])==null?void 0:ra.split("(@"))==null?void 0:ba[0])!=null&&$a.includes("&&")||(Ie=(Qe=(le=be==null?void 0:be[1])==null?void 0:le.split("@"))==null?void 0:Qe[0])!=null&&Ie.includes("&&")){let al=(ka=be==null?void 0:be[1])!=null&&ka.includes("(@")?(ze=(we=(Re=be==null?void 0:be[1])==null?void 0:Re.split("(@"))==null?void 0:we[0])==null?void 0:ze.split("&&"):(el=(Sa=(qe=be==null?void 0:be[1])==null?void 0:qe.split("@"))==null?void 0:Sa[0])==null?void 0:el.split("&&");Ke=al==null?void 0:al.map(oa=>{var Ta,Va;return(oa==null?void 0:oa[0])==="*"&&(oa=oa==null?void 0:oa.slice(1,oa==null?void 0:oa.length)),oa=(Va=(Ta=oa==null?void 0:oa.replace("{",Fa))==null?void 0:Ta.split(Fa))==null?void 0:Va[0],(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=oa==null?void 0:oa.split(":"),oa});let Ha=[];al==null||al.forEach((oa,Ta)=>{var Va,ll;(oa==null?void 0:oa[0])==="*"&&(oa=oa==null?void 0:oa.slice(1,oa==null?void 0:oa.length)),oa=(ll=(Va=oa==null?void 0:oa.replace("{",Fa))==null?void 0:Va.split(Fa))==null?void 0:ll[1],(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=oa==null?void 0:oa.split(","),Ha.push(Ta===0?(oa==null?void 0:oa.length)-1:oa==null?void 0:oa.length),Ce=[...Ce,...oa]}),Ha=(P=Na.prefixSum(Ha))==null?void 0:P.map(oa=>oa==null?void 0:oa.total),Ke=Ke==null?void 0:Ke.map((oa,Ta)=>({number:Ha==null?void 0:Ha[Ta],contents:oa}))}let na=pa==null?void 0:pa[0];(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)),Ea=na==null?void 0:na.split(":"),Ye=(K=(V=(Y=(j=pa==null?void 0:pa[1])==null?void 0:j.replace("}",Fa))==null?void 0:Y.split(Fa))==null?void 0:V[0])==null?void 0:K.split(",");let rl=(ee=ce==null?void 0:ce[0])==null?void 0:ee.slice(1,((Te=ce==null?void 0:ce[0])==null?void 0:Te.length)-2),Il="",Fl="";if((ke=ce==null?void 0:ce[(ce==null?void 0:ce.length)-1])!=null&&ke.includes("(@")?(Fl=(Ve=($e=(pe=ce==null?void 0:ce[(ce==null?void 0:ce.length)-1])==null?void 0:pe.replace("(@",Fa))==null?void 0:$e.split(Fa))==null?void 0:Ve[1],Fl="(@"+Fl):(ca=ce==null?void 0:ce[(ce==null?void 0:ce.length)-1])!=null&&ca.includes("@")&&(Fl=(da=(Oe=(ya=ce==null?void 0:ce[(ce==null?void 0:ce.length)-1])==null?void 0:ya.replace("@",Fa))==null?void 0:Oe.split(Fa))==null?void 0:da[1],Fl="@"+Fl),((Le=Na.analyzeSplitToContent(Fl,"&"))==null?void 0:Le.length)>1){let al=(Fe=(_a=Na.analyzeSplitToContent(Fl,"}"))==null?void 0:_a.map(Ha=>{var oa;return Ha!=null&&Ha.includes("@")||(Ha=""),Ha!=null&&Ha.includes("@")&&(Ha=(oa=Na.analyzeSplitToContent(Ha,":"))==null?void 0:oa[0],(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)),(Ha==null?void 0:Ha[0])==="("&&(Ha=Ha==null?void 0:Ha.slice(1,(Ha==null?void 0:Ha.length)-1))),Ha}))==null?void 0:Fe.filter(Ha=>Ha!=="");Fl=(Fl==null?void 0:Fl.length)===1?al:"("+(al==null?void 0:al.join(","))+")"}Fl&&Fl!==""&&(Il=kt(Fl)),(ma=rl==null?void 0:rl.split(","))==null||ma.forEach((al,Ha)=>{var oa,Ta,Va;r.push({label:al,prop:al,align:"center",menus:ye,groups:(Ke==null?void 0:Ke.length)===0?Ea:(oa=Ke==null?void 0:Ke.find(ll=>(ll==null?void 0:ll.number)>=Ha))==null?void 0:oa.contents,words:(Ce==null?void 0:Ce.length)===0?(Ta=Ye==null?void 0:Ye[Ha])==null?void 0:Ta.split(":"):(Va=Ce==null?void 0:Ce[Ha])==null?void 0:Va.split(":"),formType:(ye==null?void 0:ye.length)>0?"Select":"Input",mainKey:Ha===0,filter:Il,isMainPath:(Ke==null?void 0:Ke.findIndex(ll=>(ll==null?void 0:ll.number)>=Ha))===0})})}else r.push({label:Z,prop:Z,align:"center"})});else{let Z=(me=Na.analyzeSplitToContent(l,","))==null?void 0:me.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));Z==null||Z.forEach(ue=>{r.push(li(ue,n))})}return r},_d=(l,n)=>{var k,h,v,y,c;let r=l;if(!l)return;let t="";((k=Na.analyzeSplitToContent(l,"}"))==null?void 0:k.length)>1&&(r=(h=Na.analyzeSplitToContent(l,"}"))==null?void 0:h[0],t=(v=Na.analyzeSplitToContent(l,"}"))==null?void 0:v[1]),(l==null?void 0:l[0])==="{"&&(l==null?void 0:l[(l==null?void 0:l.length)-1])==="}"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1));let s=[],u=[];return s.push({label:"排序",prop:"sort"}),(y=Na.analyzeSplitToContent(r,","))==null||y.forEach(E=>{var A;(E==null?void 0:E[(E==null?void 0:E.length)-1])===","&&(E=E==null?void 0:E.slice(0,(E==null?void 0:E.length)-1)),(E==null?void 0:E[0])==="{"?(A=ko(E,n))==null||A.forEach(L=>{s.push(L)}):s.push(li(E,n))}),t!==""&&((t==null?void 0:t[0])=="{"&&(t=t==null?void 0:t.slice(1,(t==null?void 0:t.length)-1)),(c=Na.analyzeSplitToContent(t,","))==null||c.forEach(E=>{var A;(E==null?void 0:E[(E==null?void 0:E.length)-1])===","&&(E=E==null?void 0:E.slice(0,(E==null?void 0:E.length)-1)),(E==null?void 0:E[0])==="{"?(A=ko(E,n))==null||A.forEach(L=>{u.push(L)}):u.push(li(E,n))})),{columns:s,secondColumns:u}},ri=l=>{var n,r,t;if(l!=null&&l.includes("@Filter")||l!=null&&l.includes("@Condition"))return l;{let s=(r=(n=l==null?void 0:l.replace("(",Fa))==null?void 0:n.split(Fa))==null?void 0:r[1];return s=s==null?void 0:s.slice(0,(s==null?void 0:s.length)-1),s=(t=Na.analyzeSplitToContent(s,","))==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)),s=s==null?void 0:s.join(","),l!=null&&l.includes("@Quote")&&(s!=null&&s.includes("@Type")||(s=s===""?s+"@Type=Manual":s+",@Type=Manual"),s!=null&&s.includes("@SonSync")||(s=s===""?s+"@SonSync=No":s+",@SonSync=No"),s!=null&&s.includes("@FatherSync")||(s=s===""?s+"@FatherSync=Yes":s+",@FatherSync=Yes")),s}},Wi=l=>{let n=l==null?void 0:l.map(r=>{var t,s;return{menus:r==null?void 0:r.menus,content:((t=r==null?void 0:r.menus)==null?void 0:t.join("/"))+Fa+((s=r==null?void 0:r.groups)==null?void 0:s.join("/"))}});return n=n==null?void 0:n.filter(r=>{var t;return(r==null?void 0:r.menus)&&((t=r==null?void 0:r.menus)==null?void 0:t.length)>0}),n=n==null?void 0:n.map(r=>r==null?void 0:r.content),n=[...new Set(n)],n=n==null?void 0:n.map(r=>{var t,s;return{menus:(t=r==null?void 0:r.split(Fa))==null?void 0:t[0],groups:((s=r==null?void 0:r.split(Fa))==null?void 0:s[1])??[]}}),n},wd=(l,n,r="")=>{var M,ae,S,$,N,x,g,H,q,G,he,Be,xe,te,me,Z,ue,Ue,Ca,oe,D,ne,ve,se,_e,ra,ba,$a,le,Qe,Ie,ka,Re,we,ze,qe,Sa,el,P,j,Y;let t=[];if(((M=l==null?void 0:l[0])==null?void 0:M[0])!=="*"&&((ae=l==null?void 0:l[0])==null?void 0:ae[0])!=="$")return;let s=Na.analyzeSplitToContent(l==null?void 0:l[0],":"),u=s==null?void 0:s.filter(V=>!((V==null?void 0:V[0])!=="{"&&(V==null?void 0:V[0])!=="["));t=(S=s==null?void 0:s.filter(V=>(V==null?void 0:V[0])!=="{"&&(V==null?void 0:V[0])!=="["))==null?void 0:S.join("");let k="",h="";if((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!=null&&t.includes("(@")&&(t==null?void 0:t[0])==="*"&&(k="(@"+(($=t==null?void 0:t.split("(@"))==null?void 0:$[1]),t=(N=t==null?void 0:t.split("(@"))==null?void 0:N[0]),t!=null&&t.includes("@")&&(t==null?void 0:t[0])==="*"&&(k="@"+((g=(x=t==null?void 0:t.replace("@",Fa))==null?void 0:x.split(Fa))==null?void 0:g[1]),t=(q=(H=t==null?void 0:t.replace("@",Fa))==null?void 0:H.split(Fa))==null?void 0:q[0]),(t==null?void 0:t[0])==="*"?(t=t==null?void 0:t.slice(1,t==null?void 0:t.length),t=t==null?void 0:t.split(":")):(h=z.cloneDeep(t)+":",t=[]),h=h+((u==null?void 0:u[0])??""),(h==null?void 0:h[(h==null?void 0:h.length)-1])===":"&&(h=h==null?void 0:h.slice(0,(h==null?void 0:h.length)-1)),k!==""&&h!=="")if((h==null?void 0:h[(h==null?void 0:h.length)-1])===")")if(h!=null&&h.includes("(@")){let V=(G=h==null?void 0:h.split("(@"))==null?void 0:G[0],K=(he=h==null?void 0:h.split("(@"))==null?void 0:he[1];K="(@"+(K==null?void 0:K.slice(0,(K==null?void 0:K.length)-1))+k,h=V+K}else{let V=(xe=(Be=h==null?void 0:h.replace("@",Fa))==null?void 0:Be.split(Fa))==null?void 0:xe[0],K=(me=(te=h==null?void 0:h.replace("@",Fa))==null?void 0:te.split(Fa))==null?void 0:me[1];K="(@"+K+k,h=V+K}else h=h+k;let v=u==null?void 0:u[1];(h==null?void 0:h[0])==="["&&(v=z.cloneDeep(h)+(v??""),h="");let y=v?wt(v):[];!(y!=null&&y.every(V=>Array.isArray(V)))&&(y==null?void 0:y.length)>0&&(y=[y]);let c=(Z=Na.analyzeSplitToContent(h,"@"))!=null&&Z[1]?"@"+((ue=Na.analyzeSplitToContent(h,"@"))==null?void 0:ue[1]):"";if(h=(Ue=Na.analyzeSplitToContent(h,"@"))==null?void 0:Ue[0],(h==null?void 0:h[0])==="$"&&(c=z.cloneDeep(h)+(c??""),h=""),r!==""&&(k!==""?c=(r==null?void 0:r[(r==null?void 0:r.length)-1])!==")"?r+k:(r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1))+","+k:c=r),c!==""){(c==null?void 0:c[0])==="$"&&(c=c==null?void 0:c.slice(1,c==null?void 0:c.length)),(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));let V="";if(c!=null&&c.includes("(@")){V=(oe=(Ca=c==null?void 0:c.replace("(@",Fa))==null?void 0:Ca.split(Fa))==null?void 0:oe[0];let K=(ne=(D=c==null?void 0:c.replace("(@",Fa))==null?void 0:D.split(Fa))==null?void 0:ne[1];K="@"+(K==null?void 0:K.slice(0,(K==null?void 0:K.length)-1));let Te=(ve=Na.analyzeSplitToContent(K,","))==null?void 0:ve.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?void 0:ee[(ee==null?void 0:ee.length)-1])!==")"&&(ee=ee+")"),ri(ee)));c=V+"("+(Te==null?void 0:Te.join(","))+")"}else{V=(_e=(se=c==null?void 0:c.replace("@",Fa))==null?void 0:se.split(Fa))==null?void 0:_e[0];let K=(ba=(ra=c==null?void 0:c.replace("@",Fa))==null?void 0:ra.split(Fa))==null?void 0:ba[1];if(K){K="@"+K;let Te=($a=Na.analyzeSplitToContent(K,","))==null?void 0:$a.map(ee=>((ee==null?void 0:ee[(ee==null?void 0:ee.length)-1])!==")"&&(ee=ee+")"),ri(ee)));c=V+"("+(Te==null?void 0:Te.join(","))+")"}else c=V}}(h==null?void 0:h[(h==null?void 0:h.length)-1])==="@"&&(h=h==null?void 0:h.slice(0,(h==null?void 0:h.length)-1));let E=_d(h,n),A=h===""?[]:(E==null?void 0:E.columns)??[],L=sa.getColumnChild(A),_=L;_=_==null?void 0:_.filter(V=>{var K,Te;return(V==null?void 0:V.filter)&&(V==null?void 0:V.filter)!==""&&(((K=V==null?void 0:V.filter)==null?void 0:K.includes("@SonSync"))||((Te=V==null?void 0:V.filter)==null?void 0:Te.includes("@FatherSync")))});let W=_==null?void 0:_.filter(V=>{var K,Te,ee;return((K=V==null?void 0:V.filter)==null?void 0:K.includes("@SonSync"))&&((ee=(Te=V==null?void 0:V.filter)==null?void 0:Te.split(","))==null?void 0:ee.find(ke=>(ke==null?void 0:ke.includes("@SonSync"))&&(ke==null?void 0:ke.includes("Yes"))))}),C=_==null?void 0:_.filter(V=>{var K,Te,ee;return((K=V==null?void 0:V.filter)==null?void 0:K.includes("@FatherSync"))&&((ee=(Te=V==null?void 0:V.filter)==null?void 0:Te.split(","))==null?void 0:ee.find(ke=>(ke==null?void 0:ke.includes("@FatherSync"))&&(ke==null?void 0:ke.includes("Yes"))))});if(L=L==null?void 0:L.map(V=>{var K,Te;return{menus:V==null?void 0:V.menus,content:((K=V==null?void 0:V.menus)==null?void 0:K.join("/"))+Fa+((Te=V==null?void 0:V.groups)==null?void 0:Te.join("/"))}}),C=Wi(C),W=Wi(W),L=L==null?void 0:L.filter(V=>{var K;return(V==null?void 0:V.menus)&&((K=V==null?void 0:V.menus)==null?void 0:K.length)>0}),L=L==null?void 0:L.map(V=>V==null?void 0:V.content),L=[...new Set(L)],L=L==null?void 0:L.map(V=>{var K,Te;return{menus:(K=V==null?void 0:V.split(Fa))==null?void 0:K[0],groups:((Te=V==null?void 0:V.split(Fa))==null?void 0:Te[1])??[]}}),A!=null&&A.some(V=>{var K;return Array.isArray(V==null?void 0:V.children)&&((K=V==null?void 0:V.children)==null?void 0:K.length)>0})&&(A=[A]),(y==null?void 0:y.length)>0&&(Array.isArray(y==null?void 0:y[0])&&((le=y==null?void 0:y[0])!=null&&le.every(V=>Array.isArray(V)))?y=y==null?void 0:y.map((V,K)=>(V=V.map((Te,ee)=>(Te.unshift((ee+1).toString()),Te)),V)):y=y==null?void 0:y.map((V,K)=>(V.unshift((K+1).toString()),V))),E!=null&&E.secondColumns&&((Qe=E==null?void 0:E.secondColumns)==null?void 0:Qe.length)>0&&((y==null?void 0:y.length)>0?y=y==null?void 0:y.map((V,K)=>{var Te,ee;return Array.isArray(V==null?void 0:V[0])?V=V==null?void 0:V.map((ke,pe)=>{var $e,Ve;return ke.unshift((Ve=($e=E==null?void 0:E.secondColumns)==null?void 0:$e[pe])==null?void 0:Ve.prop),ke}):V.unshift((ee=(Te=E==null?void 0:E.secondColumns)==null?void 0:Te[K])==null?void 0:ee.prop),V}):y=(Ie=E==null?void 0:E.secondColumns)==null?void 0:Ie.map((V,K)=>(V=[V==null?void 0:V.label],V.push(K),V)),A.unshift({label:"",prop:"disabled",sortable:!1})),(A==null?void 0:A.length)>0){let V=z.cloneDeep(A);Array.isArray(V==null?void 0:V[0])&&(V=V==null?void 0:V[0]);let K=sa.getColumnChild(V);K=K==null?void 0:K.map(Te=>Te==null?void 0:Te.filter),K=K==null?void 0:K.filter(Te=>Te&&Te!==""),K=[...new Set(K)],(K==null?void 0:K.length)>0&&(c=Fa+(c==null?void 0:c.slice(1,(c==null?void 0:c.length)-1))+(c!=null&&c.slice(1,(c==null?void 0:c.length)-1)?",":"")+((ka=z.cloneDeep(K))==null?void 0:ka.join(";")))}if((c==null?void 0:c[0])!=="("&&(c!=null&&c.includes("(@"))){let V=(we=(Re=c==null?void 0:c.replace("(",Fa))==null?void 0:Re.split(Fa))==null?void 0:we[0],K=[{menus:(qe=(ze=V==null?void 0:V.split("*"))==null?void 0:ze[0])==null?void 0:qe.replaceAll(":","/"),groups:(Sa=V==null?void 0:V.split("*"))==null?void 0:Sa[1]}],Te=(P=(el=c==null?void 0:c.replace("(",Fa))==null?void 0:el.split(Fa))==null?void 0:P[1];(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=Na.analyzeSplitToContent(Te,","),(j=Te==null?void 0:Te.find(ee=>ee==null?void 0:ee.includes("@FatherSync")))!=null&&j.includes("Yes")&&(C=[...C,...K]),(Y=Te==null?void 0:Te.find(ee=>ee==null?void 0:ee.includes("@SonSync")))!=null&&Y.includes("Yes")&&(W=[...W,...K])}return{groupName:t,tableColumns:A,tableFilter:c,tableContents:y,columns:(E==null?void 0:E.secondColumns)??[],relatedQuotes:L,fatherSyncContents:C,sonSyncContents:W}},js=(l,n)=>(l=l==null?void 0:l.map((r,t)=>{var s,u,k,h;if(Array.isArray(r))r=r==null?void 0:r.map(v=>{var y,c,E,A;return v!=null&&v.isMainPath||(((y=v==null?void 0:v.children)==null?void 0:y.length)>0?v.children=js(v.children,n):((c=v==null?void 0:v.menus)==null?void 0:c.length)>0&&!((E=r==null?void 0:r[0])!=null&&E.isMainPath)&&(v.menus=(A=v.menus)==null?void 0:A.map((L,_)=>{var W,C;return((W=v.menus)==null?void 0:W.length)-1===_&&L===""&&(n==null?void 0:n.parentContent)+"/"!==((C=v.menus)==null?void 0:C.join("/"))&&(L=n==null?void 0:n.value),v}),v.bindMenus=v.menus)),v});else{if(t===0&&((s=r.menus)==null?void 0:s.length)>0&&(r.mainKey=!0),r!=null&&r.isMainPath)return r;((u=r.menus)==null?void 0:u.length)>0&&!((k=l==null?void 0:l[0])!=null&&k.isMainPath)&&(r.menus=(h=r.menus)==null?void 0:h.map((v,y)=>{var c,E;return((c=r.menus)==null?void 0:c.length)-1===y&&v===""&&(n==null?void 0:n.parentContent)+"/"!==((E=r.menus)==null?void 0:E.join("/"))&&(v=n==null?void 0:n.value),v}),r.bindMenus=r.menus)}return r}),l),Cd=(l,n)=>(l=l==null?void 0:l.map(r=>((r==null?void 0:r.key)==="header"&&(r.contents=js(r.contents,n)),r)),l),ni=(l,n)=>{let r=l;return Array.isArray(r==null?void 0:r[0])?r=r==null?void 0:r.map(t=>(t=ni(t,n),t)):r=r==null?void 0:r.map(t=>{var s,u;return t!=null&&t.children&&((s=t==null?void 0:t.children)==null?void 0:s.length)>0?t.children=ni(t==null?void 0:t.children,n):t!=null&&t.words&&((u=t==null?void 0:t.words)==null?void 0:u.length)>0&&(n!=null&&n.find(k=>{var h,v,y,c;return((c=(h=t==null?void 0:t.prop)==null?void 0:h.split("."))==null?void 0:c[((y=(v=t==null?void 0:t.prop)==null?void 0:v.split("."))==null?void 0:y.length)-1])===k}))&&(t.mainKey=!0),t}),r};let ar="$R";const Ed=z.useUnit(z.pinia),{selectTitle:cn}=z.storeToRefs(Ed),un=[{key:"@MaxRow",value:"onNumSlice",order:1},{key:"@Type",value:"onRandomContents",order:2},{key:"@Filter",value:"onConditionContents",order:4},{key:"@FatherSync",value:"onFatherPaceContents",order:1},{key:"@SonSync",value:"onPaceContents",order:1},{key:"@MainPam",value:"onMainTagContents",order:3},{key:"@TopButton",value:"onButtonContents",order:1},{key:"@ColumnButton",value:"onPamButtonContents",order:1},{key:"@RowButton",value:"onRowButtonContents",order:1},{key:"@BottomButton",value:"onBottomButtonContents",order:1},{key:"@Related",value:"onRelated",order:1},{key:"@RowNum",value:"onRowNum",order:1},{key:"@FixRow",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}];var Qn=(l=>(l[l.ORDINARY=1]="ORDINARY",l[l.BLOCK=2]="BLOCK",l[l.TEXT=3]="TEXT",l))(Qn||{});const Sd=l=>{var r;return(l==null?void 0:l.filter.toUpperCase())==="ALL"||(l==null?void 0:l.filter.toUpperCase())==="NONE"?l==null?void 0:l.contents:(r=l==null?void 0:l.contents)==null?void 0:r.map(t=>{var s;return(t==null?void 0:t.key)==="tableContents"&&(t.contents=(s=t.contents)==null?void 0:s.slice(0,parseInt(l==null?void 0:l.filter))),t})},Dd=async l=>{var n,r,t,s,u,k,h,v,y,c,E,A,L,_,W,C,M,ae,S,$,N,x,g,H,q,G,he,Be,xe,te;if((l==null?void 0:l.filter)==="Random")return(n=l==null?void 0:l.contents)==null?void 0:n.map(Z=>((Z==null?void 0:Z.key)==="tableContents"&&(Z.contents=Na.shuffle(Z.contents)),Z));if((l==null?void 0:l.filter)==="Ordin"&&(l==null?void 0:l.contents).push({key:"enableWrap",contents:1}),(l==null?void 0:l.filter)==="Block"&&(l==null?void 0:l.contents).push({key:"enableWrap",contents:2}),(l==null?void 0:l.filter)==="Auto"){let me=(t=(r=l==null?void 0:l.contents)==null?void 0:r.find(se=>(se==null?void 0:se.key)==="header"))==null?void 0:t.contents;Array.isArray(me==null?void 0:me[0])&&(me=me==null?void 0:me[0]),me=sa.getColumnChild(me);let Z=me==null?void 0:me.filter(se=>(se==null?void 0:se.filter)&&(se==null?void 0:se.filter)!==""),ue=new Map,Ue=[];Z==null||Z.forEach(se=>{var _e,ra;ue.get((_e=se==null?void 0:se.menus)==null?void 0:_e.join("/"))||(ue.set((ra=se==null?void 0:se.menus)==null?void 0:ra.join("/"),se),Ue.push(se))});let Ca=(u=(s=cn==null?void 0:cn.value)==null?void 0:s.find(se=>(se==null?void 0:se.condition)==="child"))==null?void 0:u.value,oe=Ue==null?void 0:Ue.map(se=>{var _e,ra,ba;return se=(_e=se==null?void 0:se.menus)==null?void 0:_e.join("/"),(se==null?void 0:se[(se==null?void 0:se.length)-1])==="/"&&((ba=(ra=cn==null?void 0:cn.value)==null?void 0:ra.find($a=>($a==null?void 0:$a.condition)==="child"))==null?void 0:ba.parentContent)+"/"!==se?se=se+Ca:(se==null?void 0:se[(se==null?void 0:se.length)-1])==="/"&&(se=se==null?void 0:se.slice(0,(se==null?void 0:se.length)-1)),se}),D=Ue==null?void 0:Ue.map(se=>se==null?void 0:se.groups),ne=oe==null?void 0:oe.map(async se=>{let _e=await Hr(se,!1);return{path:se,contents:_e}});ne=await Promise.all(ne);let ve=ne==null?void 0:ne.map((se,_e)=>{var ba,$a,le,Qe,Ie,ka,Re;let ra=(ba=se==null?void 0:se.contents)==null?void 0:ba.filter(we=>{var ze,qe;return(we==null?void 0:we.name)===((qe=D==null?void 0:D[_e])==null?void 0:qe[((ze=D==null?void 0:D[_e])==null?void 0:ze.length)-1])});return ra=(Qe=(le=($a=ra==null?void 0:ra[0])==null?void 0:$a.compData)==null?void 0:le.find(we=>(we==null?void 0:we.key)==="tableContents"))==null?void 0:Qe.contents,(se==null?void 0:se.path)===((ka=(Ie=cn==null?void 0:cn.value)==null?void 0:Ie.find(we=>(we==null?void 0:we.condition)==="child"))==null?void 0:ka.parentContent)&&(ra=((Re=ra==null?void 0:ra.map(we=>{for(let ze in we)if(we[ze]===Ca)return we}))==null?void 0:Re.filter(we=>we))??[]),ra??[]});if(ve=ve==null?void 0:ve.map(se=>(se=se==null?void 0:se.map(_e=>{var ba;let ra={};for(let $a in _e)if(Z!=null&&Z.find(le=>{var Qe,Ie;return((Ie=(Qe=le==null?void 0:le.words)==null?void 0:Qe[0])==null?void 0:Ie.replaceAll("'",""))===$a})){let le=(ba=Z==null?void 0:Z.find(Qe=>{var Ie,ka;return((ka=(Ie=Qe==null?void 0:Qe.words)==null?void 0:Ie[0])==null?void 0:ka.replaceAll("'",""))===$a}))==null?void 0:ba.prop;ra[le]=_e==null?void 0:_e[$a]}return ra}),se)),ve=Na.cartesianProduct(ve),Array.isArray(ve==null?void 0:ve[0])&&(ve=ve==null?void 0:ve[0]),(ve==null?void 0:ve.length)>0&&((E=(h=(k=Z==null?void 0:Z[0])==null?void 0:k.menus)==null?void 0:h.join("/"))==null?void 0:E[((c=(y=(v=Z==null?void 0:Z[0])==null?void 0:v.menus)==null?void 0:y.join("/"))==null?void 0:c.length)-1])==="/")return(A=l==null?void 0:l.contents)==null?void 0:A.map(_e=>{var ra;return(_e==null?void 0:_e.key)==="tableContents"&&(ve==null?void 0:ve.length)>0&&(_e.contents=((ra=_e.contents)==null?void 0:ra.length)>0?_e.contents:ve),_e})}if((l==null?void 0:l.filter)==="Text"&&(l==null?void 0:l.contents).push({key:"enableWrap",contents:3}),(l==null?void 0:l.filter)==="Manual"){let me=[],Z=[],ue=(_=(L=l==null?void 0:l.contents)==null?void 0:L.find(D=>(D==null?void 0:D.key)==="filter"))==null?void 0:_.contents;(ue==null?void 0:ue[(ue==null?void 0:ue.length)-1])===")"?ue=(C=(W=ue==null?void 0:ue.replace("(",ar))==null?void 0:W.split(ar))==null?void 0:C[0]:ue="",ue!==""&&(me=((ae=(M=ue==null?void 0:ue.split("*"))==null?void 0:M[0])==null?void 0:ae.split(":"))??[],Z=((g=(x=(N=($=(S=ue==null?void 0:ue.split("*"))==null?void 0:S[1])==null?void 0:$.replace("{",ar))==null?void 0:N.split(ar))==null?void 0:x[0])==null?void 0:g.split(":"))??[]);let Ue=(q=(H=l==null?void 0:l.contents)==null?void 0:H.find(D=>(D==null?void 0:D.key)==="filter"))==null?void 0:q.contents;Ue=(he=(G=Ue==null?void 0:Ue.replace("(",ar))==null?void 0:G.split(ar))==null?void 0:he[1],Ue=Ue==null?void 0:Ue.slice(0,(Ue==null?void 0:Ue.length)-1);let Ca=(Be=l==null?void 0:l.contents)==null?void 0:Be.map(D=>{var ne,ve,se,_e,ra,ba,$a,le,Qe;return(D==null?void 0:D.key)==="header"&&((ne=D==null?void 0:D.contents)!=null&&ne.every(Ie=>(Ie==null?void 0:Ie.mainKey)!==!0)&&Array.isArray(D==null?void 0:D.contents)&&!Array.isArray((ve=D==null?void 0:D.contents)==null?void 0:ve[0])?D.contents=(se=D==null?void 0:D.contents)==null?void 0:se.map((Ie,ka)=>{var Re,we,ze;return Ie!=null&&Ie.isMainPath||(ka===0?(Ie.mainKey=!0,Ie.formType="Select",Ie.bindMenus=me,Ie.groups=((Re=Ie.groups)==null?void 0:Re.length)===0?Z:Ie.groups,Ie.words=((we=Ie.words)==null?void 0:we.length)===0?[Ie==null?void 0:Ie.prop]:Ie.words,Ie.filter=Ue,(!(Ie!=null&&Ie.menus)||((ze=Ie==null?void 0:Ie.menus)==null?void 0:ze.length)===0)&&(Ie.menus=me)):(Ie.mainKey=!1,Ie.bindMenus=me)),Ie}):Array.isArray((_e=D==null?void 0:D.contents)==null?void 0:_e[0])&&(($a=(ba=(ra=D==null?void 0:D.contents)==null?void 0:ra[0])==null?void 0:ba.filter(()=>(me==null?void 0:me.length)>0))==null?void 0:$a.length)>0&&(D.contents[0]=(Qe=(le=D==null?void 0:D.contents)==null?void 0:le[0])==null?void 0:Qe.map((Ie,ka)=>{var Re,we,ze;return Ie!=null&&Ie.isMainPath||(ka===0?(Ie.mainKey=!0,Ie.formType="Select",Ie.bindMenus=me,Ie.groups=((Re=Ie.groups)==null?void 0:Re.length)===0?Z:Ie.groups,Ie.words=((we=Ie.words)==null?void 0:we.length)===0?[Ie==null?void 0:Ie.prop]:Ie.words,Ie.filter=Ue,(!(Ie!=null&&Ie.menus)||Array.isArray(Ie==null?void 0:Ie.menus)&&((ze=Ie==null?void 0:Ie.menus)==null?void 0:ze.length)===0)&&(me==null?void 0:me.length)>0&&(Ie.menus=me)):(Ie.mainKey=!1,Ie.bindMenus=me)),Ie}))),D}),oe=(xe=Ca==null?void 0:Ca.find(D=>(D==null?void 0:D.key)==="header"))==null?void 0:xe.contents;if(Array.isArray(oe==null?void 0:oe[0])&&(oe=oe==null?void 0:oe[0]),oe=sa.getColumnChild(oe),oe!=null&&oe.some(D=>{var ne,ve;return((ve=D==null?void 0:D.menus)==null?void 0:ve[((ne=D==null?void 0:D.menus)==null?void 0:ne.length)-1])===""})){let D=(te=cn==null?void 0:cn.value)==null?void 0:te.find(ne=>(ne==null?void 0:ne.condition)==="child");Ca=Cd(Ca,D)}return Ca}return l==null?void 0:l.contents},Bd=l=>{var t,s,u,k;let n=l==null?void 0:l.filter;if(n!=null&&n.includes("*")&&(n="({"+((s=(t=n==null?void 0:n.replace("{",ar))==null?void 0:t.split(ar))==null?void 0:s[1])),n=(u=n==null?void 0:n.replaceAll("{",""))==null?void 0:u.replaceAll("}",""),(n==null?void 0:n[0])!=="("&&(n="("+n+")"),n.slice(1,(n==null?void 0:n.length)-1)==="undefined")return l==null?void 0:l.contents;let r=sa.calculatorAndToOr(n);if((r==null?void 0:r.length)>0){let h=[];return r==null||r.forEach(y=>{let c={};for(let E in y){let A=E;A!=null&&A.includes("[")||(c[A]=y[E])}h.push(c)}),(k=l==null?void 0:l.contents)==null?void 0:k.map(y=>{var E,A,L;let c=(A=(E=l==null?void 0:l.contents)==null?void 0:E.find(_=>(_==null?void 0:_.key)==="header"))==null?void 0:A.contents;if(c=(L=sa.getEqualChild(c))==null?void 0:L.filter(_=>(_==null?void 0:_.label)!=="操作"),(y==null?void 0:y.key)==="tableContents"){let W=sa.tableToForm(y==null?void 0:y.contents,c);h==null||h.forEach(C=>{var M,ae;for(let S in C)!((M=W==null?void 0:W[0])!=null&&M.find($=>{var N;return($==null?void 0:$.key)===S||((N=$==null?void 0:$.key)==null?void 0:N.includes(S))}))&&!(W!=null&&W.find($=>{var N;return($==null?void 0:$.key)===S||((N=$==null?void 0:$.key)==null?void 0:N.includes(S))}))||(((ae=C[S])==null?void 0:ae[0])!=="!"?W=W==null?void 0:W.filter($=>{var N,x;return((N=$==null?void 0:$.find(g=>{var H;return(g==null?void 0:g.key)===S||((H=g==null?void 0:g.key)==null?void 0:H.includes(S))}))==null?void 0:N.value)===C[S]||Array.isArray(C==null?void 0:C[S])&&((x=C==null?void 0:C[S])==null?void 0:x.find(g=>{var H;return((H=$==null?void 0:$.find(q=>{var G;return(q==null?void 0:q.key)===S||((G=q==null?void 0:q.key)==null?void 0:G.includes(S))}))==null?void 0:H.value)===g}))}):W=W==null?void 0:W.filter($=>{var N;return((N=$==null?void 0:$.find(x=>{var g;return(x==null?void 0:x.key)===S||((g=x==null?void 0:x.key)==null?void 0:g.includes(S))}))==null?void 0:N.value)!==C[S]}))}),(W==null?void 0:W.length)===0?y.contents=[]:y.contents=W==null?void 0:W.map(C=>{let M={};return C==null||C.forEach(ae=>{M[ae==null?void 0:ae.key]=ae==null?void 0:ae.value}),M})}return y})}return l==null?void 0:l.contents},Nd=l=>l==null?void 0:l.contents,Td=l=>l==null?void 0:l.contents,Ad=l=>{var n,r,t,s;if((l==null?void 0:l.filter)!==""&&(l!=null&&l.filter)){let u=(t=(r=l==null?void 0:l.filter)==null?void 0:r.slice(1,((n=l==null?void 0:l.filter)==null?void 0:n.length)-1))==null?void 0:t.split(",");return(s=l==null?void 0:l.contents)==null?void 0:s.map(h=>((h==null?void 0:h.key)==="header"&&(h.contents=ni(h.contents,u)),h))}return l==null?void 0:l.contents},Md=l=>{var r;let n=(l==null?void 0:l.filter)??"";return(n==null?void 0:n[0])==="{"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n!==""?(r=l==null?void 0:l.contents)==null?void 0:r.map(s=>{var u;return(s==null?void 0:s.key)==="extraButton"&&(s.contents=(u=n==null?void 0:n.split(","))==null?void 0:u.map(k=>({label:k,prop:k}))),s}):l==null?void 0:l.contents},zd=l=>l==null?void 0:l.contents,Od=l=>{var r;let n=(l==null?void 0:l.filter)??"";return(n==null?void 0:n[0])==="{"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n!==""?(r=l==null?void 0:l.contents)==null?void 0:r.map(s=>{var u;return(s==null?void 0:s.key)==="rowButton"&&(s.contents=(u=n==null?void 0:n.split(","))==null?void 0:u.map(k=>({label:k,prop:k}))),s}):l==null?void 0:l.contents},Id=l=>{var r;let n=(l==null?void 0:l.filter)??"";if((n==null?void 0:n[0])==="{"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n!==""){let t=l==null?void 0:l.contents,s=(r=n==null?void 0:n.split(","))==null?void 0:r.map(u=>({label:u,prop:u}));return t.push({key:"bottomButton",contents:s}),t}return l==null?void 0:l.contents},Ld=l=>{var n,r,t,s;if(((n=l==null?void 0:l.filter)==null?void 0:n[0])!=="["){const u=parseInt(l==null?void 0:l.filter);return!u||Number.isNaN(u)?l==null?void 0:l.contents:(r=l==null?void 0:l.contents)==null?void 0:r.map(h=>{var v;return(h==null?void 0:h.key)==="formContent"&&(h.contents=(v=h.contents)==null?void 0:v.map(y=>(y.width=u,y))),h})}if(((t=l==null?void 0:l.filter)==null?void 0:t[0])==="["){let u=wt(l==null?void 0:l.filter),k=Array.isArray(u)?u.map(v=>parseInt(v)).filter(v=>!!v&&!Number.isNaN(v)):[];return k.length?(s=l==null?void 0:l.contents)==null?void 0:s.map(v=>{if((v==null?void 0:v.key)==="formContent"){const y=v.contents??[];v.contents=y.map((c,E)=>{const A=E+1;let L=0,_=0;for(let C=0;C<k.length;C++){if(_+=k[C],A<=_){L=C;break}C===k.length-1&&(L=k.length-1)}const W=k[L]||k[k.length-1]||1;return c.width=W,c})}return v}):l==null?void 0:l.contents}return l==null?void 0:l.contents},Vd=l=>{var n;if((l==null?void 0:l.filter)!==""){let r=l==null?void 0:l.filter;return(r==null?void 0:r[0])==="{"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),r=r==null?void 0:r.split(","),(n=l==null?void 0:l.contents)==null?void 0:n.map(s=>{var u,k,h;return(s==null?void 0:s.key)==="header"&&(Array.isArray((u=s==null?void 0:s.contents)==null?void 0:u[0])?s.contents[0]=(h=s.contents[0])==null?void 0:h.map(v=>(r!=null&&r.find(y=>y===(v==null?void 0:v.prop))&&(v.fixed="left"),v)):s.contents=(k=s.contents)==null?void 0:k.map(v=>(r!=null&&r.find(y=>y===(v==null?void 0:v.prop))&&(v.fixed="left"),v))),s})}return l==null?void 0:l.contents},Rd=l=>{var n;if((l==null?void 0:l.filter)!==""){let r=l==null?void 0:l.filter;(r==null?void 0:r[0])==="{"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),r=r==null?void 0:r.split(",");const t=u=>(r!=null&&r.find(k=>k===(u==null?void 0:u.prop))&&(u.required=!0),u!=null&&u.children&&Array.isArray(u.children)&&(u.children=u.children.map(k=>t(k))),u);return(n=l==null?void 0:l.contents)==null?void 0:n.map(u=>{var k,h,v;return(u==null?void 0:u.key)==="header"&&(Array.isArray((k=u==null?void 0:u.contents)==null?void 0:k[0])?u.contents[0]=(v=u.contents[0])==null?void 0:v.map(y=>t(y)):u.contents=(h=u.contents)==null?void 0:h.map(y=>t(y))),u})}return l==null?void 0:l.contents},$d=async l=>{var t,s,u,k,h,v,y,c,E,A,L,_,W,C,M,ae,S;const n=z.useUnit(z.pinia),{chooseTitle:r}=z.storeToRefs(n);if((l==null?void 0:l.filter)==="true"){let $=await Hr(((s=(t=r==null?void 0:r.value)==null?void 0:t[0])==null?void 0:s.parentContent)??((k=(u=r==null?void 0:r.value)==null?void 0:u[0])==null?void 0:k.relatedContent),!1),N=(v=(h=r==null?void 0:r.value)==null?void 0:h[0])==null?void 0:v.value;(c=(y=$==null?void 0:$[0])==null?void 0:y.compData)!=null&&c.find(q=>(q==null?void 0:q.key)==="header")?$=(E=$==null?void 0:$[0])==null?void 0:E.compData:$=(L=(A=$==null?void 0:$.filter(q=>{var G;return(G=q==null?void 0:q.compData)==null?void 0:G.find(he=>(he==null?void 0:he.key)==="header")}))==null?void 0:A[0])==null?void 0:L.compData;let x=(_=$==null?void 0:$.find(q=>(q==null?void 0:q.key)==="header"))==null?void 0:_.contents;Array.isArray(x==null?void 0:x[0])&&(x=x==null?void 0:x[0]),x=((W=x==null?void 0:x.find(q=>q==null?void 0:q.isMainKey))==null?void 0:W.prop)??((C=x==null?void 0:x[0])==null?void 0:C.prop);let g=(ae=(M=$==null?void 0:$.find(q=>(q==null?void 0:q.key)==="tableContents"))==null?void 0:M.contents)==null?void 0:ae.find(q=>(q==null?void 0:q[x])===N);return(S=l==null?void 0:l.contents)==null?void 0:S.map(q=>{var G;return(q==null?void 0:q.key)==="formContent"&&(q.contents=(G=q.contents)==null?void 0:G.map(he=>(he.value=g==null?void 0:g[he==null?void 0:he.prop],he))),q})}return l==null?void 0:l.contents},Pd=l=>{var n,r,t,s,u;if((n=l==null?void 0:l.extra)!=null&&n.row){let k=l==null?void 0:l.filter;if(k!=null&&k.includes("*")&&(k="({"+((t=(r=k==null?void 0:k.replace("{",ar))==null?void 0:r.split(ar))==null?void 0:t[1])),k=(s=k==null?void 0:k.replaceAll("{",""))==null?void 0:s.replaceAll("}",""),(k==null?void 0:k[0])!=="("&&(k="("+k+")"),k.slice(1,(k==null?void 0:k.length)-1)==="undefined")return l==null?void 0:l.contents;let h=sa.calculatorAndToOr(k),v=h==null?void 0:h[0],y=(u=l==null?void 0:l.extra)==null?void 0:u.row,c=[];for(let E in v)(v==null?void 0:v[E])===(y==null?void 0:y[E])?c.push(!0):c.push(!1);return c!=null&&c.every(E=>E===!0)?l==null?void 0:l.contents:[]}else return l==null?void 0:l.contents},Fd=l=>{if(l!=null&&l.filter){let n=l==null?void 0:l.contents;return n.push({key:"tab",contents:l==null?void 0:l.filter}),n}return l==null?void 0:l.contents},jd=l=>{if(l!=null&&l.filter){let n=l==null?void 0:l.contents;return n.push({key:"choice",contents:l==null?void 0:l.filter}),n}return l==null?void 0:l.contents},Hs={onNumSlice:Sd,onRandomContents:Dd,onConditionContents:Bd,onFatherPaceContents:Nd,onPaceContents:Td,onMainTagContents:Ad,onButtonContents:Md,onPamButtonContents:zd,onRowButtonContents:Od,onRelated:$d,onRowNum:Ld,onFixRow:Vd,onReqItem:Rd,onBottomButtonContents:Id,onConditionContent:Pd,onTabs:Fd,onSinChoice:jd},Hd=async(l,n)=>{var u,k,h,v,y,c,E,A,L,_,W,C,M,ae,S,$,N,x,g;let r="";if(((u=l==null?void 0:l.find(H=>(H==null?void 0:H.key)==="filter"))==null?void 0:u.contents)!==""&&(r=(k=l==null?void 0:l.find(H=>(H==null?void 0:H.key)==="filter"))==null?void 0:k.contents),r===""||!r)return l;(r==null?void 0:r[0])==="("?r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1):(r=(v=(h=r==null?void 0:r.replace("(",ar))==null?void 0:h.split(ar))==null?void 0:v[1],r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1));let t=(y=Na.analyzeSplitToContent(r,","))==null?void 0:y.map(H=>((H==null?void 0:H[(H==null?void 0:H.length)-1])===","&&(H=H==null?void 0:H.slice(0,(H==null?void 0:H.length)-1)),H!=null&&H.includes("(")||(H=H==null?void 0:H.replaceAll(":","=")),H)),s=l;for(let H in t){let q,G="";(c=t==null?void 0:t[H])!=null&&c.includes("(")?(q=(L=(A=(E=t==null?void 0:t[H])==null?void 0:E.replace("(",ar))==null?void 0:A.split(ar))==null?void 0:L[0],G="("+((C=(W=(_=t==null?void 0:t[H])==null?void 0:_.replace("(",ar))==null?void 0:W.split(ar))==null?void 0:C[1])):(q=(S=(ae=(M=t==null?void 0:t[H])==null?void 0:M.replace("=",ar))==null?void 0:ae.split(ar))==null?void 0:S[0],G=(x=(N=($=t==null?void 0:t[H])==null?void 0:$.replace("=",ar))==null?void 0:N.split(ar))==null?void 0:x[1]);let he=(g=un==null?void 0:un.find(Be=>(Be==null?void 0:Be.key)===q))==null?void 0:g.value;if(he){const Be=Hs[he];s=await Be({contents:s,filter:G})}}return s},ti=async(l,n)=>{var k,h,v,y,c,E,A,L,_,W,C,M,ae,S,$,N,x,g,H,q;let r="";if(((k=l==null?void 0:l.find(G=>(G==null?void 0:G.key)==="filter"))==null?void 0:k.contents)!==""&&(r=(h=l==null?void 0:l.find(G=>(G==null?void 0:G.key)==="filter"))==null?void 0:h.contents),r===""||!r)return l;(r==null?void 0:r[0])===","&&(r=r==null?void 0:r.slice(1,r==null?void 0:r.length)),(r==null?void 0:r[0])==="("?r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1):(r==null?void 0:r[0])==="@"||(r=(y=(v=r==null?void 0:r.replace("(",ar))==null?void 0:v.split(ar))==null?void 0:y[1],r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1));let t=(c=Na.analyzeSplitToContent(r,","))==null?void 0:c.map(G=>((G==null?void 0:G[(G==null?void 0:G.length)-1])===","&&(G=G==null?void 0:G.slice(0,(G==null?void 0:G.length)-1)),G!=null&&G.includes("(")||(G=G==null?void 0:G.replaceAll(":","=")),G)),s=l,u=new Map;t==null||t.forEach(G=>{var Be,xe,te;let he=(Be=G==null?void 0:G.split("="))==null?void 0:Be[0];if(he==="@MainPam"&&u.get(he)){let me=u.get(he);me=me==null?void 0:me.slice(0,(me==null?void 0:me.length)-1);let Z=(te=(xe=G==null?void 0:G.replace("{",ar))==null?void 0:xe.split(ar))==null?void 0:te[1];Z=me+","+Z,u.set(he,Z)}else u.set(he,G)}),t=Array.from(u.values()),t=t==null?void 0:t.sort((G,he)=>{var Be,xe;return((Be=un==null?void 0:un.find(te=>he==null?void 0:he.includes(te==null?void 0:te.key)))==null?void 0:Be.order)-((xe=un==null?void 0:un.find(te=>G==null?void 0:G.includes(te==null?void 0:te.key)))==null?void 0:xe.order)});for(let G in t){let he,Be="";(E=t==null?void 0:t[G])!=null&&E.includes("(")&&((A=t==null?void 0:t[G])!=null&&A.includes("@Filter"))?(he=(W=(_=(L=t==null?void 0:t[G])==null?void 0:L.replace("(",ar))==null?void 0:_.split(ar))==null?void 0:W[0],Be="("+((ae=(M=(C=t==null?void 0:t[G])==null?void 0:C.replace("(",ar))==null?void 0:M.split(ar))==null?void 0:ae[1])):(he=(N=($=(S=t==null?void 0:t[G])==null?void 0:S.replace("=",ar))==null?void 0:$.split(ar))==null?void 0:N[0],Be=(H=(g=(x=t==null?void 0:t[G])==null?void 0:x.replace("=",ar))==null?void 0:g.split(ar))==null?void 0:H[1]);let xe=(q=un==null?void 0:un.find(te=>(te==null?void 0:te.key)===he))==null?void 0:q.value;if(xe){const te=Hs[xe];s=await te({contents:s,filter:Be,extra:n})}}return s};let to="$R";const Ud=z.useUnit(z.pinia),{selectTitle:qd}=z.storeToRefs(Ud);let Kd=[{label:"新增",prop:"新增"},{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],Wd=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"},{label:"复制新增",prop:"复制新增"},{label:"删除",prop:"删除"}],Yd=[{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],Jd=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"}];const Yi=async(l,n)=>{let r=[],t=l==null?void 0:l.map(async s=>{var c,E,A,L,_,W,C,M,ae,S,$,N,x,g,H,q,G,he,Be,xe,te,me,Z,ue,Ue,Ca,oe,D,ne,ve,se,_e,ra,ba,$a,le,Qe,Ie,ka,Re,we,ze,qe,Sa,el,P,j,Y,V,K,Te,ee,ke,pe,$e,Ve,ca,ya,Oe,da,Le,_a,Fe,ma,ce,ga;let u=(L=(A=(E=(c=s==null?void 0:s.contents)==null?void 0:c.find(ye=>{var Ea;return(Ea=ye==null?void 0:ye.key)==null?void 0:Ea.includes("struct")}))==null?void 0:E.value)==null?void 0:A[0])==null?void 0:L.类型,k=Object.values(s==null?void 0:s.name);k=k==null?void 0:k.reverse();let h=(_=s==null?void 0:s.contents)==null?void 0:_.map(ye=>ye==null?void 0:ye.key),v={comp:u,isShow:s==null?void 0:s.is_show,name:k==null?void 0:k[0],id:s==null?void 0:s.object_id,relatedTables:h,menuFilter:(W=s==null?void 0:s.filter)==null?void 0:W.menuFilter,status:s==null?void 0:s.status,fatherSyncContents:(C=s==null?void 0:s.filter)==null?void 0:C.fatherSyncs,relatedQuotes:(M=s==null?void 0:s.filter)==null?void 0:M.quotes,sonSyncContents:(ae=s==null?void 0:s.filter)==null?void 0:ae.sonSyncs};for(let ye in k)parseInt(ye)>=1&&(v[`name${parseInt(ye)-1}`]=k[ye]);let y=($=(S=s==null?void 0:s.filter)==null?void 0:S.menuFilter)==null?void 0:$.split(",");if(((N=y==null?void 0:y.filter(ye=>ye==null?void 0:ye.includes("@Filter")))==null?void 0:N.length)>0){let ye=y==null?void 0:y.filter(Ee=>Ee==null?void 0:Ee.includes("@Filter"));ye=ye==null?void 0:ye[0],ye=(g=(x=ye==null?void 0:ye.replace("(",to))==null?void 0:x.split(to))==null?void 0:g[1],ye=ye==null?void 0:ye.slice(0,(ye==null?void 0:ye.length)-1),ye!=null&&ye.includes("*")&&(ye=(q=(H=ye==null?void 0:ye.replace("{",to))==null?void 0:H.split(to))==null?void 0:q[1],ye=ye==null?void 0:ye.replace("}","")),ye=sa.calculatorAndToOr(ye);let Ea=(n==null?void 0:n.originPath)??"";(Ea==null?void 0:Ea[(Ea==null?void 0:Ea.length)-1])==="/"&&(Ea=Ea==null?void 0:Ea.slice(0,(Ea==null?void 0:Ea.length)-1));let Ye=await Hr(Ea,!1),Ke=(G=Ye==null?void 0:Ye.filter(Ee=>(Ee==null?void 0:Ee.comp)==="Table"))==null?void 0:G[0];Ke=(Be=(he=Ke==null?void 0:Ke.compData)==null?void 0:he.find(Ee=>(Ee==null?void 0:Ee.key)==="tableContents"))==null?void 0:Be.contents;let Ce=(te=(xe=qd.value)==null?void 0:xe.find(Ee=>(Ee==null?void 0:Ee.condition)==="child"))==null?void 0:te.value;Ke=(me=Ke==null?void 0:Ke.map(Ee=>{for(let pa in Ee)if((Ee==null?void 0:Ee[pa])===Ce)return Ee}))==null?void 0:me.filter(Ee=>Ee),Ke=Ke==null?void 0:Ke[0],ye=ye==null?void 0:ye[0];let be=[];for(let Ee in ye){let pa="";Za.isObject(Ke)&&(pa=(ue=(Z=Object.keys(Ke))==null?void 0:Z.filter(na=>na==null?void 0:na.includes("."+Ee)))==null?void 0:ue[0]),pa!==""&&(Ke!=null&&Ke[pa])&&(ye==null?void 0:ye[Ee])===(Ke==null?void 0:Ke[pa])||Ke!=null&&Ke[Ee]&&(ye==null?void 0:ye[Ee])===(Ke==null?void 0:Ke[Ee])?be.push(!0):be.push(!1)}if(be!=null&&be.some(Ee=>Ee===!1)&&((Ca=n==null?void 0:n.originPath)==null?void 0:Ca[((Ue=n==null?void 0:n.originPath)==null?void 0:Ue.length)-1])!=="/")return}if(u==="Table"||u==="Method"){let ye=((oe=s==null?void 0:s.contents)==null?void 0:oe.find(na=>{var rl;return(rl=na==null?void 0:na.key)==null?void 0:rl.includes("content")}))||[],Ea=[];v.comp="Table",ye.value=(D=ye==null?void 0:ye.value)==null?void 0:D.sort((na,rl)=>parseInt(na==null?void 0:na.id)-parseInt(rl==null?void 0:rl.id)),ye.value=(ne=ye==null?void 0:ye.value)==null?void 0:ne.map(na=>{let rl={};for(let Il in na)JSON.stringify(na==null?void 0:na[Il])==="{}"?rl[Il]="":rl[Il]=na==null?void 0:na[Il];return rl}),Ea.push({key:"tableContents",contents:ye==null?void 0:ye.value});let Ye=(ba=(ra=(_e=(se=(ve=s==null?void 0:s.contents)==null?void 0:ve.find(na=>{var rl;return(rl=na==null?void 0:na.key)==null?void 0:rl.includes("struct")}))==null?void 0:se.value)==null?void 0:_e[0])==null?void 0:ra.结构)==null?void 0:ba.contents;Array.isArray(Ye==null?void 0:Ye[0])?Ye[0]=($a=Ye==null?void 0:Ye[0])==null?void 0:$a.filter(na=>(na==null?void 0:na.prop)!=="sort"):Ye=Ye==null?void 0:Ye.filter(na=>(na==null?void 0:na.prop)!=="sort"),Ea.push({key:"header",contents:Ye}),Ea.push({key:"filter",contents:(Re=(ka=(Ie=(Qe=(le=s==null?void 0:s.contents)==null?void 0:le.find(na=>{var rl;return(rl=na==null?void 0:na.key)==null?void 0:rl.includes("struct")}))==null?void 0:Qe.value)==null?void 0:Ie[0])==null?void 0:ka.引用)==null?void 0:Re.contents});let Ke=Kd,Ce=z.cloneDeep(Wd);u==="Method"&&Ce.push({label:"生成方法",prop:"生成方法"}),!Array.isArray(Ye==null?void 0:Ye[0])&&((we=Ye==null?void 0:Ye[0])==null?void 0:we.prop)==="disabled"&&(Ke=Yd,Ce=Jd);const be=["推力","真空","压力","温度","流量"],Ee=v.name;Ee&&be.includes(Ee)&&(Ke=[...Ke],Ke.push({label:"导出paraform",prop:"导出paraform",type:"methodButton"}));let pa=[];if(!Array.isArray(Ye==null?void 0:Ye[0])&&(Ye!=null&&Ye.some(na=>{var rl;return(na==null?void 0:na.calculatorFilter)&&((rl=na==null?void 0:na.calculatorFilter)==null?void 0:rl.includes("Manual"))}))){let na=(ze=Ye==null?void 0:Ye.map(rl=>rl==null?void 0:rl.calculatorFilter))==null?void 0:ze.filter(rl=>rl&&(rl==null?void 0:rl.includes("Manual")));na==null||na.forEach(rl=>{var Fl;let Il=Na.analyzeSplitToContent(rl,",");if(Il=Il==null?void 0:Il.map(al=>((al==null?void 0:al[(al==null?void 0:al.length)-1])===","&&(al=al==null?void 0:al.slice(0,(al==null?void 0:al.length)-1)),al)),Il!=null&&Il.find(al=>(al==null?void 0:al.includes("Extent"))&&(al==null?void 0:al.includes("Row")))&&(Il!=null&&Il.find(al=>(al==null?void 0:al.includes("Button"))&&(al==null?void 0:al.includes(","))))){let al=Il==null?void 0:Il.find(Ha=>Ha==null?void 0:Ha.includes("@Button"));al=(Fl=al==null?void 0:al.split("="))==null?void 0:Fl[1],al=al==null?void 0:al.slice(1,(al==null?void 0:al.length)-1),al=al==null?void 0:al.split(","),al=al==null?void 0:al[(al==null?void 0:al.length)-1],pa.push(al)}}),pa=[...new Set(pa)],pa=pa==null?void 0:pa.map(rl=>({label:rl,prop:rl,type:"methodButton"}))}Ea.push({key:"extraButton",contents:Ke}),Ea.push({key:"rowButton",contents:[...Ce,...pa]}),v.compData=await ti(Ea,n),(qe=v.compData)!=null&&qe.find(na=>(na==null?void 0:na.key)==="tab")&&(v.tab=(el=(Sa=v.compData)==null?void 0:Sa.find(na=>(na==null?void 0:na.key)==="tab"))==null?void 0:el.contents),(P=v.compData)!=null&&P.find(na=>(na==null?void 0:na.key)==="choice")&&(v.choice=(Y=(j=v.compData)==null?void 0:j.find(na=>(na==null?void 0:na.key)==="choice"))==null?void 0:Y.contents)}else if(u==="Form"){let ye=[],Ea=(Te=(K=(V=s==null?void 0:s.contents)==null?void 0:V.find(Ke=>{var Ce;return(Ce=Ke==null?void 0:Ke.key)==null?void 0:Ce.includes("content")}))==null?void 0:K.value)==null?void 0:Te[0],Ye=(ya=(ca=(Ve=($e=(pe=(ke=(ee=s==null?void 0:s.contents)==null?void 0:ee.find(Ke=>{var Ce;return(Ce=Ke==null?void 0:Ke.key)==null?void 0:Ce.includes("struct")}))==null?void 0:ke.value)==null?void 0:pe[0])==null?void 0:$e.结构)==null?void 0:Ve.contents)==null?void 0:ca.map(Ke=>(Ke.value=Ea==null?void 0:Ea[Ke==null?void 0:Ke.prop],Ke)))==null?void 0:ya.filter(Ke=>(Ke==null?void 0:Ke.prop)!=="sort");ye.push({key:"filter",contents:(Fe=(_a=(Le=(da=(Oe=s==null?void 0:s.contents)==null?void 0:Oe.find(Ke=>{var Ce;return(Ce=Ke==null?void 0:Ke.key)==null?void 0:Ce.includes("struct")}))==null?void 0:da.value)==null?void 0:Le[0])==null?void 0:_a.引用)==null?void 0:Fe.contents}),ye.push({key:"formContent",contents:Ye}),v.compData=await Hd(ye),(ma=v.compData)!=null&&ma.find(Ke=>(Ke==null?void 0:Ke.key)==="tab")&&(v.tab=(ga=(ce=v.compData)==null?void 0:ce.find(Ke=>(Ke==null?void 0:Ke.key)==="tab"))==null?void 0:ga.contents)}return v});return r=await Promise.all(t),r},Gd=z.useLoginState(z.pinia),{loginUserInfo:yt}=z.storeToRefs(Gd),oi=async(l,n,r="Manual",t=[])=>{var v;let s=l,u;Array.isArray(n==null?void 0:n[0])?u=sa.getColumnChild(n==null?void 0:n[0]):u=n;let k=(v=u==null?void 0:u.filter(y=>{var c;return(y==null?void 0:y.calculatorFilter)&&((c=y==null?void 0:y.calculatorFilter)==null?void 0:c.includes(r))||(y==null?void 0:y.calculatorFilter)===""&&(y==null?void 0:y.functionName)}))==null?void 0:v.map(y=>({prop:y==null?void 0:y.prop,label:y==null?void 0:y.label,methods:y==null?void 0:y.calculatorFilter,functionName:y==null?void 0:y.functionName,functionRelatedWords:y==null?void 0:y.functionRelatedWords})),h=s==null?void 0:s.map(async y=>(y=await lp(y,k,u,r,s,t),y));return h=await Promise.all(h),h},Xd=l=>{let n=l==null?void 0:l.contents,r=l==null?void 0:l.valueString,t=l==null?void 0:l.prop,s=l==null?void 0:l.headers,u;return Array.isArray(n)&&(n==null?void 0:n.length)!==1&&(n=sa.getValueToObjectValue(n,sa.getColumnContents(s))),r==null||r.forEach(k=>{var h;if(n!=null&&n[k]){let v=n==null?void 0:n[k];u=u?v?Na.isEqual(v.toString(),u.toString()):void 0:v}else{let v=(h=s==null?void 0:s.find(c=>(c==null?void 0:c.label)===k))==null?void 0:h.prop,y=(n==null?void 0:n[v])??0;u=u?y?Na.isEqual(y.toString(),u.toString()):void 0:y}}),n[t]=u===void 0?void 0:u?1:0,n},ur=l=>{const[n,r,t]=z.cloneDeep(l).split(":").map(Number);let s=+l;return!l||!(l!=null&&l.includes(":"))?s:(n??0)*3600+(r??0)*60+(t??0)},jn=l=>{const n=u=>u.toString().padStart(2,"0"),r=Math.floor(l/3600),t=Math.floor(l%3600/60),s=l%60;return`${n(r)}:${n(t)}:${parseInt(n(s))}`},Zd=l=>{let n=l==null?void 0:l.contents,r=l==null?void 0:l.valueString,t=l==null?void 0:l.prop,s=l==null?void 0:l.headers,u=l==null?void 0:l.typeString,k=l==null?void 0:l.allContents,h=0;if(Array.isArray(n)&&(n==null?void 0:n.length)!==1&&(n=sa.getValueToObjectValue(n,sa.getColumnContents(s))),r==null||r.forEach(v=>{var y,c,E,A,L,_,W,C,M;if(n!=null&&n[v]){if(u==="Row")if(!((c=((y=n==null?void 0:n[v])==null?void 0:y.toString())??"")!=null&&c.includes(":"))&&!((E=h==null?void 0:h.toString())!=null&&E.includes(":"))){let ae=+(n==null?void 0:n[v]);h=h+ae}else h=ur(h.toString())+ur((A=n==null?void 0:n[v])==null?void 0:A.toString()),h=jn(h)}else if(u==="Row"){let ae=(L=s==null?void 0:s.find(S=>(S==null?void 0:S.label)===v))==null?void 0:L.prop;if(!((W=Number.isNaN(n==null?void 0:n[ae])?"":(_=n==null?void 0:n[ae])==null?void 0:_.toString())!=null&&W.includes(":"))&&!((C=h==null?void 0:h.toString())!=null&&C.includes(":"))){let S=+((n==null?void 0:n[ae])??0);h=h+S}else h=ur(h==null?void 0:h.toString())+ur((M=(n==null?void 0:n[ae])??0)==null?void 0:M.toString()),h=jn(h)}}),u==="Column"){let v=[];r==null||r.forEach(y=>{let c=k==null?void 0:k.map(E=>{var A;return(E==null?void 0:E[y])??(E==null?void 0:E[(A=s==null?void 0:s.find(L=>(L==null?void 0:L.label)===y))==null?void 0:A.prop])});v=[...v,...c]}),h=v.reduce((y,c)=>{let E=0;Number.isNaN(y)||(E=+y);let A=0;return Number.isNaN(c)||(A=+c),E+A},0)}return n[t]=h,n},Qd=l=>{let n=l==null?void 0:l.contents,r=l==null?void 0:l.valueString,t=l==null?void 0:l.prop,s=l==null?void 0:l.headers,u=l==null?void 0:l.typeString,k=l==null?void 0:l.allContents,h=0;if(Array.isArray(n)&&(n==null?void 0:n.length)!==1&&(n=sa.getValueToObjectValue(n,sa.getColumnContents(s))),r==null||r.forEach(v=>{var y,c,E,A,L,_,W;if(n!=null&&n[v]){if(u==="Row")if(!((c=(y=n==null?void 0:n[v])==null?void 0:y.toString())!=null&&c.includes(":"))&&!((E=h==null?void 0:h.toString())!=null&&E.includes(":"))){let C=+(n==null?void 0:n[v]);h=h===0?h+C:h-C}else h=h===0?ur(h.toString())+ur(n==null?void 0:n[v].toString()):ur(h.toString())-ur(n==null?void 0:n[v].toString()),h=jn(h)}else if(u==="Row"){let C=(A=s==null?void 0:s.find(M=>(M==null?void 0:M.label)===v))==null?void 0:A.prop;if(!((_=Number.isNaN(n==null?void 0:n[C])?"":(L=n==null?void 0:n[C])==null?void 0:L.toString())!=null&&_.includes(":"))&&!((W=h==null?void 0:h.toString())!=null&&W.includes(":"))){let M=+((n==null?void 0:n[C])??0);h=h===0?h+M:h-M}else h=h===0?ur(h.toString())+ur(((n==null?void 0:n[C])??0).toString()):ur(h.toString())-ur(((n==null?void 0:n[C])??0).toString()),h=jn(h)}}),u==="Column"){let v=[];r==null||r.forEach(y=>{let c=k==null?void 0:k.map(E=>{var A;return(E==null?void 0:E[y])??(E==null?void 0:E[(A=s==null?void 0:s.find(L=>(L==null?void 0:L.label)===y))==null?void 0:A.prop])});v=[...v,...c]}),h=v.reduce((y,c)=>{let E=0;Number.isNaN(y)||(E=+y);let A=0;return Number.isNaN(c)||(A=+c),E-A},0)}return n[t]=h,n},ep=l=>{let n=l==null?void 0:l.contents,r=l==null?void 0:l.valueString,t=l==null?void 0:l.prop,s=l==null?void 0:l.headers,u=l==null?void 0:l.typeString,k=l==null?void 0:l.allContents,h=0;if(Array.isArray(n)&&(n==null?void 0:n.length)!==1&&(n=sa.getValueToObjectValue(n,sa.getColumnContents(s))),r==null||r.forEach(v=>{var y,c,E,A,L,_,W;if(n!=null&&n[v]){if(u==="Row")if(!((c=(y=n==null?void 0:n[v])==null?void 0:y.toString())!=null&&c.includes(":"))&&!((E=h==null?void 0:h.toString())!=null&&E.includes(":"))){let C=+(n==null?void 0:n[v]);h=h===0?h+C:h*C}else h=h===0?ur(h.toString())+ur(n==null?void 0:n[v].toString()):ur(h.toString())*ur(n==null?void 0:n[v].toString()),h=jn(h)}else if(u==="Row"){let C=(A=s==null?void 0:s.find(M=>(M==null?void 0:M.label)===v))==null?void 0:A.prop;if(!(n!=null&&n[C]))h=void 0;else if(!((_=Number.isNaN(n==null?void 0:n[C])?"":(L=n==null?void 0:n[C])==null?void 0:L.toString())!=null&&_.includes(":"))&&!((W=h==null?void 0:h.toString())!=null&&W.includes(":"))){let M=+((n==null?void 0:n[C])??0);h=h===0?h+M:h*M}else h=h===0?ur(h.toString())+ur(((n==null?void 0:n[C])??0).toString()):ur(h.toString())*ur(((n==null?void 0:n[C])??0).toString()),h=jn(h)}}),u==="Column"){let v=[];r==null||r.forEach(y=>{let c=k==null?void 0:k.map(E=>{var A;return(E==null?void 0:E[y])??(E==null?void 0:E[(A=s==null?void 0:s.find(L=>(L==null?void 0:L.label)===y))==null?void 0:A.prop])});v=[...v,...c]}),h=v.reduce((y,c)=>{let E=0;Number.isNaN(y)||(E=+y);let A=0;return Number.isNaN(c)||(A=+c),E*A},0)}return n[t]=h,n},ap=l=>{let n=l==null?void 0:l.contents,r=l==null?void 0:l.valueString,t=l==null?void 0:l.prop,s=l==null?void 0:l.headers,u=l==null?void 0:l.typeString,k=l==null?void 0:l.allContents,h=0;if(Array.isArray(n)&&(n==null?void 0:n.length)!==1&&(n=sa.getValueToObjectValue(n,sa.getColumnContents(s))),r==null||r.forEach(v=>{var y,c,E,A,L,_,W;if(n!=null&&n[v]){if(u==="Row")if(!((c=(y=n==null?void 0:n[v])==null?void 0:y.toString())!=null&&c.includes(":"))&&!((E=h==null?void 0:h.toString())!=null&&E.includes(":"))){let C=+(n==null?void 0:n[v]);h=h===0?h+C:h/C}else h=h===0?ur(h.toString())+ur(n==null?void 0:n[v].toString()):ur(h.toString())/ur(n==null?void 0:n[v].toString()),h=jn(h)}else if(u==="Row"){let C=(A=s==null?void 0:s.find(M=>(M==null?void 0:M.label)===v))==null?void 0:A.prop;if(!((_=Number.isNaN(n==null?void 0:n[C])?"":(L=n==null?void 0:n[C])==null?void 0:L.toString())!=null&&_.includes(":"))&&!((W=h==null?void 0:h.toString())!=null&&W.includes(":"))){let M=+((n==null?void 0:n[C])??0);h=h===0?h+M:h/M}else h=h===0?ur(h.toString())+ur(((n==null?void 0:n[C])??0).toString()):ur(h.toString())/ur(((n==null?void 0:n[C])??0).toString()),h=jn(h)}}),u==="Column"){let v=[];r==null||r.forEach(y=>{let c=k==null?void 0:k.map(E=>{var A;return(E==null?void 0:E[y])??(E==null?void 0:E[(A=s==null?void 0:s.find(L=>(L==null?void 0:L.label)===y))==null?void 0:A.prop])});v=[...v,...c]}),h=v.reduce((y,c)=>{let E=0;Number.isNaN(y)||(E=+y);let A=0;return Number.isNaN(c)||(A=+c),E/A},0)}return n[t]=h.toFixed(2),n},oo={Sum:Zd,Substract:Qd,Multiple:ep,Divide:ap,Compare:Xd},lp=async(l,n,r,t="Auto",s,u=[])=>{var c,E,A,L,_,W,C,M,ae,S,$,N,x,g,H,q,G,he,Be,xe,te;let k=l,h=[],v=await z.getPageDataApi({platId:parseInt((c=yt==null?void 0:yt.value)==null?void 0:c.plat_id),pageName:"menu"});v=(L=(A=(E=v==null?void 0:v.data)==null?void 0:E.result)==null?void 0:A.filter(me=>(me==null?void 0:me.property_name)===""))==null?void 0:L[0];let y=[];if(v!=null&&v.object_name){v=v==null?void 0:v.object_name;let me=await z.getPageDataApi({platId:parseInt((_=yt==null?void 0:yt.value)==null?void 0:_.plat_id),pageName:v});me=(S=(ae=(M=(C=(W=me==null?void 0:me.data)==null?void 0:W.result)==null?void 0:C[0])==null?void 0:M.contents)==null?void 0:ae.find(Z=>{var ue;return(ue=Z==null?void 0:Z.key)==null?void 0:ue.includes("content")}))==null?void 0:S.value,h=($=me==null?void 0:me.map(Z=>({functionName:Z==null?void 0:Z.函数名称,functionContent:Z==null?void 0:Z.输出值})))==null?void 0:$.filter(Z=>(Z==null?void 0:Z.functionContent)!==""),h==null||h.forEach(Z=>{y.push(Z.functionName),oo[Z.functionName]=new Function("return "+Z.functionContent)()})}if((n==null?void 0:n.length)===0)return k;for(let me in n){let Z=(N=n==null?void 0:n[me])==null?void 0:N.functionName;const ue=oo==null?void 0:oo[Z];let Ue=(x=n==null?void 0:n[me])==null?void 0:x.methods;if(Ue=Na.analyzeSplitToContent(Ue,","),(g=Ue==null?void 0:Ue.find(Ca=>Ca==null?void 0:Ca.includes("@Type")))!=null&&g.includes(t)||(Ue==null?void 0:Ue.length)===0){let Ca=((G=(q=(H=Ue==null?void 0:Ue.find(oe=>oe==null?void 0:oe.includes("@Extent")))==null?void 0:H.replace(":","="))==null?void 0:q.split("="))==null?void 0:G[1])??[];if(await new Function("return ")(),(y==null?void 0:y.length)>0&&y.find(oe=>oe===Z)){let oe="";try{let ne=(he=n==null?void 0:n[me])==null?void 0:he.functionRelatedWords,ve=u==null?void 0:u.map(_e=>{var ra;return _e==null?void 0:_e[(ra=n==null?void 0:n[me])==null?void 0:ra.prop]});ve=ve==null?void 0:ve.map(_e=>_e==null?void 0:_e.slice((_e==null?void 0:_e.length)-5,_e==null?void 0:_e.length)),ve=ve==null?void 0:ve.map(_e=>Na.isNumber(parseInt(_e))&&parseInt(_e)?parseInt(_e):0);let se=Math.max(...ve);ne=ne==null?void 0:ne.map(_e=>{if(_e!=null&&_e.includes("'"))return _e==null?void 0:_e.replaceAll("'","");if(_e!=null&&_e.includes("@"))return se+1;{let ra=Object.keys(k);return _e=(k==null?void 0:k[_e])??(k==null?void 0:k[ra==null?void 0:ra.find(ba=>ba==null?void 0:ba.includes("."+_e))]),_e}}),oe=ue(...ne)}catch(ne){Za.ElMessage.warning("关联数据出现错误,"+ne.message)}let D=(Be=n==null?void 0:n[me])==null?void 0:Be.prop;k[D]=oe}else k=ue({contents:k,valueString:(xe=n==null?void 0:n[me])==null?void 0:xe.functionRelatedWords,prop:(te=n==null?void 0:n[me])==null?void 0:te.prop,headers:r,typeString:Ca,allContents:s})}}return k},rp=z.useLoginState(z.pinia),{loginUserInfo:jr}=z.storeToRefs(rp),np=z.useMenuState(z.pinia),{activeMenuPath:Ji,currentMenuPath:io}=z.storeToRefs(np),Us=z.useUnit(z.pinia);let Gi="$R";const{selectTitle:xt}=z.storeToRefs(Us),qs=async(l,n)=>{var k,h,v,y,c,E,A,L,_,W,C,M,ae;let r=Ji.value,t="",s=((k=xt==null?void 0:xt.value)==null?void 0:k.find(S=>(S==null?void 0:S.condition)==="child"&&!(S!=null&&S.relatedContent)))??void 0;(l==null?void 0:l.length)===0||(r=n?r:(h=l==null?void 0:l[0])==null?void 0:h.object_name,t=(v=l==null?void 0:l[0])==null?void 0:v.father_name);let u=[];if(t!==""){let S=t;(S==null?void 0:S[(S==null?void 0:S.length)-1])==="/"&&(S=S==null?void 0:S.slice(0,(S==null?void 0:S.length)-1));let $=await Hr(S,!1);$=(y=$==null?void 0:$[0])==null?void 0:y.compData;let N=(c=$==null?void 0:$.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:c.contents;N=((E=N==null?void 0:N.find(g=>g==null?void 0:g.isMainKey))==null?void 0:E.prop)??((A=N==null?void 0:N[0])==null?void 0:A.prop);let x=(_=(L=$==null?void 0:$.find(g=>(g==null?void 0:g.key)==="tableContents"))==null?void 0:L.contents)==null?void 0:_.map(g=>({label:g==null?void 0:g[N],value:g==null?void 0:g[N]}));u=(W=t==null?void 0:t.split("/"))==null?void 0:W.map(g=>(g===""?s?(s.isShow=!0,g=s):g={value:g,condition:"child",options:x,parentContent:(t==null?void 0:t[(t==null?void 0:t.length)-1])==="/"?t==null?void 0:t.slice(0,(t==null?void 0:t.length)-1):t,isShow:!0}:g={condition:"parent",value:g.trim(),isShow:!0},g))}if(r!==""){let S=(C=r==null?void 0:r.split("/"))==null?void 0:C.map($=>($={condition:"normal",value:$.trim(),isShow:!0},$));((M=S==null?void 0:S[0])==null?void 0:M.value)===((ae=u==null?void 0:u[0])==null?void 0:ae.value)&&(S=S==null?void 0:S.filter(($,N)=>N!==0)),u=[...u??[],...S??[]]}t===""&&s&&((s==null?void 0:s.parentContent)!==Ji.value&&(s.isShow=!1),(s==null?void 0:s.value)!==""&&u.push(s)),Us.setSelectTitle(u)},tp=async l=>{var u,k,h,v,y,c,E,A,L;let n=await z.getPageDataApi({platId:parseInt((u=jr==null?void 0:jr.value)==null?void 0:u.plat_id),pageName:"menu"}),r=(k=n==null?void 0:n.data)==null?void 0:k.result,t=(c=(y=(v=(h=l==null?void 0:l.filter(_=>(_==null?void 0:_.comp)==="Table"))==null?void 0:h[0])==null?void 0:v.compData)==null?void 0:y.find(_=>(_==null?void 0:_.key)==="filter"))==null?void 0:c.contents;t=(L=(A=(E=t==null?void 0:t.replace("(",Gi))==null?void 0:E.split(Gi))==null?void 0:A[0])==null?void 0:L.replaceAll(":","/");let s=r==null?void 0:r.filter(_=>{var W;return(_==null?void 0:_.object_name)===io.value+"/"||((W=io.value)==null?void 0:W.includes(t))&&t+"/"===(_==null?void 0:_.object_name)});return(s==null?void 0:s.length)>0&&(l=l==null?void 0:l.map(_=>{var W;return(_==null?void 0:_.comp)==="Table"&&(_.compData=(W=_==null?void 0:_.compData)==null?void 0:W.map(C=>{var M,ae,S;return(C==null?void 0:C.key)==="header"&&(Array.isArray((M=C.contents)==null?void 0:M[0])?C.contents[0]=(S=C.contents[0])==null?void 0:S.map(($,N)=>{var x;return N===0&&($.isExistChild=!0,(x=io.value)!=null&&x.includes(t)&&($.fatherPath=t)),$}):C.contents=(ae=C.contents)==null?void 0:ae.map(($,N)=>{var x;return N===0&&($.isExistChild=!0,(x=io.value)!=null&&x.includes(t)&&($.fatherPath=t)),$})),C})),_})),l},Hr=async(l,n,r={})=>{var k,h,v,y,c,E,A,L,_,W,C,M;let t=await z.getPageDataApi({platId:parseInt((k=jr==null?void 0:jr.value)==null?void 0:k.plat_id),pageName:l}),s=(h=t==null?void 0:t.data)==null?void 0:h.result;if((s==null?void 0:s.length)===0&&(r!=null&&r.originPath)&&(r==null?void 0:r.originPath)!==l){let ae=await z.getPageDataApi({platId:parseInt((v=jr==null?void 0:jr.value)==null?void 0:v.plat_id),pageName:r==null?void 0:r.originPath});if(((c=(y=ae==null?void 0:ae.data)==null?void 0:y.result)==null?void 0:c.length)>0){let S=await Yi((E=ae==null?void 0:ae.data)==null?void 0:E.result,r);S=S==null?void 0:S.map(async x=>{var q,G,he,Be,xe,te,me,Z,ue,Ue,Ca,oe,D,ne,ve,se,_e,ra,ba,$a,le,Qe,Ie,ka,Re,we,ze,qe,Sa,el;let g=[],H=(q=Object.keys(x))==null?void 0:q.filter(P=>P==null?void 0:P.includes("name"));for(let P in x)H!=null&&H.find(j=>j===P)&&g.push(x==null?void 0:x[P]);if(g=g.reverse(),(x==null?void 0:x.comp)==="Table"){let P=(Be=(he=(G=x==null?void 0:x.compData)==null?void 0:G.find(Y=>(Y==null?void 0:Y.key)==="tableContents"))==null?void 0:he.contents)==null?void 0:Be.map(Y=>{let V={};for(let K in Y)K!=="id"&&K!=="create_time"&&K!=="update_time"&&K!=="sort"&&K!=="create_user_id"&&K!=="update_user_id"&&K!=="department_id"&&(V[K]=Y==null?void 0:Y[K]);return Y=Object.values(V),Y}),j=(te=(xe=x==null?void 0:x.compData)==null?void 0:xe.find(Y=>(Y==null?void 0:Y.key)==="header"))==null?void 0:te.contents;if(Array.isArray(j==null?void 0:j[0])?(j[0].push({label:"排序",prop:"sort"}),(me=j[0])!=null&&me.find(Y=>(Y==null?void 0:Y.prop)==="disabled")&&(j[0]=(Z=j[0])==null?void 0:Z.filter(Y=>(Y==null?void 0:Y.prop)!=="disabled"),j[0].unshift({label:"",prop:"disabled",sortable:!1}))):(j.push({label:"排序",prop:"sort"}),j!=null&&j.find(Y=>(Y==null?void 0:Y.prop)==="disabled")&&(j=j==null?void 0:j.filter(Y=>(Y==null?void 0:Y.prop)!=="disabled"),j.unshift({label:"",prop:"disabled",sortable:!1}))),j!=null&&j.some(Y=>{var V;return(Y==null?void 0:Y.calculatorFilter)&&((V=Y==null?void 0:Y.calculatorFilter)==null?void 0:V.includes("Auto"))})&&(P=await oi(P,j,"Auto"),P=P==null?void 0:P.map(Y=>Object.values(Y))),x!=null&&x.fatherSyncContents){Array.isArray((ue=x==null?void 0:x.fatherSyncContents)==null?void 0:ue[0])&&(x.fatherSyncContents=(Ue=x==null?void 0:x.fatherSyncContents)==null?void 0:Ue[0]);let Y=(Ca=xt.value)==null?void 0:Ca.find(V=>(V==null?void 0:V.condition)==="child");x.fatherSyncContents=(oe=x==null?void 0:x.fatherSyncContents)==null?void 0:oe.map(V=>{var K,Te,ee,ke,pe,$e;return((Te=V==null?void 0:V.menus)==null?void 0:Te[((K=V==null?void 0:V.menus)==null?void 0:K.length)-1])==="/"&&(Y==null?void 0:Y.parentContent)+"/"!==(V==null?void 0:V.menus)?V.menus=(V==null?void 0:V.menus)+(Y==null?void 0:Y.value):((ke=V==null?void 0:V.menus)==null?void 0:ke[((ee=V==null?void 0:V.menus)==null?void 0:ee.length)-1])==="/"&&(Y==null?void 0:Y.parentContent)+"/"===(V==null?void 0:V.menus)&&(V.menus=($e=V.menus)==null?void 0:$e.slice(0,((pe=V.menus)==null?void 0:pe.length)-1)),V})}if(x!=null&&x.sonSyncContents){Array.isArray((D=x==null?void 0:x.sonSyncContents)==null?void 0:D[0])&&(x.sonSyncContents=(ne=x==null?void 0:x.sonSyncContents)==null?void 0:ne[0]);let Y=(ve=xt.value)==null?void 0:ve.find(V=>(V==null?void 0:V.condition)==="child");x.sonSyncContents=(se=x==null?void 0:x.sonSyncContents)==null?void 0:se.map(V=>{var K,Te,ee,ke,pe,$e;return((Te=V==null?void 0:V.menus)==null?void 0:Te[((K=V==null?void 0:V.menus)==null?void 0:K.length)-1])==="/"&&(Y==null?void 0:Y.parentContent)+"/"!==(V==null?void 0:V.menus)?V.menus=(V==null?void 0:V.menus)+(Y==null?void 0:Y.value):((ke=V==null?void 0:V.menus)==null?void 0:ke[((ee=V==null?void 0:V.menus)==null?void 0:ee.length)-1])==="/"&&(Y==null?void 0:Y.parentContent)+"/"===(V==null?void 0:V.menus)&&(V.menus=($e=V.menus)==null?void 0:$e.slice(0,((pe=V.menus)==null?void 0:pe.length)-1)),V})}if(x!=null&&x.relatedQuotes){Array.isArray((_e=x==null?void 0:x.relatedQuotes)==null?void 0:_e[0])&&(x.relatedQuotes=(ra=x==null?void 0:x.relatedQuotes)==null?void 0:ra[0]);let Y=(ba=xt.value)==null?void 0:ba.find(V=>(V==null?void 0:V.condition)==="child");x.relatedQuotes=($a=x==null?void 0:x.relatedQuotes)==null?void 0:$a.map(V=>{var K,Te,ee,ke,pe,$e;return((Te=V==null?void 0:V.menus)==null?void 0:Te[((K=V==null?void 0:V.menus)==null?void 0:K.length)-1])==="/"&&(Y==null?void 0:Y.parentContent)+"/"!==(V==null?void 0:V.menus)?V.menus=(V==null?void 0:V.menus)+(Y==null?void 0:Y.value):((ke=V==null?void 0:V.menus)==null?void 0:ke[((ee=V==null?void 0:V.menus)==null?void 0:ee.length)-1])==="/"&&(Y==null?void 0:Y.parentContent)+"/"===(V==null?void 0:V.menus)&&(V.menus=($e=V.menus)==null?void 0:$e.slice(0,((pe=V.menus)==null?void 0:pe.length)-1)),V})}x={filter:(Qe=(le=x==null?void 0:x.compData)==null?void 0:le.find(Y=>(Y==null?void 0:Y.key)==="filter"))==null?void 0:Qe.contents,key:x==null?void 0:x.comp,name:g,tableColumns:j,tableContents:P,menuFilter:x==null?void 0:x.menuFilter,fatherSyncContents:x==null?void 0:x.fatherSyncContents,relatedQuotes:x==null?void 0:x.relatedQuotes,sonSyncContents:x==null?void 0:x.sonSyncContents}}else{let P=(Re=(ka=(Ie=x==null?void 0:x.compData)==null?void 0:Ie.find(Y=>(Y==null?void 0:Y.key)==="formContent"))==null?void 0:ka.contents)==null?void 0:Re.map(Y=>(Y==null?void 0:Y.value)??"");P=[P];let j=(qe=(ze=(we=x==null?void 0:x.compData)==null?void 0:we.find(Y=>(Y==null?void 0:Y.key)==="formContent"))==null?void 0:ze.contents)==null?void 0:qe.map(Y=>(Y.value="",Y));x={contents:P,filter:(el=(Sa=x==null?void 0:x.compData)==null?void 0:Sa.find(Y=>(Y==null?void 0:Y.key)==="filter"))==null?void 0:el.contents,key:x==null?void 0:x.comp,name:g,value:j,fatherSyncContents:x==null?void 0:x.fatherSyncContents,relatedQuotes:x==null?void 0:x.relatedQuotes,sonSyncContents:x==null?void 0:x.sonSyncContents}}return x.isShow=!1,x}),S=await Promise.all(S);let $=[{key:"menuPath",contents:[{path:l,fatherPath:(_=(L=(A=ae==null?void 0:ae.data)==null?void 0:A.result)==null?void 0:L[0])==null?void 0:_.father_name,isShow:!1}]},{key:l,contents:S}];await z.createPlatFormDataApi({platId:parseInt((W=jr==null?void 0:jr.value)==null?void 0:W.plat_id),changeData:$});let N=await z.getPageDataApi({platId:parseInt((C=jr==null?void 0:jr.value)==null?void 0:C.plat_id),pageName:l});s=(M=N==null?void 0:N.data)==null?void 0:M.result}}n&&await qs(s,!!(r!=null&&r.originPath));let u=await Yi(s,r);return n&&(u=await tp(u)),u},Xi=async l=>{var t,s,u,k,h,v,y,c,E,A,L;let n=(t=l==null?void 0:l.menus)==null?void 0:t.join("/");l!=null&&l.endChildMenu&&(l==null?void 0:l.endChildMenu)!==""&&(n==null?void 0:n[(n==null?void 0:n.length)-1])==="/"&&(n=n+(l==null?void 0:l.endChildMenu)),(n==null?void 0:n[(n==null?void 0:n.length)-1])==="/"&&(n=n+((u=(s=l.value)==null?void 0:s.split(" "))==null?void 0:u[0]));let r=await Hr(n,!1);if(r=(k=r==null?void 0:r.filter(_=>{var W,C;return(_==null?void 0:_.name)===((C=l==null?void 0:l.groups)==null?void 0:C[((W=l==null?void 0:l.groups)==null?void 0:W.length)-1])}))==null?void 0:k[0],(v=(h=r==null?void 0:r.compData)==null?void 0:h.find(_=>(_==null?void 0:_.key)==="tableContents"))!=null&&v.contents){r=(c=(y=r==null?void 0:r.compData)==null?void 0:y.find(W=>(W==null?void 0:W.key)==="tableContents"))==null?void 0:c.contents;let _=((E=l==null?void 0:l.words)==null?void 0:E[0])??(l==null?void 0:l.prop);return r=r==null?void 0:r.filter(W=>{var C,M,ae;return(W==null?void 0:W[l!=null&&l.endChildMenu?_:l==null?void 0:l.prop])===(l!=null&&l.relatedWords&&((C=l==null?void 0:l.relatedWords)==null?void 0:C.length)>0?(ae=(M=l.value)==null?void 0:M.split(" "))==null?void 0:ae[0]:l.value)}),r==null?void 0:r[0]}else{let _=(L=(A=r==null?void 0:r.compData)==null?void 0:A.find(C=>(C==null?void 0:C.key)==="formContent"))==null?void 0:L.contents,W={};return _==null||_.forEach(C=>{W[C.prop]=C.value}),W}},op={key:0,class:"extra-button-content"},ip={class:"table-operator-wrap"},sp={key:0,class:"extra-button-filter"},cp={key:1,class:"extra-header"},up=["onClick"],dp={class:"table-op-text"},pp={class:"table-op-text"},fp={class:"drop-menu",style:{width:"120px"}},hp=["onClick"],vp={key:0},mp={key:1},yp=["onClick"],gp={class:"table-op-text"},bp={key:1,class:"extra-button-content tabs-button-wrapper"},kp={class:"table-operator-wrap"},xp={class:"extra-button-filter"},_p={key:0,class:"extra-header"},wp={class:"table-op-action"},Cp={class:"table-op-text"},Ep={class:"drop-menu",style:{width:"120px"}},Sp={key:0},Dp={key:1},Bp=["onClick"],Np={class:"table-op-text"},Tp={__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:()=>[]}},emits:["buttonClick","filter","getImportData"],setup(l,{emit:n}){const r=n,t=l,s=a.ref(""),u=a.ref(!1),k=a.ref([]),h=a.ref([{label:"清空",background:"#999999"},{label:"确认"}]),v=[{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 y(x,g){return x.map(H=>{const q={...H};return g.forEach(G=>{delete q[G]}),q})}function c(x){if(!x||x.t!=="n")return(x==null?void 0:x.v)??"";const g=x.v;if(x.z){const H=String(x.z).toLowerCase(),q=["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 Be of q)if(H.includes(Be))return E(g);const G=/[ymdhms]/.test(H),he=/^[0#\.\,\s]+$/.test(H.replace(/[\\\/\-:]/g,""));if(G&&!he)return E(g)}if(g>=1&&g<=73050){if(g<5e3)return g;if(g>=5e3&&g<4e4){const H=Math.floor((g-25569)/365.25)+1970;return H>=1970&&H<=2e3&&x.z&&/[ymd]/.test(String(x.z).toLowerCase())?E(g):g}if(g>=4e4)return E(g)}return g}function E(x){if(typeof x!="number")return x;try{const g=new Date((x-25569)*86400*1e3);if(isNaN(g.getTime()))return x;const H=g.getFullYear(),q=String(g.getMonth()+1).padStart(2,"0"),G=String(g.getDate()).padStart(2,"0");return`${H}-${q}-${G}`}catch{return x}}const A=x=>{const g=x.raw;if(!g)return;const H=new FileReader;H.onload=q=>{try{const G=new Uint8Array(q.target.result),he=Na.readSync(G,{type:"array"}),Be=he.SheetNames[0],xe=he.Sheets[Be],me=Na.utils.decode_range(xe["!ref"]).e.c+1,Z=new Array(me).fill(""),ue=[];for(const ne in xe){if(ne[0]==="!")continue;const{r:ve,c:se}=Na.utils.decode_cell(ne),_e=xe[ne];let ra=c(_e);if((ra==null||ra==="")&&(ra=""),ve===0)Z[se]=ra;else{if(!ue[ve-1]){ue[ve-1]={};for(let ba=0;ba<me;ba++)ue[ve-1][`col_${ba}`]=""}ue[ve-1][`col_${se}`]=ra}}for(let ne=0;ne<me;ne++)Z[ne]===void 0&&(Z[ne]="");const Ue=[];for(let ne=0;ne<Z.length;ne++)(!Z[ne]||Z[ne].toString().trim()==="")&&Ue.push(ne);let Ca,oe;(Ue==null?void 0:Ue.length)>0?(Za.ElMessage.warning("存在键为空的列,已自动过滤,请检查补充"),Ca=Z.filter((ne,ve)=>!Ue.includes(ve)),oe=y(ue,Ue==null?void 0:Ue.map(ne=>`col_${ne}`))):(Ca=Z,oe=ue);const D=ue==null?void 0:ue[0];if(!(D!=null&&D.hasOwnProperty("col_0")))return Za.ElMessage.error("导入的数据列不匹配,请检查是否错位");r("getImportData",Ca,oe)}catch(G){throw Za.ElMessage.error(G.message),new Error(G.message)}},H.readAsArrayBuffer(g)},L=x=>{var H;const g=(H=k.value)==null?void 0:H.reduce((q,G,he)=>(he===0?q[G.label]=x:q[G.label]=G==null?void 0:G.value,q),{});r("filter",g,x,!0)},_=(x,g={})=>{r("buttonClick",x,"",g)},W=x=>{var g,H;k.value=(H=(g=sa.getColumnChild(z.cloneDeep(x)))==null?void 0:g.filter(q=>(q==null?void 0:q.label)!==""&&(q==null?void 0:q.label)!=="操作"))==null?void 0:H.map(q=>({label:(q==null?void 0:q.label)??"",value:"",name:(q==null?void 0:q.prop)??"",isFormColHidden:q==null?void 0:q.isTableColHidden,width:2,prop:(q==null?void 0:q.prop)??""}))},C=a.ref(!1),M=x=>{var g;if((x==null?void 0:x.buttonName)==="确认"&&(r("filter",x==null?void 0:x.content),C.value=(x==null?void 0:x.content)&&Object.values(x==null?void 0:x.content).length>0),(x==null?void 0:x.buttonName)==="清空"){const H=z.cloneDeep(x==null?void 0:x.content);for(const q in H)H[q]="";k.value=(g=k.value)==null?void 0:g.map(q=>({...q,value:""})),r("filter",H),C.value=!1}u.value=!1},ae=()=>{u.value=!u.value},S=()=>{var g,H;k.value=(g=k.value)==null?void 0:g.map(q=>({...q,value:""}));const x=(H=k.value)==null?void 0:H.reduce((q,G)=>(q[G.label]=G.value,q),{});r("filter",x)},$=a.ref(null);let N;return N=x=>{var G;if(!u.value)return;const g=(G=$==null?void 0:$.value)==null?void 0:G.$el,H=g==null?void 0:g.contains(x.target);let q=!1;document.querySelectorAll(".el-popover, .el-popper").forEach(he=>{he.contains(x.target)&&(q=!0)}),!H&&!q&&(u.value=!1)},a.onMounted(()=>{document.addEventListener("click",N),W(t.columns)}),a.onBeforeUnmount(()=>{document.removeEventListener("click",N)}),a.watch(()=>t.columns,()=>{W(t.columns)},{deep:!0,immediate:!0}),(x,g)=>{var xe,te,me,Z,ue,Ue,Ca,oe;const H=a.resolveComponent("el-icon"),q=a.resolveComponent("svg-icon"),G=a.resolveComponent("el-input"),he=a.resolveComponent("el-upload"),Be=a.resolveComponent("el-button");return l.pageLayout==="vertical"?(a.openBlock(),a.createElementBlock("div",op,[a.createElementVNode("div",{class:a.normalizeClass(l.compName?"table-name-wrap":""),style:a.normalizeStyle({background:(t==null?void 0:t.level)>1?"transparent":"var(--ssgroup-background)",paddingLeft:((t==null?void 0:t.level)-1)*12+"px",fontWeight:600-((t==null?void 0:t.level)-1)*100>=400?600-((t==null?void 0:t.level)-1)*100:400,fontSize:17-(t==null?void 0:t.level)>=14?17-(t==null?void 0:t.level)+"px":"14px"})},a.toDisplayString(l.compName),7),a.createElementVNode("div",ip,[t!=null&&t.filterShow?(a.openBlock(),a.createElementBlock("div",sp,[a.createVNode(yu,{trigger:"contextmenu",ref_key:"popOverRef",ref:$,title:"",width:800,placement:"bottom-start",isVisible:u.value,"onUpdate:isVisible":g[4]||(g[4]=D=>u.value=D)},{reference:a.withCtx(()=>{var D,ne,ve,se;return[a.createVNode(G,{modelValue:s.value,"onUpdate:modelValue":g[0]||(g[0]=_e=>s.value=_e),style:{"min-width":"80px"},placeholder:C.value?(ve=(ne=(D=l.filterValues)==null?void 0:D.filter(_e=>_e))==null?void 0:ne.slice(0,3))==null?void 0:ve.join("/"):"搜索","prefix-icon":a.unref(Za.search_default),clearable:"",onInput:L,disabled:((se=k.value)==null?void 0:se.length)===0},{suffix:a.withCtx(()=>{var _e,ra;return[!s.value&&((ra=(_e=l.filterValues)==null?void 0:_e.filter(ba=>ba))!=null&&ra.join("/"))?(a.openBlock(),a.createBlock(H,{key:0,style:{cursor:"pointer"},onClick:S},{default:a.withCtx(()=>[a.createVNode(a.unref(Za.circle_close_default))]),_:1})):a.createCommentVNode("",!0)]}),append:a.withCtx(()=>[a.createElementVNode("span",{title:"条件查询",onClick:a.withModifiers(ae,["stop"])},[a.createVNode(q,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:a.withCtx(()=>[a.createElementVNode("div",{class:"form-content-value",onKeydown:g[1]||(g[1]=a.withModifiers(()=>{},["stop"])),onKeyup:g[2]||(g[2]=a.withModifiers(()=>{},["stop"])),onKeypress:g[3]||(g[3]=a.withModifiers(()=>{},["stop"]))},[(a.openBlock(),a.createBlock(ul.ssForm,{rowContents:k.value,buttonValue:h.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:h.value,isStartJustify:!1,onOnButtonClick:M},null,8,["rowContents","buttonValue"]))],32)]),_:1},8,["isVisible"])])):a.createCommentVNode("",!0),l.buttons&&((xe=l.buttons)==null?void 0:xe.length)>0?(a.openBlock(),a.createElementBlock("div",cp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((te=l.buttons)==null?void 0:te.filter(D=>l.isDevMode||(D==null?void 0:D.label)!=="修改模板"),(D,ne)=>{var ve;return a.openBlock(),a.createElementBlock("div",{class:"extra-contents",key:ne},[(D==null?void 0:D.type)==="upload"?(a.openBlock(),a.createBlock(he,{key:0,class:"upload-button-wrap","on-change":A,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1,disabled:!!l.lockingPage},{default:a.withCtx(()=>{var se;return[a.createElementVNode("div",{class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}]),onClick:_e=>_(D==null?void 0:D.label)},[a.createVNode(q,{class:"table-op-icon",name:(se=v==null?void 0:v.find(_e=>(_e==null?void 0:_e.label)===(D==null?void 0:D.label)))==null?void 0:se.icon},null,8,["name"]),a.createElementVNode("span",dp,a.toDisplayString(D==null?void 0:D.label),1)],10,up)]}),_:2},1032,["disabled"])):a.createCommentVNode("",!0),(D==null?void 0:D.type)==="popover"?(a.openBlock(),a.createBlock(ul._sfc_main,{key:1},{dropTitle:a.withCtx(()=>{var se;return[a.createElementVNode("div",{class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}])},[a.createVNode(q,{class:"table-op-icon",name:(se=v==null?void 0:v.find(_e=>(_e==null?void 0:_e.label)===(D==null?void 0:D.label)))==null?void 0:se.icon},null,8,["name"]),a.createElementVNode("span",pp,a.toDisplayString(D==null?void 0:D.label),1)],2)]}),dropMenu:a.withCtx(()=>[a.createElementVNode("div",fp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(D==null?void 0:D.contents,se=>{var _e,ra;return a.openBlock(),a.createElementBlock("div",{key:se==null?void 0:se.label,class:a.normalizeClass(["table-op-drop-item",{"is-disabled":!!l.lockingPage}]),onClick:ba=>!l.lockingPage&&_(se==null?void 0:se.label)},[a.createTextVNode(a.toDisplayString(se==null?void 0:se.label),1),(_e=se==null?void 0:se.label)!=null&&_e.includes("选中")?(a.openBlock(),a.createElementBlock("span",vp,"("+a.toDisplayString(l.selectNums)+")",1)):a.createCommentVNode("",!0),(ra=se==null?void 0:se.label)!=null&&ra.includes("全部")?(a.openBlock(),a.createElementBlock("span",mp,"("+a.toDisplayString(l.dataNums)+")",1)):a.createCommentVNode("",!0)],10,hp)}),128))])]),_:2},1024)):a.createCommentVNode("",!0),!(D!=null&&D.type)||(D==null?void 0:D.type)==="methodButton"?(a.openBlock(),a.createElementBlock("div",{key:2,id:"themeButton",class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}]),onClick:se=>!l.lockingPage&&_(D==null?void 0:D.label,D)},[a.createVNode(q,{class:"table-op-icon",name:(ve=v==null?void 0:v.find(se=>(se==null?void 0:se.label)===(D==null?void 0:D.label)))==null?void 0:ve.icon},null,8,["name"]),a.createElementVNode("span",gp,a.toDisplayString(D==null?void 0:D.label),1)],10,yp)):a.createCommentVNode("",!0)])}),128))])):a.createCommentVNode("",!0)])])):(a.openBlock(),a.createElementBlock("div",bp,[a.createElementVNode("div",kp,[a.createElementVNode("div",xp,[a.createVNode(G,{modelValue:s.value,"onUpdate:modelValue":g[5]||(g[5]=D=>s.value=D),style:{"min-width":"80px"},placeholder:C.value?(ue=(Z=(me=l.filterValues)==null?void 0:me.filter(D=>D))==null?void 0:Z.slice(0,3))==null?void 0:ue.join("/"):"搜索","prefix-icon":a.unref(Za.search_default),clearable:"",onInput:L,disabled:((Ue=k.value)==null?void 0:Ue.length)===0},{suffix:a.withCtx(()=>{var D,ne;return[!s.value&&((ne=(D=l.filterValues)==null?void 0:D.filter(ve=>ve))!=null&&ne.join("/"))?(a.openBlock(),a.createBlock(H,{key:0,style:{cursor:"pointer"},onClick:S},{default:a.withCtx(()=>[a.createVNode(a.unref(Za.circle_close_default))]),_:1})):a.createCommentVNode("",!0)]}),append:a.withCtx(()=>[a.createElementVNode("span",{title:"条件查询",onClick:a.withModifiers(ae,["stop"])},[a.createVNode(q,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]),l.buttons&&((Ca=l.buttons)==null?void 0:Ca.length)>0?(a.openBlock(),a.createElementBlock("div",_p,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((oe=l.buttons)==null?void 0:oe.filter(D=>l.isDevMode||(D==null?void 0:D.label)!=="修改模板"),(D,ne)=>{var ve;return a.openBlock(),a.createElementBlock("div",{class:"extra-contents",key:ne},[(D==null?void 0:D.type)==="upload"?(a.openBlock(),a.createBlock(he,{key:0,class:"upload-button-wrap","on-change":A,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1},{default:a.withCtx(()=>{var se;return[a.createElementVNode("div",wp,[a.createVNode(q,{class:"table-op-icon",name:(se=v==null?void 0:v.find(_e=>(_e==null?void 0:_e.label)===(D==null?void 0:D.label)))==null?void 0:se.icon},null,8,["name"]),a.createElementVNode("span",Cp,a.toDisplayString(D==null?void 0:D.label),1)])]}),_:2},1024)):a.createCommentVNode("",!0),(D==null?void 0:D.type)==="popover"?(a.openBlock(),a.createBlock(ul._sfc_main,{key:1},{dropTitle:a.withCtx(()=>[(D==null?void 0:D.type)==="popover"?(a.openBlock(),a.createBlock(Be,{key:0,style:{background:"transparent",color:"#000000"}},{icon:a.withCtx(()=>{var se;return[a.createVNode(q,{class:"table-op-icon",name:(se=v==null?void 0:v.find(_e=>(_e==null?void 0:_e.label)===(D==null?void 0:D.label)))==null?void 0:se.icon},null,8,["name"])]}),default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(D==null?void 0:D.label),1)]),_:2},1024)):a.createCommentVNode("",!0)]),dropMenu:a.withCtx(()=>[a.createElementVNode("div",Ep,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(D==null?void 0:D.contents,se=>(a.openBlock(),a.createBlock(Be,{key:se==null?void 0:se.label,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:_e=>_(se==null?void 0:se.label)},{default:a.withCtx(()=>{var _e,ra;return[a.createTextVNode(a.toDisplayString(se==null?void 0:se.label),1),(_e=se==null?void 0:se.label)!=null&&_e.includes("选中")?(a.openBlock(),a.createElementBlock("span",Sp,"("+a.toDisplayString(l.selectNums)+")",1)):a.createCommentVNode("",!0),(ra=se==null?void 0:se.label)!=null&&ra.includes("全部")?(a.openBlock(),a.createElementBlock("span",Dp,"("+a.toDisplayString(l.dataNums)+")",1)):a.createCommentVNode("",!0)]}),_:2},1032,["onClick"]))),128))])]),_:2},1024)):a.createCommentVNode("",!0),!(D!=null&&D.type)||(D==null?void 0:D.type)==="methodButton"?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}]),id:"themeButton",onClick:se=>!l.lockingPage&&_(D==null?void 0:D.label,D)},[a.createVNode(q,{class:"table-op-icon",name:(ve=v==null?void 0:v.find(se=>(se==null?void 0:se.label)===(D==null?void 0:D.label)))==null?void 0:ve.icon},null,8,["name"]),a.createElementVNode("span",Np,a.toDisplayString(D==null?void 0:D.label),1)],10,Bp)):a.createCommentVNode("",!0)])}),128))])):a.createCommentVNode("",!0)])]))}}},Ap=Ul._export_sfc(Tp,[["__scopeId","data-v-3a44c010"]]),Mp={__name:"index",props:{columns:Array,tableData:Array},setup(l){return(n,r)=>{const t=a.resolveComponent("el-table-column"),s=a.resolveComponent("el-table");return a.openBlock(),a.createBlock(s,{data:l.tableData,style:{width:"100%"},stripe:"","max-height":"500"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.columns,u=>{var k;return a.openBlock(),a.createBlock(t,{key:u==null?void 0:u.prop,label:u==null?void 0:u.label,prop:u==null?void 0:u.prop,fixed:(u==null?void 0:u.prop)==="operate"?"right":u==null?void 0:u.fixed,align:(u==null?void 0:u.align)??"left","show-overflow-tooltip":(u==null?void 0:u.showOverflowTooltip)??!0,width:u==null?void 0:u.width,"min-width":(u==null?void 0:u.minWidth)||((u==null?void 0:u.prop)==="operate"?80:(((k=u==null?void 0:u.label)==null?void 0:k.length)*2||4)*27)},{default:a.withCtx(h=>[a.renderSlot(n.$slots,"content",{row:h.row,column:h.column,$index:h.$index,scope:h}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(u.children,(v,y)=>(a.openBlock(),a.createBlock(ul._sfc_main$2,{key:y,column:v,tableData:l.tableData},a.createSlots({_:2},[a.renderList(n.$slots,(c,E)=>({name:E,fn:a.withCtx(({row:A,slotData:L,item:_,column:W})=>[a.renderSlot(n.$slots,E,a.mergeProps({ref_for:!0},L??A,{item:_??v,slotData:L??A,row:A,column:W,columnProp:v}))])}))]),1032,["column","tableData"]))),128))]),_:2},1032,["label","prop","fixed","align","show-overflow-tooltip","width","min-width"])}),128))]),_:3},8,["data"])}}};class zp extends Na.Loader{constructor(n){super(n),this.littleEndian=!0}load(n,r,t,s){const u=this,k=new Na.FileLoader(u.manager);k.setPath(u.path),k.setResponseType("arraybuffer"),k.setRequestHeader(u.requestHeader),k.setWithCredentials(u.withCredentials),k.load(n,function(h){try{r(u.parse(h))}catch(v){s?s(v):console.error(v),u.manager.itemError(n)}},t,s)}_getDataView(n,r,t,s){switch(t){case"F":return s===8?n.getFloat64(r,this.littleEndian):n.getFloat32(r,this.littleEndian);case"I":return s===1?n.getInt8(r):s===2?n.getInt16(r,this.littleEndian):n.getInt32(r,this.littleEndian);case"U":return s===1?n.getUint8(r):s===2?n.getUint16(r,this.littleEndian):n.getUint32(r,this.littleEndian)}}parse(n){function r(L,_){const W=L.length,C=new Uint8Array(_);let M=0,ae=0,S,$,N;do if(S=L[M++],S<32){if(S++,ae+S>_)throw new Error("Output buffer is not large enough");if(M+S>W)throw new Error("Invalid compressed data");do C[ae++]=L[M++];while(--S)}else{if($=S>>5,N=ae-((S&31)<<8)-1,M>=W)throw new Error("Invalid compressed data");if($===7&&($+=L[M++],M>=W))throw new Error("Invalid compressed data");if(N-=L[M++],ae+$+2>_)throw new Error("Output buffer is not large enough");if(N<0)throw new Error("Invalid compressed data");if(N>=ae)throw new Error("Invalid compressed data");do C[ae++]=C[N++];while(--$+2)}while(M<W);return C}function t(L){const _={},W=new Uint8Array(L);let C="",M="",ae=0,S=!1;const $=W.length;for(;ae<$&&S===!1;){const H=String.fromCharCode(W[ae++]);H===`
2
- `||H==="\r"?(M.trim().toLowerCase().startsWith("data")&&(S=!0),M=""):M+=H,C+=H}const N=C.search(/[\r\n]DATA\s(\S*)\s/i),x=/[\r\n]DATA\s(\S*)\s/i.exec(C.slice(N-1));if(_.data=x[1],_.headerLen=x[0].length+N,_.str=C.slice(0,_.headerLen),_.str=_.str.replace(/#.*/gi,""),_.version=/^VERSION (.*)/im.exec(_.str),_.fields=/^FIELDS (.*)/im.exec(_.str),_.size=/^SIZE (.*)/im.exec(_.str),_.type=/^TYPE (.*)/im.exec(_.str),_.count=/^COUNT (.*)/im.exec(_.str),_.width=/^WIDTH (.*)/im.exec(_.str),_.height=/^HEIGHT (.*)/im.exec(_.str),_.viewpoint=/^VIEWPOINT (.*)/im.exec(_.str),_.points=/^POINTS (.*)/im.exec(_.str),_.version!==null&&(_.version=parseFloat(_.version[1])),_.fields=_.fields!==null?_.fields[1].split(" "):[],_.type!==null&&(_.type=_.type[1].split(" ")),_.width!==null&&(_.width=parseInt(_.width[1])),_.height!==null&&(_.height=parseInt(_.height[1])),_.viewpoint!==null&&(_.viewpoint=_.viewpoint[1]),_.points!==null&&(_.points=parseInt(_.points[1],10)),_.points===null&&(_.points=_.width*_.height),_.size!==null&&(_.size=_.size[1].split(" ").map(function(H){return parseInt(H,10)})),_.count!==null)_.count=_.count[1].split(" ").map(function(H){return parseInt(H,10)});else{_.count=[];for(let H=0,q=_.fields.length;H<q;H++)_.count.push(1)}_.offset={};let g=0;for(let H=0,q=_.fields.length;H<q;H++)_.data==="ascii"?_.offset[_.fields[H]]=H:(_.offset[_.fields[H]]=g,g+=_.size[H]*_.count[H]);return _.rowSize=g,_}const s=t(n),u=[],k=[],h=[],v=[],y=[],c=new Na.Color;if(s.data==="ascii"){const L=s.offset,C=new TextDecoder().decode(n).slice(s.headerLen).split(`
3
- `);for(let M=0,ae=C.length;M<ae;M++){if(C[M]==="")continue;const S=C[M].split(" ");if(L.x!==void 0&&(u.push(parseFloat(S[L.x])),u.push(parseFloat(S[L.y])),u.push(parseFloat(S[L.z]))),L.rgb!==void 0){const $=s.fields.findIndex(he=>he==="rgb"),N=s.type[$],x=parseFloat(S[L.rgb]);let g=x;if(N==="F"){const he=new Float32Array(1);he[0]=x,g=new Int32Array(he.buffer)[0]}const H=(g>>16&255)/255,q=(g>>8&255)/255,G=(g>>0&255)/255;c.setRGB(H,q,G,Na.SRGBColorSpace),h.push(c.r,c.g,c.b)}L.normal_x!==void 0&&(k.push(parseFloat(S[L.normal_x])),k.push(parseFloat(S[L.normal_y])),k.push(parseFloat(S[L.normal_z]))),L.intensity!==void 0&&v.push(parseFloat(S[L.intensity])),L.label!==void 0&&y.push(parseInt(S[L.label]))}}if(s.data==="binary_compressed"){const L=new Uint32Array(n.slice(s.headerLen,s.headerLen+8)),_=L[0],W=L[1],C=r(new Uint8Array(n,s.headerLen+8,_),W),M=new DataView(C.buffer),ae=s.offset;for(let S=0;S<s.points;S++){if(ae.x!==void 0){const $=s.fields.indexOf("x"),N=s.fields.indexOf("y"),x=s.fields.indexOf("z");u.push(this._getDataView(M,s.points*ae.x+s.size[$]*S,s.type[$],s.size[$])),u.push(this._getDataView(M,s.points*ae.y+s.size[N]*S,s.type[N],s.size[N])),u.push(this._getDataView(M,s.points*ae.z+s.size[x]*S,s.type[x],s.size[x]))}if(ae.rgb!==void 0){const $=s.fields.indexOf("rgb"),N=M.getUint8(s.points*ae.rgb+s.size[$]*S+2)/255,x=M.getUint8(s.points*ae.rgb+s.size[$]*S+1)/255,g=M.getUint8(s.points*ae.rgb+s.size[$]*S+0)/255;c.setRGB(N,x,g,Na.SRGBColorSpace),h.push(c.r,c.g,c.b)}if(ae.normal_x!==void 0){const $=s.fields.indexOf("normal_x"),N=s.fields.indexOf("normal_y"),x=s.fields.indexOf("normal_z");k.push(this._getDataView(M,s.points*ae.normal_x+s.size[$]*S,s.type[$],s.size[$])),k.push(this._getDataView(M,s.points*ae.normal_y+s.size[N]*S,s.type[N],s.size[N])),k.push(this._getDataView(M,s.points*ae.normal_z+s.size[x]*S,s.type[x],s.size[x]))}if(ae.intensity!==void 0){const $=s.fields.indexOf("intensity");v.push(this._getDataView(M,s.points*ae.intensity+s.size[$]*S,s.type[$],s.size[$]))}if(ae.label!==void 0){const $=s.fields.indexOf("label");y.push(M.getInt32(s.points*ae.label+s.size[$]*S,this.littleEndian))}}}if(s.data==="binary"){const L=new DataView(n,s.headerLen),_=s.offset;for(let W=0,C=0;W<s.points;W++,C+=s.rowSize){if(_.x!==void 0){const M=s.fields.indexOf("x"),ae=s.fields.indexOf("y"),S=s.fields.indexOf("z");u.push(this._getDataView(L,C+_.x,s.type[M],s.size[M])),u.push(this._getDataView(L,C+_.y,s.type[ae],s.size[ae])),u.push(this._getDataView(L,C+_.z,s.type[S],s.size[S]))}if(_.rgb!==void 0){const M=L.getUint8(C+_.rgb+2)/255,ae=L.getUint8(C+_.rgb+1)/255,S=L.getUint8(C+_.rgb+0)/255;c.setRGB(M,ae,S,Na.SRGBColorSpace),h.push(c.r,c.g,c.b)}if(_.normal_x!==void 0){const M=s.fields.indexOf("normal_x"),ae=s.fields.indexOf("normal_y"),S=s.fields.indexOf("normal_z");k.push(this._getDataView(L,C+_.normal_x,s.type[M],s.size[M])),k.push(this._getDataView(L,C+_.normal_y,s.type[ae],s.size[ae])),k.push(this._getDataView(L,C+_.normal_z,s.type[S],s.size[S]))}if(_.intensity!==void 0){const M=s.fields.indexOf("intensity");v.push(this._getDataView(L,C+_.intensity,s.type[M],s.size[M]))}_.label!==void 0&&y.push(L.getInt32(C+_.label,this.littleEndian))}}const E=new Na.BufferGeometry;u.length>0&&E.setAttribute("position",new Na.Float32BufferAttribute(u,3)),k.length>0&&E.setAttribute("normal",new Na.Float32BufferAttribute(k,3)),h.length>0&&E.setAttribute("color",new Na.Float32BufferAttribute(h,3)),v.length>0&&E.setAttribute("intensity",new Na.Float32BufferAttribute(v,1)),y.length>0&&E.setAttribute("label",new Na.Int32BufferAttribute(y,1)),E.computeBoundingSphere();const A=new Na.PointsMaterial({size:.005});return h.length>0&&(A.vertexColors=!0),new Na.Points(E,A)}}const Op=z.useModelComp(z.pinia),{systemPath:Zi}=z.storeToRefs(Op),so=a.ref(),Qi=new WeakMap;function Ip(l,n,r,t,s){const u=async A=>{try{const L=await z.platformDownloadFile({url:A});if(L.status!==200)throw new Error(`下载失败: ${L.status}`);return L.data}catch(L){throw console.error("addModelFromUrl失败:",L),L}},k=A=>new Promise((L,_)=>{const W=new FileReader;W.onload=C=>{try{const M=C.target.result,S=new Sn.MTLLoader().parse(M);S.preload(),L(S)}catch(M){_(M)}},W.onerror=()=>{_(new Error("MTL文件读取失败"))},W.readAsText(A)}),h=async A=>{const L={materials:{},create:function(_){return this.materials[_]?this.materials[_]:(console.warn(`Material '${_}' not found, using default material`),new Na.MeshPhongMaterial({color:8947848,side:Na.DoubleSide}))},getAsArray:function(){const _=[];for(const W in this.materials)_.push(this.materials[W]);return _},preload:function(){for(const _ in this.materials)this.materials[_].map&&(this.materials[_].map.needsUpdate=!0)}};for(const _ of A){const W=await k(_);Object.assign(L.materials,W.materials)}return L.preload(),L},v=async(A,L=[])=>new Promise((_,W)=>{const C=new FileReader;C.onload=async M=>{try{const ae=M.target.result;let S=null;L&&L.length>0&&(L.length===1?S=await k(L[0]):S=await h(L));const $=new Sn.OBJLoader;S&&$.setMaterials(S);const N=$.parse(ae);S||N.traverse(x=>{x.isMesh&&(x.material=new Na.MeshPhongMaterial({color:8947848,side:Na.DoubleSide}))}),_(N)}catch(ae){W(ae)}},C.onerror=()=>{W(new Error("OBJ文件读取失败"))},C.readAsText(A)}),y=async A=>{var L;try{r.value=!0;const{scene:_}=l();if(!_)throw new Error("Scene not initialized");s();const W=[];for(let C=0;C<A.length;C++){const M=A[C];t.value=`正在加载模型 ${C+1}/${A.length}...`;const ae=await u(M.objUrl),S=((L=M.objUrl)==null?void 0:L.split("/").pop())||`model_${C}.obj`,$=new File([ae],S,{type:ae.type});let N=[];if(M.mtlUrls){const g=Array.isArray(M.mtlUrls)?M.mtlUrls:[M.mtlUrls];for(let H=0;H<g.length;H++){const q=g[H],G=await u(q),he=(q==null?void 0:q.split("/").pop())||`material_${C}_${H}.mtl`,Be=new File([G],he,{type:G.type});N.push(Be)}}const x=await v($,N);_.add(x),n.value.push(x),W.push(x)}return r.value=!1,W}catch(_){throw console.error("加载模型失败:",_),r.value=!1,_}},c=async(A,L,_=[],W=[])=>{let C;const M=A.toLowerCase();switch(M){case".txt":case".cpt":case".obj":const ae=await L.text();if(M===".txt"||M===".cpt"){const le=/^(?!.*\bf\b)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?$/gm,Ie=[...ae.matchAll(le)].map(we=>({x:parseFloat(we[1]),y:parseFloat(we[2]),z:parseFloat(we[3])})),ka=new Na.BufferGeometry,Re=Ie.flatMap(we=>[we.x,we.y,we.z]);if(ka.setAttribute("position",new Na.Float32BufferAttribute(Re,3)),M===".txt"){const we=new Na.PointsMaterial({color:"#5B5C99",size:1,sizeAttenuation:!1});C=new Na.Points(ka,we)}else if(M===".cpt"){const we=new Na.LineBasicMaterial({color:"#5B5C99",linewidth:100});C=new Na.Line(ka,we)}}else if(M===".obj"){const le=new Sn.OBJLoader;if(_&&_.length>0){const Qe=new Sn.MTLLoader;for(const Ie of _){const ka=await Ie.text(),Re=Qe.parse(ka);Re.preload(),le.setMaterials(Re);break}}C=le.parse(ae),(!_||_.length===0)&&C.traverse(Qe=>{Qe.isMesh&&(Qe.material=new Na.MeshPhongMaterial({color:"#B3B3D4"})),Qe instanceof Na.Mesh&&(Qe.material.side=Na.DoubleSide)})}break;case".stl":const S=await L.arrayBuffer(),N=new Sn.STLLoader().parse(S),x=new Na.MeshPhongMaterial({color:"#B3B3D4",side:Na.DoubleSide});C=new Na.Mesh(N,x);break;case".nc":const g=["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"],H={"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)"},q=new Na.Group,G=g.map(le=>new Promise((Qe,Ie)=>{new Sn.STLLoader().load(Zi.value===""?`/model/${le}`:`${Zi.value}\\${le}`,Re=>{const we=new Na.MeshPhongMaterial({color:H[le]||"#B3B3D4",side:Na.DoubleSide}),ze=new Na.Mesh(Re,we);Qe(ze)},void 0,Ie)}));try{(await Promise.all(G)).forEach(Qe=>q.add(Qe)),C=q}catch(le){throw console.error("加载NC文件对应的STL文件失败:",le),new Error("无法加载.NC文件对应的STL文件")}break;case".pcd":const he=new zp,Be=new Na.Group;try{const le=await Za.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/target.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),Qe=new Blob([le.data],{type:"application/octet-stream;charset=UTF-8"}),Ie=await Za.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/final.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),ka=new Blob([Ie.data],{type:"application/octet-stream;charset=UTF-8"}),Re=await new Promise((ze,qe)=>{const Sa=URL.createObjectURL(Qe);he.load(Sa,el=>{const P=new Float32Array(el.geometry.attributes.position.count*3);for(let j=0;j<el.geometry.attributes.position.count;j++)P[j*3]=1,P[j*3+1]=0,P[j*3+2]=0;el.geometry.setAttribute("color",new Na.BufferAttribute(P,3)),el.material.vertexColors=!0,el.scale.set(.3,.3,.3),URL.revokeObjectURL(Sa),ze(el)},void 0,qe)}),we=await new Promise((ze,qe)=>{const Sa=URL.createObjectURL(ka);he.load(Sa,el=>{const P=new Float32Array(el.geometry.attributes.position.count*3);for(let j=0;j<el.geometry.attributes.position.count;j++)P[j*3]=0,P[j*3+1]=1,P[j*3+2]=0;el.geometry.setAttribute("color",new Na.BufferAttribute(P,3)),el.material.vertexColors=!0,el.scale.set(.3,.3,.3),URL.revokeObjectURL(Sa),ze(el)},void 0,qe)});Be.add(Re),Be.add(we),C=Be}catch(le){throw console.error("PCD文件加载失败:",le),new Error("无法加载PCD文件")}break;case".urdf":const xe=URL.createObjectURL(L),te=new fu.URDFLoader,me="http://139.196.154.85:20026/chfs/shared/机器人/urdf/SmallBender_R-2000iC-165F/meshes",Z={maxConcurrentLoads:4,enableCache:!0,enableLOD:!0,simplifyGeometry:!0,shareMaterials:!0,enableInstancing:!0},ue=new WeakMap,Ue=new WeakMap,Ca=new WeakMap,oe=async le=>{if(ue.has(le))return console.log(`从缓存加载: ${le}`),ue.get(le);try{const Qe=await Za.axios.get(`${me}/${le}`,{responseType:"blob",headers:{"Content-Type":"application/json"},timeout:6e5}),Ie=new Blob([Qe.data],{type:"application/octet-stream;charset=UTF-8"});return Z.enableCache&&ue.set(le,Ie),Ie}catch(Qe){throw console.error(`加载文件失败: ${le}`,Qe),new Error(`无法加载文件: ${le}`)}},D=(le="default")=>{if(Ue.has(le))return Ue.get(le);const Qe=new Na.MeshPhongMaterial({color:12303291,shininess:30,transparent:!1,alphaTest:.1,side:Na.FrontSide});return Ue.set(le,Qe),Qe},ne=le=>{try{le.isBufferGeometry&&le.mergeVertices&&le.mergeVertices(),le.computeVertexNormals&&le.computeVertexNormals(),le.computeBoundingSphere&&le.computeBoundingSphere(),le.deleteAttribute&&le.deleteAttribute("uv2")}catch(Qe){console.warn("几何体优化失败,使用原始几何体:",Qe)}return le},ve=async(le,Qe,Ie)=>{const ka=`stl_${Qe}`;if(Ca.has(ka)){const qe=Ca.get(ka);return new Na.Mesh(qe,D())}const Re=await le.arrayBuffer();let ze=new Sn.STLLoader(Ie).parse(Re);return ze=ne(ze),Ca.set(ka,ze),new Na.Mesh(ze,D())},se=async(le,Qe,Ie)=>{const ka=`obj_${Qe}`;if(ue.has(ka))return ue.get(ka).clone();const Re=await le.text(),we=new Sn.OBJLoader(Ie),ze=Qe.replace(".obj",".mtl");try{const el=await(await oe(ze)).text(),j=new Sn.MTLLoader(Ie).parse(el);j.preload(),we.setMaterials(j)}catch{console.warn(`MTL文件加载失败,使用默认材质: ${ze}`)}const qe=we.parse(Re);return qe.traverse(Sa=>{Sa.isMesh&&(Sa.geometry=ne(Sa.geometry),Sa.castShadow=!0,Sa.receiveShadow=!0,Sa.renderOrder=1)}),ue.set(ka,qe),qe},_e=(le,Qe)=>{const Ie=new Na.LOD;if(Ie.addLevel(le,0),le.geometry){const ka=le.geometry.clone(),Re=new Na.Mesh(ka,le.material);Ie.addLevel(Re,50)}return Ie};let ra=0,ba=0;const $a=[];te.loadMeshCb=async(le,Qe,Ie,ka,Re)=>{const we=le.split("/").pop(),ze=Ie||(()=>{});ra++;const qe=new Promise(async(Sa,el)=>{try{const P=await oe(we);if(!P||P.size===0)throw new Error(`文件为空: ${we}`);const j=we.split(".").pop().toLowerCase();let Y;switch(j){case"stl":Y=await ve(P,we,Qe);break;case"obj":Y=await se(P,we,Qe);break;default:throw new Error(`不支持的文件格式: ${j}`)}Z.enableLOD&&Y.isMesh&&(Y=_e(Y,we)),ze(Y),ba++,ka&&ka({loaded:ba,total:ra,progress:ba/ra}),Sa(Y)}catch(P){console.error(`mesh文件加载失败: ${we}`,P);const j=new Na.Group;ze(j),Sa(j);const Y=new Na.BoxGeometry(.1,.1,.1),V=new Na.MeshStandardMaterial({color:16711680,wireframe:!0});return new Na.Mesh(Y,V)}});$a.push(qe)};try{if(!xe){so.value=void 0;break}if(C=await te.loadAsync(xe),console.log(`URDF文件加载完成,等待${ra}个mesh文件加载...`),$a.length>0)try{await Promise.allSettled($a),console.log(`所有mesh文件处理完成,成功加载: ${ba}/${ra}`)}catch(Ie){console.warn("部分mesh文件加载失败,但继续显示模型",Ie)}C.traverse(Ie=>{Ie.isMesh&&(Ie.castShadow=!0,Ie.receiveShadow=!0,Ie.renderOrder=1,Ie.material&&(Ie.material.needsUpdate=!0))}),console.time("计算包围盒");const le=new Na.Box3;le.expandByObject(C);const Qe=`urdf_${Date.now()}`;C.userData.boundingBox=le.clone(),C.userData.modelId=Qe,Qi.set(Qe,{box:le.clone(),center:le.getCenter(new Na.Vector3),size:le.getSize(new Na.Vector3),maxSize:Math.max(...le.getSize(new Na.Vector3).toArray())}),so.value=C,console.log("URDF模型加载完成并优化")}catch(le){console.error("URDF加载失败:",le),so.value=void 0}finally{xe&&URL.revokeObjectURL(xe)}break;default:throw new Error(`不支持的文件格式: ${A}`)}return C};return{addModelsFromUrls:y,loadModelByDefaultPath:async A=>{console.log(A);try{r.value=!0,t.value="正在加载模型...";const{scene:L}=l();if(!L)throw new Error("Scene not initialized");s(),await new Promise(W=>setTimeout(W,100));const _=[];for(let W=0;W<A.length;W++){const C=A[W],M=await c(C.suffix,C.blob,C.mtlBlobs||[],C.meshFiles||[]);M&&(L.add(M),n.value.push(M),_.push(M))}return r.value=!1,t.value="",_}catch(L){throw console.error("加载模型失败:",L),r.value=!1,t.value="",L}},urdfModel:so,modelBoundingBoxes:Qi}}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>',(l=>{var n=(r=(r=document.getElementsByTagName("script"))[r.length-1]).getAttribute("data-injectcss"),r=r.getAttribute("data-disable-injectsvg");if(!r){var t,s,u,k,h,v=function(E,A){A.parentNode.insertBefore(E,A)};if(n&&!l.__iconfont__svg__cssinject__){l.__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(E){console&&console.log(E)}}t=function(){var E,A=document.createElement("div");A.innerHTML=l._iconfont_svg_string_4827314,(A=A.getElementsByTagName("svg")[0])&&(A.setAttribute("aria-hidden","true"),A.style.position="absolute",A.style.width=0,A.style.height=0,A.style.overflow="hidden",A=A,(E=document.body).firstChild?v(A,E.firstChild):E.appendChild(A))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(t,0):(s=function(){document.removeEventListener("DOMContentLoaded",s,!1),t()},document.addEventListener("DOMContentLoaded",s,!1)):document.attachEvent&&(u=t,k=l.document,h=!1,c(),k.onreadystatechange=function(){k.readyState=="complete"&&(k.onreadystatechange=null,y())})}function y(){h||(h=!0,u())}function c(){try{k.documentElement.doScroll("left")}catch{return void setTimeout(c,50)}y()}})(window);const Lp={class:"statistics-cards-container"},Vp={class:"statistics-label"},Rp=["onClick"],$p=a.defineComponent({__name:"index",props:{items:{default:()=>[]},disabled:{type:Boolean,default:!1}},setup(l){const n=l,r=a.ref(null),t=y=>ul.getComponent(y),s=y=>{if(!y)return;const c=y.querySelector("input, textarea, .el-input__inner");c&&typeof c.focus=="function"&&c.focus()},u=(y,c,E)=>{n.disabled||y.field&&(r.value=c,a.nextTick(()=>{s(E.currentTarget)}))},k=()=>{r.value=null},h=y=>{var E;const c=((E=y==null?void 0:y.field)==null?void 0:E.value)??(y==null?void 0:y.value);return c==null||c===""?"-":c},v=y=>{const c=y!=null&&y.width&&y.width>0?y.width:1,A=`calc((100% - ${(c-1)*16}px) / ${c})`;return{flex:`0 0 ${A}`,maxWidth:A,minWidth:"140px",boxSizing:"border-box"}};return(y,c)=>(a.openBlock(),a.createElementBlock("div",Lp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(y.items,(E,A)=>{var L,_,W,C,M,ae,S,$;return a.openBlock(),a.createElementBlock("div",{class:"statistics-card",key:A,style:a.normalizeStyle(v(E))},[a.createElementVNode("div",Vp,a.toDisplayString(E==null?void 0:E.label),1),a.createElementVNode("div",{class:"statistics-value",onClick:N=>u(E,A,N)},[r.value===A&&E.field?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t(((L=E.field)==null?void 0:L.type)??"Input")),{key:0,modelValue:E.field.value,"onUpdate:modelValue":N=>E.field.value=N,isEdit:!0,disabled:(_=E.field)==null?void 0:_.disabled,content:((W=E.field)==null?void 0:W.contents)??[],optionUrl:E.field,originalValue:(C=E.field)==null?void 0:C.value,config:(M=E.field)==null?void 0:M.config,configModel:((ae=E.field)==null?void 0:ae.prop)??((S=E.field)==null?void 0:S.name),selectedTagList:(($=E.field)==null?void 0:$.selectValue)??[],onBlur:k,onBlurChange:k},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(h(E)),1)],64))],8,Rp)],4)}),128))]))}}),Pp=Ul._export_sfc($p,[["__scopeId","data-v-5df1828e"]]),Ks=z.defineStore("formToTableComp",{state:()=>({selectArray:[],selectString:""}),actions:{setSelectArray(l){this.selectArray=l},setSelectString(l){this.selectString=l}}}),Fp={class:"calculator-content"},jp={class:"calculator-child"},Hp={class:"calculator-child"},Up=a.defineComponent({__name:"calculator",setup(l){const n=a.ref(),r=a.ref();return a.onMounted(()=>{n.value=[{type:"Upload",label:"输入",name:"input"}],r.value=[{type:"Upload",label:"输出",name:"output"}]}),(t,s)=>(a.openBlock(),a.createElementBlock("div",Fp,[a.createElementVNode("div",jp,[a.createVNode(ul.ssForm,{rowContents:n.value,isRowFlex:!0},null,8,["rowContents"])]),a.createElementVNode("div",Hp,[a.createVNode(ul.ssForm,{rowContents:r.value,isEdit:!1,isRowFlex:!0},null,8,["rowContents"])])]))}}),qp=Ul._export_sfc(Up,[["__scopeId","data-v-73db0fe7"]]),ii=(l,n)=>{let r=l,t=n;return Array.isArray(r)&&(r=r==null?void 0:r.map((s,u)=>{if(Array.isArray(s)){let k={};return s=s==null?void 0:s.forEach((h,v)=>{var y;(y=t==null?void 0:t[v])!=null&&y.prop?k[t[v].prop]=h:Array.isArray(h)&&(k.children=ii(h,t))}),Object.assign(k,{id:u})}else return s})),r},Ws=(l,n,r)=>{let t=l,s=n;return t=t==null?void 0:t.map((u,k)=>{var h,v;return!Array.isArray(u)||!((h=s==null?void 0:s[k])!=null&&h.label)&&!r||(u.unshift(((v=s==null?void 0:s[k])==null?void 0:v.label)??""),u.some(y=>Array.isArray(y))&&(u=u==null?void 0:u.map(y=>{var c;return Array.isArray(y)&&(y=Ws(y,(c=s==null?void 0:s[k])==null?void 0:c.children,r)),y}))),u}),t},Kp=(l,n,r)=>{if(n==="")return l==null?void 0:l.filter(t=>(t==null?void 0:t.id)!==r);{const t=n.split("-");return Wp(l,t,r)}},Wp=(l,n,r)=>{let t=l,s=n;return(s==null?void 0:s.length)===0?t=t==null?void 0:t.filter(u=>u.id!==r):t=t==null?void 0:t.map(u=>(u.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),u=Ys(u,s,r)),u)),t},Ys=(l,n,r)=>{var u,k;let t=l,s=n;return(s==null?void 0:s.length)===0?t.children=(u=t.children)==null?void 0:u.filter(h=>h.id!==r):t.children=(k=t.children)==null?void 0:k.map(h=>(h.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),h=Ys(h,s,r)),h)),t},Yp=(l,n,r)=>{if(n==="")return r;{const t=n.split("-");return Jp(l,t,r)}},Jp=(l,n,r)=>{let t=l,s=n;return(s==null?void 0:s.length)===0?t=r:t=t==null?void 0:t.map(u=>(u.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),u=Js(u,s,r)),u)),t},Js=(l,n,r)=>{var u;let t=l,s=n;return(s==null?void 0:s.length)===0?t.children=r:t.children=(u=t.children)==null?void 0:u.map(k=>(k.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),k=Js(k,s,r)),k)),t};class Gp{constructor(n={}){Vr(this,"url");Vr(this,"heartbeatInterval");Vr(this,"socket",null);Vr(this,"isConnected",!1);Vr(this,"heartTimer",null);Vr(this,"canvas",null);Vr(this,"ctx",null);Vr(this,"mainCamCutMode",0);Vr(this,"pMainShowStartX",0);Vr(this,"pMainShowStartY",0);Vr(this,"onLog");Vr(this,"onDevCount");Vr(this,"onResolution");Vr(this,"onCameraStatus");Vr(this,"onPhoto");this.url=n.url??"ws://127.0.0.1:22225",this.heartbeatInterval=n.heartbeatInterval??3e3}init(n,r,t){var k;(k=this.canvas)!=null&&k.parentNode&&this.canvas.parentNode.removeChild(this.canvas);const s=document.createElement("canvas");s.style.border="solid 1px #A0A0A0",s.id="MainCamCanvas",s.width=r,s.height=t;const u=s.getContext("2d");if(!u)throw new Error("无法获取 CanvasRenderingContext2D");n.appendChild(s),this.canvas=s,this.ctx=u}async connect(){this.socket&&(this.socket.readyState===WebSocket.OPEN||this.socket.readyState===WebSocket.CONNECTING)||await new Promise((n,r)=>{const t=new WebSocket(this.url);t.binaryType="arraybuffer",t.onopen=()=>{this.socket=t,this.isConnected=!0,this.startHeartbeat(),this.log("socket.onopen"),n()},t.onerror=s=>{this.isConnected=!1,this.log("socket.onerror"),r(s)},t.onclose=()=>{this.isConnected=!1,this.stopHeartbeat(),this.log("socket.onclose")},t.onmessage=s=>{this.handleMessage(s)}})}destroy(){var n;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,(n=this.canvas)!=null&&n.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.canvas=null,this.ctx=null}getDevCount(){this.sendBytes(new Uint8Array([119,136,80]))}getResolution(n=0){this.sendBytes(new Uint8Array([119,136,81,n]))}chooseResolution(n){if(!Array.isArray(n)||n.length===0)return null;const r=n.find(s=>s.width===2592&&s.height===1944);return r||[...n].sort((s,u)=>u.width*u.height-s.width*s.height)[0]||null}openCamera(n=0,r=1280,t=720){if(!this.canvas)throw new Error("请先 init() 传入容器并创建 canvas");const s=new Uint8Array(12);s[0]=119,s[1]=136,s[2]=1,s[3]=n,s[4]=this.canvas.width>>8&255,s[5]=this.canvas.width&255,s[6]=this.canvas.height>>8&255,s[7]=this.canvas.height&255,s[8]=r>>8&255,s[9]=r&255,s[10]=t>>8&255,s[11]=t&255,this.sendBytes(s)}closeCamera(){this.sendBytes(new Uint8Array([119,136,2,0]))}photo(){const s=new Uint8Array(12);s[0]=119,s[1]=136,s[2]=16,s[3]=0,s[4]=0,s[5]=0,s[6]=0,s[7]=0,s[8]=1,s[9]=0,s[10]=0,s[11]=0,this.sendBytes(s)}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(n){var r;(r=this.onLog)==null||r.call(this,n)}sendBytes(n){if(!this.socket||this.socket.readyState!==WebSocket.OPEN||!this.isConnected)throw new Error("socket 未连接");this.socket.send(n.buffer)}startHeartbeat(){this.stopHeartbeat(),this.heartTimer=window.setInterval(()=>{this.log("heartCheck...........")},this.heartbeatInterval)}stopHeartbeat(){this.heartTimer&&(clearInterval(this.heartTimer),this.heartTimer=null)}handleMessage(n){var s,u,k,h,v,y;const r=new Uint8Array(n.data);if(r.length<=0)return;if(r[0]===17&&r[1]===17&&r[2]===17){this.log("heart socket!!!!");return}if(r[0]!==85||r[1]!==102)return;const t=r[2];if(t===80){const c=r[3],E=r.length-4,A=new Uint8Array(E);for(let W=0;W<E;W++)A[W]=r[4+W];const _=decodeURIComponent(this.byteToString(A)).split("|");(s=this.onDevCount)==null||s.call(this,c,_);return}if(t===81){const c=r[3]||0,E=[];for(let A=0;A<c;A++){const L=(r[4+A*4+0]||0)*256+(r[4+A*4+1]||0),_=(r[4+A*4+2]||0)*256+(r[4+A*4+3]||0);E.push({width:L,height:_,text:`${L}*${_}`})}(u=this.onResolution)==null||u.call(this,c,E);return}if(t===1){r[3]===1&&((k=this.onCameraStatus)==null||k.call(this,"opened")),r[3]===3&&((h=this.onCameraStatus)==null||h.call(this,"closed"));return}if(t===16){if(r[3]===1){const E=r[4]*256+r[5],A=r[6]*65536+r[7]*256+r[8];let L="";if(E>0){const C=new Uint8Array(E);for(let M=0;M<E;M++)C[M]=r[9+M];L=decodeURIComponent(this.byteToString(C))}const _=new Uint8Array(A);for(let C=0;C<A;C++)_[C]=r[9+E+C];const W=this.uint8ArrayToString(_);(v=this.onPhoto)==null||v.call(this,{flag:0,imgPath:L,base64:W})}r[3]===2&&((y=this.onPhoto)==null||y.call(this,{flag:2,imgPath:"",base64:""}));return}if(t===204){if(!this.canvas||!this.ctx)return;const c=r[3]*256+r[4],E=r[5]*256+r[6];this.pMainShowStartX=r[7]*256+r[8],this.pMainShowStartY=r[9]*256+r[10],this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height);const A=this.ctx.createImageData(c,E);let L=11;for(let _=0;_<A.data.length;_+=4)A.data[_+0]=r[L],A.data[_+1]=r[L+1],A.data[_+2]=r[L+2],A.data[_+3]=255,L+=3;this.ctx.putImageData(A,this.pMainShowStartX,this.pMainShowStartY),this.mainCamCutMode;return}}uint8ArrayToString(n){let r="";for(let t=0;t<n.length;t++)r+=String.fromCharCode(n[t]);return r}byteToString(n){let r="";for(let t=0;t<n.length;t++)r+=String.fromCharCode(n[t]);return r}}const Xp={style:{display:"flex",gap:"16px",height:"100%"}},Zp={key:0,style:{color:"var(--el-text-color-secondary)"}},Qp={style:{width:"420px",display:"flex","flex-direction":"column",gap:"16px"}},ef={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px"}},af={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"}},lf={key:0,style:{height:"100%",display:"flex","align-items":"center","justify-content":"center",color:"var(--el-text-color-secondary)"}},rf={key:1,style:{display:"grid","grid-template-columns":"repeat(2, minmax(0, 1fr))",gap:"8px"}},nf=["src","onClick"],tf=["onClick"],of={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px",flex:"1","min-height":"0",display:"flex","flex-direction":"column"}},sf={class:"dialog-footer"},cf=a.defineComponent({__name:"index",props:{visible:{type:Boolean,default:!1}},emits:["confirm","cancel"],setup(l,{emit:n}){const r=l,t=n,s=a.ref(null),u=a.ref(!1),k=a.ref([]),h=a.ref(""),v=a.ref(!1),y=a.ref([]),c=new Gp({url:"ws://127.0.0.1:22225"});function E(q,G){var Z;const he=q.split(","),Be=((Z=he[0].match(/:(.*?);/))==null?void 0:Z[1])??"image/jpeg",xe=atob(he[1]);let te=xe.length;const me=new Uint8Array(te);for(;te--;)me[te]=xe.charCodeAt(te);return new File([me],G,{type:Be})}function A(){c.onLog=q=>{console.log("[GPY]",q)},c.onDevCount=(q,G)=>{if(h.value+=`设备数量=${q},设备=${G.join(",")}
4
- `,q>0){h.value+=`检测到设备,正在获取分辨率...
5
- `;try{c.getResolution(0)}catch(he){h.value+=`获取分辨率失败:${(he==null?void 0:he.message)??he}
6
- `}}else h.value+=`未检测到高拍仪设备!
7
- `},c.onResolution=(q,G)=>{if(q<=0||!Array.isArray(G)||G.length===0){h.value+=`未获取到可用分辨率,回退使用 1280*720 打开...
8
- `;try{c.openCamera(0,1280,720)}catch(Be){h.value+=`打开摄像头失败:${(Be==null?void 0:Be.message)??Be}
9
- `}return}const he=c.chooseResolution(G);if(!he){h.value+=`分辨率选择失败,回退使用 1280*720 打开...
10
- `;try{c.openCamera(0,1280,720)}catch(Be){h.value+=`打开摄像头失败:${(Be==null?void 0:Be.message)??Be}
11
- `}return}h.value+=`获取分辨率 ${he.text}成功,打开摄像头...
12
- `;try{c.closeCamera(),setTimeout(()=>{try{c.openCamera(0,he.width,he.height)}catch(Be){h.value+=`打开摄像头失败:${(Be==null?void 0:Be.message)??Be}
13
- `}},100)}catch{try{c.openCamera(0,he.width,he.height)}catch(Be){h.value+=`打开摄像头失败:${(Be==null?void 0:Be.message)??Be}
14
- `}}},c.onCameraStatus=q=>{q==="opened"?(u.value=!0,h.value+=`摄像头已打开
15
- `):(u.value=!1,h.value+=`摄像头已关闭
16
- `)},c.onPhoto=q=>{if(q.flag===0&&q.base64){const G=`data:image/jpeg;base64,${q.base64}`,he=E(G,`gpy-capture-${Date.now()}.jpg`);k.value.push({uid:`${Date.now()}_${Math.random().toString(16).slice(2)}`,url:G,file:he}),h.value+=`拍照完成,已接收图片(当前 ${k.value.length} 张)
17
- `}else h.value+=`拍照失败 flag=${q.flag}
18
- `}}const L=async()=>{if(await a.nextTick(),!s.value)return;_(),A();const q=s.value.getBoundingClientRect();c.init(s.value,Math.floor(q.width),Math.floor(q.height)),h.value+=`正在连接设备服务...
19
- `,await c.connect(),h.value+=`正在获取设备数量...
20
- `,c.getDevCount()},_=()=>{try{c.destroy()}catch(q){console.error(q)}u.value=!1,k.value=[],h.value="",v.value=!1,y.value=[]};a.watch(()=>r.visible,q=>{q?L():_()});const W=()=>{try{c.bestSize()}catch(q){console.error(q)}},C=()=>{try{c.rotateLeft()}catch(q){console.error(q)}},M=()=>{try{c.rotateRight()}catch(q){console.error(q)}},ae=()=>{try{c.focus()}catch(q){console.error(q)}},S=()=>{h.value+=`正在拍照...
21
- `;try{c.photo()}catch(q){h.value+=`拍照调用失败:${(q==null?void 0:q.message)??q}
22
- `}},$=()=>{k.value.length>0?t("confirm",k.value.map(q=>q.file)):t("confirm",[])},N=q=>{q<0||q>=k.value.length||(k.value.splice(q,1),h.value+=`已删除一张图片(剩余 ${k.value.length} 张)
23
- `)},x=q=>{if(!q)return;const G=`gpy-preview-${Date.now()}.jpg`;y.value=[{name:G,blobUrl:q}],v.value=!0},g=()=>{v.value=!1},H=()=>{_(),t("cancel")};return(q,G)=>{const he=a.resolveComponent("el-input"),Be=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(dr.ssDialog,{title:"扫描录入",visible:r.visible,onBeforeDestroy:H,width:"1200px",style:{height:"80%"}},{default:a.withCtx(()=>[a.createElementVNode("div",Xp,[a.createElementVNode("div",{ref_key:"cameraBox",ref:s,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)"}},[u.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",Zp,"初始化摄像头..."))],512),a.createElementVNode("div",Qp,[a.createElementVNode("div",ef,[G[0]||(G[0]=a.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"拍照图片",-1)),a.createElementVNode("div",af,[k.value.length===0?(a.openBlock(),a.createElementBlock("div",lf,"暂无图片")):(a.openBlock(),a.createElementBlock("div",rf,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(k.value,(xe,te)=>(a.openBlock(),a.createElementBlock("div",{key:xe.uid,style:{position:"relative",border:"1px solid var(--el-border-color)","border-radius":"4px",overflow:"hidden",background:"#fafafa"}},[a.createElementVNode("img",{src:xe.url,onClick:me=>x(xe.url),style:{width:"100%",height:"94px","object-fit":"contain",display:"block",background:"#fafafa",cursor:"zoom-in"},alt:"captured image",title:"点击放大"},null,8,nf),a.createElementVNode("div",{onClick:me=>N(te),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,tf)]))),128))]))],512)]),a.createElementVNode("div",of,[G[1]||(G[1]=a.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"操作记录",-1)),a.createVNode(he,{type:"textarea",value:h.value,readonly:"",rows:10,placeholder:"设备操作记录...",style:{flex:"1"}},null,8,["value"])])])])]),footer:a.withCtx(()=>[a.createElementVNode("div",sf,[a.createVNode(Be,{onClick:W,disabled:!u.value,id:"themeBorderButton"},{default:a.withCtx(()=>G[2]||(G[2]=[a.createTextVNode("适屏")])),_:1,__:[2]},8,["disabled"]),a.createVNode(Be,{onClick:C,disabled:!u.value,id:"themeBorderButton"},{default:a.withCtx(()=>G[3]||(G[3]=[a.createTextVNode("左旋")])),_:1,__:[3]},8,["disabled"]),a.createVNode(Be,{onClick:M,disabled:!u.value,id:"themeBorderButton"},{default:a.withCtx(()=>G[4]||(G[4]=[a.createTextVNode("右旋")])),_:1,__:[4]},8,["disabled"]),a.createVNode(Be,{onClick:ae,disabled:!u.value,id:"themeBorderButton"},{default:a.withCtx(()=>G[5]||(G[5]=[a.createTextVNode("对焦")])),_:1,__:[5]},8,["disabled"]),a.createVNode(Be,{onClick:S,disabled:!u.value,id:"themeButton"},{default:a.withCtx(()=>G[6]||(G[6]=[a.createTextVNode("拍照")])),_:1,__:[6]},8,["disabled"]),G[9]||(G[9]=a.createElementVNode("div",{style:{flex:"1"}},null,-1)),a.createVNode(Be,{onClick:$,disabled:k.value.length===0,id:"themeButton"},{default:a.withCtx(()=>G[7]||(G[7]=[a.createTextVNode("确认")])),_:1,__:[7]},8,["disabled"]),a.createVNode(Be,{onClick:H,id:"themeBorderButton"},{default:a.withCtx(()=>G[8]||(G[8]=[a.createTextVNode("取消")])),_:1,__:[8]})])]),_:1},8,["visible"]),v.value?(a.openBlock(),a.createBlock(ul.ssFilePreview,{key:0,fileDataList:y.value,onDestroy:g},null,8,["fileDataList"])):a.createCommentVNode("",!0)],64)}}}),uf=Ul._export_sfc(cf,[["__scopeId","data-v-24a2050a"]]);function Gs(l){return Za.axios.post("http://222.92.178.198:8000/api/v1/excel-chat",l)}function df(l){return Za.axios.get(l,{responseType:"blob"})}const es=z.useMenuState(z.pinia),pf=async l=>{var u,k,h,v,y,c;let n=l==null?void 0:l.导入文件,r=l==null?void 0:l.函数参数,t=(u=n==null?void 0:n[0])==null?void 0:u.url,s="";if(!(t!=null&&t.includes("http"))||!(t!=null&&t.includes("https"))){es.setContentLoading(!0);const E=await z.platformDownloadFile({url:t});let A=E==null?void 0:E.data;const L=new FormData;L.append("file",A,((k=n==null?void 0:n[0])==null?void 0:k.name)+"."+((h=t==null?void 0:t.split("."))==null?void 0:h[1])),L.append("query",r);let _=await Gs(L);_=(c=(y=(v=_==null?void 0:_.data)==null?void 0:v.data)==null?void 0:y.response)==null?void 0:c.replace("generateResult",l==null?void 0:l.函数名称),s=_,es.setContentLoading(!1)}return s},mi=z.defineStore("formComp",{state:()=>({objUrl:[],blobUrls:[]}),actions:{setObjUrl(l){this.objUrl=l},setBlobUrls(l){this.blobUrls=l}}}),xo={检校类型:["检校类型","证书类别"],证书编号:["证书编号"],设备名称:["设备名称","器具名称","样品名称","仪器名称","被校设备"],型号规格:["型号规格","型号/规格","型号"],出厂编号:["出厂编号","器具/管理编号","器具编号","管理编号","仪器编号"],制造厂:["制造厂","制造单位","制造厂商","制造商"],检校结果:["检校结果","检定结论","校准结果","校准/检定结果","检定结果"],依据文件:["依据文件","检定依据","检定所依据的技术文件","所依据/参照技术文件(代号/名称)","检定所依据的技术文件(编号/名称)","检定方法说明"],检校日期:["检校日期","校准日期","校验日期","检定日期","发证日期","发布日期","接收日期","签证日期"],有效日期:["有效日期","有效期","有效期至"]},as={columnName:"OCR图片",acceptTypes:"image/*",maxSize:10,maxFiles:20,apiUrl:"http://139.196.154.85:20015/api/public/paddleOCR"};class ff{constructor(n){Vr(this,"config");this.config={...as,...n}}updateConfig(n){this.config={...this.config,...n}}getConfig(){return{...this.config}}validateFileSize(n){const r=this.config.maxSize*1024*1024;return n.size<=r}validateFileType(n){return n.type.startsWith("image/")||n.type==="application/pdf"}getAuthorizationToken(){const n=Za.Local.get(Za.accessTokenKey);return n?`Bearer ${n}`:""}buildOCRRequest(n,r){return{title:r,form:{OCR图片文件:n}}}async recognize(n,r){const t=this.getAuthorizationToken(),s=this.buildOCRRequest(n,r),u=this.config.apiUrl||as.apiUrl;return(await Za.axios.post(u,s,{headers:{"Content-Type":"application/json",Authorization:t}})).data}getFieldAliases(n){return xo[n]?xo[n]:[n]}extractTableHeaders(n){const r=[],t=new Set,s=k=>{const h=k==null?void 0:k.label;return!(!h||h==="操作"||h===this.config.columnName||(k==null?void 0:k.type)==="operate"||(k==null?void 0:k.prop)==="operate")},u=k=>{(k||[]).forEach(h=>{if(!h)return;const v=(h==null?void 0:h.children)||(h==null?void 0:h.child)||(h==null?void 0:h.columns);if(Array.isArray(v)&&v.length>0){u(v);return}if(s(h)){const y=h.label;if(!t.has(y)){t.add(y);const c=this.getFieldAliases(y);r.push(c)}}})};return u(n||[]),r}}function Xs(l){return new ff(l)}Xs();const si=async(l,n)=>{var k,h,v,y,c,E,A,L,_,W,C,M,ae,S,$,N,x;let r=(h=(k=z.cloneDeep(l))==null?void 0:k.optionUrl)==null?void 0:h.menuSelect,t=[];r==null||r.forEach(g=>{});let s="",u=await sa.menuToParent(r);if(u==null||u.forEach(g=>{var H,q,G,he;(g==null?void 0:g.name)===(((he=(G=(q=(H=z.cloneDeep(l))==null?void 0:H.optionUrl)==null?void 0:q.groupSelect)==null?void 0:G[0])==null?void 0:he.replaceAll("'",""))??"")&&(s=g==null?void 0:g.id)}),n){s=n;const g=await mr.getInsofDataApi({id:s}),H=(E=(c=(y=(v=g==null?void 0:g.data)==null?void 0:v.result)==null?void 0:y[0])==null?void 0:c.key)==null?void 0:E.pageKey;u=await sa.getItemData(H,sessionStorage.getItem("systemKey"),"")}if(s!==""){let g;n?g=(A=u==null?void 0:u.find(G=>(G==null?void 0:G.id)===n))==null?void 0:A.compData:g=(L=u==null?void 0:u.find(G=>{var he,Be,xe,te;return(G==null?void 0:G.name)===(((Be=(he=l==null?void 0:l.groupSelect)==null?void 0:he.split(":"))==null?void 0:Be[0])||((te=(xe=l==null?void 0:l.optionUrl)==null?void 0:xe.groupSelect)==null?void 0:te[0]))}))==null?void 0:L.compData;let H=(W=(_=g==null?void 0:g.find(G=>(G==null?void 0:G.key)==="header"))==null?void 0:_.contents)==null?void 0:W.map(G=>G==null?void 0:G.label);(M=(C=g==null?void 0:g.find(G=>(G==null?void 0:G.key)==="header"))==null?void 0:C.contents)!=null&&M.every(G=>Array.isArray(G))&&(H=($=sa.getColumnChild((S=(ae=g==null?void 0:g.find(G=>(G==null?void 0:G.key)==="header"))==null?void 0:ae.contents)==null?void 0:S[0]))==null?void 0:$.map(G=>G==null?void 0:G.prop));let q=(x=(N=g==null?void 0:g.find(G=>(G==null?void 0:G.key)==="tableContents"))==null?void 0:N.contents)==null?void 0:x.map(G=>{if(Array.isArray(G))G=G==null?void 0:G.filter(he=>!(he!=null&&he.id));else{let he={};for(let Be in G)Be!=="id"&&(he[Be]=G==null?void 0:G[Be]);G=he}return G});q==null||q.forEach(G=>{Array.isArray(G)?t.push(sa.getValueToObjectValue(G,H)):t.push(G)})}return t},hf=z.useMenuState(z.pinia),{activeMenuPath:x6}=z.storeToRefs(hf),vf=z.useUnit(z.pinia),{chooseTitle:_6}=z.storeToRefs(vf),mf="col-operate",yi=l=>`${mf}-${l}`,yf=(l,n)=>{const r=new Map;l.forEach(s=>{const{prop:u}=s;r.set(u,s)});const t=s=>{Array.isArray(s)&&s.forEach(u=>{const{prop:k}=u||{},h=r.get(k);gf(h,u),Array.isArray(u==null?void 0:u.children)&&u.children.length>0&&t(u.children)})};return t(n),n},gf=(l,n)=>(l&&(n.sortable=l==null?void 0:l.sortable,n.filterable=l==null?void 0:l.filterable,n.showSummary=l==null?void 0:l.showSummary,n.operable=l==null?void 0:l.operable,n.fixed=l==null?void 0:l.fixed),n),bf=(l,n)=>{const{sortable:r=!1,filterable:t=!1,showSummary:s=!1,operable:u=!1,fixed:k=!1}=n||{};return{prop:l,sortable:r,filterable:t,showSummary:s,operable:u,fixed:k}},kf=async l=>{var u,k;if(!l)return;const n=yi(l),r=await mr.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:n}}),t=(u=r==null?void 0:r.data)==null?void 0:u.code,s=(k=r==null?void 0:r.data)==null?void 0:k.result;if(t==200)return s==null?void 0:s[0]},xf=async l=>{var u,k,h,v;if(!l)return;const n=yi(l),r=await mr.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:n}}),t=(u=r==null?void 0:r.data)==null?void 0:u.code,s=(k=r==null?void 0:r.data)==null?void 0:k.result;return t==200?(v=(h=s==null?void 0:s[0])==null?void 0:h.value)==null?void 0:v.columns:[]},_f=async(l,n)=>{if(!l||!n)return;const r=yi(l);return await mr.createInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:r},value:{columns:n}})},wf=async(l,n)=>!l||!n?void 0:await mr.updateInsofDataApi({id:l,value:{columns:n}}),ls=async(l,n)=>{const r=sessionStorage.getItem("systemKey");if(!l||!n||!r)return;const t=await kf(l);return t?await wf(t==null?void 0:t.id,n):await _f(l,n)};var vo={exports:{}},Cf=vo.exports,rs;function Ef(){return rs||(rs=1,function(l,n){(function(r,t){t()})(Cf,function(){function r(y,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(y.type)?new Blob(["\uFEFF",y],{type:y.type}):y}function t(y,c,E){var A=new XMLHttpRequest;A.open("GET",y),A.responseType="blob",A.onload=function(){v(A.response,c,E)},A.onerror=function(){console.error("could not download file")},A.send()}function s(y){var c=new XMLHttpRequest;c.open("HEAD",y,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function u(y){try{y.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),y.dispatchEvent(c)}}var k=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,h=k.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),v=k.saveAs||(typeof window!="object"||window!==k?function(){}:"download"in HTMLAnchorElement.prototype&&!h?function(y,c,E){var A=k.URL||k.webkitURL,L=document.createElement("a");c=c||y.name||"download",L.download=c,L.rel="noopener",typeof y=="string"?(L.href=y,L.origin===location.origin?u(L):s(L.href)?t(y,c,E):u(L,L.target="_blank")):(L.href=A.createObjectURL(y),setTimeout(function(){A.revokeObjectURL(L.href)},4e4),setTimeout(function(){u(L)},0))}:"msSaveOrOpenBlob"in navigator?function(y,c,E){if(c=c||y.name||"download",typeof y!="string")navigator.msSaveOrOpenBlob(r(y,E),c);else if(s(y))t(y,c,E);else{var A=document.createElement("a");A.href=y,A.target="_blank",setTimeout(function(){u(A)})}}:function(y,c,E,A){if(A=A||open("","_blank"),A&&(A.document.title=A.document.body.innerText="downloading..."),typeof y=="string")return t(y,c,E);var L=y.type==="application/octet-stream",_=/constructor/i.test(k.HTMLElement)||k.safari,W=/CriOS\/[\d]+/.test(navigator.userAgent);if((W||L&&_||h)&&typeof FileReader<"u"){var C=new FileReader;C.onloadend=function(){var S=C.result;S=W?S:S.replace(/^data:[^;]*;/,"data:attachment/file;"),A?A.location.href=S:location=S,A=null},C.readAsDataURL(y)}else{var M=k.URL||k.webkitURL,ae=M.createObjectURL(y);A?A.location=ae:location.href=ae,A=null,setTimeout(function(){M.revokeObjectURL(ae)},4e4)}});k.saveAs=v.saveAs=v,l.exports=v})}(vo)),vo.exports}Ef();const Et=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(l){this.itemData=l},setCurStructureCompIds(l){this.curStructureCompIds=l},setRefreshCurStructure(l){this.isRefreshCurStructure=l},setOriginalData(l){this.originalData=l},setExtraContents(l){this.extraContents=l},setNodeDev(l){this.nodeDev=l},setIsEdit(l){this.isEdit=l},setSelectTab(l){this.selectTab=l}}}),Sf=z.useLoginState(z.pinia),{loginUserInfo:Xo}=z.storeToRefs(Sf),Df=async l=>{var t,s,u;let n=await z.getAllTables({platId:parseInt((t=Xo==null?void 0:Xo.value)==null?void 0:t.plat_id),tableNames:[l]});return n=(u=(s=n==null?void 0:n.data)==null?void 0:s.result)==null?void 0:u[0],await qs(n,!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:n}]}]},Bf=z.useLoginState(),{loginUserInfo:ml}=z.storeToRefs(Bf);let co="$R";const _r=z.useModelComp(z.pinia),Zs=a.ref(!1),{itemData:Nf,itemGridData:Zn,curStructureCompIds:ns,isSubmitCurStructure:Tf,routeToChildPath:Af,pageMapState:ci,itemExtendData:uo,refreshTable:ts}=z.storeToRefs(_r),Bo=Et(z.pinia),Er=z.useMenuState(z.pinia),Xl=a.shallowRef([]),{asideMenus:Mf,activeTopMenuPath:zf,activeMenuPath:El,platform:w6,buttonTriggerType:Of,currentMenuPath:Jr}=z.storeToRefs(Er),rn=z.useUnit(z.pinia),{selectTitle:Fn,chooseTitle:ui}=z.storeToRefs(rn);a.ref();const Ct=a.ref(!0),Hn=a.ref(0),di=a.ref([]);a.ref(!1);const gi=a.ref(!1),$t=a.ref(),Qs=a.ref(),ec=a.ref(),If=()=>{_r.setItemGridData([]),_r.setIsEdit("edit"),_r.setSubmitCurStructure(El.value!=="/平台管理/菜单管理")},Lf=()=>{_r.setIsEdit("view"),_r.setRefreshCurStructure(!0)},Vf=async l=>{var s;let n=Fn.value,r=n==null?void 0:n.findIndex(u=>(u==null?void 0:u.value)===(l==null?void 0:l.value)),t=n==null?void 0:n.filter((u,k)=>k<=r);rn.setSelectTitle(ul.safeClone(t)),t=(s=t==null?void 0:t.map(u=>u==null?void 0:u.value))==null?void 0:s.join("/"),Er.setActiveMenuPath(null),Er.setActiveMenuPath(t)},Zo=async(l,n,r,t="contentConfig")=>{var s;try{if(!Array.isArray(l))return;let u,k;n==="create"?(u={dataList:l==null?void 0:l.map(v=>{var y;return{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:r!=null&&r.startsWith("/")?r==null?void 0:r.substring(1):r,type:"structure",structureBelong:t,parentTable:"",version:1},value:{pageData:{...v,compData:(y=v==null?void 0:v.compData)==null?void 0:y.filter(c=>(c==null?void 0:c.key)!=="tableContents")}}}})},k=mr.batchAddInsofDataApi):n==="update"?(u={dataList:l==null?void 0:l.map(v=>{var y;return{id:v==null?void 0:v.id,value:{pageData:{...v,compData:(y=v==null?void 0:v.compData)==null?void 0:y.filter(c=>(c==null?void 0:c.key)!=="tableContents")}}}})},k=mr.batchUpdateInsofDataApi):n==="delete"&&(u={ids:l},k=mr.batchDeleteInsofDataApi);const h=await k(u);if(((s=h==null?void 0:h.data)==null?void 0:s.code)===200)return h.data.result;throw Za.ElMessage.error("保存响应失败"),new Error("保存响应失败")}catch{Za.ElMessage.error("保存响应失败")}},os=async(l,n,r,t)=>{var s,u,k,h,v,y,c,E,A,L,_;try{const W=(u=(s=l==null?void 0:l.results)==null?void 0:s.filter(N=>!(N!=null&&N.id)||typeof(N==null?void 0:N.id)=="string"))==null?void 0:u.map(N=>({key:{pageKey:l==null?void 0:l.pageKey,systemKey:sessionStorage.getItem("systemKey"),type:n,relatedInfo:r},value:{tableData:N}})),C=(h=(k=l==null?void 0:l.results)==null?void 0:k.filter(N=>(N==null?void 0:N.id)&&typeof(N==null?void 0:N.id)=="number"))==null?void 0:h.map(N=>({id:N==null?void 0:N.id,value:{tableData:N}})),M=JSON.parse(JSON.stringify(l)),ae=(v=M==null?void 0:M.results)==null?void 0:v.map(N=>N.id);let S;r?S=(E=(c=(y=ci.value)==null?void 0:y[El.value])==null?void 0:c.filter(N=>{var x,g,H;return((x=N==null?void 0:N.key)==null?void 0:x.type)===n&&((H=(g=N==null?void 0:N.key)==null?void 0:g.relatedInfo)==null?void 0:H.target)===t}))==null?void 0:E.map(N=>N==null?void 0:N.id):S=(_=(L=(A=ci.value)==null?void 0:A[El.value])==null?void 0:L.filter(N=>{var x;return((x=N==null?void 0:N.key)==null?void 0:x.type)===n}))==null?void 0:_.map(N=>N==null?void 0:N.id);const $=S==null?void 0:S.filter(N=>!(ae!=null&&ae.includes(N))&&typeof N=="number");(W==null?void 0:W.length)>0&&await mr.batchAddInsofDataApi({dataList:W}),(C==null?void 0:C.length)>0&&await mr.batchUpdateInsofDataApi({dataList:C}),($==null?void 0:$.length)>0&&await mr.batchDeleteInsofDataApi({ids:$})}catch(W){throw new Error(W)}},Rf=async l=>{var y,c,E,A,L,_,W,C,M,ae;Er.setContentLoading(!0);const n=JSON.parse(JSON.stringify(Nf.value));if(!Tf.value)return Er.setCacheStructures({key:Of.value,data:n}),Za.ElMessage.success("已暂存");const r=n==null?void 0:n.map(S=>S.id),t=r.filter(S=>{var $;return!(($=ns.value)!=null&&$.includes(S))}),s=(y=ns.value)==null?void 0:y.filter(S=>!r.includes(S)),u=[...t,...s].filter(S=>typeof S!==null&&typeof S<"u"),k=n==null?void 0:n.filter(S=>!S.id),h=n==null?void 0:n.filter(S=>S.id);let v=[];if(u&&(u==null?void 0:u.length)>0&&v.push(Zo(u,"delete",l)),k&&(k==null?void 0:k.length)>0&&v.push(Zo(k,"create",l)),h&&(h==null?void 0:h.length)>0&&v.push(Zo(h,"update",l)),Zn.value&&((c=Zn.value)!=null&&c.isDelete&&((A=(E=Zn.value)==null?void 0:E.results)==null?void 0:A.length)>0&&((_=(L=Zn.value)==null?void 0:L.results)!=null&&_.every(S=>typeof S=="number"))?await mr.batchDeleteInsofDataApi({ids:(W=Zn.value)==null?void 0:W.results}):(console.log("itemGridData.value",Zn.value),v.push(await os(Zn.value,"gridLayout")))),uo.value)for(const S in uo.value)v.push(await os((C=uo.value)==null?void 0:C[S],"extend",{target:S,compId:(ae=(M=uo.value)==null?void 0:M[S])==null?void 0:ae.compId},S));await Promise.all(v).then(()=>{Za.ElMessage.success("保存成功"),_r.setRefreshCurStructure(!0)}).catch(S=>{Za.ElMessage.success(S)}),Er.setContentLoading(!1)},Pt=l=>St(l),$f=a.computed(()=>{var l;return(l=Xl.value)==null?void 0:l.filter(n=>(n==null?void 0:n.affix)&&(n==null?void 0:n.affix)!=="default")}),ac=a.computed(()=>{var l;return(l=Xl.value)==null?void 0:l.filter(n=>!(n!=null&&n.affix)||(n==null?void 0:n.affix)==="default")}),lc=a.ref(0),rc=a.ref(null),Pf="ocr_committed_temp_ids_v1",Ff=(l,n)=>`${Pf}:${String(l??"")}:${String(n??"")}`,jf=(l,n,r)=>{try{const t=Ff(l,n),s=sessionStorage.getItem(t),u=s?JSON.parse(s):[],k=Array.isArray(u)?u:[],h=Array.from(new Set([...k,...r||[]].map(v=>String(v)))).slice(-200);sessionStorage.setItem(t,JSON.stringify(h))}catch{}},_o=async(l,n="data",r)=>{var s,u,k,h,v,y,c,E,A,L,_,W,C,M,ae,S,$,N,x,g,H,q,G,he,Be,xe,te,me,Z,ue,Ue,Ca,oe,D,ne,ve,se,_e,ra,ba,$a,le,Qe,Ie,ka,Re,we,ze,qe,Sa,el,P,j,Y,V,K,Te,ee,ke,pe,$e,Ve,ca,ya,Oe,da,Le,_a,Fe,ma,ce,ga,ye,Ea,Ye,Ke,Ce,be,Ee,pa,na,rl,Il,Fl,al,Ha,oa,Ta,Va,ll,yl;let t=((k=(u=(s=Fn.value)==null?void 0:s.filter(Da=>(Da==null?void 0:Da.condition)==="child"))==null?void 0:u[0])==null?void 0:k.value)??"";if((l==null?void 0:l.buttonName)==="新增"){let Da=(h=l==null?void 0:l.fixContent)==null?void 0:h.map(wa=>{let ha={};for(let za in wa)Array.isArray(wa==null?void 0:wa[za])?ha[za]=JSON.stringify(wa==null?void 0:wa[za]):ha[za]=wa==null?void 0:wa[za];return ha}),Ge=await z.quoteApi({platId:parseInt((v=ml==null?void 0:ml.value)==null?void 0:v.plat_id),type:"fatherSyncs",related:[{menus:t!==""?El.value+"/"+t:El.value,groups:l==null?void 0:l.name}]});Ge=(y=Ge==null?void 0:Ge.data)==null?void 0:y.result,Ge=Ge==null?void 0:Ge.filter(wa=>{var ha,za;return!((wa==null?void 0:wa.fatherPath)!==""&&((za=(ha=wa==null?void 0:wa.quote)==null?void 0:ha[0])==null?void 0:za.menus)===(El==null?void 0:El.value))});let X=Ge==null?void 0:Ge.map(wa=>{var fa,La;let ha={},za=Da==null?void 0:Da[0],ea;return Array.isArray((fa=wa==null?void 0:wa.struct)==null?void 0:fa[0])?ea=sa.getColumnChild((La=wa==null?void 0:wa.struct)==null?void 0:La[0]):ea=wa==null?void 0:wa.struct,ea==null||ea.forEach(Ua=>{var zl,Sl;ha[Ua.prop]=((zl=Ua==null?void 0:Ua.words)!=null&&zl[0]?za==null?void 0:za[(Sl=Ua==null?void 0:Ua.words)==null?void 0:Sl[0]]:za==null?void 0:za[Ua==null?void 0:Ua.prop])??""}),ha.id="1",delete ha.sort,{tableName:"content_"+(wa==null?void 0:wa.id),tableContents:[ha]}}),Aa=[{tableName:(c=l==null?void 0:l.relatedContents)==null?void 0:c.find(wa=>wa==null?void 0:wa.includes("content")),tableContents:Da}];Aa=[...Aa,...X];let Ma=await z.quoteApi({platId:parseInt((E=ml==null?void 0:ml.value)==null?void 0:E.plat_id),type:"sonSyncs",related:[{menus:t!==""?El.value+"/"+t:El.value,groups:l==null?void 0:l.name}]});Ma=(L=(A=Ma==null?void 0:Ma.data)==null?void 0:A.result)==null?void 0:L.filter(wa=>!(Aa!=null&&Aa.find(ha=>(ha==null?void 0:ha.tableName)==="content_"+(wa==null?void 0:wa.id)))),Ma=Ma==null?void 0:Ma.filter(wa=>{var ha,za;return!((wa==null?void 0:wa.fatherPath)!==""&&((za=(ha=wa==null?void 0:wa.quote)==null?void 0:ha[0])==null?void 0:za.menus)===(El==null?void 0:El.value))});let sl=Ma==null?void 0:Ma.map(wa=>{var fa,La,Ua,zl,Sl,Nl,Tl;let ha={},za=Da==null?void 0:Da[0],ea;return Array.isArray((fa=wa==null?void 0:wa.struct)==null?void 0:fa[0])?ea=sa.getColumnChild((La=wa==null?void 0:wa.struct)==null?void 0:La[0]):ea=wa==null?void 0:wa.struct,((zl=(Ua=ea==null?void 0:ea[0])==null?void 0:Ua.words)!=null&&zl[0]?za!=null&&za[(Nl=(Sl=ea==null?void 0:ea[0])==null?void 0:Sl.words)==null?void 0:Nl[0]]:za!=null&&za[(Tl=ea==null?void 0:ea[0])==null?void 0:Tl.prop])?(ea==null||ea.forEach(dl=>{var tl,gl;ha[dl.prop]=((tl=dl==null?void 0:dl.words)!=null&&tl[0]?za==null?void 0:za[(gl=dl==null?void 0:dl.words)==null?void 0:gl[0]]:za==null?void 0:za[dl==null?void 0:dl.prop])??""}),ha.id="1",delete ha.sort):ha=void 0,{tableName:"content_"+(wa==null?void 0:wa.id),tableContents:[ha]}});sl=sl==null?void 0:sl.filter(wa=>{var ha;return!((ha=wa==null?void 0:wa.tableContents)!=null&&ha.every(za=>za===void 0))}),Aa=[...Aa,...sl],await z.pageBatchAddApi({platId:parseInt((_=ml==null?void 0:ml.value)==null?void 0:_.plat_id),changeContents:Aa});let nl=[];Aa==null||Aa.forEach(wa=>{var ha;(ha=wa==null?void 0:wa.tableContents)==null||ha.forEach(za=>{nl.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(za),request_result:"{}",is_delete:!1,request_table:wa==null?void 0:wa.tableName,request_type:"add"})})}),await z.pageBatchAddApi({platId:parseInt((W=ml==null?void 0:ml.value)==null?void 0:W.plat_id),changeContents:[{tableName:"log",tableContents:nl}]})}if((l==null?void 0:l.buttonName)==="OCR批量新增"){const Da=((l==null?void 0:l.ocrRows)||[]).map(Ma=>Ma==null?void 0:Ma.id).filter(Ma=>Ma!=null),Ge=((l==null?void 0:l.ocrRows)||[]).map(Ma=>{const sl={...Ma};return delete sl._isOCRRow,delete sl._ocrTableId,Object.keys(sl).forEach(nl=>{/(^|\.)证书附件$/.test(nl)&&Array.isArray(sl[nl])&&(sl[nl]=JSON.stringify(sl[nl].map(wa=>({url:(wa==null?void 0:wa.url)||"",name:(wa==null?void 0:wa.name)||(wa==null?void 0:wa.fileName)||"",fileName:(wa==null?void 0:wa.fileName)||(wa==null?void 0:wa.name)||""})).filter(wa=>wa.url||wa.name)))}),sl});let X=[{tableName:(C=l==null?void 0:l.relatedContents)==null?void 0:C.find(Ma=>Ma==null?void 0:Ma.includes("content")),tableContents:Ge}];await z.pageBatchAddApi({platId:parseInt((M=ml==null?void 0:ml.value)==null?void 0:M.plat_id),changeContents:X});let Aa=[];X==null||X.forEach(Ma=>{var sl;(sl=Ma==null?void 0:Ma.tableContents)==null||sl.forEach(nl=>{Aa.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(nl),request_result:"{}",is_delete:!1,request_table:Ma==null?void 0:Ma.tableName,request_type:"ocrBatchAdd"})})}),await z.pageBatchAddApi({platId:parseInt((ae=ml==null?void 0:ml.value)==null?void 0:ae.plat_id),changeContents:[{tableName:"log",tableContents:Aa}]}),jf(l==null?void 0:l.parentTableId,l==null?void 0:l.index,Da)}if((l==null?void 0:l.buttonName)==="编辑"){const Ge=((l==null?void 0:l.fixContent)||(l==null?void 0:l.singleContent)||[]||[]).map(fa=>{const La={...fa};return delete La._isOCRRow,delete La._ocrTableId,delete La._isTemp,delete La.tableEditType,delete La.index,La});let X=Ge==null?void 0:Ge.map(fa=>{let La={};for(let Ua in fa)Array.isArray(fa==null?void 0:fa[Ua])?La[Ua]=JSON.stringify(fa==null?void 0:fa[Ua]):La[Ua]=fa==null?void 0:fa[Ua];return La}),Aa=await z.quoteApi({platId:parseInt((S=ml==null?void 0:ml.value)==null?void 0:S.plat_id),type:"fatherSyncs",related:[{menus:t!==""?El.value+"/"+t:El.value,groups:l==null?void 0:l.name}]});Aa=($=Aa==null?void 0:Aa.data)==null?void 0:$.result,Aa=Aa==null?void 0:Aa.filter(fa=>{var La,Ua;return!((fa==null?void 0:fa.fatherPath)!==""&&((Ua=(La=fa==null?void 0:fa.quote)==null?void 0:La[0])==null?void 0:Ua.menus)===(El==null?void 0:El.value))});let Ma=(x=(N=l==null?void 0:l.columns)==null?void 0:N[0])==null?void 0:x.prop,sl=(g=X==null?void 0:X[0])==null?void 0:g[Ma],nl=[{tableName:(H=l==null?void 0:l.relatedContents)==null?void 0:H.find(fa=>fa==null?void 0:fa.includes("content")),tableContents:X}],wa=(q=Aa==null?void 0:Aa.map(fa=>{var Ua,zl,Sl,Nl,Tl;let La=(Ua=fa==null?void 0:fa.contents)==null?void 0:Ua.filter(dl=>{var tl;return(tl=Object.values(dl))==null?void 0:tl.find(gl=>gl===sl)});if((La==null?void 0:La.length)>0){let dl=X==null?void 0:X[0];dl={...dl,id:(zl=La==null?void 0:La[0])==null?void 0:zl.id};let tl={},gl=dl,Cl;return Array.isArray((Sl=fa==null?void 0:fa.struct)==null?void 0:Sl[0])?Cl=sa.getColumnChild((Nl=fa==null?void 0:fa.struct)==null?void 0:Nl[0]):Cl=fa==null?void 0:fa.struct,Cl==null||Cl.forEach(Rl=>{var br,Sr;tl[Rl.prop]=((br=Rl==null?void 0:Rl.words)!=null&&br[0]?gl==null?void 0:gl[(Sr=Rl==null?void 0:Rl.words)==null?void 0:Sr[0]]:gl==null?void 0:gl[Rl==null?void 0:Rl.prop])??""}),tl.id=(Tl=La==null?void 0:La[0])==null?void 0:Tl.id,delete tl.sort,{tableName:"content_"+(fa==null?void 0:fa.id),tableContents:[tl]}}else return}))==null?void 0:q.filter(fa=>fa);nl=[...nl,...wa];let ha=await z.quoteApi({platId:parseInt((G=ml==null?void 0:ml.value)==null?void 0:G.plat_id),type:"sonSyncs",related:[{menus:t!==""?El.value+"/"+t:El.value,groups:l==null?void 0:l.name}]});ha=(Be=(he=ha==null?void 0:ha.data)==null?void 0:he.result)==null?void 0:Be.filter(fa=>!(nl!=null&&nl.find(La=>(La==null?void 0:La.tableName)==="content_"+(fa==null?void 0:fa.id)))),ha=ha==null?void 0:ha.filter(fa=>{var La,Ua;return!((fa==null?void 0:fa.fatherPath)!==""&&((Ua=(La=fa==null?void 0:fa.quote)==null?void 0:La[0])==null?void 0:Ua.menus)===(El==null?void 0:El.value))});let za=(xe=ha==null?void 0:ha.map(fa=>{var Ua,zl,Sl,Nl,Tl;let La=(Ua=fa==null?void 0:fa.contents)==null?void 0:Ua.filter(dl=>{var tl;return(tl=Object.values(dl))==null?void 0:tl.find(gl=>gl===sl)});if((La==null?void 0:La.length)>0){let dl=X==null?void 0:X[0];dl={...dl,id:(zl=La==null?void 0:La[0])==null?void 0:zl.id};let tl={},gl=dl,Cl;return Array.isArray((Sl=fa==null?void 0:fa.struct)==null?void 0:Sl[0])?Cl=sa.getColumnChild((Nl=fa==null?void 0:fa.struct)==null?void 0:Nl[0]):Cl=fa==null?void 0:fa.struct,Cl==null||Cl.forEach(Rl=>{var br,Sr;tl[Rl.prop]=((br=Rl==null?void 0:Rl.words)!=null&&br[0]?gl==null?void 0:gl[(Sr=Rl==null?void 0:Rl.words)==null?void 0:Sr[0]]:gl==null?void 0:gl[Rl==null?void 0:Rl.prop])??""}),tl.id=(Tl=La==null?void 0:La[0])==null?void 0:Tl.id,delete tl.sort,{tableName:"content_"+(fa==null?void 0:fa.id),tableContents:[tl]}}else return}))==null?void 0:xe.filter(fa=>fa);nl=[...nl,...za],await z.pageBatchUpdateApi({platId:parseInt((te=ml==null?void 0:ml.value)==null?void 0:te.plat_id),changeContents:nl});let ea=[];nl==null||nl.forEach(fa=>{var La;(La=fa==null?void 0:fa.tableContents)==null||La.forEach(Ua=>{ea.push({id:"1",request_method:"Post",request_url:"/platform/page/update",request_param:JSON.stringify(Ua),request_result:"{}",is_delete:!1,request_table:fa==null?void 0:fa.tableName,request_type:"update"})})}),await z.pageBatchAddApi({platId:parseInt((me=ml==null?void 0:ml.value)==null?void 0:me.plat_id),changeContents:[{tableName:"log",tableContents:ea}]})}if((l==null?void 0:l.buttonName)==="删除"){let Da=[{tableName:(Z=l==null?void 0:l.relatedContents)==null?void 0:Z.find(ha=>ha==null?void 0:ha.includes("content")),tableContents:l==null?void 0:l.fixContent}],Ge=await z.quoteApi({platId:parseInt((ue=ml==null?void 0:ml.value)==null?void 0:ue.plat_id),type:"fatherSyncs",related:[{menus:t!==""?El.value+"/"+t:El.value,groups:l==null?void 0:l.name}]});Ge=(Ue=Ge==null?void 0:Ge.data)==null?void 0:Ue.result,Ge=Ge==null?void 0:Ge.filter(ha=>{var za,ea;return!((ha==null?void 0:ha.fatherPath)!==""&&((ea=(za=ha==null?void 0:ha.quote)==null?void 0:za[0])==null?void 0:ea.menus)===(El==null?void 0:El.value))});let X=(oe=(Ca=l==null?void 0:l.columns)==null?void 0:Ca[0])==null?void 0:oe.prop,Aa=(ne=(D=l==null?void 0:l.fixContent)==null?void 0:D[0])==null?void 0:ne[X],Ma=(ve=Ge==null?void 0:Ge.map(ha=>{var ea,fa,La,Ua,zl,Sl;let za=(ea=ha==null?void 0:ha.contents)==null?void 0:ea.filter(Nl=>{var Tl;return(Tl=Object.values(Nl))==null?void 0:Tl.find(dl=>dl===Aa)});if((za==null?void 0:za.length)>0){let Nl=(fa=l==null?void 0:l.fixContent)==null?void 0:fa[0];Nl={...Nl,id:(La=za==null?void 0:za[0])==null?void 0:La.id};let Tl={},dl=Nl,tl;return Array.isArray((Ua=ha==null?void 0:ha.struct)==null?void 0:Ua[0])?tl=sa.getColumnChild((zl=ha==null?void 0:ha.struct)==null?void 0:zl[0]):tl=ha==null?void 0:ha.struct,tl==null||tl.forEach(gl=>{var Cl,Rl;Tl[gl.prop]=((Cl=gl==null?void 0:gl.words)!=null&&Cl[0]?dl==null?void 0:dl[(Rl=gl==null?void 0:gl.words)==null?void 0:Rl[0]]:dl==null?void 0:dl[gl==null?void 0:gl.prop])??""}),Tl.id=(Sl=za==null?void 0:za[0])==null?void 0:Sl.id,delete Tl.sort,{tableName:"content_"+(ha==null?void 0:ha.id),tableContents:[Tl]}}else return}))==null?void 0:ve.filter(ha=>ha);Da=[...Da,...Ma];let sl=await z.quoteApi({platId:parseInt((se=ml==null?void 0:ml.value)==null?void 0:se.plat_id),type:"sonSyncs",related:[{menus:t!==""?El.value+"/"+t:El.value,groups:l==null?void 0:l.name}]});sl=(ra=(_e=sl==null?void 0:sl.data)==null?void 0:_e.result)==null?void 0:ra.filter(ha=>!(Da!=null&&Da.find(za=>(za==null?void 0:za.tableName)==="content_"+(ha==null?void 0:ha.id)))),sl=sl==null?void 0:sl.filter(ha=>{var za,ea;return!((ha==null?void 0:ha.fatherPath)!==""&&((ea=(za=ha==null?void 0:ha.quote)==null?void 0:za[0])==null?void 0:ea.menus)===(El==null?void 0:El.value))});let nl=(ba=sl==null?void 0:sl.map(ha=>{var ea,fa,La,Ua,zl,Sl;let za=(ea=ha==null?void 0:ha.contents)==null?void 0:ea.filter(Nl=>{var Tl;return(Tl=Object.values(Nl))==null?void 0:Tl.find(dl=>dl===Aa)});if((za==null?void 0:za.length)>0){let Nl=(fa=l==null?void 0:l.fixContent)==null?void 0:fa[0];Nl={...Nl,id:(La=za==null?void 0:za[0])==null?void 0:La.id};let Tl={},dl=Nl,tl;return Array.isArray((Ua=ha==null?void 0:ha.struct)==null?void 0:Ua[0])?tl=sa.getColumnChild((zl=ha==null?void 0:ha.struct)==null?void 0:zl[0]):tl=ha==null?void 0:ha.struct,tl==null||tl.forEach(gl=>{var Cl,Rl;Tl[gl.prop]=((Cl=gl==null?void 0:gl.words)!=null&&Cl[0]?dl==null?void 0:dl[(Rl=gl==null?void 0:gl.words)==null?void 0:Rl[0]]:dl==null?void 0:dl[gl==null?void 0:gl.prop])??""}),Tl.id=(Sl=za==null?void 0:za[0])==null?void 0:Sl.id,delete Tl.sort,{tableName:"content_"+(ha==null?void 0:ha.id),tableContents:[Tl]}}else return}))==null?void 0:ba.filter(ha=>ha);Da=[...Da,...nl],await z.pageBatchDeleteApi({platId:parseInt(($a=ml==null?void 0:ml.value)==null?void 0:$a.plat_id),changeContents:Da});let wa=[];Da==null||Da.forEach(ha=>{var za;(za=ha==null?void 0:ha.tableContents)==null||za.forEach(ea=>{wa.push({id:"1",request_method:"Post",request_url:"/platform/page/delete",request_param:JSON.stringify(ea),request_result:"{}",is_delete:!1,request_table:ha==null?void 0:ha.tableName,request_type:"delete"})})}),await z.pageBatchAddApi({platId:parseInt((le=ml==null?void 0:ml.value)==null?void 0:le.plat_id),changeContents:[{tableName:"log",tableContents:wa}]})}if((l==null?void 0:l.buttonName)==="复制新增"){let Da=await z.getPageDataApi({platId:parseInt((Qe=ml==null?void 0:ml.value)==null?void 0:Qe.plat_id),pageName:"menu"});if(Da=(Ie=Da==null?void 0:Da.data)==null?void 0:Ie.result,Da!=null&&Da.find(Ge=>(Ge==null?void 0:Ge.father_name)===El.value+"/")){ec.value=l,Qs.value=Da==null?void 0:Da.filter(Aa=>(Aa==null?void 0:Aa.father_name)===El.value+"/");let Ge=(Re=(ka=l==null?void 0:l.columns)==null?void 0:ka.find(Aa=>Aa==null?void 0:Aa.mainKey))==null?void 0:Re.prop,X=(ze=(we=l==null?void 0:l.fixContent)==null?void 0:we[0])==null?void 0:ze[Ge];gi.value=!0,$t.value=[{prop:Ge,label:Ge,name:Ge,value:X}]}else{let Ge=(qe=l==null?void 0:l.fixContent)==null?void 0:qe.map(Ma=>{let sl={};for(let nl in Ma)Array.isArray(Ma==null?void 0:Ma[nl])?sl[nl]=JSON.stringify(Ma==null?void 0:Ma[nl]):sl[nl]=Ma==null?void 0:Ma[nl];return sl}),X=[{tableName:(Sa=l==null?void 0:l.relatedContents)==null?void 0:Sa.find(Ma=>Ma==null?void 0:Ma.includes("content")),tableContents:Ge}];await z.pageBatchAddApi({platId:parseInt((el=ml==null?void 0:ml.value)==null?void 0:el.plat_id),changeContents:X});let Aa=[];X==null||X.forEach(Ma=>{var sl;(sl=Ma==null?void 0:Ma.tableContents)==null||sl.forEach(nl=>{Aa.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(nl),request_result:"{}",is_delete:!1,request_table:Ma==null?void 0:Ma.tableName,request_type:"copyAdd"})})}),await z.pageBatchAddApi({platId:parseInt((P=ml==null?void 0:ml.value)==null?void 0:P.plat_id),changeContents:[{tableName:"log",tableContents:Aa}]})}}if((l==null?void 0:l.buttonName)==="methodButton"){let Da=(V=(Y=(j=l==null?void 0:l.columns)==null?void 0:j.map(ea=>ea==null?void 0:ea.filter))==null?void 0:Y.filter(ea=>ea!==""))==null?void 0:V[0];Da=Na.analyzeSplitToContent(Da,","),Da=(Da==null?void 0:Da.find(ea=>ea==null?void 0:ea.includes("@Filter")))??"";let Ge=(K=l==null?void 0:l.fixContent)==null?void 0:K.map(ea=>{let fa={};for(let La in ea)Array.isArray(ea==null?void 0:ea[La])?fa[La]=JSON.stringify(ea==null?void 0:ea[La]):fa[La]=ea==null?void 0:ea[La];return fa}),X=await z.quoteApi({platId:parseInt((Te=ml==null?void 0:ml.value)==null?void 0:Te.plat_id),type:"fatherSyncs",related:[{menus:t!==""?El.value+"/"+t:El.value,groups:l==null?void 0:l.name}]});X=(ee=X==null?void 0:X.data)==null?void 0:ee.result,X=X==null?void 0:X.filter(ea=>{var fa,La;return!((ea==null?void 0:ea.fatherPath)!==""&&((La=(fa=ea==null?void 0:ea.quote)==null?void 0:fa[0])==null?void 0:La.menus)===(El==null?void 0:El.value))});let Aa=(pe=(ke=l==null?void 0:l.columns)==null?void 0:ke[0])==null?void 0:pe.prop,Ma=($e=Ge==null?void 0:Ge[0])==null?void 0:$e[Aa],sl=[{tableName:(Ve=l==null?void 0:l.relatedContents)==null?void 0:Ve.find(ea=>ea==null?void 0:ea.includes("content")),tableContents:Ge}],nl=(ca=X==null?void 0:X.map(ea=>{var La,Ua,zl,Sl,Nl;let fa=(La=ea==null?void 0:ea.contents)==null?void 0:La.filter(Tl=>{var dl;return(dl=Object.values(Tl))==null?void 0:dl.find(tl=>tl===Ma)});if((fa==null?void 0:fa.length)>0){let Tl=Ge==null?void 0:Ge[0];Tl={...Tl,id:(Ua=fa==null?void 0:fa[0])==null?void 0:Ua.id};let dl={},tl=Tl,gl;return Array.isArray((zl=ea==null?void 0:ea.struct)==null?void 0:zl[0])?gl=sa.getColumnChild((Sl=ea==null?void 0:ea.struct)==null?void 0:Sl[0]):gl=ea==null?void 0:ea.struct,gl==null||gl.forEach(Cl=>{var Rl,br;dl[Cl.prop]=((Rl=Cl==null?void 0:Cl.words)!=null&&Rl[0]?tl==null?void 0:tl[(br=Cl==null?void 0:Cl.words)==null?void 0:br[0]]:tl==null?void 0:tl[Cl==null?void 0:Cl.prop])??""}),dl.id=(Nl=fa==null?void 0:fa[0])==null?void 0:Nl.id,delete dl.sort,{tableName:"content_"+(ea==null?void 0:ea.id),tableContents:[dl]}}else return}))==null?void 0:ca.filter(ea=>ea);sl=[...sl,...nl];let wa=await z.quoteApi({platId:parseInt((ya=ml==null?void 0:ml.value)==null?void 0:ya.plat_id),type:"sonSyncs",related:[{menus:t!==""?El.value+"/"+t:El.value,groups:l==null?void 0:l.name}]});if(wa=(da=(Oe=wa==null?void 0:wa.data)==null?void 0:Oe.result)==null?void 0:da.filter(ea=>!(sl!=null&&sl.find(fa=>(fa==null?void 0:fa.tableName)==="content_"+(ea==null?void 0:ea.id)))),wa=wa==null?void 0:wa.filter(ea=>{var fa,La;return!((ea==null?void 0:ea.fatherPath)!==""&&((La=(fa=ea==null?void 0:ea.quote)==null?void 0:fa[0])==null?void 0:La.menus)===(El==null?void 0:El.value))}),Da&&Da!==""){(Da==null?void 0:Da[(Da==null?void 0:Da.length)-1])===","&&(Da=Da==null?void 0:Da.slice(0,(Da==null?void 0:Da.length)-1)),Da=(_a=(Le=Da==null?void 0:Da.replace("(",co))==null?void 0:Le.split(co))==null?void 0:_a[1],Da=Da==null?void 0:Da.slice(0,(Da==null?void 0:Da.length)-1),(Da==null?void 0:Da[0])==="*"&&(Da="{"+((ma=(Fe=Da==null?void 0:Da.replace("{",co))==null?void 0:Fe.split(co))==null?void 0:ma[1])),Da=(ce=Da==null?void 0:Da.replaceAll("{",""))==null?void 0:ce.replaceAll("}","");let ea=sa.calculatorAndToOr(Da);ea=ea==null?void 0:ea[0];let fa;if((ga=Object.values(ea))!=null&&ga.some(La=>(La==null?void 0:La[0])==="*")){let La=(Ea=(ye=Fn.value)==null?void 0:ye.find(Ua=>(Ua==null?void 0:Ua.condition)==="child"))!=null&&Ea.value?(Jr==null?void 0:Jr.value)+"/"+((Ke=(Ye=Fn.value)==null?void 0:Ye.find(Ua=>(Ua==null?void 0:Ua.condition)==="child"))==null?void 0:Ke.value):Jr==null?void 0:Jr.value;fa=await Hr(La,!1)}for(let La in ea)if(((Ce=ea==null?void 0:ea[La])==null?void 0:Ce[0])==="*"){let Ua=(na=(pa=(Ee=ea[La])==null?void 0:Ee.slice(1,(be=ea[La])==null?void 0:be.length))==null?void 0:pa.split(":"))==null?void 0:na[0],zl=(Il=(rl=ea[La])==null?void 0:rl.split(":"))==null?void 0:Il[1],Sl=(Fl=fa==null?void 0:fa.filter(Nl=>(Nl==null?void 0:Nl.name)===Ua))==null?void 0:Fl[0];Sl=(Ha=(al=Sl==null?void 0:Sl.compData)==null?void 0:al.find(Nl=>(Nl==null?void 0:Nl.key)==="tableContents"))==null?void 0:Ha.contents,Sl=(oa=Sl==null?void 0:Sl[0])==null?void 0:oa[zl],ea[La]=Sl}Da=((Ta=Object.values(ea))==null?void 0:Ta[0])??""}let ha=(Va=wa==null?void 0:wa.map(ea=>{var La,Ua,zl,Sl,Nl;let fa=(La=ea==null?void 0:ea.contents)==null?void 0:La.filter(Tl=>{var dl;return(dl=Object.values(Tl))==null?void 0:dl.find(tl=>tl===(Da===""?Ma:Da))});if((fa==null?void 0:fa.length)>0){let Tl=Ge==null?void 0:Ge[0];Tl={...Tl,id:(Ua=fa==null?void 0:fa[0])==null?void 0:Ua.id};let dl={},tl=Tl,gl;return Array.isArray((zl=ea==null?void 0:ea.struct)==null?void 0:zl[0])?gl=sa.getColumnChild((Sl=ea==null?void 0:ea.struct)==null?void 0:Sl[0]):gl=ea==null?void 0:ea.struct,gl==null||gl.forEach(Cl=>{var br,Sr,nn,tn;let Rl=(br=l==null?void 0:l.columns)==null?void 0:br.find(Ar=>{var Gr,Xr,lr;return((Xr=(Gr=Ar==null?void 0:Ar.words)==null?void 0:Gr[0])==null?void 0:Xr.replaceAll("'",""))===(Cl==null?void 0:Cl.prop)&&((lr=Ar==null?void 0:Ar.functionRelatedWords)==null?void 0:lr.length)>0});Rl=(Sr=Rl==null?void 0:Rl.prop)==null?void 0:Sr.replaceAll("'",""),dl[Cl.prop]=((nn=Cl==null?void 0:Cl.words)!=null&&nn[0]?tl==null?void 0:tl[(tn=Cl==null?void 0:Cl.words)==null?void 0:tn[0]]:(tl==null?void 0:tl[Cl==null?void 0:Cl.prop])??(tl==null?void 0:tl[Rl]))??void 0}),dl.id=(Nl=fa==null?void 0:fa[0])==null?void 0:Nl.id,delete dl.sort,{tableName:"content_"+(ea==null?void 0:ea.id),tableContents:[dl]}}else return}))==null?void 0:Va.filter(ea=>ea);sl=[...sl,...ha],await z.pageBatchUpdateApi({platId:parseInt((ll=ml==null?void 0:ml.value)==null?void 0:ll.plat_id),changeContents:sl});let za=[];sl==null||sl.forEach(ea=>{var fa;(fa=ea==null?void 0:ea.tableContents)==null||fa.forEach(La=>{za.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(La),request_result:"{}",is_delete:!1,request_table:ea==null?void 0:ea.tableName,request_type:"method"})})}),await z.pageBatchAddApi({platId:parseInt((yl=ml==null?void 0:ml.value)==null?void 0:yl.plat_id),changeContents:[{tableName:"log",tableContents:za}]})}_r.setRefreshCurStructure(!0),await pi(l)},pi=async l=>{var u,k,h,v,y,c,E,A,L,_,W,C,M,ae,S,$,N,x;let n=(u=l==null?void 0:l.relatedContents)==null?void 0:u.filter(g=>g==null?void 0:g.includes("content_")),r=await z.getAllTables({platId:parseInt((k=ml==null?void 0:ml.value)==null?void 0:k.plat_id),tableNames:n});if(r=(v=(h=r==null?void 0:r.data)==null?void 0:h.result)==null?void 0:v[0],!r||!Array.isArray(r))return;r=r==null?void 0:r.map(g=>{g==null||delete g.source_table;const H={};for(let q in g){const G=g==null?void 0:g[q],he=G&&Object.prototype.toString.call(G)==="[object Object]"&&Object.keys(G).length===0,Be=Array.isArray(G)&&G.length===0;G==null||G==="{}"||he||Be?H[q]="":H[q]=G}return H});let t=(c=(y=n==null?void 0:n[0])==null?void 0:y.split("_"))==null?void 0:c[1],s=(E=Xl.value)==null?void 0:E.find(g=>(g==null?void 0:g.id)===t);if(s&&(s==null?void 0:s.comp)!=="Tabs"){let g=(A=s.compData)==null?void 0:A.map(H=>{var q;if((H==null?void 0:H.key)==="tableContents"){let G={...H,contents:r};return G.contents=(q=(G==null?void 0:G.contents)??[])==null?void 0:q.map(he=>{let Be={};for(let xe in he)JSON.stringify(he==null?void 0:he[xe])==="{}"?Be[xe]="":Be[xe]=he==null?void 0:he[xe];return Be}),G}return H});s.compData=await ti(g,{}),Xl.value=(L=Xl.value)==null?void 0:L.map(H=>((H==null?void 0:H.id)===(s==null?void 0:s.id)&&(H=s),H))}else{let g=(_=Xl.value)==null?void 0:_.filter(H=>(H==null?void 0:H.comp)==="Tabs"||(H==null?void 0:H.comp)==="ParentItem");if(g=(W=g==null?void 0:g.filter(H=>{var q,G;return((q=H==null?void 0:H.compData)==null?void 0:q.find(he=>(he==null?void 0:he.id)===t))||((G=H==null?void 0:H.children)==null?void 0:G.find(he=>(he==null?void 0:he.id)===t))}))==null?void 0:W[0],g){const H=((C=g==null?void 0:g.compData)==null?void 0:C.find(q=>(q==null?void 0:q.id)===t))??((M=g==null?void 0:g.children)==null?void 0:M.find(q=>(q==null?void 0:q.id)===t));if(H){let q;H!=null&&H.compData&&((ae=H.compData)==null?void 0:ae.length)>0?q=(S=H.compData)==null?void 0:S.map(G=>(G==null?void 0:G.key)==="tableContents"?{...G,contents:r}:G):q=($=H.children)==null?void 0:$.map(G=>(G==null?void 0:G.key)==="tableContents"?{...G,contents:r}:G),H.compData=await ti(q,{}),g.compData=(N=g.compData)==null?void 0:N.map(G=>((G==null?void 0:G.id)===(H==null?void 0:H.id)&&(G=H),G)),Xl.value=(x=Xl.value)==null?void 0:x.map(G=>((g!=null&&g.tabInform?(G==null?void 0:G.tabInform)===(g==null?void 0:g.tabInform):(G==null?void 0:G.name)===(g==null?void 0:g.name))&&(G=g),G))}}}},Hf=l=>{let n=$t.value;$t.value=n==null?void 0:n.map(r=>(r.value=l==null?void 0:l[r==null?void 0:r.prop],r))},Uf=async()=>{var A,L,_,W,C,M,ae,S,$,N;let l=ec.value,n=Qs.value,r=(L=(A=l==null?void 0:l.columns)==null?void 0:A.find(x=>x==null?void 0:x.mainKey))==null?void 0:L.prop,t=(W=(_=$t.value)==null?void 0:_[0])==null?void 0:W.value,s=(C=l==null?void 0:l.fixContent)==null?void 0:C.map(x=>{var H;let g={};for(let q in x)Array.isArray(x==null?void 0:x[q])?g[q]=JSON.stringify(x==null?void 0:x[q]):g[q]=x==null?void 0:x[q];return(H=l==null?void 0:l.columns)==null||H.forEach(q=>{(q==null?void 0:q.formType)==="Upload"&&(g==null?void 0:g[q==null?void 0:q.prop])===""&&(g[q==null?void 0:q.prop]="{}")}),g[r]=t,g}),u=[{tableName:(M=l==null?void 0:l.relatedContents)==null?void 0:M.find(x=>x==null?void 0:x.includes("content")),tableContents:s}];await z.pageBatchAddApi({platId:parseInt((ae=ml==null?void 0:ml.value)==null?void 0:ae.plat_id),changeContents:u}),n=n==null?void 0:n.filter(x=>{var g,H,q;return(q=x==null?void 0:x.object_name)==null?void 0:q.includes((H=(g=l==null?void 0:l.fixContent)==null?void 0:g[0])==null?void 0:H[r])});let k=[],h=new Map;n==null||n.forEach(x=>{k.push(`content_${x==null?void 0:x.object_id}`),k.push(`struct_${x==null?void 0:x.object_id}`),h.set(x==null?void 0:x.object_id,x)});let v=await z.getAllTables({platId:parseInt((S=ml==null?void 0:ml.value)==null?void 0:S.plat_id),tableNames:k});v=($=v==null?void 0:v.data)==null?void 0:$.result;let y=[],c=[];v=Na.chunk(v,2),v==null||v.forEach(x=>{var q,G,he,Be,xe,te,me,Z,ue,Ue,Ca,oe,D,ne,ve,se,_e,ra,ba,$a,le;let g=h.get((Be=(he=(G=(q=x==null?void 0:x[1])==null?void 0:q[0])==null?void 0:G.source_table)==null?void 0:he.split("_"))==null?void 0:Be[1]),H=(me=(te=(xe=g==null?void 0:g.object_name)==null?void 0:xe.split("/"))==null?void 0:te.filter((Qe,Ie)=>{var ka,Re;return((Re=(ka=g==null?void 0:g.object_name)==null?void 0:ka.split("/"))==null?void 0:Re.length)-1!==Ie}))==null?void 0:me.join("/");if(H=H+"/"+t,c!=null&&c.find(Qe=>(Qe==null?void 0:Qe.path)===H)||c.push({fatherPath:g==null?void 0:g.father_name,isShow:g==null?void 0:g.is_show,path:H}),((ue=(Z=x==null?void 0:x[1])==null?void 0:Z[0])==null?void 0:ue.类型)==="Table"){let Qe=((oe=(Ca=(Ue=x==null?void 0:x[1])==null?void 0:Ue[0])==null?void 0:Ca.结构)==null?void 0:oe.contents)??[],Ie=ul.safeClone(Qe);Array.isArray(Ie==null?void 0:Ie[0])&&(Ie=sa.getColumnChild(Ie==null?void 0:Ie[0]));let ka=[];if(((D=x==null?void 0:x[0])==null?void 0:D.length)>0&&(ka=(ne=x==null?void 0:x[0])==null?void 0:ne.map(Re=>Ie==null?void 0:Ie.map(ze=>(ze=(Re==null?void 0:Re[ze==null?void 0:ze.prop])??"",ze)))),y!=null&&y.find(Re=>(Re==null?void 0:Re.key)===H)){let Re=(ve=y==null?void 0:y.find(ze=>(ze==null?void 0:ze.key)===H))==null?void 0:ve.contents;Re.push({isShow:g==null?void 0:g.is_show,filter:((ra=(_e=(se=x==null?void 0:x[1])==null?void 0:se[0])==null?void 0:_e.引用)==null?void 0:ra.contents)??"",key:"Table",name:Object.values(g==null?void 0:g.name),tableColumns:Qe,tableContents:ka});let we=y==null?void 0:y.findIndex(ze=>(ze==null?void 0:ze.key)===H);y[we].contents=Re}else y.push({key:H,contents:[{isShow:g==null?void 0:g.is_show,filter:((le=($a=(ba=x==null?void 0:x[1])==null?void 0:ba[0])==null?void 0:$a.引用)==null?void 0:le.contents)??"",key:"Table",name:Object.values(g==null?void 0:g.name),tableColumns:Qe,tableContents:ka}]})}});let E=[];E.push({key:"menuPath",contents:c}),E=[...E,...y],await z.createPlatFormDataApi({platId:parseInt((N=ml==null?void 0:ml.value)==null?void 0:N.plat_id),changeData:E}),gi.value=!1,_r.setRefreshTable(!0)},wo=async(l,n)=>{},Co=async l=>{Xl.value=await sa.getDeepDiffItems(l),_r.setItemData(Xl.value),_r.setOriginalData(Xl.value)};a.ref();const qf=a.ref(null),Kf=()=>{var l,n;console.log("倒计时结束时"),z.ElMessageBox.alert(`超时未提交,【${(n=(l=El.value)==null?void 0:l.split("/"))==null?void 0:n[0]}】失败`,"告警",{confirmButtonText:"确认",type:"error"})},nc=a.ref([]),Wf=a.computed(()=>{var l,n;return(n=(l=ci.value)==null?void 0:l[El.value])==null?void 0:n.filter(r=>{var t;return((t=r==null?void 0:r.key)==null?void 0:t.type)==="gridLayout"})});a.watch(()=>[zf.value],()=>{rn.setSelectTitle([]),rn.setChooseTitle([])},{deep:!0});a.watch(()=>ui.value,async(l,n)=>{var t,s,u,k,h;if(JSON.stringify(l)===JSON.stringify(n))return;let r=(t=ui.value)==null?void 0:t.filter(v=>(v==null?void 0:v.condition)==="child"&&(v==null?void 0:v.value)!==""&&(v==null?void 0:v.parentContent)!==Jr.value);if((r==null?void 0:r.length)>0){Er.setContentLoading(!0);let v=((s=r==null?void 0:r[0])==null?void 0:s.relatedContent)??(El==null?void 0:El.value),y=v+"/"+((u=r==null?void 0:r[0])==null?void 0:u.value),c=!!((k=r==null?void 0:r[0])!=null&&k.parentContent),E=await Hr(y,c,{originPath:v});E=E==null?void 0:E.map(_=>(_.isShow=!0,_)),console.log(E,"loadingContents");let A=await sa.getDeepDiffItems(E),L=A==null?void 0:A.filter(_=>_==null?void 0:_.choice);Bo.setSelectTab((h=L==null?void 0:L[0])==null?void 0:h.choiceName),A=A==null?void 0:A.filter(_=>{var W;return!(_!=null&&_.choiceName)||(_==null?void 0:_.choiceName)===((W=L==null?void 0:L[0])==null?void 0:W.choiceName)}),Xl.value=A,Er.setContentLoading(!1)}});const Yf=l=>{setTimeout(async()=>{var k,h,v;let n=(k=ui.value)==null?void 0:k.filter(y=>(y==null?void 0:y.condition)==="child"&&(y==null?void 0:y.value)!==""&&(y==null?void 0:y.parentContent)!==Jr.value),r=El==null?void 0:El.value,t=El==null?void 0:El.value;(n==null?void 0:n.length)>0&&(t=((h=n==null?void 0:n[0])==null?void 0:h.relatedContent)??(El==null?void 0:El.value),r=t+"/"+((v=n==null?void 0:n[0])==null?void 0:v.value));let s=await Hr(r,!1,{originPath:t});s=s==null?void 0:s.map(y=>(y.isShow=!0,y)),Bo.setSelectTab(l);let u=await sa.getDeepDiffItems(s);Xl.value=u==null?void 0:u.filter(y=>!(y!=null&&y.choiceName)||(y==null?void 0:y.choiceName)===l)},10)};a.watch(()=>Mf.value,l=>{l!=null&&l.length||(Xl.value=[])},{immediate:!0});a.watch(()=>[El.value],async l=>{var u,k,h,v;if(!El.value)return;if(El.value==="/"){Xl.value=[];return}Er.setCurrentMenuPath(El.value),_r.setLockingPage(""),Xl.value=[];let n=a.getCurrentInstance();(u=n==null?void 0:n.scope)==null||u.stop(),n=null,Ct.value=!1,Er.setContentLoading(!0),Zs.value=!0;let r=l==null?void 0:l[0],t=r,s=(k=Fn.value)==null?void 0:k.filter(y=>(y==null?void 0:y.condition)==="child"&&(y==null?void 0:y.value)!==""&&(y==null?void 0:y.parentContent)!==El.value&&!(y!=null&&y.relatedContent));if((s==null?void 0:s.length)>0&&(r=r+"/"+((h=s==null?void 0:s[0])==null?void 0:h.value)),r==="系统管理/日志管理")Xl.value=await Df("log");else{let y=await Hr(r,!0,{originPath:t});y=y==null?void 0:y.map(A=>(A.isShow=!0,A));let c=await sa.getDeepDiffItems(y),E=c==null?void 0:c.filter(A=>A==null?void 0:A.choice);Bo.setSelectTab((v=E==null?void 0:E[0])==null?void 0:v.choiceName),Xl.value=c==null?void 0:c.filter(A=>{var L;return!(A!=null&&A.choiceName)||(A==null?void 0:A.choiceName)===((L=E==null?void 0:E[0])==null?void 0:L.choiceName)})}Er.setContentLoading(!1),_r.setExtraContents([]),rn.setSelectIndex(""),rn.setSelectMenu(""),_r.setItemData(Xl.value),_r.setOriginalData(Xl.value),_r.setRefreshTable(!1),a.nextTick(()=>{Hn.value=Hn.value++,Ct.value=!0})},{immediate:!0});a.watch(()=>[ts.value],async()=>{var l,n,r,t;if(ts.value){Xl.value=[];let s=a.getCurrentInstance();(l=s==null?void 0:s.scope)==null||l.stop(),s=null,Ct.value=!1,Er.setContentLoading(!0),Zs.value=!0;let u=Jr==null?void 0:Jr.value,k=u,h=(n=Fn.value)==null?void 0:n.filter(E=>(E==null?void 0:E.condition)==="child"&&(E==null?void 0:E.value)!==""&&(E==null?void 0:E.parentContent)!==(Jr==null?void 0:Jr.value));(h==null?void 0:h.length)>0&&(u=u+"/"+((r=h==null?void 0:h[0])==null?void 0:r.value));let v=await Hr(u,!0,{originPath:k});v=v==null?void 0:v.map(E=>(E.isShow=!0,E));let y=await sa.getDeepDiffItems(v),c=y==null?void 0:y.filter(E=>E==null?void 0:E.choice);if(Bo.setSelectTab((t=c==null?void 0:c[0])==null?void 0:t.choiceName),Xl.value=y==null?void 0:y.filter(E=>{var A;return!(E!=null&&E.choiceName)||(E==null?void 0:E.choiceName)===((A=c==null?void 0:c[0])==null?void 0:A.choiceName)}),Er.setContentLoading(!1),_r.setExtraContents([]),rn.setSelectIndex(""),rn.setSelectMenu(""),_r.setItemData(Xl.value),_r.setOriginalData(Xl.value),_r.setRefreshTable(!1),(h==null?void 0:h.length)>0){let E=[...Fn.value,...h];rn.setSelectTitle(E)}a.nextTick(()=>{Hn.value=Hn.value++,Ct.value=!0})}},{immediate:!0,deep:!0});const Jf=async()=>{Er.setLinkMenuInfo(null),Er.setActiveMenuPath(Af.value),Xl.value=null,_r.setRouteToChildPath(""),Er.setChildMenu("")},Gf=l=>new RegExp("button","i").test(l),Xf=l=>/^[\u4e00-\u9fa5]+\/[\u4e00-\u9fa5]+\^(.+)$/.test(l),tc=l=>{if(Xf(l)){const n=l==null?void 0:l.split("^");(n==null?void 0:n.length)>0&&(n!=null&&n[0])&&Er.setLinkMenuInfo({path:n==null?void 0:n[0],data:n==null?void 0:n[1]})}},oc=async(l,n,r)=>{var A,L,_,W,C,M,ae,S,$,N,x,g;let t="",s="";for(let H in n)(n==null?void 0:n[H])===l&&(s=H);r==null||r.forEach(H=>{(H==null?void 0:H.prop)===s&&(t=H==null?void 0:H.fatherPath)});let u=t===""?El.value:t;t!==""&&Er.setCurrentMenuPath(u),Er.setCurrentMenuPath(u+"/"+l),Er.setContentLoading(!0),await Hr(u+"/"+l,!0,{originPath:u+"/",row:n});let k=await Hr(u,!1),h=(A=k==null?void 0:k.filter(H=>(H==null?void 0:H.comp)==="Table"))==null?void 0:A[0],v=((C=(W=(_=(L=h==null?void 0:h.compData)==null?void 0:L.find(H=>(H==null?void 0:H.key)==="header"))==null?void 0:_.contents)==null?void 0:W[0])==null?void 0:C.prop)??((N=($=(S=(ae=(M=h==null?void 0:h.compData)==null?void 0:M.find(H=>(H==null?void 0:H.key)==="header"))==null?void 0:ae.contents)==null?void 0:S[0])==null?void 0:$[0])==null?void 0:N.prop),y=(g=(x=h==null?void 0:h.compData)==null?void 0:x.find(H=>(H==null?void 0:H.key)==="tableContents"))==null?void 0:g.contents;y=y==null?void 0:y.map(H=>({label:H==null?void 0:H[v],value:H==null?void 0:H[v]}));let c=Fn.value,E={value:l,condition:"child",options:y,relatedContent:u,isShow:!0};c.push(E),rn.setSelectTitle(c),rn.setChooseTitle([E]),Er.setContentLoading(!1),_r.setExtraContents([]),rn.setSelectIndex(""),rn.setSelectMenu(""),_r.setItemData(Xl.value),_r.setOriginalData(Xl.value)},Zf=l=>{lc.value=l},bt=a.reactive({index:0,comp:null}),Qf=a.computed(()=>{var l;return(l=Xl.value)==null?void 0:l.map((n,r)=>({id:n.id,name:n.name,status:e0(n,r)}))}),ic=(l,n)=>{var v,y,c,E,A;const r=n?l:l-2,t=(v=Xl.value)==null?void 0:v[r],s=(c=(y=t==null?void 0:t.compData)==null?void 0:y.find(L=>(L==null?void 0:L.key)==="header"))==null?void 0:c.contents,u=s==null?void 0:s.findIndex(L=>(L==null?void 0:L.isMainKey)&&(L==null?void 0:L.label)!=="操作"),k=u===-1?0:u,h=(A=(E=t==null?void 0:t.compData)==null?void 0:E.find(L=>(L==null?void 0:L.key)==="tableContents"))==null?void 0:A.contents;return{valid:h==null?void 0:h.every(L=>L==null?void 0:L[k+1]),length:(h==null?void 0:h.length)||0}},e0=(l,n)=>{var t;let r="process";if(((t=l==null?void 0:l.comp)==null?void 0:t.toUpperCase())==="TABLE"){const{valid:s,length:u}=ic(n,!0);bt.index===n?r="process":u===0?r="wait":r=s?"success":"error"}return r},sc=l=>{var r,t,s,u,k;const n=l+1;if(n>1&&((s=(t=(r=Xl.value)==null?void 0:r[l])==null?void 0:t.comp)==null?void 0:s.toUpperCase())==="TABLE"){const{valid:h}=ic(n);h?(bt.index=n,bt.comp=(u=Xl.value)==null?void 0:u[l]):Za.ElMessage({showClose:!0,type:"warning",message:"当前流程有输入未完成"})}else bt.index=n,bt.comp=(k=Xl.value)==null?void 0:k[l]},cc=a.computed(()=>{var l,n;return(n=(l=ac.value)==null?void 0:l[0])==null?void 0:n.isStepLayout});a.watch(()=>cc.value,l=>{l&&sc(0)},{immediate:!0});const a0={class:"table-content"},l0={class:"menu-config-wrap"},r0=["onClick"],n0={key:0,class:"viewport-wrap"},t0=["onClick"],o0={title:"选择显示列信息"},i0={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},s0=["title"],c0={class:"col-operate-wrap"},u0={key:0,class:"col-operate-radio-wrapper"},d0={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},p0={key:0,style:{display:"flex","justify-content":"center","align-items":"center"}},f0={class:"pop-view"},h0={class:"pop-wrapper"},v0={class:"file-list-pop"},m0=["title","onClick"],y0=["onClick"],g0=["onClick"],b0={key:1,style:{display:"flex","justify-content":"flex-end",gap:"8px","margin-top":"8px"}},k0={class:"form-content"},x0={key:0,class:"dialog-footer"},_0={class:"dialog-footer"},w0={class:"ocr-dialog-content"},C0={class:"ocr-steps"},E0={key:0,class:"ocr-action-buttons"},S0={key:1,class:"ocr-preview-area"},D0={class:"ocr-file-grid"},B0={class:"file-thumbnail"},N0=["src"],T0={key:1,class:"thumbnail-placeholder"},A0={class:"progress-svg",viewBox:"0 0 36 36"},M0=["stroke","stroke-width","stroke-dasharray"],z0={key:0,class:"progress-icon"},O0={key:1,class:"progress-icon"},I0=["onClick"],L0={class:"file-name"},V0={key:0,class:"ocr-recognize-button"},R0={key:2,class:"ocr-progress-section"},$0={key:3,class:"ocr-confirm-area"},P0={class:"ocr-preview-tip"},F0={class:"ocr-preview-table"},j0={style:{display:"flex","align-items":"center",gap:"8px"}},H0={key:0},U0={key:4,class:"ocr-success-area"},q0={key:0,class:"ocr-dialog-footer"},K0={class:"form-content"},W0={style:{display:"flex","justify-content":"space-between",gap:"8px"}},Y0={style:{display:"flex"}},is="ss-ocr-upload-history",J0="ss-ocr-cert-history-v1",G0={__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},compItem:{type:Object,default:()=>{}},operatingForm:{type:Object,default:()=>{}},cacheNewData:{type:Object,default:()=>{}},config:Object,parentTableId:{type:Number,default:0},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(l,{emit:n}){var Ni;const r=a.ref([]),t=mi(z.pinia),s=a.ref(null),u=a.ref(new Set),k=a.ref(new Map),h=a.ref(new Map),v=new Map,y=a.ref(new Map),c=l,E=a.ref((c==null?void 0:c.allowSelect)??!0),A=a.ref(((Ni=c==null?void 0:c.config)==null?void 0:Ni.showIndex)??!0),L=a.ref(),_=a.ref(!0),W=a.ref(!1),C=a.ref([]),M={sortable:"switch",filterable:"switch",showSummary:"switch",operable:"switch",fixed:"radio"},ae=a.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=sa.useOriginalState(z.pinia);let $="$R";const{originalPath:N}=z.storeToRefs(S),x=N.value,g=a.computed(()=>{var f;const d=(f=sa.getAllLeafNodes(xe.value)||[])==null?void 0:f.filter(T=>(T==null?void 0:T.type)!=="operate"&&(T==null?void 0:T.label)!=="操作"&&(T==null?void 0:T.prop)!=="operate");return d.length>0?d.every(T=>!!(T!=null&&T.sortable)):!1});a.computed(()=>{var f;return(f=xe.value)==null?void 0:f.every(T=>T==null?void 0:T.filterable)}),a.computed(()=>{var f;return(f=xe.value)==null?void 0:f.every(T=>T==null?void 0:T.operable)});const H=a.ref(!0),q=a.ref([]),G=a.reactive({column:{},status:!1,text:"合计"}),he=a.reactive({currentPage:1,pageSize:10,total:0,pageSizes:[5,10,20]}),Be=n,xe=a.ref([]),te=a.ref([]),me=a.ref([]),Z=a.reactive({prop:"",order:null}),ue=a.ref([]),Ue=a.ref(!1),Ca=a.ref(!1),oe=a.ref(null),{isUseBackdrop:D,initTrackFileType:ne,getFileExtension:ve,setData:se,getFileInfo:_e,getFilesInfo:ra}=go.useThreeSystem(),ba=a.ref([]),$a=a.ref(!1),le=a.ref(),Qe=z.useMenuState(),{importLoading:Ie,activeMenuPath:ka,contentLoading:Re,linkMenuInfo:we}=z.storeToRefs(Qe),ze=sa.useTableComp(z.pinia),qe=z.useModelComp(z.pinia),{extraContents:Sa,cacheUpdatingData:el,tableViewContents:P,tableLoading:j,pageMapState:Y,lockingPage:V}=z.storeToRefs(qe),{compType:K,hasEditable:Te}=Vs.useRole(),ee=a.ref([]),ke=a.ref([]),pe=a.ref(new Map);a.ref(!1);const $e=a.ref("");a.ref();const Ve=a.ref(!0),ca=a.ref(0),ya=a.ref(!0),Oe=a.ref(""),da=a.ref(!1),Le=a.ref(null);a.ref([]);const _a=a.ref({label:"查看三维模型"}),Fe=a.ref(!1),ma=a.ref(),ce=a.ref([]),ga=a.ref([]),ye=a.ref(!1),Ea=a.ref([]),Ye=a.ref([]),Ke=a.ref([]),Ce=a.ref([]),be=a.ref([]),Ee=()=>{try{const d=localStorage.getItem(is),f=d?JSON.parse(d):[];be.value=Array.isArray(f)?f:[]}catch{be.value=[]}},pa=()=>{try{localStorage.setItem(is,JSON.stringify(be.value||[]))}catch{}},na=d=>{var re,Q,ie;if(!d)return;const f=d.url||((re=d==null?void 0:d.uploadResult)==null?void 0:re.url)||"",T=d.name||((Q=d==null?void 0:d.uploadResult)==null?void 0:Q.name)||((ie=d==null?void 0:d.uploadResult)==null?void 0:ie.fileName)||"";if(!f&&!T)return;const I={name:T,url:f,ts:Date.now()},R=String(I.name||"").trim().toLowerCase(),b=(be.value||[]).findIndex(ge=>String((ge==null?void 0:ge.name)||"").trim().toLowerCase()===R);b>-1&&be.value.splice(b,1),be.value.unshift(I),be.value.length>20&&(be.value=be.value.slice(0,20)),pa()};Ee();const rl=(d,f)=>`${J0}:${String(d??"")}:${String(f??"")}`,Il=(d,f)=>{try{const T=sessionStorage.getItem(rl(d,f)),I=T?JSON.parse(T):[];return Array.isArray(I)?I:[]}catch{return[]}},Fl=(d,f,T)=>{try{sessionStorage.setItem(rl(d,f),JSON.stringify(Array.isArray(T)?T:[]))}catch{}},al=(d,f,T)=>{if(!f)return;const I=Il(d,f),R=[T,...I||[]].filter(Boolean).slice(0,1);return Fl(d,f,R),R},Ha=(d,f,T)=>{if(!f||!T)return;const I=rl(d,f),R=rl(d,T);try{const b=sessionStorage.getItem(I);if(!b)return;const re=(()=>{try{const ge=JSON.parse(b);return Array.isArray(ge)?ge:[]}catch{return[]}})(),Q=Il(d,T),ie=[...re,...Q||[]].filter(Boolean).sort((ge,Ne)=>Number((Ne==null?void 0:Ne.ts)||0)-Number((ge==null?void 0:ge.ts)||0)).slice(0,1);sessionStorage.setItem(R,JSON.stringify(ie)),sessionStorage.removeItem(I)}catch{}},oa=a.ref(!1),Ta=a.ref(!1),Va=a.ref([]),ll=a.ref(null);a.ref(!1),a.ref([]),a.ref(""),a.ref("");const yl=a.ref(!1),Da=a.ref([]),Ge=a.ref(1),X=a.ref(new Map),Aa=a.ref(new Map),Ma=a.ref(0),sl=a.ref(!1),nl=a.ref([]),wa=a.ref([]),ha=d=>{var f;try{const T=(f=sa.getAllLeafNodes(xe.value)||[])==null?void 0:f.filter(I=>(I==null?void 0:I.type)!=="operate"&&(I==null?void 0:I.label)!=="操作"&&(I==null?void 0:I.prop)!=="operate");return(T==null?void 0:T.find(I=>(I==null?void 0:I.prop)===d||(I==null?void 0:I.label)===d))||null}catch{return null}},za=d=>{const f=ha(d),T=(f==null?void 0:f.formType)||(f==null?void 0:f.columnType)||"Input";return ul.getComponent(T)||ul.getComponent("Input")},ea=a.ref([]),fa=a.ref(null),La=a.ref([]),Ua=a.ref(null),zl=a.ref(""),Sl=a.ref(!1),Nl=a.ref([]),Tl=a.ref(""),dl=a.ref(!1),tl=a.ref([]),gl=a.ref([]),Cl=a.ref([]),Rl=a.ref(null),br=a.ref([]),Sr=a.ref("");a.computed(()=>{var d;try{const f=(d=sa.getAllLeafNodes(xe.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"),T=new Map;return f==null||f.forEach(I=>{I!=null&&I.label&&(I!=null&&I.prop)&&T.set(I.label,I.prop)}),T.get("编号")||""}catch{return""}});const nn=a.computed(()=>{var d;try{const f=(d=sa.getAllLeafNodes(xe.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"),T=new Map;return f==null||f.forEach(I=>{I!=null&&I.label&&(I!=null&&I.prop)&&T.set(I.label,I.prop)}),T.get("名称")||""}catch{return""}}),tn=a.computed(()=>{var d;try{const f=(d=sa.getAllLeafNodes(xe.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"),T=new Map;return f==null||f.forEach(I=>{I!=null&&I.label&&(I!=null&&I.prop)&&T.set(I.label,I.prop)}),T.get("制造厂")||""}catch{return""}}),Ar=()=>{dl.value=!1,tl.value=[],gl.value=[],Cl.value=[],Rl.value=null,br.value=[],Sr.value=""},Gr=d=>d==null?!1:typeof d=="string"?d.trim()!=="":Array.isArray(d)?d.length>0:!0,Xr=(d,f)=>{const T=(d==null?void 0:d.ocrRow)||{};for(const R of Object.keys(T))R==="id"||R==="_isOCRRow"||R==="_ocrTableId"||Gr(T[R])&&(f[R]=T[R]);const I=ke.value.find(R=>R.id===f.id);if(I)for(const R of Object.keys(T))R==="id"||R==="_isOCRRow"||R==="_ocrTableId"||Gr(T[R])&&(I[R]=T[R]);pe.value&&pe.value.set(f.id,f),al(c==null?void 0:c.index,f.id,d==null?void 0:d.versionItem),gl.value=[...gl.value||[],JSON.parse(JSON.stringify(f))]},lr=async(d,f=null)=>{var T,I,R,b,re,Q,ie;try{const ge=(T=sa.getAllLeafNodes(xe.value)||[])==null?void 0:T.filter(xa=>(xa==null?void 0:xa.type)!=="operate"&&(xa==null?void 0:xa.label)!=="操作"&&(xa==null?void 0:xa.prop)!=="operate"),Ne=new Map;ge==null||ge.forEach(xa=>{xa!=null&&xa.label&&(xa!=null&&xa.prop)&&Ne.set(xa.label,xa.prop)});const Pe=Ne.get("系统编号")||Ne.get("编号");if(!Pe){console.warn("未找到系统编号字段,跳过向检校记录表插入数据");return}const De=f||Rl.value;if((Array.isArray(De==null?void 0:De.result)?De.result:[]).length===0){console.warn("OCR识别结果为空,跳过向检校记录表插入数据");return}for(let xa=0;xa<d.length;xa++){const Ka=d[xa],qa=Ka[Pe];if(!qa){console.warn(`第 ${xa+1} 条匹配行缺少系统编号,跳过`);continue}const ia=`设备管理/试验设备/${qa}`,Pa=await z.getPageDataApi({platId:parseInt((I=Bl.value)==null?void 0:I.plat_id),pageName:ia});if(!((R=Pa==null?void 0:Pa.data)!=null&&R.result)||!Array.isArray(Pa.data.result)){console.warn(`未找到详情页数据: ${ia}`);continue}const Ze=Pa.data.result.find(Xe=>(Xe==null?void 0:Xe.property_name)==="校检记录");if(!Ze){console.warn(`详情页 ${ia} 中未找到校检记录表`);continue}const Ra=(b=Ze.contents)==null?void 0:b.find(Xe=>(Xe==null?void 0:Xe.key)&&Xe.key.startsWith("content_"));if(!Ra||!Ra.key){console.warn("校检记录表中未找到 content item");continue}const Oa=Ra.key,F=Array.isArray(Ra.value)?Ra.value:[];if(F.length>=5){const va=[...F].sort((ua,Ia)=>{const cl=Number((ua==null?void 0:ua.create_time)||0),Xa=Number((Ia==null?void 0:Ia.create_time)||0);return cl-Xa})[0];va!=null&&va.id&&await z.pageBatchDeleteApi({platId:parseInt((re=Bl.value)==null?void 0:re.plat_id),changeContents:[{tableName:Oa,tableContents:[{id:va.id}]}]})}const la=(Q=ge==null?void 0:ge.find(Xe=>(Xe==null?void 0:Xe.label)==="证书附件"))==null?void 0:Q.prop,We=String(Date.now()),Se={id:We},B=F[0]||{},Me=new Date().toISOString().split("T")[0];if(Object.keys(B||{}).forEach(Xe=>{if(Xe!=="id"){if(Xe==="证书附件"){Se[Xe]="";return}if(Xe==="校检日期"||Xe==="检校日期"){Se[Xe]=Ka[Xe]||Ka.校检日期||Ka.检校日期||Me;return}if(["校检周期","检校周期","校检结果","检校结果","计量状态","依据文件","证书编号"].includes(Xe)){Se[Xe]=Ka[Xe]??"";return}Se[Xe]=Ka[Xe]??""}}),la&&Ka[la]){const Xe=Ka[la];if(Array.isArray(Xe)&&Xe.length>0)Se.证书附件=JSON.stringify(Xe.map(va=>({url:(va==null?void 0:va.url)||"",name:(va==null?void 0:va.name)||(va==null?void 0:va.fileName)||"",fileName:(va==null?void 0:va.fileName)||(va==null?void 0:va.name)||""})).filter(va=>va.url||va.name));else if(typeof Xe=="string")try{const va=JSON.parse(Xe);Se.证书附件=Xe}catch{Se.证书附件=JSON.stringify([{url:Xe,name:Xe,fileName:Xe}])}}console.log(Oa,"tableName","inspectionRecordRow",Se),await z.pageBatchAddApi({platId:parseInt((ie=Bl.value)==null?void 0:ie.plat_id),changeContents:[{tableName:Oa,tableContents:[Se]}]});const je=Ze==null?void 0:Ze.object_id;if(je&&We){const Xe=la&&Ka[la]?Ka[la]:null;let va=[],ua="",Ia=!1;if(Array.isArray(Xe)&&Xe.length>0){va=Xe.map(bl=>({name:(bl==null?void 0:bl.name)||(bl==null?void 0:bl.fileName)||"",url:(bl==null?void 0:bl.url)||""})).filter(bl=>bl.url||bl.name);const Xa=Xe[0];ua=(Xa==null?void 0:Xa.url)||"";const fl=(Xa==null?void 0:Xa.name)||(Xa==null?void 0:Xa.fileName)||"";Ia=String(fl).toLowerCase().endsWith(".pdf")||String(ua).toLowerCase().endsWith(".pdf")}else if(typeof Xe=="string")try{const Xa=JSON.parse(Xe);Array.isArray(Xa)?(va=Xa.map(fl=>({name:(fl==null?void 0:fl.name)||(fl==null?void 0:fl.fileName)||"",url:(fl==null?void 0:fl.url)||""})).filter(fl=>fl.url||fl.name),va.length>0&&(ua=va[0].url||"",Ia=String(va[0].name).toLowerCase().endsWith(".pdf")||String(ua).toLowerCase().endsWith(".pdf"))):(ua=Xe,Ia=String(Xe).toLowerCase().endsWith(".pdf"))}catch{ua=Xe,Ia=String(Xe).toLowerCase().endsWith(".pdf")}const cl={ts:Date.now(),versionId:String(Date.now())+"_"+String(xa),label:new Date().toLocaleString(),certType:Ka.证书类型||"",certNo:Ka.证书编号||"",fileType:Ia?"pdf":"image",sourceUrl:Ia?ua:"",images:va};al(je,We,cl)}}}catch(ge){console.error("向校检记录表插入OCR识别结果失败:",ge),Za.ElMessage.error("向校检记录表插入数据失败,请查看控制台")}},Tr=d=>{const f=Array.isArray(d)?d:tl.value||[];if(f.length===0){Ar();return}if(f.find(b=>(b==null?void 0:b.__decision)==="replace"&&!(b!=null&&b.selectedTargetId))){Za.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}f.forEach(b=>{var Q;const re=b==null?void 0:b.__decision;if(!(!re||re==="skip")){if(re==="add"){al(c==null?void 0:c.index,(Q=b==null?void 0:b.ocrRow)==null?void 0:Q.id,b==null?void 0:b.versionItem),Cl.value=[...Cl.value||[],b.ocrRow];return}if(re==="replace"){const ie=b==null?void 0:b.selectedTargetId,ge=(ee.value||[]).find(Ne=>String(Ne==null?void 0:Ne.id)===String(ie));if(!ge)return;Xr(b,ge)}}}),(gl.value||[]).length>0&&(ee.value=[...ee.value||[]]),(Cl.value||[]).length>0&&(ee.value=[...ee.value||[],...Cl.value||[]],ke.value=[...ke.value||[],...Cl.value||[]],(Cl.value||[]).forEach(b=>{var re,Q;return(Q=(re=pe.value)==null?void 0:re.set)==null?void 0:Q.call(re,b.id,b)})),dn.value=ee.value;const I=gl.value||[],R=Cl.value||[];if(I.length>0&&(Be("change",{buttonName:"编辑",singleContent:I,content:ee.value,relatedContents:c==null?void 0:c.related,index:c==null?void 0:c.index,parentTableId:c==null?void 0:c.parentTableId,columns:xe.value,name:c==null?void 0:c.compName}),lr(I)),R.length>0){const b=Rl.value;Be("change",{buttonName:"OCR批量新增",content:ee.value,index:c==null?void 0:c.index,parentTableId:c==null?void 0:c.parentTableId,column:xe.value,ocrRows:R,relatedContents:c==null?void 0:c.related,uploadedFiles:(Array.isArray(b==null?void 0:b.result)?b.result:[]).map(re=>(Array.isArray(re==null?void 0:re.图片信息)?re.图片信息:[]).map(Q=>({url:(Q==null?void 0:Q.url)||"",name:(Q==null?void 0:Q.name)||"",fileName:(Q==null?void 0:Q.name)||""})).filter(Q=>Q.url)),ocrResult:b,matchedCount:(I||[]).length,newCount:(R||[]).length})}Za.ElMessage.success("已提交候选处理结果"),Ar()},Dr=Xs(),_n=a.computed(()=>Dr.getConfig()),wr=a.ref(),sr=a.ref(),rt=Ks(z.pinia),dn=a.ref(),pn=a.ref(0),Tn=z.useUnit(z.pinia),{selectIndex:nt,selectMenu:An,selectTitle:Mn}=z.storeToRefs(Tn),{selectString:on}=z.storeToRefs(rt),Un=z.useLoginState(z.pinia),{loginUserInfo:Bl}=z.storeToRefs(Un),kr=a.ref(720),er=a.ref(!1),$l=a.ref(!1),Pl=a.ref([]),Hl=a.ref(),hr=a.ref(!0),rr=a.ref(!0),Pr=a.ref([]),Rr=a.inject("contentRef");a.provide("contentRef",Rr),a.provide("getSuggestListForCell",ru),a.provide("getSuggestLoadingForCell",(d,f)=>{const T=`${d==null?void 0:d.id}:${(f==null?void 0:f.prop)||(f==null?void 0:f.property)}`;return y.value.get(T)||!1}),a.watch(()=>{var d;return(d=ee.value)==null?void 0:d.length},d=>{he.total=d}),a.watch(()=>P.value,async()=>{var f,T,I,R,b,re,Q,ie,ge,Ne,Pe,De,aa,xa,Ka,qa,ia;if(((f=P.value)==null?void 0:f.length)===0||!((T=c==null?void 0:c.itemData)!=null&&T.find(Pa=>(Pa==null?void 0:Pa.key)==="columnPath"))||!((I=c==null?void 0:c.itemData)!=null&&I.find(Pa=>(Pa==null?void 0:Pa.key)==="pageColumn")))return;let d=(ge=(ie=(Q=(re=(b=(R=c==null?void 0:c.itemData)==null?void 0:R.find(Pa=>(Pa==null?void 0:Pa.key)==="pageColumn"))==null?void 0:b.contents)==null?void 0:re.split("["))==null?void 0:Q[1])==null?void 0:ie.split("]"))==null?void 0:ge[0];((aa=(De=(Pe=(Ne=c==null?void 0:c.itemData)==null?void 0:Ne.find(Pa=>(Pa==null?void 0:Pa.key)==="pageColumn"))==null?void 0:Pe.contents)==null?void 0:De.split("["))==null?void 0:aa[0])+((Ka=(xa=P.value)==null?void 0:xa.find(Pa=>(Pa==null?void 0:Pa.key)===d))==null?void 0:Ka.value),(ia=(qa=c==null?void 0:c.itemData)==null?void 0:qa.find(Pa=>(Pa==null?void 0:Pa.key)==="pageGroup"))==null||ia.contents,Bi(compData,c.allMapContents)},{deep:!0});const Ur=d=>{var T,I,R,b,re;const f=(I=(T=xe.value)==null?void 0:T.filter(Q=>Q==null?void 0:Q.mainKey))==null?void 0:I.map(Q=>Q==null?void 0:Q.prop);if(f.length===0){const Q=(R=xe.value)==null?void 0:R.map(ie=>ie==null?void 0:ie.prop);return(b=Q==null?void 0:Q.map(ie=>d==null?void 0:d[ie]))==null?void 0:b.join("|")}return(re=f==null?void 0:f.map(Q=>d==null?void 0:d[Q]))==null?void 0:re.join("|")},wn=d=>{var Q,ie,ge,Ne,Pe;const f=(ie=(Q=xe.value)==null?void 0:Q.filter(De=>De==null?void 0:De.required))==null?void 0:ie.map(De=>De==null?void 0:De.prop),T=[];if(d==null||d.forEach(De=>{f==null||f.forEach(aa=>{const xa=De[aa];(xa==null||xa==="")&&(T.includes(aa)||T.push(aa))})}),T.length>0)return Za.ElMessage.warning(`请填写必填项:${T.join("、")}`);const I=new Map,R=new Map;(ge=ee.value)==null||ge.forEach(De=>{const aa=Ur(De);I.set(aa,De)}),d==null||d.forEach(De=>{const aa=Ur(De);R.set(aa,De)});const b=d==null?void 0:d.filter(De=>I.has(Ur(De))),re=(Ne=ee.value)==null?void 0:Ne.filter(De=>R.has(Ur(De)));return(b==null?void 0:b.length)>0&&(ql.columns=(Pe=xe.value)==null?void 0:Pe.filter(De=>(De==null?void 0:De.label)!=="操作"),ql.existRows=re,ql.tableData=b,ql.show=!0),d==null?void 0:d.filter(De=>{const aa=Ur(De);return!I.has(aa)})},Cn=a.ref(""),zn=a.ref(null),tt=async()=>{var d,f,T,I,R,b;try{const re=await z.quoteApi({related:[{menus:ka.value,groups:c==null?void 0:c.compName}],platId:parseInt((d=Bl.value)==null?void 0:d.plat_id)});if(((f=re==null?void 0:re.data)==null?void 0:f.code)===200){zn.value=(T=re==null?void 0:re.data)==null?void 0:T.result;const Q=(I=xe.value)==null?void 0:I.map(Ne=>(Ne==null?void 0:Ne.prop)||(Ne==null?void 0:Ne.label)),ie=yn(Q,(R=re==null?void 0:re.data)==null?void 0:R.result),ge=ie==null?void 0:ie.flatMap(Ne=>Ne==null?void 0:Ne.quote);(ge==null?void 0:ge.length)>0&&(Cn.value=(b=ge==null?void 0:ge.map(Ne=>Ne==null?void 0:Ne.menus))==null?void 0:b.join("、"))}}catch(re){throw new Error(re)}};function yn(d,f){var T;return(T=f.filter(I=>I.struct&&Array.isArray(I.struct)?I.struct.some(R=>R.words&&Array.isArray(R.words)?R.words.some(b=>d.includes(b)):!1):!1))==null?void 0:T.map(I=>{const R={...I};return R.struct&&Array.isArray(R.struct)&&(R.struct=R.struct.filter(b=>b.words&&Array.isArray(b.words)?b.words.some(re=>d.includes(re)):!1)),R})}const En=async(d,f)=>{var T,I,R,b,re,Q,ie,ge,Ne,Pe;try{zn.value||await tt();const De=f==null?void 0:f.map(Pa=>{const Ze=Object.keys(Pa),Ra={};return Ze.forEach((Oa,F)=>{Ra[d[F]]=Pa[Oa]}),Ra}),aa=wn(De);if(!aa||(aa==null?void 0:aa.length)===0)return;let xa=await z.quoteApi({platId:parseInt((T=Bl==null?void 0:Bl.value)==null?void 0:T.plat_id),type:"fatherSyncs",related:[{menus:ka.value,groups:""},{menus:ka.value,groups:c==null?void 0:c.compName}]});xa=(I=xa==null?void 0:xa.data)==null?void 0:I.result;let Ka=xa==null?void 0:xa.map(Pa=>({tableName:"content_"+(Pa==null?void 0:Pa.id),tableContents:aa==null?void 0:aa.map((Ze,Ra)=>({id:Ra,...Ze}))})),qa=[{tableName:(R=c==null?void 0:c.related)==null?void 0:R.find(Pa=>Pa==null?void 0:Pa.includes("content")),tableContents:aa==null?void 0:aa.map((Pa,Ze)=>({id:Ze,...Pa}))}];qa=[...qa,...Ka];const ia=await z.pageBatchAddApi({platId:parseInt((b=Bl.value)==null?void 0:b.plat_id),changeContents:qa});if(((re=ia==null?void 0:ia.data)==null?void 0:re.code)===200){const Pa={buttonName:"新增",columns:xe.value,fixContent:aa==null?void 0:aa.map((Ra,Oa)=>({id:Oa,...Ra})),relatedContents:c==null?void 0:c.related};await pi(Pa),((Q=ql==null?void 0:ql.existRows)==null?void 0:Q.length)>0?Za.ElMessage.success("部分数据导入成功"):Za.ElMessage.success("数据导入成功");let Ze=[];qa==null||qa.forEach(Ra=>{var Oa;(Oa=Ra==null?void 0:Ra.tableContents)==null||Oa.forEach(F=>{Ze.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(F),request_result:"{}",is_delete:!1,request_table:Ra==null?void 0:Ra.tableName,request_type:"export"})})}),await z.pageBatchAddApi({platId:parseInt((ie=Bl==null?void 0:Bl.value)==null?void 0:ie.plat_id),changeContents:[{tableName:"log",tableContents:Ze}]})}else{let Pa=[];qa==null||qa.forEach(Ze=>{var Ra;(Ra=Ze==null?void 0:Ze.tableContents)==null||Ra.forEach(Oa=>{Pa.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(Oa),request_result:"{}",is_delete:!1,request_table:Ze==null?void 0:Ze.tableName,request_type:"error"})})}),await z.pageBatchAddApi({platId:parseInt((ge=Bl==null?void 0:Bl.value)==null?void 0:ge.plat_id),changeContents:[{tableName:"log",tableContents:Pa}]}),Za.ElMessage.error("数据导入响应失败")}}catch(De){throw Za.ElMessage.error("数据导入处理失败"),await z.pageBatchAddApi({platId:parseInt((Ne=Bl==null?void 0:Bl.value)==null?void 0:Ne.plat_id),changeContents:[{tableName:"log",tableContents:[{id:"1",request_method:"Post",request_url:"",request_param:JSON.stringify(t1),request_result:JSON.stringify(De),is_delete:!1,request_table:(Pe=c==null?void 0:c.related)==null?void 0:Pe.find(aa=>aa==null?void 0:aa.includes("content")),request_type:"error"}]}]}),new Error(De)}},On=async d=>{var b,re,Q,ie,ge,Ne,Pe;let f=me.value;f!=null&&f.find(De=>(d==null?void 0:d.key)===(De==null?void 0:De.key))&&(f=f==null?void 0:f.filter(De=>(d==null?void 0:d.key)!==(De==null?void 0:De.key))),f.push({key:d==null?void 0:d.key,value:[(re=d==null?void 0:d.value)==null?void 0:re[((b=d==null?void 0:d.value)==null?void 0:b.length)-1]]});let T=Ce.value;T=T==null?void 0:T.map(De=>{var aa,xa;return(De==null?void 0:De.type)==="Select"&&(d==null?void 0:d.key)===(De==null?void 0:De.prop)&&Array.isArray(De.value)&&(aa=De.value)!=null&&aa.every(Ka=>typeof Ka=="string")&&(De.selectValue=(xa=f==null?void 0:f.find(Ka=>(Ka==null?void 0:Ka.key)===(De==null?void 0:De.prop)))==null?void 0:xa.value),De});let I=(ie=(Q=T==null?void 0:T.find(De=>(De==null?void 0:De.prop)===(d==null?void 0:d.key)))==null?void 0:Q.optionUrl)==null?void 0:ie.menuId,R=T==null?void 0:T.find(De=>(De==null?void 0:De.prop)===(d==null?void 0:d.key));if(I){let De=await si(R==null?void 0:R.optionUrl,I),aa,xa=q.value,Ka=(Pe=(Ne=(ge=Ce.value)==null?void 0:ge.find(qa=>{var ia;return(ia=R==null?void 0:R.optionUrl)==null?void 0:ia.menuId}))==null?void 0:Ne.selectValue)==null?void 0:Pe[0];if(De==null||De.forEach(qa=>{var ia,Pa,Ze,Ra,Oa,F,la,We,Se,B;if(I){let Me=(Pa=(ia=Ce.value)==null?void 0:ia.find(Xe=>{var va,ua;return((va=R==null?void 0:R.optionUrl)==null?void 0:va.menuId)===((ua=Xe==null?void 0:Xe.optionUrl)==null?void 0:ua.menuId)}))==null?void 0:Pa.prop,je=(Ra=(Ze=T==null?void 0:T.find(Xe=>(Xe==null?void 0:Xe.prop)===Me))==null?void 0:Ze.selectValue)==null?void 0:Ra[0];Me!=null&&Me.includes("·")&&(Me=(Oa=Me==null?void 0:Me.split("·"))==null?void 0:Oa[0],je=(Se=(We=(la=d==null?void 0:d.value)==null?void 0:la[((F=d==null?void 0:d.value)==null?void 0:F.length)-1])==null?void 0:We.split(" "))==null?void 0:Se[0]),xa!=null&&xa.find(Xe=>(Xe==null?void 0:Xe.value)===Ka)?aa=(B=xa==null?void 0:xa.find(Xe=>(Xe==null?void 0:Xe.value)===Ka))==null?void 0:B.objectValue:qa[Me]===je&&(aa=qa)}}),aa){let qa=T;qa=qa==null?void 0:qa.map(ia=>{var Pa,Ze,Ra,Oa,F,la;return I&&(aa!=null&&aa[ia==null?void 0:ia.prop])&&Oe.value==="新增"&&(ia==null?void 0:ia.prop)!==(R==null?void 0:R.prop)?ia.value=(aa==null?void 0:aa[ia==null?void 0:ia.prop])||(aa==null?void 0:aa[(Oa=(Ra=(Ze=(Pa=ia==null?void 0:ia.optionUrl)==null?void 0:Pa.groupSelect)==null?void 0:Ze[1])==null?void 0:Ra.replaceAll("[",""))==null?void 0:Oa.replaceAll("]","")]):ia.value=(la=(F=Ce.value)==null?void 0:F.find(We=>(We==null?void 0:We.prop)===(ia==null?void 0:ia.prop)))==null?void 0:la.value,ia}),Ce.value=qa}}me.value=f},qr=async d=>{var f,T,I,R,b;if((f=d==null?void 0:d.toString())!=null&&f.includes(".txt")||(T=d==null?void 0:d.toString())!=null&&T.includes(".cpt")||(I=d==null?void 0:d.toString())!=null&&I.includes(".cyd")){const re=await Za.axios.get(d,{responseType:"blob",headers:{"Content-Type":"application/json"}}),Q=new Blob([re.data],{type:"application/octet-stream;charset=UTF-8"});let ie=URL.createObjectURL(Q);le.value=[{name:(b=d==null?void 0:d.split("/"))==null?void 0:b[((R=d==null?void 0:d.split("/"))==null?void 0:R.length)-1],blobUrl:ie}],$a.value=!0}};a.onBeforeUnmount(()=>{rr.value=!1;let d=pn.value;pn.value=d+1});const sn=a.reactive({prop:"",order:null}),qn=a.computed(()=>{const d=(ee.value??[]).slice(),f=sn.prop||Z.prop,T=sn.order||Z.order;if(!f||!T)return d;const I=T==="ascending",R=re=>{if(f)return re&&Object.prototype.hasOwnProperty.call(re,f)?re[f]:f.includes(".")?f.split(".").reduce((Q,ie)=>Q==null?Q:Q[ie],re):re==null?void 0:re[f]},b=re=>{if(re==null)return{ok:!1,value:NaN};if(typeof re=="number")return{ok:Number.isFinite(re),value:re};const Q=String(re).trim();if(Q==="")return{ok:!1,value:NaN};const ie=Q.replace(/[,\s]/g,"");if(!/^[+-]?(\d+\.?\d*|\.\d+)$/.test(ie))return{ok:!1,value:NaN};const ge=Number(ie);return{ok:Number.isFinite(ge),value:ge}};return d.sort((re,Q)=>{const ie=R(re),ge=R(Q);if(ie==null&&ge==null)return 0;if(ie==null)return I?-1:1;if(ge==null)return I?1:-1;const Ne=b(ie),Pe=b(ge);if(Ne.ok&&Pe.ok)return I?Ne.value-Pe.value:Pe.value-Ne.value;const De=Oa=>{if(Oa==null)return{ok:!1,value:NaN};const F=String(Oa).trim();if(F==="")return{ok:!1,value:NaN};const la=F.match(/^(-)?(\d+):(\d{1,2}):(\d{1,2})$/);if(!la)return{ok:!1,value:NaN};const We=la[1]?-1:1,Se=Number(la[2]),B=Number(la[3]),Me=Number(la[4]);return[Se,B,Me].some(je=>Number.isNaN(je))?{ok:!1,value:NaN}:B>=60||Me>=60?{ok:!1,value:NaN}:{ok:!0,value:We*(Se*3600+B*60+Me)}},aa=De(ie),xa=De(ge);if(aa.ok&&xa.ok)return I?aa.value-xa.value:xa.value-aa.value;const Ka=new Date(ie).getTime(),qa=new Date(ge).getTime(),ia=!Number.isNaN(Ka),Pa=!Number.isNaN(qa);if(ia&&Pa)return I?Ka-qa:qa-Ka;const Ze=String(ie),Ra=String(ge);return I?Ze.localeCompare(Ra):Ra.localeCompare(Ze)})}),Mr=a.computed(()=>{var T;const d=(he.currentPage-1)*he.pageSize,f=d+he.pageSize;return Be("getSliceContLength",he),(T=qn.value)==null?void 0:T.slice(d,f)}),Kn=d=>{he.currentPage=d,Be("getSliceContLength",he)},fn=d=>{var I;he.pageSize=d;const f=((I=ee.value)==null?void 0:I.length)??0,T=d>0?Math.ceil(f/d):1;he.currentPage>T&&(he.currentPage=T||1,Za.ElMessage.warning("当前页超出范围,已自动跳转到最后一页")),Be("getSliceContLength",he)},Dt=({prop:d,order:f})=>{sn.prop=d,sn.order=f,he.currentPage=1};function No(d){const f=[];function T(I,R=""){I.forEach(b=>{b.children&&b.children.length>0?T(b.children,b.prop):f.push(b.prop)})}return T(d),f}const To=(d,f)=>{var Q,ie,ge,Ne;let T=(ie=(Q=xe.value)==null?void 0:Q.map(Pe=>Pe==null?void 0:Pe.prop))==null?void 0:ie.filter(Pe=>Pe!=="operate");((ge=xe.value)==null?void 0:ge.some(Pe=>{var De;return((De=Pe==null?void 0:Pe.children)==null?void 0:De.length)>0}))&&(T=No((Ne=xe.value)==null?void 0:Ne.filter(Pe=>(Pe==null?void 0:Pe.prop)!=="operate")));let R;if(R=(d==null?void 0:d.length)===(T==null?void 0:T.length)?d:d.slice(0,T==null?void 0:T.length),!(R==null?void 0:R.every(Pe=>T==null?void 0:T.find(De=>Pe===De))))return Za.ElMessage.error("导入的数据表头不匹配");En(R,f)},gn=(d,f)=>{var R;const T=d==null?void 0:d.filter(b=>b!=="序号"),I=f==null?void 0:f.map(b=>{const re=Object.entries(b);return re.shift(),Object.fromEntries(re)});qe.setRefreshCurStructure(!1),((R=xe.value)==null?void 0:R.length)===0||To(T,I)},Ao=(d,f,T,I)=>{const R=[],b=[],re=ge=>Object.keys(ge).length;for(const ge in d)if(d[ge]!==void 0){const Ne=d[ge],Pe=[];for(const[De,aa]of Object.entries(Ne))Pe.push(aa),b.length<re(Ne)&&b.push(De);R.push(Pe)}R.unshift(b);const Q=Na.utils.aoa_to_sheet(R),ie=Na.utils.book_new();Na.utils.book_append_sheet(ie,Q,I),Na.writeFileSync(ie,`${f}.xlsx`),Pl.value=[]},jt=async(d,f,T,I=!1,R)=>{var b,re,Q,ie,ge,Ne,Pe,De;try{qe.setRefreshCurStructure(!1);const aa=await mr.getInsofDataApi({id:c==null?void 0:c.index});if(((b=aa==null?void 0:aa.data)==null?void 0:b.code)===200){let xa=(ge=(ie=(Q=(re=aa==null?void 0:aa.data)==null?void 0:re.result)==null?void 0:Q[0])==null?void 0:ie.value)==null?void 0:ge.pageData;I?xa={...xa,compData:(Pe=xa==null?void 0:xa.compData)==null?void 0:Pe.map(qa=>{var ia;return(qa==null?void 0:qa.key)==="header"?{...qa,contents:(ia=qa==null?void 0:qa.contents)==null?void 0:ia.map(Pa=>({...Pa,[d]:T}))}:qa})}:xa={...xa,compData:(Ne=xa==null?void 0:xa.compData)==null?void 0:Ne.map(qa=>{var ia,Pa;return(qa==null?void 0:qa.key)==="header"?{...qa,contents:(ia=qa==null?void 0:qa.contents)==null?void 0:ia.map(Ze=>{if(Array.isArray(Ze))Ze=Ze==null?void 0:Ze.map(Ra=>(Ra==null?void 0:Ra.prop)===(f==null?void 0:f.prop)?{...Ra,[d]:T}:Ra);else if((Ze==null?void 0:Ze.prop)===(f==null?void 0:f.prop))return{...Ze,[d]:T};return Ze})}:(qa==null?void 0:qa.key)==="tableToForm"&&R?{...qa,contents:(Pa=qa==null?void 0:qa.contents)==null?void 0:Pa.map(Ze=>(Ze==null?void 0:Ze.prop)===(f==null?void 0:f.prop)?{...Ze,[R]:T}:Ze)}:qa})};const Ka=await mr.updateInsofDataApi({id:c==null?void 0:c.index,value:{pageData:xa}});((De=Ka==null?void 0:Ka.data)==null?void 0:De.code)===200?(Za.ElMessage.success("编辑成功"),qe.setRefreshCurStructure(!0)):Za.ElMessage.error("编辑响应失败")}}catch(aa){Za.ElMessage.error(aa)}},Mo=async(d,f)=>{await jt("label",f,d)},Ht=async(d,f)=>{await jt("columnType",f,d,!1,"type")},Ut=async({newRow:d,targetIndex:f})=>{var R;if(!Te(c.config,{type:K.TABLE}))return;const I=(he.currentPage-1)*he.pageSize+(f??0);d._isTemp=!0;try{(d.sort===void 0||d.sort===null||String(d.sort).trim()==="")&&(d.sort=Zt(I,ee.value||[]))}catch{}ee.value.splice(I,0,d),await a.nextTick(),k.value.has(d.id)||k.value.set(d.id,z.cloneDeep(d)),ee.value=(R=ee.value)==null?void 0:R.map(b=>({...b,tableEditType:(b==null?void 0:b.id)===d.id?"edit":(b==null?void 0:b.tableEditType)??"text"})),u.value.add(d.id),er.value=!0},zr=(d,f,T,I=[])=>(!Array.isArray(f)||f.length===0||f.forEach(R=>{const b=R==null?void 0:R.prop;if(!b)return;let re=d==null?void 0:d[b];if(re==null||String(re).trim()==="")return;re=String(re);const Q=new Set([...(Array.isArray(T)?T:[]).filter(Ne=>(Ne==null?void 0:Ne.id)!==(d==null?void 0:d.id)).map(Ne=>Ne==null?void 0:Ne[b]).filter(Ne=>Ne!=null).map(Ne=>String(Ne)),...(Array.isArray(I)?I:[]).map(Ne=>Ne==null?void 0:Ne[b]).filter(Ne=>Ne!=null).map(Ne=>String(Ne))]);if(!Q.has(re))return;let ie=1,ge="";for(;ge=`${re}(${ie})`,!!Q.has(ge);)ie++;d[b]=ge}),d),Bt=async()=>{var R,b,re,Q,ie,ge,Ne,Pe;const d=Array.from(u.value||[]);if(d.length===0)return;const f=(b=sa.getColumnChild((R=z.cloneDeep(xe.value))==null?void 0:R.filter(De=>(De==null?void 0:De.label)!=="操作")))==null?void 0:b.filter(De=>(De==null?void 0:De.required)===!0);if((f==null?void 0:f.length)>0)for(let De=0;De<d.length;De++){const aa=d[De],xa=(re=ee.value)==null?void 0:re.find(Ka=>(Ka==null?void 0:Ka.id)===aa);if(xa)for(let Ka=0;Ka<f.length;Ka++){const qa=f[Ka],ia=qa==null?void 0:qa.prop,Pa=(qa==null?void 0:qa.label)??ia,Ze=xa==null?void 0:xa[ia];if(Ze===""||Ze===null||Ze===void 0||Array.isArray(Ze)&&Ze.length===0){Za.ElMessage.error(`${Pa}不能为空`);return}}}const T=[],I=[];if(d.forEach(De=>{var Pa;const aa=(Pa=ee.value)==null?void 0:Pa.find(Ze=>(Ze==null?void 0:Ze.id)===De);if(!aa)return;if(aa!=null&&aa._isTemp){const Ra=(sa.getAllLeafNodes(xe.value)||[]).filter(B=>(B==null?void 0:B.mainKey)===!0||(B==null?void 0:B.isMainKey)===!0),Oa=ee.value.findIndex(B=>(B==null?void 0:B.id)===De),F=Oa>=0?Oa+1:ee.value.length+1;zr(aa,Ra,ee.value,T);const la={id:F.toString()};(aa==null?void 0:aa.sort)!==void 0&&(aa==null?void 0:aa.sort)!==null&&String(aa.sort).trim()!==""?la.sort=String(aa.sort):la.sort=Zt(Oa>=0?Oa:ee.value.length-1,ee.value||[]),(sa.getAllLeafNodes(xe.value)||[]).filter(B=>(B==null?void 0:B.type)!=="operate"&&(B==null?void 0:B.label)!=="操作"&&(B==null?void 0:B.prop)!=="operate").forEach(B=>{const Me=B==null?void 0:B.prop;if(Me){const je=aa[Me];je!==void 0?la[Me]=je??"":la[Me]=""}}),T.push(la);return}const Ka=(sa.getAllLeafNodes(xe.value)||[]).filter(Ze=>(Ze==null?void 0:Ze.type)!=="operate"&&(Ze==null?void 0:Ze.label)!=="操作"&&(Ze==null?void 0:Ze.prop)!=="operate"),qa=new Set(Ka.map(Ze=>Ze==null?void 0:Ze.prop).filter(Boolean)),ia={};for(const Ze of qa)Object.prototype.hasOwnProperty.call(aa,Ze)&&(ia[Ze]=aa[Ze]);I.push({id:aa.id,value:{tableData:ia}})}),qe.setTableLoading(c==null?void 0:c.index),I.length>0){const De=I.map(xa=>{const Ka={id:xa.id,...xa.value.tableData};return delete Ka._isOCRRow,delete Ka._ocrTableId,delete Ka._isTemp,delete Ka.tableEditType,delete Ka.index,Ka}),aa=[{tableName:(Q=c==null?void 0:c.related)==null?void 0:Q.find(xa=>xa==null?void 0:xa.includes("content")),tableContents:De}];try{await z.pageBatchUpdateApi({platId:parseInt((ie=Bl.value)==null?void 0:ie.plat_id),changeContents:aa})}catch(xa){Za.ElMessage.error(((Ne=(ge=xa==null?void 0:xa.response)==null?void 0:ge.data)==null?void 0:Ne.message)||(xa==null?void 0:xa.message)||"保存失败"),qe.setTableLoading(!1);return}}if(T.length>0){const De={fixContent:T,buttonName:"新增",relatedContents:c==null?void 0:c.related,name:c==null?void 0:c.compName,columns:xe.value};Be("change",De)}Za.ElMessage.success("保存成功"),u.value.clear(),k.value.clear(),ee.value=(Pe=ee.value)==null?void 0:Pe.map(De=>({...De,tableEditType:"text"})),er.value=!1,qe.setRefreshCurStructure(!0)},zo=()=>{var f;const d=Array.from(u.value||[]);if(d.length===0){er.value=!1;return}d.forEach(T=>{var b,re;const I=k.value.get(T),R=(b=ee.value)==null?void 0:b.find(Q=>(Q==null?void 0:Q.id)===T);if(R!=null&&R._isTemp){ee.value=ee.value.filter(Q=>(Q==null?void 0:Q.id)!==R.id);return}if(I){const Q=(re=ee.value)==null?void 0:re.findIndex(ie=>(ie==null?void 0:ie.id)===T);Q!==-1&&(ee.value[Q]={...ee.value[Q],...I})}}),u.value.clear(),k.value.clear(),ee.value=(f=ee.value)==null?void 0:f.map(T=>({...T,tableEditType:"text"})),er.value=!1},Nt=a.ref(!1),qt=async d=>{var R,b,re,Q;if(!er.value||d!=null&&d.isComposing||(d==null?void 0:d.key)!=="Enter")return;const f=d==null?void 0:d.target;if(((b=(R=f==null?void 0:f.tagName)==null?void 0:R.toLowerCase)==null?void 0:b.call(R))==="textarea")return;const I=document.getElementById("excel-table");I&&!I.contains(f)||((re=f==null?void 0:f.blur)==null||re.call(f),(Q=d.preventDefault)==null||Q.call(d),await a.nextTick(),await Kt())},Kt=async()=>{if(el.value){er.value=!1;return}if(!Nt.value){Nt.value=!0;try{Array.from(u.value||[]).length>0?await Bt():er.value=!1}finally{Promise.resolve().then(()=>{Nt.value=!1})}}},Oo=d=>{Pl.value=d},Io=(d,f)=>{Hl.value===f?hr.value=!1:hr.value=!0,Hl.value=f==null?void 0:f.changeProp},Lo=d=>{if(!d)return;const{item:f,value:T}=d,I=Ce.value.find(R=>R.prop==f.prop);I&&I.contents.push({label:T,value:T})},In=a.computed(()=>{var T,I,R;const d=(T=xe.value)==null?void 0:T.some(b=>b==null?void 0:b.filterable);return document.documentElement.style.setProperty("--ssTable-header-filter-display",d?"inline-block":"none"),(R=(I=xe.value)==null?void 0:I.filter(b=>(b==null?void 0:b.label)!=="操作"))==null?void 0:R.map(b=>({...b,filterable:!!(b!=null&&b.filterable),showSummary:!!(b!=null&&b.showSummary),operable:!!(b!=null&&b.operable),fixed:b==null?void 0:b.fixed}))}),Wn=async(d,f,T)=>{const I=z.cloneDeep(xe.value);await a.nextTick();const R=I==null?void 0:I.map(re=>(T==null?void 0:T.label)===(re==null?void 0:re.label)?{...re,[f]:d}:re),b=hn(R);await ls(c.index,b),xe.value=R,te.value=b},hn=d=>{var R;const f=d||[];return((R=sa.getAllLeafNodes(f)||[])==null?void 0:R.filter(b=>(b==null?void 0:b.prop)&&(b==null?void 0:b.type)!=="operate"&&(b==null?void 0:b.label)!=="操作"&&(b==null?void 0:b.prop)!=="operate")).map(b=>{const{prop:re}=b;return bf(re,b)})},ot=async d=>{let f=await xf(c.index);f||(f=hn(d)),te.value=f},Vo=async(d,f)=>{const T=z.cloneDeep(xe.value),I=re=>Array.isArray(re)?re.map(Q=>{const ie=Array.isArray(Q==null?void 0:Q.children)&&Q.children.length>0,ge={...Q};return(ge==null?void 0:ge.prop)==="operate"||(ge==null?void 0:ge.label)==="操作"||(ge==null?void 0:ge.type)==="operate"?(ge.sortable=!1,ge.filterable=!1,ge.operable=!1):ge.sortable=ie?!1:!!d,ie&&(ge.children=I(ge.children)),ge}):re,R=I(T),b=hn(R);await ls(c.index,b),xe.value=R,te.value=b,await a.nextTick(),pn.value=pn.value+1},Wt=()=>{da.value=!1},Yt=d=>{Be("clickTrigger",d)},Tt=async d=>{var b,re,Q,ie,ge,Ne,Pe,De,aa,xa,Ka,qa,ia,Pa,Ze;const f=d==null?void 0:d.row,T=d==null?void 0:d.rowData,I=d==null?void 0:d.suffix;if((b=f==null?void 0:f.toString())!=null&&b.includes(".urdf")||d!=null&&d.isUrdf||I!=null&&I.includes(".urdf")){if(f.includes(",")){Za.ElMessage.error("当前版本仅允许单个urdf预览!");return}if(D(f)){const Oa={files:[_e(f)],data:{}};se(Oa);return}Ea.value=[{url:f,extension:ve(f)}],Ca.value=!0,oe.value={data:z.cloneDeep(T)},Ue.value=!0;return}let R=[];if((re=f==null?void 0:f.toString())!=null&&re.includes(".stl")||(Q=f==null?void 0:f.toString())!=null&&Q.includes(".STL")||(ie=f==null?void 0:f.toString())!=null&&ie.includes(".obj")||(ge=f==null?void 0:f.toString())!=null&&ge.includes(".mtl")){const Ra=(Ne=f==null?void 0:f.toString())==null?void 0:Ne.split(","),Oa=ra(Ra),F=Oa==null?void 0:Oa[0];if(D(F==null?void 0:F.extension)){se({files:Oa,data:{}});return}Ea.value=Oa,Ca.value=!1,Ue.value=!0;return}if((Pe=f==null?void 0:f.toString())!=null&&Pe.includes(".stl")||(De=f==null?void 0:f.toString())!=null&&De.includes(".STL")||(aa=f==null?void 0:f.toString())!=null&&aa.includes(".obj")||(xa=f==null?void 0:f.toString())!=null&&xa.includes(".mtl")||I!=null&&I.includes(".stl")||I!=null&&I.includes(".STL")||I!=null&&I.includes(".obj")||I!=null&&I.includes(".mtl")){let Ra,Oa=[],F={};if(Array.isArray(f)?Ra=f:Ra=f==null?void 0:f.split(","),Ra==null||Ra.forEach(la=>{la.includes(".mtl")?Oa.push(la):F.blob=F.blob?F.blob+","+la:la}),(Oa==null?void 0:Oa.length)>0&&(F.mtlBlobs=Oa),I&&(F.suffix=I),(qa=(Ka=Object.values(F))==null?void 0:Ka[0])!=null&&qa.includes("http:"))R.push(F);else{const la=new Blob([F.blob],{type:"application/octet-stream;charset=UTF-8"});let We=URL.createObjectURL(la),Se="";(ia=f==null?void 0:f.split("/"))==null||ia.forEach((B,Me)=>{var je;Me===((je=f==null?void 0:f.split("/"))==null?void 0:je.length)-1&&(Se=B)}),(Pa=F.blob)!=null&&Pa.includes(".stl")&&(Se=(Se==null?void 0:Se.replaceAll(">",""))+".urdf"),le.value=[{name:Se,blobUrl:We}],$a.value=!0}}else{const Ra=await Za.axios.get(f,{responseType:"blob",headers:{"Content-Type":"application/json"}}),Oa=new Blob([Ra.data],{type:"application/octet-stream;charset=UTF-8"});let F=URL.createObjectURL(Oa),la="";if((Ze=f==null?void 0:f.split("/"))==null||Ze.forEach((We,Se)=>{var B;Se===((B=f==null?void 0:f.split("/"))==null?void 0:B.length)-1&&(la=We)}),D(la)){const We=ne(la),Se=_e(f);se({files:[Se],data:{trackFileType:We}});return}le.value=[{name:la,blobUrl:F}],$a.value=!0}(R==null?void 0:R.length)>0&&t.setBlobUrls(R)},vn=d=>{var I,R,b,re;if(d!=null&&d.downloadUrl)return d==null?void 0:d.name;const f=(re=(I=d==null?void 0:d.url)==null?void 0:I.split("."))==null?void 0:re[((b=(R=d==null?void 0:d.url)==null?void 0:R.split("."))==null?void 0:b.length)-1];return(d==null?void 0:d.name)+"."+f},Jt=d=>{if(!d)return"未知文件";try{const I=vn(d);if(typeof I=="string"&&I.includes("."))return I}catch{}const f=(d==null?void 0:d.fileName)||(d==null?void 0:d.name)||"未知文件",T=(d==null?void 0:d.suffix)||"";return f.includes(".")?f:`${f}${T}`},Gt=d=>{if(d==null||typeof d=="number"||typeof d!="string")return d;const f=d.match(/^(\d+)\_(\d+)$/);if(!f)return d;const T=Number(f[1]),I=Number(f[2]);return!Number.isFinite(T)||!Number.isFinite(I)?d:String(T*1e3+I)},Yn=d=>{if(d==null)return null;const f=String(d).trim();if(!f)return null;const T=Number(f);return Number.isFinite(T)?T:null},Xt=(d,f=[])=>{const T=Array.isArray(d)?d.slice():[];if(T.length<=1)return T;const I=new Map((f||[]).map((re,Q)=>[String(re),Q])),R=T.some(re=>Yn(re==null?void 0:re.sort)!==null),b=T.map((re,Q)=>({r:re,idx:Q,id:String((re==null?void 0:re.id)??""),sortVal:Yn(re==null?void 0:re.sort),prevIdx:I.has(String(re==null?void 0:re.id))?I.get(String(re==null?void 0:re.id)):Number.POSITIVE_INFINITY}));return b.sort((re,Q)=>{if(R){const ie=re.sortVal,ge=Q.sortVal;if(ie===null&&ge!==null)return 1;if(ie!==null&&ge===null)return-1;if(ie!==null&&ge!==null&&ie!==ge)return ie-ge}return re.prevIdx!==Q.prevIdx?re.prevIdx-Q.prevIdx:re.idx-Q.idx}),b.map(re=>re.r)},Zt=(d,f=[])=>{const T=f==null?void 0:f[d-1],I=f==null?void 0:f[d],R=Yn(T==null?void 0:T.sort),b=Yn(I==null?void 0:I.sort);let re=null;R!==null&&b!==null&&b>R?re=(R+b)/2:R!==null?re=R+1:b!==null?re=Math.max(b-1,0):re=(d??0)+1;const Q=Number(re.toFixed(6));return String(Number.isFinite(Q)?Q:re)},Ro=async d=>{let f=null,T=null;if(d!=null&&d.id){const R=z.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});try{const b=await z.platformDownloadFile(d);f=URL.createObjectURL(b.data),T=Jt(d)}finally{R.close()}}else if(d!=null&&d.downloadUrl){const R=await Ln(),b=z.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),re=await Za.axios.post(d==null?void 0:d.url,null,{responseType:"blob",headers:{Authorization:R,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}).finally(()=>{b.close()}),Q=new Blob([re.data],{type:"application/octet-stream;charset=UTF-8"});f=URL.createObjectURL(Q),T=d==null?void 0:d.name}else{const R=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")?(f=URL.createObjectURL(R.data),T=vn(d)):f=d==null?void 0:d.url}if(D(f)){const R={row:`${f}`,suffix:ve(T)};Tt(R);return}const I={name:T,blobUrl:f};le.value=[I],$a.value=!0},At=async d=>{let f=null,T=null;if(d!=null&&d.id){const b=await z.platformDownloadFile(d);f=URL.createObjectURL(b.data),T=Jt(d)}else if(d!=null&&d.downloadUrl){const b=await Ln(),re=await Za.axios.post(d==null?void 0:d.url,null,{responseType:"blob",headers:{Authorization:b,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}),Q=new Blob([re.data],{type:"application/octet-stream;charset=UTF-8"});f=URL.createObjectURL(Q),T=d==null?void 0:d.name}else{const b=await z.platformDownloadFile({url:d==null?void 0:d.url});f=URL.createObjectURL(b.data),T=vn(d)}const I={name:T,blobUrl:f},R=document.createElement("a");R.href=I.blobUrl,R.download=I.name,R.style.display="none",document.body.appendChild(R),R.click(),setTimeout(()=>{document.body.removeChild(R)},100)},$o=(d,f)=>{var I;if(Object.values(f).length===0)return;let T=d;return Object.values(f).find(R=>{var b,re,Q;return((b=R==null?void 0:R.toString())==null?void 0:b.includes(".txt"))||((re=R==null?void 0:R.toString())==null?void 0:re.includes(".cpt"))||((Q=R==null?void 0:R.toString())==null?void 0:Q.includes(".obj"))})?T=[...d,_a.value]:(I=c==null?void 0:c.config)!=null&&I.allowMove&&(T=[...d,{label:"迁移"}]),T},it=()=>{W.value=!0},Po=a.ref([]),Mt=async(d,f,T=!1)=>{var re,Q,ie,ge;if(!d)return;if(T){ee.value=[...pe.value.values()].filter(Ne=>Object.values(Ne).some(Pe=>typeof Pe=="string"?Pe==null?void 0:Pe.toLowerCase().includes(f==null?void 0:f.toLowerCase()):!1));return}let I={};for(let Ne in d)(d==null?void 0:d[Ne])!==""&&(I[Ne]=d==null?void 0:d[Ne]);if(JSON.stringify(I)==="{}"){ee.value=Array.from(((re=pe.value)==null?void 0:re.values())??[]);return}let R=(Q=c==null?void 0:c.related)==null?void 0:Q.find(Ne=>Ne==null?void 0:Ne.includes("content_")),b=await z.getFillFind({platId:parseInt((ie=Bl==null?void 0:Bl.value)==null?void 0:ie.plat_id),tableName:R,params:I});b=(ge=b==null?void 0:b.data)==null?void 0:ge.result,ee.value=b,qe.setTableLoading(!1)},Fo=async d=>{var T,I;if(!Te(c.config,{type:K.TABLE})||!d)return;((T=Array.from(u.value))==null?void 0:T.length)>0&&await Bt();const f=d==null?void 0:d.id;f!=null&&(u.value.clear(),k.value.clear(),k.value.has(f)||k.value.set(f,z.cloneDeep(d)),ee.value=(I=ee.value)==null?void 0:I.map(R=>({...R,tableEditType:(R==null?void 0:R.id)===f?"edit":"text"})),u.value.add(f),er.value=!0)},Qt=async(d,f,T,I)=>{I!=null&&I.isExistChild&&Be("clickMainKey",d,T,xe.value)},eo=()=>{$a.value=!1},Jn=d=>{Be("rowClick",d)};a.watch(()=>c.changedContent,()=>{var T,I;if(!c.changedContent)return;let d=(T=ee.value)==null?void 0:T.map(R=>{var b;return R.id===((b=c.changedContent)==null?void 0:b.id)&&(R={...c.changedContent,id:c.changedContent.newId?c.changedContent.newId:c.changedContent.id},delete R.newId),R});const f=(I=c.itemData)==null?void 0:I.map(R=>((R==null?void 0:R.key)==="tableContents"&&(R.contents=d),R));ee.value=d,Be("contentChange",{contents:f,index:c.index}),Be("change",{content:d,index:c==null?void 0:c.index,buttonName:"",id:c==null?void 0:c.index})},{deep:!0,immediate:!0});const bn=()=>{},ao=async()=>{const d=ka.value,f=sessionStorage.getItem("systemKey"),T=await sa.getItemData(d,f,""),I=(T==null?void 0:T.find(Q=>(Q==null?void 0:Q.name)==="方法明细"))||(T==null?void 0:T[0]),R=(I==null?void 0:I.compData)||[],b=R==null?void 0:R.find(Q=>{const ie=Q==null?void 0:Q.key;return ie==="formContent"||ie==="tableContents"});return b==null?void 0:b.contents},Ln=async()=>{const f=Za.Local.get("access-token");return f?`Bearer ${f}`:""},jo=async(d,{token:f,inputData:T}={})=>await Za.axios.post(d,T,{headers:{Authorization:f}}).catch(R=>(Qe.setImportLoading(!1),Promise.reject(R))),Ho=d=>{var I;let f={};const T=[];return f.form={},(I=z.cloneDeep(d))==null||I.forEach((R,b)=>{var re,Q,ie,ge,Ne,Pe,De,aa,xa,Ka,qa,ia,Pa,Ze;if((R==null?void 0:R.comp)==="Table"){(Q=(re=R==null?void 0:R.compData)==null?void 0:re.find(la=>(la==null?void 0:la.key)==="header"))==null||Q.contents;let Ra=(Ne=(ge=(ie=R==null?void 0:R.compData)==null?void 0:ie.find(la=>(la==null?void 0:la.key)==="tableContents"))==null?void 0:ge.contents)==null?void 0:Ne.map(la=>la.slice(1));(Ka=(xa=(aa=(De=(Pe=R==null?void 0:R.compData)==null?void 0:Pe.find(la=>(la==null?void 0:la.key)==="header"))==null?void 0:De.contents)==null?void 0:aa[0])==null?void 0:xa[0])==null||Ka.label;let Oa=(ia=(qa=R==null?void 0:R.compData)==null?void 0:qa.find(la=>(la==null?void 0:la.key)==="header"))==null?void 0:ia.contents,F=[];Ra==null||Ra.forEach(la=>{let We=[];la==null||la.forEach((Se,B)=>{var je;let Me={};((je=Oa[B])==null?void 0:je.label)!=="操作"&&(Me[Oa[B].label]=Se,We.push(Me))}),F.push(We)}),f[R.name]=F}else{const Ra=(Ze=(Pa=R.compData)==null?void 0:Pa.find(Oa=>(Oa==null?void 0:Oa.key)==="formContent"))==null?void 0:Ze.contents;Ra==null||Ra.forEach(Oa=>{var F,la;if(Oa.prop!==""){let We=Oa==null?void 0:Oa.value;Array.isArray(We)?We=((F=We==null?void 0:We[0])==null?void 0:F.oldUrl)||"http://222.92.178.198:62001/"+((la=We==null?void 0:We[0])==null?void 0:la.url):We=We.toString(),Oa={key:(Oa==null?void 0:Oa.prop)??(Oa==null?void 0:Oa.label),value:We},T.push(Oa)}})}}),f.form=sa.getFormContents(T),f},Uo=d=>{const f=[],T=I=>{I&&typeof I=="object"&&!Array.isArray(I)?Object.values(I).forEach(T):f.push(I)};return T(d),f},qo=async(d,f,T)=>{var Oa,F,la,We,Se,B,Me,je,Xe,va,ua,Ia,cl,Xa,fl,bl,Kl;Qe.setImportLoading(!0),qe.setFreshContent(!1);let I=await ao().catch(Ya=>(Qe.setImportLoading(!1),Promise.reject(Ya)));I=I==null?void 0:I.filter(Ya=>{var _l;return((_l=Ya==null?void 0:Ya.find(Wa=>Wa==null?void 0:Wa.id))==null?void 0:_l.id)===(f==null?void 0:f.id)});let R=sa.getEqualChild([(Oa=xe.value)==null?void 0:Oa.filter(Ya=>(Ya==null?void 0:Ya.label)!=="操作")]);const b=(la=(F=sa.tableToForm(I,R))==null?void 0:F[0])==null?void 0:la.find(Ya=>{const _l=Ya==null?void 0:Ya.key;return _l==="Interface"||_l==="方法体"}),re=b==null?void 0:b.value;if(!re){console.log("未搜索到isMain, 缺少算法执行接口"),Qe.setImportLoading(!1);return}const Q=xe.value?sa.getEqualChild([xe.value]):[],ie=Q.find(Ya=>{const _l=Ya==null?void 0:Ya.prop;return _l==="Input1"||_l==="输入数据.输入1"||_l==="样本输入数据"}),ge=ie==null?void 0:ie.prop;let Ne=f==null?void 0:f[ge];const Pe=await Ln().catch(Ya=>(Qe.setImportLoading(!1),Promise.reject(Ya)));let De=!0,aa="";(We=xe.value)==null||We.forEach(Ya=>{(Ya==null?void 0:Ya.prop)===ge&&(De=!!(Ya!=null&&Ya.childPath),aa=Ya==null?void 0:Ya.childPath)});let xa="";if(De){let Ya=(B=(Se=xe.value)==null?void 0:Se.find(vl=>(vl==null?void 0:vl.isMainKey)===!0))==null?void 0:B.prop;xa=f==null?void 0:f[Ya];let _l=aa==null?void 0:aa.split(x),Wa=[];_l==null||_l.forEach((vl,Ll)=>{(_l==null?void 0:_l.length)-1===Ll&&Wa.push(xa),Wa.push(vl)}),Wa=Wa==null?void 0:Wa[0];let ol=await sa.getItemData(Wa,sessionStorage.getItem("systemKey"),""),il=ol==null?void 0:ol.filter(vl=>(vl==null?void 0:vl.name)===ge);il=il==null?void 0:il.map(vl=>{var Ll;return vl.compData=(Ll=vl==null?void 0:vl.compData)==null?void 0:Ll.map(hl=>{var wl;return(hl==null?void 0:hl.key)==="tableContents"&&(hl.contents=(wl=hl==null?void 0:hl.contents)==null?void 0:wl.filter(Dl=>(Dl==null?void 0:Dl[1])===(f==null?void 0:f[ge]))),hl}),vl}),(!il||(il==null?void 0:il.length)===0)&&(il=ol,il=il==null?void 0:il.map(vl=>{var Ll;return vl.compData=(Ll=vl==null?void 0:vl.compData)==null?void 0:Ll.map(hl=>{var wl;return(hl==null?void 0:hl.key)==="tableContents"&&(hl.contents=(wl=hl==null?void 0:hl.contents)==null?void 0:wl.filter(Dl=>{var kl,Wl;return(Dl==null?void 0:Dl[1])===(f==null?void 0:f[(Wl=(kl=xe==null?void 0:xe.value)==null?void 0:kl[0])==null?void 0:Wl.prop])})),hl}),vl})),Ne=Ho(il)}const Ka=await jo(re,{token:Pe,inputData:Ne}).catch(Ya=>(Qe.setImportLoading(!1),Promise.reject(Ya))),qa=(Me=Ka==null?void 0:Ka.data)==null?void 0:Me.data,ia=Q.find(Ya=>(Ya==null?void 0:Ya.prop)==="Output1"),Pa=ia==null?void 0:ia.prop;let Ze=[],Ra=[];if(qa&&((je=Object.values(qa))==null?void 0:je.length)>0){let Ya=[];const _l=new FormData,Wa=(Xe=Uo(qa))==null?void 0:Xe.map(async il=>{var vl,Ll;if(!Array.isArray(il)&&(il!=null&&il.includes("http"))){let hl=await Za.axios.get(il,{responseType:"blob"}),wl=(Ll=il==null?void 0:il.split("/"))==null?void 0:Ll[((vl=il==null?void 0:il.split("/"))==null?void 0:vl.length)-1];_l.append("files",hl.data,wl)}else Ya.push(il)});if(await Promise.all(Wa),!sa.isFormDataEmpty(_l)){let il=await z.uploadAmountApi(_l),vl=(ua=(va=il==null?void 0:il.data)==null?void 0:va.result)==null?void 0:ua.map(Ll=>{var hl,wl,Dl,kl,Wl,pr;return{name:(pr=(Wl=(kl=(hl=Ll==null?void 0:Ll.url)==null?void 0:hl.split("/"))==null?void 0:kl[((Dl=(wl=Ll==null?void 0:Ll.url)==null?void 0:wl.split("/"))==null?void 0:Dl.length)-1])==null?void 0:Wl.split("."))==null?void 0:pr[0],url:Ll==null?void 0:Ll.url}});Ya=[...Ya,...vl]}let ol={};for(let il in f)il!=="id"&&(ol[il]=f[il]);ol[Pa]=Ya,Ra.push({id:f==null?void 0:f.id,value:{tableData:ol}})}if((Ra==null?void 0:Ra.length)>0){const Ya=Ra.map(Wa=>{const ol={id:Wa.id,...Wa.value.tableData};return delete ol._isOCRRow,delete ol._ocrTableId,delete ol._isTemp,delete ol.tableEditType,delete ol.index,ol}),_l=[{tableName:(Ia=c==null?void 0:c.related)==null?void 0:Ia.find(Wa=>Wa==null?void 0:Wa.includes("content")),tableContents:Ya}];await z.pageBatchUpdateApi({platId:parseInt((cl=Bl.value)==null?void 0:cl.plat_id),changeContents:_l})}if((Ze==null?void 0:Ze.length)>0)try{await z.pageBatchAddApi({platId:parseInt((Xa=Bl.value)==null?void 0:Xa.plat_id),changeContents:[{tableName:(fl=c==null?void 0:c.related)==null?void 0:fl.find(Ya=>Ya==null?void 0:Ya.includes("content")),tableContents:Ze.map(Ya=>{var Wa,ol,il;const _l={id:((Wa=Ya==null?void 0:Ya.key)==null?void 0:Wa.id)??((ol=Ya==null?void 0:Ya.key)==null?void 0:ol.rowId)??(Ya==null?void 0:Ya.id),...((il=Ya==null?void 0:Ya.value)==null?void 0:il.tableData)||{}};return delete _l._isOCRRow,delete _l._ocrTableId,delete _l._isTemp,delete _l.tableEditType,delete _l.index,Object.keys(_l).forEach(vl=>{vl==="证书附件"&&Array.isArray(_l[vl])&&(_l[vl]=JSON.stringify(_l[vl]))}),_l})}]})}catch(Ya){Za.ElMessage.error(((Kl=(bl=Ya==null?void 0:Ya.response)==null?void 0:bl.data)==null?void 0:Kl.message)||(Ya==null?void 0:Ya.message)||"保存失败"),qe.setTableLoading(!1);return}Ot(!0),Qe.setImportLoading(!1),qe.setFreshContent(!0)},lo=(d,f)=>(d=d==null?void 0:d.map(T=>{var I,R;return T!=null&&T.children&&((I=T.children)!=null&&I.find(b=>b.id===(f==null?void 0:f.id))?T.children=(R=T.children)==null?void 0:R.filter(b=>(b==null?void 0:b.id)!==(f==null?void 0:f.id)):T.children=lo(T.children,f)),T}),d),st=a.ref(!1),Ko=()=>{st.value=!0},Wo=async d=>{var T,I,R,b;st.value=!1;const f=Array.isArray(d)?d:d?[d]:[];if(f.length!==0)for(const re of f){const Q={name:re.name||`capture-${Date.now()}.jpg`,url:URL.createObjectURL(re),raw:re,uid:Date.now()+Math.random()};Va.value.push(Q),Ol(Q,"uploading"),pl(Q,0);try{const ie=new FormData;ie.append("file",re,Q.name);const ge=await z.platformUploadFile(ie);Q.uploadResult=((T=ge==null?void 0:ge.data)==null?void 0:T.result)||{name:Q.name,url:"",fileName:Q.name},na({name:((I=Q.uploadResult)==null?void 0:I.name)||Q.name,url:((R=Q.uploadResult)==null?void 0:R.url)||"",id:(b=Q.uploadResult)==null?void 0:b.id}),Ol(Q,"uploaded"),pl(Q,100)}catch(ie){console.error("文件上传失败:",ie),Za.ElMessage.error(`文件 ${Q.name} 上传失败,请重试`),Ol(Q,"pending"),pl(Q,0);const ge=Va.value.findIndex(Ne=>Ne.uid===Q.uid);ge>-1&&Va.value.splice(ge,1)}}},xr=a.reactive({title:"迁移至",show:!1,width:"20%",selectRow:null,from:c==null?void 0:c.index,to:null,contents:[],formRules:{groupName:[{required:!0,message:"输入不能为空",trigger:"blur"},{validator:(d,f,T)=>{f===(c==null?void 0:c.index)?T(new Error("选择源不能和目标源一致")):T()}}]},buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"确认",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]}),ql=a.reactive({title:"温馨提示:检测到导入的以下数据,系统中已存在,请选择操作",show:!1,width:"70%",columns:[],tableData:[],existRows:[],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:""}),i=()=>{ql.show=!1},o=async d=>{var f,T,I,R,b,re,Q,ie,ge;try{if(d==="cancel"&&(ql.show=!1),d==="replace"&&((f=ql==null?void 0:ql.existRows)==null?void 0:f.length)>0){await z.pageBatchDeleteApi({platId:parseInt((T=Bl.value)==null?void 0:T.plat_id),changeContents:[{tableName:((I=c==null?void 0:c.related)==null?void 0:I.find(Pe=>Pe==null?void 0:Pe.includes("content_")))||((R=c==null?void 0:c.related)==null?void 0:R.find(Pe=>Pe==null?void 0:Pe.includes("content"))),tableContents:ql==null?void 0:ql.existRows}]});const Ne=await z.pageBatchAddApi({platId:parseInt((b=Bl.value)==null?void 0:b.plat_id),changeContents:[{tableName:(re=c==null?void 0:c.related)==null?void 0:re.find(Pe=>Pe==null?void 0:Pe.includes("content")),tableContents:(Q=ql==null?void 0:ql.tableData)==null?void 0:Q.map((Pe,De)=>({id:De,...Pe}))}]});((ie=Ne==null?void 0:Ne.data)==null?void 0:ie.code)===200&&(await pi({buttonName:"新增",columns:xe.value,fixContent:(ge=ql==null?void 0:ql.tableData)==null?void 0:ge.map((Pe,De)=>({id:De,...Pe})),relatedContents:c==null?void 0:c.related}),Za.ElMessage.success("数据导入替换成功"))}}catch{throw new Error(e)}finally{ql.show=!1,ql.columns=[],ql.tableData=[],ql.existRows=[]}},p=()=>{xr.show=!1},m=d=>{var f,T;if((d==null?void 0:d.buttonName)==="取消")return xr.show=!1;xr.to=d==null?void 0:d.content,!(!(c!=null&&c.index)||!((f=xr.to)!=null&&f.groupName))&&(c==null?void 0:c.index)!==((T=xr.to)==null?void 0:T.groupName)&&(Be("change",{buttonName:"迁移",value:{from:xr.from,to:xr.to,data:xr.selectRow}}),xr.show=!1)},w=async d=>{var f,T,I,R;if(d){if(!Dr.validateFileSize(d.raw)){Za.ElMessage.warning(`文件大小不能超过 ${_n.value.maxSize}MB`);const b=Va.value.findIndex(re=>re.uid===d.uid);b>-1&&Va.value.splice(b,1),O();return}if(!Dr.validateFileType(d.raw)){Za.ElMessage.warning("请上传图片文件");const b=Va.value.findIndex(re=>re.uid===d.uid);b>-1&&Va.value.splice(b,1),O();return}Ol(d,"uploading"),pl(d,0);try{const b=new FormData;b.append("file",d.raw,d.name);const re=await z.platformUploadFile(b);d.uploadResult=((f=re==null?void 0:re.data)==null?void 0:f.result)||{name:d.name,url:"",fileName:d.name},na({name:((T=d.uploadResult)==null?void 0:T.name)||d.name,url:((I=d.uploadResult)==null?void 0:I.url)||"",id:(R=d.uploadResult)==null?void 0:R.id}),Ol(d,"uploaded"),pl(d,100)}catch(b){console.error("文件上传失败:",b),Za.ElMessage.error(`文件 ${d.name} 上传失败,请重试`),Ol(d,"pending"),pl(d,0);const re=Va.value.findIndex(Q=>Q.uid===d.uid);re>-1&&Va.value.splice(re,1)}finally{O()}}},O=()=>{a.nextTick(()=>{const d=document.querySelector('.ocr-upload-input input[type="file"]');d&&(d.value="")})},U=async()=>{var T,I;if(sessionStorage.setItem("ocr_root_table_id",String((c==null?void 0:c.index)??"")),Va.value.length===0){Za.ElMessage.warning("请先选择要上传的图片");return}if(Va.value.filter(R=>{const b=ja(R);return b!=="uploaded"&&b!=="completed"&&b!=="failed"}).length>0){Za.ElMessage.warning("请等待所有文件上传完成后再开始识别");return}Ta.value=!0,Ma.value=0;let f=null;try{Va.value.forEach(ia=>{Ol(ia,"processing")});const R=Math.floor(Math.random()*10)+90;f=setInterval(()=>{Ma.value<R?Ma.value+=1:clearInterval(f)},50);const b=Va.value.map(ia=>{var Pa,Ze,Ra;return{name:((Pa=ia.uploadResult)==null?void 0:Pa.name)||ia.name,url:((Ze=ia.uploadResult)==null?void 0:Ze.url)||"",fileName:((Ra=ia.uploadResult)==null?void 0:Ra.fileName)||ia.name}}),re=Dr.extractTableHeaders(xe.value),Q=b.map(ia=>({name:(ia==null?void 0:ia.fileName)||(ia==null?void 0:ia.name),url:(ia==null?void 0:ia.url)||""})),ie=await Dr.recognize(Q,re);if(console.log(ie,"ocrResult"),clearInterval(f),f=null,(ie==null?void 0:ie.code)===500||(ie==null?void 0:ie.type)==="error"||!(ie!=null&&ie.result)){Ma.value=0,Va.value.forEach(ia=>{Ol(ia,"failed"),pl(ia,0)}),Za.ElMessage.error((ie==null?void 0:ie.message)||"OCR识别失败,请重试"),Ta.value=!1;return}Ma.value=R;const ge=Array.isArray(ie==null?void 0:ie.result)?ie.result:[];if(ge.length===0){Ma.value=0,Va.value.forEach(ia=>{Ol(ia,"failed"),pl(ia,0)}),Za.ElMessage.warning("OCR识别未返回有效数据"),Ta.value=!1;return}const Ne=new Set,Pe=[];ge.forEach((ia,Pa)=>{const Ze=ia!=null&&ia.数据&&typeof(ia==null?void 0:ia.数据)=="object"?ia.数据:{},Ra=Array.isArray(ia==null?void 0:ia.图片信息)?ia.图片信息:[],Oa=new Map;Ra.forEach(la=>{la!=null&&la.name&&Oa.set(la.name,la.url||"")});const F={_index:Pa,_certType:(ia==null?void 0:ia.证书类型)||"",_certNo:(ia==null?void 0:ia.证书编号)||"",_ocrImages:Ra,__ocrFieldMeta:{}};Object.entries(Ze).forEach(([la,We])=>{let Se="",B=0,Me=[],je="";We&&typeof We=="object"&&!Array.isArray(We)?(Se=(We==null?void 0:We.value)??"",B=(We==null?void 0:We.score)??0,Me=Array.isArray(We==null?void 0:We.bboxNorm)?We==null?void 0:We.bboxNorm:[],je=(We==null?void 0:We.imageName)||""):Array.isArray(We)&&We.length>=2?(Se=We[0]??"",B=We[1]??0):(Se=We??"",B=0),F[la]=Se,F[`${la}_accuracy`]=B,Ne.add(la),F.__ocrFieldMeta[la]={value:Se,score:B,bboxNorm:Me,imageName:je,imageUrl:je&&Oa.get(je)||"",images:Ra}}),Pe.push(F)});const De=[],aa=new Set;Pe.forEach(ia=>{ia&&Ne.forEach(Pa=>{const Ze=ia[`${Pa}_accuracy`];(typeof Ze=="number"?Ze>0:Ze!=null&&String(Ze).trim()!==""&&String(Ze)!=="0")&&aa.add(Pa)})}),Ne.forEach(ia=>{De.push({prop:ia,label:ia,editable:!0,minWidth:230}),aa.has(ia)&&De.push({prop:`${ia}_accuracy`,label:"准确率",editable:!1,minWidth:100,isAccuracy:!0})}),Va.value.forEach(ia=>{Ol(ia,"completed")}),Ma.value=100,wa.value=De,nl.value=Pe,ea.value=b,fa.value=ie;const xa=["出厂编号","设备名称","制造厂"],Ka=De.filter(ia=>ia&&!ia.isAccuracy&&typeof ia.prop=="string").map(ia=>ia.prop),qa=["出厂编号","设备名称","制造厂"];La.value=Ka.filter(ia=>qa.includes(ia)),console.log("[OCR] 默认勾选字段 props:",La.value),Ge.value=2,Ta.value=!1,sl.value=!1}catch(R){console.error("OCR处理失败:",R),f&&(clearInterval(f),f=null),Za.ElMessage.error(((I=(T=R==null?void 0:R.response)==null?void 0:T.data)==null?void 0:I.message)||"OCR识别失败,请重试"),Ta.value=!1,Ma.value=0,Va.value.forEach(b=>{Ol(b,"pending"),pl(b,0)})}},J=d=>{if(d==null)return"";let f=String(d);return f=f.replace(/\s+/g," ").trim(),f=f.replace(/[!-~]/g,T=>String.fromCharCode(T.charCodeAt(0)-65248)),f=f.replace(/ /g," "),f=f.replace(/^(编号|No\.?|NO\.?|no\.?|SN\.?|sn\.?|序列号)\s*[::]?\s*/i,""),f},de=()=>{var ia,Pa;const d=ea.value,f=fa.value,T=nl.value;if(!T||T.length===0){Za.ElMessage.warning("暂无数据可添加");return}const I=(ia=sa.getAllLeafNodes(xe.value)||[])==null?void 0:ia.filter(Ze=>(Ze==null?void 0:Ze.type)!=="operate"&&(Ze==null?void 0:Ze.label)!=="操作"&&(Ze==null?void 0:Ze.prop)!=="operate"),R=new Map,b=new Map,re=(Pa=I==null?void 0:I.find(Ze=>(Ze==null?void 0:Ze.label)==="证书附件"))==null?void 0:Pa.prop;I==null||I.forEach(Ze=>{Ze!=null&&Ze.label&&(Ze!=null&&Ze.prop)&&(R.set(Ze.label,Ze.prop),b.set(Ze.prop,Ze.label))});const Q=Date.now(),ie=Ze=>String(Q*1e3+Ze),ge=[],Ne=[],Pe=Ze=>{const Ra=xo&&xo[Ze]||[Ze];for(const Oa of Ra){const F=R.get(Oa);if(F)return F}return""},De=Pe("出厂编号"),aa=Pe("设备名称"),xa=Pe("制造厂"),Ka=[],qa=Ze=>{var Se,B;if(!re)return[];const Ra=(Array.isArray(d)?d[Ze]:null)||null,Oa=(Ra==null?void 0:Ra.url)||"",F=(Ra==null?void 0:Ra.fileName)||(Ra==null?void 0:Ra.name)||"";return(String(F).toLowerCase().endsWith(".pdf")||String(Oa).toLowerCase().endsWith(".pdf"))&&Oa?[{url:Oa,name:F,fileName:F}]:(Array.isArray((B=(Se=f==null?void 0:f.result)==null?void 0:Se[Ze])==null?void 0:B.图片信息)?f.result[Ze].图片信息:[]).map(Me=>({url:(Me==null?void 0:Me.url)||"",name:(Me==null?void 0:Me.name)||"",fileName:(Me==null?void 0:Me.name)||""})).filter(Me=>Me.url)};if(T.forEach((Ze,Ra)=>{var cl;const Oa={id:ie(Ra),_isOCRRow:!0,_ocrTableId:c==null?void 0:c.index};for(const[Xa,fl]of R.entries())Object.prototype.hasOwnProperty.call(Ze,Xa)&&(Oa[fl]=Ze[Xa]);re&&(Oa[re]=qa(Ra));const F=(Array.isArray(f==null?void 0:f.result)?f.result[Ra]:null)||null,la=(Array.isArray(d)?d[Ra]:null)||null,We=(la==null?void 0:la.url)||"",Se=(la==null?void 0:la.fileName)||(la==null?void 0:la.name)||"",B=String(Se).toLowerCase().endsWith(".pdf")||String(We).toLowerCase().endsWith(".pdf"),Me={ts:Date.now(),versionId:String(Date.now())+"_"+String(Ra),label:new Date().toLocaleString(),certType:(F==null?void 0:F.证书类型)||"",certNo:(F==null?void 0:F.证书编号)||"",fileType:B?"pdf":"image",sourceUrl:B?We:"",images:Array.isArray(F==null?void 0:F.图片信息)?F.图片信息.map(Xa=>({name:(Xa==null?void 0:Xa.name)||"",url:(Xa==null?void 0:Xa.url)||""})).filter(Xa=>Xa.url):[]},je=Xa=>J(Xa?Oa==null?void 0:Oa[Xa]:""),Xe=je(De),va=je(aa),ua=je(xa);if(!!(De&&aa&&xa&&Xe&&va&&ua)){const Xa=(ee.value||[]).find(fl=>{const bl=J(De?fl==null?void 0:fl[De]:""),Kl=J(aa?fl==null?void 0:fl[aa]:""),Ya=J(xa?fl==null?void 0:fl[xa]:"");return bl&&Kl&&Ya&&bl===Xe&&Kl===va&&Ya===ua});if(Xa){Ka.push({idx:Ra,ocrRow:Oa,versionItem:Me,ocrNo:Xe,candidates:[Xa],selectedTargetId:String((Xa==null?void 0:Xa.id)??""),__decision:"replace",allowAdd:!1,allowReplace:!0});return}}if(Xe&&De){const Xa=(ee.value||[]).filter(fl=>{const bl=J(De?fl==null?void 0:fl[De]:"");return bl&&bl===Xe});if(Xa.length>0){Ka.push({idx:Ra,ocrRow:Oa,versionItem:Me,ocrNo:Xe,candidates:Xa,selectedTargetId:"",__decision:"",allowAdd:!0,allowReplace:!0});return}}try{if(Oa.sort===void 0||Oa.sort===null||String(Oa.sort).trim()===""){const Xa=(ee.value||[]).map(bl=>Yn(bl==null?void 0:bl.sort)).filter(bl=>bl!==null),fl=Xa.length>0?Math.max(...Xa):((cl=ee.value)==null?void 0:cl.length)??0;Oa.sort=String(Number((fl+1).toFixed(6)))}}catch{}al(c==null?void 0:c.index,Oa.id,Me),Ka.push({idx:Ra,ocrRow:Oa,versionItem:Me,ocrNo:Xe,candidates:[],selectedTargetId:"",__decision:"add",allowAdd:!0,allowReplace:!1})}),(Ka||[]).length>0){tl.value=(Ka||[]).map(Ze=>({...Ze,selectedTargetId:(Ze==null?void 0:Ze.selectedTargetId)||""})),dl.value=!0,gl.value=Ne,Cl.value=ge,Rl.value=f,br.value=d,Sr.value=re||"";return}},Ae=(d,f,T)=>{nl.value[d]&&(nl.value[d][f]=T)},fe=d=>d==null||d===0?"-":`${(Number(d)*100).toFixed(1)}%`,Je=d=>{if(d==null||d===0)return"#909399";const f=Number(d);return f>=.9?"#67c23a":f>=.7?"#e6a23c":"#f56c6c"},Ba=d=>{var T,I,R,b;if(Ua.value===d){Ua.value=null,Sl.value=!1,zl.value="";return}Ua.value=d,zl.value="";const f=(T=nl.value)==null?void 0:T[d];if(f&&Array.isArray(f._ocrImages)&&f._ocrImages.length>0){Nl.value=f._ocrImages.map(ie=>({name:(ie==null?void 0:ie.name)||"",url:(ie==null?void 0:ie.url)||""})).filter(ie=>ie.name||ie.url);const re=f.__ocrFieldMeta||{},Q=(I=Object.values(re))==null?void 0:I.find(ie=>ie==null?void 0:ie.imageName);Tl.value=(Q==null?void 0:Q.imageName)||((b=(R=Nl.value)==null?void 0:R[0])==null?void 0:b.name)||"",Sl.value=Nl.value.length>0}else Nl.value=[],Sl.value=!1,Tl.value=""},Qa=()=>{oa.value=!1,Va.value=[],ll.value=null,Ge.value=1,X.value.clear(),Aa.value.clear(),Ma.value=0,Sl.value=!1},Ja=d=>d.raw?URL.createObjectURL(d.raw):d.url?d.url:"",ja=d=>{const f=d.uid||d.name;return X.value.get(f)||"pending"},xl=d=>{const f=d.uid||d.name;return Aa.value.get(f)||0},pl=(d,f)=>{const T=d.uid||d.name;Aa.value.set(T,Math.min(100,Math.max(0,f)))},Ml=d=>{const f=ja(d),T=100.53;if(f==="completed"||f==="uploaded")return`${T} ${T}`;if(f==="failed")return`${T} ${T}`;if(f==="uploading"){const I=xl(d);return`${T*(I/100)} ${T}`}else if(f==="processing")return`${T*.5} ${T}`;return`0 ${T}`},Ol=(d,f)=>{const T=d.uid||d.name;X.value.set(T,f),(f==="completed"||f==="uploaded")&&pl(d,100)},Yl=()=>{a.nextTick(()=>{const d=document.querySelector('.ocr-upload-input input[type="file"]');if(d)d.value="",d.click();else{const f=document.createElement("input");f.type="file",f.multiple=!0,f.accept="image/*,application/pdf",f.style.display="none",f.onchange=async T=>{const I=Array.from(T.target.files||[]);for(const R of I){const b={name:R.name,raw:R,uid:Date.now()+Math.random()};Va.value.push(b),await w(b)}T.target.value="",document.body.removeChild(f)},document.body.appendChild(f),f.click()}})},Vl=()=>{Ge.value>1&&Ge.value--},jl=()=>{Ge.value===1?Va.value.length>0&&!Ta.value&&U():Ge.value===2&&(de(),Ge.value=3)},Or=async d=>{await $r(d==null?void 0:d.row)},vr=async({row:d,prop:f})=>{!d||!f||await $r(d,f)},$r=async(d,f)=>{var R,b;const T=d==null?void 0:d.id;if(!T){Za.ElMessage.warning("暂无可预览数据");return}let I=Il(c==null?void 0:c.index,T);if(!I||I.length===0){const re=sessionStorage.getItem("ocr_root_table_id"),Q=re!==null?Number(re):null;if(Q!=null&&Q!==""&&!Number.isNaN(Q)){const ie=Il(Q,T);Array.isArray(ie)&&ie.length>0&&(Fl(c==null?void 0:c.index,T,ie),I=ie)}}if(!I||I.length===0){const re=(R=sa.getAllLeafNodes(xe.value)||[])==null?void 0:R.filter(ie=>(ie==null?void 0:ie.type)!=="operate"&&(ie==null?void 0:ie.label)!=="操作"&&(ie==null?void 0:ie.prop)!=="operate"),Q=f||((b=re==null?void 0:re.find(ie=>(ie==null?void 0:ie.label)==="证书附件"))==null?void 0:b.prop);if(Q&&d[Q]){const ie=d[Q];let ge=[],Ne="",Pe=!1;if(typeof ie=="string")try{const De=JSON.parse(ie);Array.isArray(De)&&(ge=De.map(aa=>({name:(aa==null?void 0:aa.name)||(aa==null?void 0:aa.fileName)||"",url:(aa==null?void 0:aa.url)||""})).filter(aa=>aa.url||aa.name),ge.length>0&&(Ne=ge[0].url||"",Pe=String(ge[0].name).toLowerCase().endsWith(".pdf")||String(Ne).toLowerCase().endsWith(".pdf")))}catch{Ne=ie,Pe=String(ie).toLowerCase().endsWith(".pdf"),ge=[{name:ie,url:ie}]}else Array.isArray(ie)&&(ge=ie.map(De=>({name:(De==null?void 0:De.name)||(De==null?void 0:De.fileName)||"",url:(De==null?void 0:De.url)||""})).filter(De=>De.url||De.name),ge.length>0&&(Ne=ge[0].url||"",Pe=String(ge[0].name).toLowerCase().endsWith(".pdf")||String(Ne).toLowerCase().endsWith(".pdf")));if(ge.length>0||Ne){const De={ts:Date.now(),versionId:String(Date.now()),label:new Date().toLocaleString(),certType:d.证书类型||"",certNo:d.证书编号||"",fileType:Pe?"pdf":"image",sourceUrl:Pe?Ne:"",images:ge};I=[De],al(c==null?void 0:c.index,T,De)}}}if(!I||I.length===0){Za.ElMessage.warning("暂无可预览数据");return}Da.value=I,yl.value=!0},Zr=d=>{Va.value=Va.value.filter((f,T)=>T!==d)},Qr=async(d,f,T)=>{var I,R,b,re,Q,ie,ge,Ne,Pe,De,aa,xa,Ka,qa,ia,Pa,Ze,Ra,Oa,F,la;if(Te(c.config,{type:K.TABLE,tableOperate:d})){if($e.value="",ye.value=!0,Ve.value=!0,Be("onButtonClick",d,f),q.value=[],d==="删除")z.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var We,Se,B,Me;(We=ee.value)!=null&&We.find(je=>(je==null?void 0:je.id)===(f==null?void 0:f.id))?ee.value=(Se=z.cloneDeep(ee.value))==null?void 0:Se.filter(je=>(je==null?void 0:je.id)!==(f==null?void 0:f.id)):ee.value=lo(z.cloneDeep(ee.value),f);try{f!=null&&f.id&&((Me=(B=pe.value)==null?void 0:B.has)!=null&&Me.call(B,f==null?void 0:f.id))&&pe.value.delete(f.id)}catch{}Kp(dn.value,An.value,f==null?void 0:f.id),qe.setTableLoading(c==null?void 0:c.index),Be("change",{content:ee.value,fixContent:[f],index:c==null?void 0:c.index,type:"delete",name:c==null?void 0:c.compName,buttonName:d,columns:xe.value,relatedContents:c==null?void 0:c.related}),console.log(f,"item")});else if(d==="批量删除"){if(((I=Pl.value)==null?void 0:I.length)===0)return Za.ElMessage.warning("请先勾选操作的数据");z.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(async()=>{var B,Me,je,Xe,va;const We=(B=Pl.value)==null?void 0:B.map(ua=>ua.id);ee.value=(Me=z.cloneDeep(ee.value))==null?void 0:Me.filter(ua=>!(We!=null&&We.includes(ua.id))),qe.setTableLoading(c==null?void 0:c.index),Be("change",{content:ee.value,fixContent:Pl.value,index:c==null?void 0:c.index,type:"delete",name:c==null?void 0:c.compName,buttonName:d,relatedContents:c==null?void 0:c.related,columns:xe.value});const Se=(We||[]).filter(Boolean);if(Se.length>0&&Se.every(ua=>ua!=null&&ua!=="")){const ua=(Pl.value||[]).map(Ia=>{const cl={...Ia};return delete cl._isOCRRow,delete cl._ocrTableId,delete cl._isTemp,delete cl.tableEditType,delete cl.index,cl});await z.pageBatchDeleteApi({platId:parseInt((je=Bl.value)==null?void 0:je.plat_id),changeContents:[{tableName:((Xe=c==null?void 0:c.related)==null?void 0:Xe.find(Ia=>Ia==null?void 0:Ia.includes("content_")))||((va=c==null?void 0:c.related)==null?void 0:va.find(Ia=>Ia==null?void 0:Ia.includes("content"))),tableContents:ua}]})}})}else if(d==="复制新增"){Oe.value="复制新增",z.cloneDeep(f);const We=(R=xe.value)==null?void 0:R.find(Se=>Se==null?void 0:Se.isMainKey);We||((b=xe.value)==null||b[0]),sr.value=f,Ot(!0)}else if(d==="新增")Oe.value="新增",zt(""),da.value=!0;else if(d==="编辑")Oe.value="编辑",zt(f),da.value=!0;else if(d==="查看")Oe.value="查看",zt(f),ye.value=!1,Ve.value=!1,da.value=!0;else if(d==="查看三维模型"){const We={};for(let B in f)B!=="id"&&(We[B]=f[B]);let Se=(re=Object.values(We))==null?void 0:re[1];ze.setTableShowThree(Se)}else if(d==="切换视图")Xc();else if(((Q=T==null?void 0:T.extra)==null?void 0:Q.type)==="modelExample")Oe.value=d,Fe.value=!0;else if(d==="新建"){let We=Y.value,Se=[];for(let va in We)va!=null&&va.includes(`loading${((ie=Bl.value)==null?void 0:ie.account)||((ge=Bl.value)==null?void 0:ge.账号)}`)&&(Se=[...Se,...va]);let B=[];for(let va in We)va!=null&&va.includes(`updateLoading${((Ne=Bl.value)==null?void 0:Ne.account)||((Pe=Bl.value)==null?void 0:Pe.账号)}`)&&(B=[...B,...va]);let Me=Se==null?void 0:Se.map(va=>va==null?void 0:va.id);const je=B==null?void 0:B.map(va=>va==null?void 0:va.id);Me=[...z.cloneDeep(Me),...je],(Me==null?void 0:Me.length)>0&&(Me!=null&&Me.every(va=>va!==null&&va))&&await mr.batchDeleteInsofDataApi({ids:Me});const Xe=(De=Ke.value)==null?void 0:De.find(va=>(va==null?void 0:va.label)==="新建");await jc(!1,Xe)}else if(d==="修改模板"){let We=z.cloneDeep(ka).value;qe.setRouteToChildPath(We),Qe.setActiveMenuPath(We+x)}else if(d==="执行")qo(d,f);else if(d==="导出paraform"){const We=z.ElLoading.service({lock:!0,text:"正在导出paraform...",background:"rgba(0, 0, 0, 0.7)"});try{const Se=["推力","真空","压力","温度","流量"],B=wl=>{var Dl,kl,Wl;return wl?typeof(wl==null?void 0:wl.value)=="string"?wl.value:((Wl=(kl=(Dl=wl==null?void 0:wl._custom)==null?void 0:Dl.value)==null?void 0:kl.value)==null?void 0:Wl.value)||"":""},Me=Array.isArray(Mn.value)?Mn.value:[],je=B(Me.find(wl=>(wl==null?void 0:wl.condition)==="child")),Xe=String(je||"").slice(0,8),va=wl=>{if(wl==null)return"";const Dl=String(wl).trim();if(!Dl)return"";if(/^\d{8}$/.test(Dl))return Dl;const kl=Dl.match(/^(\d{4})[-\/.](\d{1,2})[-\/.](\d{1,2})$/);if(kl){const pr=kl[1],fr=kl[2].padStart(2,"0"),Jl=kl[3].padStart(2,"0");return`${pr}${fr}${Jl}`}const Wl=Dl.replace(/\D/g,"");return Wl.length>=8?Wl.slice(0,8):""},ua=async wl=>{var Dl,kl;if(!wl)return"";try{const Wl=await Hr("试验任务/任务管理",!1),pr=(ir,yr=[])=>{if(!Array.isArray(ir))return yr;for(const tr of ir)(tr==null?void 0:tr.comp)==="Table"&&(tr!=null&&tr.name)&&yr.push(tr),Array.isArray(tr==null?void 0:tr.children)&&pr(tr.children,yr),Array.isArray(tr==null?void 0:tr.tab)&&pr(tr.tab,yr),Array.isArray(tr==null?void 0:tr.choice)&&pr(tr.choice,yr);return yr},Jl=pr(Wl||[]).find(ir=>(ir==null?void 0:ir.name)==="任务列表"),nr=((kl=(Dl=Jl==null?void 0:Jl.compData)==null?void 0:Dl.find(ir=>(ir==null?void 0:ir.key)==="tableContents"))==null?void 0:kl.contents)||[];if(!Array.isArray(nr)||nr.length===0)return"";const Lr=nr.find(ir=>String((ir==null?void 0:ir["试验代号(名称)"])||"").slice(0,8)===wl);return va(Lr==null?void 0:Lr.计划试验时间)}catch(Wl){return console.warn("获取任务列表计划试验时间失败:",Wl),""}},Ia=(ka.value||"").replace(/\/+$/,""),cl=je?`${Ia}/${je}`:Ia,Xa=await Hr(cl||ka.value,!1),fl=(wl,Dl=[])=>{if(!Array.isArray(wl))return Dl;for(const kl of wl)(kl==null?void 0:kl.comp)==="Table"&&(kl!=null&&kl.name)&&Se.includes(kl.name)&&Dl.push(kl),Array.isArray(kl==null?void 0:kl.children)&&fl(kl.children,Dl),Array.isArray(kl==null?void 0:kl.tab)&&fl(kl.tab,Dl),Array.isArray(kl==null?void 0:kl.choice)&&fl(kl.choice,Dl);return Dl},bl=fl(Xa||[]),Kl=new Map;for(const wl of bl)wl!=null&&wl.name&&!Kl.has(wl.name)&&Kl.set(wl.name,wl);const Ya=Se.map(wl=>Kl.get(wl)).filter(Boolean);if(!Ya||Ya.length===0)return Za.ElMessage.warning("未找到需要导出的表(推力、真空、压力、温度、流量)");const _l=wl=>{const Dl=new Map,kl=(Wl,pr=[])=>{if(Array.isArray(Wl))for(const fr of Wl){const Jl=((fr==null?void 0:fr.label)??"").toString().trim(),nr=Jl?[...pr,Jl]:[...pr];if(Array.isArray(fr==null?void 0:fr.children)&&fr.children.length>0)kl(fr.children,nr);else{const ir=((fr==null?void 0:fr.prop)??"").toString();if(!ir)continue;const yr=Jl||ir,tr=(nr.length>0?[...pr,yr]:[yr]).join(".");Dl.set(ir,tr)}}};return kl(wl,[]),Dl},Wa=(wl,Dl)=>{const kl=_l(wl||[]),pr=(sa.getAllLeafNodes(wl||[])||[]).filter(Jl=>(Jl==null?void 0:Jl.prop)&&(Jl==null?void 0:Jl.type)!=="operate"&&(Jl==null?void 0:Jl.label)!=="操作"&&(Jl==null?void 0:Jl.prop)!=="operate"),fr=Array.isArray(Dl)?Dl:[];return fr.length===0?[]:fr.map(Jl=>{const nr={};return pr.forEach(Lr=>{const ir=String(Lr.prop),yr=kl.get(ir)||String(Lr.label||Lr.prop);nr[yr]=(Jl==null?void 0:Jl[ir])??""}),nr})},ol=Ya.map(wl=>{var fr,Jl;const Dl=(wl==null?void 0:wl.compData)||[];let kl=(fr=Dl==null?void 0:Dl.find(nr=>(nr==null?void 0:nr.key)==="header"))==null?void 0:fr.contents;Array.isArray(kl==null?void 0:kl[0])&&(kl=kl[0]);const Wl=((Jl=Dl==null?void 0:Dl.find(nr=>(nr==null?void 0:nr.key)==="tableContents"))==null?void 0:Jl.contents)||[];if(!Array.isArray(kl)||kl.length===0||!Array.isArray(Wl)||Wl.length===0)return null;const pr=Wa(kl||[],Wl||[]);return!Array.isArray(pr)||pr.length===0?null:{类型:wl==null?void 0:wl.name,数据:pr}}).filter(Boolean);if(!ol||ol.length===0)return Za.ElMessage.warning("没有可导出的数据(推力、真空、压力、温度、流量均为空)");const il=await ua(Xe),vl={试验代号:Xe,试验日期:il,ParaForm:ol},Ll=await Ln().catch(()=>""),hl=await z.exportParaformApi(vl,Ll);if(((aa=hl==null?void 0:hl.data)==null?void 0:aa.code)===200&&((Ka=(xa=hl==null?void 0:hl.data)==null?void 0:xa.result)!=null&&Ka.Excel文件)){const wl=hl.data.result.Excel文件,Dl=await z.platformDownloadFile({url:wl}),kl=new Blob([Dl.data],{type:"application/vnd.ms-excel"}),Wl=URL.createObjectURL(kl),pr=z.dayjs().format("YYYYMMDD"),Jl=`${(Xe||"UNKNOWN").trim()||"UNKNOWN"}_${pr}_paraform.xls`,nr=document.createElement("a");nr.href=Wl,nr.download=Jl,nr.style.display="none",document.body.appendChild(nr),nr.click(),setTimeout(()=>{document.body.removeChild(nr),URL.revokeObjectURL(Wl)},100);const Lr=Array.isArray((ia=(qa=hl==null?void 0:hl.data)==null?void 0:qa.result)==null?void 0:ia.warnings)?hl.data.result.warnings:[];if(Lr.length>0){const ir=Lr.map((yr,tr)=>`${tr+1}. ${(yr==null?void 0:yr.field)||"未知字段"}:${(yr==null?void 0:yr.message)||""}`).join(`
24
- `);Za.ElMessage.warning({message:`导出成功,但存在以下提示:
25
- ${ir}`,duration:5e3,showClose:!0})}else Za.ElMessage.success("导出成功")}else Za.ElMessage.error(((Pa=hl==null?void 0:hl.data)==null?void 0:Pa.message)||"导出失败")}catch(Se){console.error("导出paraform失败:",Se),Za.ElMessage.error("导出失败:"+((Se==null?void 0:Se.message)||"未知错误"))}finally{We.close()}}else if(d!=null&&d.includes("导出")&&d!=="导出paraform"){if(d==="导出选中"&&((Ze=Pl.value)==null?void 0:Ze.length)===0)return Za.ElMessage.warning(`请先勾选${d}的数据`);if(d==="导出全部"&&((Ra=ee.value)==null?void 0:Ra.length)===0)return Za.ElMessage.warning("暂无数据导出");let We=["序号",...(F=(Oa=xe.value)==null?void 0:Oa.map(je=>je==null?void 0:je.prop))==null?void 0:F.filter(je=>je!=="操作")],Se=d==="导出全部"?ee.value:Pl.value;const B=["id","sort","tableEditType","create_time","update_time","source_table","create_user_id","update_user_id","department_id"];Se=Se==null?void 0:Se.map(je=>Object.fromEntries(Object.entries(je).filter(([Xe])=>!B.includes(Xe)))),We=["序号",...We],Se=Se==null?void 0:Se.map((je,Xe)=>({序号:Xe+1,...je}));let Me=(c==null?void 0:c.compName)||"表格信息";Ao(Se,Me,We,Me)}else if(d==="OCR识别")oa.value=!0,Va.value=[],Ge.value=1,X.value.clear(),Aa.value.clear(),Ma.value=0;else if(d==="迁移")xr.selectRow=f,xr.show=!0;else if(d==="生成方法"){let We=await pf(f),Se;f!==""?Se=[f]:Se=z.cloneDeep(ee.value),Se=Se==null?void 0:Se.map(Me=>(Me.输出值=We,Me));const B={fixContent:Se,buttonName:"编辑",relatedContents:c==null?void 0:c.related,columns:xe.value,name:c==null?void 0:c.compName};Be("change",B)}else if(((la=T==null?void 0:T.extra)==null?void 0:la.type)==="methodButton"){let We;f!==""?We=[f]:We=z.cloneDeep(ee.value);const B={fixContent:await oi(We,xe==null?void 0:xe.value),buttonName:"methodButton",relatedContents:c==null?void 0:c.related,columns:xe.value,name:c==null?void 0:c.compName};Be("change",B)}}},ct=async(d,f)=>{var T,I,R,b,re,Q,ie,ge,Ne,Pe,De,aa,xa,Ka,qa,ia,Pa,Ze,Ra,Oa;try{let F,la;const We=(T=Y.value[ka.value+x])==null?void 0:T.filter(Ia=>{var cl;return((cl=Ia==null?void 0:Ia.key)==null?void 0:cl.type)==="structureMethod"}),Se=(I=Y.value[ka.value+x])==null?void 0:I.filter(Ia=>{var cl;return((cl=Ia==null?void 0:Ia.key)==null?void 0:cl.type)==="structure"}),B=We==null?void 0:We.find(Ia=>{var cl,Xa;return((Xa=(cl=Ia==null?void 0:Ia.value)==null?void 0:cl.pageData)==null?void 0:Xa.method)==="保存"});if(!B)return;const Me=(Q=(re=Y.value[(b=(R=B==null?void 0:B.value)==null?void 0:R.pageData)==null?void 0:b.path])==null?void 0:re.filter(Ia=>{var cl;return((cl=Ia==null?void 0:Ia.key)==null?void 0:cl.type)==="data"}))==null?void 0:Q.find(Ia=>{var cl,Xa,fl,bl;return((Xa=(cl=Ia==null?void 0:Ia.value)==null?void 0:cl.tableData)==null?void 0:Xa.算法名称)===((bl=(fl=B==null?void 0:B.value)==null?void 0:fl.pageData)==null?void 0:bl.method)});if(!Me)return;const je={buttonName:(ge=(ie=B==null?void 0:B.value)==null?void 0:ie.pageData)==null?void 0:ge.method,api:(Pe=(Ne=Me==null?void 0:Me.value)==null?void 0:Ne.tableData)==null?void 0:Pe.算法体,content:Se==null?void 0:Se.map(Ia=>{var cl;return(cl=Ia==null?void 0:Ia.value)==null?void 0:cl.pageData}),extraContent:[],extraValues:(aa=(De=B==null?void 0:B.value)==null?void 0:De.pageData)==null?void 0:aa.data,methodName:(Ka=(xa=B==null?void 0:B.value)==null?void 0:xa.pageData)==null?void 0:Ka.path};if(!d)return;const Xe={...d,compData:(qa=d==null?void 0:d.compData)==null?void 0:qa.map(Ia=>{var cl;return(Ia==null?void 0:Ia.key)==="formContent"?{...Ia,contents:(cl=Ia==null?void 0:Ia.contents)==null?void 0:cl.map(Xa=>(Xa==null?void 0:Xa.prop)===f?{...Xa,value:""}:Xa)}:Ia})},va={key:{pageKey:ka.value+x,parentTable:"",systemKey:sessionStorage.getItem("systemKey"),type:"structure"},value:{pageData:Xe}},ua=await Za.axios.post(je.api,va,{headers:{"Content-Type":"application/json"}});return((ia=ua==null?void 0:ua.data)==null?void 0:ia.code)===200&&(F=(Ze=(Pa=ua==null?void 0:ua.data)==null?void 0:Pa.result)==null?void 0:Ze.latestReportCode,la=(Oa=(Ra=ua==null?void 0:ua.data)==null?void 0:Ra.result)==null?void 0:Oa.status),{newMainKeyValue:F,newStatus:la}}catch(F){throw Za.ElMessage.error(F),new Error(F)}},Vn=a.reactive({prop:"状态",value:""});a.ref(["系统自动生成信息","审批意见"]);const Fc=async(d,f,T)=>{var ie,ge;let I=d==null?void 0:d[f==null?void 0:f.prop],R=1,b,re;const Q=z.cloneDeep(ka).value+x+I;if(Q){Vn.value="",b=(ie=Y.value[Q])==null?void 0:ie.filter(De=>{var aa;return((aa=De==null?void 0:De.key)==null?void 0:aa.type)==="structure"});const Ne=b==null?void 0:b.find(De=>{var aa,xa,Ka;return((Ka=(xa=(aa=De==null?void 0:De.value)==null?void 0:aa.pageData)==null?void 0:xa.comp)==null?void 0:Ka.toUpperCase())==="FORM"});re={...(ge=Ne==null?void 0:Ne.value)==null?void 0:ge.pageData,id:Ne==null?void 0:Ne.id};const Pe=await ct(re,f==null?void 0:f.prop);if(Vn.value=Pe==null?void 0:Pe.newStatus,Pe!=null&&Pe.newMainKeyValue)return Pe==null?void 0:Pe.newMainKeyValue}if(ee.value.some(Ne=>(Ne==null?void 0:Ne[f==null?void 0:f.prop])===I)){const Ne=I;for(;ee.value.some(Pe=>(Pe==null?void 0:Pe[f==null?void 0:f.prop])===`${Ne}(${R})`);)R++;I=`${Ne}(${R})`}return I},jc=async(d,f,T)=>{var b,re,Q,ie;let I,R;if(await Fc(T==null?void 0:T.data,T==null?void 0:T.firstCol),I=z.cloneDeep(ka).value+x,R=z.cloneDeep(I)+`loading${((b=Bl.value)==null?void 0:b.account)||((re=Bl.value)==null?void 0:re.账号)}`,f){const ge=(ie=(Q=Y.value[R])==null?void 0:Q.filter(Ne=>{var Pe;return((Pe=Ne==null?void 0:Ne.key)==null?void 0:Pe.parentTable)===""}))==null?void 0:ie.map(Ne=>{var Pe;return{id:Ne==null?void 0:Ne.id,...(Pe=Ne==null?void 0:Ne.value)==null?void 0:Pe.pageData}});(ge==null?void 0:ge.length)>0||await sa.loadingConstruct(I,R,null,null,null),qe.setRouteToChildPath(z.cloneDeep(ka).value),Qe.setActiveMenuPath(R)}else qe.setRouteToChildPath(z.cloneDeep(ka).value),Qe.setActiveMenuPath(R)},Hc=()=>{Ue.value=!1,Ea.value=[],Ca.value=!1},zt=d=>{var b,re,Q,ie,ge,Ne,Pe,De,aa,xa,Ka,qa,ia,Pa,Ze,Ra,Oa,F,la,We,Se;const f=[];ue.value=z.cloneDeep(xe.value),(re=sa.getColumnChild((b=z.cloneDeep(xe.value))==null?void 0:b.filter(B=>(B==null?void 0:B.label)!=="操作")))==null||re.forEach((B,Me)=>{var je,Xe,va;B!=null&&B.formType&&((je=B==null?void 0:B.formType)==null?void 0:je.toUpperCase())==="SELECT"||B!=null&&B.menuId?f.push({label:(Xe=B==null?void 0:B.prop)!=null&&Xe.includes(".")?B==null?void 0:B.prop:(B==null?void 0:B.label)??(B==null?void 0:B.prop)??"",name:(B==null?void 0:B.prop)??"t"+Me,prop:B==null?void 0:B.prop,type:"Select",value:(d==null?void 0:d[B==null?void 0:B.prop])??(B==null?void 0:B.value)??"",id:(B==null?void 0:B.id)??Me,contents:(B==null?void 0:B.options)??[],width:1,isFormColHidden:B==null?void 0:B.isFormColHidden,relatedValueId:B==null?void 0:B.relatedValueId,disabled:B==null?void 0:B.disabled,menus:B==null?void 0:B.menus,groups:B==null?void 0:B.groups,words:B==null?void 0:B.words,allSelectionContents:(B==null?void 0:B.allSelectionContents)??[],filterContent:B==null?void 0:B.filterContent,disabled:(B==null?void 0:B.prop)==="disabled"?!0:B==null?void 0:B.disabled,filter:B==null?void 0:B.filter,bindMenus:B==null?void 0:B.bindMenus,isMainPath:B==null?void 0:B.isMainPath,required:(B==null?void 0:B.required)??!1,relatedContents:B==null?void 0:B.relatedContents,mainKey:B==null?void 0:B.mainKey,relatedContents:B==null?void 0:B.relatedContents,functionName:B==null?void 0:B.functionName,functionRelatedWords:B==null?void 0:B.functionRelatedWords,calculatorFilter:B==null?void 0:B.calculatorFilter}):f.push({label:(va=B==null?void 0:B.prop)!=null&&va.includes(".")?B==null?void 0:B.prop:(B==null?void 0:B.label)??(B==null?void 0:B.prop)??"",prop:B==null?void 0:B.prop,name:(B==null?void 0:B.prop)??"t"+Me,type:!(B!=null&&B.formType)||(B==null?void 0:B.formType)===""?"Input":B==null?void 0:B.formType,value:(B==null?void 0:B.formType)==="Upload"?(d==null?void 0:d[B==null?void 0:B.prop])??"{}":(d==null?void 0:d[B==null?void 0:B.prop])??(B==null?void 0:B.value)??"",id:(B==null?void 0:B.id)??Me,contents:(B==null?void 0:B.options)??[],width:1,isFormColHidden:B==null?void 0:B.isFormColHidden,disabled:(B==null?void 0:B.prop)==="disabled"?!0:B==null?void 0:B.disabled,relatedValueId:B==null?void 0:B.relatedValueId,menus:B==null?void 0:B.menus,groups:B==null?void 0:B.groups,words:B==null?void 0:B.words,filter:B==null?void 0:B.filter,bindMenus:B==null?void 0:B.bindMenus,isMainPath:B==null?void 0:B.isMainPath,required:(B==null?void 0:B.required)??!1,relatedContents:B==null?void 0:B.relatedContents,mainKey:B==null?void 0:B.mainKey,relatedContents:B==null?void 0:B.relatedContents,functionName:B==null?void 0:B.functionName,functionRelatedWords:B==null?void 0:B.functionRelatedWords,calculatorFilter:B==null?void 0:B.calculatorFilter})}),d===""||!d||($e.value=(d==null?void 0:d.id)??"");let T=sa.getColumnChild((Q=z.cloneDeep(xe.value))==null?void 0:Q.filter(B=>(B==null?void 0:B.label)!=="操作"));ce.value&&((ie=ce.value)==null?void 0:ie.length)>0&&(ce.value=(ge=z.cloneDeep(ce).value)==null?void 0:ge.map(B=>{var je;let Me=(B==null?void 0:B.prop)||((je=T==null?void 0:T.find(Xe=>(Xe==null?void 0:Xe.label)===(B==null?void 0:B.label)))==null?void 0:je.prop);return Me&&(B.value=d[Me]),B})),Ce.value=ce.value&&((Ne=ce.value)==null?void 0:Ne.length)>0?sa.getTableFormToForm(ce.value):f,Ce.value=((Pe=Ce.value)==null?void 0:Pe.map(B=>({...B,disabled:(B==null?void 0:B.prop)==="disabled"?!0:B==null?void 0:B.disabled})))??Ce.value;let I=[],R=((xa=(aa=(De=c.itemData)==null?void 0:De.filter(B=>(B==null?void 0:B.key)==="filter"))==null?void 0:aa[0])==null?void 0:xa.contents)??"";if(R=Na.analyzeSplitToContent(R,","),(R==null?void 0:R.length)>0&&(I=R.flat()),(I==null?void 0:I.length)>0){let B=I==null?void 0:I.filter(ua=>ua==null?void 0:ua.includes("@Type"));if(B=B==null?void 0:B[(B==null?void 0:B.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)),B){let ua=(qa=(Ka=B==null?void 0:B.replace("=",$))==null?void 0:Ka.split($))==null?void 0:qa[1];((ia=ua==null?void 0:ua.trim())==null?void 0:ia.toUpperCase())==="MANUAL"&&(c==null||c.index,Ce.value=(Pa=Ce.value)==null?void 0:Pa.map((Ia,cl)=>Ia))}let Me=(Ze=Ce.value)==null?void 0:Ze.filter(ua=>ua==null?void 0:ua.mainKey),je;Me==null||Me.forEach(ua=>{var cl;if(je!==void 0)return;let Ia=ua==null?void 0:ua.menus;((cl=Me==null?void 0:Me.filter(Xa=>Xa==null?void 0:Xa.mainKey))==null?void 0:cl.length)>1&&(je=Ia,ua==null||ua.groups)});let Xe=[],va=new Map;if(Me==null||Me.forEach(ua=>{var Ia,cl,Xa,fl,bl,Kl,Ya,_l,Wa,ol,il,vl,Ll;if((Ia=ua==null?void 0:ua.prop)!=null&&Ia.includes(".")){let hl=[];va.get(((Xa=(cl=ua==null?void 0:ua.prop)==null?void 0:cl.split("."))==null?void 0:Xa[0])+(ua!=null&&ua.isMainPath?0:1)+((fl=ua==null?void 0:ua.groups)==null?void 0:fl[0]))&&(hl=va.get(((Kl=(bl=ua==null?void 0:ua.prop)==null?void 0:bl.split("."))==null?void 0:Kl[0])+(ua!=null&&ua.isMainPath?0:1)+((Ya=ua==null?void 0:ua.groups)==null?void 0:Ya[0]))),hl.push(ua),va.set(((Wa=(_l=ua==null?void 0:ua.prop)==null?void 0:_l.split("."))==null?void 0:Wa[0])+(ua!=null&&ua.isMainPath?0:1)+((ol=ua==null?void 0:ua.groups)==null?void 0:ol[0]),hl)}else{let hl=[];va.get("normal"+(ua!=null&&ua.isMainPath?0:1)+((il=ua==null?void 0:ua.groups)==null?void 0:il[0]))&&(hl=va.get("normal"+(ua!=null&&ua.isMainPath?0:1)+((vl=ua==null?void 0:ua.groups)==null?void 0:vl[0]))),hl.push(ua),va.set("normal"+(ua!=null&&ua.isMainPath?0:1)+((Ll=ua==null?void 0:ua.groups)==null?void 0:Ll[0]),hl)}}),Xe=Array.from(va.values()),(Xe==null?void 0:Xe.length)>0)for(let ua in Xe){let Ia=Xe==null?void 0:Xe[ua];if((Ia==null?void 0:Ia.length)!==1){if((Ia==null?void 0:Ia.length)>1){let cl=Ia==null?void 0:Ia.map(ol=>ol==null?void 0:ol.prop),Xa=Ia==null?void 0:Ia.map(ol=>ol==null?void 0:ol.label),fl=Ia==null?void 0:Ia.map(ol=>ol==null?void 0:ol.value),bl=(Ra=z.cloneDeep(Ia))==null?void 0:Ra[0],Kl=(Oa=Ce.value)==null?void 0:Oa.findIndex(ol=>(ol==null?void 0:ol.prop)===(bl==null?void 0:bl.prop)),Ya=(F=Ce.value)==null?void 0:F.slice(0,Kl),_l=(We=Ce.value)==null?void 0:We.slice(Kl,(la=Ce.value)==null?void 0:la.length);bl.label=Xa==null?void 0:Xa.join("·"),bl.value=fl==null?void 0:fl.join(" "),bl.value.trim()===""&&(bl.value=""),bl.prop=cl==null?void 0:cl.join("·");let Wa=Ia==null?void 0:Ia.map(ol=>{var il;return(il=ol==null?void 0:ol.words)==null?void 0:il.join(".")});bl.relatedWords=Wa,bl.usingType="parent",_l.unshift(bl),Ce.value=[...Ya,..._l],Ce.value=(Se=Ce.value)==null?void 0:Se.map(ol=>(cl!=null&&cl.find(il=>il===(ol==null?void 0:ol.prop))&&(ol.isFormColHidden=!0,ol.relatedWords=Wa),ol))}}}}},Uc=()=>{var f;const d=(f=s.value)==null?void 0:f.$el;d&&Na.Sortable.create(d,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:T=>{var re;const{oldIndex:I,newIndex:R}=T;if(I===R)return;const b=In.value.splice(I,1)[0];In.value.splice(R,0,b),xe.value=(re=xe.value)==null?void 0:re.slice().sort((Q,ie)=>{if(Q.label==="操作")return 1;if(ie.label==="操作")return-1;const ge=In.value.findIndex(Pe=>Pe.label===Q.label),Ne=In.value.findIndex(Pe=>Pe.label===ie.label);return ge-Ne})}})};a.onMounted(()=>{ma.value=window.innerWidth-240*2,window.addEventListener("keydown",qt)});const qc=()=>{a.nextTick(()=>{Uc()})},Yo=(d,f)=>{var I;if(!d&&!(d!=null&&d.children))return{contents:d,currentSelectContents:void 0};let T;return d.children=(I=d.children)==null?void 0:I.map(R=>{var b,re;if((R==null?void 0:R.id)===$e.value){let Q={};for(let ie in R){let ge=(b=f==null?void 0:f.find(Ne=>(Ne==null?void 0:Ne.prop)===ie))==null?void 0:b.label;ge?Q[ie]=(re=sr.value)==null?void 0:re[ge]:Q[ie]=R[ie]??""}R=Object.assign(Q,sr.value),T=R}else{let Q=Yo(R,f);R=Q==null?void 0:Q.contents,T=Q==null?void 0:Q.currentSelectContents}return R}),{contents:d,currentSelectContents:T}},xi=(d,f)=>{let T,I;return d!=null&&d.find(R=>(R==null?void 0:R.id)===$e.value)?T=d==null?void 0:d.map(R=>{var b,re,Q;if((R==null?void 0:R.id)===$e.value){let ie={};for(let Ne in R){let Pe=(b=f==null?void 0:f.find(De=>(De==null?void 0:De.prop)===Ne))==null?void 0:b.label;Pe?ie[Ne]=((re=sr.value)==null?void 0:re[Pe])??"":ie[Ne]=R[Ne]??""}let ge=sr.value;for(let Ne in ie)(Q=sr.value)!=null&&Q[Ne]||(ge[Ne]=(ie==null?void 0:ie[Ne])??"");R=ge,I=R}return R}):T=d==null?void 0:d.map(R=>{var b,re,Q,ie;if((R==null?void 0:R.id)===$e.value){let ge={};for(let Ne in R){let Pe=(b=f==null?void 0:f.find(De=>(De==null?void 0:De.prop)===Ne))==null?void 0:b.label;Pe?ge[Ne]=(re=sr.value)==null?void 0:re[Pe]:ge[Ne]=R[Ne]??""}R=Object.assign(ge,sr.value),I=R}else R=(Q=Yo(R,f))==null?void 0:Q.contents,I=(ie=Yo(R,f))==null?void 0:ie.currentSelectContents;return R}),{newContents:T,currentSelectContents:I}},_i=(d,f,T)=>{var I,R;return d[f==null?void 0:f.prop]=T,typeof d.id=="number"&&(d.id=(I=d.id)==null?void 0:I.toString()),d.children&&((R=d.children)==null?void 0:R.length)>0&&(d.children=d.children.map(_i)),d},wi=d=>{var T;const f=[];return f.push({...d}),d!=null&&d.children&&Array.isArray(d.children)&&((T=d.children)==null||T.forEach(I=>{f.push(...wi(I))})),(f==null?void 0:f.length)>0?f==null?void 0:f.map(I=>{const R={...I};return delete R.children,R}):[]},Ot=async(d=!0,f,T)=>{var ge,Ne,Pe,De,aa,xa,Ka,qa,ia,Pa,Ze,Ra,Oa,F,la,We,Se,B,Me,je,Xe,va,ua,Ia,cl,Xa,fl,bl,Kl,Ya,_l;if(sr.value){const Wa=(Ne=sa.getColumnChild((ge=z.cloneDeep(xe.value))==null?void 0:ge.filter(ol=>(ol==null?void 0:ol.label)!=="操作")))==null?void 0:Ne.filter(ol=>(ol==null?void 0:ol.required)===!0);for(let ol=0;ol<((Wa==null?void 0:Wa.length)??0);ol++){const il=Wa[ol],vl=il==null?void 0:il.prop,Ll=(il==null?void 0:il.label)??vl,hl=(Pe=sr.value)==null?void 0:Pe[vl];if(hl===""||hl===null||hl===void 0||Array.isArray(hl)&&hl.length===0){Za.ElMessage.error(`${Ll}不能为空`);return}}}let I=sa.getColumnChild((De=z.cloneDeep(xe.value))==null?void 0:De.filter(Wa=>(Wa==null?void 0:Wa.label)!=="操作")),R,b=z.cloneDeep(ee.value);if(!sr.value){da.value=!1;return}if($e.value===""){ca.value++;let Wa;Wa={id:ca.value.toString()},Wa!=null&&Wa.children&&(Wa={...Wa,children:(aa=Wa.children)==null?void 0:aa.map(ol=>_i(ol,f,T))}),b.push(Object.assign(sr.value,Wa)),R=Object.assign(sr.value,Wa)}else b=(xa=xi(b,I))==null?void 0:xa.newContents,R=(Ka=xi(b,I))==null?void 0:Ka.currentSelectContents;const re=(qa=c.itemData)==null?void 0:qa.filter(Wa=>(Wa==null?void 0:Wa.key)==="childTree")[0];if(((ia=re==null?void 0:re.contents)==null?void 0:ia.length)>0){Oe.value="编辑";const Wa=[];b==null||b.forEach((vl,Ll)=>{var wl;let hl={};if(Array.isArray(vl)){let Dl=[];vl==null||vl.filter(kl=>!(kl!=null&&kl.id)).forEach((kl,Wl)=>{var pr,fr,Jl,nr,Lr,ir,yr;if((fr=(pr=wr.value)==null?void 0:pr[Wl])!=null&&fr.prop&&!Array.isArray(kl)){let tr={};tr[wr.value[Wl].column]=kl,Sa!=null&&Sa.value&&((Jl=Sa==null?void 0:Sa.value)==null?void 0:Jl.length)>0&&((nr=Sa==null?void 0:Sa.value)!=null&&nr.find(Kr=>JSON.stringify(Kr==null?void 0:Kr[0])===JSON.stringify(tr)))&&(Dl=(Lr=Sa==null?void 0:Sa.value)==null?void 0:Lr.find(Kr=>JSON.stringify(Kr==null?void 0:Kr[0])===JSON.stringify(tr))),Dl&&Dl.length>0?hl[wr.value[Wl].prop]=Dl!=null&&Dl.find(Kr=>{var Rn;return((Rn=Object.keys(Kr))==null?void 0:Rn[0])===wr.value[Wl].column})?(ir=Dl==null?void 0:Dl.find(Kr=>{var Rn;return((Rn=Object.keys(Kr))==null?void 0:Rn[0])===wr.value[Wl].column}))==null?void 0:ir[wr.value[Wl].column]:kl:hl[wr.value[Wl].prop]=kl}else Array.isArray(kl)&&((yr=wr.value[Wl])!=null&&yr.prop?hl[wr.value[Wl].prop]=kl:hl.children=ii(kl,wr.value))})}else hl=vl;if(Array.isArray(vl)&&vl.some(Dl=>Dl==null?void 0:Dl.id)){const Dl=(wl=vl==null?void 0:vl.find(kl=>kl.id))==null?void 0:wl.id;Wa.push(Object.assign(hl,{id:Gt(Dl)}))}else hl.id?Wa.push(hl):Wa.push(Object.assign(hl,{id:Ll.toString()}))});const ol=(ee.value||[]).map(vl=>String(vl==null?void 0:vl.id)),il=Xt(Wa,ol);ee.value=Di(il,re,xe.value)}Ei(ee.value),dn.value=ee.value;const Q=Yp(dn.value,An.value,b);let ie=[];if(el.value?(ie=(Pa=z.cloneDeep(el).value.singleContent)==null?void 0:Pa.filter(Wa=>(Wa==null?void 0:Wa.id)!==(R==null?void 0:R.id)),ie.push(R)):ie=[R],er.value){const Wa={content:Q,singleContent:((Ze=re==null?void 0:re.contents)==null?void 0:Ze.length)>0?ie==null?void 0:ie.flatMap(wi):ie,index:c==null?void 0:c.index,buttonName:"编辑",column:xe.value,parentTableId:c==null?void 0:c.parentTableId};qe.setCacheUpdatingData(Wa)}if((Ra=xe.value)==null||Ra.forEach(Wa=>{(Wa==null?void 0:Wa.formType)==="Upload"&&(R[Wa.prop]=R[Wa.prop]===""?"{}":typeof R[Wa.prop]!="string"?JSON.stringify(R[Wa.prop]):R[Wa.prop])}),d){(We=(la=(F=(Oa=c.itemData)==null?void 0:Oa.find(il=>(il==null?void 0:il.key)==="filterAllType"))==null?void 0:F.value)==null?void 0:la.find(il=>(il==null?void 0:il.value)==="onConditionContents"))==null||We.content;let Wa=(Se=c.itemData)==null?void 0:Se.filter(il=>(il==null?void 0:il.key)==="filterAllType");Wa=Array.from(new Map(Wa.filter(Boolean).map((il,vl)=>[il.value,{...il,_idx:vl}])).values()).sort((il,vl)=>il._idx-vl._idx).map(({_idx:il,...vl})=>vl),Wa=(B=Wa==null?void 0:Wa[(Wa==null?void 0:Wa.length)-1])==null?void 0:B.value;const ol={fixContent:[R],buttonName:Oe.value,relatedContents:c==null?void 0:c.related,columns:xe.value,name:c==null?void 0:c.compName};qe.setTableLoading(c==null?void 0:c.index),da.value=!1,sr.value=void 0,Be("change",ol)}if((Xe=(je=(Me=Ce.value)==null?void 0:Me[0])==null?void 0:je.optionUrl)!=null&&Xe.menuId){da.value=!1;let Wa=(va=c.itemData)==null?void 0:va.filter(ol=>(ol==null?void 0:ol.key)==="filterAllType");if((Wa==null?void 0:Wa.length)>0){let ol=Wa==null?void 0:Wa.map(Ll=>Ll==null?void 0:Ll.value),il=(cl=(Ia=(ua=ol.flat().find(Ll=>{var hl;return(hl=Ll==null?void 0:Ll.content)==null?void 0:hl.includes("@Num")}))==null?void 0:ua.content)==null?void 0:Ia.split(":"))==null?void 0:cl[1];((bl=(fl=(Xa=ol.flat().find(Ll=>{var hl;return(hl=Ll==null?void 0:Ll.content)==null?void 0:hl.includes("@Type:")}))==null?void 0:Xa.content)==null?void 0:fl.split(":"))==null?void 0:bl[1])!=="Manual"&&(il=parseInt(il),ee.value=(_l=ee.value)==null?void 0:_l.slice(((Kl=ee.value)==null?void 0:Kl.length)-il,(Ya=ee.value)==null?void 0:Ya.length))}}};a.onUnmounted(()=>{window.removeEventListener("keydown",qt),xe.value=[],ee.value=[],ue.value=[],ba.value=[],ce.value=[],ga.value=[],Ea.value=[],Ye.value=[],Ce.value=[],Pl.value=[],s.value=null,Cn.value=""});const ro=async(d,f,T)=>{var aa,xa,Ka,qa,ia,Pa,Ze,Ra,Oa,F,la,We,Se;Hl.value=(T==null?void 0:T.prop)??(T==null?void 0:T.property);const I=z.cloneDeep(c.itemData),R=((aa=I==null?void 0:I.find(B=>(B==null?void 0:B.key)==="header"))==null?void 0:aa.contents)??[];let b=R==null?void 0:R.find((B,Me)=>{var je,Xe,va;return(B==null?void 0:B.prop)===Hl.value||(B==null?void 0:B.label)===Hl.value||(Me==null?void 0:Me.toString())===((va=(Xe=(je=Hl.value)==null?void 0:je.split("a"))==null?void 0:Xe[1])==null?void 0:va.toString())});const re=sa.getColumnChild((xa=z.cloneDeep(xe.value))==null?void 0:xa.filter(B=>(B==null?void 0:B.label)!=="操作"));if(b||(b=re==null?void 0:re.find(B=>(B==null?void 0:B.prop)===Hl.value||(B==null?void 0:B.label)===Hl.value)),b&&!((Ka=b==null?void 0:b.menus)!=null&&Ka.length)&&!((qa=b==null?void 0:b.groups)!=null&&qa.length)&&!((ia=b==null?void 0:b.words)!=null&&ia.length)){const B=(Pa=Ce.value)==null?void 0:Pa.find(Me=>(Me==null?void 0:Me.prop)===Hl.value);B&&(b={...b,menus:(B==null?void 0:B.menus)??(b==null?void 0:b.menus),groups:(B==null?void 0:B.groups)??(b==null?void 0:b.groups),words:(B==null?void 0:B.words)??(b==null?void 0:b.words),bindMenus:(B==null?void 0:B.bindMenus)??(b==null?void 0:b.bindMenus),isMainPath:(B==null?void 0:B.isMainPath)??(b==null?void 0:b.isMainPath),relatedContents:(B==null?void 0:B.relatedContents)??(b==null?void 0:b.relatedContents),endChildMenu:(B==null?void 0:B.endChildMenu)??(b==null?void 0:b.endChildMenu)})}if(b&&((Ze=Ce==null?void 0:Ce.value)==null||Ze.forEach(B=>{var Me,je,Xe,va,ua;(B==null?void 0:B.prop)===(b==null?void 0:b.prop)&&(B!=null&&B.endChildMenu)&&((Me=b==null?void 0:b.prop)!=null&&Me.includes(".")&&((Xe=(je=b==null?void 0:b.prop)==null?void 0:je.split("."))==null?void 0:Xe[0])!==((ua=(va=B==null?void 0:B.prop)==null?void 0:va.split("."))==null?void 0:ua[0])?b.endChildMenu=B==null?void 0:B.value:b.endChildMenu=B==null?void 0:B.endChildMenu)})),!b)return;const Q=Hl.value,ie=(Ra=ee.value)==null?void 0:Ra.findIndex(B=>(B==null?void 0:B.id)===(f==null?void 0:f.id));ie!==-1&&Q&&(ee.value[ie]={...ee.value[ie],[Q]:d});const ge=B=>{Array.isArray(B)&&B.forEach(Me=>{Array.isArray(Me==null?void 0:Me.allSelectionContents)&&Me.allSelectionContents.length>0&&(Me.contactValue=ee.value[ie]??f),Array.isArray(Me==null?void 0:Me.children)&&Me.children.length>0&&ge(Me.children)})};ge(xe.value),b.value=d,b.endChildMenu=b.endChildMenu||"";let Ne=b!=null&&b.isMainPath&&(b!=null&&b.mainKey)?b==null?void 0:b.value:"";const Pe=B=>{Array.isArray(B)&&B.forEach(Me=>{var Xe,va;if(((Me==null?void 0:Me.type)==="Select"||(Me==null?void 0:Me.formType)&&Me.formType.toUpperCase()==="SELECT"||(Me==null?void 0:Me.columnType)&&Me.columnType.toUpperCase()==="SELECT")&&Array.isArray(Me==null?void 0:Me.menus)&&Me.menus.length>0&&Me.menus[Me.menus.length-1]===""&&(b!=null&&b.isMainPath)&&(b!=null&&b.mainKey)){const ua=(Xe=Me==null?void 0:Me.prop)!=null&&Xe.includes(".")?Me.prop.split(".")[0]:null,Ia=(va=b==null?void 0:b.prop)!=null&&va.includes(".")?b.prop.split(".")[0]:null;(!ua||!Ia||ua===Ia)&&(Me.endChildMenu=Ne)}Array.isArray(Me==null?void 0:Me.children)&&Me.children.length>0&&Pe(Me.children)})};if(Pe(xe.value),!!(b!=null&&b.mainKey)&&Array.isArray(b==null?void 0:b.menus)&&(b==null?void 0:b.menus.length)>0&&(b!=null&&b.value)&&(b==null?void 0:b.value)!==""){let B=b!=null&&b.relatedContents&&((Oa=b==null?void 0:b.relatedContents)==null?void 0:Oa.length)>0?(F=b==null?void 0:b.relatedContents)==null?void 0:F.find(Me=>{var je,Xe,va,ua;return(Me==null?void 0:Me[(ua=(je=b==null?void 0:b.prop)==null?void 0:je.split("."))==null?void 0:ua[((va=(Xe=b==null?void 0:b.prop)==null?void 0:Xe.split("."))==null?void 0:va.length)-1]])===(b==null?void 0:b.value)}):await Xi(b);if(B){const Me={...f};re==null||re.forEach(je=>{var Xe,va,ua,Ia,cl,Xa,fl,bl,Kl,Ya,_l,Wa,ol,il,vl,Ll;(je==null?void 0:je.prop)!==(b==null?void 0:b.prop)&&(b!=null&&b.relatedContents&&((Xe=b==null?void 0:b.relatedContents)==null?void 0:Xe.length)>0?(va=je==null?void 0:je.prop)!=null&&va.includes(".")&&((Ia=(ua=je==null?void 0:je.prop)==null?void 0:ua.split("."))==null?void 0:Ia[0])===((Xa=(cl=b==null?void 0:b.prop)==null?void 0:cl.split("."))==null?void 0:Xa[0])?Me[je.prop]=B[(Ya=(fl=je==null?void 0:je.prop)==null?void 0:fl.split("."))==null?void 0:Ya[((Kl=(bl=je==null?void 0:je.prop)==null?void 0:bl.split("."))==null?void 0:Kl.length)-1]]??Me[je.prop]:Me[je.prop]=(B==null?void 0:B[je.prop])??Me[je.prop]:Na.same((b==null?void 0:b.menus)??[],(je==null?void 0:je.menus)??[])&&Na.same((b==null?void 0:b.groups)??[],(je==null?void 0:je.groups)??[])&&!Na.same((b==null?void 0:b.words)??[],(je==null?void 0:je.words)??[])?(_l=je==null?void 0:je.prop)!=null&&_l.includes(".")&&((ol=(Wa=je==null?void 0:je.prop)==null?void 0:Wa.split("."))==null?void 0:ol[0])!==((vl=(il=b==null?void 0:b.prop)==null?void 0:il.split("."))==null?void 0:vl[0])||(Me[je.prop]=(B==null?void 0:B[(Ll=je==null?void 0:je.words)==null?void 0:Ll.join(".")])??(B==null?void 0:B[je.prop])??Me[je.prop]):(!(je!=null&&je.isMainPath)&&Na.same((b==null?void 0:b.bindMenus)??[],(je==null?void 0:je.bindMenus)??[]),Me[je.prop]=(B==null?void 0:B[je.prop])??Me[je.prop]))}),ee.value=(la=z.cloneDeep(ee.value))==null?void 0:la.map(je=>(je==null?void 0:je.id)===(f==null?void 0:f.id)?{...Me,id:je==null?void 0:je.id}:je)}}if((We=b==null?void 0:b.optionUrl)!=null&&We.menuSelect){let B="";re==null||re.forEach(Xe=>{var va,ua,Ia,cl,Xa;B===""&&((Ia=(ua=(va=Xe==null?void 0:Xe.optionUrl)==null?void 0:va.groupSelect)==null?void 0:ua[1])!=null&&Ia.includes("["))&&(B=(Xa=(cl=Xe==null?void 0:Xe.optionUrl)==null?void 0:cl.groupSelect)==null?void 0:Xa[1])});let Me=await si(b),je;if(Me==null||Me.forEach(Xe=>{var va,ua,Ia,cl,Xa,fl,bl,Kl,Ya,_l;B===((ua=(va=b==null?void 0:b.optionUrl)==null?void 0:va.groupSelect)==null?void 0:ua[1])&&((Xa=(cl=(Ia=b==null?void 0:b.optionUrl)==null?void 0:Ia.groupSelect)==null?void 0:cl[1])!=null&&Xa.includes("["))&&((_l=z.cloneDeep(Xe))==null?void 0:_l[(Ya=(Kl=(bl=(fl=b==null?void 0:b.optionUrl)==null?void 0:fl.groupSelect)==null?void 0:bl[1])==null?void 0:Kl.replaceAll("[",""))==null?void 0:Ya.replaceAll("]","")])===(b==null?void 0:b.value)&&(je=Xe)}),je){const Xe={...f};re==null||re.forEach(va=>{var ua,Ia,cl,Xa,fl,bl,Kl,Ya,_l,Wa,ol;(je!=null&&je[va==null?void 0:va.label]||je!=null&&je[(Xa=(cl=(Ia=(ua=va==null?void 0:va.optionUrl)==null?void 0:ua.groupSelect)==null?void 0:Ia[1])==null?void 0:cl.replaceAll("[",""))==null?void 0:Xa.replaceAll("]","")])&&((Kl=(bl=(fl=va==null?void 0:va.optionUrl)==null?void 0:fl.groupSelect)==null?void 0:bl[1])!=null&&Kl.includes("["))&&(Xe[va.prop]=(je==null?void 0:je[va==null?void 0:va.label])||(je==null?void 0:je[(ol=(Wa=(_l=(Ya=va==null?void 0:va.optionUrl)==null?void 0:Ya.groupSelect)==null?void 0:_l[1])==null?void 0:Wa.replaceAll("[",""))==null?void 0:ol.replaceAll("]","")]))}),ee.value=(Se=z.cloneDeep(ee.value))==null?void 0:Se.map(va=>(va==null?void 0:va.id)===(f==null?void 0:f.id)?{...Xe,id:va==null?void 0:va.id}:va)}}},Kc=async d=>{var Ne,Pe,De,aa,xa,Ka,qa,ia,Pa,Ze,Ra,Oa;if(!d)return;sr.value=d;let f=z.cloneDeep(c.itemData);f==null||f.map(F=>{var la,We,Se,B;return(F==null?void 0:F.key)==="header"&&(Array.isArray((la=F.contents)==null?void 0:la[0])?F.contents=(Se=sa.getColumnChild((We=F.contents)==null?void 0:We[0]))==null?void 0:Se.map((Me,je)=>{var Xe,va,ua,Ia,cl,Xa;return((ua=(va=(Xe=Ce.value)==null?void 0:Xe.find(fl=>(fl==null?void 0:fl.prop)===(Me==null?void 0:Me.prop)))==null?void 0:va.optionUrl)==null?void 0:ua.multiple)===!0&&!Array.isArray((Ia=Object.values(d))==null?void 0:Ia[je])?Me.value=[(cl=Object.values(d))==null?void 0:cl[je]]:Me.value=(Xa=Object.values(d))==null?void 0:Xa[je],Me}):F.contents=(B=F.contents)==null?void 0:B.map((Me,je)=>{var Xe,va,ua,Ia,cl,Xa;return((ua=(va=(Xe=Ce.value)==null?void 0:Xe.find(fl=>(fl==null?void 0:fl.prop)===(Me==null?void 0:Me.prop)))==null?void 0:va.optionUrl)==null?void 0:ua.multiple)===!0&&!Array.isArray((Ia=Object.values(d))==null?void 0:Ia[je])?Me.value=[(cl=Object.values(d))==null?void 0:cl[je]]:Me.value=(Xa=Object.values(d))==null?void 0:Xa[je],Me})),F});let T=Ce.value,I=(Ne=f==null?void 0:f.find(F=>(F==null?void 0:F.key)==="header"))==null?void 0:Ne.contents;if(T=T==null?void 0:T.map(F=>{var la;return F.value=F.value??((la=I==null?void 0:I.find((We,Se)=>(We==null?void 0:We.prop)===(F==null?void 0:F.name)))==null?void 0:la.value),F}),!hr.value)return;let R=z.cloneDeep(Hl.value);(Pe=Hl.value)!=null&&Pe.includes("·")&&(Hl.value=(aa=(De=Hl.value)==null?void 0:De.split("·"))==null?void 0:aa[0]);let b=(Ka=(xa=f==null?void 0:f.find(F=>(F==null?void 0:F.key)==="header"))==null?void 0:xa.contents)==null?void 0:Ka.find((F,la)=>(F==null?void 0:F.prop)===Hl.value);(qa=Ce==null?void 0:Ce.value)==null||qa.forEach(F=>{var la,We,Se,B,Me,je,Xe,va,ua;(F==null?void 0:F.prop)===(b==null?void 0:b.prop)&&(F!=null&&F.endChildMenu)&&((la=b==null?void 0:b.prop)!=null&&la.includes(".")&&((Se=(We=b==null?void 0:b.prop)==null?void 0:We.split("."))==null?void 0:Se[0])!==((Me=(B=F==null?void 0:F.prop)==null?void 0:B.split("."))==null?void 0:Me[0])?b.endChildMenu=(Xe=(je=F==null?void 0:F.value)==null?void 0:je.split(" "))==null?void 0:Xe[0]:b.endChildMenu=(ua=(va=F==null?void 0:F.endChildMenu)==null?void 0:va.split(" "))==null?void 0:ua[0])});let re=b!=null&&b.isMainPath&&(b!=null&&b.mainKey)?b==null?void 0:b.value:"",Q=z.cloneDeep(T),ie=me.value;if(ie!=null&&ie.find(F=>(b==null?void 0:b.prop)===(F==null?void 0:F.key))&&(ie=ie==null?void 0:ie.filter(F=>(b==null?void 0:b.prop)!==(F==null?void 0:F.key))),ie!=null&&ie.find(F=>R===(F==null?void 0:F.key))&&(ie=ie==null?void 0:ie.filter(F=>R!==(F==null?void 0:F.key))),Q=Q==null?void 0:Q.map(F=>{var la,We,Se,B,Me,je,Xe,va,ua,Ia,cl,Xa,fl,bl,Kl,Ya;return(F==null?void 0:F.type)==="Select"&&(((la=F==null?void 0:F.allSelectionContents)==null?void 0:la.length)>0&&(F.contactValue=d),((b==null?void 0:b.prop)===(F==null?void 0:F.prop)||R===(F==null?void 0:F.prop))&&b&&(Array.isArray(b.value)&&((We=b.value)==null?void 0:We.length)>0&&((Se=b.value)!=null&&Se.every(_l=>typeof _l=="string"))?(ie.push({key:F==null?void 0:F.prop,value:[(Me=b.value)==null?void 0:Me[((B=b.value)==null?void 0:B.length)-1]]}),F.selectValue=(je=ie==null?void 0:ie.find(_l=>(_l==null?void 0:_l.key)===(F==null?void 0:F.prop)))==null?void 0:je.value):Array.isArray(b.value)&&((Xe=b.value)==null?void 0:Xe.length)===0?(ie=[],F.selectValue=[],d[F==null?void 0:F.prop]=""):Array.isArray(F.value)&&ie.push({key:F==null?void 0:F.prop,value:[(va=F.value)==null?void 0:va[(F==null?void 0:F.length)-1]]})),((Ia=F==null?void 0:F.menus)==null?void 0:Ia[((ua=F==null?void 0:F.menus)==null?void 0:ua.length)-1])===""&&(b!=null&&b.isMainPath)&&(b!=null&&b.mainKey)&&((cl=F==null?void 0:F.prop)!=null&&cl.includes(".")&&((fl=(Xa=F==null?void 0:F.prop)==null?void 0:Xa.split("."))==null?void 0:fl[0])!==((Kl=(bl=b==null?void 0:b.prop)==null?void 0:bl.split("."))==null?void 0:Kl[0])||(F.endChildMenu=(Ya=re==null?void 0:re.split(" "))==null?void 0:Ya[0]))),F.value=(d==null?void 0:d[F==null?void 0:F.prop])??(F==null?void 0:F.value),F}),me.value=ie,Q!=null&&Q.some(F=>(F==null?void 0:F.functionName)&&(F==null?void 0:F.functionName)!=="")){let F=await oi([d],xe==null?void 0:xe.value,"Auto",ee.value);Q=Q==null?void 0:Q.map(la=>{var We;return la.value=((We=F==null?void 0:F[0])==null?void 0:We[la==null?void 0:la.prop])??la.value,la}),sr.value=F==null?void 0:F[0]}if(Ce.value=z.cloneDeep(Q),b=Object.assign({},b??{},{relatedWords:(Pa=(ia=Ce==null?void 0:Ce.value)==null?void 0:ia.find(F=>(F==null?void 0:F.prop)===(b==null?void 0:b.prop)))==null?void 0:Pa.relatedWords}),(b==null?void 0:b.mainKey)&&(b!=null&&b.value)&&(b==null?void 0:b.value)!==""){let F=b!=null&&b.relatedContents&&((Ze=b==null?void 0:b.relatedContents)==null?void 0:Ze.length)>0?(Ra=b==null?void 0:b.relatedContents)==null?void 0:Ra.find(la=>{var We,Se,B,Me;return(la==null?void 0:la[(Me=(We=b==null?void 0:b.prop)==null?void 0:We.split("."))==null?void 0:Me[((B=(Se=b==null?void 0:b.prop)==null?void 0:Se.split("."))==null?void 0:B.length)-1]])===(b==null?void 0:b.value)}):await Xi(b);if(F&&JSON.stringify(F)!=="{}"){let la=Q;la=la==null?void 0:la.map(Se=>{var B,Me,je,Xe,va,ua,Ia,cl,Xa,fl,bl,Kl,Ya,_l,Wa,ol,il,vl,Ll,hl,wl;return(b==null?void 0:b.prop)===(Se==null?void 0:Se.prop)?Se.value=(F==null?void 0:F[(B=Se==null?void 0:Se.words)==null?void 0:B.join(".")])??(F==null?void 0:F[Se==null?void 0:Se.prop])??F[(va=(Me=Se==null?void 0:Se.prop)==null?void 0:Me.split("."))==null?void 0:va[((Xe=(je=Se==null?void 0:Se.prop)==null?void 0:je.split("."))==null?void 0:Xe.length)-1]]:b!=null&&b.relatedContents&&((ua=b==null?void 0:b.relatedContents)==null?void 0:ua.length)>0?Se.value=(Ia=Se==null?void 0:Se.prop)!=null&&Ia.includes(".")&&((Xa=(cl=Se==null?void 0:Se.prop)==null?void 0:cl.split("."))==null?void 0:Xa[0])===((bl=(fl=b==null?void 0:b.prop)==null?void 0:fl.split("."))==null?void 0:bl[0])?F[(Wa=(Kl=Se==null?void 0:Se.prop)==null?void 0:Kl.split("."))==null?void 0:Wa[((_l=(Ya=Se==null?void 0:Se.prop)==null?void 0:Ya.split("."))==null?void 0:_l.length)-1]]:(F==null?void 0:F[Se==null?void 0:Se.prop])??(Se==null?void 0:Se.value):Na.same((b==null?void 0:b.menus)??[],(Se==null?void 0:Se.menus)??[])&&Na.same((b==null?void 0:b.groups)??[],(Se==null?void 0:Se.groups)??[])&&!Na.same((b==null?void 0:b.words)??[],(Se==null?void 0:Se.words)??[])?(ol=Se==null?void 0:Se.prop)!=null&&ol.includes(".")&&((vl=(il=Se==null?void 0:Se.prop)==null?void 0:il.split("."))==null?void 0:vl[0])!==((hl=(Ll=b==null?void 0:b.prop)==null?void 0:Ll.split("."))==null?void 0:hl[0])||(Se.value=(F==null?void 0:F[(wl=Se==null?void 0:Se.words)==null?void 0:wl.join(".")])??(F==null?void 0:F[Se==null?void 0:Se.prop])??Se.value):(!(Se!=null&&Se.isMainPath)&&Na.same((b==null?void 0:b.bindMenus)??[],(Se==null?void 0:Se.bindMenus)??[]),Se.value=(F==null?void 0:F[Se==null?void 0:Se.prop])??Se.value),Se}),Ce.value=la;let We={};(Oa=Ce.value)==null||Oa.forEach(Se=>{We[Se.prop]=Se==null?void 0:Se.value}),sr.value=We}}hr.value=!0,W.value=!1},Wc=d=>d?(d==null?void 0:d.toUpperCase())==="INPUT"?"TEXTAREA":d:"TEXTAREA",Yc=d=>{var b,re;const f=(re=(b=ce.value)==null?void 0:b.find(Q=>(Q==null?void 0:Q.label)===(d==null?void 0:d.label)))==null?void 0:re.multiple,T=d==null?void 0:d.prop;if((d==null?void 0:d.formType)!="Select")return;ee.value.forEach(Q=>{const ie=Q==null?void 0:Q[T];f&&bo.isString(ie)&&(Q[T]=[ie]),!f&&!bo.isString(ie)&&(Q[T]="")})},Ci=(d,f)=>{var T;return f==null||f.forEach(I=>{d[I==null?void 0:I.prop]=I==null?void 0:I.value}),d.children&&((T=d.children)==null?void 0:T.length)>0&&(d.children=d.children.map(I=>Ci(I,f))),d},Jo=d=>{var T,I,R,b,re,Q;zt("");const f=(T=Ce.value)==null?void 0:T.reduce((ie,ge)=>(ie[ge.name]=ge.value,ie),{});if(((I=Object.keys(f))==null?void 0:I.length)>0){sr.value=f,$e.value="",ca.value=(R=ee.value)==null?void 0:R.length,Ye.value=(b=Ke.value)==null?void 0:b.filter(ge=>(ge==null?void 0:ge.label)!=="新增");const ie=(Q=(re=ue.value)==null?void 0:re.filter(ge=>(ge==null?void 0:ge.label)!=="操作"))==null?void 0:Q.map(ge=>{var Pe,De,aa;const Ne=(De=(Pe=ce.value)==null?void 0:Pe.find(xa=>(xa==null?void 0:xa.label)===(ge==null?void 0:ge.label)))==null?void 0:De.multiple;return Yc(ge),{...ge,contents:(ge==null?void 0:ge.options)??[],optionUrl:ge!=null&&ge.formMenuSelect&&((aa=ge==null?void 0:ge.formMenuSelect)==null?void 0:aa.length)>0?{groupSelect:ge==null?void 0:ge.groupSelect,menuSelect:ge==null?void 0:ge.formMenuSelect,selectRelateType:"",type:ge==null?void 0:ge.formType,multiple:Ne}:null}});xe.value=ie==null?void 0:ie.map(ge=>Ci(ge,[{prop:"type",value:"edit"},{prop:"columnType",value:Wc(ge==null?void 0:ge.formType)||(ge==null?void 0:ge.columnType)}])),d==="createClick"&&(Oe.value="新增",Ot(!0))}},ut={START:"开始时间",END:"结束时间",HOURS:"工时"},Jc=(d,f)=>Number(z.dayjs(f).diff(z.dayjs(d),"day",!0).toFixed(1)),Ei=d=>{var b;const f=c.itemData,T=(b=f==null?void 0:f.find(re=>(re==null?void 0:re.key)==="header"))==null?void 0:b.contents,I=new Map;return T==null||T.forEach((re,Q)=>{const{label:ie}=re;I.set(ie,Q)}),!I.has(ut.START)||!I.has(ut.END)||!I.has(ut.HOURS)?d:d==null?void 0:d.map(re=>{const Q=re==null?void 0:re[ut.START],ie=re==null?void 0:re[ut.END],ge=Jc(Q,ie);return Q&&ie&&(re[ut.HOURS]=`${ge}天`),re})},Si=(d,f,T=0)=>{if(T>((f==null?void 0:f.length)??""))return d;const I=f==null?void 0:f[T],R=new Map;for(const re of d){const Q=re[I];R.has(Q)||R.set(Q,[]),R.get(Q)&&R.get(Q).push(re)}const b=[];for(const[re,Q]of R){const[ie,...ge]=Q,Ne={...ie};T+1===((f==null?void 0:f.length)??"")?Ne.children=Q==null?void 0:Q.map(Pe=>(Pe.level=z.cloneDeep(T)+1,Pe)).filter((Pe,De)=>De!==0):ge.length>0&&(Ne.children=Si(ge,f,T+1)),Ne.level=T,b.push(Ne)}return b},Di=(d,f,T)=>{var R;if(!(f!=null&&f.contents)||((R=f==null?void 0:f.contents)==null?void 0:R.length)===0)return d;let I=[];return I=Si(d,f==null?void 0:f.contents,0),I},Bi=async(d,f)=>{var qa,ia,Pa,Ze,Ra,Oa,F,la,We,Se,B,Me,je,Xe,va,ua,Ia,cl,Xa,fl,bl,Kl,Ya,_l,Wa,ol,il,vl,Ll,hl,wl,Dl,kl,Wl,pr,fr,Jl,nr,Lr,ir,yr,tr,Kr,Rn,Ti,Ai,Mi;const T=d==null?void 0:d.filter(ta=>(ta==null?void 0:ta.key)==="header");d==null||d.filter(ta=>(ta==null?void 0:ta.key)==="tableIndexColumn")[0];const I=d==null?void 0:d.filter(ta=>(ta==null?void 0:ta.key)==="childTree")[0];let R=!0;if((Pa=(ia=(qa=d==null?void 0:d.find(ta=>(ta==null?void 0:ta.key)==="filterAllType"))==null?void 0:qa.value)==null?void 0:ia.find(ta=>(ta==null?void 0:ta.value)==="onPamButtonContents"))!=null&&Pa.content){let ta=(Oa=(Ra=(Ze=d==null?void 0:d.find(Al=>(Al==null?void 0:Al.key)==="filterAllType"))==null?void 0:Ze.value)==null?void 0:Ra.find(Al=>(Al==null?void 0:Al.value)==="onPamButtonContents"))==null?void 0:Oa.content;ta=(F=ta==null?void 0:ta.split(":"))==null?void 0:F[1],ta=(la=ta.slice(1,(ta==null?void 0:ta.length)-1))==null?void 0:la.split(","),R=!!(ta!=null&&ta.find(Al=>Al==="操作"))}const b=d==null?void 0:d.find(ta=>(ta==null?void 0:ta.key)==="page"),re=d==null?void 0:d.find(ta=>(ta==null?void 0:ta.key)==="rowButton"),Q=d==null?void 0:d.find(ta=>(ta==null?void 0:ta.key)==="extraButton"),ie=d==null?void 0:d.filter(ta=>(ta==null?void 0:ta.key)==="tableContents"),ge=d==null?void 0:d.filter(ta=>(ta==null?void 0:ta.key)==="bottomButton"),Ne=d==null?void 0:d.filter(ta=>(ta==null?void 0:ta.key)==="tableIndex");ce.value=(Se=(We=d==null?void 0:d.filter(ta=>(ta==null?void 0:ta.key)==="tableToForm"))==null?void 0:We[0])==null?void 0:Se.contents,ya.value=(b==null?void 0:b.contents)??!0;let Pe=[];on.value===""?Pe=T==null?void 0:T[0]:Pe=(T==null?void 0:T.find(ta=>(ta==null?void 0:ta.selectLabel)==="("+on.value+")"))??(T==null?void 0:T.find(ta=>!(ta!=null&&ta.selectLabel)));let De=[];on.value===""?De=Ne==null?void 0:Ne[0]:De=(Ne==null?void 0:Ne.find(ta=>(ta==null?void 0:ta.selectLabel)==="("+on.value+")"))??(Ne==null?void 0:Ne.find(ta=>!(ta!=null&&ta.selectLabel)));let aa=[],xa=[];if(((B=Pe==null?void 0:Pe.contents)==null?void 0:B.length)>0){let ta=[],Al=Pe==null?void 0:Pe.contents;if(Array.isArray(Al==null?void 0:Al[0])&&((Me=Al==null?void 0:Al[0])!=null&&Me.every(Ga=>!(Ga!=null&&Ga.children)))&&(Al=Al==null?void 0:Al[0]),Al.some(Ga=>Array.isArray(Ga)&&(Ga==null?void 0:Ga.find(He=>He.children))))ta=(je=sa.getGradeColumns(Al,R))==null?void 0:je[0],ta!=null&&ta.find(Ga=>(Ga==null?void 0:Ga.label)==="操作")||ta.push({label:"操作",prop:"operate",type:"operate"});else{let Ga=Al.some(He=>Array.isArray(He))?Al==null?void 0:Al[0]:Al;Ga!=null&&Ga.find(He=>(He==null?void 0:He.label)==="操作")||Ga.push({label:"操作",prop:"operate",type:"operate"}),Ga==null||Ga.forEach((He,Gl)=>{var Br,Cr,Nr,gr,Xn,ft,ht,cr,mn,$n,vt,Yr,Pn,Li,Vi,Ri,$i,Pi,Fi,ji;if((Cr=(Br=ka.value)==null?void 0:Br.split("/"))==null||Cr.forEach(Zl=>{var or,kn,Hi;Zl!==""&&((Hi=(kn=(or=Zl==null?void 0:Zl.split(x+"updateLoading"))==null?void 0:or[0])==null?void 0:kn.split(x+"loading"))==null||Hi[0])}),He!=null&&He.methodContent){let Zl=(Xn=(gr=(Nr=He==null?void 0:He.methodContent)==null?void 0:Nr.replace("@","%%#"))==null?void 0:gr.split("%%#"))==null?void 0:Xn[1];if(Zl=Zl==null?void 0:Zl.slice(0,(Zl==null?void 0:Zl.length)-1),Zl=sa.contentTransArrayToAllNoExtra(Zl??"",","),(ft=Zl==null?void 0:Zl.find(or=>or==null?void 0:or.includes("@Button")))!=null&&ft.includes("Prop")&&((ht=Zl==null?void 0:Zl.find(or=>or==null?void 0:or.includes("Type")))!=null&&ht.includes("Manual"))){let or=(mn=(cr=Zl==null?void 0:Zl.find(kn=>kn==null?void 0:kn.includes("@Button")))==null?void 0:cr.split(":"))==null?void 0:mn[1];or=((Yr=(vt=($n=or==null?void 0:or.replaceAll("[",""))==null?void 0:$n.replaceAll("]",""))==null?void 0:vt.split(","))==null?void 0:Yr[1])??"算法执行",aa.push(or)}else if((Pn=Zl==null?void 0:Zl.find(or=>or==null?void 0:or.includes("@Button")))!=null&&Pn.includes("Row")&&((Li=Zl==null?void 0:Zl.find(or=>or==null?void 0:or.includes("Type")))!=null&&Li.includes("Manual"))){let or=(Ri=(Vi=Zl==null?void 0:Zl.find(kn=>kn==null?void 0:kn.includes("@Button")))==null?void 0:Vi.split(":"))==null?void 0:Ri[1];or=((Fi=(Pi=($i=or==null?void 0:or.replaceAll("[",""))==null?void 0:$i.replaceAll("]",""))==null?void 0:Pi.split(","))==null?void 0:Fi[1])??"算法执行",xa.push(or)}}(ji=ce.value)==null||ji.find(Zl=>(Zl==null?void 0:Zl.prop)===(He==null?void 0:He.prop)),ta.push({label:(He==null?void 0:He.label)==="操作"?R?"操作":"":(He==null?void 0:He.label)??"",prop:(He==null?void 0:He.label)==="操作"?"operate":(He==null?void 0:He.prop)??"a"+Gl,width:He!=null&&He.width?parseInt(He.width):"",fixed:(He==null?void 0:He.fixed)??void 0,sortable:(He==null?void 0:He.sortable)??!1,filterable:(He==null?void 0:He.filterable)??!1,operable:(He==null?void 0:He.operable)??!1,showSummary:(He==null?void 0:He.showSummary)??!1,align:(He==null?void 0:He.align)??"left",showOverflowTooltip:(He==null?void 0:He.showOverflowTooltip)??!0,isNotDrag:(He==null?void 0:He.isNotDrag)??!1,isEditCol:(He==null?void 0:He.isEditCol)??!1,isOperate:(He==null?void 0:He.isOperate)??!1,id:(He==null?void 0:He.id)??Gl,type:(He==null?void 0:He.label)==="操作"?"operate":void 0,formType:(He==null?void 0:He.formType)??(He!=null&&He.groupSelect?"Select":""),disabled:He==null?void 0:He.disabled,options:(He==null?void 0:He.options)??[],value:(He==null?void 0:He.value)??"",isExistChild:(He==null?void 0:He.isExistChild)??!1,mainKey:(He==null?void 0:He.mainKey)??Gl===0,allSelectionContents:(He==null?void 0:He.allContents)??[],filterContent:He==null?void 0:He.filterContents,menus:He==null?void 0:He.menus,groups:He==null?void 0:He.groups,words:He==null?void 0:He.words,filter:He==null?void 0:He.filter,bindMenus:He==null?void 0:He.bindMenus,fatherPath:He==null?void 0:He.fatherPath,isMainPath:He==null?void 0:He.isMainPath,required:(He==null?void 0:He.required)??!1,relatedContents:He==null?void 0:He.relatedContents,functionName:He==null?void 0:He.functionName,functionRelatedWords:He==null?void 0:He.functionRelatedWords,calculatorFilter:He==null?void 0:He.calculatorFilter})})}C.value=(Xe=ge==null?void 0:ge[0])==null?void 0:Xe.contents;const en=sa.getNewColumnChild(ta),zi=Ga=>Array.isArray(Ga)?Ga.map(He=>(Array.isArray(He==null?void 0:He.children)&&He.children.length>0?(He.sortable=!1,zi(He.children)):(He==null?void 0:He.prop)==="operate"||(He==null?void 0:He.label)==="操作"||(He==null?void 0:He.type)==="operate"||(He.sortable=!1),He)):Ga;zi(en),await ot(en),yf(te.value,en),xe.value=en,ba.value=en,r.value=(va=xe.value)==null?void 0:va.map(Ga=>Ga==null?void 0:Ga.label);let an=(Ia=(ua=sa.getAllLeafNodes(xe.value))==null?void 0:ua.filter(Ga=>(Ga==null?void 0:Ga.type)!=="operate"))==null?void 0:Ia.map((Ga,He)=>({prop:(Ga==null?void 0:Ga.prop)??"a"+He,column:Ga.label}));wr.value=an;let Wr=[];on.value===""?Wr=ie==null?void 0:ie[0]:Wr=(ie==null?void 0:ie.find(Ga=>(Ga==null?void 0:Ga.selectLabel)==="("+on.value+")"))??(ie==null?void 0:ie.find(Ga=>!(Ga!=null&&Ga.selectLabel)));let Gn=Array.isArray((cl=Wr==null?void 0:Wr.contents)==null?void 0:cl[0])&&((Xa=Wr==null?void 0:Wr.contents)!=null&&Xa[0].every(Ga=>Array.isArray(Ga)))?(fl=Wr==null?void 0:Wr.contents)==null?void 0:fl[0]:Wr==null?void 0:Wr.contents;De!=null&&De.contents&&((bl=De==null?void 0:De.contents)==null?void 0:bl.length)!==0&&(Gn=(Kl=z.cloneDeep(Gn))==null?void 0:Kl.map((Ga,He)=>{if(!Array.isArray(Ga)){let Gl={};for(let Br in Ga)Br!=="id"&&Br!=="index"&&(Gl[Br]=Ga[Br]);Ga=Object.values(Gl)}return Ga}));const su=!!((Ya=xe.value)!=null&&Ya.find(Ga=>Ga.prop==="index"));Gn=Ws(Gn,De==null?void 0:De.contents,su);const dt=[];Gn==null||Gn.forEach((Ga,He)=>{var Br;let Gl={};if(Array.isArray(Ga)){let Cr=[];Ga==null||Ga.filter(Nr=>!(Nr!=null&&Nr.id)).forEach((Nr,gr)=>{var Xn,ft,ht,cr,mn,$n;if((Xn=an==null?void 0:an[gr])!=null&&Xn.prop&&!Array.isArray(Nr)){let vt={};vt[an[gr].column]=Nr,Sa!=null&&Sa.value&&((ft=Sa==null?void 0:Sa.value)==null?void 0:ft.length)>0&&((ht=Sa==null?void 0:Sa.value)!=null&&ht.find(Yr=>JSON.stringify(Yr==null?void 0:Yr[0])===JSON.stringify(vt)))&&(Cr=(cr=Sa==null?void 0:Sa.value)==null?void 0:cr.find(Yr=>JSON.stringify(Yr==null?void 0:Yr[0])===JSON.stringify(vt))),Cr&&Cr.length>0?Gl[an[gr].prop]=Cr!=null&&Cr.find(Yr=>{var Pn;return((Pn=Object.keys(Yr))==null?void 0:Pn[0])===an[gr].column})?(mn=Cr==null?void 0:Cr.find(Yr=>{var Pn;return((Pn=Object.keys(Yr))==null?void 0:Pn[0])===an[gr].column}))==null?void 0:mn[an[gr].column]:Nr:Gl[an[gr].prop]=Nr}else Array.isArray(Nr)&&(($n=an[gr])!=null&&$n.prop?Gl[an[gr].prop]=Nr:Gl.children=ii(Nr,an))})}else Gl=Ga;if(Array.isArray(Ga)&&Ga.some(Cr=>Cr==null?void 0:Cr.id)){const Cr=(Br=Ga==null?void 0:Ga.find(Nr=>Nr.id))==null?void 0:Br.id;dt.push(Object.assign(Gl,{id:Gt(Cr)}))}else Gl.id?dt.push(Gl):dt.push(Object.assign(Gl,{id:He.toString()}))});try{const Ga=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),He=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null"),Gl=Ga==null?void 0:Ga.tableId,Br=Ga==null?void 0:Ga.compIndex;if(Gl&&Array.isArray(He)&&He.length>0&&String(Gl)===String(c==null?void 0:c.parentTableId)&&String(Br)===String(c==null?void 0:c.index)){const Cr=new Set(dt.map(gr=>String(gr==null?void 0:gr.id))),Nr=He.filter(gr=>!Cr.has(String(gr)));if(Nr.length>0){const gr=Ga==null?void 0:Ga.pageKey,Xn=gr!=null&&gr.startsWith("/")?gr.substring(1):gr;((f==null?void 0:f[gr])||(f==null?void 0:f[Xn])||[]).filter(cr=>{var mn,$n;return((mn=cr==null?void 0:cr.key)==null?void 0:mn.type)==="data"&&String(($n=cr==null?void 0:cr.key)==null?void 0:$n.tableId)===String(Gl)&&Nr.includes(cr==null?void 0:cr.id)}).forEach(cr=>{var mn;Cr.has(String(cr==null?void 0:cr.id))||(dt.push({id:cr==null?void 0:cr.id,...((mn=cr==null?void 0:cr.value)==null?void 0:mn.tableData)||{}}),Cr.add(String(cr==null?void 0:cr.id)))})}}}catch{}let pt=null;try{const Ga=`ocr_committed_temp_ids_v1:${String((c==null?void 0:c.parentTableId)??"")}:${String((c==null?void 0:c.index)??"")}`,He=JSON.parse(sessionStorage.getItem(Ga)||"null");Array.isArray(He)&&He.length>0&&(pt=new Set(He.map(Gl=>String(Gl))))}catch{}const Oi=Array.from(((_l=pe.value)==null?void 0:_l.values())||[]).filter(Ga=>!(!(Ga!=null&&Ga._isOCRRow&&(Ga==null?void 0:Ga._ocrTableId)===(c==null?void 0:c.index))||pt&&pt.has(String(Ga==null?void 0:Ga.id)))),cu=(ee.value||[]).map(Ga=>String(Ga==null?void 0:Ga.id)),Ii=Xt(dt,cu);if(ee.value=Di(Ii,I,xe.value),ke.value=Ii,(Wa=ke.value)==null||Wa.forEach(Ga=>{var He;(He=pe.value)==null||He.set(Ga.id,Ga)}),pt&&pt.size>0)try{const Ga=new Set(Array.from(pt.values()));ee.value=(ee.value||[]).filter(He=>!Ga.has(String(He==null?void 0:He.id))),ke.value=(ke.value||[]).filter(He=>!Ga.has(String(He==null?void 0:He.id))),Ga.forEach(He=>{var Gl,Br;try{(Br=(Gl=pe.value)==null?void 0:Gl.delete)==null||Br.call(Gl,He)}catch{}})}catch{}const no=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),Go=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null");if(no&&Array.isArray(Go)&&Go.length>0&&String(no==null?void 0:no.compIndex)===String(c==null?void 0:c.index)){const Ga=new Set((ke.value||[]).map(He=>String(He==null?void 0:He.id)));Go.filter(He=>!Ga.has(String(He)))}if(Oi.length>0){const Ga=new Set((ee.value||[]).map(Gl=>Gl==null?void 0:Gl.id)),He=Oi.filter(Gl=>!Ga.has(Gl.id));He.length>0&&(ee.value=[...ee.value||[],...He],ke.value=[...ke.value||[],...He],He.forEach(Gl=>{var Br;return(Br=pe.value)==null?void 0:Br.set(Gl.id,Gl)}))}}else xe.value=[],ue.value=[],ee.value=[],ke.value=[],pe.value=new Map;if(xa=[...new Set(xa)],xa=xa==null?void 0:xa.map(ta=>({label:ta,type:"methodButton"})),((ol=re==null?void 0:re.contents)==null?void 0:ol.length)>0?ga.value=re==null?void 0:re.contents:ga.value=[],ga.value=[...ga.value,...xa],aa=[...new Set(aa)],aa=aa==null?void 0:aa.map(ta=>({label:ta,type:"methodButton"})),((il=Q==null?void 0:Q.contents)==null?void 0:il.length)>0)if((hl=(Ll=(vl=d==null?void 0:d.find(ta=>(ta==null?void 0:ta.key)==="filterAllType"))==null?void 0:vl.value)==null?void 0:Ll.find(ta=>(ta==null?void 0:ta.value)==="onButtonContents"))!=null&&hl.content){let ta=(kl=(Dl=(wl=d==null?void 0:d.find(Al=>(Al==null?void 0:Al.key)==="filterAllType"))==null?void 0:wl.value)==null?void 0:Dl.find(Al=>(Al==null?void 0:Al.value)==="onButtonContents"))==null?void 0:kl.content;if(ta=(Wl=ta==null?void 0:ta.split(":"))==null?void 0:Wl[1],ta=(pr=ta.slice(1,(ta==null?void 0:ta.length)-1))==null?void 0:pr.split(","),Ye.value=(fr=Q==null?void 0:Q.contents)==null?void 0:fr.filter(Al=>ta==null?void 0:ta.find(en=>en===(Al==null?void 0:Al.label))),Ke.value=(Jl=Q==null?void 0:Q.contents)==null?void 0:Jl.filter(Al=>ta==null?void 0:ta.find(en=>en===(Al==null?void 0:Al.label))),(nr=Q==null?void 0:Q.contents)!=null&&nr.some(Al=>(Al==null?void 0:Al.label)==="OCR识别")&&!((Lr=Ye.value)!=null&&Lr.some(Al=>(Al==null?void 0:Al.label)==="OCR识别"))){const Al=(ir=Q==null?void 0:Q.contents)==null?void 0:ir.find(en=>(en==null?void 0:en.label)==="OCR识别");Ye.value=[...Ye.value,Al],Ke.value=[...Ke.value,Al]}_.value=!!(ta!=null&&ta.find(Al=>Al==="搜索")),H.value=!!(ta!=null&&ta.find(Al=>Al==="块状显示"))}else Ye.value=Q==null?void 0:Q.contents,Ke.value=Q==null?void 0:Q.contents;else Ye.value=[],Ke.value=[];Ye.value=[...Ye.value,...aa],Ke.value=[...Ke.value,...aa],typeof ka.value=="string"&&ka.value==="设备管理/试验设备"&&(c==null?void 0:c.compName)==="设备列表"?((yr=Ye.value)!=null&&yr.some(ta=>(ta==null?void 0:ta.label)==="OCR识别")||(Ye.value=[...Ye.value||[],{label:"OCR识别"}]),(tr=Ke.value)!=null&&tr.some(ta=>(ta==null?void 0:ta.label)==="OCR识别")||(Ke.value=[...Ke.value||[],{label:"OCR识别"}])):(Ye.value=(Ye.value||[]).filter(ta=>(ta==null?void 0:ta.label)!=="OCR识别"),Ke.value=(Ke.value||[]).filter(ta=>(ta==null?void 0:ta.label)!=="OCR识别")),(Kr=Ye.value)!=null&&Kr.some(ta=>(ta==null?void 0:ta.label)==="切换视图")||(Ye.value=[...Ye.value||[],{label:"切换视图"}]),(Rn=Ke.value)!=null&&Rn.some(ta=>(ta==null?void 0:ta.label)==="切换视图")||(Ke.value=[...Ke.value||[],{label:"切换视图"}]),ca.value=((Ti=ee==null?void 0:ee.value)==null?void 0:Ti.length)??0,Ei(ee.value),dn.value=ee.value,er.value&&(xe.value=(Mi=(Ai=ue.value)==null?void 0:Ai.filter(ta=>(ta==null?void 0:ta.label)!=="操作"))==null?void 0:Mi.map(ta=>{var Al;return{...ta,type:"edit",optionUrl:ta!=null&&ta.formMenuSelect&&((Al=ta==null?void 0:ta.formMenuSelect)==null?void 0:Al.length)>0?{groupSelect:ta==null?void 0:ta.groupSelect,menuSelect:ta==null?void 0:ta.formMenuSelect,selectRelateType:"",type:ta==null?void 0:ta.formType}:null}}),Jo())};a.watch(()=>[c.itemData,on.value,nt.value,An.value,Sa==null?void 0:Sa.value],async()=>{var d,f,T,I,R,b;if((d=c==null?void 0:c.itemData)!=null&&d.find(re=>(re==null?void 0:re.key)==="columnPath")&&!((f=P.value)!=null&&f.find(re=>{var Q,ie;return(re==null?void 0:re.key)===((ie=(Q=c==null?void 0:c.itemData)==null?void 0:Q.find(ge=>(ge==null?void 0:ge.key)==="columnPath"))==null?void 0:ie.contents)}))){let re=P.value,Q={key:(I=(T=c==null?void 0:c.itemData)==null?void 0:T.find(ie=>(ie==null?void 0:ie.key)==="columnPath"))==null?void 0:I.contents,value:(b=(R=c==null?void 0:c.itemData)==null?void 0:R.find(ie=>(ie==null?void 0:ie.key)==="columnUsingPath"))==null?void 0:b.contents};re!=null&&re.find(ie=>(ie==null?void 0:ie.key)===(Q==null?void 0:Q.key))?re=re==null?void 0:re.map(ie=>((ie==null?void 0:ie.key)===(Q==null?void 0:Q.key)&&(ie.value=Q.value),ie)):re.push(Q),qe.setTableViewContents(re)}await Bi(c.itemData,c.allMapContents)},{deep:!0,immediate:!0}),a.watch(()=>c==null?void 0:c.operatingForm,d=>{d!=null&&d.form&&(zt(d==null?void 0:d.form),Oe.value=d==null?void 0:d.dialogTitle,ye.value=!0,da.value=!0)},{immediate:!0,deep:!0});const Gc=()=>{var d;(d=L.value)!=null&&d.includes("read")&&(er.value=!er.value)},Xc=()=>{$l.value=!$l.value};a.watch(()=>{var d;return(d=c==null?void 0:c.config)==null?void 0:d.viewport},d=>{var f;L.value=d,(d==null?void 0:d.length)===0?er.value=!1:(d!=null&&d.includes("read")||(er.value=!0),d!=null&&d.includes("edit")||(er.value=!1)),A.value=((f=c==null?void 0:c.config)==null?void 0:f.showIndex)||er.value},{immediate:!0}),a.watch(()=>er.value,d=>{var f;d?(Jo("viewChange"),qe.setCacheUpdatingData(null)):(Ye.value=Ke.value,xe.value=ba.value,el.value&&(qe.setTableLoading(c==null?void 0:c.index),Be("change",el.value))),A.value=d||((f=c==null?void 0:c.config)==null?void 0:f.showIndex),Pl.value=[]},{immediate:!0}),a.watch(()=>{var d;return(d=Mr.value)==null?void 0:d.length},d=>{d===0&&(he.currentPage=1)}),a.watch(()=>c==null?void 0:c.compNames,d=>{xr.contents=[{label:"列表名",prop:"groupName",name:"列表名",type:"select",value:"",id:0,contents:d||[],width:1}]},{immediate:!0}),a.ref(!1);const Zc=(d,f)=>{var T;Jo("createClick"),f===he.pageSize&&(he.currentPage=Math.ceil(((T=ee.value)==null?void 0:T.length)/he.pageSize))},Qc=(d,f,T)=>{var R,b;const I=(f==null?void 0:f.property)??(f==null?void 0:f.prop);if(er.value){const re=d==null?void 0:d.id;re!=null&&(k.value.has(re)||k.value.set(re,z.cloneDeep(d)),u.value.add(re));const Q=(R=ee.value)==null?void 0:R.findIndex(ie=>(ie==null?void 0:ie.id)===(d==null?void 0:d.id));Q!==-1&&I&&(ee.value[Q]={...ee.value[Q],[I]:T}),ro(T,d,f);return}ro(T,d,f),sr.value=z.cloneDeep(d),$e.value=d==null?void 0:d.id,ca.value=(b=ee.value)==null?void 0:b.length,Oe.value=d!=null&&d._isTemp?"新增":"编辑",Ot(!1)},eu=async()=>{var d,f;try{const T=[];if(c!=null&&c.related&&Array.isArray(c.related)&&(console.log("props.related",c.related),c.related.forEach(I=>{if(typeof I=="string"&&I.includes("content_")){const R=I.split("_")[1];R&&(T.push(`content_${R}`),T.push(`struct_${R}`))}})),T.length===0&&(c!=null&&c.itemData)){const I=(f=(d=c.itemData)==null?void 0:d.find(R=>(R==null?void 0:R.key)==="contentTableId"))==null?void 0:f.contents;I&&(T.push(`content_${I}`),T.push(`struct_${I}`))}return T}catch(T){return console.error("获取 tableNames 失败:",T),[]}},au=async(d,f,T)=>{var b,re;if(!T||typeof T!="string"||T.trim()===""){const Q=(f==null?void 0:f.property)??(f==null?void 0:f.prop),ie=`${d==null?void 0:d.id}:${Q}`;h.value.delete(ie),y.value.set(ie,!1);return}const I=(f==null?void 0:f.property)??(f==null?void 0:f.prop),R=`${d==null?void 0:d.id}:${I}`;y.value.set(R,!0);try{const Q=await eu();if(Q.length===0){console.warn("未找到同名表,跳过全局搜索"),h.value.delete(R),y.value.set(R,!1);return}const ie=parseInt((b=Bl.value)==null?void 0:b.plat_id);if(!ie){console.warn("platId 无效,跳过全局搜索"),h.value.delete(R),y.value.set(R,!1);return}const ge=await z.getAllTables({platId:ie,tableNames:Q}),Ne=((re=ge==null?void 0:ge.data)==null?void 0:re.result)||[],Pe=[],De=[];for(let aa=0;aa<Ne.length;aa+=2)aa+1<Ne.length&&De.push([Ne[aa],Ne[aa+1]]);De.forEach(([aa,xa])=>{var Ra;if(!Array.isArray(aa)||aa.length===0||!Array.isArray(xa)||xa.length===0)return;const Ka=xa[0];let qa=((Ra=Ka==null?void 0:Ka.结构)==null?void 0:Ra.contents)??[];if(!Array.isArray(qa)||qa.length===0)return;let ia=z.cloneDeep(qa);if(Array.isArray(ia==null?void 0:ia[0])&&(ia=sa.getColumnChild(ia[0])),!Array.isArray(ia)||ia.length===0||!ia.some(Oa=>(Oa==null?void 0:Oa.prop)===I))return;[...aa].sort((Oa,F)=>{const la=Number((Oa==null?void 0:Oa.update_time)??0);return Number((F==null?void 0:F.update_time)??0)-la}).slice(0,20).forEach(Oa=>{const F=Oa[I];if(F!=null){const la=String(F);la.toLowerCase().includes(T.toLowerCase())&&Pe.findIndex(Se=>{var B;return Oa.id&&((B=Se.rowData)==null?void 0:B.id)===Oa.id?!0:Se.label===la})===-1&&Pe.push({label:la,rowData:z.cloneDeep(Oa),sourceTable:(Ka==null?void 0:Ka.source_table)||""})}})}),h.value.set(R,Pe)}catch(Q){console.error("全局搜索建议失败:",Q),h.value.delete(R)}finally{y.value.set(R,!1)}},lu=(d,f,T)=>{if(!er.value)return;const I=(f==null?void 0:f.property)??(f==null?void 0:f.prop),R=(f==null?void 0:f.formType)||(f==null?void 0:f.columnType)||"";if(R&&R.toUpperCase()!=="INPUT"&&R!=="")return;const b=`${d==null?void 0:d.id}:${I}`;if(v.has(b)&&clearTimeout(v.get(b)),!T||T.trim()===""){h.value.delete(b),y.value.set(b,!1);return}const re=setTimeout(()=>{au(d,{prop:I,property:I},T),v.delete(b)},300);v.set(b,re)};function ru(d,f){const T=`${d==null?void 0:d.id}:${(f==null?void 0:f.property)??(f==null?void 0:f.prop)}`;return h.value.get(T)||[]}const nu=(d,f,T)=>{var Ne;if(!T||!T.rowData)return;const I=T.rowData,R=d==null?void 0:d.id,b=(f==null?void 0:f.property)??(f==null?void 0:f.prop),Q=(sa.getAllLeafNodes(xe.value)||[]).filter(Pe=>(Pe==null?void 0:Pe.type)!=="operate"&&(Pe==null?void 0:Pe.label)!=="操作"&&(Pe==null?void 0:Pe.prop)!=="operate");Q.forEach(Pe=>{const De=Pe==null?void 0:Pe.prop;De&&I[De]!==void 0&&(d[De]=I[De])});const ie=(Ne=ee.value)==null?void 0:Ne.findIndex(Pe=>(Pe==null?void 0:Pe.id)===R);ie!==-1&&Q.forEach(Pe=>{const De=Pe==null?void 0:Pe.prop;De&&I[De]!==void 0&&(ee.value[ie][De]=I[De])}),R!=null&&(k.value.has(R)||k.value.set(R,z.cloneDeep(d)),u.value.add(R));const ge=`${R}:${b}`;h.value.delete(ge),y.value.set(ge,!1),ro(d[b],d,f)},Ir=d=>{var ie,ge,Ne,Pe,De,aa,xa,Ka,qa,ia;const{row:f,column:T,item:I,slotData:R}=d;let b=f!=null&&f[T==null?void 0:T.prop]||(f==null?void 0:f[T==null?void 0:T.prop])===0?((ge=(ie=f==null?void 0:f[T==null?void 0:T.prop])==null?void 0:ie[0])==null?void 0:ge.contents)??((f==null?void 0:f[T==null?void 0:T.prop])===0?"0":f==null?void 0:f[T==null?void 0:T.prop]):((Pe=(Ne=f==null?void 0:f[I==null?void 0:I.prop])==null?void 0:Ne[0])==null?void 0:Pe.contents)??(f==null?void 0:f[I==null?void 0:I.prop])??((aa=(De=R==null?void 0:R[I==null?void 0:I.prop])==null?void 0:De[0])==null?void 0:aa.contents)??(R==null?void 0:R[I==null?void 0:I.prop])??((qa=(Ka=f==null?void 0:f[(xa=I==null?void 0:I.child)==null?void 0:xa.prop])==null?void 0:Ka[0])==null?void 0:qa.contents)??(f==null?void 0:f[(ia=I==null?void 0:I.child)==null?void 0:ia.prop]),Q=Array.isArray(b)&&!(b!=null&&b.every(Pa=>typeof Pa=="string"||typeof Pa=="number"))?"查看":b;if(Q=Array.isArray(Q)?Q.join(","):Q,(T==null?void 0:T.formType)==="Date")if(!Q||Q===""||Q===null||Q===void 0)Q="";else{const Pa=z.dayjs(Q,["YYYY-MM-DD","YYYY/MM/DD","YYYY年MM月DD日","YYYYMMDD"],!0);Q=Pa.isValid()?Pa.format("YYYYMMDD"):Q??""}return Q},tu=d=>{var ge,Ne,Pe,De,aa,xa,Ka,qa,ia,Pa;const{row:f,column:T,item:I,slotData:R}=d;let b=f!=null&&f[T==null?void 0:T.prop]?((Ne=(ge=f==null?void 0:f[T==null?void 0:T.prop])==null?void 0:ge[0])==null?void 0:Ne.contents)??(f==null?void 0:f[T==null?void 0:T.prop]):((De=(Pe=f==null?void 0:f[I==null?void 0:I.prop])==null?void 0:Pe[0])==null?void 0:De.contents)??(f==null?void 0:f[I==null?void 0:I.prop])??((xa=(aa=R==null?void 0:R[I==null?void 0:I.prop])==null?void 0:aa[0])==null?void 0:xa.contents)??(R==null?void 0:R[I==null?void 0:I.prop])??((ia=(qa=f==null?void 0:f[(Ka=I==null?void 0:I.child)==null?void 0:Ka.prop])==null?void 0:qa[0])==null?void 0:ia.contents)??(f==null?void 0:f[(Pa=I==null?void 0:I.child)==null?void 0:Pa.prop]);const Q=Array.isArray(b)&&!(b!=null&&b.every(Ze=>typeof Ze=="string"||typeof Ze=="number")),ie=Array.isArray(b)&&(b==null?void 0:b.find(Ze=>Ze==null?void 0:Ze.url));return Q&&ie},ou=d=>{var R,b;if(!(d!=null&&d.column))return!1;const f=ka.value==="试验任务/任务管理",T=(c==null?void 0:c.compName)==="任务列表",I=((R=d==null?void 0:d.column)==null?void 0:R.label)==="任务状态"||((b=d==null?void 0:d.column)==null?void 0:b.prop)==="任务状态";return f&&T&&I},iu=(d,f)=>d.find(T=>Object.values(T).some(I=>I===f));return a.watch(()=>we.value,async d=>{if(d){Qe.setContentLoading(!0),await a.nextTick();const f=iu(ee.value,d==null?void 0:d.data);if(!f)return Qe.setContentLoading(!1);await Qt(d==null?void 0:d.data,null,f,{data:d==null?void 0:d.data}),Qe.setContentLoading(!1)}},{deep:!0,immediate:!0}),a.watch(()=>c==null?void 0:c.cacheNewData,d=>{var f;d&&(Array.isArray(d)?d.forEach(T=>{var I,R,b,re,Q;if(换,String(T==null?void 0:T.compId)===String(c==null?void 0:c.index)&&(T!=null&&T.resId)&&((I=T==null?void 0:T.data)!=null&&I.id)){const ie=(R=T==null?void 0:T.data)==null?void 0:R.id,ge=T==null?void 0:T.resId;if(ee.value=(b=ee.value)==null?void 0:b.map(Ne=>{if((Ne==null?void 0:Ne.id)===ie){const Pe={...Ne,id:ge};return delete Pe._isOCRRow,delete Pe._ocrTableId,Pe}return Ne}),(Q=(re=pe.value)==null?void 0:re.has)!=null&&Q.call(re,ie)){const Pe={...pe.value.get(ie)||{},id:ge};delete Pe._isOCRRow,delete Pe._ocrTableId,pe.value.delete(ie),pe.value.set(ge,Pe)}Ha(c==null?void 0:c.index,ie,ge)}}):String(d==null?void 0:d.compId)===String(c==null?void 0:c.index)&&(ee.value=(f=ee.value)==null?void 0:f.map(T=>{var I;if((T==null?void 0:T.id)===((I=d==null?void 0:d.data)==null?void 0:I.id)){const R={...T,id:d==null?void 0:d.resId};return delete R._isOCRRow,delete R._ocrTableId,R}return T})))},{immediate:!0,deep:!0}),(d,f)=>{var Pa,Ze,Ra,Oa;const T=a.resolveComponent("svg-icon"),I=a.resolveComponent("el-popover"),R=a.resolveComponent("el-switch"),b=a.resolveComponent("el-checkbox"),re=a.resolveComponent("el-radio"),Q=a.resolveComponent("el-radio-group"),ie=a.resolveComponent("el-checkbox-group"),ge=a.resolveComponent("el-button"),Ne=a.resolveComponent("LookComponent"),Pe=a.resolveComponent("el-icon"),De=a.resolveComponent("el-progress"),aa=a.resolveComponent("el-alert"),xa=a.resolveComponent("el-table-column"),Ka=a.resolveComponent("el-table"),qa=a.resolveComponent("el-upload"),ia=a.resolveComponent("el-text");return a.openBlock(),a.createElementBlock("div",a0,[rr.value?(a.openBlock(),a.createBlock(ul.ssTable,{id:"excel-table",pageObj:he,showIndex:A.value,isTree:(Pa=l.compItem)==null?void 0:Pa.isTree,summaryInfo:G,columns:xe.value,defaultSort:Z,isCardViewport:$l.value,checkedColumns:r.value,key:pn.value+xe.value,tableData:Mr.value,isEditViewport:er.value,isShowPagination:ya.value,isShowEdit:!1,isShowDelete:!1,allowSelect:E.value,onDbClickRow:Fo,extraButton:Ye.value,rowButton:ga.value,cacheExtraButtons:Ke.value,isClearSelection:((Ze=Pl.value)==null?void 0:Ze.length)===0,onDoCurrentChange:Kn,onDoSizeChange:fn,onSortChange:Dt,onContentClick:Qt,onRowClick:Jn,onSelectChange:Oo,onCellChange:Qc,onCellInput:lu,onSelectSuggest:nu,onChange:ro,onPreview:Tt,onSubmitEditingTable:Kt,onHandleColEditChange:Mo,onHandleColTypeChange:Ht,onClickButton:Qr,onAddNewRow:Ut,bottomButton:C.value},a.createSlots({headerButton:a.withCtx(F=>{var la,We;return[l.showHeader?(a.openBlock(),a.createBlock(Ap,{key:0,id:"tableHeaderButton",pageLayout:l.pageLayout,lockingPage:a.unref(V)===a.unref(ka),filterValues:Po.value,selectNums:(la=Pl.value)==null?void 0:la.length,dataNums:(We=ee.value)==null?void 0:We.length,compName:l.compName,isDevMode:l.isDevMode,buttons:F.buttons,onButtonClick:f[1]||(f[1]=(Se,B,Me)=>Qr(Se,B,{extra:Me})),columns:xe.value,onFilter:Mt,onGetImportData:gn,level:l.level,filterShow:_.value},null,8,["pageLayout","lockingPage","filterValues","selectNums","dataNums","compName","isDevMode","buttons","columns","level","filterShow"])):a.createCommentVNode("",!0)]}),viewport:a.withCtx(()=>{var F,la,We,Se;return[((F=ee.value)==null?void 0:F.length)>0&&l.allowOperate&&H.value?(a.openBlock(),a.createElementBlock("div",n0,[(la=L.value)!=null&&la.includes("read")&&((We=L.value)!=null&&We.includes("edit"))&&((Se=ga.value)!=null&&Se.some(B=>(B==null?void 0:B.label)==="编辑"))&&!$l.value&&a.unref(V)!==a.unref(ka)?(a.openBlock(),a.createElementBlock("span",{key:0,title:"编辑表格",onClick:Gc},[a.createVNode(T,{name:"editTable",class:"view-icon"})])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)]}),rowCreate:a.withCtx(({row:F,index:la})=>[a.createElementVNode("span",{title:"新增",class:"row-create-wrap",onClick:We=>Zc(F,la)},[a.createVNode(T,{name:"rowCreate",style:{width:"10px",height:"10px"}})],8,t0)]),operateCol:a.withCtx(()=>[a.createVNode(I,{title:"选择显示列信息",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:qc},{reference:a.withCtx(()=>[a.createElementVNode("span",o0,[a.createVNode(T,{name:"operate",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),default:a.withCtx(()=>[a.createElementVNode("div",i0,[f[21]||(f[21]=a.createElementVNode("div",{class:"group-title"},"表格操作",-1)),a.createVNode(R,{"model-value":g.value,"active-text":"排序","inactive-text":"",style:{"margin-right":"8px"},onChange:f[2]||(f[2]=F=>Vo(F))},null,8,["model-value"]),f[22]||(f[22]=a.createElementVNode("div",{class:"group-title"},"表格列操作",-1)),a.createVNode(ie,{modelValue:r.value,"onUpdate:modelValue":f[3]||(f[3]=F=>r.value=F),style:{height:"100%"},min:2,ref_key:"checkboxGroupRef",ref:s},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(In.value,F=>(a.openBlock(),a.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:F.label},[a.createVNode(b,{value:F.label,style:{width:"100%",marginRight:0}},{default:a.withCtx(()=>[a.createElementVNode("span",{title:F.label,style:{display:"inline-block",width:"250px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},a.toDisplayString(F.label),9,s0)]),_:2},1032,["value"]),a.createVNode(I,{"popper-class":"col-operate-popover",title:"列操作",placement:"left",teleported:!1,trigger:"hover"},{reference:a.withCtx(()=>[a.createVNode(T,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:a.withCtx(()=>{var la;return[a.createElementVNode("div",c0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((la=Object.keys(F))==null?void 0:la.filter(We=>{var Se;return(Se=ae.value)==null?void 0:Se.find(B=>(B==null?void 0:B.value)===We)}),We=>{var Se,B;return a.openBlock(),a.createElementBlock("div",{key:We},[M[We]=="radio"?(a.openBlock(),a.createElementBlock("div",u0,[f[20]||(f[20]=a.createElementVNode("div",null,"固定:",-1)),a.createVNode(Q,{"model-value":F==null?void 0:F[We],onChange:Me=>Wn(Me,We,F)},{default:a.withCtx(()=>{var Me,je;return[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((je=(Me=ae.value)==null?void 0:Me.find(Xe=>(Xe==null?void 0:Xe.value)===We))==null?void 0:je.options,Xe=>(a.openBlock(),a.createBlock(re,{key:Xe==null?void 0:Xe.value,label:Xe==null?void 0:Xe.value,value:Xe==null?void 0:Xe.value},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(Xe==null?void 0:Xe.label),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["model-value","onChange"])])):a.createCommentVNode("",!0),M[We]=="switch"?(a.openBlock(),a.createBlock(R,{key:1,"model-value":F==null?void 0:F[We],"active-text":(B=(Se=ae.value)==null?void 0:Se.find(Me=>(Me==null?void 0:Me.value)===We))==null?void 0:B.label,onChange:Me=>Wn(Me,We,F)},null,8,["model-value","active-text","onChange"])):a.createCommentVNode("",!0)])}),128))])]}),_:2},1024),a.createElementVNode("span",d0,[a.createVNode(T,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:1},8,["modelValue"])])]),_:1})]),content:a.withCtx(F=>{var la,We,Se,B,Me,je,Xe,va,ua,Ia,cl,Xa,fl,bl,Kl,Ya,_l,Wa,ol,il;return[((la=F==null?void 0:F.column)==null?void 0:la.label)==="证书附件"||((We=F==null?void 0:F.column)==null?void 0:We.prop)==="证书附件"?(a.openBlock(),a.createElementBlock("div",p0,[a.createVNode(T,{name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:a.withModifiers(vl=>Or(F),["stop"]),title:"查看OCR图片"},null,8,["onClick"])])):tu(F)?(a.openBlock(),a.createBlock(I,{key:1,"popper-class":"file-popover",placement:"right",trigger:"hover",effect:"light",width:"auto"},{reference:a.withCtx(()=>[a.createElementVNode("span",f0,a.toDisplayString(Ir(F)),1)]),default:a.withCtx(()=>{var vl,Ll;return[a.createElementVNode("div",h0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((Ll=F==null?void 0:F.row)==null?void 0:Ll[(vl=F==null?void 0:F.column)==null?void 0:vl.prop],hl=>(a.openBlock(),a.createElementBlock("div",v0,[a.createElementVNode("div",{class:"prop-url",title:vn(hl),onClick:wl=>Ro(hl)},a.toDisplayString(vn(hl)),9,m0),a.createElementVNode("div",{class:"prop-download",onClick:wl=>At(hl)}," 下载 ",8,y0)]))),256))])]}),_:2},1024)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[ou(F)?(a.openBlock(),a.createBlock(Ps,{key:0,value:Ir(F)},null,8,["value"])):(a.openBlock(),a.createElementBlock("div",{key:1,class:"table-cell-content",style:a.normalizeStyle({color:!Array.isArray(Ir(F))&&((B=(Se=Ir(F))==null?void 0:Se.toString())!=null&&B.includes(".txt")||(je=(Me=Ir(F))==null?void 0:Me.toString())!=null&&je.includes(".cpt")||(va=(Xe=Ir(F))==null?void 0:Xe.toString())!=null&&va.includes(".cyd"))?"var(--vertical-menuitem-active-bg)":"",textDecoration:!Array.isArray(Ir(F))&&((Ia=(ua=Ir(F))==null?void 0:ua.toString())!=null&&Ia.includes(".txt")||(Xa=(cl=Ir(F))==null?void 0:cl.toString())!=null&&Xa.includes(".cpt")||(bl=(fl=Ir(F))==null?void 0:fl.toString())!=null&&bl.includes(".cyd"))?"underline":"",cursor:!Array.isArray(Ir(F))&&((Ya=(Kl=Ir(F))==null?void 0:Kl.toString())!=null&&Ya.includes(".txt")||(Wa=(_l=Ir(F))==null?void 0:_l.toString())!=null&&Wa.includes(".cpt")||(il=(ol=Ir(F))==null?void 0:ol.toString())!=null&&il.includes(".cyd"))?"pointer":"",marginLeft:(F==null?void 0:F.colIndex)===0?`${((F==null?void 0:F.level)??0)*20}px`:0}),onClick:vl=>qr(Ir(F))},a.toDisplayString(Ir(F)===0?"0":Ir(F)),13,g0))],64))]}),_:2},[((Ra=ga.value)==null?void 0:Ra.length)>0?{name:"actions",fn:a.withCtx(({item:F,fIndex:la})=>[a.createVNode(I,{title:"",placement:"left-start","popper-class":"menu-operate-popover"},{reference:a.withCtx(()=>[a.createVNode(T,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"},onClick:f[0]||(f[0]=a.withModifiers(()=>{},["stop"]))})]),default:a.withCtx(()=>[a.createElementVNode("div",l0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList($o(ga.value,F),(We,Se)=>(a.openBlock(),a.createElementBlock("div",{class:"menu-config-item",key:Se,onClick:a.withModifiers(B=>Qr(We==null?void 0:We.label,F,{extra:We}),["stop"])},[a.createElementVNode("div",{style:a.normalizeStyle({color:We==null?void 0:We.textColor}),class:"extra-button-label"},a.toDisplayString(We==null?void 0:We.label),5)],8,r0))),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"])):a.createCommentVNode("",!0),er.value?(a.openBlock(),a.createElementBlock("div",b0,[a.createVNode(ge,{id:"themeBorderButton",onClick:zo},{default:a.withCtx(()=>f[23]||(f[23]=[a.createTextVNode("取消")])),_:1,__:[23]}),a.createVNode(ge,{class:"ok-button",id:"themeButton",onClick:Bt},{default:a.withCtx(()=>f[24]||(f[24]=[a.createTextVNode("保存")])),_:1,__:[24]})])):a.createCommentVNode("",!0),a.createVNode(dr.ssDialog,{title:Oe.value,visible:da.value,width:kr.value,onBeforeDestroy:Wt,style:{height:"74%"}},{default:a.withCtx(()=>[a.createElementVNode("div",k0,[a.createVNode(ul.ssForm,{ref_key:"formRef",ref:Le,rowContents:Ce.value,showOperator:!1,onChange:Kc,isEnableWrap:!1,onFixChangeValue:it,onClickTrigger:Yt,isEdit:Ve.value,onBlurChange:Io,onCreate:Lo,onTagChange:On},null,8,["rowContents","isEdit"])])]),footer:a.withCtx(()=>[ye.value?(a.openBlock(),a.createElementBlock("div",x0,[a.createVNode(ge,{onClick:f[4]||(f[4]=F=>da.value=!1),id:"themeBorderButton"},{default:a.withCtx(()=>f[25]||(f[25]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[25]}),a.createVNode(ge,{class:"ok-button",onClick:f[5]||(f[5]=F=>Ot(!0)),id:"themeButton"},{default:a.withCtx(()=>f[26]||(f[26]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[26]})])):a.createCommentVNode("",!0)]),_:1},8,["title","visible","width"]),a.createVNode(dr.ssDialog,{title:Oe.value,visible:Fe.value,width:ma.value,onBeforeDestroy:f[7]||(f[7]=F=>Fe.value=!1)},{default:a.withCtx(()=>[a.createVNode(qp)]),footer:a.withCtx(()=>[a.createElementVNode("div",_0,[a.createVNode(ge,{onClick:f[6]||(f[6]=F=>Fe.value=!1),class:"cancel-button",id:"themeBorderButton"},{default:a.withCtx(()=>f[27]||(f[27]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[27]}),a.createVNode(ge,{class:"ok-button",onClick:bn,id:"themeButton"},{default:a.withCtx(()=>f[28]||(f[28]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[28]})])]),_:1},8,["title","visible","width"]),$a.value?(a.openBlock(),a.createBlock(ul.ssFilePreview,{key:2,fileDataList:le.value,onDestroy:eo},null,8,["fileDataList"])):a.createCommentVNode("",!0),Ue.value?(a.openBlock(),a.createBlock(dr.ssDialog,{key:3,visible:Ue.value,onBeforeDestroy:Hc,style:{height:"80vh",width:"80vw"},"body-class":"three-dialog-body","footer-class":"three-dialog-footer"},{default:a.withCtx(()=>[a.createVNode(go.ThreeViewerHost,{files:Ea.value,threeData:oe.value},null,8,["files","threeData"])]),_:1},8,["visible"])):a.createCommentVNode("",!0),a.createVNode(dr.ssDialog,{visible:d.componentVisible,onBeforeDestroy:f[8]||(f[8]=F=>d.componentVisible=!1),width:ma.value,style:{height:"70vh"}},{default:a.withCtx(()=>[a.createVNode(Ne,{dialogItem:Pr.value},null,8,["dialogItem"])]),_:1},8,["visible","width"]),a.createVNode(dr.ssDialog,{title:"OCR扫描录入",visible:oa.value,"close-on-click-modal":!1,onBeforeDestroy:Qa,width:"1000px",dialogHeight:700,minWidth:900,minHeight:600,class:"ocr-upload-dialog",resizable:!0},{default:a.withCtx(()=>[f[39]||(f[39]=a.createElementVNode("div",{class:"ocr-header-bg"},null,-1)),a.createElementVNode("div",w0,[a.createElementVNode("div",C0,[a.createElementVNode("div",{class:a.normalizeClass(["ocr-step-item",{active:Ge.value===1}])},f[29]||(f[29]=[a.createElementVNode("div",{class:"step-circle"},"1",-1),a.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件识别",-1)]),2),f[32]||(f[32]=a.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),a.createElementVNode("div",{class:a.normalizeClass(["ocr-step-item",{active:Ge.value===2}])},f[30]||(f[30]=[a.createElementVNode("div",{class:"step-circle"},"2",-1),a.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件确认",-1)]),2),f[33]||(f[33]=a.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),a.createElementVNode("div",{class:a.normalizeClass(["ocr-step-item",{active:Ge.value===3}])},f[31]||(f[31]=[a.createElementVNode("div",{class:"step-circle"},"3",-1),a.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件提交",-1)]),2)]),Ge.value===1?(a.openBlock(),a.createElementBlock("div",E0,[a.createVNode(ge,{onClick:Ko,class:"ocr-action-btn",disabled:Ta.value,size:"default"},{default:a.withCtx(()=>f[34]||(f[34]=[a.createTextVNode("扫描文件 ")])),_:1,__:[34]},8,["disabled"]),a.createVNode(ge,{onClick:Yl,class:"ocr-action-btn",disabled:Ta.value,size:"default"},{default:a.withCtx(()=>f[35]||(f[35]=[a.createTextVNode("上传文件 ")])),_:1,__:[35]},8,["disabled"])])):a.createCommentVNode("",!0),Ge.value===1?(a.openBlock(),a.createElementBlock("div",S0,[a.createElementVNode("div",D0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Va.value,(F,la)=>{var We;return a.openBlock(),a.createElementBlock("div",{key:la,class:"ocr-file-item"},[a.createElementVNode("div",B0,[F.raw&&((We=F.raw.type)!=null&&We.startsWith("image/"))?(a.openBlock(),a.createElementBlock("img",{key:0,src:Ja(F),alt:"预览",class:"thumbnail-image"},null,8,N0)):(a.openBlock(),a.createElementBlock("div",T0,[a.createVNode(Pe,{size:40},{default:a.withCtx(()=>[a.createVNode(a.unref(Za.document_default))]),_:1})])),a.createElementVNode("div",{class:a.normalizeClass(["file-progress-ring",{uploading:ja(F)==="uploading",processing:ja(F)==="processing",completed:ja(F)==="completed"||ja(F)==="uploaded",failed:ja(F)==="failed"}])},[(a.openBlock(),a.createElementBlock("svg",A0,[f[36]||(f[36]=a.createElementVNode("circle",{class:"progress-ring-bg",cx:"18",cy:"18",r:"16",fill:"none",stroke:"#e4e7ed","stroke-width":"2"},null,-1)),a.createElementVNode("circle",{class:a.normalizeClass(["progress-ring-fill",{completed:ja(F)==="completed"||ja(F)==="uploaded",uploading:ja(F)==="uploading",processing:ja(F)==="processing",failed:ja(F)==="failed"}]),cx:"18",cy:"18",r:"16",fill:"none",stroke:ja(F)==="failed"?"#f56c6c":ja(F)==="completed"||ja(F)==="uploaded"?"#67c23a":"#409eff","stroke-width":ja(F)==="completed"||ja(F)==="uploaded"||ja(F)==="failed"?3:2,"stroke-dasharray":Ml(F),"stroke-dashoffset":"0","stroke-linecap":"round",transform:"rotate(-90 18 18)"},null,10,M0)])),ja(F)==="completed"||ja(F)==="uploaded"?(a.openBlock(),a.createElementBlock("div",z0,[a.createVNode(Pe,{class:"check-icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(Za.check_default))]),_:1})])):a.createCommentVNode("",!0),ja(F)==="failed"?(a.openBlock(),a.createElementBlock("div",O0,[a.createVNode(Pe,{class:"error-icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(Za.close_default))]),_:1})])):a.createCommentVNode("",!0)],2),a.createElementVNode("div",{class:"file-delete-btn",onClick:Se=>Zr(la)},[a.createVNode(Pe,null,{default:a.withCtx(()=>[a.createVNode(a.unref(Za.close_default))]),_:1})],8,I0)]),a.createElementVNode("div",L0,a.toDisplayString(F.name||"文件名123"),1)])}),128))]),Va.value.length>0?(a.openBlock(),a.createElementBlock("div",V0,[a.createVNode(ge,{onClick:U,class:"ocr-start-recognize-btn",disabled:Ta.value||Va.value.length===0,size:"default"},{default:a.withCtx(()=>f[37]||(f[37]=[a.createTextVNode("开始识别 ")])),_:1,__:[37]},8,["disabled"])])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),Ge.value===1?(a.openBlock(),a.createElementBlock("div",R0,[a.createVNode(De,{percentage:Ma.value,"stroke-width":8},null,8,["percentage"])])):a.createCommentVNode("",!0),Ge.value===2?(a.openBlock(),a.createElementBlock("div",$0,[a.createElementVNode("div",P0,[a.createVNode(aa,{title:"请核对识别结果。",type:"info",closable:!1,"show-icon":""})]),a.createElementVNode("div",F0,[a.createVNode(Ka,{data:nl.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:a.withCtx(()=>[a.createVNode(xa,{type:"index",label:"序号",width:"60",fixed:""}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(wa.value,F=>(a.openBlock(),a.createBlock(xa,{key:F.prop,prop:F.prop,"min-width":F.minWidth||230,"class-name":F.isAccuracy?"accuracy-column":""},{header:a.withCtx(()=>[a.createElementVNode("div",j0,[a.createElementVNode("span",null,a.toDisplayString(F.label),1)])]),default:a.withCtx(({row:la,$index:We})=>{var Se,B,Me;return[F.isAccuracy?(a.openBlock(),a.createElementBlock("span",{key:0,class:"accuracy-value",style:a.normalizeStyle({color:Je(la[F.prop]),fontWeight:500})},a.toDisplayString(fe(la[F.prop])),5)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[Ua.value!==We?(a.openBlock(),a.createElementBlock("span",H0,a.toDisplayString(la[F.prop]),1)):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(za(F.prop)),{key:1,modelValue:la[F.prop],"onUpdate:modelValue":je=>la[F.prop]=je,size:"small",placeholder:"请输入"+F.label,content:((Se=ha(F.prop))==null?void 0:Se.contents)??((B=ha(F.prop))==null?void 0:B.options)??[],optionUrl:(Me=ha(F.prop))==null?void 0:Me.optionUrl,onChange:je=>Ae(We,F.prop,je),onFocus:je=>zl.value=F.prop,onBlur:f[9]||(f[9]=je=>zl.value="")},null,40,["modelValue","onUpdate:modelValue","placeholder","content","optionUrl","onChange","onFocus"]))],64))]}),_:2},1032,["prop","min-width","class-name"]))),128)),a.createVNode(xa,{label:"编辑",width:"80",fixed:"right"},{default:a.withCtx(({$index:F})=>[Ua.value===F?(a.openBlock(),a.createBlock(Pe,{key:0,class:"ocr-edit-icon editing",style:{"margin-left":"12px"},onClick:a.withModifiers(la=>Ba(F),["stop"])},{default:a.withCtx(()=>[a.createVNode(a.unref(Za.check_default))]),_:2},1032,["onClick"])):(a.openBlock(),a.createBlock(T,{key:1,name:"edit_101",class:"ocr-edit-icon",onClick:a.withModifiers(la=>Ba(F),["stop"])},null,8,["onClick"]))]),_:1})]),_:1},8,["data"])])])):a.createCommentVNode("",!0),Ge.value===3?(a.openBlock(),a.createElementBlock("div",U0,[a.createVNode(Pe,{size:"32",class:"ocr-success-icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(Za.check_default))]),_:1}),f[38]||(f[38]=a.createElementVNode("div",{class:"ocr-success-text"},"文件提交成功",-1))])):a.createCommentVNode("",!0)]),a.createVNode(qa,{ref:"ocrUploadRef","file-list":Va.value,"onUpdate:fileList":f[10]||(f[10]=F=>Va.value=F),multiple:"",action:"","auto-upload":!1,limit:20,accept:"image/*,application/pdf","on-change":w,"show-file-list":!1,class:"ocr-upload-input",style:{display:"none"}},null,8,["file-list"])]),footer:a.withCtx(()=>[Ge.value!==3?(a.openBlock(),a.createElementBlock("div",q0,[a.createVNode(ge,{onClick:Vl,class:"ocr-start-recognize-btn",disabled:Ge.value===1||Ta.value},{default:a.withCtx(()=>f[40]||(f[40]=[a.createTextVNode(" 上一步 ")])),_:1,__:[40]},8,["disabled"]),a.createVNode(ge,{onClick:jl,class:"ocr-start-recognize-btn",disabled:Ta.value},{default:a.withCtx(()=>f[41]||(f[41]=[a.createTextVNode(" 下一步 ")])),_:1,__:[41]},8,["disabled"])])):a.createCommentVNode("",!0)]),_:1},8,["visible"]),a.createVNode(uf,{visible:st.value,onConfirm:Wo,onCancel:f[11]||(f[11]=F=>st.value=!1)},null,8,["visible"]),a.createVNode(Qu,{visible:yl.value,"onUpdate:visible":f[12]||(f[12]=F=>yl.value=F),versions:Da.value},null,8,["visible","versions"]),a.createVNode($u,{visible:Sl.value,"onUpdate:visible":f[13]||(f[13]=F=>Sl.value=F),images:Nl.value,"default-image-name":Tl.value,"field-meta":Ua.value!==null?((Oa=nl.value[Ua.value])==null?void 0:Oa.__ocrFieldMeta)||{}:{},"focused-field-name":zl.value,onClose:f[14]||(f[14]=F=>Sl.value=!1),class:"ocr-img-preview-dialog"},null,8,["visible","images","default-image-name","field-meta","focused-field-name"]),a.createVNode(pd,{visible:dl.value,"onUpdate:visible":f[15]||(f[15]=F=>dl.value=F),candidates:tl.value,"name-prop":nn.value,"mfr-prop":tn.value,columns:xe.value,onSubmit:Tr,onPreviewFile:vr},null,8,["visible","candidates","name-prop","mfr-prop","columns"]),a.createVNode(bd,{visible:sl.value,"onUpdate:visible":f[16]||(f[16]=F=>sl.value=F),ocrPreviewData:nl.value,"onUpdate:ocrPreviewData":f[17]||(f[17]=F=>nl.value=F),ocrSelectedFields:La.value,"onUpdate:ocrSelectedFields":f[18]||(f[18]=F=>La.value=F),ocrPreviewColumns:wa.value,onConfirm:de,onFieldChange:f[19]||(f[19]=({rowIndex:F,prop:la,value:We})=>Ae(F,la,We))},null,8,["visible","ocrPreviewData","ocrSelectedFields","ocrPreviewColumns"]),a.createVNode(dr.ssDialog,{title:xr.title,visible:xr.show,width:xr.width,onBeforeDestroy:p},{default:a.withCtx(()=>[a.createElementVNode("div",K0,[a.createVNode(ul.ssForm,{rowContents:xr==null?void 0:xr.contents,formRules:xr==null?void 0:xr.formRules,showOperator:!1,buttonValue:xr.buttonValue,isEdit:Ve.value,isStartJustify:!1,onOnButtonClick:m},null,8,["rowContents","formRules","buttonValue","isEdit"])])]),_:1},8,["title","visible","width"]),a.createVNode(dr.ssDialog,{title:ql.title,visible:ql.show,width:ql.width,alignCenter:!0,onBeforeDestroy:i},{header:a.withCtx(()=>[a.createVNode(ia,{size:"small",type:"danger",style:{width:"100%"}},{default:a.withCtx(()=>f[42]||(f[42]=[a.createTextVNode("(选择【覆盖】,可能会影响到原数据的引用关系;选择【取消】将会放弃重复数据的导入。请谨慎操作!)")])),_:1,__:[42]})]),footer:a.withCtx(()=>[a.createElementVNode("div",W0,[a.createVNode(ia,{size:"small",style:{width:"100%","text-align":"left"},type:"info"},{default:a.withCtx(()=>[a.createTextVNode("引用模块:"+a.toDisplayString(Cn.value||"暂无"),1)]),_:1}),a.createElementVNode("div",Y0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(ql==null?void 0:ql.buttonValue,F=>(a.openBlock(),a.createBlock(ge,{key:F==null?void 0:F.label,style:a.normalizeStyle({background:F==null?void 0:F.background,color:F==null?void 0:F.color}),onClick:la=>o(F==null?void 0:F.value)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(F==null?void 0:F.label),1)]),_:2},1032,["style","onClick"]))),128))])])]),default:a.withCtx(()=>[a.createVNode(Mp,{columns:ql==null?void 0:ql.columns,tableData:ql==null?void 0:ql.tableData},{content:a.withCtx(({row:F,item:la,slotData:We,scope:Se,column:B,columnProp:Me,$index:je})=>[a.createTextVNode(a.toDisplayString((F==null?void 0:F[(B==null?void 0:B.prop)||(B==null?void 0:B.label)])||(We==null?void 0:We[B==null?void 0:B.property])),1)]),_:1},8,["columns","tableData"])]),_:1},8,["title","visible","width"])])}}},uc=Ul._export_sfc(G0,[["__scopeId","data-v-1c7a7f8b"]]),X0={class:"static-form-card"},Z0={key:0,class:"static-form-body"},Q0={class:"static-form-label"},e3=["onClick"],a3={key:1},l3={key:1,class:"static-form-empty"},r3=a.defineComponent({__name:"index",props:{itemData:{default:()=>[]},fields:{default:()=>[]},compName:{default:""},title:{default:""},disabled:{type:Boolean,default:!1}},setup(l){const n=l,r=c=>{switch(c){case"占用":return"warning";case"注销":return"info";case"损坏":return"danger";case"可用":return"success";default:return""}},t=a.computed(()=>{var L;const c=(L=n.itemData)==null?void 0:L.find(_=>(_==null?void 0:_.key)==="formContent"),E=(c==null?void 0:c.contents)||[];return(n.fields&&n.fields.length>0?n.fields:E).filter(_=>!(_!=null&&_.isFormColHidden)&&(_==null?void 0:_.label)).map(_=>{let W=_==null?void 0:_.value;Array.isArray(W)&&(W=W.map(S=>S==null?"":typeof S=="object"?S.label??S.value??S.name??JSON.stringify(S):String(S)).filter(Boolean).join(",")),W!=null&&typeof W=="object"&&(W=W.label??W.value??W.name??JSON.stringify(W));const C=_.label??"",M=W==null||W===""?"-":String(W),ae=C==="使用状态";return{label:C,value:M,isStatus:ae,tagType:ae?r(M):"",width:_.width??1,field:_}})}),s=a.ref(null),u=c=>ul.getComponent(c),k=c=>{if(!c)return;const E=c.querySelector("input, textarea, .el-input__inner");E&&typeof E.focus=="function"&&E.focus()},h=(c,E,A)=>{n.disabled||(s.value=E,a.nextTick(()=>{k(A.currentTarget)}))},v=()=>{s.value=null},y=c=>{const E=c!=null&&c.width&&c.width>0?c.width:1,L=`calc((100% - ${(E-1)*48}px) / ${E})`;return{flex:`0 0 ${L}`,maxWidth:L,minWidth:"0",boxSizing:"border-box"}};return(c,E)=>{const A=a.resolveComponent("el-tag");return a.openBlock(),a.createElementBlock("div",X0,[t.value.length?(a.openBlock(),a.createElementBlock("div",Z0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.value,(L,_)=>{var W,C,M,ae,S,$,N,x;return a.openBlock(),a.createElementBlock("div",{key:_,class:"static-form-item",style:a.normalizeStyle(y(L))},[a.createElementVNode("div",Q0,a.toDisplayString(L.label)+": ",1),a.createElementVNode("div",{class:"static-form-value",onClick:g=>h(L,_,g)},[s.value===_&&L.field?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u(((W=L.field)==null?void 0:W.type)??"Input")),{key:0,modelValue:L.field.value,"onUpdate:modelValue":g=>L.field.value=g,isEdit:!0,disabled:(C=L.field)==null?void 0:C.disabled,content:((M=L.field)==null?void 0:M.contents)??[],optionUrl:L.field,originalValue:(ae=L.field)==null?void 0:ae.value,config:(S=L.field)==null?void 0:S.config,configModel:(($=L.field)==null?void 0:$.prop)??((N=L.field)==null?void 0:N.name),selectedTagList:((x=L.field)==null?void 0:x.selectValue)??[],onBlur:v,onBlurChange:v},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[L.isStatus?(a.openBlock(),a.createBlock(A,{key:0,type:L.tagType,size:"Default",effect:"plain"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(L.value??"-"),1)]),_:2},1032,["type"])):(a.openBlock(),a.createElementBlock("span",a3,a.toDisplayString(L.value??"-"),1))],64))],8,e3)],4)}),128))])):(a.openBlock(),a.createElementBlock("div",l3," 暂无数据 "))])}}}),dc=Ul._export_sfc(r3,[["__scopeId","data-v-c4ed3455"]]),n3={class:"form-content"},t3={title:"选择标签"},o3={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},i3={class:"col-operate-wrap"},s3={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},c3={__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(l,{emit:n}){const r=()=>{k.value=!1,h.value=!1,v.value=[]},t=l;a.computed(()=>{var Ve;const pe=(Ve=D.value)==null?void 0:Ve.split("/");return(pe==null?void 0:pe.some(ca=>(ca==null?void 0:ca.includes("updateLoading"))||(ca==null?void 0:ca.includes("loading"))))?!1:te.value==="view"});const s=n,u=a.ref([]),k=a.ref(!1),h=a.ref(!1),v=a.ref([]),{getFileExtension:y}=go.useThreeSystem(),c=a.ref(),E=a.ref(!1),A=a.ref(!1),L=z.useUnit(z.pinia),{chooseTitle:_}=z.storeToRefs(L),W=a.ref([]),C=a.ref(),M=a.ref(!1),ae=a.ref([]),S=Ks(z.pinia),$=mi(z.pinia),N=a.ref(!1),x=a.ref(),g=z.useLoginState(z.pinia),{loginUserInfo:H}=z.storeToRefs(g),q=a.ref(),G=a.ref(!0),he=z.useModelComp(z.pinia),{tableViewContents:Be,itemData:xe,isEdit:te,routeToChildPath:me,lockingPage:Z}=z.storeToRefs(he),ue=a.ref(null),Ue=a.ref(!1),Ca=a.ref(!1),oe=z.useMenuState(),{activeMenuPath:D}=z.storeToRefs(oe),ne=sa.useOriginalState(z.pinia),{originalPath:ve}=z.storeToRefs(ne),{compType:se,hasEditable:_e}=Vs.useRole(),ra=()=>!_e(t.config,{type:se.FORM});a.computed(()=>D.value==="设备管理/试验设备"&&t.compName==="设备概要");const ba=a.ref([]),$a=a.ref([{label:"编辑",value:"operable",checked:!1},{label:"禁用",value:"disabled",checked:!1}]),le=async pe=>{Ca.value=pe,await qe("disabled",null,pe,!0)},Qe=async pe=>{await qe("operable",null,pe,!0)};a.watch(()=>D.value,async()=>{u.value=[],v.value=[]},{deep:!0,immediate:!0});const Ie=()=>{a.nextTick(()=>{ze()})},ka=pe=>{var $e;u.value=($e=u.value)==null?void 0:$e.map(Ve=>({...Ve,isFormColHidden:!(pe!=null&&pe.includes(Ve.label))}))};a.onUnmounted(()=>{ue.value=null});const Re=pe=>{s("clickTrigger",pe)},we=async pe=>{var $e,Ve,ca,ya,Oe,da;if(pe===""){let Le="";($e=u.value)==null||$e.forEach(ce=>{ce!=null&&ce.isMain&&(Le=ce==null?void 0:ce.value)});let _a=await sa.getItemData(me.value,sessionStorage.getItem("systemKey"),"");Le=((da=(Oe=(ya=(ca=(Ve=_a==null?void 0:_a[0])==null?void 0:Ve.compData)==null?void 0:ca.find(ce=>(ce==null?void 0:ce.key)==="mainRouters"))==null?void 0:ya.contents)==null?void 0:Oe[0])==null?void 0:da.routerContent)+ve.value+Le;let ma=await sa.getItemData(Le,sessionStorage.getItem("systemKey"),"");M.value=!0,ae.value=ma==null?void 0:ma.filter(ce=>(ce==null?void 0:ce.comp)!=="methodButton"),s("routeUrl",ae.value)}},ze=()=>{var $e;const pe=($e=ue.value)==null?void 0:$e.$el;pe&&Na.Sortable.create(pe,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:Ve=>{const{oldIndex:ca,newIndex:ya}=Ve;if(ca===ya)return;const Oe=u.value.splice(ca,1)[0];u.value.splice(ya,0,Oe)}})},qe=async(pe,$e,Ve,ca=!1)=>{try{he.setRefreshCurStructure(!1)}catch{Za.ElMessage.error("编辑处理失败")}},Sa=async(pe,$e)=>{await qe()},el=async(pe,$e)=>{pe&&await qe()},P=async(pe,$e,Ve)=>{await qe($e,Ve,pe,!1)},j=(pe,$e)=>{q.value===$e?G.value=!1:G.value=!0,q.value=$e==null?void 0:$e.changeProp},Y=async pe=>{var Ve,ca,ya,Oe,da,Le,_a,Fe,ma,ce,ga,ye,Ea,Ye,Ke;let $e=[];if((Ve=pe==null?void 0:pe.toString())!=null&&Ve.includes(".urdf")){if(pe.includes(",")){Za.ElMessage.error("当前版本仅允许单个urdf预览!");return}v.value=[{url:pe,extension:y(pe)}],h.value=!0,k.value=!0;return}if((ca=pe==null?void 0:pe.toString())!=null&&ca.includes(".stl")||(ya=pe==null?void 0:pe.toString())!=null&&ya.includes(".STL")||(Oe=pe==null?void 0:pe.toString())!=null&&Oe.includes(".obj")||(da=pe==null?void 0:pe.toString())!=null&&da.includes(".mtl")){const be=((Le=pe==null?void 0:pe.toString())==null?void 0:Le.split(",")).map(Ee=>({url:Ee,extension:y(Ee)}));v.value=be,h.value=!1,k.value=!0;return}if((_a=pe==null?void 0:pe.toString())!=null&&_a.includes(".stl")||(Fe=pe==null?void 0:pe.toString())!=null&&Fe.includes(".STL")||(ma=pe==null?void 0:pe.toString())!=null&&ma.includes(".obj")||(ce=pe==null?void 0:pe.toString())!=null&&ce.includes(".mtl")){let Ce,be=[],Ee={};if(Array.isArray(pe)?Ce=pe:Ce=pe==null?void 0:pe.split(","),Ce==null||Ce.forEach(pa=>{pa.includes(".mtl")?be.push(pa):Ee.blob=Ee.blob?Ee.blob+","+pa:pa}),(be==null?void 0:be.length)>0&&(Ee.mtlBlobs=be),(ye=(ga=Object.values(Ee))==null?void 0:ga[0])!=null&&ye.includes("http:"))$e.push(Ee);else{const pa=new Blob([Ee.blob],{type:"application/octet-stream;charset=UTF-8"});let na=URL.createObjectURL(pa),rl="";(Ea=pe==null?void 0:pe.split("/"))==null||Ea.forEach((Il,Fl)=>{var al;Fl===((al=pe==null?void 0:pe.split("/"))==null?void 0:al.length)-1&&(rl=Il)}),(Ye=Ee.blob)!=null&&Ye.includes(".stl")&&(rl=(rl==null?void 0:rl.replaceAll(">",""))+".urdf"),C.value=[{name:rl,blobUrl:na}],A.value=!0}}else{const Ce=z.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),be=await Za.axios.get(pe,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{Ce.close()}),Ee=new Blob([be.data],{type:"application/octet-stream;charset=UTF-8"});let pa=URL.createObjectURL(Ee),na="";(Ke=pe==null?void 0:pe.split("/"))==null||Ke.forEach((rl,Il)=>{var Fl;Il===((Fl=pe==null?void 0:pe.split("/"))==null?void 0:Fl.length)-1&&(na=rl)}),C.value=[{name:na,blobUrl:pa}],A.value=!0}($e==null?void 0:$e.length)>0&&$.setBlobUrls($e)},V=()=>{A.value=!1},K=pe=>{var Oe,da,Le,_a;const $e=(da=(Oe=ul.safeClone(t.itemData))==null?void 0:Oe.find(Fe=>(Fe==null?void 0:Fe.key)==="formContent"))==null?void 0:da.contents,Ve=ul.safeClone(pe.content);let ca={};Ve&&((Le=Object.values(Ve))==null?void 0:Le.length)>0&&((_a=Object.values(Ve))==null||_a.forEach((Fe,ma)=>{ca[$e[ma].key]=Fe}));const ya={content:ca,index:t==null?void 0:t.index,buttonName:pe==null?void 0:pe.buttonName};s("change",ya)};a.computed(()=>"http://222.92.178.198:62001");const Te=async pe=>{var ga,ye,Ea,Ye,Ke,Ce,be,Ee,pa,na,rl,Il,Fl,al,Ha,oa;if(!pe)return;(ye=(ga=t==null?void 0:t.itemData)==null?void 0:ga.find(Ta=>(Ta==null?void 0:Ta.key)==="parentFormPath"))==null||ye.contents;let $e=Be.value;($e==null?void 0:$e.length)>0&&($e=$e==null?void 0:$e.map(Ta=>{var ll,yl,Da,Ge;let Va=(ll=Ta==null?void 0:Ta.key)==null?void 0:ll.split("/");return(t==null?void 0:t.compName)===(Va==null?void 0:Va[0])&&(yl=u.value)!=null&&yl.find(X=>(X==null?void 0:X.prop)===(Va==null?void 0:Va[1]))&&(Ta.value=(Ge=(Da=u.value)==null?void 0:Da.find(X=>(X==null?void 0:X.prop)===(Va==null?void 0:Va[1])))==null?void 0:Ge.value),Ta}),he.setTableViewContents($e));const Ve=ul.safeClone(t.itemData);let ca=Ve==null?void 0:Ve.map(Ta=>{var Va;return(Ta==null?void 0:Ta.key)==="formContent"&&((Va=Ta.contents)==null||Va.map((ll,yl)=>{var Da,Ge,X,Aa,Ma,sl,nl,wa,ha,za,ea,fa,La,Ua,zl,Sl,Nl,Tl,dl;return ll.type=(Ge=(Da=u.value)==null?void 0:Da.find(tl=>(tl==null?void 0:tl.prop)===(ll==null?void 0:ll.prop)))==null?void 0:Ge.type,ll.options=ll!=null&&ll.options?ll.options:((Ma=(Aa=(X=ll==null?void 0:ll.key)==null?void 0:X.split("$"))==null?void 0:Aa[1])==null?void 0:Ma.length)>0?(ha=(wa=mu((nl=(sl=ll==null?void 0:ll.key)==null?void 0:sl.split("$"))==null?void 0:nl[1]))==null?void 0:wa.split(","))==null?void 0:ha.map(tl=>({label:tl,value:tl})):[],(za=ll==null?void 0:ll.key)!=null&&za.includes("$")&&(ll.key=(fa=(ea=ll==null?void 0:ll.key)==null?void 0:ea.split("$"))==null?void 0:fa[0]),ll.signature=(Ua=(La=u.value)==null?void 0:La.find(tl=>(tl==null?void 0:tl.prop)===(ll==null?void 0:ll.prop)))==null?void 0:Ua.signature,ll.isLoginUser=(Sl=(zl=u.value)==null?void 0:zl.find(tl=>(tl==null?void 0:tl.prop)===(ll==null?void 0:ll.prop)))==null?void 0:Sl.isLoginUser,ll.value=(Nl=Object.values(pe))==null?void 0:Nl[yl],ll.isFormColHidden=(dl=(Tl=u.value)==null?void 0:Tl.find(tl=>(tl==null?void 0:tl.prop)===(ll==null?void 0:ll.prop)))==null?void 0:dl.isFormColHidden,ll})),Ta}),ya=u.value,Oe=(Ye=(Ea=ul.safeClone(ca))==null?void 0:Ea.find(Ta=>(Ta==null?void 0:Ta.key)==="formContent"))==null?void 0:Ye.contents;if(ya=ya==null?void 0:ya.map(Ta=>{var Va,ll;return(Ta==null?void 0:Ta.type)==="Select"&&((Va=Ta==null?void 0:Ta.allSelectionContents)==null?void 0:Va.length)>0&&(Ta.contactValue=pe),Ta.value=(ll=Oe==null?void 0:Oe.find((yl,Da)=>((yl==null?void 0:yl.id)??Da)===(Ta==null?void 0:Ta.id)))==null?void 0:ll.value,Ta}),!G.value){s("contentChange",{contents:ca,index:t.index});return}let da="",Le=(be=(Ce=(Ke=ul.safeClone(ca))==null?void 0:Ke.find(Ta=>(Ta==null?void 0:Ta.key)==="formContent"))==null?void 0:Ce.contents)==null?void 0:be.find((Ta,Va)=>{var ll,yl,Da;return(Ta==null?void 0:Ta.label)===q.value||Va.toString()===((Da=(yl=(ll=q.value)==null?void 0:ll.split("t"))==null?void 0:yl[1])==null?void 0:Da.toString())}),_a=(Ee=Le==null?void 0:Le.optionUrl)==null?void 0:Ee.menuSelect,Fe=!0;if((rl=(na=(pa=ul.safeClone(ca))==null?void 0:pa.find(Ta=>(Ta==null?void 0:Ta.key)==="formContent"))==null?void 0:na.contents)==null||rl.forEach(Ta=>{var Va,ll,yl,Da,Ge,X;Fe&&((yl=(ll=(Va=Ta==null?void 0:Ta.optionUrl)==null?void 0:Va.groupSelect)==null?void 0:ll[1])!=null&&yl.includes("["))&&(da=(Ge=(Da=Ta==null?void 0:Ta.optionUrl)==null?void 0:Da.groupSelect)==null?void 0:Ge[1],JSON.stringify(_a)===JSON.stringify((X=Ta==null?void 0:Ta.optionUrl)==null?void 0:X.menuSelect)&&(Fe=!1))}),(Il=Le==null?void 0:Le.optionUrl)!=null&&Il.menuSelect&&G.value){let Ta=await si(Le),Va,ll=(Fl=Le==null?void 0:Le.optionUrl)==null?void 0:Fl.menuSelect;if(Ta==null||Ta.forEach(yl=>{var Da,Ge,X,Aa,Ma,sl,nl,wa,ha,za;da===((Ge=(Da=Le==null?void 0:Le.optionUrl)==null?void 0:Da.groupSelect)==null?void 0:Ge[1])&&((Ma=(Aa=(X=Le==null?void 0:Le.optionUrl)==null?void 0:X.groupSelect)==null?void 0:Aa[1])!=null&&Ma.includes("["))&&((za=ul.safeClone(yl))==null?void 0:za[(ha=(wa=(nl=(sl=Le==null?void 0:Le.optionUrl)==null?void 0:sl.groupSelect)==null?void 0:nl[1])==null?void 0:wa.replaceAll("[",""))==null?void 0:ha.replaceAll("]","")])===(Le==null?void 0:Le.value)&&(Va=yl)}),Va){let yl=ul.safeClone(ya);yl=yl==null?void 0:yl.map(Ge=>{var X,Aa,Ma,sl,nl,wa,ha,za,ea,fa,La;return(Va!=null&&Va[Ge==null?void 0:Ge.label]||Va!=null&&Va[(sl=(Ma=(Aa=(X=Ge==null?void 0:Ge.optionUrl)==null?void 0:X.groupSelect)==null?void 0:Aa[1])==null?void 0:Ma.replaceAll("[",""))==null?void 0:sl.replaceAll("]","")])&&((ha=(wa=(nl=Ge==null?void 0:Ge.optionUrl)==null?void 0:nl.groupSelect)==null?void 0:wa[1])!=null&&ha.includes("["))&&ll!=null&&ll.every(Ua=>{var zl,Sl;return(Sl=(zl=Ge==null?void 0:Ge.optionUrl)==null?void 0:zl.menuSelect)==null?void 0:Sl.includes(Ua)})&&(Ge.value=(Va==null?void 0:Va[Ge==null?void 0:Ge.label])||(Va==null?void 0:Va[(La=(fa=(ea=(za=Ge==null?void 0:Ge.optionUrl)==null?void 0:za.groupSelect)==null?void 0:ea[1])==null?void 0:fa.replaceAll("[",""))==null?void 0:La.replaceAll("]","")]),Array.isArray(Ge.value)&&Ge.value.every(Ua=>(Ua==null?void 0:Ua.url)&&(Ua==null?void 0:Ua.name))&&(Ge.type="Upload")),Ge}),yl=yl==null?void 0:yl.map(Ge=>{var X,Aa,Ma;return(X=Ge==null?void 0:Ge.optionUrl)!=null&&X.oldMenuSelect&&(Ge.optionUrl.menuSelect=(Ma=(Aa=ul.safeClone(Ge))==null?void 0:Aa.optionUrl)==null?void 0:Ma.oldMenuSelect),Ge}),u.value=ul.safeClone(yl);let Da=ul.safeClone(yl);Da=Da==null?void 0:Da.map(Ge=>{var X,Aa,Ma,sl,nl,wa;return(Aa=(X=Ge==null?void 0:Ge.optionUrl)==null?void 0:X.menuSelect)!=null&&Aa.some(ha=>ha==null?void 0:ha.includes("["))&&(Ge.optionUrl.oldMenuSelect=(sl=(Ma=ul.safeClone(Ge))==null?void 0:Ma.optionUrl)==null?void 0:sl.menuSelect,Ge.optionUrl.menuSelect=(wa=(nl=Ge==null?void 0:Ge.optionUrl)==null?void 0:nl.menuSelect)==null?void 0:wa.map(ha=>{var za,ea,fa,La;if(ha!=null&&ha.includes("[")){let Ua=(ea=(za=ha==null?void 0:ha.replaceAll("[","").replaceAll("]",""))==null?void 0:za.split(":"))==null?void 0:ea[1];ha=(La=(fa=ul.safeClone(yl))==null?void 0:fa.find(zl=>(zl==null?void 0:zl.label)===Ua))==null?void 0:La.value}return ha})),Ge}),u.value=Da}else u.value=ya;ca=ca==null?void 0:ca.map(yl=>{var Da;return(yl==null?void 0:yl.key)==="formContent"&&(yl.contents=(Da=yl.contents)==null?void 0:Da.map(Ge=>{var X,Aa,Ma,sl;return Ge.value=((Aa=(X=u.value)==null?void 0:X.find(nl=>(nl==null?void 0:nl.label)===(Ge==null?void 0:Ge.key)))==null?void 0:Aa.value)??(Ge==null?void 0:Ge.value),Ge.type=((sl=(Ma=u.value)==null?void 0:Ma.find(nl=>(nl==null?void 0:nl.prop)===(Ge==null?void 0:Ge.key)))==null?void 0:sl.type)??(Ge==null?void 0:Ge.type),Ge})),yl})}G.value=!1,s("contentChange",{contents:ca,index:t.index});let ma=[],ce=[];if((Ha=ul.safeClone((al=ca==null?void 0:ca.find(Ta=>(Ta==null?void 0:Ta.key)==="formContent"))==null?void 0:al.contents))==null||Ha.forEach(Ta=>{var Va;Array.isArray(Ta==null?void 0:Ta.value)&&((Va=Ta==null?void 0:Ta.value)!=null&&Va.find(ll=>{var yl;return(yl=ll==null?void 0:ll.url)==null?void 0:yl.includes(".obj")}))&&(ce=Ta==null?void 0:Ta.value)}),(ce==null?void 0:ce.length)>0){const Ta=(oa=ul.safeClone(ce))==null?void 0:oa.filter(Va=>{var ll;return(ll=Va==null?void 0:Va.url)==null?void 0:ll.includes(".obj")});Ta==null||Ta.forEach(Va=>{var yl,Da,Ge,X;const ll=(yl=ce==null?void 0:ce.filter(Aa=>{var Ma;return(Aa==null?void 0:Aa.name)===(Va==null?void 0:Va.name)&&((Ma=Aa==null?void 0:Aa.url)==null?void 0:Ma.includes(".mtl"))}))==null?void 0:yl.map(Aa=>Aa==null?void 0:Aa.url);ma.push({objUrl:Va==null?void 0:Va.url,mtlUrls:((Da=ce==null?void 0:ce.filter(Aa=>{var Ma;return(Aa==null?void 0:Aa.name)===(Va==null?void 0:Va.name)&&((Ma=Aa==null?void 0:Aa.url)==null?void 0:Ma.includes(".mtl"))}))==null?void 0:Da.length)===1?(X=(Ge=ce==null?void 0:ce.filter(Aa=>{var Ma;return(Aa==null?void 0:Aa.name)===(Va==null?void 0:Va.name)&&((Ma=Aa==null?void 0:Aa.url)==null?void 0:Ma.includes(".mtl"))}))==null?void 0:Ge[0])==null?void 0:X.url:ll})}),$.setObjUrl(ma)}},ee=(pe,$e,Ve)=>{let ca="";const ya=$e==null?void 0:$e.map(Oe=>{var da;return(da=Oe==null?void 0:Oe.value)==null?void 0:da.pageData});return ya==null||ya.forEach(Oe=>{var da;(Oe==null?void 0:Oe.name)===(pe==null?void 0:pe[0])&&((da=Oe==null?void 0:Oe.compData)==null||da.forEach(Le=>{var _a;(Le==null?void 0:Le.key)==="formContent"&&((_a=Le==null?void 0:Le.contents)==null||_a.forEach(Fe=>{var ma;(Fe==null?void 0:Fe.prop)===(pe==null?void 0:pe[1])&&(ca=(Fe==null?void 0:Fe.value)===""?sa.judgeContents((ma=ul.safeClone(Fe))==null?void 0:ma.optionUrl,Ve):Fe==null?void 0:Fe.value)}))}))}),ca},ke=(pe,$e,Ve,ca)=>{var Le,_a;let ya="",Oe="";(Le=ul.safeClone($e))==null||Le.forEach((Fe,ma)=>{Fe!=null&&Fe.includes("[")?Oe=Oe+ve.value+pe[ma]:Oe=Oe===""?Oe+Fe:Oe+"/"+Fe});let da=(_a=ca[Oe])==null?void 0:_a.map(Fe=>{var ma;return(ma=Fe==null?void 0:Fe.value)==null?void 0:ma.pageData});return da==null||da.forEach(Fe=>{var ma;(Fe==null?void 0:Fe.name)===(Ve==null?void 0:Ve[0])&&((ma=Fe==null?void 0:Fe.compData)==null||ma.forEach(ce=>{var ga;(ce==null?void 0:ce.key)==="formContent"&&((ga=ce==null?void 0:ce.contents)==null||ga.forEach(ye=>{(ye==null?void 0:ye.prop)===(Ve==null?void 0:Ve[1])&&(ya=ye==null?void 0:ye.value)}))}))}),ya};return a.watch(()=>t.itemData,async()=>{var Le,_a,Fe,ma,ce,ga,ye,Ea,Ye,Ke,Ce,be,Ee,pa,na,rl,Il,Fl,al;const pe=(Le=t.itemData)==null?void 0:Le.find(Ha=>(Ha==null?void 0:Ha.key)==="formContent"),$e=(_a=ul.safeClone(t.itemData))==null?void 0:_a.find(Ha=>(Ha==null?void 0:Ha.key)==="formButton"),Ve=(Fe=ul.safeClone(t.itemData))==null?void 0:Fe.find(Ha=>(Ha==null?void 0:Ha.key)==="formFlex"),ca=(ma=ul.safeClone(t.itemData))==null?void 0:ma.find(Ha=>(Ha==null?void 0:Ha.key)==="formWrap"),ya=(ce=ul.safeClone(t.itemData))==null?void 0:ce.find(Ha=>(Ha==null?void 0:Ha.key)==="enableWrap");(ca==null?void 0:ca.contents)==="纵向"?E.value=!1:E.value=!0;const Oe=ya==null?void 0:ya.contents;if(Oe===void 0?N.value=Qn.BLOCK:typeof Oe=="boolean"?N.value=Oe?Qn.ORDINARY:Qn.BLOCK:N.value=Oe,x.value=typeof(Ve==null?void 0:Ve.contents)!="boolean"?!(!(Ve!=null&&Ve.contents)===""||((ga=Ve==null?void 0:Ve.contents)==null?void 0:ga.toUpperCase())==="VERTICAL"):Ve==null?void 0:Ve.contents,((ye=pe==null?void 0:pe.contents)==null?void 0:ye.length)>0&&Array.isArray(pe==null?void 0:pe.contents)){let Ha=t.allMapContents;const oa=(Ye=(Ea=ul.safeClone(pe))==null?void 0:Ea.contents)==null?void 0:Ye.map((X,Aa)=>{var Tl,dl,tl,gl,Cl,Rl,br,Sr,nn,tn,Ar,Gr,Xr;let Ma=(X==null?void 0:X.label)??(X==null?void 0:X.key)??"";X==null||X.type;let sl=(X==null?void 0:X.options)??[];if((Tl=X==null?void 0:X.key)!=null&&Tl.includes("$")&&(Ma=(dl=ul.safeClone(X==null?void 0:X.key).split("$"))==null?void 0:dl[0],((gl=(tl=ul.safeClone(X==null?void 0:X.key).split("$"))==null?void 0:tl[1])==null?void 0:gl.length)>0)){const[lr,Tr]=(Rl=(Cl=ul.safeClone(X==null?void 0:X.key).split("$"))==null?void 0:Cl[1])==null?void 0:Rl.split(/[()]/);(br=sa.FormType.find(Dr=>(Dr==null?void 0:Dr.key)===lr))==null||br.value,((Sr=Tr==null?void 0:Tr.split(","))==null?void 0:Sr.length)>0&&(sl=(nn=Tr==null?void 0:Tr.split(","))==null?void 0:nn.map(Dr=>({label:Dr,value:Dr})))}let nl=X==null?void 0:X.options;((tn=X==null?void 0:X.optionUrl)==null?void 0:tn.selectRelateType)==="自定义绑定"&&(nl=(Gr=(Ar=X==null?void 0:X.optionUrl)==null?void 0:Ar.defaultSelect)==null?void 0:Gr.map(lr=>({label:lr,value:lr})));let wa=(X==null?void 0:X.menuPath)??[],ha=(X==null?void 0:X.groups)??[],za=(X==null?void 0:X.columns)??[],ea=!1,fa=(X==null?void 0:X.isFormColHidden)??!1,La="",Ua=X!=null&&X.value?X.value:(nl==null?void 0:nl.length)>0?(Xr=nl==null?void 0:nl[0])==null?void 0:Xr.value:(X==null?void 0:X.value)??"",zl=!1,Sl="Input";return((nl==null?void 0:nl.length)>0||(wa==null?void 0:wa.length)>0)&&(Sl="Select"),(Array.isArray(La)&&(La!=null&&La.every(lr=>(lr==null?void 0:lr.name)&&(lr==null?void 0:lr.url)))||Array.isArray(Ua)&&(Ua!=null&&Ua.every(lr=>(lr==null?void 0:lr.name)&&(lr==null?void 0:lr.url))))&&(Sl="upload"),X!=null&&X.isMainUrl&&(Sl="Url"),{label:Ma??"",name:Ma??"t"+Aa,prop:Ma??ul.safeClone(X==null?void 0:X.key),type:(X==null?void 0:X.type)??Sl,value:(X==null?void 0:X.type)==="Date"&&Ua===""?new Date:Ua,id:(X==null?void 0:X.id)??Aa,contents:(nl==null?void 0:nl.length)>0?nl:sl??[],width:(X==null?void 0:X.width)??1,isLoginUser:ea,config:X==null?void 0:X.config,optionUrl:(X==null?void 0:X.optionUrl)??X,isFormColHidden:fa,signature:zl,isMain:X==null?void 0:X.isMain,required:(X==null?void 0:X.required)??!1,isMainUrl:X==null?void 0:X.isMainUrl,operable:(X==null?void 0:X.operable)??!1,disabled:(X==null?void 0:X.disabled)??!1,isSync:X==null?void 0:X.isSync,menus:wa,groups:ha,words:za,allSelectionContents:X==null?void 0:X.allContents,filterContent:X==null?void 0:X.filterContents}}),Ta=oa==null?void 0:oa.map(X=>X==null?void 0:X.value);let Va="";Ta==null||Ta.forEach(X=>{X!==""&&X!==void 0&&(Va=Va===""?X:Va+"/"+X)}),S.setSelectArray(Ta),S.setSelectString(Va);let ll=(Ke=ul.safeClone(oa))==null?void 0:Ke.map(X=>(X!=null&&X.value&&sa.IsJson(X==null?void 0:X.value)&&Array.isArray(JSON.parse(X==null?void 0:X.value))&&(X.value=JSON.parse(X.value)),X)),yl={};ll==null||ll.forEach(X=>{yl[X.label]=X==null?void 0:X.value}),ll=ll==null?void 0:ll.map(X=>{var Aa,Ma,sl,nl,wa,ha,za,ea,fa;if((X==null?void 0:X.type)==="Select"&&((Aa=X==null?void 0:X.allSelectionContents)==null?void 0:Aa.length)>0&&(X.contactValue=yl),(sl=(Ma=X==null?void 0:X.optionUrl)==null?void 0:Ma.menuSelect)!=null&&sl.some(La=>La==null?void 0:La.includes("["))){let La="";X.optionUrl.oldMenuSelect=(wa=(nl=ul.safeClone(X))==null?void 0:nl.optionUrl)==null?void 0:wa.menuSelect,X.optionUrl.menuSelect=(za=(ha=X==null?void 0:X.optionUrl)==null?void 0:ha.menuSelect)==null?void 0:za.map(Ua=>{var zl,Sl,Nl,Tl,dl,tl;if(Ua!=null&&Ua.includes("[")){let gl=(Sl=(zl=Ua==null?void 0:Ua.replaceAll("[","").replaceAll("]",""))==null?void 0:zl.split(":"))==null?void 0:Sl[1];La=ee((Nl=Ua==null?void 0:Ua.replaceAll("[","").replaceAll("]",""))==null?void 0:Nl.split(":"),Ha==null?void 0:Ha[D.value],Ha),Ua=((dl=(Tl=ul.safeClone(ll))==null?void 0:Tl.find(Cl=>(Cl==null?void 0:Cl.label)===gl))==null?void 0:dl.value)||ee((tl=Ua==null?void 0:Ua.replaceAll("[","").replaceAll("]",""))==null?void 0:tl.split(":"),Ha==null?void 0:Ha[D.value],Ha)}return Ua}),La!==""&&X.value===""&&(X.value=ke(X.optionUrl.menuSelect,X.optionUrl.oldMenuSelect,(ea=X==null?void 0:X.optionUrl)==null?void 0:ea.groupSelect,Ha),Array.isArray(X.value)&&((fa=X.value)!=null&&fa.every(Ua=>Ua==null?void 0:Ua.url))&&(X.type="UPLOAD"))}return X}),u.value=ll,Ca.value=((Ce=u.value)==null?void 0:Ce.every(X=>X==null?void 0:X.disabled))||Z.value===D.value,Ue.value=(be=u.value)==null?void 0:be.every(X=>X==null?void 0:X.operable),ba.value=(Ee=u.value)==null?void 0:Ee.map(X=>X==null?void 0:X.label);let Da=[],Ge=[];if((pa=ul.safeClone(u.value))==null||pa.forEach(X=>{var Aa;Array.isArray(X==null?void 0:X.value)&&((Aa=X==null?void 0:X.value)!=null&&Aa.find(Ma=>{var sl;return(sl=Ma==null?void 0:Ma.url)==null?void 0:sl.includes(".obj")}))&&(Ge=X==null?void 0:X.value)}),(Ge==null?void 0:Ge.length)>0){const X=(na=ul.safeClone(Ge))==null?void 0:na.filter(Aa=>{var Ma;return(Ma=Aa==null?void 0:Aa.url)==null?void 0:Ma.includes(".obj")});X==null||X.forEach(Aa=>{var sl,nl,wa,ha;const Ma=(sl=Ge==null?void 0:Ge.filter(za=>{var ea;return(za==null?void 0:za.name)===(Aa==null?void 0:Aa.name)&&((ea=za==null?void 0:za.url)==null?void 0:ea.includes(".mtl"))}))==null?void 0:sl.map(za=>za==null?void 0:za.url);Da.push({objUrl:Aa==null?void 0:Aa.url,mtlUrls:((nl=Ge==null?void 0:Ge.filter(za=>{var ea;return(za==null?void 0:za.name)===(Aa==null?void 0:Aa.name)&&((ea=za==null?void 0:za.url)==null?void 0:ea.includes(".mtl"))}))==null?void 0:nl.length)===1?(ha=(wa=Ge==null?void 0:Ge.filter(za=>{var ea;return(za==null?void 0:za.name)===(Aa==null?void 0:Aa.name)&&((ea=za==null?void 0:za.url)==null?void 0:ea.includes(".mtl"))}))==null?void 0:wa[0])==null?void 0:ha.url:Ma})}),$.setObjUrl(Da)}(rl=ul.safeClone(u.value))==null||rl.forEach(X=>{var Aa,Ma,sl,nl,wa,ha,za,ea,fa,La,Ua,zl,Sl;if((Ma=(Aa=X==null?void 0:X.value)==null?void 0:Aa.toString())!=null&&Ma.includes(".stl")||(nl=(sl=X==null?void 0:X.value)==null?void 0:sl.toString())!=null&&nl.includes(".STL")||(ha=(wa=X==null?void 0:X.value)==null?void 0:wa.toString())!=null&&ha.includes(".obj")||(ea=(za=X==null?void 0:X.value)==null?void 0:za.toString())!=null&&ea.includes(".mtl")||(La=(fa=X==null?void 0:X.value)==null?void 0:fa.toString())!=null&&La.includes(".urdf")){let Nl={},Tl=[],dl;Array.isArray(X==null?void 0:X.value)?dl=X==null?void 0:X.value:dl=(Ua=X==null?void 0:X.value)==null?void 0:Ua.split(","),dl==null||dl.forEach(tl=>{tl.includes(".mtl")?Tl.push(tl):Nl.blob=Nl.blob==="undefined"?tl:Nl.blob+","+tl}),(Tl==null?void 0:Tl.length)>0&&(Nl.mtlBlobs=Tl),(Sl=(zl=Object.values(Nl))==null?void 0:zl[0])!=null&&Sl.includes("http:")}})}else u.value=[];let da=Be.value;if((da==null?void 0:da.length)>0&&(da=da==null?void 0:da.map(Ha=>{var Ta,Va,ll,yl;let oa=(Ta=Ha==null?void 0:Ha.key)==null?void 0:Ta.split("/");return(t==null?void 0:t.compName)===(oa==null?void 0:oa[0])&&(Va=u.value)!=null&&Va.find(Da=>(Da==null?void 0:Da.prop)===(oa==null?void 0:oa[1]))&&(Ha.value=(yl=(ll=u.value)==null?void 0:ll.find(Da=>(Da==null?void 0:Da.prop)===(oa==null?void 0:oa[1])))==null?void 0:yl.value),Ha}),he.setTableViewContents(da)),t!=null&&t.formRules)c.value=t==null?void 0:t.formRules;else{let Ha={};(Il=ul.safeClone(u).value)==null||Il.forEach(oa=>{((oa==null?void 0:oa.isMain)===!0||(oa==null?void 0:oa.required)===!0)&&(Ha[(oa==null?void 0:oa.prop)??(oa==null?void 0:oa.name)]=[{required:!0,message:`${(oa==null?void 0:oa.label)||(oa==null?void 0:oa.prop)||(oa==null?void 0:oa.name)}不能为空`}])}),c.value=Ha}if(((Fl=$e==null?void 0:$e.contents)==null?void 0:Fl.length)>0){const Ha=[];(al=$e==null?void 0:$e.contents)==null||al.forEach((oa,Ta)=>{(oa==null?void 0:oa.label)!==""&&Ha.push({label:(oa==null?void 0:oa.label)??"",id:(oa==null?void 0:oa.id)??Ta,type:(oa==null?void 0:oa.type)??"",background:oa==null?void 0:oa.background})}),W.value=Ha}else W.value=[]},{deep:!0,immediate:!0}),a.watch(()=>Z.value,pe=>{Ca.value=pe===D.value},{immediate:!0}),(pe,$e)=>{var Le,_a;const Ve=a.resolveComponent("svg-icon"),ca=a.resolveComponent("el-switch"),ya=a.resolveComponent("el-checkbox"),Oe=a.resolveComponent("el-popover"),da=a.resolveComponent("el-checkbox-group");return a.openBlock(),a.createElementBlock("div",n3,[N.value===a.unref(Qn).TEXT?(a.openBlock(),a.createBlock(dc,{key:0,itemData:l.itemData,compName:l.compName,fields:u.value,disabled:Ca.value||ra()},null,8,["itemData","compName","fields","disabled"])):N.value===a.unref(Qn).BLOCK?(a.openBlock(),a.createBlock(Pp,{key:1,items:(_a=(Le=u.value)==null?void 0:Le.filter(Fe=>!(Fe!=null&&Fe.isFormColHidden)))==null?void 0:_a.map(Fe=>({label:Fe==null?void 0:Fe.label,value:Fe==null?void 0:Fe.value,width:(Fe==null?void 0:Fe.width)??1,field:Fe})),disabled:Ca.value||ra()},null,8,["items","disabled"])):(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass({"form-shadow-box":N.value===a.unref(Qn).ORDINARY})},[a.createVNode(ul.ssForm,{rowContents:u.value,formRules:c.value,buttonValue:W.value,isRowFlex:!1,isEnableWrap:!0,onOnButtonClick:K,onChange:Te,formDisabled:Ca.value||ra(),formLabelsOperable:Ue.value,isButtonRow:E.value,onPreview:Y,onBlurChange:j,onHandleColEditChange:Sa,onHandleColTypeChange:el,onRouteUrl:we,onClickTrigger:Re},{operateCol:a.withCtx(({renderColumns:Fe,formDisabled:ma,formLabelsOperable:ce})=>[a.createVNode(Oe,{title:"选择操作的标签",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:Ie},{reference:a.withCtx(()=>[a.createElementVNode("span",t3,[a.createVNode(Ve,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})])]),default:a.withCtx(()=>[a.createElementVNode("div",o3,[$e[1]||($e[1]=a.createElementVNode("div",{class:"group-title"},"表单操作",-1)),a.createVNode(ca,{"model-value":ma,"active-text":"禁用","inactive-text":"",onChange:le,style:{"margin-right":"8px"}},null,8,["model-value"]),a.createVNode(ca,{"model-value":ce,"active-text":"编辑所有标签","inactive-text":"",onChange:Qe},null,8,["model-value"]),$e[2]||($e[2]=a.createElementVNode("div",{class:"group-title"},"表单列操作",-1)),a.createVNode(da,{modelValue:ba.value,"onUpdate:modelValue":$e[0]||($e[0]=ga=>ba.value=ga),style:{height:"100%"},ref_key:"checkboxGroupRef",ref:ue,onChange:ka},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Fe,ga=>(a.openBlock(),a.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:ga.label},[a.createVNode(ya,{value:ga.label,style:{width:"100%",marginRight:0}},{default:a.withCtx(()=>[a.createElementVNode("span",null,a.toDisplayString(ga.label),1)]),_:2},1032,["value"]),a.createVNode(Oe,{title:"标签操作",placement:"left",teleported:!1,trigger:"hover"},{reference:a.withCtx(()=>[a.createVNode(Ve,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:a.withCtx(()=>{var ye;return[a.createElementVNode("div",i3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((ye=Object.keys(ga))==null?void 0:ye.filter(Ea=>{var Ye;return(Ye=$a.value)==null?void 0:Ye.find(Ke=>(Ke==null?void 0:Ke.value)===Ea)}),Ea=>{var Ye,Ke;return a.openBlock(),a.createElementBlock("div",{key:Ea},[a.createVNode(ul._sfc_main$1,{value:ga==null?void 0:ga[Ea],"active-text":(Ke=(Ye=$a.value)==null?void 0:Ye.find(Ce=>(Ce==null?void 0:Ce.value)===Ea))==null?void 0:Ke.label,inactiveText:"",onChange:Ce=>P(Ce,Ea,ga)},null,8,["value","active-text","onChange"])])}),128))])]}),_:2},1024),a.createElementVNode("span",s3,[a.createVNode(Ve,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:2},1032,["modelValue"])])]),_:2},1024)]),_:1},8,["rowContents","formRules","buttonValue","formDisabled","formLabelsOperable","isButtonRow"])],2)),A.value?(a.openBlock(),a.createBlock(ul.ssFilePreview,{key:3,fileDataList:C.value,onDestroy:V},null,8,["fileDataList"])):a.createCommentVNode("",!0),k.value?(a.openBlock(),a.createBlock(dr.ssDialog,{key:4,visible:k.value,onBeforeDestroy:r,style:{height:"700px",width:"1000px"}},{default:a.withCtx(()=>[a.createVNode(go.ThreeViewerHost,{files:v.value,onGetAnimationData:pe.onAnimationData},null,8,["files","onGetAnimationData"])]),_:1},8,["visible"])):a.createCommentVNode("",!0)])}}},ss=Ul._export_sfc(c3,[["__scopeId","data-v-b9cbe990"]]),Eo=a.ref(0),pc=l=>{var n;return!l||(l==null?void 0:l.length)===0?[]:(n=z.cloneDeep(l))==null?void 0:n.map(t=>(Eo.value++,t={label:(t==null?void 0:t.label)??"",prop:(t==null?void 0:t.label)==="操作"?"operate":t==null?void 0:t.prop,width:t!=null&&t.width?parseInt(t.width):"",fixed:(t==null?void 0:t.fixed)??void 0,sortable:(t==null?void 0:t.sortable)??!1,align:(t==null?void 0:t.align)??"left",showOverflowTooltip:(t==null?void 0:t.showOverflowTooltip)??!0,isNotDrag:(t==null?void 0:t.isNotDrag)??!1,isEditCol:(t==null?void 0:t.isEditCol)??!1,isOperate:(t==null?void 0:t.isOperate)??!1,id:(t==null?void 0:t.id)??Eo.value,children:pc(t==null?void 0:t.children)},t))},u3=l=>{var r;return(r=z.cloneDeep(l))==null?void 0:r.map(t=>(Eo.value++,t={label:(t==null?void 0:t.label)??"",prop:(t==null?void 0:t.label)==="操作"?"operate":t==null?void 0:t.prop,width:t!=null&&t.width?parseInt(t.width):"",fixed:(t==null?void 0:t.fixed)??void 0,sortable:(t==null?void 0:t.sortable)??!1,align:(t==null?void 0:t.align)??"left",showOverflowTooltip:(t==null?void 0:t.showOverflowTooltip)??!0,isNotDrag:(t==null?void 0:t.isNotDrag)??!1,isEditCol:(t==null?void 0:t.isEditCol)??!1,isOperate:(t==null?void 0:t.isOperate)??!1,id:(t==null?void 0:t.id)??Eo.value,children:pc(t==null?void 0:t.children)},t))},fc=(l,n)=>{var r;return l!=null&&l.find(t=>(t==null?void 0:t.id)===n)?(r=z.cloneDeep(l))==null?void 0:r.filter(s=>(s==null?void 0:s.id)!==n):(l=l==null?void 0:l.map(t=>(t.children=fc(t==null?void 0:t.children,n),t)),l)},hc=(l,n)=>{var r;return l!=null&&l.find(t=>(t==null?void 0:t.id)===(n==null?void 0:n.id))?(r=z.cloneDeep(l))==null?void 0:r.map(s=>((s==null?void 0:s.id)===(n==null?void 0:n.id)&&(s=n),s)):(l=l==null?void 0:l.map(t=>(t.children=hc(t==null?void 0:t.children,n),t)),l)},vc=(l,n)=>{var r;return l!=null&&l.find(t=>{var s;return(t==null?void 0:t.id)===((s=n==null?void 0:n.contents)==null?void 0:s.id)})?(r=z.cloneDeep(l))==null?void 0:r.map(s=>{var u;return(s==null?void 0:s.id)===((u=n==null?void 0:n.contents)==null?void 0:u.id)&&(s=n==null?void 0:n.contents),s}):(l=l==null?void 0:l.map(t=>(t.children=vc(t==null?void 0:t.children,n),t)),l)},mc=(l,n)=>{var r;return l!=null&&l.find(t=>(t==null?void 0:t.id)===(n==null?void 0:n.id))?(r=z.cloneDeep(l))==null?void 0:r.map(s=>((s==null?void 0:s.id)===(n==null?void 0:n.id)&&(s!=null&&s.children||(s.children=[]),s.children.push(n.contents)),s)):(l=l==null?void 0:l.map(t=>(t.children=mc(t==null?void 0:t.children,n),t)),l)},Ql=[{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"}],d3=[{label:"查看",value:"view"},{label:"修改",value:"fix"},{label:"删除",value:"delete"},{label:"三维算例",value:"modelExample"}],p3=[{label:"新增",value:"add"}],Dn=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:p3},{key:"background",label:"按钮背景色",type:"Color"}],Bn=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:d3},{key:"textColor",label:"按钮颜色",type:"Color"}],f3={class:"table-header-child"},h3={class:"table-header-child-main"},v3={class:"table-header-child-content"},m3={class:"table-header-child-content-item"},y3={class:"fix-button"},g3={key:0},b3={class:"form-content"},k3={__name:"tableNewChild",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(l,{emit:n}){const r=l,t=n,s=a.ref(!1),u=a.ref(""),k=sa.useTableComp(z.pinia),{tableIndex:h}=z.storeToRefs(k);a.ref(0);const v=a.ref(""),y=a.ref([]),c=a.ref([]),E=S=>{var N;s.value=!0;let $=[];Ql==null||Ql.forEach(x=>{let g=z.cloneDeep(h.value)+1;k.setTableIndex(g),$.push({label:x==null?void 0:x.label,name:x==null?void 0:x.label,type:x.type,value:S[x.key],id:h.value,contents:x==null?void 0:x.options})}),S!=null&&S.children&&((N=S==null?void 0:S.children)==null?void 0:N.length)>0&&$.push({children:S==null?void 0:S.children,isFormColHidden:!0}),v.value=S==null?void 0:S.id,y.value=$,c.value=$},A=S=>{t("fixChange",z.cloneDeep(S))},L=S=>{t("deleteChange",z.cloneDeep(S))},_=S=>{s.value=!0;let $=[];Ql==null||Ql.forEach(N=>{let x=z.cloneDeep(h.value)+1;k.setTableIndex(x),$.push({label:N==null?void 0:N.label,name:N==null?void 0:N.label,type:N.type,value:"",id:h.value,contents:N==null?void 0:N.options})}),u.value=S==null?void 0:S.id,y.value=$,c.value=$},W=S=>{let $=z.cloneDeep(c.value);$=$==null?void 0:$.map(N=>(N.children||(N.value=S==null?void 0:S[N.name]),N)),c.value=$},C=()=>{var $,N;y.value=c.value;let S={};if(v.value!=="")S.id=v.value,($=y.value)==null||$.forEach(x=>{const g=Ql==null?void 0:Ql.find(H=>(H==null?void 0:H.label)===(x==null?void 0:x.label));g?S[g.key]=x.value:x!=null&&x.children&&x.children.length>0&&(S.children=x.children)}),s.value=!1,t("fixChange",{contents:z.cloneDeep(S),id:u.value,type:"fix"});else{let x=z.cloneDeep(h.value)+1;k.setTableIndex(x),S.id="id"+h.value,(N=y.value)==null||N.forEach(g=>{const H=Ql==null?void 0:Ql.find(q=>(q==null?void 0:q.label)===(g==null?void 0:g.label));H?S[H.key]=g.value:g!=null&&g.children&&g.children.length>0&&(S.children=g.children)}),s.value=!1,t("fixChange",{contents:z.cloneDeep(S),id:u.value,type:"add"})}v.value="",y.value=[],c.value=[]},M=()=>{s.value=!1,v.value="",u.value="",y.value=[],c.value=[]},ae=S=>{z.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{t("deleteChange",S),Za.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(S,$)=>{const N=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",f3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r==null?void 0:r.tableChildContents,(x,g)=>(a.openBlock(),a.createElementBlock("div",h3,[a.createElementVNode("div",v3,[a.createElementVNode("div",m3,a.toDisplayString(x.label),1),a.createElementVNode("div",y3,[a.createVNode(N,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:H=>_(x)},null,8,["onClick"]),a.createVNode(N,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:H=>E(x)},null,8,["onClick"]),a.createVNode(N,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:H=>ae(x)},null,8,["onClick"])])]),x!=null&&x.children&&x.children.length>0?(a.openBlock(),a.createElementBlock("div",g3,[a.createVNode(yc,{tableChildContents:x==null?void 0:x.children,onDeleteChange:L,onFixChange:A},null,8,["tableChildContents"])])):a.createCommentVNode("",!0)]))),256)),a.createVNode(dr.ssDialog,{visible:s.value,onBeforeDestroy:M,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",b3,[(a.openBlock(),a.createBlock(ul.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:W},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",{class:"dialog-footer"},[a.createElementVNode("div",{onClick:M,class:"cancel-button button"},a.toDisplayString("取消")),a.createElementVNode("div",{class:"ok-button button",onClick:C},a.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},x3=Ul._export_sfc(k3,[["__scopeId","data-v-e0fef72d"]]),_3={class:"table-header-child"},w3={class:"table-header-child-main"},C3={class:"table-header-child-content"},E3={class:"table-header-child-content-item"},S3={class:"fix-button"},D3={key:0},B3={class:"form-content"},N3={class:"dialog-footer"},T3={__name:"tableChildren",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(l,{emit:n}){const r=l,t=n,s=a.ref(!1),u=a.ref(""),k=sa.useTableComp(z.pinia),{tableIndex:h}=z.storeToRefs(k),v=a.ref(""),y=a.ref([]),c=a.ref([]),E=S=>{t("fixChange",z.cloneDeep(S))},A=S=>{var N;s.value=!0;let $=[];Ql==null||Ql.forEach(x=>{let g=z.cloneDeep(h.value)+1;k.setTableIndex(g),$.push({label:x==null?void 0:x.label,name:x==null?void 0:x.label,type:x.type,value:S[x.key],id:h.value,contents:x==null?void 0:x.options})}),S!=null&&S.children&&((N=S==null?void 0:S.children)==null?void 0:N.length)>0&&$.push({children:S==null?void 0:S.children,isFormColHidden:!0}),v.value=S==null?void 0:S.id,y.value=$,c.value=$},L=S=>{s.value=!0;let $=[];Ql==null||Ql.forEach(N=>{let x=z.cloneDeep(h.value)+1;k.setTableIndex(x),$.push({label:N==null?void 0:N.label,name:N==null?void 0:N.label,type:N.type,value:"",id:h.value,contents:N==null?void 0:N.options})}),u.value=S==null?void 0:S.id,y.value=$,c.value=$},_=S=>{let $=z.cloneDeep(c.value);$=$==null?void 0:$.map(N=>(N.children||(N.value=S==null?void 0:S[N.name]),N)),c.value=$},W=()=>{var $,N;y.value=c.value;let S={};if(v.value!=="")S.id=v.value,($=y.value)==null||$.forEach(x=>{const g=Ql==null?void 0:Ql.find(H=>(H==null?void 0:H.label)===(x==null?void 0:x.label));g?S[g.key]=x.value:x!=null&&x.children&&x.children.length>0&&(S.children=x.children)}),s.value=!1,t("fixChange",{contents:z.cloneDeep(S),id:u.value,type:"fix"});else{let x=z.cloneDeep(h.value)+1;k.setTableIndex(x),S.id="idChild"+h.value,(N=y.value)==null||N.forEach(g=>{const H=Ql==null?void 0:Ql.find(q=>(q==null?void 0:q.label)===(g==null?void 0:g.label));H?S[H.key]=g.value:g!=null&&g.children&&g.children.length>0&&(S.children=g.children)}),s.value=!1,t("fixChange",{contents:z.cloneDeep(S),id:u.value,type:"add"})}v.value="",y.value=[],c.value=[]},C=()=>{s.value=!1,v.value="",u.value="",y.value=[],c.value=[]},M=S=>{z.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{t("deleteChange",S),Za.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},ae=S=>{t("deleteChange",S)};return(S,$)=>{const N=a.resolveComponent("svg-icon"),x=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",_3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r==null?void 0:r.tableChildContents,(g,H)=>(a.openBlock(),a.createElementBlock("div",w3,[a.createElementVNode("div",C3,[a.createElementVNode("div",E3,a.toDisplayString(g.label),1),a.createElementVNode("div",S3,[a.createVNode(N,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:q=>L(g)},null,8,["onClick"]),a.createVNode(N,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:q=>A(g)},null,8,["onClick"]),a.createVNode(N,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:q=>M(g)},null,8,["onClick"])])]),g!=null&&g.children&&g.children.length>0?(a.openBlock(),a.createElementBlock("div",D3,[a.createVNode(x3,{tableChildContents:g==null?void 0:g.children,onDeleteChange:ae,onFixChange:E},null,8,["tableChildContents"])])):a.createCommentVNode("",!0)]))),256)),a.createVNode(dr.ssDialog,{visible:s.value,onBeforeDestroy:C,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",B3,[(a.openBlock(),a.createBlock(ul.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:_},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",N3,[a.createVNode(x,{onClick:C,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>$[0]||($[0]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[0]}),a.createVNode(x,{class:"ok-button button",onClick:W,id:"themeButton"},{default:a.withCtx(()=>$[1]||($[1]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},yc=Ul._export_sfc(T3,[["__scopeId","data-v-ebd68fa1"]]),A3={class:"table-operate-content"},M3={class:"table-operate-item"},z3={class:"operate-title"},O3={class:"operate-content"},I3={class:"fix-content"},L3={class:"fix-content-label"},V3={class:"fix-button"},R3={key:0},$3={class:"operate-title"},P3={class:"operate-content"},F3={class:"fix-content"},j3={class:"fix-content-label"},H3={class:"fix-button"},U3={class:"operate-title"},q3={class:"operate-content"},K3={class:"fix-content"},W3={class:"fix-content-label"},Y3={class:"fix-button"},J3={class:"operate-title"},G3={class:"operate-content"},X3={class:"fix-content"},Z3={class:"fix-content-label"},Q3={class:"fix-button"},e1={class:"operate-content"},a1={style:{display:"flex","justify-content":"space-between"}},l1={class:"form-content"},r1={class:"dialog-footer"},n1={class:"form-content"},o1={class:"dialog-footer"},i1={class:"form-content"},s1={class:"dialog-footer"},c1={class:"form-content"},u1={class:"dialog-footer"},d1={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,t=n,s=a.ref([]),u=a.ref(!1),k=a.ref(!1),h=a.ref([]),v=a.ref(!1),y=a.ref([]),c=a.ref(!1),E=a.ref([]),A=a.ref(""),L=a.ref(""),_=a.ref([]),W=a.ref([]),C=a.ref([]),M=a.ref([]),ae=a.ref(!1),S=a.ref([]),$=a.ref([]),N=a.ref(0),x=a.ref([]),g=a.ref([]),H=a.ref([]),q=()=>{ae.value=!0;let P=[];Dn==null||Dn.forEach(j=>{N.value++,P.push({label:j==null?void 0:j.label,name:j==null?void 0:j.label,type:j.type,value:(j==null?void 0:j.key)==="background"?"var(--ssComponent-primary-color)":"",id:N.value,contents:j==null?void 0:j.options})}),S.value=P,$.value=P},G=()=>{var j,Y,V;k.value=!0;let P=[];(V=(Y=(j=sa.FormContent)==null?void 0:j.find(K=>(K==null?void 0:K.key)==="Input"))==null?void 0:Y.value)==null||V.forEach(K=>{N.value++,P.push({label:K==null?void 0:K.label,name:(K==null?void 0:K.name)||(K==null?void 0:K.label),type:K.type,value:(K==null?void 0:K.label)==="类型"?"Input":"",id:N.value,contents:K==null?void 0:K.options})}),x.value=P,g.value=P},he=P=>{P||(x.value=g.value)},Be=async P=>{var j,Y,V,K,Te,ee,ke,pe,$e,Ve,ca,ya;if((P==null?void 0:P.类型)!==((Y=(j=g.value)==null?void 0:j.find(Oe=>(Oe==null?void 0:Oe.label)==="类型"))==null?void 0:Y.value)){let Oe=[],da=await((Te=(K=(V=sa.FormContent)==null?void 0:V.find(Le=>(Le==null?void 0:Le.key)===((P==null?void 0:P.类型)===""?"Input":P==null?void 0:P.类型)))==null?void 0:K.value)==null?void 0:Te.value)?await((Ve=($e=(pe=sa.FormContent)==null?void 0:pe.find(Le=>(Le==null?void 0:Le.key)===((P==null?void 0:P.类型)===""?"Input":P==null?void 0:P.类型)))==null?void 0:$e.value)==null?void 0:Ve.value):(ke=(ee=sa.FormContent)==null?void 0:ee.find(Le=>(Le==null?void 0:Le.key)===((P==null?void 0:P.类型)===""?"Input":P==null?void 0:P.类型)))==null?void 0:ke.value;if(da==null||da.forEach(Le=>{N.value++,Oe.push({label:Le==null?void 0:Le.label,name:(Le==null?void 0:Le.name)||(Le==null?void 0:Le.label),type:Le.type,value:Le!=null&&Le.属性名?(P==null?void 0:P.prop)||(P==null?void 0:P.name)||(P==null?void 0:P.label):(P==null?void 0:P[Le.label])??"",id:N.value,contents:Le==null?void 0:Le.options,prop:(Le==null?void 0:Le.prop)||(Le==null?void 0:Le.name)||(Le==null?void 0:Le.label)})}),P!=null&&P.菜单选项&&((ca=P==null?void 0:P.菜单选项)==null?void 0:ca.length)>0){const Le=await sa.menuToContentType(P==null?void 0:P.菜单选项);Oe=Oe==null?void 0:Oe.map(_a=>((_a==null?void 0:_a.name)==="组信息选项"&&(_a.contents=Le),_a))}g.value=await sa.selectToBase(z.cloneDeep(Oe)),x.value=await sa.selectToBase(z.cloneDeep(Oe))}else{let Oe=z.cloneDeep(x.value);if(Oe=Oe==null?void 0:Oe.map(da=>(da.value=P==null?void 0:P[da.name],da)),P!=null&&P.菜单选项&&((ya=P==null?void 0:P.菜单选项)==null?void 0:ya.length)>0){const da=await sa.menuToContentType(P==null?void 0:P.菜单选项);Oe=Oe==null?void 0:Oe.map(Le=>((Le==null?void 0:Le.name)==="组信息选项"&&(Le.contents=da),Le))}Oe=sa.formToOptionsContents(Oe),g.value=await sa.selectToBase(z.cloneDeep(Oe))}},xe=async P=>{await Be(P),x.value=g.value},te=(P,j)=>{if((j==null?void 0:j.type)=="Select"&&(P==null?void 0:P.key)==="selectRelateType"){const Y=j==null?void 0:j.optionUrl;return(Y==null?void 0:Y.selectRelateType)||j[P.key]}if((j==null?void 0:j.type)=="Select"&&(P==null?void 0:P.key)==="menuSelect"){const Y=j==null?void 0:j.optionUrl;return(Y==null?void 0:Y.menuSelect)||j[P.key]}if((j==null?void 0:j.type)=="Select"&&(P==null?void 0:P.key)==="groupSelect"){const Y=j==null?void 0:j.optionUrl;return(Y==null?void 0:Y.groupSelect)||j[P.key]}if((j==null?void 0:j.type)=="Select"&&(P==null?void 0:P.key)==="originalContent")return(j==null?void 0:j.value)||j[P.key];if((j==null?void 0:j.type)=="Select"&&(P==null?void 0:P.key)==="multiple"){const Y=j[P.key];return $s(Y)?Y:P.default}return(P==null?void 0:P.label)==="类型"&&j[P.key]===""?"Input":(P==null?void 0:P.key)==="isFormColHidden"&&!j[P.key]?!1:j[P.key]},me=async P=>{var V,K,Te,ee,ke,pe,$e,Ve,ca;k.value=!0;let j=[];const Y=await((Te=(K=(V=sa.FormContent)==null?void 0:V.find(ya=>(ya==null?void 0:ya.key)===((P==null?void 0:P.type)===""?"Input":P==null?void 0:P.type)))==null?void 0:K.value)==null?void 0:Te.value)?await((Ve=($e=(pe=sa.FormContent)==null?void 0:pe.find(ya=>(ya==null?void 0:ya.key)===((P==null?void 0:P.type)===""?"Input":P==null?void 0:P.type)))==null?void 0:$e.value)==null?void 0:Ve.value):(ke=(ee=sa.FormContent)==null?void 0:ee.find(ya=>(ya==null?void 0:ya.key)===((P==null?void 0:P.type)===""?"Input":P==null?void 0:P.type)))==null?void 0:ke.value;if(Y==null||Y.forEach(ya=>{N.value++,j.push({label:ya==null?void 0:ya.label,name:(ya==null?void 0:ya.name)||(ya==null?void 0:ya.label),type:ya.type,value:(ya==null?void 0:ya.label)==="属性名"?(P==null?void 0:P.prop)||(P==null?void 0:P.name)||(P==null?void 0:P.label):te(ya,P),id:N.value,contents:ya==null?void 0:ya.options})}),P!=null&&P.menuSelect&&((ca=P==null?void 0:P.menuSelect)==null?void 0:ca.length)>0){const ya=await sa.menuToContentType(P==null?void 0:P.menuSelect);j=j==null?void 0:j.map(Oe=>((Oe==null?void 0:Oe.name)==="组信息选项"&&(Oe.contents=ya),Oe))}A.value=P==null?void 0:P.id,x.value=await sa.selectToBase(sa.formToOptionsContents(j)),g.value=await sa.selectToBase(sa.formToOptionsContents(j))},Z=P=>{z.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var j,Y;H.value=(j=z.cloneDeep(H.value))==null?void 0:j.filter(V=>(V==null?void 0:V.id)!==(P==null?void 0:P.id)),t("change",(Y=z.cloneDeep(r.originalItemContents))==null?void 0:Y.map(V=>((V==null?void 0:V.key)==="tableToForm"&&(V.contents=H.value),V))),Za.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},ue=()=>{k.value=!1,x.value=[],A.value=""},Ue=async()=>{var V,K,Te,ee,ke,pe,$e,Ve,ca,ya;x.value=g.value;let P={};A.value!==""?P.id=A.value:(N.value++,P.id="id"+N.value);let j=await((Te=(K=(V=sa.FormContent)==null?void 0:V.find(Oe=>{var da,Le;return(Oe==null?void 0:Oe.key)===(((Le=(da=x.value)==null?void 0:da.find(_a=>(_a==null?void 0:_a.label)==="类型"))==null?void 0:Le.value)??"label")}))==null?void 0:K.value)==null?void 0:Te.value)??((ke=(ee=sa.FormContent)==null?void 0:ee.find(Oe=>{var da,Le;return(Oe==null?void 0:Oe.key)===(((Le=(da=x.value)==null?void 0:da.find(_a=>(_a==null?void 0:_a.label)==="类型"))==null?void 0:Le.value)??"label")}))==null?void 0:ke.value);if((pe=x.value)==null||pe.forEach(Oe=>{const da=j==null?void 0:j.find(Le=>(Le==null?void 0:Le.label)===(Oe==null?void 0:Oe.label));da&&(P[da.key]=Oe.value)}),P.name=P.label,($e=H.value)!=null&&$e.find(Oe=>Oe.id===P.id))H.value=(Ve=H.value)==null?void 0:Ve.map(Oe=>(Oe.id===P.id&&(Oe=P),Oe));else{let Oe=z.cloneDeep(H.value);H.value||(H.value=[]),Oe.push(P),H.value=Oe}H.value=H.value.map(({id:Oe,...da})=>da),k.value=!1,A.value="";let Y=z.cloneDeep(r.originalItemContents);(ca=z.cloneDeep(r.originalItemContents))!=null&&ca.find(Oe=>(Oe==null?void 0:Oe.key)==="tableToForm")?Y=(ya=z.cloneDeep(r.originalItemContents))==null?void 0:ya.map(Oe=>((Oe==null?void 0:Oe.key)==="tableToForm"&&(Oe.contents=H.value),Oe)):Y.push({key:"tableToForm",contents:H.value}),t("change",Y)},Ca=P=>{ae.value=!0;let j=[];Dn==null||Dn.forEach(Y=>{N.value++,j.push({label:Y==null?void 0:Y.label,name:Y==null?void 0:Y.label,type:Y.type,value:P[Y.key],id:N.value,contents:Y==null?void 0:Y.options})}),A.value=P==null?void 0:P.id,S.value=j,$.value=j};a.watch(()=>c.value,()=>{var j,Y;let P=z.cloneDeep(r.originalItemContents);(j=z.cloneDeep(r.originalItemContents))!=null&&j.find(V=>(V==null?void 0:V.key)==="page")?P=(Y=z.cloneDeep(r.originalItemContents))==null?void 0:Y.map(V=>((V==null?void 0:V.key)==="page"&&(V.contents=c.value),V)):P.push({key:"page",contents:c.value}),t("change",P)},{deep:!0});const oe=P=>{z.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var j,Y;W.value=(j=z.cloneDeep(W.value))==null?void 0:j.filter(V=>(V==null?void 0:V.id)!==(P==null?void 0:P.id)),t("change",(Y=z.cloneDeep(r.originalItemContents))==null?void 0:Y.map(V=>((V==null?void 0:V.key)==="extraButton"&&(V.contents=W.value),V))),Za.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},D=()=>{var Y,V,K,Te,ee;S.value=$.value;let P={};if(A.value!==""?P.id=A.value:(N.value++,P.id="id"+N.value),(Y=S.value)==null||Y.forEach(ke=>{const pe=Dn==null?void 0:Dn.find($e=>($e==null?void 0:$e.label)===(ke==null?void 0:ke.label));pe?P[pe.key]=ke.value:ke!=null&&ke.children&&ke.children.length>0&&(P.children=ke.children)}),(V=W.value)!=null&&V.find(ke=>ke.id===P.id))W.value=(K=W.value)==null?void 0:K.map(ke=>(ke.id===P.id&&(ke=P),ke));else{let ke=z.cloneDeep(W.value)??[];ke.push(P),W.value=ke}ae.value=!1,A.value="";let j=z.cloneDeep(r.originalItemContents);(Te=z.cloneDeep(r.originalItemContents))!=null&&Te.find(ke=>(ke==null?void 0:ke.key)==="extraButton")?j=(ee=z.cloneDeep(r.originalItemContents))==null?void 0:ee.map(ke=>((ke==null?void 0:ke.key)==="extraButton"&&(ke.contents=W.value),ke)):j.push({key:"extraButton",contents:W.value}),t("change",j)},ne=P=>{let j=z.cloneDeep($.value);j=j==null?void 0:j.map(Y=>(Y.children||(Y.value=P==null?void 0:P[Y.name]),Y)),$.value=j},ve=()=>{ae.value=!1,S.value=[],A.value=""},se=P=>{v.value=!0;let j=[];Bn==null||Bn.forEach(Y=>{N.value++,j.push({label:Y==null?void 0:Y.label,name:Y==null?void 0:Y.label,type:Y.type,value:P[Y.key],id:N.value,contents:Y==null?void 0:Y.options})}),A.value=P==null?void 0:P.id,C.value=j,M.value=j},_e=P=>{z.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var j,Y;_.value=(j=z.cloneDeep(_.value))==null?void 0:j.filter(V=>(V==null?void 0:V.id)!==(P==null?void 0:P.id)),t("change",(Y=z.cloneDeep(r.originalItemContents))==null?void 0:Y.map(V=>((V==null?void 0:V.key)==="rowButton"&&(V.contents=_.value),V))),Za.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},ra=()=>{u.value=!0;let P=[];Ql==null||Ql.forEach(j=>{N.value++,P.push({label:j==null?void 0:j.label,name:j==null?void 0:j.label,type:j.type,value:"",id:N.value,contents:j==null?void 0:j.options})}),y.value=P,E.value=P},ba=()=>{v.value=!0;let P=[];Bn==null||Bn.forEach(j=>{N.value++,P.push({label:j==null?void 0:j.label,name:j==null?void 0:j.label,type:j.type,value:"",id:N.value,contents:j==null?void 0:j.options})}),C.value=P,M.value=P},$a=P=>{let j=z.cloneDeep(M.value);j=j==null?void 0:j.map(Y=>(Y.children||(Y.value=P==null?void 0:P[Y.name]),Y)),M.value=j},le=()=>{var Y,V,K,Te,ee;C.value=M.value;let P={};if(A.value!==""?P.id=A.value:(N.value++,P.id="id"+N.value),(Y=C.value)==null||Y.forEach(ke=>{const pe=Bn==null?void 0:Bn.find($e=>($e==null?void 0:$e.label)===(ke==null?void 0:ke.label));pe?P[pe.key]=ke.value:ke!=null&&ke.children&&ke.children.length>0&&(P.children=ke.children)}),(V=_.value)!=null&&V.find(ke=>ke.id===P.id))_.value=(K=_.value)==null?void 0:K.map(ke=>(ke.id===P.id&&(ke=P),ke));else{let ke=z.cloneDeep(_.value);ke.push(P),_.value=ke}v.value=!1,A.value="";let j=z.cloneDeep(r.originalItemContents);(Te=z.cloneDeep(r.originalItemContents))!=null&&Te.find(ke=>(ke==null?void 0:ke.key)==="rowButton")?j=(ee=z.cloneDeep(r.originalItemContents))==null?void 0:ee.map(ke=>((ke==null?void 0:ke.key)==="rowButton"&&(ke.contents=_.value),ke)):j.push({key:"rowButton",contents:_.value}),t("change",j)},Qe=()=>{v.value=!1,A.value="",M.value=[],C.value=[]},Ie=P=>{u.value=!0;let j=[];Ql==null||Ql.forEach(Y=>{N.value++,j.push({label:Y==null?void 0:Y.label,name:Y==null?void 0:Y.label,type:Y.type,value:"",id:N.value,contents:Y==null?void 0:Y.options})}),y.value=j,L.value=P==null?void 0:P.id,E.value=j},ka=P=>{var j;h.value=fc(z.cloneDeep(h.value),P==null?void 0:P.id),t("change",(j=z.cloneDeep(r.originalItemContents))==null?void 0:j.map(Y=>{var V;return(Y==null?void 0:Y.key)==="header"&&(Y.contents=(V=h.value)!=null&&V.some(K=>K==null?void 0:K.children)?[h.value]:h.value),Y}))},Re=P=>{var Y,V,K;P.type==="fix"?P.id!==""?h.value=vc(h.value,P):h.value=hc(h.value,P==null?void 0:P.contents):h.value=mc(h.value,P),h.value=(Y=h.value)!=null&&Y.some(Te=>Te==null?void 0:Te.children)?[h.value]:h.value,A.value="";let j=z.cloneDeep(r.originalItemContents);(V=z.cloneDeep(r.originalItemContents))!=null&&V.find(Te=>(Te==null?void 0:Te.key)==="header")?j=(K=z.cloneDeep(r.originalItemContents))==null?void 0:K.map(Te=>((Te==null?void 0:Te.key)==="header"&&(Te.contents=h.value),Te)):j.push({key:"header",contents:h.value}),t("change",j)},we=P=>{var Y;u.value=!0;let j=[];Ql==null||Ql.forEach(V=>{N.value++,j.push({label:V==null?void 0:V.label,name:V==null?void 0:V.label,type:V.type,value:P[V.key],id:N.value,contents:V==null?void 0:V.options})}),P!=null&&P.children&&((Y=P==null?void 0:P.children)==null?void 0:Y.length)>0&&j.push({children:P==null?void 0:P.children,isFormColHidden:!0}),A.value=P==null?void 0:P.id,L.value="",y.value=j,E.value=j},ze=P=>{let j=z.cloneDeep(E.value);j=j==null?void 0:j.map(Y=>(Y.children||(Y.value=P==null?void 0:P[Y.name]),Y)),E.value=j},qe=()=>{u.value=!1,A.value="",L.value="",E.value=[]},Sa=()=>{var Y,V,K,Te,ee,ke;y.value=E.value;let P={};if(A.value!==""?P.id=A.value:(N.value++,P.id="id"+N.value),(Y=y.value)==null||Y.forEach(pe=>{const $e=Ql==null?void 0:Ql.find(Ve=>(Ve==null?void 0:Ve.label)===(pe==null?void 0:pe.label));$e?P[$e.key]=pe.value:pe!=null&&pe.children&&pe.children.length>0&&(P.children=pe.children)}),(V=h.value)!=null&&V.find(pe=>pe.id===P.id))h.value=(K=h.value)==null?void 0:K.map(pe=>(pe.id===P.id&&(pe=P),pe));else{let pe=z.cloneDeep(h.value)??[];L.value===""?pe.push(P):pe=pe==null?void 0:pe.map($e=>($e.id===L.value&&($e.children||($e.children=[]),$e.children.push(P)),$e)),h.value=pe}h.value=(Te=h.value)!=null&&Te.some(pe=>pe==null?void 0:pe.children)?[h.value]:h.value,u.value=!1,A.value="",L.value="";let j=z.cloneDeep(r.originalItemContents);(ee=z.cloneDeep(r.originalItemContents))!=null&&ee.find(pe=>(pe==null?void 0:pe.key)==="header")?j=(ke=z.cloneDeep(r.originalItemContents))==null?void 0:ke.map(pe=>((pe==null?void 0:pe.key)==="header"&&(pe.contents=h.value),pe)):j.push({key:"header",contents:h.value}),t("change",j)},el=P=>{z.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var j,Y;h.value=(j=z.cloneDeep(h.value))==null?void 0:j.filter(V=>(V==null?void 0:V.id)!==(P==null?void 0:P.id)),t("change",(Y=z.cloneDeep(r.originalItemContents))==null?void 0:Y.map(V=>{var K;return(V==null?void 0:V.key)==="header"&&(V.contents=(K=h.value)!=null&&K.some(Te=>Te==null?void 0:Te.children)?[h.value]:h.value),V})),Za.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return a.watch(()=>r.originalItemContents,()=>{var P,j,Y,V,K,Te,ee,ke,pe,$e,Ve,ca,ya,Oe,da,Le,_a,Fe,ma;if(!(!r.originalItemContents||r.originalItemContents.length===0))if(s.value=z.cloneDeep(r.originalItemContents),h.value=(j=(P=s.value)==null?void 0:P.find(ce=>(ce==null?void 0:ce.key)==="header"))==null?void 0:j.contents,_.value=(V=(Y=s.value)==null?void 0:Y.find(ce=>(ce==null?void 0:ce.key)==="rowButton"))==null?void 0:V.contents,W.value=(Te=(K=s.value)==null?void 0:K.find(ce=>(ce==null?void 0:ce.key)==="extraButton"))==null?void 0:Te.contents,c.value=(ke=(ee=s.value)==null?void 0:ee.find(ce=>(ce==null?void 0:ce.key)==="page"))!=null&&ke.contents?!!(($e=(pe=s.value)==null?void 0:pe.find(ce=>(ce==null?void 0:ce.key)==="page"))!=null&&$e.contents):!1,H.value=(ca=(Ve=s.value)==null?void 0:Ve.find(ce=>(ce==null?void 0:ce.key)==="tableToForm"))==null?void 0:ca.contents,h.value=(ya=h.value)==null?void 0:ya.map((ce,ga)=>(Array.isArray(ce)?ce=u3(ce):ce={label:(ce==null?void 0:ce.label)??"",prop:(ce==null?void 0:ce.label)==="操作"?"operate":ce==null?void 0:ce.prop,width:ce!=null&&ce.width?parseInt(ce.width):"",fixed:(ce==null?void 0:ce.fixed)??void 0,sortable:(ce==null?void 0:ce.sortable)??!1,align:(ce==null?void 0:ce.align)??"left",showOverflowTooltip:(ce==null?void 0:ce.showOverflowTooltip)??!0,isNotDrag:(ce==null?void 0:ce.isNotDrag)??!1,isEditCol:(ce==null?void 0:ce.isEditCol)??!1,isOperate:(ce==null?void 0:ce.isOperate)??!1,id:(ce==null?void 0:ce.id)??ga,formMenuSelect:(ce==null?void 0:ce.formMenuSelect)??void 0,groupSelect:(ce==null?void 0:ce.groupSelect)??void 0},ce)),h.value=(Oe=h.value)!=null&&Oe.every(ce=>Array.isArray(ce))?(da=h.value)==null?void 0:da[0]:h.value,_.value=(Le=_.value)==null?void 0:Le.map((ce,ga)=>ce={label:(ce==null?void 0:ce.label)??"",type:(ce==null?void 0:ce.type)??"",textColor:(ce==null?void 0:ce.textColor)??"#000000",id:(ce==null?void 0:ce.id)??ga}),W.value=(_a=W.value)==null?void 0:_a.map((ce,ga)=>ce={label:(ce==null?void 0:ce.label)??"",type:(ce==null?void 0:ce.type)??"",background:(ce==null?void 0:ce.background)??"var(--ssComponent-primary-color)",id:(ce==null?void 0:ce.id)??ga}),H.value)H.value=(ma=H.value)==null?void 0:ma.map(ce=>{N.value++;let ga=ce;return ga.id=N.value,ga});else{let ce=[];const ga=(Fe=sa.getColumnChild(z.cloneDeep(h.value)))==null?void 0:Fe.filter(ye=>(ye==null?void 0:ye.prop)!=="operate");ga==null||ga.forEach(ye=>{var Ea;N.value++,ce.push({label:ye==null?void 0:ye.label,name:(ye==null?void 0:ye.prop)||(ye==null?void 0:ye.label),type:ye!=null&&ye.groupSelect?"Select":"Input",value:"",id:N.value,contents:ye==null?void 0:ye.options,menuSelect:ye==null?void 0:ye.formMenuSelect,groupSelect:(Ea=ye==null?void 0:ye.groupSelect)==null?void 0:Ea.split(":"),selectRelateType:"关联绑定列"})}),H.value=ce}},{deep:!0,immediate:!0}),(P,j)=>{const Y=a.resolveComponent("svg-icon"),V=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",A3,[a.createElementVNode("div",M3,[a.createElementVNode("div",z3,[j[2]||(j[2]=a.createElementVNode("div",null,a.toDisplayString("表头"),-1)),a.createVNode(V,{class:"icon-content",onClick:ra,id:"themeButton"},{icon:a.withCtx(()=>[a.createVNode(Y,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[j[1]||(j[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",O3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.value,(K,Te)=>(a.openBlock(),a.createElementBlock("div",{key:Te},[a.createElementVNode("div",I3,[a.createElementVNode("div",L3,a.toDisplayString(K==null?void 0:K.label),1),a.createElementVNode("div",V3,[a.createVNode(Y,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ee=>Ie(K)},null,8,["onClick"]),a.createVNode(Y,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ee=>we(K)},null,8,["onClick"]),a.createVNode(Y,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ee=>el(K)},null,8,["onClick"])])]),K!=null&&K.children&&K.children.length>0?(a.openBlock(),a.createElementBlock("div",R3,[a.createVNode(yc,{tableChildContents:K==null?void 0:K.children,onDeleteChange:ka,onFixChange:Re},null,8,["tableChildContents"])])):a.createCommentVNode("",!0)]))),128))]),a.createElementVNode("div",$3,[j[4]||(j[4]=a.createElementVNode("div",null,a.toDisplayString("行内按钮"),-1)),a.createVNode(V,{class:"icon-content",id:"themeButton",onClick:ba},{icon:a.withCtx(()=>[a.createVNode(Y,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[j[3]||(j[3]=a.createTextVNode(" 新增 "))]),_:1,__:[3]})]),a.createElementVNode("div",P3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(_.value,(K,Te)=>(a.openBlock(),a.createElementBlock("div",{key:Te},[a.createElementVNode("div",F3,[a.createElementVNode("div",j3,a.toDisplayString(K==null?void 0:K.label),1),a.createElementVNode("div",H3,[a.createVNode(Y,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ee=>se(K)},null,8,["onClick"]),a.createVNode(Y,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ee=>_e(K)},null,8,["onClick"])])])]))),128))]),a.createElementVNode("div",U3,[j[6]||(j[6]=a.createElementVNode("div",null,a.toDisplayString("表外按钮"),-1)),a.createVNode(V,{class:"icon-content",id:"themeButton",onClick:q},{icon:a.withCtx(()=>[a.createVNode(Y,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[j[5]||(j[5]=a.createTextVNode(" 新增 "))]),_:1,__:[5]})]),a.createElementVNode("div",q3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(W.value,(K,Te)=>(a.openBlock(),a.createElementBlock("div",{key:Te},[a.createElementVNode("div",K3,[a.createElementVNode("div",W3,a.toDisplayString(K==null?void 0:K.label),1),a.createElementVNode("div",Y3,[a.createVNode(Y,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ee=>Ca(K)},null,8,["onClick"]),a.createVNode(Y,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ee=>oe(K)},null,8,["onClick"])])])]))),128))]),a.createElementVNode("div",J3,[j[8]||(j[8]=a.createElementVNode("div",null,a.toDisplayString("表格弹框字段设置"),-1)),a.createVNode(V,{class:"icon-content",id:"themeButton",onClick:G},{icon:a.withCtx(()=>[a.createVNode(Y,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[j[7]||(j[7]=a.createTextVNode(" 新增 "))]),_:1,__:[7]})]),a.createElementVNode("div",G3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(H.value,(K,Te)=>(a.openBlock(),a.createElementBlock("div",{key:Te},[a.createElementVNode("div",X3,[a.createElementVNode("div",Z3,a.toDisplayString(K==null?void 0:K.label),1),a.createElementVNode("div",Q3,[a.createVNode(Y,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ee=>me(K)},null,8,["onClick"]),a.createVNode(Y,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ee=>Z(K)},null,8,["onClick"])])])]))),128))]),j[10]||(j[10]=a.createElementVNode("div",{class:"operate-title"},[a.createElementVNode("div",null,a.toDisplayString("分页"))],-1)),a.createElementVNode("div",e1,[a.createElementVNode("div",a1,[j[9]||(j[9]=a.createElementVNode("div",{class:"operate-center-content"},a.toDisplayString("是否分页"),-1)),a.createVNode(ul._sfc_main$1,{modelValue:c.value,"onUpdate:modelValue":j[0]||(j[0]=K=>c.value=K)},null,8,["modelValue"])])])]),a.createVNode(dr.ssDialog,{visible:u.value,onBeforeDestroy:qe,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",l1,[(a.openBlock(),a.createBlock(ul.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:ze},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",r1,[a.createVNode(V,{onClick:qe,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>j[11]||(j[11]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[11]}),a.createVNode(V,{class:"ok-button button",onClick:Sa,id:"themeButton"},{default:a.withCtx(()=>j[12]||(j[12]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible"]),a.createVNode(dr.ssDialog,{visible:v.value,onBeforeDestroy:Qe,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",n1,[(a.openBlock(),a.createBlock(ul.ssForm,{rowContents:C.value,key:C.value,isEnableWrap:!0,onChange:$a},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",o1,[a.createVNode(V,{onClick:Qe,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>j[13]||(j[13]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[13]}),a.createVNode(V,{class:"ok-button button",onClick:le,id:"themeButton"},{default:a.withCtx(()=>j[14]||(j[14]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible"]),a.createVNode(dr.ssDialog,{visible:ae.value,onBeforeDestroy:ve,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",i1,[(a.openBlock(),a.createBlock(ul.ssForm,{rowContents:S.value,key:S.value,isEnableWrap:!0,onChange:ne},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",s1,[a.createVNode(V,{onClick:ve,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>j[15]||(j[15]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[15]}),a.createVNode(V,{class:"ok-button button",onClick:D,id:"themeButton"},{default:a.withCtx(()=>j[16]||(j[16]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[16]})])]),_:1},8,["visible"]),a.createVNode(dr.ssDialog,{visible:k.value,onBeforeDestroy:ue,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",c1,[(a.openBlock(),a.createBlock(ul.ssForm,{rowContents:x.value,key:x.value,isEnableWrap:!0,onChange:Be,onChangeVisible:he,onBlurChange:xe},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",u1,[a.createVNode(V,{onClick:ue,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>j[17]||(j[17]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[17]}),a.createVNode(V,{class:"ok-button button",onClick:Ue,id:"themeButton"},{default:a.withCtx(()=>j[18]||(j[18]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[18]})])]),_:1},8,["visible"])])}}},p1=Ul._export_sfc(d1,[["__scopeId","data-v-7a6b87b5"]]),f1=z.useModelComp(z.pinia),{pageMapState:h1}=z.storeToRefs(f1),v1=z.useMenuState(z.pinia),{activeMenuPath:m1}=z.storeToRefs(v1),y1=a.ref(24),g1=a.ref(6),b1=a.ref(70),k1=a.ref(.18),x1=a.ref(45),_1=(l,n,r,t)=>{var s,u,k,h,v,y,c,E,A,L,_,W,C,M,ae,S;return{x:((u=(s=l==null?void 0:l.value)==null?void 0:s.tableData)==null?void 0:u.x)||n%2*12,y:((h=(k=l==null?void 0:l.value)==null?void 0:k.tableData)==null?void 0:h.y)||n,w:((y=(v=l==null?void 0:l.value)==null?void 0:v.tableData)==null?void 0:y.w)||y1.value,h:((E=(c=l==null?void 0:l.value)==null?void 0:c.tableData)==null?void 0:E.h)||r,minW:((L=(A=l==null?void 0:l.value)==null?void 0:A.tableData)==null?void 0:L.minW)||g1.value,minH:((W=(_=l==null?void 0:l.value)==null?void 0:_.tableData)==null?void 0:W.minH)||k1.value,maxH:((M=(C=l==null?void 0:l.value)==null?void 0:C.tableData)==null?void 0:M.maxH)||x1.value,i:((S=(ae=l==null?void 0:l.value)==null?void 0:ae.tableData)==null?void 0:S.i)||n,id:(l==null?void 0:l.id)||n+"",component:t}},w1=(l,n)=>{var t,s,u,k,h,v,y,c;let r=1;if(l!=null&&l.compData&&Array.isArray(l==null?void 0:l.compData))if(((t=l==null?void 0:l.comp)==null?void 0:t.toUpperCase())==="TABLE"){if(((k=(u=(s=l==null?void 0:l.compData)==null?void 0:s.find(A=>(A==null?void 0:A.key)==="tableContents"))==null?void 0:u.contents)==null?void 0:k.length)===0)return 2}else((h=l==null?void 0:l.comp)==null?void 0:h.toUpperCase())==="FORM"&&(r=((c=(y=(v=l==null?void 0:l.compData)==null?void 0:v.find(A=>(A==null?void 0:A.key)==="formContent"))==null?void 0:y.contents)==null?void 0:c.length)/5);return r*2},gc=(l,n,r)=>{var k,h;const t=(h=(k=h1.value)==null?void 0:k[m1.value])==null?void 0:h.filter(v=>{var y;return((y=v==null?void 0:v.key)==null?void 0:y.type)==="gridLayout"}),s=t==null?void 0:t.find(v=>{var y,c,E;return((E=(c=(y=v==null?void 0:v.value)==null?void 0:y.tableData)==null?void 0:c.component)==null?void 0:E.id)===l.id}),u=w1(l);return l!=null&&l.children&&(l==null?void 0:l.children.length)>0&&(l.children=l.children.map((v,y)=>gc(v,y))),{..._1(s,n,u,l)}},C1=(l,n)=>{if((l==null?void 0:l.length)===0)return[];const r=z.cloneDeep(l);return Array.isArray(l)?r==null?void 0:r.map((t,s)=>gc(t,s)):[]},E1=l=>({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}]}]}}),S1=(l,n)=>l==null?void 0:l.map(r=>{for(const t in n)if(t===(r==null?void 0:r.prop))return{...r,value:n[t]};return r}),D1=a.defineComponent({__name:"index",props:{compType:String,comp:Object,target:{type:String,default:"alone"},optionItems:Array},emits:["change"],setup(l,{emit:n}){const r=l,t=n,s=a.ref([]);a.watch(()=>r.compType,h=>{var c;const v=E1(r==null?void 0:r.optionItems),y=h?(c=v[h==null?void 0:h.toUpperCase()])==null?void 0:c[r==null?void 0:r.target]:[];s.value=y==null?void 0:y.map(E=>{for(const[A,L]of Object.entries((r==null?void 0:r.comp)||{}))if((E==null?void 0:E.prop)===A)return{...E,value:L};return E})},{immediate:!0});const u=h=>ul.getComponent(h),k=h=>{var v,y;(h==null?void 0:h.prop)==="layout"&&(h==null?void 0:h.value)==="horizontal"?s.value=(v=s.value)==null?void 0:v.map(c=>{var E;return(c==null?void 0:c.prop)==="isStepLayout"?{...c,options:(E=c==null?void 0:c.options)==null?void 0:E.map(A=>({...A,disabled:!0}))}:(c==null?void 0:c.prop)==="isGridLayout"?{...c,disabled:!0}:c}):s.value=(y=s.value)==null?void 0:y.map(c=>{var E;return(c==null?void 0:c.prop)==="isStepLayout"?{...c,options:(E=c==null?void 0:c.options)==null?void 0:E.map(A=>({...A,disabled:!1}))}:(c==null?void 0:c.prop)==="isGridLayout"?{...c,disabled:!1}:c}),t("change",{target:r==null?void 0:r.target,styleConfigs:s.value,prop:h==null?void 0:h.prop})};return(h,v)=>{const y=a.resolveComponent("el-col"),c=a.resolveComponent("el-row");return a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,E=>(a.openBlock(),a.createBlock(c,{class:"style-row",key:E==null?void 0:E.prop},{default:a.withCtx(()=>[a.createVNode(y,{span:6,class:"style-row-title"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(E==null?void 0:E.label)+":",1)]),_:2},1024),a.createVNode(y,{span:18,style:{display:"flex"}},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u(E.type)),{modelValue:E.value,"onUpdate:modelValue":A=>E.value=A,content:E==null?void 0:E.options,optionUrl:E==null?void 0:E.optionUrl,disabled:E==null?void 0:E.disabled,activeText:E==null?void 0:E.activeText,inactiveText:E==null?void 0:E.inactiveText,onChange:A=>k(E)},null,40,["modelValue","onUpdate:modelValue","content","optionUrl","disabled","activeText","inactiveText","onChange"]))]),_:2},1024)]),_:2},1024))),128)}}}),B1=Ul._export_sfc(D1,[["__scopeId","data-v-6c233914"]]),N1=a.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(l,{emit:n}){const r=l,t=n,s=[{required:!0,message:"输入不能为空",trigger:"blur"}],u=a.ref([]),k=M=>M==null?void 0:M.reduce((ae,S)=>(ae[S==null?void 0:S.prop]=S==null?void 0:S.rule,ae),{}),h=a.computed(()=>({formRules:k(u.value),buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"保存",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]})),v=a.ref([]),y=a.ref(""),c=(M,ae,S)=>{var x;let $=[];(r==null?void 0:r.activeTabName)==="任务配置"?($=[{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:M},{label:"按钮名称",value:"按钮名称",children:ae}]},{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:"暂停"}]}],u.value=[{prop:"任务名称",rule:s},{prop:"任务关键词",rule:s},{prop:"执行任务",rule:s},{prop:"执行动作",rule:s},{prop:"执行交互",rule:s}]):(r==null?void 0:r.activeTabName)==="任务关联"&&($=[{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:(x=r==null?void 0:r.relatedData)==null?void 0:x.map(g=>({label:g==null?void 0:g.任务名称,value:g==null?void 0:g.任务名称}))},{prop:"关联状态",label:"关联状态",key:"关联状态",type:"radio",value:"启动",isTableColHidden:!1,isFormColHidden:!1,contents:[{label:"启动",value:"启动"},{label:"暂停",value:"暂停"}]}],u.value=[{prop:"关联名称",rule:s},{prop:"关联状态",rule:s},{prop:"关联形式",rule:s},{prop:"关联任务集合",rule:s}]);let N;return S&&(S==null?void 0:S.length)>0?N=[...$,...E(M,ae,S)]:N=$,N},E=(M,ae,S)=>{const $=[{label:"进度关键词",prop:"进度关键词",key:"进度关键词",type:"input",value:"",width:2,isFormColHidden:!1,contents:[]},{label:"统计算法源",prop:"统计算法源",key:"统计算法源",type:"input",value:"",width:2,isFormColHidden:!1,contents:[]},{label:"统计是否获取错误集",prop:"统计是否获取错误集",key:"统计是否获取错误集",type:"radio",value:!1,width:2,isFormColHidden:!1,contents:[{label:"是",value:!0},{label:"否",value:!1}]}];return S?$==null?void 0:$.filter(N=>S==null?void 0:S.includes(N==null?void 0:N.prop)):$},A=(M,ae)=>{var g,H,q,G,he,Be,xe,te,me;const S=((he=(G=(q=(H=(g=r==null?void 0:r.comp)==null?void 0:g.compData)==null?void 0:H.find(Z=>(Z==null?void 0:Z.key)==="header"))==null?void 0:q.contents)==null?void 0:G.filter(Z=>(Z==null?void 0:Z.label)!=="操作"))==null?void 0:he.map(Z=>({value:Z==null?void 0:Z.prop,label:Z.label})))||[],$=/button/i,N=((me=(te=(xe=(Be=r==null?void 0:r.comp)==null?void 0:Be.compData)==null?void 0:xe.filter(Z=>$.test(Z==null?void 0:Z.key)))==null?void 0:te.flatMap(Z=>Z==null?void 0:Z.contents))==null?void 0:me.map(Z=>({value:Z==null?void 0:Z.label,label:Z.label})))||[],x=c(S,N,M);v.value=ae?S1(x,ae):x,M&&(M==null?void 0:M.length)>0&&u.value.push(...M==null?void 0:M.map(Z=>({prop:Z,rule:s})))};a.onMounted(()=>{A(null,r==null?void 0:r.extendItem)});const L=M=>{const ae=M==null?void 0:M[y.value];if(y.value==="执行任务"){if(!(ae!=null&&ae.join("/")))return;const S=ae==null?void 0:ae.join("/");A(S==="统计/统计规则/自定义"?["统计算法源","统计是否获取错误集"]:S==="进度设置/进度条"?["进度关键词"]:null,M)}},_=M=>{t("change",{target:r==null?void 0:r.target,extendConfigs:M})},W=(M,ae)=>{y.value=ae==null?void 0:ae.changeProp,L(M)},C=M=>{t("onButtonClick",M)};return(M,ae)=>(a.openBlock(),a.createBlock(ul.ssForm,{rowContents:v.value,key:v.value,isStartJustify:!1,isEnableWrap:!1,formRules:h.value.formRules,buttonValue:h.value.buttonValue,onChange:_,onBlurChange:W,onOnButtonClick:C},null,8,["rowContents","formRules","buttonValue"]))}}),T1=Ul._export_sfc(N1,[["__scopeId","data-v-7c660c1f"]]),A1={};function M1(l,n){return null}const z1=Ul._export_sfc(A1,[["render",M1]]),O1={class:"form-operate-content"},I1={class:"form-operate-item"},L1={class:"operate-title"},V1={class:"operate-content"},R1={class:"fix-content"},$1={class:"fix-button"},P1={class:"operate-title"},F1={class:"operate-content"},j1={class:"fix-content"},H1={class:"fix-button"},U1={style:{display:"flex","justify-content":"space-between"}},q1={class:"form-content"},K1={class:"dialog-footer"},W1={class:"form-content"},Y1={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,t=n,s=a.ref(!1),u=a.ref([]),k=a.ref([]),h=a.ref(!1),v=a.ref([]),y=a.ref([]),c=a.ref(""),E=a.ref(!1),A=a.ref(0),L=a.ref([]),_=a.ref([]),W=(te,me)=>{if((me==null?void 0:me.type)=="Select"&&(te==null?void 0:te.key)==="selectRelateType"){const Z=me==null?void 0:me.optionUrl;return(Z==null?void 0:Z.selectRelateType)||me[te.key]}if((me==null?void 0:me.type)=="Select"&&(te==null?void 0:te.key)==="menuSelect"){const Z=me==null?void 0:me.optionUrl;return(Z==null?void 0:Z.menuSelect)||me[te.key]}if((me==null?void 0:me.type)=="Select"&&(te==null?void 0:te.key)==="groupSelect"){const Z=me==null?void 0:me.optionUrl;return(Z==null?void 0:Z.groupSelect)||me[te.key]}if((me==null?void 0:me.type)=="Select"&&(te==null?void 0:te.key)==="originalContent")return(me==null?void 0:me.value)||me[te.key];if((me==null?void 0:me.type)=="Select"&&(te==null?void 0:te.key)==="multiple"){const Z=me[te.key];return $s(Z)?Z:te.default}return(te==null?void 0:te.label)==="类型"&&me[te.key]===""?"Input":(te==null?void 0:te.key)==="isFormColHidden"&&!me[te.key]?!1:me[te.key]},C=async te=>{var ue,Ue,Ca,oe,D,ne;s.value=!0;let me=[];const Z=await((Ca=(Ue=(ue=sa.FormContent)==null?void 0:ue.find(ve=>(ve==null?void 0:ve.key)===((te==null?void 0:te.type)===""?"Input":te==null?void 0:te.type)))==null?void 0:Ue.value)==null?void 0:Ca.value)??((D=(oe=sa.FormContent)==null?void 0:oe.find(ve=>(ve==null?void 0:ve.key)===((te==null?void 0:te.type)===""?"Input":te==null?void 0:te.type)))==null?void 0:D.value);if(Z==null||Z.forEach(ve=>{A.value++,me.push({label:ve==null?void 0:ve.label,name:ve==null?void 0:ve.label,type:ve.type,prop:ve==null?void 0:ve.prop,value:W(ve,te),id:A.value,contents:ve==null?void 0:ve.options,width:(te==null?void 0:te.width)??1})}),te!=null&&te.menuSelect&&((ne=te==null?void 0:te.menuSelect)==null?void 0:ne.length)>0){const ve=await sa.menuToContentType(te==null?void 0:te.menuSelect);me=me==null?void 0:me.map(se=>((se==null?void 0:se.name)==="组信息选项"&&(se.contents=ve),se))}c.value=te==null?void 0:te.id,u.value=await sa.selectToBase(sa.formToOptionsContents(me)),k.value=await sa.selectToBase(sa.formToOptionsContents(me))},M=te=>{var Z;h.value=!0;let me=[];(Z=sa.FormButton)==null||Z.forEach(ue=>{A.value++,me.push({label:ue==null?void 0:ue.label,name:ue==null?void 0:ue.label,type:ue.type,value:(ue==null?void 0:ue.label)==="类型"&&te[ue.key]===""?"normal":te[ue.key],id:A.value,contents:ue==null?void 0:ue.options})}),L.value=me,_.value=me,c.value=te==null?void 0:te.id};a.watch(()=>E.value,()=>{var me,Z;let te=z.cloneDeep(r.originalItemContents);(me=z.cloneDeep(r.originalItemContents))!=null&&me.find(ue=>(ue==null?void 0:ue.key)==="enableWrap")?te=(Z=z.cloneDeep(r.originalItemContents))==null?void 0:Z.map(ue=>((ue==null?void 0:ue.key)==="enableWrap"&&(ue.contents=!E.value),ue)):te.push({key:"enableWrap",contents:!E.value}),t("change",te)},{deep:!0});const ae=()=>{var Z,ue,Ue,Ca,oe;L.value=_.value;let te={};if(c.value!==""?te.id=c.value:(A.value++,te.id="id"+A.value),(Z=L.value)==null||Z.forEach(D=>{var ve;const ne=(ve=sa.FormButton)==null?void 0:ve.find(se=>(se==null?void 0:se.label)===(D==null?void 0:D.label));ne&&(te[ne.key]=D.value)}),(ue=v.value)!=null&&ue.find(D=>D.id===te.id))v.value=(Ue=v.value)==null?void 0:Ue.map(D=>(D.id===te.id&&(D=te),D));else{let D=z.cloneDeep(v.value);v.value||(v.value=[]),D.push(te),v.value=D}h.value=!1,c.value="";let me=z.cloneDeep(r.originalItemContents);(Ca=z.cloneDeep(r.originalItemContents))!=null&&Ca.find(D=>(D==null?void 0:D.key)==="formButton")?me=(oe=z.cloneDeep(r.originalItemContents))==null?void 0:oe.map(D=>((D==null?void 0:D.key)==="formButton"&&(D.contents=v.value),D)):me.push({key:"formButton",contents:v.value}),t("change",me)},S=te=>{z.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var me,Z;y.value=(me=z.cloneDeep(y.value))==null?void 0:me.filter(ue=>(ue==null?void 0:ue.id)!==(te==null?void 0:te.id)),t("change",(Z=z.cloneDeep(r.originalItemContents))==null?void 0:Z.map(ue=>((ue==null?void 0:ue.key)==="formContent"&&(ue.contents=y.value),ue))),Za.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},$=te=>{z.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var me,Z;v.value=(me=z.cloneDeep(v.value))==null?void 0:me.filter(ue=>(ue==null?void 0:ue.id)!==(te==null?void 0:te.id)),t("change",(Z=z.cloneDeep(r.originalItemContents))==null?void 0:Z.map(ue=>((ue==null?void 0:ue.key)==="formButton"&&(ue.contents=v.value),ue))),Za.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},N=()=>{var me;h.value=!0;let te=[];(me=sa.FormButton)==null||me.forEach(Z=>{A.value++,te.push({label:Z==null?void 0:Z.label,name:Z==null?void 0:Z.label,type:Z.type,value:(Z==null?void 0:Z.label)==="类型"?"normal":"",id:A.value,contents:Z==null?void 0:Z.options})}),L.value=te,_.value=te},x=()=>{var me,Z,ue;s.value=!0;let te=[];(ue=(Z=(me=sa.FormContent)==null?void 0:me.find(Ue=>(Ue==null?void 0:Ue.key)==="Input"))==null?void 0:Z.value)==null||ue.forEach(Ue=>{A.value++,te.push({label:Ue==null?void 0:Ue.label,name:Ue==null?void 0:Ue.label,type:Ue.type,value:(Ue==null?void 0:Ue.label)==="类型"?"Input":"",id:A.value,contents:Ue==null?void 0:Ue.options})}),u.value=te,k.value=te},g=te=>{let me=z.cloneDeep(_.value);me=me==null?void 0:me.map(Z=>(Z.value=te==null?void 0:te[Z.name],Z)),_.value=me},H=te=>{const me=te.find(Ue=>(Ue==null?void 0:Ue.name)==="类型");if((me==null?void 0:me.value)!="Select")return;const Z=te.find(Ue=>(Ue==null?void 0:Ue.name)==="多选"),ue=te.find(Ue=>(Ue==null?void 0:Ue.name)==="初始值");Z!=null&&Z.value&&bo.isString(ue.value)&&(ue.value=[ue.value]),!(Z!=null&&Z.value)&&!bo.isString(ue.value)&&(ue.value="")},q=async te=>{var me,Z,ue,Ue,Ca,oe,D,ne,ve,se,_e,ra;if((te==null?void 0:te.类型)!==((Z=(me=k.value)==null?void 0:me.find(ba=>(ba==null?void 0:ba.label)==="类型"))==null?void 0:Z.value)){let ba=[];const $a=await((Ca=(Ue=(ue=sa.FormContent)==null?void 0:ue.find(le=>(le==null?void 0:le.key)===((te==null?void 0:te.类型)===""?"Input":te==null?void 0:te.类型)))==null?void 0:Ue.value)==null?void 0:Ca.value)?await((se=(ve=(ne=sa.FormContent)==null?void 0:ne.find(le=>(le==null?void 0:le.key)===((te==null?void 0:te.类型)===""?"Input":te==null?void 0:te.类型)))==null?void 0:ve.value)==null?void 0:se.value):(D=(oe=sa.FormContent)==null?void 0:oe.find(le=>(le==null?void 0:le.key)===((te==null?void 0:te.类型)===""?"Input":te==null?void 0:te.类型)))==null?void 0:D.value;if($a==null||$a.forEach(le=>{var Ie,ka;A.value++;const Qe=vu(le==null?void 0:le.default)?(te==null?void 0:te[le.label])??le.value??"":le==null?void 0:le.default;ba.push({label:le==null?void 0:le.label,name:le==null?void 0:le.label,type:le.type,value:Qe,prop:le==null?void 0:le.prop,id:A.value,contents:le==null?void 0:le.options,width:((ka=(Ie=k.value)==null?void 0:Ie[0])==null?void 0:ka.width)??1})}),te!=null&&te.菜单选项&&((_e=te==null?void 0:te.菜单选项)==null?void 0:_e.length)>0){const le=await sa.menuToContentType(te==null?void 0:te.菜单选项);ba=ba==null?void 0:ba.map(Qe=>((Qe==null?void 0:Qe.name)==="组信息选项"&&(Qe.contents=le),Qe))}H(ba),k.value=await sa.selectToBase(z.cloneDeep(ba)),u.value=await sa.selectToBase(z.cloneDeep(ba))}else{let ba=z.cloneDeep(k.value);if(ba=ba==null?void 0:ba.map($a=>($a.value=te==null?void 0:te[$a.name],$a)),te!=null&&te.菜单选项&&((ra=te==null?void 0:te.菜单选项)==null?void 0:ra.length)>0){const $a=await sa.menuToContentType(te==null?void 0:te.菜单选项);ba=ba==null?void 0:ba.map(le=>((le==null?void 0:le.name)==="组信息选项"&&(le.contents=$a),le))}ba=sa.formToOptionsContents(ba),H(ba),k.value=await sa.selectToBase(z.cloneDeep(ba))}},G=te=>{te||(u.value=k.value)},he=async te=>{await q(te),u.value=k.value},Be=Na.debounce(async()=>{var ue,Ue,Ca,oe,D,ne,ve,se,_e,ra,ba,$a;u.value=k.value;let te={};te.width=((Ue=(ue=u.value)==null?void 0:ue[0])==null?void 0:Ue.width)??1,c.value!==""?te.id=c.value:(A.value++,te.id="id"+A.value);let me=await((D=(oe=(Ca=sa.FormContent)==null?void 0:Ca.find(le=>{var Qe,Ie;return(le==null?void 0:le.key)===(((Ie=(Qe=u.value)==null?void 0:Qe.find(ka=>(ka==null?void 0:ka.label)==="类型"))==null?void 0:Ie.value)??"label")}))==null?void 0:oe.value)==null?void 0:D.value)??((ve=(ne=sa.FormContent)==null?void 0:ne.find(le=>{var Qe,Ie;return(le==null?void 0:le.key)===(((Ie=(Qe=u.value)==null?void 0:Qe.find(ka=>(ka==null?void 0:ka.label)==="类型"))==null?void 0:Ie.value)??"label")}))==null?void 0:ve.value);if((se=u.value)==null||se.forEach(le=>{const Qe=me==null?void 0:me.find(Ie=>(Ie==null?void 0:Ie.label)===(le==null?void 0:le.label));Qe&&(te[Qe.key]=le.value)}),te.width=te.width?te.width:1,te.key=te==null?void 0:te.label,te.isFormColHidden=te==null?void 0:te.isFormColHidden,(_e=y.value)!=null&&_e.find(le=>le.id===te.id))y.value=(ra=y.value)==null?void 0:ra.map(le=>(le.id===te.id&&(le=te),le));else{let le=z.cloneDeep(y.value);le.push(te),y.value=le}y.value=y.value.map(({id:le,...Qe})=>Qe),s.value=!1,c.value="";let Z=z.cloneDeep(r.originalItemContents);(ba=z.cloneDeep(r.originalItemContents))!=null&&ba.find(le=>(le==null?void 0:le.key)==="formContent")?Z=($a=z.cloneDeep(r.originalItemContents))==null?void 0:$a.map(le=>((le==null?void 0:le.key)==="formContent"&&(le.contents=y.value),le)):Z.push({key:"formContent",contents:y.value}),t("change",Z)},300),xe=()=>{s.value=!1,h.value=!1,c.value="",k.value=[],_.value=[]};return a.watch(()=>r.originalItemContents,()=>{var me,Z,ue,Ue,Ca,oe;if(!r.originalItemContents||r.originalItemContents.length===0)return;const te=z.cloneDeep(r.originalItemContents);y.value=((me=te==null?void 0:te.find(D=>(D==null?void 0:D.key)==="formContent"))==null?void 0:me.contents)??[],v.value=((Z=te==null?void 0:te.find(D=>(D==null?void 0:D.key)==="formButton"))==null?void 0:Z.contents)??[],E.value=(ue=te==null?void 0:te.find(D=>(D==null?void 0:D.key)==="enableWrap"))!=null&&ue.contents?!((Ue=te==null?void 0:te.find(D=>(D==null?void 0:D.key)==="enableWrap"))!=null&&Ue.contents):!0,y.value=(Ca=z.cloneDeep(y.value))==null?void 0:Ca.map((D,ne)=>{var se;let ve=D;return ve.id=(D==null?void 0:D.id)??ne,D!=null&&D.label||(D.label=(D==null?void 0:D.key)??(D==null?void 0:D.label)??""),D!=null&&D.type||(D.type=(D==null?void 0:D.type)??""),D.contents=((se=D==null?void 0:D.options)==null?void 0:se.length)===0?(D==null?void 0:D.contents)??"":D==null?void 0:D.options,ve}),y.value=sa.formToOptionsContents(y.value),v.value=(oe=v.value)==null?void 0:oe.map((D,ne)=>D={label:(D==null?void 0:D.label)??"",type:(D==null?void 0:D.type)??"",background:(D==null?void 0:D.background)??"var(--ssComponent-primary-color)",id:ne})},{deep:!0,immediate:!0}),(te,me)=>{const Z=a.resolveComponent("svg-icon"),ue=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",O1,[a.createElementVNode("div",I1,[a.createElementVNode("div",L1,[me[2]||(me[2]=a.createElementVNode("div",null,a.toDisplayString("表单内容"),-1)),a.createVNode(ue,{class:"icon-content",id:"themeButton",onClick:x},{icon:a.withCtx(()=>[a.createVNode(Z,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[me[1]||(me[1]=a.createElementVNode("div",null,a.toDisplayString("新增"),-1))]),_:1,__:[1]})]),a.createElementVNode("div",V1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(y.value,(Ue,Ca)=>(a.openBlock(),a.createElementBlock("div",{key:Ca},[a.createElementVNode("div",R1,[a.createElementVNode("div",null,a.toDisplayString(Ue.label),1),a.createElementVNode("div",$1,[a.createVNode(Z,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:oe=>C(Ue)},null,8,["onClick"]),a.createVNode(Z,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:oe=>S(Ue)},null,8,["onClick"])])])]))),128))]),a.createElementVNode("div",P1,[me[4]||(me[4]=a.createElementVNode("div",null,a.toDisplayString("表单按钮"),-1)),a.createVNode(ue,{class:"icon-content",id:"themeButton",onClick:N},{icon:a.withCtx(()=>[a.createVNode(Z,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[me[3]||(me[3]=a.createTextVNode(" 新增 "))]),_:1,__:[3]})]),a.createElementVNode("div",F1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(v.value,(Ue,Ca)=>(a.openBlock(),a.createElementBlock("div",{key:Ca},[a.createElementVNode("div",j1,[a.createElementVNode("div",null,a.toDisplayString(Ue.label),1),a.createElementVNode("div",H1,[a.createVNode(Z,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:oe=>M(Ue)},null,8,["onClick"]),a.createVNode(Z,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:oe=>$(Ue)},null,8,["onClick"])])])]))),128))]),me[6]||(me[6]=a.createElementVNode("div",{class:"operate-title"},[a.createElementVNode("div",null,a.toDisplayString("表单布局"))],-1)),a.createElementVNode("div",U1,[me[5]||(me[5]=a.createElementVNode("div",{class:"operate-center-content"},a.toDisplayString("是否自动撑宽"),-1)),a.createVNode(ul._sfc_main$1,{modelValue:E.value,"onUpdate:modelValue":me[0]||(me[0]=Ue=>E.value=Ue)},null,8,["modelValue"])])]),a.createVNode(dr.ssDialog,{visible:s.value,onBeforeDestroy:xe,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",q1,[(a.openBlock(),a.createBlock(ul.ssForm,{rowContents:u.value,key:u.value,isEnableWrap:!0,onChange:q,onChangeVisible:G,onBlurChange:he},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",K1,[a.createVNode(ue,{onClick:xe,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>me[7]||(me[7]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[7]}),a.createVNode(ue,{class:"ok-button button",onClick:a.unref(Be),id:"themeButton"},{default:a.withCtx(()=>me[8]||(me[8]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[8]},8,["onClick"])])]),_:1},8,["visible"]),a.createVNode(dr.ssDialog,{visible:h.value,onBeforeDestroy:xe,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",W1,[(a.openBlock(),a.createBlock(ul.ssForm,{rowContents:L.value,key:L.value,isEnableWrap:!0,onChange:g},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",{class:"dialog-footer"},[a.createElementVNode("div",{onClick:xe,class:"cancel-button button"},a.toDisplayString("取消")),a.createElementVNode("div",{class:"ok-button button",onClick:ae},a.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},cs=Ul._export_sfc(Y1,[["__scopeId","data-v-20850524"]]),J1={class:"step-module content"},G1={class:"module-data"},X1={class:"step-module layout"},Z1={class:"form-content"},Q1=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,t=n,s=a.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}]),u=a.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"标题",prop:"title",type:"input",value:""},{label:"描述",prop:"description",type:"input",value:""}]),k=a.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),h=a.reactive({visible:!1,width:"40%",title:"步骤条"}),v=a.ref("create"),y=a.ref({}),c=a.ref([]),E=C=>{var M;y.value=C,t("change",(M=_())==null?void 0:M.compData)},A=(C,M)=>{var ae,S;switch(C){case"create":(ae=u.value)==null||ae.forEach($=>{$.value=""}),v.value="create",h.visible=!0;break;case"update":(S=u.value)==null||S.forEach($=>{$.value=M[$==null?void 0:$.prop]}),v.value="update",h.visible=!0;break;case"delete":c.value.splice(M,1),v.value="delete";break}},L=C=>{var M,ae,S;if((C==null?void 0:C.buttonName)==="确认"){const $=z.cloneDeep(C==null?void 0:C.content);switch(Object.keys($).forEach(N=>{$[N]===""&&delete $[N]}),v.value){case"create":c.value.push({...$,index:((M=c.value)==null?void 0:M.length)+1});break;case"update":c.value=(ae=c.value)==null?void 0:ae.map(N=>N.index===($==null?void 0:$.index)?{...N,title:$==null?void 0:$.title,description:$==null?void 0:$.description}:N);break}t("change",(S=_())==null?void 0:S.compData),h.visible=!1}else h.visible=!1},_=()=>({comp:"Step",compData:[{key:"stepList",contents:c.value},{key:"stepConfig",contents:y.value}]}),W=()=>{h.visible=!1};return a.watch(()=>r==null?void 0:r.itemContents,C=>{var M,ae;C&&(y.value=((M=C==null?void 0:C.find(S=>S.key==="stepConfig"))==null?void 0:M.contents)??{},c.value=((ae=C==null?void 0:C.find(S=>S.key==="stepList"))==null?void 0:ae.contents)??[])},{immediate:!0}),(C,M)=>{const ae=a.resolveComponent("svg-icon"),S=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",J1,[M[2]||(M[2]=a.createElementVNode("h4",{class:"module-title"},"内容",-1)),a.createVNode(S,{class:"module-icon",id:"themeButton",onClick:M[0]||(M[0]=$=>A("create"))},{icon:a.withCtx(()=>[a.createVNode(ae,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[M[1]||(M[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",G1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.value,($,N)=>(a.openBlock(),a.createElementBlock("div",{class:"module-data-item",key:N},[a.createElementVNode("span",null,a.toDisplayString($==null?void 0:$.title),1),a.createElementVNode("div",null,[a.createVNode(S,{type:"primary",size:"small",onClick:x=>A("update",{...$,index:N+1})},{default:a.withCtx(()=>M[3]||(M[3]=[a.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),a.createVNode(S,{type:"danger",size:"small",onClick:x=>A("delete",N)},{default:a.withCtx(()=>M[4]||(M[4]=[a.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),a.createElementVNode("div",X1,[M[5]||(M[5]=a.createElementVNode("div",{class:"module-title"},"布局",-1)),a.createVNode(ul.ssForm,{rowContents:s.value,onChange:E},null,8,["rowContents"])])]),a.createVNode(dr.ssDialog,{visible:h.visible,title:h.title,onBeforeDestroy:W,width:h.width},{default:a.withCtx(()=>[a.createElementVNode("div",Z1,[(a.openBlock(),a.createBlock(ul.ssForm,{rowContents:u.value,key:u.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:k.value,onOnButtonClick:L},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),e2=Ul._export_sfc(Q1,[["__scopeId","data-v-7dbd17f2"]]),a2={class:"step-module content"},l2={class:"module-data"},r2={class:"step-module layout"},n2={class:"form-content"},t2=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,t=n,s=a.ref("create"),u=a.ref({}),k=a.ref([]),h=a.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}]),v=a.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"内容",prop:"content",type:"input",value:""},{label:"时间戳",prop:"timestamp",type:"datetime",value:""}]),y=a.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),c=a.reactive({visible:!1,width:"40%",title:"时间线"}),E=C=>{var M;u.value=C,t("change",(M=_())==null?void 0:M.compData)},A=(C,M)=>{var ae,S;switch(C){case"create":(ae=v.value)==null||ae.forEach($=>{$.value=""}),s.value="create",c.visible=!0;break;case"update":(S=v.value)==null||S.forEach($=>{$.value=M[$==null?void 0:$.prop]}),s.value="update",c.visible=!0;break;case"delete":k.value.splice(M,1),s.value="delete";break}},L=C=>{var M,ae,S,$;if((C==null?void 0:C.buttonName)==="确认"){const N=z.cloneDeep(C==null?void 0:C.content);switch(Object.keys(N).forEach(x=>{N[x]===""&&delete N[x]}),s.value){case"create":(ae=k.value)==null||ae.push({...N,index:((M=k.value)==null?void 0:M.length)+1});break;case"update":k.value=(S=k.value)==null?void 0:S.map(x=>x.index===(N==null?void 0:N.index)?{...x,content:N==null?void 0:N.content,timestamp:N==null?void 0:N.timestamp}:x);break}t("change",($=_())==null?void 0:$.compData),c.visible=!1}else c.visible=!1},_=()=>({comp:"TimeLine",compData:[{key:"timeLineList",contents:k.value},{key:"timeLineConfig",contents:u.value}]}),W=()=>{c.visible=!1};return a.watch(()=>r==null?void 0:r.itemContents,C=>{var M,ae;C&&(u.value=((M=C==null?void 0:C.find(S=>S.key==="timeLineConfig"))==null?void 0:M.contents)??{},k.value=((ae=C==null?void 0:C.find(S=>S.key==="timeLineList"))==null?void 0:ae.contents)??[])},{immediate:!0}),(C,M)=>{const ae=a.resolveComponent("svg-icon"),S=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",a2,[M[2]||(M[2]=a.createElementVNode("h4",{class:"module-title"},"内容",-1)),a.createVNode(S,{class:"module-icon",id:"themeButton",onClick:M[0]||(M[0]=$=>A("create"))},{icon:a.withCtx(()=>[a.createVNode(ae,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[M[1]||(M[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",l2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(k.value,($,N)=>(a.openBlock(),a.createElementBlock("div",{class:"module-data-item",key:N},[a.createElementVNode("span",null,a.toDisplayString($==null?void 0:$.content),1),a.createElementVNode("div",null,[a.createVNode(S,{type:"primary",size:"small",onClick:x=>A("update",{...$,index:N+1})},{default:a.withCtx(()=>M[3]||(M[3]=[a.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),a.createVNode(S,{type:"danger",size:"small",onClick:x=>A("delete",N)},{default:a.withCtx(()=>M[4]||(M[4]=[a.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),a.createElementVNode("div",r2,[M[5]||(M[5]=a.createElementVNode("div",{class:"module-title"},"布局",-1)),a.createVNode(ul.ssForm,{rowContents:h.value,onChange:E},null,8,["rowContents"])])]),a.createVNode(dr.ssDialog,{visible:c.visible,title:c.title,onBeforeDestroy:W,width:c.width},{default:a.withCtx(()=>[a.createElementVNode("div",n2,[(a.openBlock(),a.createBlock(ul.ssForm,{rowContents:v.value,key:v.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:y.value,onOnButtonClick:L},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),o2=Ul._export_sfc(t2,[["__scopeId","data-v-39ffc861"]]),i2={};function s2(l,n){return a.openBlock(),a.createElementBlock("div")}const c2=Ul._export_sfc(i2,[["render",s2]]),u2={class:"extra-content"},d2={key:0},p2={key:1},f2={class:"dialog-footer"},h2={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},emits:["change"],setup(l,{emit:n}){const r=l,t=a.ref(0),s=a.ref(),u=a.ref(),k=n,h=a.ref(!1),v=a.ref({}),y=a.ref({}),c=a.ref();a.watch(()=>[r.itemData],()=>{var $;const S=z.cloneDeep(r.itemData);s.value=($=z.cloneDeep(S))==null?void 0:$.map(N=>{var x;if(N.key==="extra"){let g=[];(x=N.value)==null||x.forEach(H=>{var q;g.push((q=Object.values(H))==null?void 0:q[0])}),N.value=g}return N})},{deep:!0,immediate:!0});const E=(S,$,N,x)=>{var H;let g={};((H=S==null?void 0:S[0])==null?void 0:H.contents)==="详情"&&(h.value=!0,g[$]=S,u.value=S==null?void 0:S.filter(q=>(q==null?void 0:q.key)!=="tableContentName"),v.value=g,y.value=N,c.value=x.id)},A=S=>{var q,G,he,Be;const $=(G=(q=Object.values(z.cloneDeep(v.value)))==null?void 0:q[0])==null?void 0:G.filter(xe=>(xe==null?void 0:xe.key)==="tableContentName"),N=(Be=(he=Object.values(z.cloneDeep(v.value)))==null?void 0:he[0])==null?void 0:Be.filter(xe=>(xe==null?void 0:xe.key)!=="tableContentName"),x=N==null?void 0:N.map((xe,te)=>{var me;return te===S.index&&(xe==null?void 0:xe.comp)==="Table"&&(xe.compData=(me=xe.compData)==null?void 0:me.map(Z=>{var ue,Ue;return(Z==null?void 0:Z.key)==="tableContents"&&(Z.contents=(Ue=(ue=S.content)==null?void 0:ue.map(Ca=>{let oe={};for(let D in Ca)D!=="id"&&(oe[D]=Ca[D]);return oe}))==null?void 0:Ue.map(Ca=>Object.values(Ca))),Z})),xe});x.unshift($==null?void 0:$[0]);let g=z.cloneDeep(v.value),H={};for(let xe in g)H[xe]=x;v.value=H},L=()=>{h.value=!1,v.value={},y.value={},c.value=void 0,t.value++},_=S=>{var q,G,he,Be;const $=(G=(q=Object.values(z.cloneDeep(v.value)))==null?void 0:q[0])==null?void 0:G.filter(xe=>(xe==null?void 0:xe.key)==="tableContentName"),N=(Be=(he=Object.values(z.cloneDeep(v.value)))==null?void 0:he[0])==null?void 0:Be.filter(xe=>(xe==null?void 0:xe.key)!=="tableContentName"),x=N==null?void 0:N.map((xe,te)=>(te===S.index&&(xe.compData=S.contents),xe));x.unshift($==null?void 0:$[0]);let g=z.cloneDeep(v.value),H={};for(let xe in g)H[xe]=x;v.value=H},W=()=>{var $,N;let S={};for(let x in y.value)x===(($=Object.keys(v.value))==null?void 0:$[0])?S[x]=(N=Object.values(v.value))==null?void 0:N[0]:S[x]=y.value[x];k("change",{buttonName:"编辑",index:c.value,singleContent:S},"methodData"),h.value=!1,v.value={},y.value={},c.value=void 0},C=()=>{h.value=!1,v.value={},y.value={},c.value=void 0},M=S=>{k("change",S,"methodData")},ae=S=>St(S);return(S,$)=>{const N=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",u2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,(x,g)=>(a.openBlock(),a.createElementBlock("div",{key:t.value},[(x==null?void 0:x.key)==="extra"?(a.openBlock(),a.createElementBlock("div",d2)):(a.openBlock(),a.createElementBlock("div",p2,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(ae(x.comp)),{itemData:x==null?void 0:x.compData,childItemData:x==null?void 0:x.itemChildData,key:g,index:(x==null?void 0:x.id)??g,onContentClick:E,onChange:M},null,40,["itemData","childItemData","index"]))]))]))),128)),a.createVNode(dr.ssDialog,{visible:h.value,onBeforeDestroy:C},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(u.value,(x,g)=>(a.openBlock(),a.createElementBlock("div",{key:g,class:"extra-dialog"},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(ae(x.comp)),{itemData:x==null?void 0:x.compData,onChange:A,childItemData:x==null?void 0:x.itemChildData,key:g,onContentChange:_,index:(x==null?void 0:x.id)??g,class:"extra-component"},null,40,["itemData","childItemData","index"]))]))),128))]),footer:a.withCtx(()=>[a.createElementVNode("div",f2,[a.createVNode(N,{class:"cancel-button footer-button",onClick:L,id:"themeBorderButton"},{default:a.withCtx(()=>$[0]||($[0]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[0]}),a.createVNode(N,{class:"confirm-button footer-button",onClick:W,id:"themeButton"},{default:a.withCtx(()=>$[1]||($[1]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},v2=Ul._export_sfc(h2,[["__scopeId","data-v-2d9c5ab2"]]),m2={key:0,class:"method-content"},y2={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},setup(l){const n=a.ref([]),r=sa.useOriginalState(z.pinia),{originalPath:t}=z.storeToRefs(r),s=l,u=a.ref(!1),k=a.ref(),h=sa.useTableComp(z.pinia),{multipleTableConst:v}=z.storeToRefs(h),y=z.useModelComp(z.pinia),c=a.ref(!1),E=z.useMenuState(z.pinia),A=z.useLoginState(z.pinia),{itemData:L,isEdit:_,routeToChildPath:W,tableViewContents:C,lockingPage:M,payloadTypes:ae}=z.storeToRefs(y),{activeMenuPath:S,platform:$,childMenu:N}=z.storeToRefs(E),{loginUserInfo:x}=z.storeToRefs(A),g=a.ref(!1),H=async()=>{var oe,D;(oe=n.value)!=null&&oe.find(ne=>(ne==null?void 0:ne.buttonName)==="保存")&&await Z((D=n.value)==null?void 0:D.find(ne=>(ne==null?void 0:ne.buttonName)==="保存")),await sa.onSaveBack()};a.watch(()=>L.value,async()=>{_.value==="view"&&!g.value&&await Ca(z.cloneDeep(s.itemData)),g.value=!1},{deep:!0});const q=()=>{u.value=!1,k.value=void 0},G=oe=>oe.map(D=>{const ne={};for(const ve in D){const se=D[ve];if(ve.includes(v.value)){const _e=ve.split(v.value);let ra=ne;_e.forEach((ba,$a)=>{$a===_e.length-1?ra[ba]=se:(ra[ba]||(ra[ba]={}),ra=ra[ba])})}else ne[ve]=se}return ne}),he=async(oe,D,ne=[])=>{var se,_e,ra,ba,$a,le,Qe,Ie,ka,Re,we,ze,qe,Sa,el;let ve=(se=z.cloneDeep(D))==null?void 0:se.filter(P=>(P==null?void 0:P.comp)!=="methodButton");if(oe!=null&&oe.includes("[")){let P=(le=($a=(ba=(ra=(_e=z.cloneDeep(oe))==null?void 0:_e.split("["))==null?void 0:ra[1])==null?void 0:ba.split("]"))==null?void 0:$a[0])==null?void 0:le.split(":"),j="";if(P!=null&&P[0]){let Y=(Qe=ve==null?void 0:ve.find(V=>(V==null?void 0:V.name)===(P==null?void 0:P[0])))==null?void 0:Qe.compData;if(!Y){let V=(Ie=oe==null?void 0:oe.split("["))==null?void 0:Ie[0],K=await sa.getItemData(V,sessionStorage.getItem("systemKey"),"",!1,"","",ne);Y=(ka=K==null?void 0:K.find(Te=>(Te==null?void 0:Te.name)===(P==null?void 0:P[0])))==null?void 0:ka.compData}Y==null||Y.forEach(V=>{var K,Te,ee,ke,pe,$e;if((V==null?void 0:V.key)==="formContent")(K=V==null?void 0:V.contents)==null||K.forEach(Ve=>{var ca;(Ve==null?void 0:Ve.key)===(P==null?void 0:P[1])&&(Array.isArray(Ve==null?void 0:Ve.value)?j=Ve==null?void 0:Ve.value:j=(ca=Ve==null?void 0:Ve.value)==null?void 0:ca.toString())});else if((V==null?void 0:V.key)==="tableContents"){let Ve=[],ca=(Te=Y==null?void 0:Y.find(Oe=>(Oe==null?void 0:Oe.key)==="header"))==null?void 0:Te.contents,ya=(P==null?void 0:P[1])??"";if(ca!=null&&ca.every(Oe=>Array.isArray(Oe))){let Oe=sa.getColumnChild((pe=ca==null?void 0:ca[0])==null?void 0:pe.filter(da=>(da==null?void 0:da.label)!=="操作"));($e=V.contents)==null||$e.forEach(da=>{let Le={};da=da==null?void 0:da.filter(_a=>!(_a!=null&&_a.id)),Oe==null||Oe.forEach((_a,Fe)=>{let ma=da[Fe];typeof da[Fe]=="number"&&(ma=da[Fe].toString()),(ya===""||ya===_a.prop)&&(Le[_a.prop]=ma)}),Ve.push(Le)}),Ve=G(Ve)}else{let Oe=(ee=ca==null?void 0:ca.map(da=>da==null?void 0:da.label))==null?void 0:ee.filter(da=>da!=="操作");(ke=V.contents)==null||ke.forEach(da=>{let Le={};da=da==null?void 0:da.filter(_a=>!(_a!=null&&_a.id)),Oe==null||Oe.forEach((_a,Fe)=>{let ma=da[Fe];typeof da[Fe]=="number"&&(ma=da[Fe].toString()),(ya===""||ya===_a)&&(Le[_a]=ma)}),Ve.push(Le)})}j=Ve}})}return j}else if(oe!=null&&oe.includes("/")){let P={};return(Re=z.cloneDeep(ve))==null||Re.forEach((j,Y)=>{var V,K,Te,ee,ke,pe,$e,Ve,ca,ya,Oe,da,Le,_a,Fe,ma,ce,ga,ye;if((j==null?void 0:j.comp)==="Table"){let Ea=Array.isArray((Te=(K=(V=j==null?void 0:j.compData)==null?void 0:V.find(be=>(be==null?void 0:be.key)==="header"))==null?void 0:K.contents)==null?void 0:Te[0])?($e=(pe=(ke=(ee=j==null?void 0:j.compData)==null?void 0:ee.find(be=>(be==null?void 0:be.key)==="header"))==null?void 0:ke.contents)==null?void 0:pe[0])==null?void 0:$e.some(be=>be==null?void 0:be.children):[],Ye=(ya=(ca=(Ve=j==null?void 0:j.compData)==null?void 0:Ve.find(be=>(be==null?void 0:be.key)==="tableContents"))==null?void 0:ca.contents)==null?void 0:ya.map(be=>(be!=null&&be.find(Ee=>Ee==null?void 0:Ee.id)&&(be=be.slice(1)),be)),Ke=(Fe=(_a=(Le=(da=(Oe=j==null?void 0:j.compData)==null?void 0:Oe.find(be=>(be==null?void 0:be.key)==="header"))==null?void 0:da.contents)==null?void 0:Le[0])==null?void 0:_a[0])==null?void 0:Fe.label,Ce=(ce=(ma=j==null?void 0:j.compData)==null?void 0:ma.find(be=>(be==null?void 0:be.key)==="header"))==null?void 0:ce.contents;if(Ea)(Ea==null?void 0:Ea.length)===0?P[j.name]=P!=null&&P[j.name]?P[j.name]:sa.tableToForm(Ye,Ce):P[Ke]=sa.tableToForm(Ye,Ce);else{const be=[];Ce=Ce.slice(1,Ce.length-1),Ce==null||Ce.forEach((Ee,pa)=>{Ye==null||Ye.forEach(na=>{be.push({key:Ee.label+na[0],value:na[pa+1]})})}),P["form"+Y]=be}}else{const Ea=(ye=(ga=j.compData)==null?void 0:ga.find(Ke=>(Ke==null?void 0:Ke.key)==="formContent"))==null?void 0:ye.contents;P!=null&&P.form||(P.form=[]);const Ye=[];Ea==null||Ea.forEach(Ke=>{Ke.key!==""&&(Ke={key:(Ke==null?void 0:Ke.key)??(Ke==null?void 0:Ke.label),value:Ke==null?void 0:Ke.value},Ye.push(Ke))}),P.form=[...Ye,...z.cloneDeep(P==null?void 0:P.form)]}}),P}else{if(oe==="createInsofDataApi"){let P=(we=z.cloneDeep(D))==null?void 0:we[0];return P={comp:(ze=z.cloneDeep(P))==null?void 0:ze.comp,compData:(qe=z.cloneDeep(P))==null?void 0:qe.compData,name:(Sa=z.cloneDeep(P))==null?void 0:Sa.name,isShow:(el=z.cloneDeep(P))==null?void 0:el.isShow},{key:{type:"structure",systemKey:sessionStorage.getItem("systemKey"),parentTable:"",pageKey:S.value},value:{pageData:P}}}return oe}},Be=async(oe,D,ne)=>{var _e,ra,ba;let ve=await sa.getItemData(D,sessionStorage.getItem("systemKey"),""),se=ve==null?void 0:ve.find($a=>($a==null?void 0:$a.name)===(ne==null?void 0:ne[0]));if(se){if((se==null?void 0:se.comp)==="Table"){let $a={};for(let ze in z.cloneDeep(oe))z.cloneDeep(oe)[ze]!=="loginUser"?$a[ze]=z.cloneDeep(oe)[ze]:$a[ze]=((_e=x.value)==null?void 0:_e.account)||((ra=x.value)==null?void 0:ra.账号);let le=[],Qe=$a;Array.isArray(oe)||(Qe=[$a]),Qe==null||Qe.forEach(ze=>{le.push({[ze[ne[1]]]:ze})});let Ie=[],ka=le==null?void 0:le.map(ze=>{var qe;return(qe=Object.keys(ze))==null?void 0:qe[0]});ve==null||ve.forEach(ze=>{var qe;(ze==null?void 0:ze.name)===(ne==null?void 0:ne[0])&&((qe=ze==null?void 0:ze.compData)==null||qe.forEach(Sa=>{var el;(Sa==null?void 0:Sa.key)==="tableContents"&&((el=Sa==null?void 0:Sa.contents)==null||el.forEach(P=>{P!=null&&P.some(j=>ka.includes(j))&&Ie.push({[P.find(j=>j.id).id]:P.find(j=>ka.includes(j))})}))}))});let Re=Ie==null?void 0:Ie.map(ze=>{var qe;return(qe=Object.keys(ze))==null?void 0:qe[0]}),we=[];if(Re==null||Re.forEach(ze=>{var el;let qe=(el=Ie==null?void 0:Ie.find(P=>{var j;return((j=Object.keys(P))==null?void 0:j[0].toString())===ze.toString()}))==null?void 0:el[ze],Sa=le==null?void 0:le.find(P=>{var j;return((j=Object.keys(P))==null?void 0:j[0])===qe});we.push({id:parseInt(ze),value:{tableData:Sa[qe]}})}),(we==null?void 0:we.length)>0)return we}else if((se==null?void 0:se.comp)==="Form"){let $a=z.cloneDeep(se);$a.compData=(ba=$a.compData)==null?void 0:ba.map(Ie=>{var ka;return(Ie==null?void 0:Ie.key)==="formContent"&&(Ie.contents=(ka=Ie.contents)==null?void 0:ka.map(Re=>((Re==null?void 0:Re.key)===(ne==null?void 0:ne[1])&&(Re.value=(oe==null?void 0:oe[Re==null?void 0:Re.prop])||oe),Re))),Ie});let le={};for(let Ie in $a)Ie!=="id"&&(le[Ie]=$a[Ie]);let Qe=[];if(Qe.push({id:se==null?void 0:se.id,keyType:ne==null?void 0:ne[1],value:{pageData:le}}),(Qe==null?void 0:Qe.length)>0)return Qe}}},xe=async(oe,D,ne)=>{var _e,ra,ba,$a,le,Qe,Ie,ka,Re,we;let ve=await sa.getItemData(D,sessionStorage.getItem("systemKey"),""),se=ve==null?void 0:ve.find(ze=>(ze==null?void 0:ze.name)===(ne==null?void 0:ne[0]));if(se){if((se==null?void 0:se.comp)==="Table"){let ze={};for(let qe in z.cloneDeep(oe))z.cloneDeep(oe)[qe]!=="loginUser"?ze[qe]=z.cloneDeep(oe)[qe]:ze[qe]=((_e=x.value)==null?void 0:_e.account)||((ra=x.value)==null?void 0:ra.账号);await mr.createInsofDataApi({key:{type:"data",pageKey:D,tableId:se==null?void 0:se.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:ze}})}else if((se==null?void 0:se.comp)==="Form"){let ze=z.cloneDeep(se),qe=Object.keys(oe),Sa="";($a=(ba=z.cloneDeep(ze))==null?void 0:ba.compData)==null||$a.forEach(K=>{var Te,ee;(K==null?void 0:K.key)==="formContent"&&((ee=(Te=z.cloneDeep(K))==null?void 0:Te.contents)==null||ee.forEach(ke=>{var pe;qe.includes(ke==null?void 0:ke.key)&&(ke==null?void 0:ke.value)===((pe=x.value)==null?void 0:pe.姓名)&&(Sa=ke==null?void 0:ke.key)}))});let el=[];(le=Object.values(oe[Sa]))==null||le.forEach(K=>{K!=null&&K.includes("(")&&el.push(K)}),el=[...new Set(el)];const P=el==null?void 0:el.map(async K=>{var $e,Ve,ca,ya,Oe,da,Le,_a,Fe,ma,ce,ga;let Te="";(da=(Oe=(ya=(ca=(Ve=($e=z.cloneDeep(K))==null?void 0:$e.split("("))==null?void 0:Ve[1])==null?void 0:ca.split(")"))==null?void 0:ya[0])==null?void 0:Oe.split(":"))==null||da.forEach(ye=>{Te=Te===""?Te+ye.replaceAll("'",""):Te+"/"+ye.replaceAll("'","")});let ee=[];(ga=(ce=(ma=(Fe=(_a=(Le=z.cloneDeep(K))==null?void 0:Le.split("<"))==null?void 0:_a[1])==null?void 0:Fe.split(">"))==null?void 0:ma[0])==null?void 0:ce.split(":"))==null||ga.forEach(ye=>{ee.push(ye.replaceAll("'",""))});const ke=await sa.getItemData(Te,sessionStorage.getItem("systemKey"),"");let pe="";return ke==null||ke.forEach(ye=>{var Ea;ye.name===(ee==null?void 0:ee[0])&&((Ea=ye==null?void 0:ye.compData)==null||Ea.forEach(Ye=>{var Ke;(Ye==null?void 0:Ye.key)==="formContent"&&((Ke=Ye.contents)==null||Ke.forEach(Ce=>{(Ce==null?void 0:Ce.key)===(ee==null?void 0:ee[1])&&(pe=Ce==null?void 0:Ce.value)}))}))}),{[K]:pe}}),j=await Promise.all(P);ze.compData=(Ie=(Qe=z.cloneDeep(ze))==null?void 0:Qe.compData)==null?void 0:Ie.map(K=>{var Te,ee;return(K==null?void 0:K.key)==="formContent"&&(K.contents=(ee=(Te=z.cloneDeep(K))==null?void 0:Te.contents)==null?void 0:ee.map(ke=>{var pe,$e,Ve,ca;return(pe=oe[Sa])!=null&&pe[ke==null?void 0:ke.key]&&(oe[Sa][ke==null?void 0:ke.key].includes("(")?ke.value=($e=j==null?void 0:j.find(ya=>{var Oe;return((Oe=Object.keys(ya))==null?void 0:Oe[0])===oe[Sa][ke==null?void 0:ke.key]}))==null?void 0:$e[oe[Sa][ke==null?void 0:ke.key]]:ke.value=(ca=(Ve=z.cloneDeep(oe))==null?void 0:Ve[Sa])==null?void 0:ca[ke==null?void 0:ke.key]),ke})),K});const Y=await mr.getInsofDataApi({key:{type:"structure",pageKey:D,systemKey:sessionStorage.getItem("systemKey")}});let V="";((ka=Y==null?void 0:Y.data)==null?void 0:ka.type)==="success"&&((we=(Re=Y==null?void 0:Y.data)==null?void 0:Re.result)==null||we.forEach(K=>{var Te,ee;((ee=(Te=K==null?void 0:K.value)==null?void 0:Te.pageData)==null?void 0:ee.name)===(ne==null?void 0:ne[0])&&(V=K.id)}),await mr.updateInsofDataApi({id:V,value:{pageData:ze}}))}}},te=(oe,D="",ne={})=>{for(const[ve,se]of Object.entries(oe)){const _e=D?`${D}.${ve}`:ve;se!==null&&typeof se=="object"&&!Array.isArray(se)&&Object.prototype.toString.call(se)!=="[object Date]"?te(se,_e,ne):ne[_e]=se}return ne},me=async(oe,D,ne,ve)=>{var ra,ba,$a,le,Qe,Ie,ka,Re,we,ze,qe,Sa,el,P,j,Y,V,K,Te,ee,ke,pe,$e,Ve,ca;let se=await sa.getItemData(D,sessionStorage.getItem("systemKey"),""),_e=se==null?void 0:se.find(ya=>(ya==null?void 0:ya.name)===(ne==null?void 0:ne[0]));if(_e){if(!(ne!=null&&ne[1])&&(_e==null?void 0:_e.comp)==="Table"){let ya={},Oe=[],da=(ba=(ra=_e==null?void 0:_e.compData)==null?void 0:ra.find(Fe=>(Fe==null?void 0:Fe.key)==="header"))==null?void 0:ba.contents;da!=null&&da.every(Fe=>Array.isArray(Fe))?Oe=(le=sa.getColumnChild(($a=da==null?void 0:da[0])==null?void 0:$a.filter(Fe=>(Fe==null?void 0:Fe.label)!=="操作")))==null?void 0:le.map(Fe=>Fe==null?void 0:Fe.prop):Oe=da==null?void 0:da.map(Fe=>Fe==null?void 0:Fe.label);for(let Fe in z.cloneDeep(oe))if(z.cloneDeep(oe)[Fe]!=="loginUser"){let ma=te(z.cloneDeep(oe)[Fe]),ce={};for(let ga in ma)if(Oe!=null&&Oe.find(ye=>ye===ga))ce[ga]=ma[ga];else if(Oe!=null&&Oe.find(ye=>(ye==null?void 0:ye.toUpperCase())===(ga==null?void 0:ga.toUpperCase()))){let ye=Oe==null?void 0:Oe.find(Ea=>(Ea==null?void 0:Ea.toUpperCase())===(ga==null?void 0:ga.toUpperCase()));ce[ye]=ma[ga]}ya[Fe]=ce}else ya[Fe]=((Qe=x.value)==null?void 0:Qe.account)||((Ie=x.value)==null?void 0:Ie.账号);let Le=await mr.getInsofDataApi({keyLikes:{tableId:_e==null?void 0:_e.id}});if(((Re=(ka=Le==null?void 0:Le.data)==null?void 0:ka.result)==null?void 0:Re.length)>0){let Fe=(ze=(we=Le==null?void 0:Le.data)==null?void 0:we.result)==null?void 0:ze.map(ma=>ma==null?void 0:ma.id);(Fe==null?void 0:Fe.length)>0&&await mr.batchDeleteInsofDataApi({ids:Fe})}let _a=[];if((qe=_e==null?void 0:_e.compData)!=null&&qe.find(Fe=>(Fe==null?void 0:Fe.key)==="pageColumn")&&((P=(el=(Sa=_e==null?void 0:_e.compData)==null?void 0:Sa.find(Fe=>(Fe==null?void 0:Fe.key)==="pageColumn"))==null?void 0:el.contents)!=null&&P.includes("["))){const Fe=await mr.getInsofDataApi({id:_e==null?void 0:_e.tableId});let ma=((K=(V=(Y=(j=Fe==null?void 0:Fe.data)==null?void 0:j.result)==null?void 0:Y[0])==null?void 0:V.key)==null?void 0:K.pageKey)??"";(Te=Object.values(ya))==null||Te.forEach(ce=>{_a.push({key:{type:"data",pageKey:ma,tableId:_e==null?void 0:_e.tableId,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:ce}})})}else(ee=Object.values(ya))==null||ee.forEach(Fe=>{_a.push({key:{type:"data",pageKey:D,tableId:_e==null?void 0:_e.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:Fe}})});(_a==null?void 0:_a.length)>0&&await mr.batchAddInsofDataApi({dataList:_a})}else if(!(ne!=null&&ne[1])&&(_e==null?void 0:_e.comp)==="Form"){let ya=z.cloneDeep(_e);ya.compData=(pe=(ke=z.cloneDeep(ya))==null?void 0:ke.compData)==null?void 0:pe.map(Le=>{var _a,Fe;return(Le==null?void 0:Le.key)==="formContent"&&(Le.contents=(Fe=(_a=z.cloneDeep(Le))==null?void 0:_a.contents)==null?void 0:Fe.map(ma=>{var ce,ga;return(ce=z.cloneDeep(oe))!=null&&ce[ma==null?void 0:ma.key]&&(ma.value=(ga=z.cloneDeep(oe))==null?void 0:ga[ma==null?void 0:ma.key]),ma})),Le});const Oe=await mr.getInsofDataApi({key:{type:"structure",pageKey:D,systemKey:sessionStorage.getItem("systemKey")}});let da="";(($e=Oe==null?void 0:Oe.data)==null?void 0:$e.type)==="success"&&((ca=(Ve=Oe==null?void 0:Oe.data)==null?void 0:Ve.result)==null||ca.forEach(Le=>{var _a,Fe;((Fe=(_a=Le==null?void 0:Le.value)==null?void 0:_a.pageData)==null?void 0:Fe.name)===(ne==null?void 0:ne[0])&&(da=Le.id)}),await mr.updateInsofDataApi({id:da,value:{pageData:ya}}))}}},Z=async oe=>{var D,ne,ve,se,_e,ra,ba,$a,le,Qe,Ie,ka,Re,we;E.setImportLoading(!0);try{if(oe.api){let ze=new WeakMap,qe=await sa.getItemData((N==null?void 0:N.value)===""?S.value:N==null?void 0:N.value,sessionStorage.getItem("systemKey"),"",!1,"","",ze),Sa="";if(qe=qe==null?void 0:qe.map(ee=>{var ke,pe,$e,Ve,ca,ya,Oe,da,Le,_a,Fe,ma;if((ee==null?void 0:ee.comp)==="Form")ee.compData=(ke=ee.compData)==null?void 0:ke.map(ce=>{var ga;return(ce==null?void 0:ce.key)==="formContent"&&(ce.contents=(ga=ce.contents)==null?void 0:ga.map(ye=>{var Ea;if((ye==null?void 0:ye.value)===""&&(ye==null?void 0:ye.type)==="Select"){let Ye=sa.judgeContents((Ea=z.cloneDeep(ye))==null?void 0:Ea.optionUrl,ze);ye.value=ye.value||Ye}return ye})),ce});else if((ee==null?void 0:ee.comp)==="Table"&&(pe=ee.compData)!=null&&pe.find(ce=>(ce==null?void 0:ce.key)==="pageColumn")){let ce=(Ve=($e=ee.compData)==null?void 0:$e.find(Ye=>(Ye==null?void 0:Ye.key)==="pageColumn"))==null?void 0:Ve.contents,ga=((ya=(ca=ee.compData)==null?void 0:ca.find(Ye=>(Ye==null?void 0:Ye.key)==="pageGroup"))==null?void 0:ya.contents)??"",ye=(Le=(da=(Oe=ce==null?void 0:ce.split("["))==null?void 0:Oe[1])==null?void 0:da.split("]"))==null?void 0:Le[0];Sa=((_a=ce==null?void 0:ce.split("["))==null?void 0:_a[0])+((ma=(Fe=C.value)==null?void 0:Fe.find(Ye=>(Ye==null?void 0:Ye.key)===ye))==null?void 0:ma.value)}return ee}),!(Sa===""||Sa==="")){const ee=await sa.getItemData(Sa,sessionStorage.getItem("systemKey"),"",!1,"","",ze);qe=qe==null?void 0:qe.map(ke=>{var pe,$e,Ve,ca,ya,Oe,da,Le,_a,Fe,ma,ce,ga;if((ke==null?void 0:ke.comp)==="Table"&&(pe=ke.compData)!=null&&pe.find(ye=>(ye==null?void 0:ye.key)==="pageColumn")){let ye=(Ve=($e=ke.compData)==null?void 0:$e.find(be=>(be==null?void 0:be.key)==="pageColumn"))==null?void 0:Ve.contents,Ea=((ya=(ca=ke.compData)==null?void 0:ca.find(be=>(be==null?void 0:be.key)==="pageGroup"))==null?void 0:ya.contents)??"",Ye=(Le=(da=(Oe=ye==null?void 0:ye.split("["))==null?void 0:Oe[1])==null?void 0:da.split("]"))==null?void 0:Le[0],Ke=((_a=ye==null?void 0:ye.split("["))==null?void 0:_a[0])+((ma=(Fe=C.value)==null?void 0:Fe.find(be=>(be==null?void 0:be.key)===Ye))==null?void 0:ma.value),Ce=(ce=ee==null?void 0:ee.find(be=>(be==null?void 0:be.name)===(Ea===""?s==null?void 0:s.compName:Ea)))==null?void 0:ce.compData;ke.compData=(ga=ke.compData)==null?void 0:ga.map(be=>{var Ee;return(be==null?void 0:be.key)==="tableContents"&&(be.contents=(Ee=Ce==null?void 0:Ce.find(pa=>(pa==null?void 0:pa.key)==="tableContents"))==null?void 0:Ee.contents),be})}return ke})}let el={};if(((ne=(D=oe==null?void 0:oe.extraValues)==null?void 0:D.input)==null?void 0:ne.length)>0){const ee=(se=(ve=oe==null?void 0:oe.extraValues)==null?void 0:ve.input)==null?void 0:se.map(async ke=>{var pe;ue!=null&&ue.find($e=>$e===ke)?el=await he(ke,qe):el[Object.keys(ke)[0]]=await he((pe=Object.values(ke))==null?void 0:pe[0],qe,ze)});await Promise.all(ee)}else el=await he("/",qe);let P=!1;(ra=(_e=oe==null?void 0:oe.extraValues)==null?void 0:_e.output)==null||ra.forEach(ee=>{var ke,pe;(pe=(ke=Object.values(ee))==null?void 0:ke[0])!=null&&pe.includes(".doc")&&(P=!0)});let j;if(P){const ee=z.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});j=await Za.axios.post(oe.api,el,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{ee.close()})}else j=await Za.axios.post(oe.api,el,{headers:{"Content-Type":"application/json"}});let Y=(Qe=(le=($a=(ba=z.cloneDeep(oe))==null?void 0:ba.extraValues)==null?void 0:$a.output)==null?void 0:le.map(ee=>{var ke,pe,$e,Ve,ca,ya,Oe,da,Le,_a,Fe,ma,ce,ga,ye,Ea;if(!((pe=(ke=Object.values(ee))==null?void 0:ke[0])!=null&&pe.includes(".doc"))){let Ye=(_a=(Le=(da=(Ve=z.cloneDeep(($e=Object.values(ee))==null?void 0:$e[0]))==null?void 0:Ve.split("["))==null?void 0:da[((Oe=(ya=z.cloneDeep((ca=Object.values(ee))==null?void 0:ca[0]))==null?void 0:ya.split("["))==null?void 0:Oe.length)-1])==null?void 0:Le.split("]"))==null?void 0:_a[0],Ke=Ye==null?void 0:Ye.split(":"),Ce=(ce=z.cloneDeep((Fe=Object.values(ee))==null?void 0:Fe[0]))==null?void 0:ce.substring(0,z.cloneDeep((ma=Object.values(ee))==null?void 0:ma[0]).lastIndexOf("["));if(Ce=(ye=z.cloneDeep(Ce))==null?void 0:ye.slice(0,((ga=z.cloneDeep(Ce))==null?void 0:ga.length)-1),Ce!=null&&Ce.includes("[")){let be="";if((Ea=sa.contentTransArrayToAll(Ce,"/"))==null||Ea.forEach(Ee=>{var pa,na,rl,Il,Fl,al,Ha;if(!(Ee!=null&&Ee.includes("[")))be=be===""?be+Ee.replaceAll("/",""):be+"/"+Ee.replaceAll("/","");else{let oa=z.cloneDeep(Ee).slice(1,((pa=z.cloneDeep(Ee))==null?void 0:pa.length)-1),Ta=(al=(Fl=(Il=(rl=(na=z.cloneDeep(oa))==null?void 0:na.split("["))==null?void 0:rl[1])==null?void 0:Il.split("]"))==null?void 0:Fl[0])==null?void 0:al.split(":"),Va="",ll=(Ha=qe==null?void 0:qe.find(yl=>(yl==null?void 0:yl.name)===(Ta==null?void 0:Ta[0])))==null?void 0:Ha.compData;ll==null||ll.forEach(yl=>{var Da;(yl==null?void 0:yl.key)==="formContent"&&((Da=yl==null?void 0:yl.contents)==null||Da.forEach(Ge=>{(Ge==null?void 0:Ge.key)===(Ta==null?void 0:Ta[1])&&(Va=Ge==null?void 0:Ge.value)}))}),be=be===""?be+Va.replaceAll("/",""):be+"/"+Va.replaceAll("/","")}}),Ce=be,Ce[(Ce==null?void 0:Ce.length)-1]!=="/")return Ce}}}))==null?void 0:Qe.filter(ee=>ee);Y=[...new Set(z.cloneDeep(Y))];let V=Y==null?void 0:Y.map(async ee=>{let ke=await sa.getItemData(ee,sessionStorage.getItem("systemKey"),"",!1,"","",ze);if((ke==null?void 0:ke.length)===0)return await sa.getParentContents(ee)});await Promise.all(V);let K=[],Te=(Re=(ka=(Ie=z.cloneDeep(oe))==null?void 0:Ie.extraValues)==null?void 0:ka.output)==null?void 0:Re.map(async ee=>{var da,Le,_a,Fe,ma,ce,ga,ye,Ea,Ye,Ke,Ce,be,Ee,pa,na,rl,Il,Fl,al,Ha,oa,Ta,Va,ll,yl,Da,Ge,X,Aa,Ma,sl,nl,wa,ha,za,ea,fa,La,Ua,zl,Sl,Nl,Tl,dl,tl,gl,Cl,Rl,br,Sr,nn,tn,Ar,Gr,Xr,lr,Tr,Dr,_n,wr,sr,rt,dn,pn,Tn,nt,An,Mn,on;if((Le=(da=Object.values(ee))==null?void 0:da[0])!=null&&Le.includes(".doc")){var ke=new Blob([j.data],{type:"application/octet-stream;charset=UTF-8"}),pe=j.headers["content-disposition"],$e=new RegExp("filename=([^;]+\\.[^\\.;]+);*"),Ve=$e.exec(pe),ca=Ve==null?void 0:Ve[1],ya=document.createElement("a"),Oe=window.URL.createObjectURL(ke);k.value=[{name:ca,blobUrl:Oe}],u.value=!0}else{let Un=(Ye=(Ea=(ye=(Fe=z.cloneDeep((_a=Object.values(ee))==null?void 0:_a[0]))==null?void 0:Fe.split("["))==null?void 0:ye[((ga=(ce=z.cloneDeep((ma=Object.values(ee))==null?void 0:ma[0]))==null?void 0:ce.split("["))==null?void 0:ga.length)-1])==null?void 0:Ea.split("]"))==null?void 0:Ye[0],Bl=Un==null?void 0:Un.split(":"),kr=(be=z.cloneDeep((Ke=Object.values(ee))==null?void 0:Ke[0]))==null?void 0:be.substring(0,z.cloneDeep((Ce=Object.values(ee))==null?void 0:Ce[0]).lastIndexOf("["));if(kr!=null&&kr.includes("[")?kr=(pa=z.cloneDeep(kr))==null?void 0:pa.slice(0,((Ee=z.cloneDeep(kr))==null?void 0:Ee.length)-1):kr===""&&(kr=S.value),kr=kr.replaceAll("<","[").replaceAll(">","]"),kr!=null&&kr.includes("[")){let $l="";(na=sa.contentTransArrayToAll(kr,"/"))==null||na.forEach((Pl,Hl)=>{var hr,rr,Pr,Rr,Ur,wn,Cn,zn,tt,yn,En;if(!(Pl!=null&&Pl.includes("[")))$l=$l===""?$l+Pl.replaceAll("/",""):$l+"/"+Pl.replaceAll("/","");else{let On="",qr="";(hr=z.cloneDeep(Pl))!=null&&hr.includes("]")?(On=z.cloneDeep(Pl).slice(1,((rr=z.cloneDeep(Pl))==null?void 0:rr.length)-1),qr=(Cn=(wn=(Ur=(Rr=(Pr=z.cloneDeep(On))==null?void 0:Pr.split("["))==null?void 0:Rr[1])==null?void 0:Ur.split("]"))==null?void 0:wn[0])==null?void 0:Cn.split(":")):(On=z.cloneDeep(Pl).slice(1,(zn=z.cloneDeep(Pl))==null?void 0:zn.length),qr=(tt=z.cloneDeep(On))==null?void 0:tt.split("/"));let sn="",qn=(yn=qe==null?void 0:qe.find(Mr=>(Mr==null?void 0:Mr.name)===(qr==null?void 0:qr[0])))==null?void 0:yn.compData;qn==null||qn.forEach(Mr=>{var Kn;(Mr==null?void 0:Mr.key)==="formContent"&&((Kn=Mr==null?void 0:Mr.contents)==null||Kn.forEach(fn=>{(fn==null?void 0:fn.key)===(qr==null?void 0:qr[1])&&(sn=fn==null?void 0:fn.value)}))}),((En=sa.contentTransArrayToAll(kr,"/"))==null?void 0:En.length)-1!==Hl?$l=$l===""?$l+sn.replaceAll("/",""):$l+"/"+sn.replaceAll("/",""):$l=$l+t.value+sn.replaceAll("/","")}}),(rl=S.value)!=null&&rl.includes($l)?kr=S.value:kr=$l}let er=z.cloneDeep((Il=Object.keys(ee))==null?void 0:Il[0]);if(((Fl=j==null?void 0:j.data)==null?void 0:Fl.statusCode)===200||((al=j==null?void 0:j.data)==null?void 0:al.code)===200){if(((oa=(Ha=j==null?void 0:j.data)==null?void 0:Ha.data)!=null&&oa[er]||(Va=(Ta=j==null?void 0:j.data)==null?void 0:Ta.result)!=null&&Va[er])&&(Bl==null?void 0:Bl.length)===1)return await me(((yl=(ll=j==null?void 0:j.data)==null?void 0:ll.data)==null?void 0:yl[er])||((Ge=(Da=j==null?void 0:j.data)==null?void 0:Da.result)==null?void 0:Ge[er]),z.cloneDeep(kr),Bl,Sa);if((Aa=(X=j==null?void 0:j.data)==null?void 0:X.data)!=null&&Aa[er]||(sl=(Ma=j==null?void 0:j.data)==null?void 0:Ma.result)!=null&&sl[er]){let $l=await Be(((wa=(nl=j==null?void 0:j.data)==null?void 0:nl.data)==null?void 0:wa[er])||((za=(ha=j==null?void 0:j.data)==null?void 0:ha.result)==null?void 0:za[er]),z.cloneDeep(kr),Bl);return $l&&(K=[...K,...$l]),$l}else{if(!((ea=j==null?void 0:j.data)!=null&&ea.data)){let $l=await sa.getItemData(S.value,sessionStorage.getItem("systemKey"),"",!1,"","",ze);$l=$l==null?void 0:$l.map(Hl=>{var hr;return(Hl==null?void 0:Hl.name)===(Bl==null?void 0:Bl[0])&&(Hl.compData=(hr=Hl.compData)==null?void 0:hr.map(rr=>{var Pr;return(rr==null?void 0:rr.key)==="formContent"&&(rr.contents=(Pr=rr.contents)==null?void 0:Pr.map(Rr=>{var Ur,wn;return(Rr==null?void 0:Rr.key)===(Bl==null?void 0:Bl[1])&&(Rr.value=(wn=(Ur=j==null?void 0:j.data)==null?void 0:Ur.result)==null?void 0:wn[er==null?void 0:er.replaceAll(":","")]),Rr})),rr})),Hl});let Pl=[];(fa=$l==null?void 0:$l.filter(Hl=>(Hl==null?void 0:Hl.comp)==="Form"))==null||fa.forEach(async Hl=>{let hr={};for(let rr in Hl)rr!=="id"&&(hr[rr]=Hl[rr]);Pl.push({id:Hl==null?void 0:Hl.id,value:{pageData:hr}})}),(Pl==null?void 0:Pl.length)>0&&await mr.batchUpdateInsofDataApi({dataList:Pl});return}if((Bl==null?void 0:Bl.length)===1){const $l=(zl=(Ua=(La=j==null?void 0:j.data)==null?void 0:La.data)==null?void 0:Ua.path)==null?void 0:zl.path;let Pl="";(tl=(dl=(Tl=(Nl=(Sl=$l==null?void 0:$l.split("("))==null?void 0:Sl[1])==null?void 0:Nl.split(")"))==null?void 0:Tl[0])==null?void 0:dl.split(":"))==null||tl.forEach(rr=>{var Pr,Rr;Pl=Pl===""?Pl+((Pr=rr==null?void 0:rr.replaceAll("'",""))==null?void 0:Pr.trim()):Pl+"/"+((Rr=rr==null?void 0:rr.replaceAll("'",""))==null?void 0:Rr.trim())});let Hl=[(Sr=(br=(Rl=(Cl=(gl=$l==null?void 0:$l.split("<"))==null?void 0:gl[1])==null?void 0:Cl.split(">"))==null?void 0:Rl[0])==null?void 0:br.replaceAll("'",""))==null?void 0:Sr.trim()],hr;return(Ar=(tn=(nn=j==null?void 0:j.data)==null?void 0:nn.data)==null?void 0:tn.data)!=null&&Ar[Bl==null?void 0:Bl[0]]?hr=await me((lr=(Xr=(Gr=j==null?void 0:j.data)==null?void 0:Gr.data)==null?void 0:Xr.data)==null?void 0:lr[Bl==null?void 0:Bl[0]],Pl,Bl,Sa):hr=await xe((Dr=(Tr=j==null?void 0:j.data)==null?void 0:Tr.data)==null?void 0:Dr.data,Pl,Hl,ze),hr}else{const $l=(sr=(wr=(_n=j==null?void 0:j.data)==null?void 0:_n.data)==null?void 0:wr.path)==null?void 0:sr.path;let Pl="";return(nt=(Tn=(pn=(dn=(rt=$l==null?void 0:$l.split("("))==null?void 0:rt[1])==null?void 0:dn.split(")"))==null?void 0:pn[0])==null?void 0:Tn.split(":"))==null||nt.forEach(hr=>{var rr,Pr;Pl=Pl===""?Pl+((rr=hr==null?void 0:hr.replaceAll("'",""))==null?void 0:rr.trim()):Pl+"/"+((Pr=hr==null?void 0:hr.replaceAll("'",""))==null?void 0:Pr.trim())}),await Be((on=(Mn=(An=j==null?void 0:j.data)==null?void 0:An.data)==null?void 0:Mn.data)==null?void 0:on[Bl==null?void 0:Bl[0]],Pl,Bl)}}}}});if(await Promise.all(Te),(K==null?void 0:K.length)>0){let ee=[];K==null||K.forEach($e=>{ee!=null&&ee.find(Ve=>{var ca,ya,Oe,da;return((ya=(ca=Ve==null?void 0:Ve.value)==null?void 0:ca.pageData)==null?void 0:ya.name)===((da=(Oe=$e==null?void 0:$e.value)==null?void 0:Oe.pageData)==null?void 0:da.name)})||ee.push($e)});let ke=[];ee==null||ee.forEach($e=>{var ya,Oe,da,Le;let Ve=z.cloneDeep($e);Ve.value.pageData.compData=(ya=Ve.value.pageData.compData)==null?void 0:ya.map(_a=>{var Fe;return(_a==null?void 0:_a.key)==="formContent"&&(_a.contents=(Fe=_a.contents)==null?void 0:Fe.map(ma=>{var ga,ye,Ea,Ye;let ce=(ga=z.cloneDeep(K))==null?void 0:ga.find(Ke=>(Ke==null?void 0:Ke.keyType)===(ma==null?void 0:ma.key));if(ce){let Ke=(Ye=(Ea=(ye=ce.value.pageData.compData)==null?void 0:ye.find(Ce=>(Ce==null?void 0:Ce.key)==="formContent"))==null?void 0:Ea.contents)==null?void 0:Ye.find(Ce=>(Ce==null?void 0:Ce.key)===(ma==null?void 0:ma.key));ma.value=Ke==null?void 0:Ke.value}return ma})),_a}),ke.push({id:Ve==null?void 0:Ve.id,value:Ve==null?void 0:Ve.value});let ca=[];(Le=(da=(Oe=Ve==null?void 0:Ve.value)==null?void 0:Oe.pageData)==null?void 0:da.compData)==null||Le.forEach(_a=>{var Fe;(_a==null?void 0:_a.key)==="formContent"&&((Fe=_a==null?void 0:_a.contents)==null||Fe.forEach(ma=>{var ce,ga,ye,Ea,Ye,Ke;if((ga=(ce=ma==null?void 0:ma.optionUrl)==null?void 0:ce.menuSelect)!=null&&ga.find(Ce=>Ce==null?void 0:Ce.includes("[")))if(ca!=null&&ca.find(Ce=>{var be,Ee,pa;return((be=Ce==null?void 0:Ce.key)==null?void 0:be.join(","))===((pa=(Ee=ma==null?void 0:ma.optionUrl)==null?void 0:Ee.menuSelect)==null?void 0:pa.join(","))})){let Ce=(ye=ca==null?void 0:ca.find(be=>{var Ee,pa,na;return((Ee=be==null?void 0:be.key)==null?void 0:Ee.join(","))===((na=(pa=ma==null?void 0:ma.optionUrl)==null?void 0:pa.menuSelect)==null?void 0:na.join(","))}))==null?void 0:ye.value;Ce.push({key:ma==null?void 0:ma.prop,groups:(Ea=ma==null?void 0:ma.optionUrl)==null?void 0:Ea.groupSelect,value:ma==null?void 0:ma.value}),ca=ca==null?void 0:ca.map(be=>{var Ee,pa,na;return((Ee=be==null?void 0:be.key)==null?void 0:Ee.join(","))===((na=(pa=ma==null?void 0:ma.optionUrl)==null?void 0:pa.menuSelect)==null?void 0:na.join(","))&&(be.value=Ce),be})}else ca.push({key:(Ye=ma==null?void 0:ma.optionUrl)==null?void 0:Ye.menuSelect,value:[{key:ma==null?void 0:ma.prop,groups:(Ke=ma==null?void 0:ma.optionUrl)==null?void 0:Ke.groupSelect,value:ma==null?void 0:ma.value}]})}))}),(ca==null?void 0:ca.length)>0&&(ca=ca==null?void 0:ca.map(_a=>{var ma;let Fe="";return(ma=_a==null?void 0:_a.key)==null||ma.forEach(ce=>{var ga;if(!(ce!=null&&ce.includes("[")))Fe=Fe===""?Fe+ce:Fe+"/"+ce;else{let ye="",Ea=(ga=ce==null?void 0:ce.replaceAll("[","").replaceAll("]",""))==null?void 0:ga.split(":");qe==null||qe.forEach(Ye=>{var Ke;(Ye==null?void 0:Ye.name)===(Ea==null?void 0:Ea[0])&&((Ke=Ye==null?void 0:Ye.compData)==null||Ke.forEach(Ce=>{var be;(Ce==null?void 0:Ce.key)==="formContent"&&((be=Ce==null?void 0:Ce.contents)==null||be.forEach(Ee=>{(Ee==null?void 0:Ee.prop)===(Ea==null?void 0:Ea[1])&&(ye=Ee==null?void 0:Ee.value)}))}))}),Fe=Fe+t.value+ye}}),_a.key=Fe,_a})),ca==null||ca.forEach(_a=>{var ga,ye,Ea;let Fe=(ga=ze[_a.key])==null?void 0:ga.find(Ye=>{var Ke,Ce,be,Ee,pa,na,rl;return((Ce=(Ke=Ye==null?void 0:Ye.value)==null?void 0:Ke.pageData)==null?void 0:Ce.name)===((pa=(Ee=(be=_a==null?void 0:_a.value)==null?void 0:be[0])==null?void 0:Ee.groups)==null?void 0:pa[0])&&((rl=(na=Ye==null?void 0:Ye.value)==null?void 0:na.pageData)==null?void 0:rl.name)!==void 0}),ma=Fe==null?void 0:Fe.id,ce=(ye=Fe==null?void 0:Fe.value)==null?void 0:ye.pageData;ce.compData=(Ea=ce.compData)==null?void 0:Ea.map(Ye=>{var Ke;return(Ye==null?void 0:Ye.key)==="formContent"&&(Ye.contents=(Ke=Ye.contents)==null?void 0:Ke.map(Ce=>{var Ee;let be=(Ee=_a.value)==null?void 0:Ee.find(pa=>(pa==null?void 0:pa.key)===(Ce==null?void 0:Ce.prop));return be&&(Ce.value=be.value),Ce})),Ye}),ke.push({id:ma,value:{pageData:ce}})})});let pe=(we=z.cloneDeep(K))==null?void 0:we[0];(ke==null?void 0:ke.length)>0&&await mr.batchUpdateInsofDataApi({dataList:ke})}y.setFreshContent(!0)}E.setImportLoading(!1)}catch{Za.ElMessage.error("方法执行错误,请查看方法!"),E.setImportLoading(!1)}g.value=!0},ue=["createInsofDataApi"],Ue=Na.debounce(async oe=>{Z(oe)},100),Ca=async oe=>{var ra,ba,$a;const D=z.cloneDeep(oe);let ne,ve=new WeakMap;oe!=null&&oe[0].path&&(ne=await(D==null?void 0:D.map(async(le,Qe)=>{var el,P,j,Y,V,K,Te,ee,ke,pe,$e,Ve,ca,ya,Oe,da;const ka=(el=ve[le==null?void 0:le.path])==null?void 0:el.filter(Le=>{var _a;return((_a=Le==null?void 0:Le.key)==null?void 0:_a.type)==="data"});let Re="";const we=await sa.getItemData(S.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,ve);ka==null||ka.forEach(Le=>{var _a,Fe,ma,ce,ga;((Fe=(_a=Le==null?void 0:Le.value)==null?void 0:_a.tableData)==null?void 0:Fe.算法名称)===((ma=D==null?void 0:D[Qe])==null?void 0:ma.method)&&(Re=(ga=(ce=Le==null?void 0:Le.value)==null?void 0:ce.tableData)==null?void 0:ga.算法体)});const ze=await sa.getItemData(le==null?void 0:le.path,sessionStorage.getItem("systemKey"),"",!1,[],!1,ve);let qe="",Sa=(V=(Y=(j=(P=ze==null?void 0:ze[0])==null?void 0:P.compData)==null?void 0:j.find(Le=>(Le==null?void 0:Le.key)==="header"))==null?void 0:Y.contents)==null?void 0:V.findIndex(Le=>(Le==null?void 0:Le.prop)==="算法体");return(Te=(K=ze==null?void 0:ze[0])==null?void 0:K.compData)==null||Te.forEach(Le=>{var _a;(Le==null?void 0:Le.key)==="tableContents"&&((_a=Le==null?void 0:Le.contents)==null||_a.forEach(Fe=>{Fe!=null&&Fe.find(ma=>ma===(le==null?void 0:le.method))&&(qe=Fe[Sa])}))}),{buttonName:((ee=D==null?void 0:D[Qe])==null?void 0:ee.method)||(($e=(pe=(ke=ka==null?void 0:ka[0])==null?void 0:ke.value)==null?void 0:pe.tableData)==null?void 0:$e.算法名称),api:(Re===""?(ya=(ca=(Ve=ka==null?void 0:ka[0])==null?void 0:Ve.value)==null?void 0:ca.tableData)==null?void 0:ya.算法体:Re)||qe,content:we==null?void 0:we.filter(Le=>Le.comp!=="methodButton"),extraContent:(Oe=z.cloneDeep(le.value))==null?void 0:Oe.slice(1),methodName:(le==null?void 0:le.path)??"",extraValues:(da=D==null?void 0:D[Qe])==null?void 0:da.data}})));const se=D==null?void 0:D.map(async le=>{var ze,qe,Sa,el,P,j;const Qe=(ze=resAll.data.result)==null?void 0:ze.filter(Y=>{var V,K,Te;return((V=Y==null?void 0:Y.key)==null?void 0:V.parentTable)===""&&((K=Y==null?void 0:Y.key)==null?void 0:K.type)==="method"&&((Te=Y==null?void 0:Y.key)==null?void 0:Te.methodName)===Y.method}),Ie=Qe==null?void 0:Qe[0],ka=(qe=resAll.data.result)==null?void 0:qe.filter(Y=>{var V,K;return((V=Y==null?void 0:Y.key)==null?void 0:V.type)==="methodData"&&((K=Y==null?void 0:Y.key)==null?void 0:K.tableId)===(Ie==null?void 0:Ie.id)}),Re=await sa.getItemData(S.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,ve),we=ka==null?void 0:ka[0];return{buttonName:(Sa=Ie==null?void 0:Ie.key)==null?void 0:Sa.methodKey,api:(P=(el=we==null?void 0:we.value)==null?void 0:el.tableData)==null?void 0:P[0],content:Re==null?void 0:Re.filter(Y=>Y.comp!=="methodButton"),extraContent:(j=z.cloneDeep(le.value))==null?void 0:j.slice(1),methodName:(le==null?void 0:le.method)??""}}),_e=(ra=oe==null?void 0:oe[0])!=null&&ra.path&&((ba=oe==null?void 0:oe[0])==null?void 0:ba.path)!==""?await Promise.all(ne):await Promise.all(se);n.value=_e==null?void 0:_e.filter(le=>le==null?void 0:le.extraContent),($a=n.value)==null||$a.forEach(le=>{var Qe;le.api===""&&((Qe=le.content)==null||Qe.forEach(Ie=>{var ka;Ie.comp=="Table"&&y.setExtraContents(sa.methodTableToContent(Ie.compData,(ka=le.extraContent)==null?void 0:ka[0]))}))})};return a.watch(()=>s.itemData,async()=>{_.value=="view"&&!g.value&&await Ca(z.cloneDeep(s.itemData)),g.value=!1},{immediate:!0,deep:!0}),(oe,D)=>{var ne,ve,se;return a.unref(_)!=="edit"?(a.openBlock(),a.createElementBlock("div",m2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((ne=n.value)==null?void 0:ne.filter(_e=>(_e==null?void 0:_e.buttonName)!=="保存"),_e=>{var ra;return a.openBlock(),a.createElementBlock("div",null,[_e.api!==""?(a.openBlock(),a.createBlock(a.unref(qi._sfc_main),{key:0,disabled:a.unref(M)===a.unref(S)&&!((ra=_e==null?void 0:_e.buttonName)!=null&&ra.includes("预览")),class:"calculator-content",modelValue:_e.buttonName,onClickTrigger:ba=>a.unref(Ue)(_e),loading:c.value},null,8,["disabled","modelValue","onClickTrigger","loading"])):a.createCommentVNode("",!0)])}),256)),a.createElementVNode("div",null,[a.unref(W)!==""&&((se=a.unref(S))==null?void 0:se[((ve=a.unref(S))==null?void 0:ve.length)-1])!==a.unref(t)?(a.openBlock(),a.createBlock(a.unref(qi._sfc_main),{key:0,class:"calculator-content",onClickTrigger:H,modelValue:"保存"})):a.createCommentVNode("",!0)]),u.value?(a.openBlock(),a.createBlock(ul.ssFilePreview,{key:0,fileDataList:k.value,onDestroy:q},null,8,["fileDataList"])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)}}},g2=Ul._export_sfc(y2,[["__scopeId","data-v-063aa9af"]]),b2={};function k2(l,n){return" 567 "}const x2=Ul._export_sfc(b2,[["render",k2]]),_2={class:"module content"},w2={class:"module data"},C2={class:"module layout"},E2={class:"form-content"},S2=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,t=n,s=a.reactive({visible:!1,width:"40%",title:"签名配置"}),u=a.ref("create"),k=a.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),h=a.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}]),v=a.computed(()=>[{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"类型:",prop:"label",type:"select",contents:[{label:"电子签名",value:"电子签名"},{label:"签字版",value:"签字版"},{label:"上传签名",value:"上传签名"}],value:""},{label:"图标",prop:"icon",type:"inputPopover",value:""}]),y=a.ref({}),c=a.ref([]),E=()=>({comp:"Signature",compData:[{key:"signTypeList",contents:c.value},{key:"signConfig",contents:y.value}]}),A=C=>{var M;y.value=z.cloneDeep(C),t("change",(M=E())==null?void 0:M.compData)},L=C=>{var M,ae;if((C==null?void 0:C.buttonName)==="确认"){const S=z.cloneDeep(C==null?void 0:C.content);switch(u.value){case"create":c.value.push({...S,index:((M=c.value)==null?void 0:M.length)+1});break}t("change",(ae=E())==null?void 0:ae.compData),s.visible=!1}else s.visible=!1},_=(C,M)=>{var ae,S;switch(C){case"create":(ae=v.value)==null||ae.forEach($=>{$.value=""}),u.value="create",s.visible=!0;break;case"update":(S=v.value)==null||S.forEach($=>{$.value=M[$==null?void 0:$.prop]}),u.value="update",s.visible=!0;break;case"delete":c.value.splice(M,1),u.value="delete";break}},W=()=>{s.visible=!1};return a.watch(()=>r==null?void 0:r.itemContents,C=>{var M,ae;C&&(y.value=((M=C==null?void 0:C.find(S=>S.key==="signConfig"))==null?void 0:M.contents)??{},c.value=((ae=C==null?void 0:C.find(S=>S.key==="signTypeList"))==null?void 0:ae.contents)??[])},{immediate:!0}),(C,M)=>{const ae=a.resolveComponent("svg-icon"),S=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",_2,[M[2]||(M[2]=a.createElementVNode("h4",{class:"module-title"},"签名类型",-1)),a.createVNode(S,{class:"module-icon",id:"themeButton",onClick:M[0]||(M[0]=$=>_("create"))},{icon:a.withCtx(()=>[a.createVNode(ae,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[M[1]||(M[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",w2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.value,($,N)=>(a.openBlock(),a.createElementBlock("div",{class:"module-data-item",key:N},[a.createElementVNode("span",null,a.toDisplayString($==null?void 0:$.label),1),a.createElementVNode("div",null,[a.createVNode(S,{type:"primary",size:"small",onClick:x=>_("update",{...$,index:N+1})},{default:a.withCtx(()=>M[3]||(M[3]=[a.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),a.createVNode(S,{type:"danger",size:"small",onClick:x=>_("delete",N)},{default:a.withCtx(()=>M[4]||(M[4]=[a.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),a.createElementVNode("div",C2,[a.createVNode(ul.ssForm,{rowContents:h.value,onChange:A},null,8,["rowContents"])])]),a.createVNode(dr.ssDialog,{visible:s.visible,title:s.title,onBeforeDestroy:W,width:s.width},{default:a.withCtx(()=>[a.createElementVNode("div",E2,[(a.openBlock(),a.createBlock(ul.ssForm,{rowContents:v.value,key:v.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:k.value,onOnButtonClick:L},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),D2=Ul._export_sfc(S2,[["__scopeId","data-v-487e0536"]]),B2=a.defineComponent({__name:"index",props:{stepConfig:{type:Object,default:{}},stepList:{type:Array,default:()=>[]}},emits:["clickStep","clickTrigger","changeTrigger"],setup(l,{emit:n}){const r=l,t=n,s=a.ref(1),u=a.computed(()=>{var E,A;return(E=r==null?void 0:r.stepConfig)!=null&&E.allowTrigger?s.value:(A=r==null?void 0:r.stepConfig)==null?void 0:A.active}),k=(E,A)=>{s.value=A,t("clickStep",E,A)},h=E=>ul.getComponent(E),v=()=>{var A;const E=(A=r==null?void 0:r.stepList)==null?void 0:A.find((L,_)=>_+1===u.value);return console.log("findStep",E),E?E==null?void 0:E.children:[]},y=E=>{t("clickTrigger",E)},c=E=>{t("changeTrigger",E)};return(E,A)=>{var W,C,M,ae,S;const L=a.resolveComponent("el-step"),_=a.resolveComponent("el-steps");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(_,{direction:(W=l.stepConfig)==null?void 0:W.direction,active:u.value,"finish-status":"success",simple:(C=l.stepConfig)==null?void 0:C.simple,"align-center":((M=l.stepConfig)==null?void 0:M.alignCenter)??!0},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.stepList,($,N)=>(a.openBlock(),a.createBlock(L,{key:N,class:"step-item",onClick:x=>k($,N+1)},{title:a.withCtx(()=>[a.renderSlot(E.$slots,"title",{title:$==null?void 0:$.title},void 0,!0)]),description:a.withCtx(()=>[a.renderSlot(E.$slots,"description",{description:$==null?void 0:$.description},void 0,!0)]),_:2},1032,["onClick"]))),128))]),_:3},8,["direction","active","simple","align-center"]),(ae=l.stepConfig)!=null&&ae.allowTrigger&&((S=l.stepConfig)!=null&&S.active)?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(v(),($,N)=>(a.openBlock(),a.createElementBlock("div",{key:N,class:"step-cont-wrap"},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(h($==null?void 0:$.type)),{modelValue:$.value,"onUpdate:modelValue":x=>$.value=x,onClickTrigger:y,onChangeTrigger:c,content:$==null?void 0:$.content},a.createSlots({_:2},[a.renderList(E.$slots,(x,g)=>({name:g,fn:a.withCtx(H=>[a.renderSlot(E.$slots,g,a.mergeProps({ref_for:!0},H||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"]))]))),128)):a.createCommentVNode("",!0)],64)}}}),N2=Ul._export_sfc(B2,[["__scopeId","data-v-d7c99969"]]),T2=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]}},emits:["clickStep"],setup(l,{emit:n}){const r=l,t=n,s=a.ref({}),u=a.ref([]),k=(h,v)=>{t("clickStep",h,v)};return a.watch(()=>r==null?void 0:r.itemData,h=>{var v,y;u.value=(v=h==null?void 0:h.find(c=>(c==null?void 0:c.key)==="stepList"))==null?void 0:v.contents,s.value=(y=h==null?void 0:h.find(c=>(c==null?void 0:c.key)==="stepConfig"))==null?void 0:y.contents},{immediate:!0,deep:!0}),(h,v)=>{const y=a.resolveComponent("svg-icon");return a.openBlock(),a.createBlock(N2,{stepConfig:s.value,stepList:u.value,onClickStep:k},{icon:a.withCtx(()=>[a.createVNode(y,{name:"import"})]),title:a.withCtx(({title:c})=>[a.createTextVNode(a.toDisplayString(c),1)]),description:a.withCtx(({description:c})=>[a.createTextVNode(a.toDisplayString(c),1)]),_:1},8,["stepConfig","stepList"])}}}),A2=a.defineComponent({__name:"index",props:{activities:{type:Array,default:()=>[]},timeLineConfig:{type:Object,default:()=>{}}},setup(l){return(n,r)=>{const t=a.resolveComponent("el-timeline-item"),s=a.resolveComponent("el-timeline");return a.openBlock(),a.createBlock(s,null,{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.activities,(u,k)=>(a.openBlock(),a.createBlock(t,{key:k,timestamp:u.timestamp,placement:l.timeLineConfig.placement,center:l.timeLineConfig.isCenter,"hide-timestamp":!0,type:l.timeLineConfig.type,color:l.timeLineConfig.color,size:l.timeLineConfig.size,icon:l.timeLineConfig.icon,hollow:l.timeLineConfig.isHollow},{default:a.withCtx(()=>[a.renderSlot(n.$slots,"content",{content:u==null?void 0:u.content,timestamp:u==null?void 0:u.timestamp},void 0,!0)]),_:2},1032,["timestamp","placement","center","type","color","size","icon","hollow"]))),128))]),_:3})}}}),M2=Ul._export_sfc(A2,[["__scopeId","data-v-4172a886"]]),z2={class:"line-content"},O2={class:"line-time"},I2=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},setup(l){const n=l,r=a.ref({}),t=a.ref([]);return a.watch(()=>n==null?void 0:n.itemData,s=>{var u,k;t.value=(u=s==null?void 0:s.find(h=>(h==null?void 0:h.key)==="timeLineList"))==null?void 0:u.contents,r.value=(k=s==null?void 0:s.find(h=>(h==null?void 0:h.key)==="timeLineConfig"))==null?void 0:k.contents},{immediate:!0}),(s,u)=>(a.openBlock(),a.createBlock(M2,{activities:t.value,timeLineConfig:r.value},{content:a.withCtx(({content:k,timestamp:h})=>[a.createElementVNode("span",z2,a.toDisplayString(k),1),a.createElementVNode("span",O2,a.toDisplayString(h),1)]),_:1},8,["activities","timeLineConfig"]))}}),L2=Ul._export_sfc(I2,[["__scopeId","data-v-b4d9deed"]]),V2={class:"tabs-content"},R2=a.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(l,{emit:n}){const r=l,t=n,s=a.ref();a.watch(()=>r==null?void 0:r.itemData,()=>{s.value=r==null?void 0:r.itemData},{immediate:!0,deep:!0});const u=A=>{t("change",A)},k=(A,L)=>{t("contentChange",A,L)},h=A=>{t("pageChange",A)},v=A=>{t("rowClick",A)},y=(A,L)=>{t("routeUrl",A,L)},c=A=>{t("clickTrigger",A)},E=(A,L)=>{t("clickMainKey",A,L)};return(A,L)=>{var _,W;return a.openBlock(),a.createElementBlock("div",V2,[(_=s.value)!=null&&_.length?(a.openBlock(),a.createBlock(ul.ssTab,{tabsContents:s.value,key:(W=s.value)==null?void 0:W.length},{pane:a.withCtx(({tab:C,index:M})=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Pt)(C==null?void 0:C.comp)),{related:C==null?void 0:C.relatedTables,compNames:r==null?void 0:r.compNames,compName:C==null?void 0:C.name,cacheNewData:r==null?void 0:r.cacheNewData,isDevMode:l.isDevMode,itemData:C==null?void 0:C.compData,childItemData:C==null?void 0:C.itemChildData,onChange:u,index:(C==null?void 0:C.id)??M,config:{showIndex:C==null?void 0:C.showIndex,allowMove:C==null?void 0:C.allowMove,viewport:C==null?void 0:C.viewport},onContentChange:k,onPageChange:h,onRowClick:v,onRouteUrl:y,parentTableId:C==null?void 0:C.tableId,allMapContents:l.allMapContents,children:C==null?void 0:C.children,level:1,onClickTrigger:c,onClickMainKey:E},null,40,["related","compNames","compName","cacheNewData","isDevMode","itemData","childItemData","index","config","parentTableId","allMapContents","children"]))]),_:1},8,["tabsContents"])):a.createCommentVNode("",!0)])}}}),$2=Ul._export_sfc(R2,[["__scopeId","data-v-ded4e0d9"]]),P2={class:"type-select"},F2=["onClick"],j2={class:"list-icon"},H2={__name:"modelSelect",setup(l){const n=Et(z.pinia),{itemData:r}=z.storeToRefs(n),t=s=>{const u=z.cloneDeep(r.value);u.push({comp:s.comp,name:s.name,compData:[]}),n.setItemData(u)};return(s,u)=>{const k=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",P2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(Pc),(h,v)=>(a.openBlock(),a.createElementBlock("div",{class:"type-list",key:v},[a.createElementVNode("div",{class:"list-content",onClick:y=>t(h)},[a.createElementVNode("div",j2,[a.createVNode(k,{name:h.icon},null,8,["name"])]),a.createElementVNode("div",null,a.toDisplayString(h.name),1)],8,F2)]))),128))])}}},U2=Ul._export_sfc(H2,[["__scopeId","data-v-91799bf8"]]),q2={class:"fill-content"},K2={class:"operate-content"},W2={class:"collapse-title-content"},Y2={class:"collapse-title-item"},J2={key:1},G2=["onClick"],X2={class:"icon-content"},Z2={key:0,class:"edit-content"},Q2=["onClick"],eh={class:"comp-child"},ah={__name:"modelFill",setup(l){const n=Et(z.pinia),{itemData:r,originalData:t}=z.storeToRefs(n),s=a.ref([]);a.ref([]);const u=a.ref([]),k=a.ref([]),h=L=>{var W;let _=(W=z.cloneDeep(k.value))==null?void 0:W.map((C,M)=>(L===M&&(C.content=!0),C));k.value=_},v=L=>{var W;let _=(W=z.cloneDeep(k.value))==null?void 0:W.map((C,M)=>(L===M&&(C.content=!1),C));k.value=_,s.value=z.cloneDeep(r.value)},y=(L,_)=>{var ae;let W=(ae=z.cloneDeep(k.value))==null?void 0:ae.map((S,$)=>(L===$&&(S.content=!1),S));k.value=W;const C=z.cloneDeep(r.value),M=C==null?void 0:C.filter((S,$)=>($===L&&(S.name=_),S));n.setOriginalData(M),n.setItemData(M)};a.watch(()=>r.value,()=>{var L,_,W;!r.value||((L=r.value)==null?void 0:L.length)===0?s.value=[]:s.value=(_=z.cloneDeep(r.value))==null?void 0:_.filter(C=>(C==null?void 0:C.comp)!=="methodButton"),u.value=s.value,k.value=(W=z.cloneDeep(u.value))==null?void 0:W.map((C,M)=>({id:M,content:!1}))},{deep:!0,immediate:!0});const c=L=>St(L),E=(L,_,W)=>{var M,ae;if(!L)return;let C=z.cloneDeep(r.value);C=(M=C==null?void 0:C.map((S,$)=>($===W&&(S.compData=L),S)))==null?void 0:M.filter(S=>(S==null?void 0:S.comp)!=="methodButton"),k.value=(ae=z.cloneDeep(C))==null?void 0:ae.map((S,$)=>({id:$,content:!1})),n.setOriginalData(C),n.setItemData(C)},A=L=>{z.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const _=z.cloneDeep(r.value),W=_==null?void 0:_.filter((C,M)=>M!==L);n.setOriginalData(W),n.setItemData(W),Za.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(L,_)=>{const W=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",q2,[_[1]||(_[1]=a.createElementVNode("div",{class:"fill-operate"},a.toDisplayString("操作栏"),-1)),a.createElementVNode("div",K2,[a.createVNode(Rs.default,{class:"collapse-content",collapseContents:s.value},{title:a.withCtx(({item:C,index:M})=>{var ae,S,$,N,x,g,H,q,G,he;return[a.createElementVNode("div",W2,[a.createElementVNode("div",Y2,[(S=(ae=k.value)==null?void 0:ae.find(Be=>Be.id===M))!=null&&S.content?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:"collapse-title",style:a.normalizeStyle({marginRight:C.name&&C.name!==""?"8px":"0px"})},a.toDisplayString(C.name),5)),(N=($=k.value)==null?void 0:$.find(Be=>Be.id===M))!=null&&N.content?(a.openBlock(),a.createElementBlock("div",J2,[a.createVNode(ul.ssInput,{modelValue:C.name,"onUpdate:modelValue":Be=>C.name=Be,onClick:_[0]||(_[0]=a.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):a.createCommentVNode("",!0),(g=(x=k.value)==null?void 0:x.find(Be=>Be.id===M))!=null&&g.content?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:2,onClick:a.withModifiers(Be=>h(M),["stop"]),class:"icon-content"},[a.createVNode(W,{name:"Edit",style:{width:"16px",height:"16px"}})],8,G2))]),a.createElementVNode("div",X2,[(q=(H=k.value)==null?void 0:H.find(Be=>Be.id===M))!=null&&q.content?(a.openBlock(),a.createElementBlock("div",Z2,[a.createVNode(W,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:a.withModifiers(Be=>v(M),["stop"])},null,8,["onClick"]),a.createVNode(W,{name:"Save",onClick:a.withModifiers(Be=>y(M,C.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):a.createCommentVNode("",!0),(he=(G=k.value)==null?void 0:G.find(Be=>Be.id===M))!=null&&he.content?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:1,onClick:a.withModifiers(Be=>A(M),["stop"]),class:"icon-content"},[a.createVNode(W,{name:"Delete",style:{width:"16px",height:"16px"}})],8,Q2))])])]}),content:a.withCtx(({item:C,index:M})=>{var ae,S;return[a.createElementVNode("div",eh,[a.createTextVNode(a.toDisplayString(c(C.comp+"Operate"))+" ",1),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c(C.comp+"Operate")),{itemContents:C==null?void 0:C.compData,originalItemContents:(S=(ae=u.value)==null?void 0:ae.find(($,N)=>N===M))==null?void 0:S.compData,onChange:$=>E($,C,M)},null,40,["itemContents","originalItemContents","onChange"]))])]}),_:1},8,["collapseContents"])])])}}},lh=Ul._export_sfc(ah,[["__scopeId","data-v-a46a44b9"]]),rh={key:0,class:"show-content"},nh={style:{display:"flex"}},th={__name:"modelShow",setup(l){const n=Et(z.pinia),{itemData:r}=z.storeToRefs(n),t=a.ref([]);a.watch(()=>r.value,()=>{var u;!r.value||((u=r.value)==null?void 0:u.length)===0?t.value=[]:t.value=z.cloneDeep(r.value)},{deep:!0,immediate:!0});const s=u=>St(u);return(u,k)=>{var h;return((h=t.value)==null?void 0:h.length)>0?(a.openBlock(),a.createElementBlock("div",rh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.value,(v,y)=>(a.openBlock(),a.createElementBlock("div",{class:"item-content",key:y},[a.createElementVNode("div",nh,a.toDisplayString(v.name),1),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s(v.comp)),{itemData:v==null?void 0:v.compData,childItemData:v==null?void 0:v.itemChildData,key:y},null,8,["itemData","childItemData"]))]))),128))])):a.createCommentVNode("",!0)}}},oh=Ul._export_sfc(th,[["__scopeId","data-v-3f3e863e"]]),ih={class:"tabs-header"},sh={class:"tabs-list"},ch={class:"tab-name"},uh={class:"tab-actions"},dh=["onClick"],ph=["onClick"],fh=["onClick"],hh={class:"model-operate"},vh={class:"model-select",style:{display:"unset"}},mh={class:"existing-components"},yh={class:"component-list"},gh=["onClick"],bh={class:"component-info"},kh={class:"component-type"},xh={class:"component-name"},_h={class:"model-fill"},wh={__name:"operate",props:{itemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,t=n,s=a.ref([]),u=a.ref(!1),k=a.ref(""),h=a.ref({title:""}),v=a.ref(-1),y=a.ref(!1),c=a.ref(-1),E=a.ref(new WeakMap),A=a.ref(null),L=Et(z.pinia),{itemData:_}=z.storeToRefs(L),W=()=>{k.value="新增标签页",h.value.title="",v.value=-1,u.value=!0},C=oe=>{k.value="修改标签页",h.value.title=s.value[oe].title,v.value=oe,u.value=!0},M=oe=>{const D=$(oe);E.value.delete(D),s.value.splice(oe,1),Ca()},ae=()=>{if(h.value.title.trim()){if(v.value===-1){const oe={title:h.value.title,value:h.value.title,label:h.value.title,children:[],id:S()};s.value.push(oe)}else s.value[v.value].title=h.value.title,s.value[v.value].value=h.value.title,s.value[v.value].label=h.value.title;u.value=!1,Ca()}},S=()=>`tab_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,$=oe=>{const D=s.value[oe];return D.id||(D.id=S()),D.id},N=oe=>{var ve;c.value=oe;const D=$(oe);A.value=z.cloneDeep(_.value);let ne=E.value.get(D);!ne&&((ve=s.value[oe].children)==null?void 0:ve.length)>0&&(ne=q(s.value[oe].children)),ne?L.setItemData(z.cloneDeep(ne)):L.setItemData([]),y.value=!0},x=a.computed(()=>{const oe=z.useModelComp(z.pinia),D=z.storeToRefs(oe).itemData.value;return console.log("可用组件数据",D),!D||!Array.isArray(D)?[]:D.filter(ne=>{var ve;if(ne.comp==="Tabs"&&c.value>=0){const se=$(c.value);if((ve=ne.compData)==null?void 0:ve.some(ra=>{var ba;return ra.key==="stepList"&&((ba=ra.contents)==null?void 0:ba.some($a=>$a.id===se))}))return!1}return!0})}),g=oe=>({Table:"表格",Form:"表单",Tabs:"标签页",Chart:"图表",Card:"卡片"})[oe]||oe,H=oe=>{var D;try{const ne=z.cloneDeep(oe);ne.id=Date.now()+Math.random(),ne.comp==="Tabs"&&((D=ne.compData)==null||D.forEach(se=>{se.key==="stepList"&&se.contents&&se.contents.forEach(_e=>{_e.id=S()})}));const ve=z.cloneDeep(_.value);ve.push(ne),L.setItemData(ve)}catch(ne){console.error("添加组件失败:",ne)}},q=oe=>oe.map(D=>{var ne;switch(D.type){case"form":return{comp:"Form",name:D.value||"表单",compData:G(D.content)};case"table":return{comp:"Table",name:D.value||"表格",compData:he(D.content)};default:return{comp:"Unknown",name:D.value||"",compData:((ne=D.content)==null?void 0:ne.originalData)||[]}}}),G=oe=>{if(!oe)return[];const D=[];return oe.rowContents&&D.push({key:"formContent",contents:oe.rowContents}),oe.buttonValue&&D.push({key:"formButton",contents:oe.buttonValue}),typeof oe.isEnableWrap<"u"&&D.push({key:"enableWrap",contents:oe.isEnableWrap}),D},he=oe=>[],Be=()=>{if(c.value>=0&&c.value<s.value.length){const oe=$(c.value);E.value.set(oe,z.cloneDeep(_.value)),s.value[c.value].children=me(_.value),console.log("保存后的数据",me(_.value))}y.value=!1,c.value=-1,A.value=null,Ca()},xe=()=>{A.value&&L.setItemData(z.cloneDeep(A.value)),y.value=!1,c.value=-1,A.value=null},te=()=>{y.value&&xe()},me=oe=>{if(!Array.isArray(oe))throw new Error("sourceData must be an array");return oe.map((D,ne)=>{if(!D||typeof D!="object")return D;const{comp:ve,name:se,compData:_e}=D;switch(ve){case"Form":return{type:"form",content:Z(_e||[]),value:"表单"};case"Table":return{type:"table",content:ue(_e||[]),value:"表格"};default:return{type:"xxx",content:Ue(_e||[]),value:""}}})},Z=oe=>{const D={formRules:{},rowContents:[],buttonValue:[],rowValues:[],isEnableWrap:!0,isRowFlex:!0,isButtonRow:!0,isEdit:!0,isStartJustify:!0},ne={formContent:"rowContents",enableWrap:"isEnableWrap",formButton:"buttonValue"};return oe.forEach((ve,se)=>{if(!ve||typeof ve!="object"){console.warn(`Invalid config at index ${se}:`,ve);return}const{key:_e,contents:ra}=ve,ba=ne[_e];if(!ba){console.warn(`Unknown Form config key: ${_e}`);return}_e==="enableWrap"?D[ba]=!!ra:D[ba]=Array.isArray(ra)?ra:[]}),D},ue=oe=>{const D={columns:[],tableData:[],extraButton:[],rowButton:[],currentPage:0,total:0,pageSize:0,isShowPagination:!0,isShowEdit:!0,isMoveColumn:!0,isShowDelete:!0},ne={header:"columns",tableContents:"tableData"};return oe.forEach((ve,se)=>{if(!ve||typeof ve!="object"){console.warn(`Invalid config at index ${se}:`,ve);return}const{key:_e,contents:ra}=ve,ba=ne[_e];if(!ba){console.warn(`Unknown Table config key: ${_e}`);return}D[ba]=Array.isArray(ra)?ra:[]}),D},Ue=oe=>(console.log("Default conversion logic - to be implemented"),{originalData:oe,processed:!1,componentType:"unknown"}),Ca=()=>{const oe=[{key:"stepList",contents:s.value}];t("change",oe)};return a.watch(()=>r.itemContents,oe=>{if(oe&&oe.length>0){const D=oe.find(ne=>ne.key==="stepList");D&&D.contents&&(s.value=D.contents.map(ne=>({title:ne.title||"",value:ne.value||ne.title||"",label:ne.label||ne.title||"",children:ne.children||[],id:ne.id||S()})))}},{immediate:!0,deep:!0}),(oe,D)=>{const ne=a.resolveComponent("svg-icon"),ve=a.resolveComponent("el-input"),se=a.resolveComponent("el-form-item"),_e=a.resolveComponent("el-form");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",ih,[D[6]||(D[6]=a.createElementVNode("h4",null,"标签页管理",-1)),a.createElementVNode("button",{onClick:W},[a.createVNode(ne,{name:"Plus",style:{width:"14px",height:"14px","margin-right":"4px"}}),D[5]||(D[5]=a.createTextVNode(" 新增标签页 "))])]),a.createElementVNode("div",sh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,(ra,ba)=>(a.openBlock(),a.createElementBlock("div",{class:"tab-item",key:ba},[a.createElementVNode("span",ch,a.toDisplayString(ra.title),1),a.createElementVNode("div",uh,[a.createElementVNode("button",{onClick:$a=>C(ba)},"修改标题",8,dh),a.createElementVNode("button",{onClick:$a=>N(ba)},"布局调整",8,ph),a.createElementVNode("button",{onClick:$a=>M(ba)},"删除",8,fh)])]))),128))]),a.createVNode(dr.ssDialog,{modelValue:u.value,"onUpdate:modelValue":D[2]||(D[2]=ra=>u.value=ra),title:k.value,onBeforeDestroy:D[3]||(D[3]=ra=>u.value=!1)},{footer:a.withCtx(()=>[a.createElementVNode("button",{onClick:D[1]||(D[1]=ra=>u.value=!1)},"取消"),a.createElementVNode("button",{type:"primary",onClick:ae},"确定")]),default:a.withCtx(()=>[a.createVNode(_e,{model:h.value,"label-width":"80px"},{default:a.withCtx(()=>[a.createVNode(se,{label:"标签名称",required:""},{default:a.withCtx(()=>[a.createVNode(ve,{modelValue:h.value.title,"onUpdate:modelValue":D[0]||(D[0]=ra=>h.value.title=ra),placeholder:"请输入标签页名称"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),a.createVNode(dr.ssDialog,{modelValue:y.value,"onUpdate:modelValue":D[4]||(D[4]=ra=>y.value=ra),title:"布局调整",fullScreen:"",onBeforeDestroy:te},{footer:a.withCtx(()=>[a.createElementVNode("button",{onClick:xe},"取消"),a.createElementVNode("button",{onClick:Be},"确定")]),default:a.withCtx(()=>[a.createElementVNode("div",hh,[a.createElementVNode("div",vh,[a.createVNode(U2),a.createElementVNode("div",mh,[D[8]||(D[8]=a.createElementVNode("h5",null,"添加已有组件",-1)),a.createElementVNode("div",yh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(x.value,ra=>(a.openBlock(),a.createElementBlock("div",{key:ra.id,class:"component-item",onClick:ba=>H(ra)},[a.createElementVNode("div",bh,[a.createElementVNode("span",kh,a.toDisplayString(g(ra.comp)),1),a.createElementVNode("span",xh,a.toDisplayString(ra.name),1)]),D[7]||(D[7]=a.createElementVNode("button",{class:"add-btn"},"添加",-1))],8,gh))),128))])])]),(a.openBlock(),a.createElementBlock("div",{class:"model-show",key:oe.innerWidth},[a.createVNode(oh)])),a.createElementVNode("div",_h,[a.createVNode(lh)])])]),_:1},8,["modelValue"])])}}},Ch=Ul._export_sfc(wh,[["__scopeId","data-v-9096ed0d"]]);function Eh(){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 Sh(l){return{type:"line",...l}}function Dh(){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:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:[{type:"value"}],series:[]}}function Bh(l){return{type:"bar",barWidth:"60%",...l}}function Nh(){return{title:{text:"",left:"center"},tooltip:{trigger:"item"},series:[]}}function Th(l){return{type:"pie",radius:"50%",emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},...l}}const Nn={line:{initBaseoptions:Eh,initSeries:Sh},bar:{initBaseoptions:Dh,initSeries:Bh},pie:{initBaseoptions:Nh,initSeries:Th}},us=z.useMenuState(z.pinia),bc=(l,n)=>{var c;const r=[],t=[],{group:s,nameCol:u,valueCol:k}=n||{},h=l==null?void 0:l.find(E=>{const{name:A}=E;return A===s});if(!h)return{names:r,values:t};const v=(c=h==null?void 0:h.compData)==null?void 0:c.find(E=>{const{key:A}=E;return A==="tableContents"});return((v==null?void 0:v.contents)||[]).forEach(E=>{const A=E==null?void 0:E[0];let L=!1;Za.isObject(A)&&(A!=null&&A.id)&&(L=!0);let _=u,W=k;L&&(_=_+1,W=W+1);const C=E==null?void 0:E[_],M=E==null?void 0:E[W];r.push(C),t.push(M)}),{names:r,values:t}},Ah=async l=>{const{menu:n,mainKey:r,detailGroup:t,detailNameCol:s,detailValueCol:u,isSelfDetail:k}=l||{};let h=null;const v=sessionStorage.getItem("systemKey");if(k&&us.activeMenuPath&&(h=await sa.getItemData(`${us.activeMenuPath}`,v,"")),!k){const y=n==null?void 0:n.join("/");h=await sa.getItemData(`${y}^${r}`,v,"")}return bc(h,{group:t,nameCol:s,valueCol:u})},Mh=async l=>{const{menu:n,group:r,nameCol:t,valueCol:s}=l||{},u=n==null?void 0:n.join("/"),k=sessionStorage.getItem("systemKey"),h=await sa.getItemData(u,k,"");return bc(h,{group:r,nameCol:t,valueCol:s})},bi=async(l,n)=>{const r={names:[],values:[]},{menu:t,group:s,nameCol:u,valueCol:k}=l||{};if(!t.length||!s)return r;const{mainKey:h,group:v,nameCol:y,valueCol:c,isSelfDetail:E}=n||{};return h&&v&&ul.isNumber(y)&&ul.isNumber(c)?await Ah({menu:t,mainKey:h,detailGroup:v,detailNameCol:y,detailValueCol:c,isSelfDetail:E}):ul.isNumber(u)&&ul.isNumber(k)?await Mh({menu:t,group:s,nameCol:u,valueCol:k}):r},zh=async({chartBaseConfig:l,chartDataConfig:n,chartDetailConfig:r})=>{const{type:t,title:s}=l||{},u=Nn==null?void 0:Nn[t];if(!u)return;const{initBaseoptions:k,initSeries:h}=u,v=k();v.title.text=s??"";const{names:y,values:c}=await bi(n,r);if(!y||!c)return v;v.xAxis.data=y;const E=h({data:c});return v.series.push(E),v},Oh=async({chartBaseConfig:l,chartDataConfig:n,chartDetailConfig:r})=>{const{type:t,title:s}=l||{},u=Nn==null?void 0:Nn[t];if(!u)return;const{initBaseoptions:k,initSeries:h}=u,v=k();v.title.text=s??"";const{names:y,values:c}=await bi(n,r);if(!y||!c)return v;v.xAxis.data=y;const E=h({data:c});return v.series.push(E),v},Ih=async({chartBaseConfig:l,chartDataConfig:n,chartDetailConfig:r})=>{const{type:t,title:s}=l||{},u=Nn==null?void 0:Nn[t];if(!u)return;const{initBaseoptions:k,initSeries:h}=u,v=k();v.title.text=s??"";const{names:y,values:c}=await bi(n,r);if(!y||!c)return v;const E=[];for(let L=0;L<y.length;L++){const _=y[L],W=c[L];E.push({name:_,value:W})}const A=h({data:E});return v.series.push(A),v},Lh=async(l=[])=>{var k,h,v;const n=((k=l==null?void 0:l.find(y=>y.key==="chartBaseConfig"))==null?void 0:k.contents)??{},r=((h=l==null?void 0:l.find(y=>y.key==="chartDataConfig"))==null?void 0:h.contents)??{},t=((v=l==null?void 0:l.find(y=>y.key==="chartDetailConfig"))==null?void 0:v.contents)??{},{type:s}=n;let u={};return s==="line"&&(u=await zh({chartBaseConfig:n,chartDataConfig:r,chartDetailConfig:t})),s==="bar"&&(u=await Oh({chartBaseConfig:n,chartDataConfig:r,chartDetailConfig:t})),s==="pie"&&(u=await Ih({chartBaseConfig:n,chartDataConfig:r,chartDetailConfig:t})),u},Vh=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}},height:{type:String,default:"300px"}},setup(l){const n=l,r=a.ref({});a.onMounted(async()=>{const s=n==null?void 0:n.itemData;r.value=await Lh(s)});const t=a.computed(()=>(n==null?void 0:n.height)||"300px");return(s,u)=>(a.openBlock(),a.createElementBlock("div",{class:"eCharts",style:a.normalizeStyle({height:t.value})},[a.createVNode(pu.ssChart,{optionContents:r.value},null,8,["optionContents"])],4))}}),Rh=Ul._export_sfc(Vh,[["__scopeId","data-v-d4c081e8"]]),$h={class:"chart-module layout"},Ph={class:"chart-module content"},Fh={class:"chart-module content"},jh={class:"form-content"},Hh={class:"dialog-footer"},Uh={class:"form-content"},qh={class:"dialog-footer"},Kh={class:"form-content"},Wh={class:"dialog-footer"},Yh=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,t=n,s=a.reactive({visible:!1,width:"840",title:"基础配置"}),u=a.ref([]),k=()=>[{label:"类型",prop:"type",type:"select",contents:[{label:"柱状图",value:"bar"},{label:"饼图",value:"pie"},{label:"折线图",value:"line"}],value:""},{label:"标题",prop:"title",type:"input",value:""}],h=a.ref({}),v=()=>{var Re;u.value=k(),(Re=u.value)==null||Re.forEach(we=>{var qe;const ze=we==null?void 0:we.prop;we.value=(qe=h==null?void 0:h.value)==null?void 0:qe[ze]}),s.visible=!0},y=Re=>{h.value=Re},c=()=>{var Re;s.visible=!1,t("change",(Re=Ie())==null?void 0:Re.compData)},E=a.reactive({visible:!1,width:"840",title:"数据配置"}),A=a.ref([]),L=()=>[{label:"菜单选项",prop:"menu",type:"cascader",contents:[]},{label:"组信息选项",prop:"group",type:"select",contents:[]},{label:"名称列",prop:"nameCol",type:"select",contents:[]},{label:"取值列",prop:"valueCol",type:"select",contents:[]}],_=a.ref({}),W=()=>{const Re=A.value,we=z.cloneDeep(Re);return we==null||we.forEach(ze=>{var Sa;const qe=ze==null?void 0:ze.prop;ze.value=(Sa=_.value)==null?void 0:Sa[qe]}),we},C=Re=>{var ze;_.value=Re;const we=W();A.value=we,t("change",(ze=Ie())==null?void 0:ze.compData)},M=async()=>{const Re=await sa.getMenusContent(),we=W();we==null||we.forEach(ze=>{(ze==null?void 0:ze.prop)==="menu"&&(ze.contents=Re)}),A.value=we,E.visible=!0,await ra(_.value.menu),await le(_.value.group)},ae=a.reactive({visible:!1,width:"840",title:"详情页配置"}),S=a.ref([]),$=()=>[{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:[]}],N=a.ref({}),x=()=>{const Re=S.value,we=z.cloneDeep(Re);return we==null||we.forEach(ze=>{var Sa;const qe=ze==null?void 0:ze.prop;ze.value=(Sa=N.value)==null?void 0:Sa[qe]}),we},g=Re=>{var ze;N.value=Re;const we=x();S.value=we,t("change",(ze=Ie())==null?void 0:ze.compData)},H=async()=>{await te();const Re=z.cloneDeep(q.value),we=x();we==null||we.forEach(ze=>{var Sa;const qe=ze==null?void 0:ze.prop;ze.value=(Sa=N==null?void 0:N.value)==null?void 0:Sa[qe],qe==="mainKey"&&(ze.contents=Re)}),S.value=we,ae.visible=!0},q=a.ref([]),G=a.ref([]),he=a.ref({}),Be=a.ref({}),xe=()=>{const{compData:Re}=ve.value||{},we=Re==null?void 0:Re.find(Y=>{const{key:V}=Y;return V==="header"}),ze=(we==null?void 0:we.contents)||[],qe=ze==null?void 0:ze.filter((Y,V)=>{const{label:K}=Y;return K!=="操作"}),Sa=qe==null?void 0:qe.findIndex((Y,V)=>{const{isMainKey:K}=Y;return K});if(Sa<0)return[];const el=Re==null?void 0:Re.find(Y=>{const{key:V}=Y;return V==="tableContents"}),P=(el==null?void 0:el.contents)||[];return P==null?void 0:P.map(Y=>{const V=Y==null?void 0:Y[0];let K=Sa;Za.isObject(V)&&(V!=null&&V.id)&&(K=K+1);const Te=Y==null?void 0:Y[K];return{label:Te,value:Te}})},te=async()=>{const Re=await xe();q.value=Re},me=async Re=>{const we=sessionStorage.getItem("systemKey");return await sa.getItemData(Re,we,"")},Z=async Re=>{const we=Re;G.value=we==null?void 0:we.map(ze=>{const{name:qe}=ze;return he.value[qe]=ze,{label:qe,value:qe}})},ue=Re=>{const{comp:we,compData:ze}=Be.value||{};if(we==="Table"){let qe=x();qe=qe.filter(Sa=>{const{prop:el}=Sa;return el!=="formItems"}),ba(qe,ze),S.value=qe}},Ue=async()=>{var ze,qe;const Re=(ze=N==null?void 0:N.value)==null?void 0:ze.mainKey,we=(qe=_==null?void 0:_.value)==null?void 0:qe.menu;if(Re){const el=`${we==null?void 0:we.join("/")}^${Re}`,P=await me(el);await Z(P);const j=x();j==null||j.forEach(Y=>{(Y==null?void 0:Y.prop)==="group"&&(Y.contents=G.value)}),S.value=j}};a.watch(()=>{var Re;return(Re=N==null?void 0:N.value)==null?void 0:Re.mainKey},async(Re,we)=>{Re!=we&&Re&&await Ue()});const Ca=async Re=>{const we=he.value[Re];Be.value=we,await ue()};a.watch(()=>{var Re;return(Re=N==null?void 0:N.value)==null?void 0:Re.group},async(Re,we)=>{Re!=we&&Re&&Ca(Re)});const oe=async()=>{var we;await Ue();const Re=(we=N.value)==null?void 0:we.group;await Ca(Re)},D=a.ref([]),ne=a.ref({}),ve=a.ref({}),se=async Re=>{const we=Re==null?void 0:Re.join("/"),ze=sessionStorage.getItem("systemKey");return await sa.getItemData(we,ze,"")},_e=async Re=>{const we=await se(Re);D.value=we==null?void 0:we.map(ze=>{const{name:qe}=ze;return ne.value[qe]=ze,{label:qe,value:qe}})},ra=async(Re,we)=>{await _e(Re);const ze=W();ze==null||ze.forEach(qe=>{(qe==null?void 0:qe.prop)==="group"&&(qe.contents=D.value)}),A.value=ze};a.watch(()=>{var Re;return(Re=_==null?void 0:_.value)==null?void 0:Re.menu},async(Re,we)=>{const ze=Re==null?void 0:Re.join("/"),qe=we==null?void 0:we.join("/");ze!=qe&&await ra(Re)});const ba=(Re,we)=>{const ze=we==null?void 0:we.find(P=>{const{key:j}=P;return j==="header"}),qe=(ze==null?void 0:ze.contents)||[],Sa=qe==null?void 0:qe.filter((P,j)=>{const{label:Y}=P;return Y!=="操作"}),el=Sa==null?void 0:Sa.map((P,j)=>{const{label:Y}=P;return{label:Y,value:j}});Re==null||Re.forEach(P=>{const j=P==null?void 0:P.prop;(j==="nameCol"||j==="valueCol")&&(P.contents=el)})},$a=Re=>{const{comp:we,compData:ze}=ve.value||{};if(we==="Table"){_.value.formItems=[];let qe=W();qe=qe.filter(Sa=>{const{prop:el}=Sa;return el!=="formItems"}),ba(qe,ze),A.value=qe}},le=async Re=>{const we=ne.value[Re];ve.value=we,await $a()};a.watch(()=>{var Re;return(Re=_==null?void 0:_.value)==null?void 0:Re.group},async(Re,we)=>{Re!=we&&le(Re)});const Qe=async()=>{var ze,qe;const Re=(ze=_.value)==null?void 0:ze.menu;await ra(Re);const we=(qe=_.value)==null?void 0:qe.group;await le(we)},Ie=()=>({comp:"chart",compData:[{key:"chartBaseConfig",contents:h.value},{key:"chartDataConfig",contents:_.value},{key:"chartDetailConfig",contents:N.value}]}),ka=()=>{s.visible=!1,E.visible=!1,ae.visible=!1};return a.onMounted(async()=>{var we,ze,qe;A.value=L(),S.value=$();const Re=r==null?void 0:r.itemContents;h.value=((we=Re==null?void 0:Re.find(Sa=>Sa.key==="chartBaseConfig"))==null?void 0:we.contents)??{},_.value=((ze=Re==null?void 0:Re.find(Sa=>Sa.key==="chartDataConfig"))==null?void 0:ze.contents)??{},await Qe(),N.value=((qe=Re==null?void 0:Re.find(Sa=>Sa.key==="chartDetailConfig"))==null?void 0:qe.contents)??{},await oe()}),(Re,we)=>{const ze=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",$h,[we[4]||(we[4]=a.createElementVNode("div",{class:"module-title"},"基础配置",-1)),a.createVNode(ze,{id:"themeButton",onClick:we[0]||(we[0]=qe=>v())},{default:a.withCtx(()=>we[3]||(we[3]=[a.createTextVNode(" 修改 ")])),_:1,__:[3]})]),a.createElementVNode("div",Ph,[we[6]||(we[6]=a.createElementVNode("h4",{class:"module-title"},"数据配置",-1)),a.createVNode(ze,{id:"themeButton",onClick:we[1]||(we[1]=qe=>M())},{default:a.withCtx(()=>we[5]||(we[5]=[a.createTextVNode(" 修改 ")])),_:1,__:[5]})]),a.createElementVNode("div",Fh,[we[8]||(we[8]=a.createElementVNode("h4",{class:"module-title"},"详情数据配置",-1)),a.createVNode(ze,{id:"themeButton",onClick:we[2]||(we[2]=qe=>H())},{default:a.withCtx(()=>we[7]||(we[7]=[a.createTextVNode(" 修改 ")])),_:1,__:[7]})])]),a.createVNode(dr.ssDialog,{visible:s.visible,title:s.title,onBeforeDestroy:ka,width:s.width},{default:a.withCtx(()=>[a.createElementVNode("div",jh,[(a.openBlock(),a.createBlock(ul.ssForm,{rowContents:u.value,key:u.value,isEnableWrap:!0,onChange:y},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",Hh,[a.createVNode(ze,{class:"cancel-button button",onClick:ka,id:"themeBorderButton"},{default:a.withCtx(()=>we[9]||(we[9]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[9]}),a.createVNode(ze,{class:"ok-button button",onClick:c,id:"themeButton"},{default:a.withCtx(()=>we[10]||(we[10]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[10]})])]),_:1},8,["visible","title","width"]),a.createVNode(dr.ssDialog,{visible:E.visible,title:E.title,onBeforeDestroy:ka,width:E.width},{default:a.withCtx(()=>[a.createElementVNode("div",Uh,[(a.openBlock(),a.createBlock(ul.ssForm,{rowContents:A.value,key:A.value,isEnableWrap:!0,onChange:C},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",qh,[a.createVNode(ze,{class:"cancel-button button",onClick:ka,id:"themeBorderButton"},{default:a.withCtx(()=>we[11]||(we[11]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[11]}),a.createVNode(ze,{class:"ok-button button",onClick:ka,id:"themeButton"},{default:a.withCtx(()=>we[12]||(we[12]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible","title","width"]),a.createVNode(dr.ssDialog,{visible:ae.visible,title:ae.title,onBeforeDestroy:ka,width:ae.width},{default:a.withCtx(()=>[a.createElementVNode("div",Kh,[(a.openBlock(),a.createBlock(ul.ssForm,{rowContents:S.value,key:S.value,isEnableWrap:!0,onChange:g},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",Wh,[a.createVNode(ze,{class:"cancel-button button",onClick:ka,id:"themeBorderButton"},{default:a.withCtx(()=>we[13]||(we[13]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[13]}),a.createVNode(ze,{class:"ok-button button",onClick:ka,id:"themeButton"},{default:a.withCtx(()=>we[14]||(we[14]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible","title","width"])],64)}}}),Jh=Ul._export_sfc(Yh,[["__scopeId","data-v-fe119645"]]),Gh={class:"layout"},Xh=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["rowClick"],setup(l,{emit:n}){const r=n,t=l;a.onMounted(async()=>{});const s=a.computed(()=>z.cloneDeep(t==null?void 0:t.itemData)||[]),u=a.computed(()=>{var c;const y=(c=s==null?void 0:s.value)==null?void 0:c.find(E=>{const{key:A}=E;return A==="baseConfig"});return y==null?void 0:y.contents}),k=a.computed(()=>{var c;const y=(c=s==null?void 0:s.value)==null?void 0:c.find(E=>{const{key:A}=E;return A==="children"});return y==null?void 0:y.contents}),h=a.computed(()=>{let y=z.cloneDeep(k.value)||[];const c=y.length;let E=0;const A=[];if(y=y.map(L=>{const _=L.span;return _?(L.span=Number(_),E=E+L.span):A.push(L),L}),E<24){const L=Math.floor((24-E)/c);A.forEach(_=>{_.span=L})}return y}),v=y=>{r("rowClick",y)};return(y,c)=>{var L;const E=a.resolveComponent("el-col"),A=a.resolveComponent("el-row");return a.openBlock(),a.createElementBlock("div",Gh,[a.createVNode(A,{style:a.normalizeStyle({height:(L=u.value)==null?void 0:L.height})},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.value,(_,W)=>(a.openBlock(),a.createBlock(E,{span:_==null?void 0:_.span},{default:a.withCtx(()=>{var C;return[a.unref(Ct)?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Pt)(_.comp)),{key:a.unref(Hn),compName:_.name,index:(_==null?void 0:_.id)??W,height:(C=u.value)==null?void 0:C.height,itemData:_==null?void 0:_.compData,childItemData:_==null?void 0:_.itemChildData,onChange:a.unref(_o),onContentChange:a.unref(wo),onPageChange:a.unref(Co),onRowClick:v},null,40,["compName","index","height","itemData","childItemData","onChange","onContentChange","onPageChange"])):a.createCommentVNode("",!0)]}),_:2},1032,["span"]))),256))]),_:1},8,["style"])])}}}),Zh=Ul._export_sfc(Xh,[["__scopeId","data-v-ab9a36ed"]]),Qh={class:"layout-operate"},e4={class:"layout-module"},a4={class:"collapse-title-item"},l4={class:"collapse-title"},r4={class:"icon-content"},n4=["onClick"],t4={class:"comp-child"},o4=a.defineComponent({__name:"operate",props:{itemContents:{type:Object,default:()=>{}},originalItemContents:{type:Array,default:()=>[]},itemChildData:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,t=n;a.onMounted(()=>{W()});const s=a.ref({}),u=a.ref({}),k=a.ref([]),h=N=>[{label:"高度",prop:"height",type:"input",value:N==null?void 0:N.height}],v=N=>{u.value=N,t("change",$(),!0)},y=a.ref([]),c=a.ref([]),E=N=>[{label:"占比",prop:"span",type:"input",value:N==null?void 0:N.span}],A=a.computed(()=>{const N=r==null?void 0:r.itemContents;return z.cloneDeep(N)}),L=a.computed(()=>{const N=A==null?void 0:A.value,x=N==null?void 0:N.find(g=>{const{key:H}=g;return H==="baseConfig"});return x==null?void 0:x.contents}),_=a.computed(()=>{const N=A==null?void 0:A.value,x=N==null?void 0:N.find(g=>{const{key:H}=g;return H==="children"});return x==null?void 0:x.contents}),W=()=>{var N;s.value=A.value||{},y.value=(_==null?void 0:_.value)||[],k.value=h(),k.value=(N=k.value)==null?void 0:N.map(x=>{var H;const{prop:g}=x;return x.value=(H=L.value)==null?void 0:H[g],x})};a.watch(()=>{var N;return(N=_==null?void 0:_.value)==null?void 0:N.length},()=>{var N;y.value=(_==null?void 0:_.value)||[],c.value=(N=_.value)==null?void 0:N.map(x=>E(x))},{immediate:!0});const C=(N,x)=>{const g=z.cloneDeep(_==null?void 0:_.value);g[x].span=N.span,y.value=g,t("change",$(),!0)},M=N=>St(N),ae=(N,x,g)=>{if(!N)return;const H=z.cloneDeep(_==null?void 0:_.value);H[g]&&(H[g].compData=N,y.value=H,t("change",$(),!0))},S=N=>{z.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{let x=z.cloneDeep(_==null?void 0:_.value);x=x==null?void 0:x.filter((g,H)=>N!==H),y.value=x,t("change",$(),!0),Za.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},$=()=>({compData:[{key:"baseConfig",contents:u.value},{key:"children",contents:y==null?void 0:y.value}]});return(N,x)=>{const g=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",Qh,[a.createElementVNode("div",e4,[x[1]||(x[1]=a.createElementVNode("div",{class:"module-title"},"基础配置",-1)),a.createElementVNode("div",null,[a.createVNode(ul.ssForm,{rowContents:k.value,isEnableWrap:!0,onChange:x[0]||(x[0]=H=>v(H))},null,8,["rowContents"])])]),a.createVNode(Rs.default,{class:"collapse-content",collapseContents:_.value},{title:a.withCtx(({item:H,index:q})=>[a.createElementVNode("div",a4,[a.createElementVNode("div",l4,a.toDisplayString(H.name),1),a.createElementVNode("div",r4,[a.createElementVNode("div",{onClick:a.withModifiers(G=>S(q),["stop"]),class:"icon-content"},[a.createVNode(g,{name:"Delete",style:{width:"16px",height:"16px"}})],8,n4)])])]),content:a.withCtx(({item:H,index:q})=>[a.createElementVNode("div",t4,[a.createElementVNode("div",null,[(a.openBlock(),a.createBlock(ul.ssForm,{rowContents:c.value[q],key:q,isEnableWrap:!0,onChange:G=>C(G,q)},null,8,["rowContents","onChange"]))]),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(M(H.comp+"Operate")),{itemContents:H==null?void 0:H.compData,originalItemContents:H.compData,onChange:G=>ae(G,H,q)},null,40,["itemContents","originalItemContents","onChange"]))])]),_:1},8,["collapseContents"])])}}}),i4=Ul._export_sfc(o4,[["__scopeId","data-v-ba05456e"]]),s4=typeof window<"u";var ds;s4&&((ds=window==null?void 0:window.navigator)!=null&&ds.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function ln(l){return l==null}function kc(){}const c4=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(c4)));function u4(){const l=new Map;return{on(n,r){const t=l.get(n);t!=null&&t.add(r)||l.set(n,new Set([r]))},off(n,r){const t=l.get(n);t&&t.delete(r)},clear(n){const r=l.get(n);r&&r.clear()},clearAll(){l.clear()},emit(n,...r){const t=l.get(n);t&&t.forEach(s=>{s(...r)})}}}function ps(l,n=16){if(typeof l!="function")return kc;const r=(...u)=>{l(...u)};if(n<=0)return xc(r);let t=0,s;return function(...u){const k=Date.now(),h=k-t;clearTimeout(s),h>=n?(t=k,r(...u)):s=setTimeout(()=>{t=Date.now(),r(...u)},Math.max(0,n-h))}}function d4(l,n=100){if(typeof l!="function")return kc;const r=(...s)=>{l(...s)};if(n<=0)return xc(r);let t;return function(...s){clearTimeout(t),t=setTimeout(()=>{r(...s)},n)}}function xc(l){if(typeof l!="function")return l;let n=!1,r,t;return function(...s){return r=s,n||(n=!0,t=Promise.resolve().then(()=>(n=!1,t=void 0,l(...r)))),t}}const Lt=new Set,_c=new WeakMap;function p4(){Lt.forEach(l=>{l(..._c.get(l))}),Lt.clear()}function Fr(l,...n){if(typeof l!="function")return l;_c.set(l,n),!Lt.has(l)&&(Lt.add(l),Lt.size===1&&Promise.resolve().then(p4))}const wc=Symbol("LAYOUT_KEY"),Cc=Symbol("EMITTER_KEY");function f4(l){let n=0,r;for(let t=0,s=l.length;t<s;t++)r=l[t].y+l[t].h,r>n&&(n=r);return n}function fi(l){const n=Array(l.length);for(let r=0,t=l.length;r<t;r++)n[r]=h4(l[r]);return n}function h4(l){return{...l}}function Ec(l,n){return!(l===n||l.x+l.w<=n.x||l.x>=n.x+n.w||l.y+l.h<=n.y||l.y>=n.y+n.h)}function gt(l,n,r){const t=Dc(l),s=Bc(l),u=Array(l.length);for(let k=0,h=s.length;k<h;k++){let v=s[k];v.static||(v=v4(t,v,n,r),t.push(v)),u[l.findIndex(y=>y.i===v.i)]=v,v.moved=!1}return u}function v4(l,n,r,t){if(r)for(;n.y>0&&!Vt(l,n);)n.y--;else if(t){const u=t[n.i].y;for(;n.y>u&&!Vt(l,n);)n.y--}let s;for(;s=Vt(l,n);)n.y=s.y+s.h;return n}function m4(l,n){const r=Dc(l);for(let t=0,s=l.length;t<s;t++){const u=l[t];if(u.x+u.w>n.cols&&(u.x=n.cols-u.w),u.x<0&&(u.x=0,u.w=n.cols),!u.static)r.push(u);else for(;Vt(r,u);)u.y++}return l}function fs(l,n){for(let r=0,t=l.length;r<t;r++)if(l[r].i===n)return l[r]}function Vt(l,n){for(let r=0,t=l.length;r<t;r++)if(Ec(l[r],n))return l[r]}function Sc(l,n){return l.filter(r=>Ec(r,n))}function Dc(l){return l.filter(n=>n.static)}function hi(l,n,r,t,s=!1,u=!1){if(n.static)return l;const k=n.x,h=n.y,v=t&&n.y>t;typeof r=="number"&&(n.x=r),typeof t=="number"&&(n.y=t),n.moved=!0;let y=Bc(l);v&&(y=y.reverse());const c=Sc(y,n);if(u&&c.length)return n.x=k,n.y=h,n.moved=!1,l;for(let E=0,A=c.length;E<A;E++){const L=c[E];L.moved||n.y>L.y&&n.y-L.y>L.h/4||(L.static?l=hs(l,L,n,s):l=hs(l,n,L,s))}return l}function hs(l,n,r,t){if(t){const s={x:r.x,y:r.y,w:r.w,h:r.h};if(s.y=Math.max(n.y-r.h,0),!Vt(l,s))return hi(l,r,void 0,s.y,!1)}return hi(l,r,void 0,r.y+1,!1)}function y4(l,n,r,t){const s="translate3d("+n+"px,"+l+"px, 0)";return{transform:s,WebkitTransform:s,MozTransform:s,msTransform:s,OTransform:s,width:r+"px",height:t+"px",position:"absolute"}}function g4(l,n,r,t){const s="translate3d("+n*-1+"px,"+l+"px, 0)";return{transform:s,WebkitTransform:s,MozTransform:s,msTransform:s,OTransform:s,width:r+"px",height:t+"px",position:"absolute"}}function b4(l,n,r,t){return{top:l+"px",left:n+"px",width:r+"px",height:t+"px",position:"absolute"}}function k4(l,n,r,t){return{top:l+"px",right:n+"px",width:r+"px",height:t+"px",position:"absolute"}}function Bc(l){return Array.from(l).sort(function(n,r){return n.y===r.y&&n.x===r.x?0:n.y>r.y||n.y===r.y&&n.x>r.x?1:-1})}function x4(l,n){n=n||"Layout";const r=["x","y","w","h"],t=[];if(!Array.isArray(l))throw new Error(n+" must be an array!");for(let s=0,u=l.length;s<u;s++){const k=l[s];for(let h=0;h<r.length;h++)if(typeof k[r[h]]!="number")throw new Error("VueGridLayout: "+n+"["+s+"]."+r[h]+" must be a number!");if(k.i===void 0||k.i===null)throw new Error("VueGridLayout: "+n+"["+s+"].i cannot be null!");if(typeof k.i!="number"&&typeof k.i!="string")throw new Error("VueGridLayout: "+n+"["+s+"].i must be a string or number!");if(t.indexOf(k.i)>=0)throw new Error("VueGridLayout: "+n+"["+s+"].i must be unique!");if(t.push(k.i),k.static!==void 0&&typeof k.static!="boolean")throw new Error("VueGridLayout: "+n+"["+s+"].static must be a boolean!")}}function _4(l,n="vgl"){const r=()=>`${n}-${l}`;return{b:r,be:t=>`${r()}__${t}`,bm:t=>`${r()}--${t}`,bem:(t,s)=>`${r()}__${t}--${s}`}}function vs(l){return w4(l)}function w4(l){var n;const r=((n=l.target)==null?void 0:n.offsetParent)||document.body,t=l.offsetParent===document.body?{left:0,top:0}:r.getBoundingClientRect(),s=l.clientX+r.scrollLeft-t.left,u=l.clientY+r.scrollTop-t.top;return{x:s,y:u}}function ms(l,n,r,t){return C4(l)?{deltaX:r-l,deltaY:t-n,lastX:l,lastY:n,x:r,y:t}:{deltaX:0,deltaY:0,lastX:r,lastY:t,x:r,y:t}}function C4(l){return typeof l=="number"&&!Number.isNaN(l)}function E4(l,n){const r=Tc(l);let t=r[0];for(let s=1,u=r.length;s<u;s++){const k=r[s];n>l[k]&&(t=k)}return t}function Nc(l,n){if(!n[l])throw new Error("ResponsiveGridLayout: `cols` entry for breakpoint "+l+" is missing!");return n[l]}function S4(l,n,r,t,s,u,k){if(n[t])return fi(n[t]);let h=l;const v=Tc(r),y=v.slice(v.indexOf(t));for(let c=0,E=y.length;c<E;c++){const A=y[c];if(n[A]){h=n[A];break}}return h=fi(h||[]),gt(m4(h,{cols:u}),k)}function Tc(l){return Object.keys(l).sort((n,r)=>l[n]-l[r])}let D4="auto";function B4(){return typeof document<"u"}function ys(){return B4()?typeof document.dir<"u"?document.dir:document.getElementsByTagName("html")[0].getAttribute("dir"):D4}var It={exports:{}},N4=It.exports,gs;function T4(){return gs||(gs=1,function(l,n){(function(r,t){l.exports=t()})(N4,function(){function r(i,o){var p=Object.keys(i);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(i);o&&(m=m.filter(function(w){return Object.getOwnPropertyDescriptor(i,w).enumerable})),p.push.apply(p,m)}return p}function t(i){for(var o=1;o<arguments.length;o++){var p=arguments[o]!=null?arguments[o]:{};o%2?r(Object(p),!0).forEach(function(m){v(i,m,p[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(p)):r(Object(p)).forEach(function(m){Object.defineProperty(i,m,Object.getOwnPropertyDescriptor(p,m))})}return i}function s(i){return s=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},s(i)}function u(i,o){if(!(i instanceof o))throw new TypeError("Cannot call a class as a function")}function k(i,o){for(var p=0;p<o.length;p++){var m=o[p];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(i,W(m.key),m)}}function h(i,o,p){return o&&k(i.prototype,o),Object.defineProperty(i,"prototype",{writable:!1}),i}function v(i,o,p){return(o=W(o))in i?Object.defineProperty(i,o,{value:p,enumerable:!0,configurable:!0,writable:!0}):i[o]=p,i}function y(i,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(o&&o.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),o&&E(i,o)}function c(i){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},c(i)}function E(i,o){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,m){return p.__proto__=m,p},E(i,o)}function A(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function L(i){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 p,m=c(i);if(o){var w=c(this).constructor;p=Reflect.construct(m,arguments,w)}else p=m.apply(this,arguments);return function(O,U){if(U&&(typeof U=="object"||typeof U=="function"))return U;if(U!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A(O)}(this,p)}}function _(){return _=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(i,o,p){var m=function(O,U){for(;!Object.prototype.hasOwnProperty.call(O,U)&&(O=c(O))!==null;);return O}(i,o);if(m){var w=Object.getOwnPropertyDescriptor(m,o);return w.get?w.get.call(arguments.length<3?i:p):w.value}},_.apply(this,arguments)}function W(i){var o=function(p,m){if(typeof p!="object"||p===null)return p;var w=p[Symbol.toPrimitive];if(w!==void 0){var O=w.call(p,m);if(typeof O!="object")return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(p)}(i,"string");return typeof o=="symbol"?o:o+""}var C=function(i){return!(!i||!i.Window)&&i instanceof i.Window},M=void 0,ae=void 0;function S(i){M=i;var o=i.document.createTextNode("");o.ownerDocument!==i.document&&typeof i.wrap=="function"&&i.wrap(o)===o&&(i=i.wrap(i)),ae=i}function $(i){return C(i)?i:(i.ownerDocument||i).defaultView||ae.window}typeof window<"u"&&window&&S(window);var N=function(i){return!!i&&s(i)==="object"},x=function(i){return typeof i=="function"},g={window:function(i){return i===ae||C(i)},docFrag:function(i){return N(i)&&i.nodeType===11},object:N,func:x,number:function(i){return typeof i=="number"},bool:function(i){return typeof i=="boolean"},string:function(i){return typeof i=="string"},element:function(i){if(!i||s(i)!=="object")return!1;var o=$(i)||ae;return/object|function/.test(typeof Element>"u"?"undefined":s(Element))?i instanceof Element||i instanceof o.Element:i.nodeType===1&&typeof i.nodeName=="string"},plainObject:function(i){return N(i)&&!!i.constructor&&/function Object\b/.test(i.constructor.toString())},array:function(i){return N(i)&&i.length!==void 0&&x(i.splice)}};function H(i){var o=i.interaction;if(o.prepared.name==="drag"){var p=o.prepared.axis;p==="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):p==="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 q(i){var o=i.iEvent,p=i.interaction;if(p.prepared.name==="drag"){var m=p.prepared.axis;if(m==="x"||m==="y"){var w=m==="x"?"y":"x";o.page[w]=p.coords.start.page[w],o.client[w]=p.coords.start.client[w],o.delta[w]=0}}}var G={id:"actions/drag",install:function(i){var o=i.actions,p=i.Interactable,m=i.defaults;p.prototype.draggable=G.draggable,o.map.drag=G,o.methodDict.drag="draggable",m.actions.drag=G.defaults},listeners:{"interactions:before-action-move":H,"interactions:action-resume":H,"interactions:action-move":q,"auto-start:check":function(i){var o=i.interaction,p=i.interactable,m=i.buttons,w=p.options.drag;if(w&&w.enabled&&(!o.pointerIsDown||!/mouse|pointer/.test(o.pointerType)||(m&p.options.drag.mouseButtons)!=0))return i.action={name:"drag",axis:w.lockAxis==="start"?w.startAxis:w.lockAxis},!1}},draggable:function(i){return g.object(i)?(this.options.drag.enabled=i.enabled!==!1,this.setPerAction("drag",i),this.setOnEvents("drag",i),/^(xy|x|y|start)$/.test(i.lockAxis)&&(this.options.drag.lockAxis=i.lockAxis),/^(xy|x|y)$/.test(i.startAxis)&&(this.options.drag.startAxis=i.startAxis),this):g.bool(i)?(this.options.drag.enabled=i,this):this.options.drag},beforeMove:H,move:q,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(i){return i.search("drag")===0}},he=G,Be={init:function(i){var o=i;Be.document=o.document,Be.DocumentFragment=o.DocumentFragment||xe,Be.SVGElement=o.SVGElement||xe,Be.SVGSVGElement=o.SVGSVGElement||xe,Be.SVGElementInstance=o.SVGElementInstance||xe,Be.Element=o.Element||xe,Be.HTMLElement=o.HTMLElement||Be.Element,Be.Event=o.Event,Be.Touch=o.Touch||xe,Be.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 xe(){}var te=Be,me={init:function(i){var o=te.Element,p=i.navigator||{};me.supportsTouch="ontouchstart"in i||g.func(i.DocumentTouch)&&te.document instanceof i.DocumentTouch,me.supportsPointerEvent=p.pointerEnabled!==!1&&!!te.PointerEvent,me.isIOS=/iP(hone|od|ad)/.test(p.platform),me.isIOS7=/iP(hone|od|ad)/.test(p.platform)&&/OS 7[^\d]/.test(p.appVersion),me.isIe9=/MSIE 9/.test(p.userAgent),me.isOperaMobile=p.appName==="Opera"&&me.supportsTouch&&/Presto/.test(p.userAgent),me.prefixedMatchesSelector="matches"in o.prototype?"matches":"webkitMatchesSelector"in o.prototype?"webkitMatchesSelector":"mozMatchesSelector"in o.prototype?"mozMatchesSelector":"oMatchesSelector"in o.prototype?"oMatchesSelector":"msMatchesSelector",me.pEventTypes=me.supportsPointerEvent?te.PointerEvent===i.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,me.wheelEvent=te.document&&"onmousewheel"in te.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},Z=me;function ue(i,o){if(i.contains)return i.contains(o);for(;o;){if(o===i)return!0;o=o.parentNode}return!1}function Ue(i,o){for(;g.element(i);){if(oe(i,o))return i;i=Ca(i)}return null}function Ca(i){var o=i.parentNode;if(g.docFrag(o)){for(;(o=o.host)&&g.docFrag(o););return o}return o}function oe(i,o){return ae!==M&&(o=o.replace(/\/deep\//g," ")),i[Z.prefixedMatchesSelector](o)}var D=function(i){return i.parentNode||i.host};function ne(i,o){for(var p,m=[],w=i;(p=D(w))&&w!==o&&p!==w.ownerDocument;)m.unshift(w),w=p;return m}function ve(i,o,p){for(;g.element(i);){if(oe(i,o))return!0;if((i=Ca(i))===p)return oe(i,o)}return!1}function se(i){return i.correspondingUseElement||i}function _e(i){var o=i instanceof te.SVGElement?i.getBoundingClientRect():i.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 ra(i){var o,p=_e(i);if(!Z.isIOS7&&p){var m={x:(o=(o=$(i))||ae).scrollX||o.document.documentElement.scrollLeft,y:o.scrollY||o.document.documentElement.scrollTop};p.left+=m.x,p.right+=m.x,p.top+=m.y,p.bottom+=m.y}return p}function ba(i){for(var o=[];i;)o.push(i),i=Ca(i);return o}function $a(i){return!!g.string(i)&&(te.document.querySelector(i),!0)}function le(i,o){for(var p in o)i[p]=o[p];return i}function Qe(i,o,p){return i==="parent"?Ca(p):i==="self"?o.getRect(p):Ue(p,i)}function Ie(i,o,p,m){var w=i;return g.string(w)?w=Qe(w,o,p):g.func(w)&&(w=w.apply(void 0,m)),g.element(w)&&(w=ra(w)),w}function ka(i){return i&&{x:"x"in i?i.x:i.left,y:"y"in i?i.y:i.top}}function Re(i){return!i||"x"in i&&"y"in i||((i=le({},i)).x=i.left||0,i.y=i.top||0,i.width=i.width||(i.right||0)-i.x,i.height=i.height||(i.bottom||0)-i.y),i}function we(i,o,p){i.left&&(o.left+=p.x),i.right&&(o.right+=p.x),i.top&&(o.top+=p.y),i.bottom&&(o.bottom+=p.y),o.width=o.right-o.left,o.height=o.bottom-o.top}function ze(i,o,p){var m=p&&i.options[p];return ka(Ie(m&&m.origin||i.options.origin,i,o,[i&&o]))||{x:0,y:0}}function qe(i,o){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(de){return!0},m=arguments.length>3?arguments[3]:void 0;if(m=m||{},g.string(i)&&i.search(" ")!==-1&&(i=Sa(i)),g.array(i))return i.forEach(function(de){return qe(de,o,p,m)}),m;if(g.object(i)&&(o=i,i=""),g.func(o)&&p(i))m[i]=m[i]||[],m[i].push(o);else if(g.array(o))for(var w=0,O=o;w<O.length;w++){var U=O[w];qe(i,U,p,m)}else if(g.object(o))for(var J in o)qe(Sa(J).map(function(de){return"".concat(i).concat(de)}),o[J],p,m);return m}function Sa(i){return i.trim().split(/ +/)}var el=function(i,o){return Math.sqrt(i*i+o*o)},P=["webkit","moz"];function j(i,o){i.__set||(i.__set={});var p=function(w){if(P.some(function(O){return w.indexOf(O)===0}))return 1;typeof i[w]!="function"&&w!=="__set"&&Object.defineProperty(i,w,{get:function(){return w in i.__set?i.__set[w]:i.__set[w]=o[w]},set:function(O){i.__set[w]=O},configurable:!0})};for(var m in o)p(m);return i}function Y(i,o){i.page=i.page||{},i.page.x=o.page.x,i.page.y=o.page.y,i.client=i.client||{},i.client.x=o.client.x,i.client.y=o.client.y,i.timeStamp=o.timeStamp}function V(i){i.page.x=0,i.page.y=0,i.client.x=0,i.client.y=0}function K(i){return i instanceof te.Event||i instanceof te.Touch}function Te(i,o,p){return i=i||"page",(p=p||{}).x=o[i+"X"],p.y=o[i+"Y"],p}function ee(i,o){return o=o||{x:0,y:0},Z.isOperaMobile&&K(i)?(Te("screen",i,o),o.x+=window.scrollX,o.y+=window.scrollY):Te("page",i,o),o}function ke(i){return g.number(i.pointerId)?i.pointerId:i.identifier}function pe(i,o,p){var m=o.length>1?Ve(o):o[0];ee(m,i.page),function(w,O){O=O||{},Z.isOperaMobile&&K(w)?Te("screen",w,O):Te("client",w,O)}(m,i.client),i.timeStamp=p}function $e(i){var o=[];return g.array(i)?(o[0]=i[0],o[1]=i[1]):i.type==="touchend"?i.touches.length===1?(o[0]=i.touches[0],o[1]=i.changedTouches[0]):i.touches.length===0&&(o[0]=i.changedTouches[0],o[1]=i.changedTouches[1]):(o[0]=i.touches[0],o[1]=i.touches[1]),o}function Ve(i){for(var o={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},p=0;p<i.length;p++){var m=i[p];for(var w in o)o[w]+=m[w]}for(var O in o)o[O]/=i.length;return o}function ca(i){if(!i.length)return null;var o=$e(i),p=Math.min(o[0].pageX,o[1].pageX),m=Math.min(o[0].pageY,o[1].pageY),w=Math.max(o[0].pageX,o[1].pageX),O=Math.max(o[0].pageY,o[1].pageY);return{x:p,y:m,left:p,top:m,right:w,bottom:O,width:w-p,height:O-m}}function ya(i,o){var p=o+"X",m=o+"Y",w=$e(i),O=w[0][p]-w[1][p],U=w[0][m]-w[1][m];return el(O,U)}function Oe(i,o){var p=o+"X",m=o+"Y",w=$e(i),O=w[1][p]-w[0][p],U=w[1][m]-w[0][m];return 180*Math.atan2(U,O)/Math.PI}function da(i){return g.string(i.pointerType)?i.pointerType:g.number(i.pointerType)?[void 0,void 0,"touch","pen","mouse"][i.pointerType]:/touch/.test(i.type||"")||i instanceof te.Touch?"touch":"mouse"}function Le(i){var o=g.func(i.composedPath)?i.composedPath():i.path;return[se(o?o[0]:i.target),se(i.currentTarget)]}var _a=function(){function i(o){u(this,i),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=o}return h(i,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),i}();Object.defineProperty(_a.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var Fe=function(i,o){for(var p=0;p<o.length;p++){var m=o[p];i.push(m)}return i},ma=function(i){return Fe([],i)},ce=function(i,o){for(var p=0;p<i.length;p++)if(o(i[p],p,i))return p;return-1},ga=function(i,o){return i[ce(i,o)]},ye=function(i){y(p,i);var o=L(p);function p(m,w,O){var U;u(this,p),(U=o.call(this,w._interaction)).dropzone=void 0,U.dragEvent=void 0,U.relatedTarget=void 0,U.draggable=void 0,U.propagationStopped=!1,U.immediatePropagationStopped=!1;var J=O==="dragleave"?m.prev:m.cur,de=J.element,Ae=J.dropzone;return U.type=O,U.target=de,U.currentTarget=de,U.dropzone=Ae,U.dragEvent=w,U.relatedTarget=w.target,U.draggable=w.interactable,U.timeStamp=w.timeStamp,U}return h(p,[{key:"reject",value:function(){var m=this,w=this._interaction.dropState;if(this.type==="dropactivate"||this.dropzone&&w.cur.dropzone===this.dropzone&&w.cur.element===this.target)if(w.prev.dropzone=this.dropzone,w.prev.element=this.target,w.rejected=!0,w.events.enter=null,this.stopImmediatePropagation(),this.type==="dropactivate"){var O=w.activeDrops,U=ce(O,function(de){var Ae=de.dropzone,fe=de.element;return Ae===m.dropzone&&fe===m.target});w.activeDrops.splice(U,1);var J=new p(w,this.dragEvent,"dropdeactivate");J.dropzone=this.dropzone,J.target=this.target,this.dropzone.fire(J)}else this.dropzone.fire(new p(w,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),p}(_a);function Ea(i,o){for(var p=0,m=i.slice();p<m.length;p++){var w=m[p],O=w.dropzone,U=w.element;o.dropzone=O,o.target=U,O.fire(o),o.propagationStopped=o.immediatePropagationStopped=!1}}function Ye(i,o){for(var p=function(O,U){for(var J=[],de=0,Ae=O.interactables.list;de<Ae.length;de++){var fe=Ae[de];if(fe.options.drop.enabled){var Je=fe.options.drop.accept;if(!(g.element(Je)&&Je!==U||g.string(Je)&&!oe(U,Je)||g.func(Je)&&!Je({dropzone:fe,draggableElement:U})))for(var Ba=0,Qa=fe.getAllElements();Ba<Qa.length;Ba++){var Ja=Qa[Ba];Ja!==U&&J.push({dropzone:fe,element:Ja,rect:fe.getRect(Ja)})}}}return J}(i,o),m=0;m<p.length;m++){var w=p[m];w.rect=w.dropzone.getRect(w.element)}return p}function Ke(i,o,p){for(var m=i.dropState,w=i.interactable,O=i.element,U=[],J=0,de=m.activeDrops;J<de.length;J++){var Ae=de[J],fe=Ae.dropzone,Je=Ae.element,Ba=Ae.rect,Qa=fe.dropCheck(o,p,w,O,Je,Ba);U.push(Qa?Je:null)}var Ja=function(ja){for(var xl,pl,Ml,Ol=[],Yl=0;Yl<ja.length;Yl++){var Vl=ja[Yl],jl=ja[xl];if(Vl&&Yl!==xl)if(jl){var Or=D(Vl),vr=D(jl);if(Or!==Vl.ownerDocument)if(vr!==Vl.ownerDocument)if(Or!==vr){Ol=Ol.length?Ol:ne(jl);var $r=void 0;if(jl instanceof te.HTMLElement&&Vl instanceof te.SVGElement&&!(Vl instanceof te.SVGSVGElement)){if(Vl===vr)continue;$r=Vl.ownerSVGElement}else $r=Vl;for(var Zr=ne($r,jl.ownerDocument),Qr=0;Zr[Qr]&&Zr[Qr]===Ol[Qr];)Qr++;var ct=[Zr[Qr-1],Zr[Qr],Ol[Qr]];if(ct[0])for(var Vn=ct[0].lastChild;Vn;){if(Vn===ct[1]){xl=Yl,Ol=Zr;break}if(Vn===ct[2])break;Vn=Vn.previousSibling}}else Ml=jl,(parseInt($(pl=Vl).getComputedStyle(pl).zIndex,10)||0)>=(parseInt($(Ml).getComputedStyle(Ml).zIndex,10)||0)&&(xl=Yl);else xl=Yl}else xl=Yl}return xl}(U);return m.activeDrops[Ja]||null}function Ce(i,o,p){var m=i.dropState,w={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return p.type==="dragstart"&&(w.activate=new ye(m,p,"dropactivate"),w.activate.target=null,w.activate.dropzone=null),p.type==="dragend"&&(w.deactivate=new ye(m,p,"dropdeactivate"),w.deactivate.target=null,w.deactivate.dropzone=null),m.rejected||(m.cur.element!==m.prev.element&&(m.prev.dropzone&&(w.leave=new ye(m,p,"dragleave"),p.dragLeave=w.leave.target=m.prev.element,p.prevDropzone=w.leave.dropzone=m.prev.dropzone),m.cur.dropzone&&(w.enter=new ye(m,p,"dragenter"),p.dragEnter=m.cur.element,p.dropzone=m.cur.dropzone)),p.type==="dragend"&&m.cur.dropzone&&(w.drop=new ye(m,p,"drop"),p.dropzone=m.cur.dropzone,p.relatedTarget=m.cur.element),p.type==="dragmove"&&m.cur.dropzone&&(w.move=new ye(m,p,"dropmove"),p.dropzone=m.cur.dropzone)),w}function be(i,o){var p=i.dropState,m=p.activeDrops,w=p.cur,O=p.prev;o.leave&&O.dropzone.fire(o.leave),o.enter&&w.dropzone.fire(o.enter),o.move&&w.dropzone.fire(o.move),o.drop&&w.dropzone.fire(o.drop),o.deactivate&&Ea(m,o.deactivate),p.prev.dropzone=w.dropzone,p.prev.element=w.element}function Ee(i,o){var p=i.interaction,m=i.iEvent,w=i.event;if(m.type==="dragmove"||m.type==="dragend"){var O=p.dropState;o.dynamicDrop&&(O.activeDrops=Ye(o,p.element));var U=m,J=Ke(p,U,w);O.rejected=O.rejected&&!!J&&J.dropzone===O.cur.dropzone&&J.element===O.cur.element,O.cur.dropzone=J&&J.dropzone,O.cur.element=J&&J.element,O.events=Ce(p,0,U)}}var pa={id:"actions/drop",install:function(i){var o=i.actions,p=i.interactStatic,m=i.Interactable,w=i.defaults;i.usePlugin(he),m.prototype.dropzone=function(O){return function(U,J){if(g.object(J)){if(U.options.drop.enabled=J.enabled!==!1,J.listeners){var de=qe(J.listeners),Ae=Object.keys(de).reduce(function(Je,Ba){return Je[/^(enter|leave)/.test(Ba)?"drag".concat(Ba):/^(activate|deactivate|move)/.test(Ba)?"drop".concat(Ba):Ba]=de[Ba],Je},{}),fe=U.options.drop.listeners;fe&&U.off(fe),U.on(Ae),U.options.drop.listeners=Ae}return g.func(J.ondrop)&&U.on("drop",J.ondrop),g.func(J.ondropactivate)&&U.on("dropactivate",J.ondropactivate),g.func(J.ondropdeactivate)&&U.on("dropdeactivate",J.ondropdeactivate),g.func(J.ondragenter)&&U.on("dragenter",J.ondragenter),g.func(J.ondragleave)&&U.on("dragleave",J.ondragleave),g.func(J.ondropmove)&&U.on("dropmove",J.ondropmove),/^(pointer|center)$/.test(J.overlap)?U.options.drop.overlap=J.overlap:g.number(J.overlap)&&(U.options.drop.overlap=Math.max(Math.min(1,J.overlap),0)),"accept"in J&&(U.options.drop.accept=J.accept),"checker"in J&&(U.options.drop.checker=J.checker),U}return g.bool(J)?(U.options.drop.enabled=J,U):U.options.drop}(this,O)},m.prototype.dropCheck=function(O,U,J,de,Ae,fe){return function(Je,Ba,Qa,Ja,ja,xl,pl){var Ml=!1;if(!(pl=pl||Je.getRect(xl)))return!!Je.options.drop.checker&&Je.options.drop.checker(Ba,Qa,Ml,Je,xl,Ja,ja);var Ol=Je.options.drop.overlap;if(Ol==="pointer"){var Yl=ze(Ja,ja,"drag"),Vl=ee(Ba);Vl.x+=Yl.x,Vl.y+=Yl.y;var jl=Vl.x>pl.left&&Vl.x<pl.right,Or=Vl.y>pl.top&&Vl.y<pl.bottom;Ml=jl&&Or}var vr=Ja.getRect(ja);if(vr&&Ol==="center"){var $r=vr.left+vr.width/2,Zr=vr.top+vr.height/2;Ml=$r>=pl.left&&$r<=pl.right&&Zr>=pl.top&&Zr<=pl.bottom}return vr&&g.number(Ol)&&(Ml=Math.max(0,Math.min(pl.right,vr.right)-Math.max(pl.left,vr.left))*Math.max(0,Math.min(pl.bottom,vr.bottom)-Math.max(pl.top,vr.top))/(vr.width*vr.height)>=Ol),Je.options.drop.checker&&(Ml=Je.options.drop.checker(Ba,Qa,Ml,Je,xl,Ja,ja)),Ml}(this,O,U,J,de,Ae,fe)},p.dynamicDrop=function(O){return g.bool(O)?(i.dynamicDrop=O,p):i.dynamicDrop},le(o.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),o.methodDict.drop="dropzone",i.dynamicDrop=!1,w.actions.drop=pa.defaults},listeners:{"interactions:before-action-start":function(i){var o=i.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(i,o){var p=i.interaction,m=(i.event,i.iEvent);if(p.prepared.name==="drag"){var w=p.dropState;w.activeDrops=[],w.events={},w.activeDrops=Ye(o,p.element),w.events=Ce(p,0,m),w.events.activate&&(Ea(w.activeDrops,w.events.activate),o.fire("actions/drop:start",{interaction:p,dragEvent:m}))}},"interactions:action-move":Ee,"interactions:after-action-move":function(i,o){var p=i.interaction,m=i.iEvent;if(p.prepared.name==="drag"){var w=p.dropState;be(p,w.events),o.fire("actions/drop:move",{interaction:p,dragEvent:m}),w.events={}}},"interactions:action-end":function(i,o){if(i.interaction.prepared.name==="drag"){var p=i.interaction,m=i.iEvent;Ee(i,o),be(p,p.dropState.events),o.fire("actions/drop:end",{interaction:p,dragEvent:m})}},"interactions:stop":function(i){var o=i.interaction;if(o.prepared.name==="drag"){var p=o.dropState;p&&(p.activeDrops=null,p.events=null,p.cur.dropzone=null,p.cur.element=null,p.prev.dropzone=null,p.prev.element=null,p.rejected=!1)}}},getActiveDrops:Ye,getDrop:Ke,getDropEvents:Ce,fireDropEvents:be,filterEventType:function(i){return i.search("drag")===0||i.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},na=pa;function rl(i){var o=i.interaction,p=i.iEvent,m=i.phase;if(o.prepared.name==="gesture"){var w=o.pointers.map(function(Ae){return Ae.pointer}),O=m==="start",U=m==="end",J=o.interactable.options.deltaSource;if(p.touches=[w[0],w[1]],O)p.distance=ya(w,J),p.box=ca(w),p.scale=1,p.ds=0,p.angle=Oe(w,J),p.da=0,o.gesture.startDistance=p.distance,o.gesture.startAngle=p.angle;else if(U||o.pointers.length<2){var de=o.prevEvent;p.distance=de.distance,p.box=de.box,p.scale=de.scale,p.ds=0,p.angle=de.angle,p.da=0}else p.distance=ya(w,J),p.box=ca(w),p.scale=p.distance/o.gesture.startDistance,p.angle=Oe(w,J),p.ds=p.scale-o.gesture.scale,p.da=p.angle-o.gesture.angle;o.gesture.distance=p.distance,o.gesture.angle=p.angle,g.number(p.scale)&&p.scale!==1/0&&!isNaN(p.scale)&&(o.gesture.scale=p.scale)}}var Il={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(i){var o=i.actions,p=i.Interactable,m=i.defaults;p.prototype.gesturable=function(w){return g.object(w)?(this.options.gesture.enabled=w.enabled!==!1,this.setPerAction("gesture",w),this.setOnEvents("gesture",w),this):g.bool(w)?(this.options.gesture.enabled=w,this):this.options.gesture},o.map.gesture=Il,o.methodDict.gesture="gesturable",m.actions.gesture=Il.defaults},listeners:{"interactions:action-start":rl,"interactions:action-move":rl,"interactions:action-end":rl,"interactions:new":function(i){i.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(i){if(!(i.interaction.pointers.length<2)){var o=i.interactable.options.gesture;if(o&&o.enabled)return i.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(i){return i.search("gesture")===0}},Fl=Il;function al(i,o,p,m,w,O,U){if(!o)return!1;if(o===!0){var J=g.number(O.width)?O.width:O.right-O.left,de=g.number(O.height)?O.height:O.bottom-O.top;if(U=Math.min(U,Math.abs((i==="left"||i==="right"?J:de)/2)),J<0&&(i==="left"?i="right":i==="right"&&(i="left")),de<0&&(i==="top"?i="bottom":i==="bottom"&&(i="top")),i==="left"){var Ae=J>=0?O.left:O.right;return p.x<Ae+U}if(i==="top"){var fe=de>=0?O.top:O.bottom;return p.y<fe+U}if(i==="right")return p.x>(J>=0?O.right:O.left)-U;if(i==="bottom")return p.y>(de>=0?O.bottom:O.top)-U}return!!g.element(m)&&(g.element(o)?o===m:ve(m,o,w))}function Ha(i){var o=i.iEvent,p=i.interaction;if(p.prepared.name==="resize"&&p.resizeAxes){var m=o;p.interactable.options.resize.square?(p.resizeAxes==="y"?m.delta.x=m.delta.y:m.delta.y=m.delta.x,m.axes="xy"):(m.axes=p.resizeAxes,p.resizeAxes==="x"?m.delta.y=0:p.resizeAxes==="y"&&(m.delta.x=0))}}var oa,Ta,Va={id:"actions/resize",before:["actions/drag"],install:function(i){var o=i.actions,p=i.browser,m=i.Interactable,w=i.defaults;Va.cursors=function(O){return O.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"}}(p),Va.defaultMargin=p.supportsTouch||p.supportsPointerEvent?20:10,m.prototype.resizable=function(O){return function(U,J,de){return g.object(J)?(U.options.resize.enabled=J.enabled!==!1,U.setPerAction("resize",J),U.setOnEvents("resize",J),g.string(J.axis)&&/^x$|^y$|^xy$/.test(J.axis)?U.options.resize.axis=J.axis:J.axis===null&&(U.options.resize.axis=de.defaults.actions.resize.axis),g.bool(J.preserveAspectRatio)?U.options.resize.preserveAspectRatio=J.preserveAspectRatio:g.bool(J.square)&&(U.options.resize.square=J.square),U):g.bool(J)?(U.options.resize.enabled=J,U):U.options.resize}(this,O,i)},o.map.resize=Va,o.methodDict.resize="resizable",w.actions.resize=Va.defaults},listeners:{"interactions:new":function(i){i.interaction.resizeAxes="xy"},"interactions:action-start":function(i){(function(o){var p=o.iEvent,m=o.interaction;if(m.prepared.name==="resize"&&m.prepared.edges){var w=p,O=m.rect;m._rects={start:le({},O),corrected:le({},O),previous:le({},O),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},w.edges=m.prepared.edges,w.rect=m._rects.corrected,w.deltaRect=m._rects.delta}})(i),Ha(i)},"interactions:action-move":function(i){(function(o){var p=o.iEvent,m=o.interaction;if(m.prepared.name==="resize"&&m.prepared.edges){var w=p,O=m.interactable.options.resize.invert,U=O==="reposition"||O==="negate",J=m.rect,de=m._rects,Ae=de.start,fe=de.corrected,Je=de.delta,Ba=de.previous;if(le(Ba,fe),U){if(le(fe,J),O==="reposition"){if(fe.top>fe.bottom){var Qa=fe.top;fe.top=fe.bottom,fe.bottom=Qa}if(fe.left>fe.right){var Ja=fe.left;fe.left=fe.right,fe.right=Ja}}}else fe.top=Math.min(J.top,Ae.bottom),fe.bottom=Math.max(J.bottom,Ae.top),fe.left=Math.min(J.left,Ae.right),fe.right=Math.max(J.right,Ae.left);for(var ja in fe.width=fe.right-fe.left,fe.height=fe.bottom-fe.top,fe)Je[ja]=fe[ja]-Ba[ja];w.edges=m.prepared.edges,w.rect=fe,w.deltaRect=Je}})(i),Ha(i)},"interactions:action-end":function(i){var o=i.iEvent,p=i.interaction;if(p.prepared.name==="resize"&&p.prepared.edges){var m=o;m.edges=p.prepared.edges,m.rect=p._rects.corrected,m.deltaRect=p._rects.delta}},"auto-start:check":function(i){var o=i.interaction,p=i.interactable,m=i.element,w=i.rect,O=i.buttons;if(w){var U=le({},o.coords.cur.page),J=p.options.resize;if(J&&J.enabled&&(!o.pointerIsDown||!/mouse|pointer/.test(o.pointerType)||(O&J.mouseButtons)!=0)){if(g.object(J.edges)){var de={left:!1,right:!1,top:!1,bottom:!1};for(var Ae in de)de[Ae]=al(Ae,J.edges[Ae],U,o._latestPointer.eventTarget,m,w,J.margin||Va.defaultMargin);de.left=de.left&&!de.right,de.top=de.top&&!de.bottom,(de.left||de.right||de.top||de.bottom)&&(i.action={name:"resize",edges:de})}else{var fe=J.axis!=="y"&&U.x>w.right-Va.defaultMargin,Je=J.axis!=="x"&&U.y>w.bottom-Va.defaultMargin;(fe||Je)&&(i.action={name:"resize",axes:(fe?"x":"")+(Je?"y":"")})}return!i.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(i){var o=i.edges,p=i.axis,m=i.name,w=Va.cursors,O=null;if(p)O=w[m+p];else if(o){for(var U="",J=0,de=["top","bottom","left","right"];J<de.length;J++){var Ae=de[J];o[Ae]&&(U+=Ae)}O=w[U]}return O},filterEventType:function(i){return i.search("resize")===0},defaultMargin:null},ll=Va,yl={id:"actions",install:function(i){i.usePlugin(Fl),i.usePlugin(ll),i.usePlugin(he),i.usePlugin(na)}},Da=0,Ge={request:function(i){return oa(i)},cancel:function(i){return Ta(i)},init:function(i){if(oa=i.requestAnimationFrame,Ta=i.cancelAnimationFrame,!oa)for(var o=["ms","moz","webkit","o"],p=0;p<o.length;p++){var m=o[p];oa=i["".concat(m,"RequestAnimationFrame")],Ta=i["".concat(m,"CancelAnimationFrame")]||i["".concat(m,"CancelRequestAnimationFrame")]}oa=oa&&oa.bind(i),Ta=Ta&&Ta.bind(i),oa||(oa=function(w){var O=Date.now(),U=Math.max(0,16-(O-Da)),J=i.setTimeout(function(){w(O+U)},U);return Da=O+U,J},Ta=function(w){return clearTimeout(w)})}},X={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(i){X.isScrolling=!0,Ge.cancel(X.i),i.autoScroll=X,X.interaction=i,X.prevTime=X.now(),X.i=Ge.request(X.scroll)},stop:function(){X.isScrolling=!1,X.interaction&&(X.interaction.autoScroll=null),Ge.cancel(X.i)},scroll:function(){var i=X.interaction,o=i.interactable,p=i.element,m=i.prepared.name,w=o.options[m].autoScroll,O=Aa(w.container,o,p),U=X.now(),J=(U-X.prevTime)/1e3,de=w.speed*J;if(de>=1){var Ae={x:X.x*de,y:X.y*de};if(Ae.x||Ae.y){var fe=Ma(O);g.window(O)?O.scrollBy(Ae.x,Ae.y):O&&(O.scrollLeft+=Ae.x,O.scrollTop+=Ae.y);var Je=Ma(O),Ba={x:Je.x-fe.x,y:Je.y-fe.y};(Ba.x||Ba.y)&&o.fire({type:"autoscroll",target:p,interactable:o,delta:Ba,interaction:i,container:O})}X.prevTime=U}X.isScrolling&&(Ge.cancel(X.i),X.i=Ge.request(X.scroll))},check:function(i,o){var p;return(p=i.options[o].autoScroll)==null?void 0:p.enabled},onInteractionMove:function(i){var o=i.interaction,p=i.pointer;if(o.interacting()&&X.check(o.interactable,o.prepared.name))if(o.simulation)X.x=X.y=0;else{var m,w,O,U,J=o.interactable,de=o.element,Ae=o.prepared.name,fe=J.options[Ae].autoScroll,Je=Aa(fe.container,J,de);if(g.window(Je))U=p.clientX<X.margin,m=p.clientY<X.margin,w=p.clientX>Je.innerWidth-X.margin,O=p.clientY>Je.innerHeight-X.margin;else{var Ba=_e(Je);U=p.clientX<Ba.left+X.margin,m=p.clientY<Ba.top+X.margin,w=p.clientX>Ba.right-X.margin,O=p.clientY>Ba.bottom-X.margin}X.x=w?1:U?-1:0,X.y=O?1:m?-1:0,X.isScrolling||(X.margin=fe.margin,X.speed=fe.speed,X.start(o))}}};function Aa(i,o,p){return(g.string(i)?Qe(i,o,p):i)||$(p)}function Ma(i){return g.window(i)&&(i=window.document.body),{x:i.scrollLeft,y:i.scrollTop}}var sl={id:"auto-scroll",install:function(i){var o=i.defaults,p=i.actions;i.autoScroll=X,X.now=function(){return i.now()},p.phaselessTypes.autoscroll=!0,o.perAction.autoScroll=X.defaults},listeners:{"interactions:new":function(i){i.interaction.autoScroll=null},"interactions:destroy":function(i){i.interaction.autoScroll=null,X.stop(),X.interaction&&(X.interaction=null)},"interactions:stop":X.stop,"interactions:action-move":function(i){return X.onInteractionMove(i)}}},nl=sl;function wa(i,o){var p=!1;return function(){return p||(ae.console.warn(o),p=!0),i.apply(this,arguments)}}function ha(i,o){return i.name=o.name,i.axis=o.axis,i.edges=o.edges,i}function za(i){return g.bool(i)?(this.options.styleCursor=i,this):i===null?(delete this.options.styleCursor,this):this.options.styleCursor}function ea(i){return g.func(i)?(this.options.actionChecker=i,this):i===null?(delete this.options.actionChecker,this):this.options.actionChecker}var fa={id:"auto-start/interactableMethods",install:function(i){var o=i.Interactable;o.prototype.getAction=function(p,m,w,O){var U=function(J,de,Ae,fe,Je){var Ba=J.getRect(fe),Qa=de.buttons||{0:1,1:4,3:8,4:16}[de.button],Ja={action:null,interactable:J,interaction:Ae,element:fe,rect:Ba,buttons:Qa};return Je.fire("auto-start:check",Ja),Ja.action}(this,m,w,O,i);return this.options.actionChecker?this.options.actionChecker(p,m,U,this,O,w):U},o.prototype.ignoreFrom=wa(function(p){return this._backCompatOption("ignoreFrom",p)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),o.prototype.allowFrom=wa(function(p){return this._backCompatOption("allowFrom",p)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),o.prototype.actionChecker=ea,o.prototype.styleCursor=za}};function La(i,o,p,m,w){return o.testIgnoreAllow(o.options[i.name],p,m)&&o.options[i.name].enabled&&Nl(o,p,i,w)?i:null}function Ua(i,o,p,m,w,O,U){for(var J=0,de=m.length;J<de;J++){var Ae=m[J],fe=w[J],Je=Ae.getAction(o,p,i,fe);if(Je){var Ba=La(Je,Ae,fe,O,U);if(Ba)return{action:Ba,interactable:Ae,element:fe}}}return{action:null,interactable:null,element:null}}function zl(i,o,p,m,w){var O=[],U=[],J=m;function de(fe){O.push(fe),U.push(J)}for(;g.element(J);){O=[],U=[],w.interactables.forEachMatch(J,de);var Ae=Ua(i,o,p,O,U,m,w);if(Ae.action&&!Ae.interactable.options[Ae.action.name].manualStart)return Ae;J=Ca(J)}return{action:null,interactable:null,element:null}}function Sl(i,o,p){var m=o.action,w=o.interactable,O=o.element;m=m||{name:null},i.interactable=w,i.element=O,ha(i.prepared,m),i.rect=w&&m.name?w.getRect(O):null,tl(i,p),p.fire("autoStart:prepared",{interaction:i})}function Nl(i,o,p,m){var w=i.options,O=w[p.name].max,U=w[p.name].maxPerElement,J=m.autoStart.maxInteractions,de=0,Ae=0,fe=0;if(!(O&&U&&J))return!1;for(var Je=0,Ba=m.interactions.list;Je<Ba.length;Je++){var Qa=Ba[Je],Ja=Qa.prepared.name;if(Qa.interacting()&&(++de>=J||Qa.interactable===i&&((Ae+=Ja===p.name?1:0)>=O||Qa.element===o&&(fe++,Ja===p.name&&fe>=U))))return!1}return J>0}function Tl(i,o){return g.number(i)?(o.autoStart.maxInteractions=i,this):o.autoStart.maxInteractions}function dl(i,o,p){var m=p.autoStart.cursorElement;m&&m!==i&&(m.style.cursor=""),i.ownerDocument.documentElement.style.cursor=o,i.style.cursor=o,p.autoStart.cursorElement=o?i:null}function tl(i,o){var p=i.interactable,m=i.element,w=i.prepared;if(i.pointerType==="mouse"&&p&&p.options.styleCursor){var O="";if(w.name){var U=p.options[w.name].cursorChecker;O=g.func(U)?U(w,p,m,i._interacting):o.actions.map[w.name].getCursor(w)}dl(i.element,O||"",o)}else o.autoStart.cursorElement&&dl(o.autoStart.cursorElement,"",o)}var gl={id:"auto-start/base",before:["actions"],install:function(i){var o=i.interactStatic,p=i.defaults;i.usePlugin(fa),p.base.actionChecker=null,p.base.styleCursor=!0,le(p.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),o.maxInteractions=function(m){return Tl(m,i)},i.autoStart={maxInteractions:1/0,withinInteractionLimit:Nl,cursorElement:null}},listeners:{"interactions:down":function(i,o){var p=i.interaction,m=i.pointer,w=i.event,O=i.eventTarget;p.interacting()||Sl(p,zl(p,m,w,O,o),o)},"interactions:move":function(i,o){(function(p,m){var w=p.interaction,O=p.pointer,U=p.event,J=p.eventTarget;w.pointerType!=="mouse"||w.pointerIsDown||w.interacting()||Sl(w,zl(w,O,U,J,m),m)})(i,o),function(p,m){var w=p.interaction;if(w.pointerIsDown&&!w.interacting()&&w.pointerWasMoved&&w.prepared.name){m.fire("autoStart:before-start",p);var O=w.interactable,U=w.prepared.name;U&&O&&(O.options[U].manualStart||!Nl(O,w.element,w.prepared,m)?w.stop():(w.start(w.prepared,O,w.element),tl(w,m)))}}(i,o)},"interactions:stop":function(i,o){var p=i.interaction,m=p.interactable;m&&m.options.styleCursor&&dl(p.element,"",o)}},maxInteractions:Tl,withinInteractionLimit:Nl,validateAction:La},Cl=gl,Rl={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(i,o){var p=i.interaction,m=i.eventTarget,w=i.dx,O=i.dy;if(p.prepared.name==="drag"){var U=Math.abs(w),J=Math.abs(O),de=p.interactable.options.drag,Ae=de.startAxis,fe=U>J?"x":U<J?"y":"xy";if(p.prepared.axis=de.lockAxis==="start"?fe[0]:de.lockAxis,fe!=="xy"&&Ae!=="xy"&&Ae!==fe){p.prepared.name=null;for(var Je=m,Ba=function(Ja){if(Ja!==p.interactable){var ja=p.interactable.options.drag;if(!ja.manualStart&&Ja.testIgnoreAllow(ja,Je,m)){var xl=Ja.getAction(p.downPointer,p.downEvent,p,Je);if(xl&&xl.name==="drag"&&function(pl,Ml){if(!Ml)return!1;var Ol=Ml.options.drag.startAxis;return pl==="xy"||Ol==="xy"||Ol===pl}(fe,Ja)&&Cl.validateAction(xl,Ja,Je,m,o))return Ja}}};g.element(Je);){var Qa=o.interactables.forEachMatch(Je,Ba);if(Qa){p.prepared.name="drag",p.interactable=Qa,p.element=Je;break}Je=Ca(Je)}}}}}};function br(i){var o=i.prepared&&i.prepared.name;if(!o)return null;var p=i.interactable.options;return p[o].hold||p[o].delay}var Sr={id:"auto-start/hold",install:function(i){var o=i.defaults;i.usePlugin(Cl),o.perAction.hold=0,o.perAction.delay=0},listeners:{"interactions:new":function(i){i.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(i){var o=i.interaction,p=br(o);p>0&&(o.autoStartHoldTimer=setTimeout(function(){o.start(o.prepared,o.interactable,o.element)},p))},"interactions:move":function(i){var o=i.interaction,p=i.duplicate;o.autoStartHoldTimer&&o.pointerWasMoved&&!p&&(clearTimeout(o.autoStartHoldTimer),o.autoStartHoldTimer=null)},"autoStart:before-start":function(i){var o=i.interaction;br(o)>0&&(o.prepared.name=null)}},getHoldDuration:br},nn=Sr,tn={id:"auto-start",install:function(i){i.usePlugin(Cl),i.usePlugin(nn),i.usePlugin(Rl)}},Ar=function(i){return/^(always|never|auto)$/.test(i)?(this.options.preventDefault=i,this):g.bool(i)?(this.options.preventDefault=i?"always":"never",this):this.options.preventDefault};function Gr(i){var o=i.interaction,p=i.event;o.interactable&&o.interactable.checkAndPreventDefault(p)}var Xr={id:"core/interactablePreventDefault",install:function(i){var o=i.Interactable;o.prototype.preventDefault=Ar,o.prototype.checkAndPreventDefault=function(p){return function(m,w,O){var U=m.options.preventDefault;if(U!=="never")if(U!=="always"){if(w.events.supportsPassive&&/^touch(start|move)$/.test(O.type)){var J=$(O.target).document,de=w.getDocOptions(J);if(!de||!de.events||de.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(O.type)||g.element(O.target)&&oe(O.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||O.preventDefault()}else O.preventDefault()}(this,i,p)},i.interactions.docEvents.push({type:"dragstart",listener:function(p){for(var m=0,w=i.interactions.list;m<w.length;m++){var O=w[m];if(O.element&&(O.element===p.target||ue(O.element,p.target)))return void O.interactable.checkAndPreventDefault(p)}}})},listeners:["down","move","up","cancel"].reduce(function(i,o){return i["interactions:".concat(o)]=Gr,i},{})};function lr(i,o){if(o.phaselessTypes[i])return!0;for(var p in o.map)if(i.indexOf(p)===0&&i.substr(p.length)in o.phases)return!0;return!1}function Tr(i){var o={};for(var p in i){var m=i[p];g.plainObject(m)?o[p]=Tr(m):g.array(m)?o[p]=ma(m):o[p]=m}return o}var Dr=function(){function i(o){u(this,i),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=_n(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return h(i,[{key:"start",value:function(o,p){var m,w,O=o.phase,U=this.interaction,J=function(Ae){var fe=Ae.interactable.options[Ae.prepared.name],Je=fe.modifiers;return Je&&Je.length?Je:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(Ba){var Qa=fe[Ba];return Qa&&Qa.enabled&&{options:Qa,methods:Qa._methods}}).filter(function(Ba){return!!Ba})}(U);this.prepareStates(J),this.startEdges=le({},U.edges),this.edges=le({},this.startEdges),this.startOffset=(m=U.rect,w=p,m?{left:w.x-m.left,top:w.y-m.top,right:m.right-w.x,bottom:m.bottom-w.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var de=this.fillArg({phase:O,pageCoords:p,preEnd:!1});return this.result=_n(),this.startAll(de),this.result=this.setAll(de)}},{key:"fillArg",value:function(o){var p=this.interaction;return o.interaction=p,o.interactable=p.interactable,o.element=p.element,o.rect||(o.rect=p.rect),o.edges||(o.edges=this.startEdges),o.startOffset=this.startOffset,o}},{key:"startAll",value:function(o){for(var p=0,m=this.states;p<m.length;p++){var w=m[p];w.methods.start&&(o.state=w,w.methods.start(o))}}},{key:"setAll",value:function(o){var p=o.phase,m=o.preEnd,w=o.skipModifiers,O=o.rect,U=o.edges;o.coords=le({},o.pageCoords),o.rect=le({},O),o.edges=le({},U);for(var J=w?this.states.slice(w):this.states,de=_n(o.coords,o.rect),Ae=0;Ae<J.length;Ae++){var fe,Je=J[Ae],Ba=Je.options,Qa=le({},o.coords),Ja=null;(fe=Je.methods)!=null&&fe.set&&this.shouldDo(Ba,m,p)&&(o.state=Je,Ja=Je.methods.set(o),we(o.edges,o.rect,{x:o.coords.x-Qa.x,y:o.coords.y-Qa.y})),de.eventProps.push(Ja)}le(this.edges,o.edges),de.delta.x=o.coords.x-o.pageCoords.x,de.delta.y=o.coords.y-o.pageCoords.y,de.rectDelta.left=o.rect.left-O.left,de.rectDelta.right=o.rect.right-O.right,de.rectDelta.top=o.rect.top-O.top,de.rectDelta.bottom=o.rect.bottom-O.bottom;var ja=this.result.coords,xl=this.result.rect;if(ja&&xl){var pl=de.rect.left!==xl.left||de.rect.right!==xl.right||de.rect.top!==xl.top||de.rect.bottom!==xl.bottom;de.changed=pl||ja.x!==de.coords.x||ja.y!==de.coords.y}return de}},{key:"applyToInteraction",value:function(o){var p=this.interaction,m=o.phase,w=p.coords.cur,O=p.coords.start,U=this.result,J=this.startDelta,de=U.delta;m==="start"&&le(this.startDelta,U.delta);for(var Ae=0,fe=[[O,J],[w,de]];Ae<fe.length;Ae++){var Je=fe[Ae],Ba=Je[0],Qa=Je[1];Ba.page.x+=Qa.x,Ba.page.y+=Qa.y,Ba.client.x+=Qa.x,Ba.client.y+=Qa.y}var Ja=this.result.rectDelta,ja=o.rect||p.rect;ja.left+=Ja.left,ja.right+=Ja.right,ja.top+=Ja.top,ja.bottom+=Ja.bottom,ja.width=ja.right-ja.left,ja.height=ja.bottom-ja.top}},{key:"setAndApply",value:function(o){var p=this.interaction,m=o.phase,w=o.preEnd,O=o.skipModifiers,U=this.setAll(this.fillArg({preEnd:w,phase:m,pageCoords:o.modifiedCoords||p.coords.cur.page}));if(this.result=U,!U.changed&&(!O||O<this.states.length)&&p.interacting())return!1;if(o.modifiedCoords){var J=p.coords.cur.page,de={x:o.modifiedCoords.x-J.x,y:o.modifiedCoords.y-J.y};U.coords.x+=de.x,U.coords.y+=de.y,U.delta.x+=de.x,U.delta.y+=de.y}this.applyToInteraction(o)}},{key:"beforeEnd",value:function(o){var p=o.interaction,m=o.event,w=this.states;if(w&&w.length){for(var O=!1,U=0;U<w.length;U++){var J=w[U];o.state=J;var de=J.options,Ae=J.methods,fe=Ae.beforeEnd&&Ae.beforeEnd(o);if(fe)return this.endResult=fe,!1;O=O||!O&&this.shouldDo(de,!0,o.phase,!0)}O&&p.move({event:m,preEnd:!0})}}},{key:"stop",value:function(o){var p=o.interaction;if(this.states&&this.states.length){var m=le({states:this.states,interactable:p.interactable,element:p.element,rect:null},o);this.fillArg(m);for(var w=0,O=this.states;w<O.length;w++){var U=O[w];m.state=U,U.methods.stop&&U.methods.stop(m)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(o){this.states=[];for(var p=0;p<o.length;p++){var m=o[p],w=m.options,O=m.methods,U=m.name;this.states.push({options:w,methods:O,index:p,name:U})}return this.states}},{key:"restoreInteractionCoords",value:function(o){var p=o.interaction,m=p.coords,w=p.rect,O=p.modification;if(O.result){for(var U=O.startDelta,J=O.result,de=J.delta,Ae=J.rectDelta,fe=0,Je=[[m.start,U],[m.cur,de]];fe<Je.length;fe++){var Ba=Je[fe],Qa=Ba[0],Ja=Ba[1];Qa.page.x-=Ja.x,Qa.page.y-=Ja.y,Qa.client.x-=Ja.x,Qa.client.y-=Ja.y}w.left-=Ae.left,w.right-=Ae.right,w.top-=Ae.top,w.bottom-=Ae.bottom}}},{key:"shouldDo",value:function(o,p,m,w){return!(!o||o.enabled===!1||w&&!o.endOnly||o.endOnly&&!p||m==="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(p){return Tr(p)}),this.result=_n(le({},o.result.coords),le({},o.result.rect))}},{key:"destroy",value:function(){for(var o in this)this[o]=null}}]),i}();function _n(i,o){return{rect:o,coords:i,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function wr(i,o){var p=i.defaults,m={start:i.start,set:i.set,beforeEnd:i.beforeEnd,stop:i.stop},w=function(O){var U=O||{};for(var J in U.enabled=U.enabled!==!1,p)J in U||(U[J]=p[J]);var de={options:U,methods:m,name:o,enable:function(){return U.enabled=!0,de},disable:function(){return U.enabled=!1,de}};return de};return o&&typeof o=="string"&&(w._defaults=p,w._methods=m),w}function sr(i){var o=i.iEvent,p=i.interaction.modification.result;p&&(o.modifiers=p.eventProps)}var rt={id:"modifiers/base",before:["actions"],install:function(i){i.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(i){var o=i.interaction;o.modification=new Dr(o)},"interactions:before-action-start":function(i){var o=i.interaction,p=i.interaction.modification;p.start(i,o.coords.start.page),o.edges=p.edges,p.applyToInteraction(i)},"interactions:before-action-move":function(i){var o=i.interaction,p=o.modification,m=p.setAndApply(i);return o.edges=p.edges,m},"interactions:before-action-end":function(i){var o=i.interaction,p=o.modification,m=p.beforeEnd(i);return o.edges=p.startEdges,m},"interactions:action-start":sr,"interactions:action-move":sr,"interactions:action-end":sr,"interactions:after-action-start":function(i){return i.interaction.modification.restoreInteractionCoords(i)},"interactions:after-action-move":function(i){return i.interaction.modification.restoreInteractionCoords(i)},"interactions:stop":function(i){return i.interaction.modification.stop(i)}}},dn=rt,pn={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Tn=function(i){y(p,i);var o=L(p);function p(m,w,O,U,J,de,Ae){var fe;u(this,p),(fe=o.call(this,m)).relatedTarget=null,fe.screenX=void 0,fe.screenY=void 0,fe.button=void 0,fe.buttons=void 0,fe.ctrlKey=void 0,fe.shiftKey=void 0,fe.altKey=void 0,fe.metaKey=void 0,fe.page=void 0,fe.client=void 0,fe.delta=void 0,fe.rect=void 0,fe.x0=void 0,fe.y0=void 0,fe.t0=void 0,fe.dt=void 0,fe.duration=void 0,fe.clientX0=void 0,fe.clientY0=void 0,fe.velocity=void 0,fe.speed=void 0,fe.swipe=void 0,fe.axes=void 0,fe.preEnd=void 0,J=J||m.element;var Je=m.interactable,Ba=(Je&&Je.options||pn).deltaSource,Qa=ze(Je,J,O),Ja=U==="start",ja=U==="end",xl=Ja?A(fe):m.prevEvent,pl=Ja?m.coords.start:ja?{page:xl.page,client:xl.client,timeStamp:m.coords.cur.timeStamp}:m.coords.cur;return fe.page=le({},pl.page),fe.client=le({},pl.client),fe.rect=le({},m.rect),fe.timeStamp=pl.timeStamp,ja||(fe.page.x-=Qa.x,fe.page.y-=Qa.y,fe.client.x-=Qa.x,fe.client.y-=Qa.y),fe.ctrlKey=w.ctrlKey,fe.altKey=w.altKey,fe.shiftKey=w.shiftKey,fe.metaKey=w.metaKey,fe.button=w.button,fe.buttons=w.buttons,fe.target=J,fe.currentTarget=J,fe.preEnd=de,fe.type=Ae||O+(U||""),fe.interactable=Je,fe.t0=Ja?m.pointers[m.pointers.length-1].downTime:xl.t0,fe.x0=m.coords.start.page.x-Qa.x,fe.y0=m.coords.start.page.y-Qa.y,fe.clientX0=m.coords.start.client.x-Qa.x,fe.clientY0=m.coords.start.client.y-Qa.y,fe.delta=Ja||ja?{x:0,y:0}:{x:fe[Ba].x-xl[Ba].x,y:fe[Ba].y-xl[Ba].y},fe.dt=m.coords.delta.timeStamp,fe.duration=fe.timeStamp-fe.t0,fe.velocity=le({},m.coords.velocity[Ba]),fe.speed=el(fe.velocity.x,fe.velocity.y),fe.swipe=ja||U==="inertiastart"?fe.getSwipe():null,fe}return h(p,[{key:"getSwipe",value:function(){var m=this._interaction;if(m.prevEvent.speed<600||this.timeStamp-m.prevEvent.timeStamp>150)return null;var w=180*Math.atan2(m.prevEvent.velocityY,m.prevEvent.velocityX)/Math.PI;w<0&&(w+=360);var O=112.5<=w&&w<247.5,U=202.5<=w&&w<337.5;return{up:U,down:!U&&22.5<=w&&w<157.5,left:O,right:!O&&(292.5<=w||w<67.5),angle:w,speed:m.prevEvent.speed,velocity:{x:m.prevEvent.velocityX,y:m.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),p}(_a);Object.defineProperties(Tn.prototype,{pageX:{get:function(){return this.page.x},set:function(i){this.page.x=i}},pageY:{get:function(){return this.page.y},set:function(i){this.page.y=i}},clientX:{get:function(){return this.client.x},set:function(i){this.client.x=i}},clientY:{get:function(){return this.client.y},set:function(i){this.client.y=i}},dx:{get:function(){return this.delta.x},set:function(i){this.delta.x=i}},dy:{get:function(){return this.delta.y},set:function(i){this.delta.y=i}},velocityX:{get:function(){return this.velocity.x},set:function(i){this.velocity.x=i}},velocityY:{get:function(){return this.velocity.y},set:function(i){this.velocity.y=i}}});var nt=h(function i(o,p,m,w,O){u(this,i),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=p,this.event=m,this.downTime=w,this.downTarget=O}),An=function(i){return i.interactable="",i.element="",i.prepared="",i.pointerIsDown="",i.pointerWasMoved="",i._proxy="",i}({}),Mn=function(i){return i.start="",i.move="",i.end="",i.stop="",i.interacting="",i}({}),on=0,Un=function(){function i(o){var p=this,m=o.pointerType,w=o.scopeFire;u(this,i),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=wa(function(fe){this.move(fe)},"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=on++,this._scopeFire=w,this.pointerType=m;var O=this;this._proxy={};var U=function(fe){Object.defineProperty(p._proxy,fe,{get:function(){return O[fe]}})};for(var J in An)U(J);var de=function(fe){Object.defineProperty(p._proxy,fe,{value:function(){return O[fe].apply(O,arguments)}})};for(var Ae in Mn)de(Ae);this._scopeFire("interactions:new",{interaction:this})}return h(i,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(o,p,m){var w=this.updatePointer(o,p,m,!0),O=this.pointers[w];this._scopeFire("interactions:down",{pointer:o,event:p,eventTarget:m,pointerIndex:w,pointerInfo:O,type:"down",interaction:this})}},{key:"start",value:function(o,p,m){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(o.name==="gesture"?2:1)||!p.options[o.name].enabled)&&(ha(this.prepared,o),this.interactable=p,this.element=m,this.rect=p.getRect(m),this.edges=this.prepared.edges?le({},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,p,m){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(o,p,m,!1);var w,O,U=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&&(w=this.coords.cur.client.x-this.coords.start.client.x,O=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=el(w,O)>this.pointerMoveTolerance);var J,de,Ae,fe=this.getPointerIndex(o),Je={pointer:o,pointerIndex:fe,pointerInfo:this.pointers[fe],event:p,type:"move",eventTarget:m,dx:w,dy:O,duplicate:U,interaction:this};U||(J=this.coords.velocity,de=this.coords.delta,Ae=Math.max(de.timeStamp/1e3,.001),J.page.x=de.page.x/Ae,J.page.y=de.page.y/Ae,J.client.x=de.client.x/Ae,J.client.y=de.client.y/Ae,J.timeStamp=Ae),this._scopeFire("interactions:move",Je),U||this.simulation||(this.interacting()&&(Je.type=null,this.move(Je)),this.pointerWasMoved&&Y(this.coords.prev,this.coords.cur))}},{key:"move",value:function(o){o&&o.event||V(this.coords.delta),(o=le({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,p,m,w){var O=this.getPointerIndex(o);O===-1&&(O=this.updatePointer(o,p,m,!1));var U=/cancel$/i.test(p.type)?"cancel":"up";this._scopeFire("interactions:".concat(U),{pointer:o,pointerIndex:O,pointerInfo:this.pointers[O],event:p,eventTarget:m,type:U,curEventTarget:w,interaction:this}),this.simulation||this.end(p),this.removePointer(o,p)}},{key:"documentBlur",value:function(o){this.end(o),this._scopeFire("interactions:blur",{event:o,type:"blur",interaction:this})}},{key:"end",value:function(o){var p;this._ending=!0,o=o||this._latestPointer.event,this.interacting()&&(p=this._doPhase({event:o,interaction:this,phase:"end"})),this._ending=!1,p===!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 p=ke(o);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:ce(this.pointers,function(m){return m.id===p})}},{key:"getPointerInfo",value:function(o){return this.pointers[this.getPointerIndex(o)]}},{key:"updatePointer",value:function(o,p,m,w){var O,U,J,de=ke(o),Ae=this.getPointerIndex(o),fe=this.pointers[Ae];return w=w!==!1&&(w||/(down|start)$/i.test(p.type)),fe?fe.pointer=o:(fe=new nt(de,o,p,null,null),Ae=this.pointers.length,this.pointers.push(fe)),pe(this.coords.cur,this.pointers.map(function(Je){return Je.pointer}),this._now()),O=this.coords.delta,U=this.coords.prev,J=this.coords.cur,O.page.x=J.page.x-U.page.x,O.page.y=J.page.y-U.page.y,O.client.x=J.client.x-U.client.x,O.client.y=J.client.y-U.client.y,O.timeStamp=J.timeStamp-U.timeStamp,w&&(this.pointerIsDown=!0,fe.downTime=this.coords.cur.timeStamp,fe.downTarget=m,j(this.downPointer,o),this.interacting()||(Y(this.coords.start,this.coords.cur),Y(this.coords.prev,this.coords.cur),this.downEvent=p,this.pointerWasMoved=!1)),this._updateLatestPointer(o,p,m),this._scopeFire("interactions:update-pointer",{pointer:o,event:p,eventTarget:m,down:w,pointerInfo:fe,pointerIndex:Ae,interaction:this}),Ae}},{key:"removePointer",value:function(o,p){var m=this.getPointerIndex(o);if(m!==-1){var w=this.pointers[m];this._scopeFire("interactions:remove-pointer",{pointer:o,event:p,eventTarget:null,pointerIndex:m,pointerInfo:w,interaction:this}),this.pointers.splice(m,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(o,p,m){this._latestPointer.pointer=o,this._latestPointer.event=p,this._latestPointer.eventTarget=m}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(o,p,m,w){return new Tn(this,o,this.prepared.name,p,this.element,m,w)}},{key:"_fireEvent",value:function(o){var p;(p=this.interactable)==null||p.fire(o),(!this.prevEvent||o.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=o)}},{key:"_doPhase",value:function(o){var p=o.event,m=o.phase,w=o.preEnd,O=o.type,U=this.rect;if(U&&m==="move"&&(we(this.edges,U,this.coords.delta[this.interactable.options.deltaSource]),U.width=U.right-U.left,U.height=U.bottom-U.top),this._scopeFire("interactions:before-action-".concat(m),o)===!1)return!1;var J=o.iEvent=this._createPreparedEvent(p,m,w,O);return this._scopeFire("interactions:action-".concat(m),o),m==="start"&&(this.prevEvent=J),this._fireEvent(J),this._scopeFire("interactions:after-action-".concat(m),o),!0}},{key:"_now",value:function(){return Date.now()}}]),i}();function Bl(i){kr(i.interaction)}function kr(i){if(!function(p){return!(!p.offset.pending.x&&!p.offset.pending.y)}(i))return!1;var o=i.offset.pending;return $l(i.coords.cur,o),$l(i.coords.delta,o),we(i.edges,i.rect,o),o.x=0,o.y=0,!0}function er(i){var o=i.x,p=i.y;this.offset.pending.x+=o,this.offset.pending.y+=p,this.offset.total.x+=o,this.offset.total.y+=p}function $l(i,o){var p=i.page,m=i.client,w=o.x,O=o.y;p.x+=w,p.y+=O,m.x+=w,m.y+=O}Mn.offsetBy="";var Pl={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(i){i.Interaction.prototype.offsetBy=er},listeners:{"interactions:new":function(i){i.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(i){return function(o){o.pointerIsDown&&($l(o.coords.cur,o.offset.total),o.offset.pending.x=0,o.offset.pending.y=0)}(i.interaction)},"interactions:before-action-start":Bl,"interactions:before-action-move":Bl,"interactions:before-action-end":function(i){var o=i.interaction;if(kr(o))return o.move({offset:!0}),o.end(),!1},"interactions:stop":function(i){var o=i.interaction;o.offset.total.x=0,o.offset.total.y=0,o.offset.pending.x=0,o.offset.pending.y=0}}},Hl=Pl,hr=function(){function i(o){u(this,i),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 h(i,[{key:"start",value:function(o){var p=this.interaction,m=rr(p);if(!m||!m.enabled)return!1;var w=p.coords.velocity.client,O=el(w.x,w.y),U=this.modification||(this.modification=new Dr(p));if(U.copyFrom(p.modification),this.t0=p._now(),this.allowResume=m.allowResume,this.v0=O,this.currentOffset={x:0,y:0},this.startCoords=p.coords.cur.page,this.modifierArg=U.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-p.coords.cur.timeStamp<50&&O>m.minSpeed&&O>m.endSpeed)this.startInertia();else{if(U.result=U.setAll(this.modifierArg),!U.result.changed)return!1;this.startSmoothEnd()}return p.modification.result.rect=null,p.offsetBy(this.targetOffset),p._doPhase({interaction:p,event:o,phase:"inertiastart"}),p.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),p.modification.result.rect=null,this.active=!0,p.simulation=this,!0}},{key:"startInertia",value:function(){var o=this,p=this.interaction.coords.velocity.client,m=rr(this.interaction),w=m.resistance,O=-Math.log(m.endSpeed/this.v0)/w;this.targetOffset={x:(p.x-O)/w,y:(p.y-O)/w},this.te=O,this.lambda_v0=w/this.v0,this.one_ve_v0=1-m.endSpeed/this.v0;var U=this.modification,J=this.modifierArg;J.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},U.result=U.setAll(J),U.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+U.result.delta.x,y:this.targetOffset.y+U.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 p=this;this.timeout=Ge.request(function(){p.active&&o()})}},{key:"inertiaTick",value:function(){var o,p,m,w,O,U,J,de=this,Ae=this.interaction,fe=rr(Ae).resistance,Je=(Ae._now()-this.t0)/1e3;if(Je<this.te){var Ba,Qa=1-(Math.exp(-fe*Je)-this.lambda_v0)/this.one_ve_v0;this.isModified?(o=0,p=0,m=this.targetOffset.x,w=this.targetOffset.y,O=this.modifiedOffset.x,U=this.modifiedOffset.y,Ba={x:Rr(J=Qa,o,m,O),y:Rr(J,p,w,U)}):Ba={x:this.targetOffset.x*Qa,y:this.targetOffset.y*Qa};var Ja={x:Ba.x-this.currentOffset.x,y:Ba.y-this.currentOffset.y};this.currentOffset.x+=Ja.x,this.currentOffset.y+=Ja.y,Ae.offsetBy(Ja),Ae.move(),this.onNextFrame(function(){return de.inertiaTick()})}else Ae.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var o=this,p=this.interaction,m=p._now()-this.t0,w=rr(p).smoothEndDuration;if(m<w){var O={x:Ur(m,0,this.targetOffset.x,w),y:Ur(m,0,this.targetOffset.y,w)},U={x:O.x-this.currentOffset.x,y:O.y-this.currentOffset.y};this.currentOffset.x+=U.x,this.currentOffset.y+=U.y,p.offsetBy(U),p.move({skipModifiers:this.modifierCount}),this.onNextFrame(function(){return o.smoothEndTick()})}else p.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(o){var p=o.pointer,m=o.event,w=o.eventTarget,O=this.interaction;O.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),O.updatePointer(p,m,w,!0),O._doPhase({interaction:O,event:m,phase:"resume"}),Y(O.coords.prev,O.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,Ge.cancel(this.timeout)}}]),i}();function rr(i){var o=i.interactable,p=i.prepared;return o&&o.options&&p.name&&o.options[p.name].inertia}var Pr={id:"inertia",before:["modifiers","actions"],install:function(i){var o=i.defaults;i.usePlugin(Hl),i.usePlugin(dn),i.actions.phases.inertiastart=!0,i.actions.phases.resume=!0,o.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(i){var o=i.interaction;o.inertia=new hr(o)},"interactions:before-action-end":function(i){var o=i.interaction,p=i.event;return(!o._interacting||o.simulation||!o.inertia.start(p))&&null},"interactions:down":function(i){var o=i.interaction,p=i.eventTarget,m=o.inertia;if(m.active)for(var w=p;g.element(w);){if(w===o.element){m.resume(i);break}w=Ca(w)}},"interactions:stop":function(i){var o=i.interaction.inertia;o.active&&o.stop()},"interactions:before-action-resume":function(i){var o=i.interaction.modification;o.stop(i),o.start(i,i.interaction.coords.cur.page),o.applyToInteraction(i)},"interactions:before-action-inertiastart":function(i){return i.interaction.modification.setAndApply(i)},"interactions:action-resume":sr,"interactions:action-inertiastart":sr,"interactions:after-action-inertiastart":function(i){return i.interaction.modification.restoreInteractionCoords(i)},"interactions:after-action-resume":function(i){return i.interaction.modification.restoreInteractionCoords(i)}}};function Rr(i,o,p,m){var w=1-i;return w*w*o+2*w*i*p+i*i*m}function Ur(i,o,p,m){return-p*(i/=m)*(i-2)+o}var wn=Pr;function Cn(i,o){for(var p=0;p<o.length;p++){var m=o[p];if(i.immediatePropagationStopped)break;m(i)}}var zn=function(){function i(o){u(this,i),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=le({},o||{})}return h(i,[{key:"fire",value:function(o){var p,m=this.global;(p=this.types[o.type])&&Cn(o,p),!o.propagationStopped&&m&&(p=m[o.type])&&Cn(o,p)}},{key:"on",value:function(o,p){var m=qe(o,p);for(o in m)this.types[o]=Fe(this.types[o]||[],m[o])}},{key:"off",value:function(o,p){var m=qe(o,p);for(o in m){var w=this.types[o];if(w&&w.length)for(var O=0,U=m[o];O<U.length;O++){var J=U[O],de=w.indexOf(J);de!==-1&&w.splice(de,1)}}}},{key:"getRect",value:function(o){return null}}]),i}(),tt=function(){function i(o){u(this,i),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=o,j(this,o)}return h(i,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),i}();function yn(i){return g.object(i)?{capture:!!i.capture,passive:!!i.passive}:{capture:!!i,passive:!1}}function En(i,o){return i===o||(typeof i=="boolean"?!!o.capture===i&&!o.passive:!!i.capture==!!o.capture&&!!i.passive==!!o.passive)}var On={id:"events",install:function(i){var o,p=[],m={},w=[],O={add:U,remove:J,addDelegate:function(fe,Je,Ba,Qa,Ja){var ja=yn(Ja);if(!m[Ba]){m[Ba]=[];for(var xl=0;xl<w.length;xl++){var pl=w[xl];U(pl,Ba,de),U(pl,Ba,Ae,!0)}}var Ml=m[Ba],Ol=ga(Ml,function(Yl){return Yl.selector===fe&&Yl.context===Je});Ol||(Ol={selector:fe,context:Je,listeners:[]},Ml.push(Ol)),Ol.listeners.push({func:Qa,options:ja})},removeDelegate:function(fe,Je,Ba,Qa,Ja){var ja,xl=yn(Ja),pl=m[Ba],Ml=!1;if(pl)for(ja=pl.length-1;ja>=0;ja--){var Ol=pl[ja];if(Ol.selector===fe&&Ol.context===Je){for(var Yl=Ol.listeners,Vl=Yl.length-1;Vl>=0;Vl--){var jl=Yl[Vl];if(jl.func===Qa&&En(jl.options,xl)){Yl.splice(Vl,1),Yl.length||(pl.splice(ja,1),J(Je,Ba,de),J(Je,Ba,Ae,!0)),Ml=!0;break}}if(Ml)break}}},delegateListener:de,delegateUseCapture:Ae,delegatedEvents:m,documents:w,targets:p,supportsOptions:!1,supportsPassive:!1};function U(fe,Je,Ba,Qa){if(fe.addEventListener){var Ja=yn(Qa),ja=ga(p,function(xl){return xl.eventTarget===fe});ja||(ja={eventTarget:fe,events:{}},p.push(ja)),ja.events[Je]||(ja.events[Je]=[]),ga(ja.events[Je],function(xl){return xl.func===Ba&&En(xl.options,Ja)})||(fe.addEventListener(Je,Ba,O.supportsOptions?Ja:Ja.capture),ja.events[Je].push({func:Ba,options:Ja}))}}function J(fe,Je,Ba,Qa){if(fe.addEventListener&&fe.removeEventListener){var Ja=ce(p,function(Or){return Or.eventTarget===fe}),ja=p[Ja];if(ja&&ja.events)if(Je!=="all"){var xl=!1,pl=ja.events[Je];if(pl){if(Ba==="all"){for(var Ml=pl.length-1;Ml>=0;Ml--){var Ol=pl[Ml];J(fe,Je,Ol.func,Ol.options)}return}for(var Yl=yn(Qa),Vl=0;Vl<pl.length;Vl++){var jl=pl[Vl];if(jl.func===Ba&&En(jl.options,Yl)){fe.removeEventListener(Je,Ba,O.supportsOptions?Yl:Yl.capture),pl.splice(Vl,1),pl.length===0&&(delete ja.events[Je],xl=!0);break}}}xl&&!Object.keys(ja.events).length&&p.splice(Ja,1)}else for(Je in ja.events)ja.events.hasOwnProperty(Je)&&J(fe,Je,"all")}}function de(fe,Je){for(var Ba=yn(Je),Qa=new tt(fe),Ja=m[fe.type],ja=Le(fe)[0],xl=ja;g.element(xl);){for(var pl=0;pl<Ja.length;pl++){var Ml=Ja[pl],Ol=Ml.selector,Yl=Ml.context;if(oe(xl,Ol)&&ue(Yl,ja)&&ue(Yl,xl)){var Vl=Ml.listeners;Qa.currentTarget=xl;for(var jl=0;jl<Vl.length;jl++){var Or=Vl[jl];En(Or.options,Ba)&&Or.func(Qa)}}}xl=Ca(xl)}}function Ae(fe){return de(fe,!0)}return(o=i.document)==null||o.createElement("div").addEventListener("test",null,{get capture(){return O.supportsOptions=!0},get passive(){return O.supportsPassive=!0}}),i.events=O,O}},qr={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(i){for(var o=0,p=qr.methodOrder;o<p.length;o++){var m=p[o],w=qr[m](i);if(w)return w}return null},simulationResume:function(i){var o=i.pointerType,p=i.eventType,m=i.eventTarget,w=i.scope;if(!/down|start/i.test(p))return null;for(var O=0,U=w.interactions.list;O<U.length;O++){var J=U[O],de=m;if(J.simulation&&J.simulation.allowResume&&J.pointerType===o)for(;de;){if(de===J.element)return J;de=Ca(de)}}return null},mouseOrPen:function(i){var o,p=i.pointerId,m=i.pointerType,w=i.eventType,O=i.scope;if(m!=="mouse"&&m!=="pen")return null;for(var U=0,J=O.interactions.list;U<J.length;U++){var de=J[U];if(de.pointerType===m){if(de.simulation&&!sn(de,p))continue;if(de.interacting())return de;o||(o=de)}}if(o)return o;for(var Ae=0,fe=O.interactions.list;Ae<fe.length;Ae++){var Je=fe[Ae];if(!(Je.pointerType!==m||/down/i.test(w)&&Je.simulation))return Je}return null},hasPointer:function(i){for(var o=i.pointerId,p=0,m=i.scope.interactions.list;p<m.length;p++){var w=m[p];if(sn(w,o))return w}return null},idle:function(i){for(var o=i.pointerType,p=0,m=i.scope.interactions.list;p<m.length;p++){var w=m[p];if(w.pointers.length===1){var O=w.interactable;if(O&&(!O.options.gesture||!O.options.gesture.enabled))continue}else if(w.pointers.length>=2)continue;if(!w.interacting()&&o===w.pointerType)return w}return null}};function sn(i,o){return i.pointers.some(function(p){return p.id===o})}var qn=qr,Mr=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Kn(i,o){return function(p){var m=o.interactions.list,w=da(p),O=Le(p),U=O[0],J=O[1],de=[];if(/^touch/.test(p.type)){o.prevTouchTime=o.now();for(var Ae=0,fe=p.changedTouches;Ae<fe.length;Ae++){var Je=fe[Ae],Ba={pointer:Je,pointerId:ke(Je),pointerType:w,eventType:p.type,eventTarget:U,curEventTarget:J,scope:o},Qa=fn(Ba);de.push([Ba.pointer,Ba.eventTarget,Ba.curEventTarget,Qa])}}else{var Ja=!1;if(!Z.supportsPointerEvent&&/mouse/.test(p.type)){for(var ja=0;ja<m.length&&!Ja;ja++)Ja=m[ja].pointerType!=="mouse"&&m[ja].pointerIsDown;Ja=Ja||o.now()-o.prevTouchTime<500||p.timeStamp===0}if(!Ja){var xl={pointer:p,pointerId:ke(p),pointerType:w,eventType:p.type,curEventTarget:J,eventTarget:U,scope:o},pl=fn(xl);de.push([xl.pointer,xl.eventTarget,xl.curEventTarget,pl])}}for(var Ml=0;Ml<de.length;Ml++){var Ol=de[Ml],Yl=Ol[0],Vl=Ol[1],jl=Ol[2];Ol[3][i](Yl,p,Vl,jl)}}}function fn(i){var o=i.pointerType,p=i.scope,m={interaction:qn.search(i),searchDetails:i};return p.fire("interactions:find",m),m.interaction||p.interactions.new({pointerType:o})}function Dt(i,o){var p=i.doc,m=i.scope,w=i.options,O=m.interactions.docEvents,U=m.events,J=U[o];for(var de in m.browser.isIOS&&!w.events&&(w.events={passive:!1}),U.delegatedEvents)J(p,de,U.delegateListener),J(p,de,U.delegateUseCapture,!0);for(var Ae=w&&w.events,fe=0;fe<O.length;fe++){var Je=O[fe];J(p,Je.type,Je.listener,Ae)}}var No={id:"core/interactions",install:function(i){for(var o={},p=0;p<Mr.length;p++){var m=Mr[p];o[m]=Kn(m,i)}var w,O=Z.pEventTypes;function U(){for(var J=0,de=i.interactions.list;J<de.length;J++){var Ae=de[J];if(Ae.pointerIsDown&&Ae.pointerType==="touch"&&!Ae._interacting)for(var fe=function(){var Qa=Ba[Je];i.documents.some(function(Ja){return ue(Ja.doc,Qa.downTarget)})||Ae.removePointer(Qa.pointer,Qa.event)},Je=0,Ba=Ae.pointers;Je<Ba.length;Je++)fe()}}(w=te.PointerEvent?[{type:O.down,listener:U},{type:O.down,listener:o.pointerDown},{type:O.move,listener:o.pointerMove},{type:O.up,listener:o.pointerUp},{type:O.cancel,listener:o.pointerUp}]:[{type:"mousedown",listener:o.pointerDown},{type:"mousemove",listener:o.pointerMove},{type:"mouseup",listener:o.pointerUp},{type:"touchstart",listener:U},{type:"touchstart",listener:o.pointerDown},{type:"touchmove",listener:o.pointerMove},{type:"touchend",listener:o.pointerUp},{type:"touchcancel",listener:o.pointerUp}]).push({type:"blur",listener:function(J){for(var de=0,Ae=i.interactions.list;de<Ae.length;de++)Ae[de].documentBlur(J)}}),i.prevTouchTime=0,i.Interaction=function(J){y(Ae,J);var de=L(Ae);function Ae(){return u(this,Ae),de.apply(this,arguments)}return h(Ae,[{key:"pointerMoveTolerance",get:function(){return i.interactions.pointerMoveTolerance},set:function(fe){i.interactions.pointerMoveTolerance=fe}},{key:"_now",value:function(){return i.now()}}]),Ae}(Un),i.interactions={list:[],new:function(J){J.scopeFire=function(Ae,fe){return i.fire(Ae,fe)};var de=new i.Interaction(J);return i.interactions.list.push(de),de},listeners:o,docEvents:w,pointerMoveTolerance:1},i.usePlugin(Xr)},listeners:{"scope:add-document":function(i){return Dt(i,"add")},"scope:remove-document":function(i){return Dt(i,"remove")},"interactable:unset":function(i,o){for(var p=i.interactable,m=o.interactions.list.length-1;m>=0;m--){var w=o.interactions.list[m];w.interactable===p&&(w.stop(),o.fire("interactions:destroy",{interaction:w}),w.destroy(),o.interactions.list.length>2&&o.interactions.list.splice(m,1))}}},onDocSignal:Dt,doOnInteractions:Kn,methodNames:Mr},To=No,gn=function(i){return i[i.On=0]="On",i[i.Off=1]="Off",i}(gn||{}),Ao=function(){function i(o,p,m,w){u(this,i),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new zn,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=p.actions,this.target=o,this._context=p.context||m,this._win=$($a(o)?this._context:o),this._doc=this._win.document,this._scopeEvents=w,this.set(p)}return h(i,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(o,p){return g.func(p.onstart)&&this.on("".concat(o,"start"),p.onstart),g.func(p.onmove)&&this.on("".concat(o,"move"),p.onmove),g.func(p.onend)&&this.on("".concat(o,"end"),p.onend),g.func(p.oninertiastart)&&this.on("".concat(o,"inertiastart"),p.oninertiastart),this}},{key:"updatePerActionListeners",value:function(o,p,m){var w,O=this,U=(w=this._actions.map[o])==null?void 0:w.filterEventType,J=function(de){return(U==null||U(de))&&lr(de,O._actions)};(g.array(p)||g.object(p))&&this._onOff(gn.Off,o,p,void 0,J),(g.array(m)||g.object(m))&&this._onOff(gn.On,o,m,void 0,J)}},{key:"setPerAction",value:function(o,p){var m=this._defaults;for(var w in p){var O=w,U=this.options[o],J=p[O];O==="listeners"&&this.updatePerActionListeners(o,U.listeners,J),g.array(J)?U[O]=ma(J):g.plainObject(J)?(U[O]=le(U[O]||{},Tr(J)),g.object(m.perAction[O])&&"enabled"in m.perAction[O]&&(U[O].enabled=J.enabled!==!1)):g.bool(J)&&g.object(m.perAction[O])?U[O].enabled=J:U[O]=J}}},{key:"getRect",value:function(o){return o=o||(g.element(this.target)?this.target:null),g.string(this.target)&&(o=o||this._context.querySelector(this.target)),ra(o)}},{key:"rectChecker",value:function(o){var p=this;return g.func(o)?(this.getRect=function(m){var w=le({},o.apply(p,m));return"width"in w||(w.width=w.right-w.left,w.height=w.bottom-w.top),w},this):o===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(o,p){if($a(p)||g.object(p)){for(var m in this.options[o]=p,this._actions.map)this.options[m][o]=p;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 g.string(o)?Array.from(this._context.querySelectorAll(o)):g.func(o)&&o.getAllElements?o.getAllElements():g.element(o)?[o]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(o){return this._context===o.ownerDocument||ue(this._context,o)}},{key:"testIgnoreAllow",value:function(o,p,m){return!this.testIgnore(o.ignoreFrom,p,m)&&this.testAllow(o.allowFrom,p,m)}},{key:"testAllow",value:function(o,p,m){return!o||!!g.element(m)&&(g.string(o)?ve(m,o,p):!!g.element(o)&&ue(o,m))}},{key:"testIgnore",value:function(o,p,m){return!(!o||!g.element(m))&&(g.string(o)?ve(m,o,p):!!g.element(o)&&ue(o,m))}},{key:"fire",value:function(o){return this.events.fire(o),this}},{key:"_onOff",value:function(o,p,m,w,O){g.object(p)&&!g.array(p)&&(w=m,m=null);var U=qe(p,m,O);for(var J in U){J==="wheel"&&(J=Z.wheelEvent);for(var de=0,Ae=U[J];de<Ae.length;de++){var fe=Ae[de];lr(J,this._actions)?this.events[o===gn.On?"on":"off"](J,fe):g.string(this.target)?this._scopeEvents[o===gn.On?"addDelegate":"removeDelegate"](this.target,this._context,J,fe,w):this._scopeEvents[o===gn.On?"add":"remove"](this.target,J,fe,w)}}return this}},{key:"on",value:function(o,p,m){return this._onOff(gn.On,o,p,m)}},{key:"off",value:function(o,p,m){return this._onOff(gn.Off,o,p,m)}},{key:"set",value:function(o){var p=this._defaults;for(var m in g.object(o)||(o={}),this.options=Tr(p.base),this._actions.methodDict){var w=m,O=this._actions.methodDict[w];this.options[w]={},this.setPerAction(w,le(le({},p.perAction),p.actions[w])),this[O](o[w])}for(var U in o)U!=="getRect"?g.func(this[U])&&this[U](o[U]):this.rectChecker(o.getRect);return this}},{key:"unset",value:function(){if(g.string(this.target))for(var o in this._scopeEvents.delegatedEvents)for(var p=this._scopeEvents.delegatedEvents[o],m=p.length-1;m>=0;m--){var w=p[m],O=w.selector,U=w.context,J=w.listeners;O===this.target&&U===this._context&&p.splice(m,1);for(var de=J.length-1;de>=0;de--)this._scopeEvents.removeDelegate(this.target,this._context,o,J[de][0],J[de][1])}else this._scopeEvents.remove(this.target,"all")}}]),i}(),jt=function(){function i(o){var p=this;u(this,i),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=o,o.addListeners({"interactable:unset":function(m){var w=m.interactable,O=w.target,U=g.string(O)?p.selectorMap[O]:O[p.scope.id],J=ce(U,function(de){return de===w});U.splice(J,1)}})}return h(i,[{key:"new",value:function(o,p){p=le(p||{},{actions:this.scope.actions});var m=new this.scope.Interactable(o,p,this.scope.document,this.scope.events);return this.scope.addDocument(m._doc),this.list.push(m),g.string(o)?(this.selectorMap[o]||(this.selectorMap[o]=[]),this.selectorMap[o].push(m)):(m.target[this.scope.id]||Object.defineProperty(o,this.scope.id,{value:[],configurable:!0}),o[this.scope.id].push(m)),this.scope.fire("interactable:new",{target:o,options:p,interactable:m,win:this.scope._win}),m}},{key:"getExisting",value:function(o,p){var m=p&&p.context||this.scope.document,w=g.string(o),O=w?this.selectorMap[o]:o[this.scope.id];if(O)return ga(O,function(U){return U._context===m&&(w||U.inContext(o))})}},{key:"forEachMatch",value:function(o,p){for(var m=0,w=this.list;m<w.length;m++){var O=w[m],U=void 0;if((g.string(O.target)?g.element(o)&&oe(o,O.target):o===O.target)&&O.inContext(o)&&(U=p(O)),U!==void 0)return U}}}]),i}(),Mo=function(){function i(){var o=this;u(this,i),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=Z,this.defaults=Tr(pn),this.Eventable=zn,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(m){var w=function O(U,J){var de=m.interactables.getExisting(U,J);return de||((de=m.interactables.new(U,J)).events.global=O.globalEvents),de};return w.getPointerAverage=Ve,w.getTouchBBox=ca,w.getTouchDistance=ya,w.getTouchAngle=Oe,w.getElementRect=ra,w.getElementClientRect=_e,w.matchesSelector=oe,w.closest=Ue,w.globalEvents={},w.version="1.10.27",w.scope=m,w.use=function(O,U){return this.scope.usePlugin(O,U),this},w.isSet=function(O,U){return!!this.scope.interactables.get(O,U&&U.context)},w.on=wa(function(O,U,J){if(g.string(O)&&O.search(" ")!==-1&&(O=O.trim().split(/ +/)),g.array(O)){for(var de=0,Ae=O;de<Ae.length;de++){var fe=Ae[de];this.on(fe,U,J)}return this}if(g.object(O)){for(var Je in O)this.on(Je,O[Je],U);return this}return lr(O,this.scope.actions)?this.globalEvents[O]?this.globalEvents[O].push(U):this.globalEvents[O]=[U]:this.scope.events.add(this.scope.document,O,U,{options:J}),this},"The interact.on() method is being deprecated"),w.off=wa(function(O,U,J){if(g.string(O)&&O.search(" ")!==-1&&(O=O.trim().split(/ +/)),g.array(O)){for(var de=0,Ae=O;de<Ae.length;de++){var fe=Ae[de];this.off(fe,U,J)}return this}if(g.object(O)){for(var Je in O)this.off(Je,O[Je],U);return this}var Ba;return lr(O,this.scope.actions)?O in this.globalEvents&&(Ba=this.globalEvents[O].indexOf(U))!==-1&&this.globalEvents[O].splice(Ba,1):this.scope.events.remove(this.scope.document,O,U,J),this},"The interact.off() method is being deprecated"),w.debug=function(){return this.scope},w.supportsTouch=function(){return Z.supportsTouch},w.supportsPointerEvent=function(){return Z.supportsPointerEvent},w.stop=function(){for(var O=0,U=this.scope.interactions.list;O<U.length;O++)U[O].stop();return this},w.pointerMoveTolerance=function(O){return g.number(O)?(this.scope.interactions.pointerMoveTolerance=O,this):this.scope.interactions.pointerMoveTolerance},w.addDocument=function(O,U){this.scope.addDocument(O,U)},w.removeDocument=function(O){this.scope.removeDocument(O)},w}(this),this.InteractEvent=Tn,this.Interactable=void 0,this.interactables=new jt(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(m){return o.removeDocument(m.target)};var p=this;this.Interactable=function(m){y(O,m);var w=L(O);function O(){return u(this,O),w.apply(this,arguments)}return h(O,[{key:"_defaults",get:function(){return p.defaults}},{key:"set",value:function(U){return _(c(O.prototype),"set",this).call(this,U),p.fire("interactable:set",{options:U,interactable:this}),this}},{key:"unset",value:function(){_(c(O.prototype),"unset",this).call(this);var U=p.interactables.list.indexOf(this);U<0||(p.interactables.list.splice(U,1),p.fire("interactable:unset",{interactable:this}))}}]),O}(Ao)}return h(i,[{key:"addListeners",value:function(o,p){this.listenerMaps.push({id:p,map:o})}},{key:"fire",value:function(o,p){for(var m=0,w=this.listenerMaps;m<w.length;m++){var O=w[m].map[o];if(O&&O(p,this,o)===!1)return!1}}},{key:"init",value:function(o){return this.isInitialized?this:function(p,m){return p.isInitialized=!0,g.window(m)&&S(m),te.init(m),Z.init(m),Ge.init(m),p.window=m,p.document=m.document,p.usePlugin(To),p.usePlugin(On),p}(this,o)}},{key:"pluginIsInstalled",value:function(o){var p=o.id;return p?!!this._plugins.map[p]:this._plugins.list.indexOf(o)!==-1}},{key:"usePlugin",value:function(o,p){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,p),o.listeners&&o.before){for(var m=0,w=this.listenerMaps.length,O=o.before.reduce(function(J,de){return J[de]=!0,J[Ht(de)]=!0,J},{});m<w;m++){var U=this.listenerMaps[m].id;if(U&&(O[U]||O[Ht(U)]))break}this.listenerMaps.splice(m,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,p){if(this.getDocIndex(o)!==-1)return!1;var m=$(o);p=p?le({},p):{},this.documents.push({doc:o,options:p}),this.events.documents.push(o),o!==this.document&&this.events.add(m,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:o,window:m,scope:this,options:p})}},{key:"removeDocument",value:function(o){var p=this.getDocIndex(o),m=$(o),w=this.documents[p].options;this.events.remove(m,"unload",this.onWindowUnload),this.documents.splice(p,1),this.events.documents.splice(p,1),this.fire("scope:remove-document",{doc:o,window:m,scope:this,options:w})}},{key:"getDocIndex",value:function(o){for(var p=0;p<this.documents.length;p++)if(this.documents[p].doc===o)return p;return-1}},{key:"getDocOptions",value:function(o){var p=this.getDocIndex(o);return p===-1?null:this.documents[p].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),i}();function Ht(i){return i&&i.replace(/\/.*$/,"")}var Ut=new Mo,zr=Ut.interactStatic,Bt=typeof globalThis<"u"?globalThis:window;Ut.init(Bt);var zo=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(i){var o=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(m){var w=m[0],O=m[1];return w in i||O in i}),p=function(m,w){for(var O=i.range,U=i.limits,J=U===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:U,de=i.offset,Ae=de===void 0?{x:0,y:0}:de,fe={range:O,grid:i,x:null,y:null},Je=0;Je<o.length;Je++){var Ba=o[Je],Qa=Ba[0],Ja=Ba[1],ja=Math.round((m-Ae.x)/i[Qa]),xl=Math.round((w-Ae.y)/i[Ja]);fe[Qa]=Math.max(J.left,Math.min(J.right,ja*i[Qa]+Ae.x)),fe[Ja]=Math.max(J.top,Math.min(J.bottom,xl*i[Ja]+Ae.y))}return fe};return p.grid=i,p.coordFields=o,p}}),Nt={id:"snappers",install:function(i){var o=i.interactStatic;o.snappers=le(o.snappers||{},zo),o.createSnapGrid=o.snappers.grid}},qt=Nt,Kt={start:function(i){var o=i.state,p=i.rect,m=i.edges,w=i.pageCoords,O=o.options,U=O.ratio,J=O.enabled,de=o.options,Ae=de.equalDelta,fe=de.modifiers;U==="preserve"&&(U=p.width/p.height),o.startCoords=le({},w),o.startRect=le({},p),o.ratio=U,o.equalDelta=Ae;var Je=o.linkedEdges={top:m.top||m.left&&!m.bottom,left:m.left||m.top&&!m.right,bottom:m.bottom||m.right&&!m.top,right:m.right||m.bottom&&!m.left};if(o.xIsPrimaryAxis=!(!m.left&&!m.right),o.equalDelta){var Ba=(Je.left?1:-1)*(Je.top?1:-1);o.edgeSign={x:Ba,y:Ba}}else o.edgeSign={x:Je.left?-1:1,y:Je.top?-1:1};if(J!==!1&&le(m,Je),fe!=null&&fe.length){var Qa=new Dr(i.interaction);Qa.copyFrom(i.interaction.modification),Qa.prepareStates(fe),o.subModification=Qa,Qa.startAll(t({},i))}},set:function(i){var o=i.state,p=i.rect,m=i.coords,w=o.linkedEdges,O=le({},m),U=o.equalDelta?Oo:Io;if(le(i.edges,w),U(o,o.xIsPrimaryAxis,m,p),!o.subModification)return null;var J=le({},p);we(w,J,{x:m.x-O.x,y:m.y-O.y});var de=o.subModification.setAll(t(t({},i),{},{rect:J,edges:w,pageCoords:m,prevCoords:m,prevRect:J})),Ae=de.delta;return de.changed&&(U(o,Math.abs(Ae.x)>Math.abs(Ae.y),de.coords,de.rect),le(m,de.coords)),de.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function Oo(i,o,p){var m=i.startCoords,w=i.edgeSign;o?p.y=m.y+(p.x-m.x)*w.y:p.x=m.x+(p.y-m.y)*w.x}function Io(i,o,p,m){var w=i.startRect,O=i.startCoords,U=i.ratio,J=i.edgeSign;if(o){var de=m.width/U;p.y=O.y+(de-w.height)*J.y}else{var Ae=m.height*U;p.x=O.x+(Ae-w.width)*J.x}}var Lo=wr(Kt,"aspectRatio"),In=function(){};In._defaults={};var Wn=In;function hn(i,o,p){return g.func(i)?Ie(i,o.interactable,o.element,[p.x,p.y,o]):Ie(i,o.interactable,o.element)}var ot={start:function(i){var o=i.rect,p=i.startOffset,m=i.state,w=i.interaction,O=i.pageCoords,U=m.options,J=U.elementRect,de=le({left:0,top:0,right:0,bottom:0},U.offset||{});if(o&&J){var Ae=hn(U.restriction,w,O);if(Ae){var fe=Ae.right-Ae.left-o.width,Je=Ae.bottom-Ae.top-o.height;fe<0&&(de.left+=fe,de.right+=fe),Je<0&&(de.top+=Je,de.bottom+=Je)}de.left+=p.left-o.width*J.left,de.top+=p.top-o.height*J.top,de.right+=p.right-o.width*(1-J.right),de.bottom+=p.bottom-o.height*(1-J.bottom)}m.offset=de},set:function(i){var o=i.coords,p=i.interaction,m=i.state,w=m.options,O=m.offset,U=hn(w.restriction,p,o);if(U){var J=function(de){return!de||"left"in de&&"top"in de||((de=le({},de)).left=de.x||0,de.top=de.y||0,de.right=de.right||de.left+de.width,de.bottom=de.bottom||de.top+de.height),de}(U);o.x=Math.max(Math.min(J.right-O.right,o.x),J.left+O.left),o.y=Math.max(Math.min(J.bottom-O.bottom,o.y),J.top+O.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},Vo=wr(ot,"restrict"),Wt={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Yt={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Tt(i,o){for(var p=0,m=["top","left","bottom","right"];p<m.length;p++){var w=m[p];w in i||(i[w]=o[w])}return i}var vn={noInner:Wt,noOuter:Yt,start:function(i){var o,p=i.interaction,m=i.startOffset,w=i.state,O=w.options;O&&(o=ka(hn(O.offset,p,p.coords.start.page))),o=o||{x:0,y:0},w.offset={top:o.y+m.top,left:o.x+m.left,bottom:o.y-m.bottom,right:o.x-m.right}},set:function(i){var o=i.coords,p=i.edges,m=i.interaction,w=i.state,O=w.offset,U=w.options;if(p){var J=le({},o),de=hn(U.inner,m,J)||{},Ae=hn(U.outer,m,J)||{};Tt(de,Wt),Tt(Ae,Yt),p.top?o.y=Math.min(Math.max(Ae.top+O.top,J.y),de.top+O.top):p.bottom&&(o.y=Math.max(Math.min(Ae.bottom+O.bottom,J.y),de.bottom+O.bottom)),p.left?o.x=Math.min(Math.max(Ae.left+O.left,J.x),de.left+O.left):p.right&&(o.x=Math.max(Math.min(Ae.right+O.right,J.x),de.right+O.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},Jt=wr(vn,"restrictEdges"),Gt=le({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(i){}},ot.defaults),Yn=wr({start:ot.start,set:ot.set,defaults:Gt},"restrictRect"),Xt={width:-1/0,height:-1/0},Zt={width:1/0,height:1/0},Ro=wr({start:function(i){return vn.start(i)},set:function(i){var o=i.interaction,p=i.state,m=i.rect,w=i.edges,O=p.options;if(w){var U=Re(hn(O.min,o,i.coords))||Xt,J=Re(hn(O.max,o,i.coords))||Zt;p.options={endOnly:O.endOnly,inner:le({},vn.noInner),outer:le({},vn.noOuter)},w.top?(p.options.inner.top=m.bottom-U.height,p.options.outer.top=m.bottom-J.height):w.bottom&&(p.options.inner.bottom=m.top+U.height,p.options.outer.bottom=m.top+J.height),w.left?(p.options.inner.left=m.right-U.width,p.options.outer.left=m.right-J.width):w.right&&(p.options.inner.right=m.left+U.width,p.options.outer.right=m.left+J.width),vn.set(i),p.options=O}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),At={start:function(i){var o,p=i.interaction,m=i.interactable,w=i.element,O=i.rect,U=i.state,J=i.startOffset,de=U.options,Ae=de.offsetWithOrigin?function(Ba){var Qa=Ba.interaction.element,Ja=ka(Ie(Ba.state.options.origin,null,null,[Qa])),ja=Ja||ze(Ba.interactable,Qa,Ba.interaction.prepared.name);return ja}(i):{x:0,y:0};if(de.offset==="startCoords")o={x:p.coords.start.page.x,y:p.coords.start.page.y};else{var fe=Ie(de.offset,m,w,[p]);(o=ka(fe)||{x:0,y:0}).x+=Ae.x,o.y+=Ae.y}var Je=de.relativePoints;U.offsets=O&&Je&&Je.length?Je.map(function(Ba,Qa){return{index:Qa,relativePoint:Ba,x:J.left-O.width*Ba.x+o.x,y:J.top-O.height*Ba.y+o.y}}):[{index:0,relativePoint:null,x:o.x,y:o.y}]},set:function(i){var o=i.interaction,p=i.coords,m=i.state,w=m.options,O=m.offsets,U=ze(o.interactable,o.element,o.prepared.name),J=le({},p),de=[];w.offsetWithOrigin||(J.x-=U.x,J.y-=U.y);for(var Ae=0,fe=O;Ae<fe.length;Ae++)for(var Je=fe[Ae],Ba=J.x-Je.x,Qa=J.y-Je.y,Ja=0,ja=w.targets.length;Ja<ja;Ja++){var xl=w.targets[Ja],pl=void 0;(pl=g.func(xl)?xl(Ba,Qa,o._proxy,Je,Ja):xl)&&de.push({x:(g.number(pl.x)?pl.x:Ba)+Je.x,y:(g.number(pl.y)?pl.y:Qa)+Je.y,range:g.number(pl.range)?pl.range:w.range,source:xl,index:Ja,offset:Je})}for(var Ml={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},Ol=0;Ol<de.length;Ol++){var Yl=de[Ol],Vl=Yl.range,jl=Yl.x-J.x,Or=Yl.y-J.y,vr=el(jl,Or),$r=vr<=Vl;Vl===1/0&&Ml.inRange&&Ml.range!==1/0&&($r=!1),Ml.target&&!($r?Ml.inRange&&Vl!==1/0?vr/Vl<Ml.distance/Ml.range:Vl===1/0&&Ml.range!==1/0||vr<Ml.distance:!Ml.inRange&&vr<Ml.distance)||(Ml.target=Yl,Ml.distance=vr,Ml.range=Vl,Ml.inRange=$r,Ml.delta.x=jl,Ml.delta.y=Or)}return Ml.inRange&&(p.x=Ml.target.x,p.y=Ml.target.y),m.closest=Ml,Ml},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},$o=wr(At,"snap"),it={start:function(i){var o=i.state,p=i.edges,m=o.options;if(!p)return null;i.state={options:{targets:null,relativePoints:[{x:p.left?0:1,y:p.top?0:1}],offset:m.offset||"self",origin:{x:0,y:0},range:m.range}},o.targetFields=o.targetFields||[["width","height"],["x","y"]],At.start(i),o.offsets=i.state.offsets,i.state=o},set:function(i){var o=i.interaction,p=i.state,m=i.coords,w=p.options,O=p.offsets,U={x:m.x-O[0].x,y:m.y-O[0].y};p.options=le({},w),p.options.targets=[];for(var J=0,de=w.targets||[];J<de.length;J++){var Ae=de[J],fe=void 0;if(fe=g.func(Ae)?Ae(U.x,U.y,o):Ae){for(var Je=0,Ba=p.targetFields;Je<Ba.length;Je++){var Qa=Ba[Je],Ja=Qa[0],ja=Qa[1];if(Ja in fe||ja in fe){fe.x=fe[Ja],fe.y=fe[ja];break}}p.options.targets.push(fe)}}var xl=At.set(i);return p.options=w,xl},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},Po=wr(it,"snapSize"),Mt={aspectRatio:Lo,restrictEdges:Jt,restrict:Vo,restrictRect:Yn,restrictSize:Ro,snapEdges:wr({start:function(i){var o=i.edges;return o?(i.state.targetFields=i.state.targetFields||[[o.left?"left":"right",o.top?"top":"bottom"]],it.start(i)):null},set:it.set,defaults:le(Tr(it.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:$o,snapSize:Po,spring:Wn,avoid:Wn,transform:Wn,rubberband:Wn},Fo={id:"modifiers",install:function(i){var o=i.interactStatic;for(var p in i.usePlugin(dn),i.usePlugin(qt),o.modifiers=Mt,Mt){var m=Mt[p],w=m._defaults,O=m._methods;w._methods=O,i.defaults.perAction[p]=w}}},Qt=Fo,eo=function(i){y(p,i);var o=L(p);function p(m,w,O,U,J,de){var Ae;if(u(this,p),j(A(Ae=o.call(this,J)),O),O!==w&&j(A(Ae),w),Ae.timeStamp=de,Ae.originalEvent=O,Ae.type=m,Ae.pointerId=ke(w),Ae.pointerType=da(w),Ae.target=U,Ae.currentTarget=null,m==="tap"){var fe=J.getPointerIndex(w);Ae.dt=Ae.timeStamp-J.pointers[fe].downTime;var Je=Ae.timeStamp-J.tapTime;Ae.double=!!J.prevTap&&J.prevTap.type!=="doubletap"&&J.prevTap.target===Ae.target&&Je<500}else m==="doubletap"&&(Ae.dt=w.timeStamp-J.tapTime,Ae.double=!0);return Ae}return h(p,[{key:"_subtractOrigin",value:function(m){var w=m.x,O=m.y;return this.pageX-=w,this.pageY-=O,this.clientX-=w,this.clientY-=O,this}},{key:"_addOrigin",value:function(m){var w=m.x,O=m.y;return this.pageX+=w,this.pageY+=O,this.clientX+=w,this.clientY+=O,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),p}(_a),Jn={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(i){i.pointerEvents=Jn,i.defaults.actions.pointerEvents=Jn.defaults,le(i.actions.phaselessTypes,Jn.types)},listeners:{"interactions:new":function(i){var o=i.interaction;o.prevTap=null,o.tapTime=0},"interactions:update-pointer":function(i){var o=i.down,p=i.pointerInfo;!o&&p.hold||(p.hold={duration:1/0,timeout:null})},"interactions:move":function(i,o){var p=i.interaction,m=i.pointer,w=i.event,O=i.eventTarget;i.duplicate||p.pointerIsDown&&!p.pointerWasMoved||(p.pointerIsDown&&Ln(i),bn({interaction:p,pointer:m,event:w,eventTarget:O,type:"move"},o))},"interactions:down":function(i,o){(function(p,m){for(var w=p.interaction,O=p.pointer,U=p.event,J=p.eventTarget,de=p.pointerIndex,Ae=w.pointers[de].hold,fe=ba(J),Je={interaction:w,pointer:O,event:U,eventTarget:J,type:"hold",targets:[],path:fe,node:null},Ba=0;Ba<fe.length;Ba++){var Qa=fe[Ba];Je.node=Qa,m.fire("pointerEvents:collect-targets",Je)}if(Je.targets.length){for(var Ja=1/0,ja=0,xl=Je.targets;ja<xl.length;ja++){var pl=xl[ja].eventable.options.holdDuration;pl<Ja&&(Ja=pl)}Ae.duration=Ja,Ae.timeout=setTimeout(function(){bn({interaction:w,eventTarget:J,pointer:O,event:U,type:"hold"},m)},Ja)}})(i,o),bn(i,o)},"interactions:up":function(i,o){Ln(i),bn(i,o),function(p,m){var w=p.interaction,O=p.pointer,U=p.event,J=p.eventTarget;w.pointerWasMoved||bn({interaction:w,eventTarget:J,pointer:O,event:U,type:"tap"},m)}(i,o)},"interactions:cancel":function(i,o){Ln(i),bn(i,o)}},PointerEvent:eo,fire:bn,collectEventTargets:ao,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 bn(i,o){var p=i.interaction,m=i.pointer,w=i.event,O=i.eventTarget,U=i.type,J=i.targets,de=J===void 0?ao(i,o):J,Ae=new eo(U,m,w,O,p,o.now());o.fire("pointerEvents:new",{pointerEvent:Ae});for(var fe={interaction:p,pointer:m,event:w,eventTarget:O,targets:de,type:U,pointerEvent:Ae},Je=0;Je<de.length;Je++){var Ba=de[Je];for(var Qa in Ba.props||{})Ae[Qa]=Ba.props[Qa];var Ja=ze(Ba.eventable,Ba.node);if(Ae._subtractOrigin(Ja),Ae.eventable=Ba.eventable,Ae.currentTarget=Ba.node,Ba.eventable.fire(Ae),Ae._addOrigin(Ja),Ae.immediatePropagationStopped||Ae.propagationStopped&&Je+1<de.length&&de[Je+1].node!==Ae.currentTarget)break}if(o.fire("pointerEvents:fired",fe),U==="tap"){var ja=Ae.double?bn({interaction:p,pointer:m,event:w,eventTarget:O,type:"doubletap"},o):Ae;p.prevTap=ja,p.tapTime=ja.timeStamp}return Ae}function ao(i,o){var p=i.interaction,m=i.pointer,w=i.event,O=i.eventTarget,U=i.type,J=p.getPointerIndex(m),de=p.pointers[J];if(U==="tap"&&(p.pointerWasMoved||!de||de.downTarget!==O))return[];for(var Ae=ba(O),fe={interaction:p,pointer:m,event:w,eventTarget:O,type:U,path:Ae,targets:[],node:null},Je=0;Je<Ae.length;Je++){var Ba=Ae[Je];fe.node=Ba,o.fire("pointerEvents:collect-targets",fe)}return U==="hold"&&(fe.targets=fe.targets.filter(function(Qa){var Ja,ja;return Qa.eventable.options.holdDuration===((Ja=p.pointers[J])==null||(ja=Ja.hold)==null?void 0:ja.duration)})),fe.targets}function Ln(i){var o=i.interaction,p=i.pointerIndex,m=o.pointers[p].hold;m&&m.timeout&&(clearTimeout(m.timeout),m.timeout=null)}var jo=Object.freeze({__proto__:null,default:Jn});function Ho(i){var o=i.interaction;o.holdIntervalHandle&&(clearInterval(o.holdIntervalHandle),o.holdIntervalHandle=null)}var Uo={id:"pointer-events/holdRepeat",install:function(i){i.usePlugin(Jn);var o=i.pointerEvents;o.defaults.holdRepeatInterval=0,o.types.holdrepeat=i.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce(function(i,o){return i["pointerEvents:".concat(o)]=Ho,i},{"pointerEvents:new":function(i){var o=i.pointerEvent;o.type==="hold"&&(o.count=(o.count||0)+1)},"pointerEvents:fired":function(i,o){var p=i.interaction,m=i.pointerEvent,w=i.eventTarget,O=i.targets;if(m.type==="hold"&&O.length){var U=O[0].eventable.options.holdRepeatInterval;U<=0||(p.holdIntervalHandle=setTimeout(function(){o.pointerEvents.fire({interaction:p,eventTarget:w,type:"hold",pointer:m,event:m},o)},U))}}})},qo=Uo,lo={id:"pointer-events/interactableTargets",install:function(i){var o=i.Interactable;o.prototype.pointerEvents=function(m){return le(this.events.options,m),this};var p=o.prototype._backCompatOption;o.prototype._backCompatOption=function(m,w){var O=p.call(this,m,w);return O===this&&(this.events.options[m]=w),O}},listeners:{"pointerEvents:collect-targets":function(i,o){var p=i.targets,m=i.node,w=i.type,O=i.eventTarget;o.interactables.forEachMatch(m,function(U){var J=U.events,de=J.options;J.types[w]&&J.types[w].length&&U.testIgnoreAllow(de,m,O)&&p.push({node:m,eventable:J,props:{interactable:U}})})},"interactable:new":function(i){var o=i.interactable;o.events.getRect=function(p){return o.getRect(p)}},"interactable:set":function(i,o){var p=i.interactable,m=i.options;le(p.events.options,o.pointerEvents.defaults),le(p.events.options,m.pointerEvents||{})}}},st=lo,Ko={id:"pointer-events",install:function(i){i.usePlugin(jo),i.usePlugin(qo),i.usePlugin(st)}},Wo=Ko,xr={id:"reflow",install:function(i){var o=i.Interactable;i.actions.phases.reflow=!0,o.prototype.reflow=function(p){return function(m,w,O){for(var U=m.getAllElements(),J=O.window.Promise,de=J?[]:null,Ae=function(){var Je=U[fe],Ba=m.getRect(Je);if(!Ba)return 1;var Qa,Ja=ga(O.interactions.list,function(pl){return pl.interacting()&&pl.interactable===m&&pl.element===Je&&pl.prepared.name===w.name});if(Ja)Ja.move(),de&&(Qa=Ja._reflowPromise||new J(function(pl){Ja._reflowResolve=pl}));else{var ja=Re(Ba),xl=function(pl){return{coords:pl,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:ja.x,y:ja.y},client:{x:ja.x,y:ja.y},timeStamp:O.now()});Qa=function(pl,Ml,Ol,Yl,Vl){var jl=pl.interactions.new({pointerType:"reflow"}),Or={interaction:jl,event:Vl,pointer:Vl,eventTarget:Ol,phase:"reflow"};jl.interactable=Ml,jl.element=Ol,jl.prevEvent=Vl,jl.updatePointer(Vl,Vl,Ol,!0),V(jl.coords.delta),ha(jl.prepared,Yl),jl._doPhase(Or);var vr=pl.window,$r=vr.Promise,Zr=$r?new $r(function(Qr){jl._reflowResolve=Qr}):void 0;return jl._reflowPromise=Zr,jl.start(Yl,Ml,Ol),jl._interacting?(jl.move(Or),jl.end(Vl)):(jl.stop(),jl._reflowResolve()),jl.removePointer(Vl,Vl),Zr}(O,m,Je,w,xl)}de&&de.push(Qa)},fe=0;fe<U.length&&!Ae();fe++);return de&&J.all(de).then(function(){return m})}(this,p,i)}},listeners:{"interactions:stop":function(i,o){var p=i.interaction;p.pointerType==="reflow"&&(p._reflowResolve&&p._reflowResolve(),function(m,w){m.splice(m.indexOf(w),1)}(o.interactions.list,p))}}},ql=xr;if(zr.use(Xr),zr.use(Hl),zr.use(Wo),zr.use(wn),zr.use(Qt),zr.use(tn),zr.use(yl),zr.use(nl),zr.use(ql),zr.default=zr,s(l)==="object"&&l)try{l.exports=zr}catch{}return zr.default=zr,zr})}(It,It.exports)),It.exports}var A4=T4();const bs=z.getDefaultExportFromCjs(A4),So=a.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(l,{expose:n,emit:r}){const t=l,s=r,u=a.inject(wc),k=a.inject(Cc);if(!u)throw new Error("[grid-layout-plus]: missing layout store, GridItem must under a GridLayout.");const h=a.shallowRef(null),v=a.reactive({cols:1,containerWidth:100,rowHeight:30,margin:[10,10],maxRows:1/0,draggable:void 0,resizable:void 0,bounded:void 0,transformScale:1,useCssTransforms:!0,useStyleCursor:!0,isDragging:!1,dragging:{top:-1,left:-1},isResizing:!1,resizing:{width:-1,height:-1},style:{},rtl:!1});let y=!1,c=!1,E=NaN,A=NaN,L=NaN,_=NaN,W=-1,C=-1,M=-1,ae=-1,S=t.x,$=t.y,N=t.w,x=t.h;const g=a.ref(),H=a.reactive({i:a.toRef(t,"i"),state:v,wrapper:g,calcXY:Ie});function q(K){qe(K)}function G(){Sa()}function he(K){ln(t.isDraggable)&&(v.draggable=K)}function Be(K){ln(t.isResizable)&&(v.resizable=K)}function xe(K){ln(t.isBounded)&&(v.bounded=K)}function te(K){v.transformScale=K}function me(K){v.rowHeight=K}function Z(K){v.maxRows=K}function ue(){v.rtl=ys()==="rtl",Sa()}function Ue(K){v.cols=Math.floor(K)}u.increaseItem(H),a.onBeforeMount(()=>{v.rtl=ys()==="rtl"}),a.onMounted(()=>{u.responsive&&u.lastBreakpoint?v.cols=Nc(u.lastBreakpoint,u.cols):v.cols=u.colNum,v.rowHeight=u.rowHeight,v.containerWidth=u.width!==null?u.width:100,v.margin=u.margin!==void 0?u.margin.map(Number):[10,10],v.maxRows=u.maxRows,ln(t.isDraggable)?v.draggable=u.isDraggable:v.draggable=t.isDraggable,ln(t.isResizable)?v.resizable=u.isResizable:v.resizable=t.isResizable,ln(t.isBounded)?v.bounded=u.isBounded:v.bounded=t.isBounded,v.transformScale=u.transformScale,v.useCssTransforms=u.useCssTransforms,v.useStyleCursor=u.useStyleCursor,a.watchEffect(()=>{S=t.x,$=t.y,x=t.h,N=t.w,Fr(ra)}),k.on("updateWidth",q),k.on("compact",G),k.on("setDraggable",he),k.on("setResizable",Be),k.on("setBounded",xe),k.on("setTransformScale",te),k.on("setRowHeight",me),k.on("setMaxRows",Z),k.on("directionchange",ue),k.on("setColNum",Ue)}),a.onBeforeUnmount(()=>{k.off("updateWidth",q),k.off("compact",G),k.off("setDraggable",he),k.off("setResizable",Be),k.off("setBounded",xe),k.off("setTransformScale",te),k.off("setRowHeight",me),k.off("setMaxRows",Z),k.off("directionchange",ue),k.off("setColNum",Ue),h.value&&(h.value.unset(),h.value=null),u.decreaseItem(H)}),n({state:v,wrapper:g});const Ca=typeof navigator<"u"?navigator.userAgent.toLowerCase().includes("android"):!1,oe=a.computed(()=>v.resizable&&!t.static),D=a.computed(()=>u.isMirrored?!v.rtl:v.rtl),ne=a.computed(()=>(v.draggable||v.resizable)&&!t.static),ve=_4("item"),se=a.computed(()=>({[ve.b()]:!0,[ve.bm("resizable")]:oe.value,[ve.bm("static")]:t.static,[ve.bm("resizing")]:v.isResizing,[ve.bm("dragging")]:v.isDragging,[ve.bm("transform")]:v.useCssTransforms,[ve.bm("rtl")]:D.value,[ve.bm("no-touch")]:Ca&&ne.value})),_e=a.computed(()=>[ve.be("resizer"),D.value&&ve.bem("resizer","rtl")].filter(Boolean));a.watch(()=>t.isDraggable,K=>{v.draggable=K}),a.watch(()=>t.static,()=>{Fr(j),Fr(V)}),a.watch(()=>v.draggable,()=>{Fr(j)}),a.watch(()=>t.isResizable,K=>{v.resizable=K}),a.watch(()=>t.isBounded,K=>{v.bounded=K}),a.watch(()=>v.resizable,()=>{Fr(V)}),a.watch(()=>v.rowHeight,()=>{Fr(ra),Fr(ba)}),a.watch([()=>v.cols,()=>v.containerWidth],()=>{Fr(V),Fr(ra),Fr(ba)}),a.watch([()=>t.minH,()=>t.maxH,()=>t.minW,()=>t.maxW],()=>{Fr(V)}),a.watch(D,()=>{Fr(V),Fr(ra)}),a.watch([()=>u.margin,()=>u.margin[0],()=>u.margin[1]],()=>{const K=u.margin;!K||K[0]===v.margin[0]&&K[1]===v.margin[1]||(v.margin=K.map(Number),Fr(ra),Fr(ba))});function ra(){t.x+t.w>v.cols?(S=0,N=t.w>v.cols?v.cols:t.w):(S=t.x,N=t.w);const K=Qe(S,$,N,x);v.isDragging&&(K.top=v.dragging.top,D.value?K.right=v.dragging.left:K.left=v.dragging.left),v.isResizing&&(K.width=v.resizing.width,K.height=v.resizing.height);let Te;v.useCssTransforms?D.value?Te=g4(K.top,K.right,K.width,K.height):Te=y4(K.top,K.left,K.width,K.height):D.value?Te=k4(K.top,K.right,K.width,K.height):Te=b4(K.top,K.left,K.width,K.height),v.style=Te}function ba(){const K={};for(const Te of["width","height"]){const ee=v.style[Te].match(/^(\d+)px$/);if(!ee)return;K[Te]=ee[1]}s("container-resized",t.i,t.h,t.w,K.height,K.width)}function $a(K){if(t.static)return;const Te=K.type;if(Te==="resizestart"&&v.isResizing||Te!=="resizestart"&&!v.isResizing)return;const ee=vs(K);if(ln(ee))return;const{x:ke,y:pe}=ee,$e={width:0,height:0};let Ve;switch(Te){case"resizestart":{V(),W=N,C=x,Ve=Qe(S,$,N,x),$e.width=Ve.width,$e.height=Ve.height,v.resizing=$e,v.isResizing=!0;break}case"resizemove":{!K.edges.right&&!K.edges.left&&(L=ke),!K.edges.top&&!K.edges.bottom&&(_=pe);const ca=ms(L,_,ke,pe);D.value?$e.width=v.resizing.width-ca.deltaX/v.transformScale:$e.width=v.resizing.width+ca.deltaX/v.transformScale,$e.height=v.resizing.height+ca.deltaY/v.transformScale,v.resizing=$e;break}case"resizeend":{Ve=Qe(S,$,N,x),$e.width=Ve.width,$e.height=Ve.height,v.resizing={width:-1,height:-1},v.isResizing=!1;break}}Ve=ze($e.height,$e.width),Ve.w<t.minW&&(Ve.w=t.minW),Ve.w>t.maxW&&(Ve.w=t.maxW),Ve.h<t.minH&&(Ve.h=t.minH),Ve.h>t.maxH&&(Ve.h=t.maxH),Ve.h<1&&(Ve.h=1),Ve.w<1&&(Ve.w=1),L=ke,_=pe,(N!==Ve.w||x!==Ve.h)&&s("resize",t.i,Ve.h,Ve.w,$e.height,$e.width),K.type==="resizeend"&&(W!==N||C!==x)&&s("resized",t.i,Ve.h,Ve.w,$e.height,$e.width),k.emit("resizeEvent",K.type,t.i,S,$,Ve.h,Ve.w)}function le(K){if(t.static||v.isResizing)return;const Te=K.type;if(Te==="dragstart"&&v.isDragging||Te!=="dragstart"&&!v.isDragging)return;const ee=vs(K);if(ln(ee))return;const{x:ke,y:pe}=ee,$e=K.target;if(!$e.offsetParent)return;const Ve={top:0,left:0};switch(Te){case"dragstart":{M=S,ae=$;const ya=$e.offsetParent.getBoundingClientRect(),Oe=$e.getBoundingClientRect(),da=Oe.left/v.transformScale,Le=ya.left/v.transformScale,_a=Oe.right/v.transformScale,Fe=ya.right/v.transformScale,ma=Oe.top/v.transformScale,ce=ya.top/v.transformScale;D.value?Ve.left=(_a-Fe)*-1:Ve.left=da-Le,Ve.top=ma-ce,v.dragging=Ve,v.isDragging=!0;break}case"dragmove":{const ya=ms(E,A,ke,pe);if(D.value?Ve.left=v.dragging.left-ya.deltaX/v.transformScale:Ve.left=v.dragging.left+ya.deltaX/v.transformScale,Ve.top=v.dragging.top+ya.deltaY/v.transformScale,v.bounded){const Oe=$e.offsetParent.clientHeight-Re(t.h,v.rowHeight,v.margin[1]);Ve.top=we(Ve.top,0,Oe);const da=ka(),Le=v.containerWidth-Re(t.w,da,v.margin[0]);Ve.left=we(Ve.left,0,Le)}v.dragging=Ve;break}case"dragend":{const ya=$e.offsetParent.getBoundingClientRect(),Oe=$e.getBoundingClientRect(),da=Oe.left/v.transformScale,Le=ya.left/v.transformScale,_a=Oe.right/v.transformScale,Fe=ya.right/v.transformScale,ma=Oe.top/v.transformScale,ce=ya.top/v.transformScale;D.value?Ve.left=(_a-Fe)*-1:Ve.left=da-Le,Ve.top=ma-ce,v.dragging={top:-1,left:-1},v.isDragging=!1;break}}let ca;D.value,ca=Ie(Ve.top,Ve.left),E=ke,A=pe,(S!==ca.x||$!==ca.y)&&s("move",t.i,ca.x,ca.y),K.type==="dragend"&&(M!==S||ae!==$)&&s("moved",t.i,ca.x,ca.y),k.emit("dragEvent",K.type,t.i,ca.x,ca.y,x,N)}function Qe(K,Te,ee,ke){const pe=ka();let $e;return D.value?$e={right:Math.round(pe*K+(K+1)*v.margin[0]),top:Math.round(v.rowHeight*Te+(Te+1)*v.margin[1]),width:ee===1/0?ee:Math.round(pe*ee+Math.max(0,ee-1)*v.margin[0]),height:ke===1/0?ke:Math.round(v.rowHeight*ke+Math.max(0,ke-1)*v.margin[1])}:$e={left:Math.round(pe*K+(K+1)*v.margin[0]),top:Math.round(v.rowHeight*Te+(Te+1)*v.margin[1]),width:ee===1/0?ee:Math.round(pe*ee+Math.max(0,ee-1)*v.margin[0]),height:ke===1/0?ke:Math.round(v.rowHeight*ke+Math.max(0,ke-1)*v.margin[1])},$e}function Ie(K,Te){const ee=ka();let ke=Math.round((Te-v.margin[0])/(ee+v.margin[0])),pe=Math.round((K-v.margin[1])/(v.rowHeight+v.margin[1]));return ke=Math.max(Math.min(ke,v.cols-N),0),pe=Math.max(Math.min(pe,v.maxRows-x),0),{x:ke,y:pe}}function ka(){return(v.containerWidth-v.margin[0]*(v.cols+1))/v.cols}function Re(K,Te,ee){return Number.isFinite(K)?Math.round(Te*K+Math.max(0,K-1)*ee):K}function we(K,Te,ee){return Math.max(Math.min(K,ee),Te)}function ze(K,Te,ee=!1){const ke=ka();let pe=Math.round((Te+v.margin[0])/(ke+v.margin[0])),$e=0;return ee?$e=Math.ceil((K+v.margin[1])/(v.rowHeight+v.margin[1])):$e=Math.round((K+v.margin[1])/(v.rowHeight+v.margin[1])),pe=Math.max(Math.min(pe,v.cols-S),0),$e=Math.max(Math.min($e,v.maxRows-$),0),{w:pe,h:$e}}function qe(K,Te){v.containerWidth=K}function Sa(){ra()}function el(){!h.value&&g.value&&(h.value=bs(g.value),v.useStyleCursor||h.value.styleCursor(!1))}const P=ps(le);function j(){if(el(),!!h.value)if(v.draggable&&!t.static){const K={ignoreFrom:t.dragIgnoreFrom,allowFrom:t.dragAllowFrom,...t.dragOption};h.value.draggable(K),y||(y=!0,h.value.on("dragstart dragmove dragend",Te=>{Te.type==="dragmove"?P(Te):le(Te)}))}else h.value.draggable({enabled:!1})}const Y=ps($a);function V(){if(el(),!!h.value)if(v.resizable&&!t.static){const K=Qe(0,0,t.maxW,t.maxH),Te=Qe(0,0,t.minW,t.minH),ee={edges:{left:D.value?`.${_e.value[0]}`:!1,right:D.value?!1:`.${_e.value[0]}`,bottom:`.${_e.value[0]}`,top:!1},ignoreFrom:t.resizeIgnoreFrom,restrictSize:{min:{height:Te.height*v.transformScale,width:Te.width*v.transformScale},max:{height:K.height*v.transformScale,width:K.width*v.transformScale}},...t.resizeOption};t.preserveAspectRatio&&(ee.modifiers=[bs.modifiers.aspectRatio({ratio:"preserve"})]),h.value.resizable(ee),c||(c=!0,h.value.on("resizestart resizemove resizeend",ke=>{ke.type==="resizemove"?Y(ke):$a(ke)}))}else h.value.resizable({enabled:!1})}return(K,Te)=>(a.openBlock(),a.createElementBlock("section",{ref_key:"wrapper",ref:g,class:a.normalizeClass(se.value),style:a.normalizeStyle(v.style)},[a.renderSlot(K.$slots,"default"),oe.value?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(_e.value)},null,2)):a.createCommentVNode("",!0)],6))}}),lt=typeof window<"u";var ks;lt&&(ks=window==null?void 0:window.navigator)!=null&&ks.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function xs(l){return l!=null}function _s(){}const M4=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(M4)));const z4=lt&&("ontouchstart"in window||I4()>0),O4=z4?"pointerdown":"click";function I4(){return typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)||0}function L4(l,n,r=window.Event){const{type:t,bubbles:s=!1,cancelable:u=!1,...k}=n;if(!xs(t)||t==="")return!1;let h;return xs(r)?h=new r(t,{bubbles:s,cancelable:u}):(h=document.createEvent("HTMLEvents"),h.initEvent(t,s,u)),Object.assign(h,k),l.dispatchEvent(h)}const V4="clickoutside",R4=new Set;lt&&document.addEventListener(O4,l=>{const n=l.target,r=l.composedPath&&l.composedPath();R4.forEach(t=>{t!==n&&(r?!r.includes(t):!t.contains(n))&&(!t.__transferElement||t.__transferElement!==n&&!t.__transferElement.contains(n))&&L4(t,{type:V4})})},!0);const $4=[["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 mo;if(lt){for(const l of $4)if(l[1]in document){mo=l;break}}a.computed(()=>!1);const P4=new Set,F4=new WeakMap;if(lt&&mo){const l=mo[2],n=mo[4];document.addEventListener(n,()=>{if(P4.forEach(r=>{r.value=!1}),document[l]){const r=F4.get(document[l]);r&&(r.value=!0)}},!1)}const Ac=new Map;Ac.set("x",0);Ac.set("y",0);var et=[],j4=function(){return et.some(function(l){return l.activeTargets.length>0})},H4=function(){return et.some(function(l){return l.skippedTargets.length>0})},ws="ResizeObserver loop completed with undelivered notifications.",U4=function(){var l;typeof ErrorEvent=="function"?l=new ErrorEvent("error",{message:ws}):(l=document.createEvent("Event"),l.initEvent("error",!1,!1),l.message=ws),window.dispatchEvent(l)},Ft;(function(l){l.BORDER_BOX="border-box",l.CONTENT_BOX="content-box",l.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Ft||(Ft={}));var at=function(l){return Object.freeze(l)},q4=function(){function l(n,r){this.inlineSize=n,this.blockSize=r,at(this)}return l}(),Mc=function(){function l(n,r,t,s){return this.x=n,this.y=r,this.width=t,this.height=s,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,at(this)}return l.prototype.toJSON=function(){var n=this,r=n.x,t=n.y,s=n.top,u=n.right,k=n.bottom,h=n.left,v=n.width,y=n.height;return{x:r,y:t,top:s,right:u,bottom:k,left:h,width:v,height:y}},l.fromRect=function(n){return new l(n.x,n.y,n.width,n.height)},l}(),ki=function(l){return l instanceof SVGElement&&"getBBox"in l},zc=function(l){if(ki(l)){var n=l.getBBox(),r=n.width,t=n.height;return!r&&!t}var s=l,u=s.offsetWidth,k=s.offsetHeight;return!(u||k||l.getClientRects().length)},Cs=function(l){var n;if(l instanceof Element)return!0;var r=(n=l==null?void 0:l.ownerDocument)===null||n===void 0?void 0:n.defaultView;return!!(r&&l instanceof r.Element)},K4=function(l){switch(l.tagName){case"INPUT":if(l.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Rt=typeof window<"u"?window:{},po=new WeakMap,Es=/auto|scroll/,W4=/^tb|vertical/,Y4=/msie|trident/i.test(Rt.navigator&&Rt.navigator.userAgent),xn=function(l){return parseFloat(l||"0")},_t=function(l,n,r){return l===void 0&&(l=0),n===void 0&&(n=0),r===void 0&&(r=!1),new q4((r?n:l)||0,(r?l:n)||0)},Ss=at({devicePixelContentBoxSize:_t(),borderBoxSize:_t(),contentBoxSize:_t(),contentRect:new Mc(0,0,0,0)}),Oc=function(l,n){if(n===void 0&&(n=!1),po.has(l)&&!n)return po.get(l);if(zc(l))return po.set(l,Ss),Ss;var r=getComputedStyle(l),t=ki(l)&&l.ownerSVGElement&&l.getBBox(),s=!Y4&&r.boxSizing==="border-box",u=W4.test(r.writingMode||""),k=!t&&Es.test(r.overflowY||""),h=!t&&Es.test(r.overflowX||""),v=t?0:xn(r.paddingTop),y=t?0:xn(r.paddingRight),c=t?0:xn(r.paddingBottom),E=t?0:xn(r.paddingLeft),A=t?0:xn(r.borderTopWidth),L=t?0:xn(r.borderRightWidth),_=t?0:xn(r.borderBottomWidth),W=t?0:xn(r.borderLeftWidth),C=E+y,M=v+c,ae=W+L,S=A+_,$=h?l.offsetHeight-S-l.clientHeight:0,N=k?l.offsetWidth-ae-l.clientWidth:0,x=s?C+ae:0,g=s?M+S:0,H=t?t.width:xn(r.width)-x-N,q=t?t.height:xn(r.height)-g-$,G=H+C+N+ae,he=q+M+$+S,Be=at({devicePixelContentBoxSize:_t(Math.round(H*devicePixelRatio),Math.round(q*devicePixelRatio),u),borderBoxSize:_t(G,he,u),contentBoxSize:_t(H,q,u),contentRect:new Mc(E,v,H,q)});return po.set(l,Be),Be},Ic=function(l,n,r){var t=Oc(l,r),s=t.borderBoxSize,u=t.contentBoxSize,k=t.devicePixelContentBoxSize;switch(n){case Ft.DEVICE_PIXEL_CONTENT_BOX:return k;case Ft.BORDER_BOX:return s;default:return u}},J4=function(){function l(n){var r=Oc(n);this.target=n,this.contentRect=r.contentRect,this.borderBoxSize=at([r.borderBoxSize]),this.contentBoxSize=at([r.contentBoxSize]),this.devicePixelContentBoxSize=at([r.devicePixelContentBoxSize])}return l}(),Lc=function(l){if(zc(l))return 1/0;for(var n=0,r=l.parentNode;r;)n+=1,r=r.parentNode;return n},G4=function(){var l=1/0,n=[];et.forEach(function(u){if(u.activeTargets.length!==0){var k=[];u.activeTargets.forEach(function(h){var v=new J4(h.target),y=Lc(h.target);k.push(v),h.lastReportedSize=Ic(h.target,h.observedBox),y<l&&(l=y)}),n.push(function(){u.callback.call(u.observer,k,u.observer)}),u.activeTargets.splice(0,u.activeTargets.length)}});for(var r=0,t=n;r<t.length;r++){var s=t[r];s()}return l},Ds=function(l){et.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(r){r.isActive()&&(Lc(r.target)>l?n.activeTargets.push(r):n.skippedTargets.push(r))})})},X4=function(){var l=0;for(Ds(l);j4();)l=G4(),Ds(l);return H4()&&U4(),l>0},Qo,Vc=[],Z4=function(){return Vc.splice(0).forEach(function(l){return l()})},Q4=function(l){if(!Qo){var n=0,r=document.createTextNode(""),t={characterData:!0};new MutationObserver(function(){return Z4()}).observe(r,t),Qo=function(){r.textContent="".concat(n?n--:n++)}}Vc.push(l),Qo()},e6=function(l){Q4(function(){requestAnimationFrame(l)})},yo=0,a6=function(){return!!yo},l6=250,r6={attributes:!0,characterData:!0,childList:!0,subtree:!0},Bs=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ns=function(l){return l===void 0&&(l=0),Date.now()+l},ei=!1,n6=function(){function l(){var n=this;this.stopped=!0,this.listener=function(){return n.schedule()}}return l.prototype.run=function(n){var r=this;if(n===void 0&&(n=l6),!ei){ei=!0;var t=Ns(n);e6(function(){var s=!1;try{s=X4()}finally{if(ei=!1,n=t-Ns(),!a6())return;s?r.run(1e3):n>0?r.run(n):r.start()}})}},l.prototype.schedule=function(){this.stop(),this.run()},l.prototype.observe=function(){var n=this,r=function(){return n.observer&&n.observer.observe(document.body,r6)};document.body?r():Rt.addEventListener("DOMContentLoaded",r)},l.prototype.start=function(){var n=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Bs.forEach(function(r){return Rt.addEventListener(r,n.listener,!0)}))},l.prototype.stop=function(){var n=this;this.stopped||(this.observer&&this.observer.disconnect(),Bs.forEach(function(r){return Rt.removeEventListener(r,n.listener,!0)}),this.stopped=!0)},l}(),vi=new n6,Ts=function(l){!yo&&l>0&&vi.start(),yo+=l,!yo&&vi.stop()},t6=function(l){return!ki(l)&&!K4(l)&&getComputedStyle(l).display==="inline"},o6=function(){function l(n,r){this.target=n,this.observedBox=r||Ft.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return l.prototype.isActive=function(){var n=Ic(this.target,this.observedBox,!0);return t6(this.target)&&(this.lastReportedSize=n),this.lastReportedSize.inlineSize!==n.inlineSize||this.lastReportedSize.blockSize!==n.blockSize},l}(),i6=function(){function l(n,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=n,this.callback=r}return l}(),fo=new WeakMap,As=function(l,n){for(var r=0;r<l.length;r+=1)if(l[r].target===n)return r;return-1},ho=function(){function l(){}return l.connect=function(n,r){var t=new i6(n,r);fo.set(n,t)},l.observe=function(n,r,t){var s=fo.get(n),u=s.observationTargets.length===0;As(s.observationTargets,r)<0&&(u&&et.push(s),s.observationTargets.push(new o6(r,t&&t.box)),Ts(1),vi.schedule())},l.unobserve=function(n,r){var t=fo.get(n),s=As(t.observationTargets,r),u=t.observationTargets.length===1;s>=0&&(u&&et.splice(et.indexOf(t),1),t.observationTargets.splice(s,1),Ts(-1))},l.disconnect=function(n){var r=this,t=fo.get(n);t.observationTargets.slice().forEach(function(s){return r.unobserve(n,s.target)}),t.activeTargets.splice(0,t.activeTargets.length)},l}(),s6=function(){function l(n){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof n!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");ho.connect(this,n)}return l.prototype.observe=function(n,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Cs(n))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ho.observe(this,n,r)},l.prototype.unobserve=function(n){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Cs(n))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ho.unobserve(this,n)},l.prototype.disconnect=function(){ho.disconnect(this)},l.toString=function(){return"function ResizeObserver () { [polyfill code] }"},l}();const Do=new WeakMap;function c6(l){var n;for(let r=0,t=l.length;r<t;++r){const s=l[r],u=Do.get(s.target);if(typeof u=="function"){const{inlineSize:k,blockSize:h}=((n=s.borderBoxSize)==null?void 0:n[0])??{},{offsetWidth:v,offsetHeight:y}=s.target;u(Object.assign(s,{offsetWidth:v,offsetHeight:y,width:k??v,height:h??y}))}}}const Rc=new(lt&&window.ResizeObserver||s6)(c6);function Ms(l,n){Do.set(l,n),Rc.observe(l)}function zs(l){Do.has(l)&&(Rc.unobserve(l),Do.delete(l))}function u6(l={}){let n=_s;const r=a.watch(()=>a.unref(l.target),s=>{n(),!(!s||typeof l.onResize!="function")&&(Ms(s,l.onResize),n=()=>{zs(s),n=_s})},{immediate:!0}),t=()=>{r(),n()};return a.getCurrentScope()&&a.onScopeDispose(t),{observeResize:Ms,unobserveResize:zs,unobserve:t}}const d6=a.ref(!1);a.computed(()=>d6.value);const Os="__theme_style__",ai="__theme_observer__",Is=a.reactive(new Map),Ls=new Map;a.watch(Is,()=>{if(!lt)return;Ls.clear();const l=document.head.querySelector(`#${Os}`);l&&document.head.removeChild(l);const n=document.createElement("style");let r=`.${ai} { width: 1px }`,t=1;for(const[s,[u,k]]of Is.entries())r+=` html.${u} .${ai}, .${k} .${ai} { width: ${++t}px }`,Ls.set(t,s);n.textContent=r,n.id=Os,document.head.appendChild(n)});const $c=a.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(l,{expose:n,emit:r}){const t=l,s=r,u=a.reactive({width:-1,mergedStyle:{},lastLayoutLength:0,isDragging:!1,placeholder:{x:0,y:0,w:0,h:0,i:""},layouts:{},lastBreakpoint:null,originalLayout:null}),k=new Map,h=a.ref(t.layout),v=a.ref(),{observeResize:y,unobserveResize:c}=u6(),E=u4();E.on("resizeEvent",A),E.on("dragEvent",L),a.onBeforeMount(()=>{s("layout-before-mount",h.value)}),a.onMounted(()=>{s("layout-mounted",h.value),a.nextTick(()=>{x4(h.value),u.originalLayout=h.value,a.nextTick(()=>{q(),v.value&&y(v.value,d4(S,16)),gt(h.value,t.verticalCompact),s("layout-updated",h.value),ae(),S()})})}),a.onBeforeUnmount(()=>{E.clearAll(),v.value&&c(v.value)});function A(he,Be,xe,te,me,Z){g(he,Be,xe,te,me,Z)}function L(he,Be,xe,te,me,Z){x(he,Be,xe,te,me,Z)}a.watch(()=>u.width,(he,Be)=>{a.nextTick(()=>{E.emit("updateWidth",he),Be===-1&&a.nextTick(()=>{s("layout-ready",h.value)}),ae()})}),a.watch(()=>[t.layout,t.layout.length],()=>{h.value=t.layout,M()}),a.watch(()=>t.colNum,he=>{E.emit("setColNum",he)}),a.watch(()=>t.rowHeight,he=>{E.emit("setRowHeight",he)}),a.watch(()=>t.isDraggable,he=>{E.emit("setDraggable",he)}),a.watch(()=>t.isResizable,he=>{E.emit("setResizable",he)}),a.watch(()=>t.isBounded,he=>{E.emit("setBounded",he)}),a.watch(()=>t.transformScale,he=>{E.emit("setTransformScale",he)}),a.watch(()=>t.responsive,he=>{he||(s("update:layout",u.originalLayout),E.emit("setColNum",t.colNum)),S()}),a.watch(()=>t.maxRows,he=>{E.emit("setMaxRows",he)}),a.watch([()=>t.margin,()=>t.margin[1]],ae),a.provide(wc,a.reactive({...a.toRefs(t),...a.toRefs(u),increaseItem:_,decreaseItem:W})),a.provide(Cc,E),n({state:u,getItem:C,resizeEvent:g,dragEvent:x,layoutUpdate:M});function _(he){k.set(he.i,he)}function W(he){k.delete(he.i)}function C(he){return k.get(he)}function M(){if(!ln(h.value)&&!ln(u.originalLayout)){if(h.value.length!==u.originalLayout.length){const he=G(h.value,u.originalLayout);if(he.length>0)if(h.value.length>u.originalLayout.length)u.originalLayout=u.originalLayout.concat(he);else{const Be=new Set(he.map(xe=>xe.i));u.originalLayout=u.originalLayout.filter(xe=>!Be.has(xe.i))}u.lastLayoutLength=h.value.length,q()}gt(h.value,t.verticalCompact),E.emit("updateWidth",u.width),ae(),s("layout-updated",h.value)}}function ae(){u.mergedStyle={height:$()}}function S(){v.value&&(u.width=v.value.offsetWidth),E.emit("resizeEvent")}function $(){if(!t.autoSize)return;const he=parseFloat(t.margin[1]);return f4(h.value)*(t.rowHeight+he)+he+"px"}let N;function x(he,Be,xe,te,me,Z){let ue=fs(h.value,Be);ln(ue)&&(ue={h:0,w:0,x:0,y:0,i:""}),he==="dragstart"&&!t.verticalCompact&&(N=h.value.reduce((Ue,{i:Ca,x:oe,y:D})=>({...Ue,[Ca]:{x:oe,y:D}}),{})),he==="dragmove"||he==="dragstart"?(u.placeholder.i=Be,u.placeholder.x=ue.x,u.placeholder.y=ue.y,u.placeholder.w=Z,u.placeholder.h=me,a.nextTick(()=>{u.isDragging=!0}),E.emit("updateWidth",u.width)):a.nextTick(()=>{u.isDragging=!1}),h.value=hi(h.value,ue,xe,te,!0,t.preventCollision),t.restoreOnDrag?(ue.static=!0,gt(h.value,t.verticalCompact,N),ue.static=!1):gt(h.value,t.verticalCompact),E.emit("compact"),ae(),he==="dragend"&&(N=void 0,s("layout-updated",h.value))}function g(he,Be,xe,te,me,Z){let ue=fs(h.value,Be);ln(ue)&&(ue={h:0,w:0,x:0,y:0,i:""});let Ue;if(t.preventCollision){const Ca=Sc(h.value,{...ue,w:Z,h:me}).filter(oe=>oe.i!==ue.i);if(Ue=Ca.length>0,Ue){let oe=1/0,D=1/0;Ca.forEach(ne=>{ne.x>ue.x&&(oe=Math.min(oe,ne.x)),ne.y>ue.y&&(D=Math.min(D,ne.y))}),Number.isFinite(oe)&&(ue.w=oe-ue.x),Number.isFinite(D)&&(ue.h=D-ue.y)}}Ue||(ue.w=Z,ue.h=me),he==="resizestart"||he==="resizemove"?(u.placeholder.i=Be,u.placeholder.x=xe,u.placeholder.y=te,u.placeholder.w=ue.w,u.placeholder.h=ue.h,a.nextTick(()=>{u.isDragging=!0}),E.emit("updateWidth",u.width)):he&&a.nextTick(()=>{u.isDragging=!1}),t.responsive&&H(),gt(h.value,t.verticalCompact),E.emit("compact"),ae(),he==="resizeend"&&s("layout-updated",h.value)}function H(){const he=E4(t.breakpoints,u.width);if(he===u.lastBreakpoint)return;const Be=Nc(he,t.cols);!ln(u.lastBreakpoint)&&!u.layouts[u.lastBreakpoint]&&(u.layouts[u.lastBreakpoint]=fi(h.value));const xe=S4(u.originalLayout,u.layouts,t.breakpoints,he,u.lastBreakpoint,Be,t.verticalCompact);u.layouts[he]=xe,u.lastBreakpoint!==he&&s("breakpoint-changed",he,xe),h.value=xe,s("update:layout",xe),u.lastBreakpoint=he,E.emit("setColNum",Be)}function q(){u.layouts=Object.assign({},t.responsiveLayouts)}function G(he,Be){const xe=new Set(Be.map(ue=>ue.i)),te=new Set(he.map(ue=>ue.i)),me=he.filter(ue=>!xe.has(ue.i)),Z=Be.filter(ue=>!te.has(ue.i));return me.concat(Z)}return(he,Be)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"wrapper",ref:v,class:"vgl-layout",style:a.normalizeStyle(u.mergedStyle)},[he.$slots.default?a.renderSlot(he.$slots,"default",{key:0}):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(h.value,xe=>(a.openBlock(),a.createBlock(So,a.mergeProps({key:xe.i,ref_for:!0},xe),{default:a.withCtx(()=>[a.renderSlot(he.$slots,"item",{item:xe})]),_:2},1040))),128)),a.withDirectives(a.createVNode(So,{class:"vgl-item--placeholder",x:u.placeholder.x,y:u.placeholder.y,w:u.placeholder.w,h:u.placeholder.h,i:u.placeholder.i},null,8,["x","y","w","h","i"]),[[a.vShow,u.isDragging]])],4))}});(function(){try{if(typeof document<"u"){var l=document.createElement("style");l.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(l)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}})();const p6={key:0,class:"item-view-group"},f6={key:0,class:"item-view-group"},h6=a.defineComponent({__name:"index",props:{children:{type:Object,default:()=>{}},level:{type:Number,default:1}},emits:["rowClick","routeUrl","radioChange"],setup(l,{emit:n}){const r=z.useModelComp(z.pinia),{isEdit:t}=z.storeToRefs(r),s=n,u=l,k=a.computed(()=>u==null?void 0:u.children),h=a.computed(()=>{var _,W,C,M;return((_=u==null?void 0:u.children)==null?void 0:_.length)>0&&((W=u==null?void 0:u.children)!=null&&W.every(ae=>ae==null?void 0:ae.layout))?(M=(C=u==null?void 0:u.children)==null?void 0:C[0])==null?void 0:M.layout:"vertical"}),v=_=>{s("radioChange",_)},y=a.computed(()=>{var _,W;return((W=(_=u==null?void 0:u.children)==null?void 0:_[0])==null?void 0:W.isGridLayout)||!1}),c=a.ref((u==null?void 0:u.level)+1),E=a.computed(()=>{if(!(u!=null&&u.children)||!Array.isArray(u.children)||u.children.length<2)return!1;const _=u.children.some(C=>(C==null?void 0:C.name)==="测量系统配置表"&&(C==null?void 0:C.comp)==="ParentItem"),W=u.children.some(C=>(C==null?void 0:C.name)==="测量系统传递表"&&(C==null?void 0:C.comp)==="ParentItem");return _&&W});a.watch(()=>u==null?void 0:u.children,()=>{E.value},{deep:!0});const A=_=>{s("rowClick",_)},L=(_,W)=>{s("routeUrl",_,W)};return(_,W)=>y.value?(a.openBlock(),a.createBlock(a.unref($c),{key:0,layout:k.value,"onUpdate:layout":W[0]||(W[0]=C=>k.value=C),"is-draggable":a.unref(t)==="edit","is-resizable":a.unref(t)==="edit","col-num":24,margin:[8,16]},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(k.value,(C,M)=>(a.openBlock(),a.createBlock(a.unref(So),{key:C.i,x:C.x,y:C.y,"min-h":C.minH,"max-h":C.maxH,"min-w":C.minW,w:C.w,h:C.h,i:C.i},{default:a.withCtx(()=>{var ae,S,$,N,x,g,H,q,G,he,Be,xe,te,me;return[a.createElementVNode("div",{style:a.normalizeStyle({gap:"16px",display:"flex",flexDirection:"column",paddingBottom:M===((ae=u==null?void 0:u.children)==null?void 0:ae.length)-1?"0px":"24px"})},[(($=(S=C==null?void 0:C.component)==null?void 0:S.comp)==null?void 0:$.toUpperCase())!=="TABLE"&&((N=C==null?void 0:C.component)!=null&&N.name)?(a.openBlock(),a.createElementBlock("div",p6,[a.createElementVNode("div",{class:"group-name-wrap",style:a.normalizeStyle({paddingLeft:(parseInt(c.value.toString())-1)*12+"px",fontWeight:600-(c.value-1)*100>=400?600-(c.value-1)*100:400,fontSize:17-c.value>=14?17-c.value+"px":"14px"})},a.toDisplayString((x=C==null?void 0:C.component)==null?void 0:x.name),5)])):a.createCommentVNode("",!0),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Pt)((g=C==null?void 0:C.component)==null?void 0:g.comp)),{pageLayout:h.value,config:{showIndex:(H=a.unref(Xl)[M])==null?void 0:H.showIndex,allowMove:(q=a.unref(Xl)[M])==null?void 0:q.allowMove,viewport:(G=a.unref(Xl)[M])==null?void 0:G.viewport,status:(he=a.unref(Xl)[M])==null?void 0:he.status},related:C==null?void 0:C.relatedTables,compName:C==null?void 0:C.component.name,compNames:a.unref(nc),itemData:(Be=C==null?void 0:C.component)==null?void 0:Be.compData,childItemData:(xe=C==null?void 0:C.component)==null?void 0:xe.itemChildData,key:a.unref(Hn),cacheNewData:a.unref(rc),onChange:a.unref(_o),index:(C==null?void 0:C.id)??M,onContentChange:a.unref(wo),onPageChange:a.unref(Co),parentTableId:(te=C==null?void 0:C.component)==null?void 0:te.tableId,allMapContents:a.unref(di),children:(me=C==null?void 0:C.component)==null?void 0:me.children,level:c.value,onRowClick:A,onRouteUrl:L,onClickTrigger:a.unref(tc),onClickMainKey:a.unref(oc)},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"])):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(u==null?void 0:u.children,(C,M)=>{var ae,S;return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle({gap:"16px",display:(C==null?void 0:C.isShow)===!1?"none":"flex",flexDirection:"column",paddingBottom:parseInt(M)===((ae=u==null?void 0:u.children)==null?void 0:ae.length)-1?"0px":"24px"})},[((S=C==null?void 0:C.comp)==null?void 0:S.toUpperCase())!=="TABLE"&&C.name?(a.openBlock(),a.createElementBlock("div",f6,[a.createElementVNode("div",{class:"group-name-wrap",style:a.normalizeStyle({paddingLeft:parseInt(c.value.toString())>1?"12px":"0px",fontWeight:600-(c.value-1)*100>=400?600-(c.value-1)*100:400,fontSize:17-c.value>=14?17-c.value+"px":"14px"})},a.toDisplayString(C.name),5)])):a.createCommentVNode("",!0),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Pt)(C.comp)),{compName:C.name,config:{showIndex:C==null?void 0:C.showIndex,allowMove:C==null?void 0:C.allowMove,viewport:C==null?void 0:C.viewport,status:C==null?void 0:C.status},itemData:C==null?void 0:C.compData,related:C==null?void 0:C.relatedTables,childItemData:C==null?void 0:C.itemChildData,key:a.unref(Hn),onChange:a.unref(_o),index:(C==null?void 0:C.id)??M,onContentChange:a.unref(wo),onPageChange:a.unref(Co),parentTableId:C==null?void 0:C.tableId,allMapContents:a.unref(di),children:C==null?void 0:C.children,level:c.value,onRowClick:A,onRouteUrl:L,onRadioChange:v},null,40,["compName","config","itemData","related","childItemData","onChange","index","onContentChange","onPageChange","parentTableId","allMapContents","children","level"]))],4)}),256))}}),v6=Ul._export_sfc(h6,[["__scopeId","data-v-ed72c7ff"]]),m6={class:"radio-group-container"},y6=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},emits:["radioChange"],setup(l,{emit:n}){const r=l,t=n,s=a.ref(),u=Et(z.pinia),{selectTab:k}=z.storeToRefs(u);a.watch(()=>r==null?void 0:r.itemData,()=>{s.value=k.value},{immediate:!0,deep:!0});const h=v=>{s.value=v,t("radioChange",s.value)};return(v,y)=>(a.openBlock(),a.createElementBlock("div",m6,[a.createVNode(ul.ssRadio,{modelValue:s.value,"onUpdate:modelValue":y[0]||(y[0]=c=>s.value=c),content:r==null?void 0:r.itemData,onChange:h},null,8,["modelValue","content"])]))}}),g6=Ul._export_sfc(y6,[["__scopeId","data-v-ed48c2f8"]]),Pc=a.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"}]),b6={TABLE:uc,FORM:ss,STATICFORM:dc,TABLEOPERATE:p1,TABLESTYLE:B1,TABLEEXTEND:T1,TABLEINTERACTION:z1,FORMOPERATE:cs,FOLD:c2,CALCULATOR:v2,METHODBUTTON:g2,AVATARUPLOAD:Ui.ssAvatar,SIGNATURE:Ui.ssSignature,FORMTOP:ss,STEP:T2,STEPOPERATE:e2,TIMELINE:L2,TIMELINEOPERATE:o2,FORMTOPOPERATE:cs,SIGNATUREOPERATE:D2,AVATARUPLOADOPERATE:x2,TABS:$2,TABSOPERATE:Ch,CHART:Rh,CHARTOPERATE:Jh,LAYOUT:Zh,LAYOUTOPERATE:i4,PARENTITEM:v6,RADIO:g6};function St(l){return b6[l==null?void 0:l.toUpperCase()]||null}exports.De=$c;exports.activeStepInfo=bt;exports.addContents=$t;exports.addVisibleDialog=gi;exports.affixItems=$f;exports.allMapContents=di;exports.analyzeFilter=kt;exports.analyzeForm=xd;exports.analyzeQuoteForm=kd;exports.analyzeTable=wd;exports.cacheNewData=rc;exports.clickMainKey=oc;exports.clickSavePage=Rf;exports.clickStep=sc;exports.clickTrigger=tc;exports.compId=Hn;exports.compNames=nc;exports.compShow=Ct;exports.createRobotContent=Gs;exports.existLayouts=Wf;exports.generateLayouts=C1;exports.getComponent=St;exports.getComponents=Pt;exports.getPageData=Hr;exports.getSliceContLength=Zf;exports.gridRowHeight=b1;exports.isStepLayout=cc;exports.onBack=Lf;exports.onButtonChange=Hf;exports.onChange=_o;exports.onClick=Vf;exports.onContentChange=wo;exports.onExtendTaskEnd=Kf;exports.onOk=Uf;exports.onPageBack=Jf;exports.onPageChange=Co;exports.onSelectFixContent=If;exports.renderShowItems=ac;exports.robotFile=df;exports.showItems=Xl;exports.sliceTableLength=lc;exports.slotContent=Pc;exports.ssTable=uc;exports.ssTag=Ps;exports.st=So;exports.stepItems=Qf;exports.tabChange=Yf;exports.toolBar=qf;exports.useFormComp=mi;exports.useModelLoader=Ip;exports.verifyButton=Gf;