ss-component-new 1.3.382 → 1.3.384

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 (120) hide show
  1. package/dist/{MTLLoader-COQzSlop.js → MTLLoader-BQHXDxnO.js} +1 -1
  2. package/dist/{MTLLoader-DAuK2Puz.cjs → MTLLoader-CkcKuBZC.cjs} +1 -1
  3. package/dist/{OrbitControls-BSpF9hj8.js → OrbitControls-BLTRuhDa.js} +1 -1
  4. package/dist/{OrbitControls-knTPRn96.cjs → OrbitControls-DE3CExKk.cjs} +1 -1
  5. package/dist/{URDFLoader-D6_CEpHZ.cjs → URDFLoader-D8tyuenp.cjs} +1 -1
  6. package/dist/{URDFLoader-kbmOvMIB.js → URDFLoader-imRRXSC6.js} +2 -2
  7. package/dist/{animationData-DbE8xWWf.js → animationData-BvgGr_AD.js} +3 -3
  8. package/dist/{animationData-DmjEvene.cjs → animationData-C0XKzhAY.cjs} +1 -1
  9. package/dist/{array-BSUZ99oH.js → array-CTY5U_PN.js} +4 -4
  10. package/dist/{array-BvQOaFxO.cjs → array-sBmECoLs.cjs} +1 -1
  11. package/dist/{clone-mFCVwr-G.js → clone-C1cp_ZPA.js} +1 -1
  12. package/dist/clone-ClJmDMw-.cjs +1 -0
  13. package/dist/{eleIcon-CiJIZabf.js → eleIcon-B_axj8bR.js} +1 -1
  14. package/dist/{eleIcon-D20IQFYA.cjs → eleIcon-Dr0KcGoI.cjs} +1 -1
  15. package/dist/{iconfont-DDZGPkz5.cjs → iconfont-CgUOBkc4.cjs} +1 -1
  16. package/dist/{iconfont-D72sm9Jm.js → iconfont-DF-mcDbr.js} +2 -2
  17. package/dist/{index-Bf5kpdKA.js → index-9f9f04mZ.js} +4 -4
  18. package/dist/{index-DnwmGvcp.js → index-B-H0eGnk.js} +8075 -8063
  19. package/dist/{index-Dub2SbvH.cjs → index-B1FeUhQ3.cjs} +1 -1
  20. package/dist/index-B1fJDMjR.cjs +1 -0
  21. package/dist/{index-BvPKncXn.cjs → index-B6tumL2U.cjs} +1 -1
  22. package/dist/{index-DIfJQHZp.js → index-B8Y_9tEG.js} +3 -3
  23. package/dist/{index-BZCpc5VL.js → index-B9g2i970.js} +22 -22
  24. package/dist/index-BA7_vyhG.cjs +1 -0
  25. package/dist/{index-DxRhIGgJ.js → index-BCT70WiL.js} +18 -18
  26. package/dist/{index-CKcz17VF.cjs → index-BELWa90a.cjs} +1 -1
  27. package/dist/{index--l3tMF8l.cjs → index-BGmW1CP0.cjs} +1 -1
  28. package/dist/{index-BEli6-9O.cjs → index-BUD_iRcK.cjs} +6 -6
  29. package/dist/{index-Bx95j-0r.cjs → index-BYFXJgbP.cjs} +1 -1
  30. package/dist/{index-DkTQi1Vq.js → index-Bc2mOUH-.js} +1 -1
  31. package/dist/{index-DljiGtdC.cjs → index-BcDE44RI.cjs} +1 -1
  32. package/dist/{index-Ck1Oilyz.cjs → index-BjMprvSX.cjs} +1 -1
  33. package/dist/{index-P8lg86z4.js → index-Bldno7Iy.js} +10 -10
  34. package/dist/{index-CmYd6_TA.js → index-BmZwVwZC.js} +1 -1
  35. package/dist/{index-KB0XWCq4.cjs → index-Bon3pRBp.cjs} +1 -1
  36. package/dist/index-BqY1Tkyr.cjs +25 -0
  37. package/dist/{index-0AwREool.cjs → index-BrM2852p.cjs} +1 -1
  38. package/dist/{index-eh2g6__P.js → index-BrWiuGP2.js} +2 -2
  39. package/dist/{index-DFGJd-mG.cjs → index-BtSPIq4_.cjs} +1 -1
  40. package/dist/{index-Ff9cJTW6.cjs → index-Btb3Lv0L.cjs} +1 -1
  41. package/dist/{index-CzsK_2wL.cjs → index-BvxR8f8X.cjs} +1 -1
  42. package/dist/{index-DvSKkDLq.js → index-ByUugKZ4.js} +1 -1
  43. package/dist/{index-B2-ME7I0.cjs → index-C1mWisuO.cjs} +1 -1
  44. package/dist/{index-WnDj_ILy.cjs → index-C93sz4z1.cjs} +1 -1
  45. package/dist/{index-6nl_N4qo.cjs → index-CA6wKd_G.cjs} +1 -1
  46. package/dist/{index-DtAHjBND.js → index-CEQD4kWk.js} +4 -4
  47. package/dist/{index-BRaaqaJs.js → index-CKzb7xC4.js} +2 -2
  48. package/dist/index-CNivaVr-.cjs +2 -0
  49. package/dist/{index-meO4_UNB.cjs → index-CR69-jEg.cjs} +1 -1
  50. package/dist/{index-BrBW7tRO.cjs → index-CRJ8dFCC.cjs} +2 -2
  51. package/dist/{index-BjuzVLIW.js → index-CV8KZP8q.js} +2 -2
  52. package/dist/{index-QpJbzLNb.js → index-CafzZfEy.js} +59 -50
  53. package/dist/{index-CGQcujDu.js → index-CbJj36LL.js} +2 -2
  54. package/dist/{index-IiRA9o9r.cjs → index-Cq_4-egL.cjs} +1 -1
  55. package/dist/{index-D32grlvH.js → index-CxatyCqn.js} +191 -191
  56. package/dist/{index-DsMPZC4m.js → index-D5eCm00g.js} +5 -5
  57. package/dist/{index-ziWPnxXp.js → index-DAvhF5vB.js} +8 -8
  58. package/dist/{index-Bq0PnZa6.cjs → index-DAw4LkTg.cjs} +1 -1
  59. package/dist/{index-DQ6jmi_D.cjs → index-DEJ3o_Up.cjs} +1 -1
  60. package/dist/index-DFkCQ0f_.js +10279 -0
  61. package/dist/{index-CMK4Oemk.js → index-DHAhIKmQ.js} +2 -2
  62. package/dist/{index-DCSqmK8s.js → index-DJ53lh6a.js} +3 -3
  63. package/dist/{index-Adu9r9O6.js → index-DKdzfYLA.js} +4 -4
  64. package/dist/index-DPM6pfAI.js +161 -0
  65. package/dist/{index-CIGlEa5l.js → index-DUq4XELr.js} +1 -1
  66. package/dist/index-DWBWvNDH.js +991 -0
  67. package/dist/{index-DPpm7s-I.cjs → index-DieG68B-.cjs} +1 -1
  68. package/dist/{index-CW4qJdP8.cjs → index-DmwxzDGW.cjs} +1 -1
  69. package/dist/{index-A81u786j.js → index-Dz6JFp0r.js} +2 -2
  70. package/dist/{index-B4CN6AYM.js → index-GYxiPBtz.js} +5 -5
  71. package/dist/{index-CTMMHmwj.js → index-OJlYJM1j.js} +261 -257
  72. package/dist/{index-DkYlSN6W.js → index-PL7-PIPs.js} +2 -2
  73. package/dist/{index-DMmOKrQZ.cjs → index-TRkfc1lq.cjs} +1 -1
  74. package/dist/{index-BJ-thkmN.cjs → index-aYsnw0xY.cjs} +1 -1
  75. package/dist/{index-Fmivd5TB.js → index-heDO7aCF.js} +2 -2
  76. package/dist/{index-DntOrygq.js → index-jFCWOSpo.js} +6 -6
  77. package/dist/{index-D-CWxIQ_.cjs → index-n7GfhOVN.cjs} +1 -1
  78. package/dist/{index-BKmXhP9j.cjs → index-q2BN200x.cjs} +1 -1
  79. package/dist/{index-CyCYlmRK.js → index-roi8I5S3.js} +1 -1
  80. package/dist/{index-BZWiTy-K.cjs → index-xttC7OK3.cjs} +1 -1
  81. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-1iUOnCnG.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-B9qUQdPf.cjs} +1 -1
  82. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CvrpCION.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DeDQ2Vpf.js} +4 -4
  83. package/dist/{isString-DNBlKLZH.cjs → isString-CGrvcmBw.cjs} +1 -1
  84. package/dist/{isString-D42PBiNa.js → isString-ChmgnNIb.js} +1 -1
  85. package/dist/{main-CRDks8iO.cjs → main-CpVlWVrP.cjs} +1 -1
  86. package/dist/{main-8ogz4WPH.js → main-y6n9UlHW.js} +4 -4
  87. package/dist/{menuIndex-4akJxcU5.cjs → menuIndex-CYeoqj0a.cjs} +1 -1
  88. package/dist/{menuIndex-DUFFnrEE.js → menuIndex-D3tjk7D7.js} +1 -1
  89. package/dist/{request-BC2w2vGr.cjs → request-Dl8yi2iS.cjs} +6 -6
  90. package/dist/{request-CbksSN84.js → request-XJsZ4h2T.js} +80 -79
  91. package/dist/ss-component.cjs +1 -1
  92. package/dist/ss-component.css +2 -2
  93. package/dist/ss-component.js +12 -12
  94. package/dist/ss-component2.cjs +1 -1
  95. package/dist/ss-component2.js +13 -13
  96. package/dist/{threeModel-BltK6ahE.js → threeModel-C5eTXG0s.js} +5 -5
  97. package/dist/{threeModel-pBCJbJUj.cjs → threeModel-Dg-07eQL.cjs} +1 -1
  98. package/dist/{threePreview-LzLgioUW.cjs → threePreview-CszWwdug.cjs} +1 -1
  99. package/dist/{threePreview-qDH9f8Ts.js → threePreview-DNQsBr54.js} +5 -5
  100. package/dist/{threeSceneView-Dj7Ei0tl.cjs → threeSceneView-BU4wHFeI.cjs} +1 -1
  101. package/dist/{threeSceneView-lpkLya7B.js → threeSceneView-DUmO1oB5.js} +39 -39
  102. package/dist/{threeSceneViewForCPMPIP-u6-wkzf5.js → threeSceneViewForCPMPIP-CC-c7ijL.js} +9 -9
  103. package/dist/{threeSceneViewForCPMPIP-CWy6aopm.cjs → threeSceneViewForCPMPIP-KrPFDjjY.cjs} +1 -1
  104. package/dist/{threeTrackPathView-ChBJzHaY.js → threeTrackPathView-CNw6tT-i.js} +6 -6
  105. package/dist/{threeTrackPathView-B9p_9ESK.cjs → threeTrackPathView-D09nMCuF.cjs} +1 -1
  106. package/dist/{threeViewerHost-CSn-5XgQ.cjs → threeViewerHost-Df7LK7Wh.cjs} +1 -1
  107. package/dist/{threeViewerHost-DuJdDO8l.js → threeViewerHost-yEXWE3BL.js} +3 -3
  108. package/dist/{urdfTree-CPWlk_zb.cjs → urdfTree-BRAUDT58.cjs} +1 -1
  109. package/dist/{urdfTree-CHqT5mZW.js → urdfTree-WPGh2KP8.js} +1 -1
  110. package/dist/{workpieceTreePanel-6yKh6IEH.cjs → workpieceTreePanel-D4MJD2ee.cjs} +1 -1
  111. package/dist/{workpieceTreePanel-BtXiR5Fg.js → workpieceTreePanel-DFlTuJZM.js} +4 -4
  112. package/package.json +1 -1
  113. package/dist/clone-lZuOJI1b.cjs +0 -1
  114. package/dist/index-BXP2Ie3L.js +0 -619
  115. package/dist/index-Bi-PYsF7.js +0 -151
  116. package/dist/index-COvTB4A8.js +0 -10242
  117. package/dist/index-D7H81vN9.cjs +0 -1
  118. package/dist/index-E8q1Dd5H.cjs +0 -2
  119. package/dist/index-MaP8ZSc8.cjs +0 -25
  120. package/dist/index-mHYDJOd1.cjs +0 -1
@@ -0,0 +1,25 @@
1
+ "use strict";var Nu=Object.defineProperty;var Au=(a,l,r)=>l in a?Nu(a,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[l]=r;var Wr=(a,l,r)=>Au(a,typeof l!="symbol"?l+"":l,r);const e=require("vue"),Ha=require("./request-Dl8yi2iS.cjs"),A=require("./index-BUD_iRcK.cjs"),ll=require("./index-CR69-jEg.cjs"),ue=require("./index-CRJ8dFCC.cjs"),Zl=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Bl=require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-B9qUQdPf.cjs"),wr=require("./index-BOkUwKV5.cjs"),So=require("./threeViewerHost-Df7LK7Wh.cjs"),Nr=require("./index-DmwxzDGW.cjs"),ls=require("./index-BGmW1CP0.cjs"),Ys=require("./index-Btb3Lv0L.cjs");;/* empty css */const Eo=require("./isString-CGrvcmBw.cjs"),rs=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),Js=require("./index-BVaHwt5f.cjs"),zu=require("./index-BYFXJgbP.cjs"),Mn=require("./MTLLoader-CkcKuBZC.cjs"),Mu=require("./URDFLoader-D8tyuenp.cjs");var Iu="[object Boolean]";function Xs(a){return a===!0||a===!1||Ha.isObjectLike(a)&&Ha.baseGetTag(a)==Iu}function Ou(a){return a===void 0}const Lu=a=>a.match(/\((.*)\)/)[1],Ru={__name:"index",props:{isVisible:{type:Boolean,default:!1},title:{type:String,default:""},placement:{type:String,default:"bottom"},width:{type:Number,default:200},trigger:{type:String,default:"click"}},setup(a){const l=a,r=e.ref(null),n=e.ref(!1),t=e.ref(null);return e.watch(()=>l==null?void 0:l.isVisible,()=>{n.value=l==null?void 0:l.isVisible},{deep:!0,immediate:!0}),e.watch(()=>t.value,()=>{e.nextTick(()=>{var s,v;(v=(s=r.value)==null?void 0:s.updatePopper)==null||v.call(s)})},{deep:!0,immediate:!0}),(s,v)=>{const f=e.resolveComponent("el-popover");return e.openBlock(),e.createBlock(f,{visible:n.value,"onUpdate:visible":v[0]||(v[0]=d=>n.value=d),trigger:l.trigger,title:l==null?void 0:l.title,placement:l==null?void 0:l.placement,width:l==null?void 0:l.width,ref_key:"popOverRef",ref:r,"trigger-keys":"[]"},{reference:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(s.$slots,"reference",{ref_key:"referenceRef",ref:t})])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(s.$slots,"content")])]),_:3},8,["visible","trigger","title","placement","width"])}}},$u=e.defineComponent({__name:"index",props:{value:{type:[String,Number],default:""},columnContent:{type:Object,default:{}}},setup(a){const l=a,r=e.computed(()=>{var d,y,g,c,D,I;const n=l.value??"";let t=(d=l==null?void 0:l.columnContent)==null?void 0:d.filter;if(t=(y=ue.analyzeSplitToContent(t,","))==null?void 0:y.map(k=>((k==null?void 0:k[(k==null?void 0:k.length)-1])===","&&(k=k==null?void 0:k.slice(0,(k==null?void 0:k.length)-1)),k)),t=t==null?void 0:t.find(k=>(k==null?void 0:k[0])==="("),(t==null?void 0:t[0])==="("&&(t=t==null?void 0:t.slice(1,(t==null?void 0:t.length)-1)),t=t==null?void 0:t.split("||"),!t)return{backgroundColor:void 0,color:void 0};let s=(c=(g=l==null?void 0:l.columnContent)==null?void 0:g.options)==null?void 0:c.findIndex(k=>(k==null?void 0:k.value)===n);s=t==null?void 0:t[s],s=ue.analyzeSplitToContent(s,","),s=s==null?void 0:s.map(k=>((k==null?void 0:k[(k==null?void 0:k.length)-1])===","&&(k=k==null?void 0:k.slice(0,(k==null?void 0:k.length)-1)),k));let v=s==null?void 0:s.find(k=>k==null?void 0:k.includes("@TextBackRGBA"));v?v=ue.rgbaToColor((D=v==null?void 0:v.split("="))==null?void 0:D[1]):v=void 0;let f=s==null?void 0:s.find(k=>k==null?void 0:k.includes("@TextRGBA"));return f?f=ue.rgbaToColor((I=f==null?void 0:f.split("="))==null?void 0:I[1]):f=void 0,{backgroundColor:v,color:f}});return(n,t)=>a.value!==void 0&&a.value!==null?(e.openBlock(),e.createElementBlock("span",{key:0,class:"task-status-tag",style:e.normalizeStyle(r.value)},e.toDisplayString(a.value===0?"0":a.value),5)):e.createCommentVNode("",!0)}}),Vu=Zl._export_sfc($u,[["__scopeId","data-v-3290070b"]]);function Fu(a,l,r,n={}){if(!a||!l||!r||r.length!==4)return;const t=a.getContext("2d");if(!t)return;const{color:s="rgba(255, 235, 59, 0.3)",strokeWidth:v=2,fillOpacity:f=.2}=n,d=a.getBoundingClientRect(),y=l.getBoundingClientRect(),g=l.naturalWidth,c=l.naturalHeight,D=y.width/g,I=y.height/c,k=Math.min(D,I),W=g*k,M=c*k,R=(d.width-W)/2,j=(d.height-M)/2,E=r.map(([x,b])=>{const _=R+x*W,$=j+b*M;return{x:_,y:$}});t.clearRect(0,0,a.width,a.height),t.beginPath(),t.moveTo(E[0].x,E[0].y);for(let x=1;x<E.length;x++)t.lineTo(E[x].x,E[x].y);t.closePath();const w=s.replace(/[\d.]+\)$/,`${f})`);t.fillStyle=w,t.fill(),t.strokeStyle=s.replace(/[\d.]+\)$/,"1)"),t.lineWidth=v,t.stroke()}function xi(a){if(!a)return;const l=a.getContext("2d");l&&l.clearRect(0,0,a.width,a.height)}function ns(a,l){if(!a||!l)return null;const r=a[l];return!r||!r.bboxNorm||!Array.isArray(r.bboxNorm)||r.bboxNorm.length!==4?null:{bboxNorm:r.bboxNorm,imageName:r.imageName||""}}const Pu={key:0,class:"ocr-img-preview-root"},ju={class:"ocr-img-preview-window"},Hu={key:0,class:"img-preview-body"},Uu={class:"img-preview-header"},qu={class:"img-header-left"},Wu={class:"img-name"},Ku={key:0,class:"img-header-right"},Gu={class:"img-index"},Yu={key:0,class:"img-thumb-list"},Ju=["onClick"],Xu={key:1,class:"thumb-placeholder"},Zu={class:"thumb-name"},Qu={class:"img-preview-container"},ed={key:0,class:"img-placeholder"},ad={key:2,class:"img-placeholder"},ld={key:0},rd={key:1},nd={key:1,class:"img-placeholder"},id=e.defineComponent({__name:"imgPreview",props:{visible:{type:Boolean,default:!1},images:{type:Array,default:()=>[]},defaultImageName:{type:String,default:""},fieldMeta:{type:Object,default:()=>({})},focusedFieldName:{type:String,default:""}},emits:["update:visible","close"],setup(a,{emit:l}){const r=a,n=l,t=e.computed({get:()=>r.visible,set:N=>n("update:visible",N)});let s=!1,v="",f=0,d=0,y=0,g=0,c=0,D=0,I=null;const k=N=>{var U,Se;const se=(Se=(U=N==null?void 0:N.target)==null?void 0:U.closest)==null?void 0:Se.call(U,".ocr-img-preview-window");return se||document.querySelector(".ocr-img-preview-window")},W=N=>{if(!N||N==="none")return{tx:0,ty:0};let se=N.match(/matrix\(([^)]+)\)/);if(se){const U=se[1].split(",").map(Se=>Number(Se.trim()));return{tx:(U==null?void 0:U[4])||0,ty:(U==null?void 0:U[5])||0}}if(se=N.match(/matrix3d\(([^)]+)\)/),se){const U=se[1].split(",").map(Se=>Number(Se.trim()));return{tx:(U==null?void 0:U[12])||0,ty:(U==null?void 0:U[13])||0}}return se=N.match(/translate\(\s*([-\d.]+)px\s*,\s*([-\d.]+)px\s*\)/),se?{tx:Number(se[1])||0,ty:Number(se[2])||0}:{tx:0,ty:0}},M=(N,se,U)=>{N.style.transform=`translate(${se}px, ${U}px)`},R=N=>{const se=k(N);if(!se)return;s=!0,I=se,v="move",f=N.clientX,d=N.clientY;const U=window.getComputedStyle(se),{tx:Se,ty:Le}=W(U.transform);c=Se,D=Le,document.addEventListener("mousemove",E),document.addEventListener("mouseup",w)},j=(N,se)=>{const U=k(N);if(!U)return;s=!0,I=U,v=se,f=N.clientX,d=N.clientY;const Se=U.getBoundingClientRect();y=Se.width,g=Se.height;const Le=window.getComputedStyle(U),{tx:Fe,ty:ia}=W(Le.transform);c=Fe,D=ia,document.addEventListener("mousemove",E),document.addEventListener("mouseup",w)},E=N=>{if(!s||!I)return;const se=N.clientX-f,U=N.clientY-d,Se=360,Le=420;let Fe=y,ia=g,Ba=c,ee=D;if(v==="move"){Ba=c+se,ee=D+U,M(I,Ba,ee);return}if(v.includes("right")&&(Fe=Math.max(Se,y+se)),v.includes("bottom")&&(ia=Math.max(Le,g+U)),v.includes("left")){const da=y-se;da<Se?(Fe=Se,Ba=c+(y-Se)):(Fe=da,Ba=c+se)}if(v.includes("top")){const da=g-U;da<Le?(ia=Le,ee=D+(g-Le)):(ia=da,ee=D+U)}I.style.width=`${Fe}px`,I.style.height=`${ia}px`,M(I,Ba,ee)},w=()=>{s=!1,v="",I=null,document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",w)},x=e.ref([]),b=e.ref(!1);e.watch(()=>r.images,async N=>{if(!Array.isArray(N)||N.length===0){x.value=[];return}b.value=!0;const se=[];for(const U of N)if(U.url&&!U.url.startsWith("blob:")&&!U.url.startsWith("http"))try{const Se=await Bl.downloadFile(U.url),Le=URL.createObjectURL(Se);se.push({...U,blobUrl:Le})}catch(Se){console.error(`Failed to load image for preview: ${U.url}`,Se),se.push({...U,blobUrl:""})}else se.push({...U,blobUrl:U.url});x.value=se,b.value=!1},{deep:!0,immediate:!0});const _=e.ref(0),$=e.ref(null),F=e.ref(null),Y=e.computed(()=>x.value[_.value]||null),oe=()=>{if(!x.value.length){_.value=0;return}if(r.defaultImageName){const N=x.value.findIndex(se=>(se==null?void 0:se.name)===r.defaultImageName);_.value=N>=0?N:0}else _.value=0},ye=N=>{if(!x.value.length)return;const se=Math.max(0,Math.min(N,x.value.length-1));_.value=se},Ie=()=>ye(_.value-1),V=()=>ye(_.value+1),pe=N=>{if(!N)return;const se=x.value.findIndex(U=>(U==null?void 0:U.name)===N);se>=0&&(_.value=se)},Q=()=>{if(!F.value)return;const N=F.value.parentElement;if(!N)return;const se=N.getBoundingClientRect();F.value.width=se.width,F.value.height=se.height},ce=()=>{var Se,Le;if(!F.value||!$.value||!r.focusedFieldName){F.value&&xi(F.value);return}const N=(Se=$.value.$el)==null?void 0:Se.querySelector("img");if(!N)return;if(!N.complete||N.naturalWidth===0){N.onload=()=>{e.nextTick(()=>{ce()})};return}const se=((Le=Y.value)==null?void 0:Le.name)||"",U=ns(r.fieldMeta,r.focusedFieldName);if(!U){xi(F.value);return}if(U.imageName!==se){xi(F.value);return}Q(),Fu(F.value,N,U.bboxNorm)},Be=()=>{e.nextTick(()=>{Q(),ce()})};e.watch(()=>r.focusedFieldName,()=>{if(!t.value)return;const N=ns(r.fieldMeta,r.focusedFieldName);N!=null&&N.imageName&&pe(N.imageName),e.nextTick(()=>{ce()})}),e.watch(()=>{var N;return(N=Y.value)==null?void 0:N.name},()=>{t.value&&e.nextTick(()=>{F.value&&xi(F.value),ce()})}),e.watch(()=>r.visible,N=>{N?(oe(),e.nextTick(()=>{Q(),ce()})):F.value&&xi(F.value)}),e.watch(()=>r.defaultImageName,()=>{t.value&&oe()});let Ve=null;e.onMounted(()=>{var N;typeof ResizeObserver<"u"&&(Ve=new ResizeObserver(()=>{Q(),e.nextTick(()=>{ce()})}),(N=F.value)!=null&&N.parentElement&&Ve.observe(F.value.parentElement))}),e.onUnmounted(()=>{Ve&&(Ve.disconnect(),Ve=null),document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",w)});const me=()=>{F.value&&xi(F.value),n("update:visible",!1),n("close")};return(N,se)=>{var ia,Ba;const U=e.resolveComponent("el-button"),Se=e.resolveComponent("el-image"),Le=e.resolveComponent("Loading"),Fe=e.resolveComponent("el-icon");return t.value?(e.openBlock(),e.createElementBlock("div",Pu,[se[12]||(se[12]=e.createElementVNode("div",{class:"ocr-img-preview-backdrop"},null,-1)),e.createElementVNode("div",ju,[e.createElementVNode("div",{class:"ocr-img-preview-header",onMousedown:e.withModifiers(R,["stop"])},[se[8]||(se[8]=e.createElementVNode("span",{class:"ocr-img-preview-title"},"文件预览",-1)),e.createElementVNode("button",{type:"button",class:"ocr-img-preview-close",onClick:me},"×")],32),e.createElementVNode("div",{class:"resizable-handle top",onMousedown:se[0]||(se[0]=e.withModifiers(ee=>j(ee,"top"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle right",onMousedown:se[1]||(se[1]=e.withModifiers(ee=>j(ee,"right"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom",onMousedown:se[2]||(se[2]=e.withModifiers(ee=>j(ee,"bottom"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle left",onMousedown:se[3]||(se[3]=e.withModifiers(ee=>j(ee,"left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle top-left",onMousedown:se[4]||(se[4]=e.withModifiers(ee=>j(ee,"top-left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle top-right",onMousedown:se[5]||(se[5]=e.withModifiers(ee=>j(ee,"top-right"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom-left",onMousedown:se[6]||(se[6]=e.withModifiers(ee=>j(ee,"bottom-left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom-right",onMousedown:se[7]||(se[7]=e.withModifiers(ee=>j(ee,"bottom-right"),["stop"]))},null,32),Y.value?(e.openBlock(),e.createElementBlock("div",Hu,[e.createElementVNode("div",Uu,[e.createElementVNode("div",qu,[e.createElementVNode("span",Wu,e.toDisplayString(Y.value.name?Y.value.name+(Y.value.url&&Y.value.url.lastIndexOf(".")!==-1?Y.value.url.substring(Y.value.url.lastIndexOf(".")):""):""),1)]),x.value.length>1?(e.openBlock(),e.createElementBlock("div",Ku,[e.createVNode(U,{size:"small",disabled:_.value===0,onClick:Ie},{default:e.withCtx(()=>se[9]||(se[9]=[e.createTextVNode("上一张")])),_:1,__:[9]},8,["disabled"]),e.createElementVNode("span",Gu,e.toDisplayString(_.value+1)+" / "+e.toDisplayString(x.value.length),1),e.createVNode(U,{size:"small",disabled:_.value===x.value.length-1,onClick:V},{default:e.withCtx(()=>se[10]||(se[10]=[e.createTextVNode("下一张")])),_:1,__:[10]},8,["disabled"])])):e.createCommentVNode("",!0)]),x.value.length>1?(e.openBlock(),e.createElementBlock("div",Yu,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(ee,da)=>(e.openBlock(),e.createElementBlock("div",{key:(ee.name||"")+"-"+da,class:e.normalizeClass(["img-thumb-item",{active:da===_.value}]),onClick:ie=>ye(da)},[ee!=null&&ee.blobUrl?(e.openBlock(),e.createBlock(Se,{key:0,src:ee.blobUrl,fit:"cover",class:"thumb-image","preview-src-list":[ee.blobUrl],"initial-index":0},null,8,["src","preview-src-list"])):(e.openBlock(),e.createElementBlock("div",Xu,"加载失败")),e.createElementVNode("div",Zu,e.toDisplayString(ee.name||"-"),1)],10,Ju))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",Qu,[b.value?(e.openBlock(),e.createElementBlock("div",ed,[e.createVNode(Fe,{class:"is-loading"},{default:e.withCtx(()=>[e.createVNode(Le)]),_:1}),se[11]||(se[11]=e.createElementVNode("span",null,"图片加载中...",-1))])):(ia=Y.value)!=null&&ia.blobUrl?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(Se,{ref_key:"imageRef",ref:$,src:Y.value.blobUrl,fit:"contain",class:"preview-image","preview-src-list":[Y.value.blobUrl],onLoad:Be},null,8,["src","preview-src-list"]),e.createElementVNode("canvas",{ref_key:"canvasRef",ref:F,class:"highlight-canvas"},null,512)],64)):(e.openBlock(),e.createElementBlock("div",ad,[(Ba=Y.value)!=null&&Ba.url?(e.openBlock(),e.createElementBlock("span",ld,"图片加载失败")):(e.openBlock(),e.createElementBlock("span",rd,"暂无图片"))]))])])):(e.openBlock(),e.createElementBlock("div",nd,"暂无图片"))])])):e.createCommentVNode("",!0)}}}),od=Zl._export_sfc(id,[["__scopeId","data-v-48a4ecb1"]]),td={class:"cert-preview-body"},sd={key:0,class:"pdf-preview-container"},cd={class:"thumbs"},ud=["onClick"],dd={class:"thumb-img"},pd=["src"],fd={key:1,class:"thumb-loading"},hd={class:"thumb-title"},vd={class:"viewer"},md={key:0,class:"viewer-img-wrap"},yd=["src"],gd={key:1,class:"viewer-loading"},bd=e.defineComponent({__name:"CertificatePreview",props:{visible:{type:Boolean},versions:{}},emits:["update:visible"],setup(a,{emit:l}){const r=a,n=l,t=e.ref(""),s=e.ref(""),v=e.computed(()=>(r.versions||[]).find(k=>String(k.versionId)===String(t.value))),f=e.ref({}),d=e.ref(""),y=e.ref("证书附件.pdf"),g=()=>{try{Object.values(f.value||{}).forEach(k=>{k&&URL.revokeObjectURL(k)}),d.value&&URL.revokeObjectURL(d.value)}catch{}f.value={},d.value=""},c=async k=>{if(!k||k.fileType==="pdf")return;const W=Array.isArray(k.images)?k.images:[];for(const M of W){const R=M==null?void 0:M.url;if(!(!R||f.value[R]))try{const j=await A.platformDownloadFile({url:R}),E=URL.createObjectURL(j.data);f.value={...f.value,[R]:E}}catch{}}},D=async k=>{var M;if(!k||k.fileType!=="pdf"){d.value="";return}const W=k.sourceUrl||"";if(!W){d.value="";return}if(d.value){try{URL.revokeObjectURL(d.value)}catch{}d.value=""}try{console.log("[CertificatePreview] 下载PDF附件:",{url:W,versionId:k==null?void 0:k.versionId,certNo:k==null?void 0:k.certNo});const R=await A.platformDownloadFile({url:W});console.log("[CertificatePreview] PDF响应:",{url:W,status:R==null?void 0:R.status,size:(M=R==null?void 0:R.data)==null?void 0:M.size});const j=URL.createObjectURL(R.data);d.value=j;const E=k.certNo?String(k.certNo):"";y.value=E?`${E}.pdf`:"证书附件.pdf"}catch(R){console.error("[CertificatePreview] PDF加载失败:",{url:W,error:R}),d.value=""}};e.watch(()=>r.visible,async k=>{var M;if(!k){g();return}const W=(M=r.versions)==null?void 0:M[0];t.value=(W==null?void 0:W.versionId)||"",await c(W),await D(W)},{immediate:!0}),e.watch(()=>t.value,async()=>{var W,M;const k=v.value;if(!k){s.value="",d.value="";return}if(k.fileType==="pdf"){s.value="",await D(k);return}d.value="",s.value=((M=(W=k.images)==null?void 0:W[0])==null?void 0:M.url)||"",await c(k)},{immediate:!0});const I=()=>{n("update:visible",!1),g()};return e.onBeforeUnmount(()=>{g()}),(k,W)=>{const M=e.resolveComponent("el-empty"),R=e.resolveComponent("el-tab-pane"),j=e.resolveComponent("el-tabs"),E=e.resolveComponent("el-button"),w=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(w,{"model-value":k.visible,title:"证书附件预览",width:"1100px","close-on-click-modal":!1,onClose:I},{footer:e.withCtx(()=>[e.createVNode(E,{id:"themeBorderButton",onClick:I},{default:e.withCtx(()=>W[1]||(W[1]=[e.createTextVNode("关闭")])),_:1,__:[1]})]),default:e.withCtx(()=>[k.versions&&k.versions.length>0?(e.openBlock(),e.createBlock(j,{key:0,modelValue:t.value,"onUpdate:modelValue":W[0]||(W[0]=x=>t.value=x),type:"card",class:"cert-version-tabs"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.versions,x=>(e.openBlock(),e.createBlock(R,{key:x.versionId,name:x.versionId,label:x.label},{default:e.withCtx(()=>[e.createElementVNode("div",td,[x.fileType==="pdf"?(e.openBlock(),e.createElementBlock("div",sd,[d.value?(e.openBlock(),e.createBlock(ll.SsFilePreview,{key:1,fileName:y.value,blobUrl:d.value},null,8,["fileName","blobUrl"])):(e.openBlock(),e.createBlock(M,{key:0,description:"加载中"}))])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",cd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.images||[],b=>(e.openBlock(),e.createElementBlock("div",{key:b.url,class:e.normalizeClass(["thumb",{active:b.url===s.value}]),onClick:_=>s.value=b.url},[e.createElementVNode("div",dd,[f.value[b.url]?(e.openBlock(),e.createElementBlock("img",{key:0,src:f.value[b.url]},null,8,pd)):(e.openBlock(),e.createElementBlock("div",fd,"加载中"))]),e.createElementVNode("div",hd,e.toDisplayString(b.name),1)],10,ud))),128))]),e.createElementVNode("div",vd,[s.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[f.value[s.value]?(e.openBlock(),e.createElementBlock("div",md,[e.createElementVNode("img",{class:"viewer-img",src:f.value[s.value]},null,8,yd)])):(e.openBlock(),e.createElementBlock("div",gd,"加载中"))],64)):(e.openBlock(),e.createBlock(M,{key:0,description:"暂无图片"}))])],64))])]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(M,{key:1,description:"暂无可预览的证书附件"}))]),_:1},8,["model-value"])}}}),kd=Zl._export_sfc(bd,[["__scopeId","data-v-220703c0"]]),xd={class:"ocr-candidate-wrap"},wd={class:"ocr-candidate-left"},_d={key:1},Sd={key:0},Ed={key:1},Cd={key:2},Dd={key:3},Bd={key:0,class:"ocr-candidate-right"},Td={class:"ocr-candidate-actions"},Nd={key:1},Ad={class:"dialog-footer"},zd={__name:"OCRCandidateDialog",props:{visible:{type:Boolean,default:!1},candidates:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},nameProp:{type:String,default:""},mfrProp:{type:String,default:""}},emits:["update:visible","submit","preview-file"],setup(a,{emit:l}){const r=(_=[])=>{const $=[],F=Y=>{(Y||[]).forEach(oe=>{if(!oe)return;const ye=oe.children||oe.childrens||oe.columns;Array.isArray(ye)&&ye.length>0?F(ye):$.push(oe)})};return F(_),$},n=a,t=l,s=e.computed(()=>{var _;return((_=D.value)==null?void 0:_.allowAdd)!==!1}),v=e.computed(()=>{var _;return((_=D.value)==null?void 0:_.allowReplace)!==!1}),f=_=>{if(!_)return[];if(Array.isArray(_))return _;if(typeof _=="string")try{const $=JSON.parse(_);return Array.isArray($)?$:[]}catch{return[]}return[]},d=_=>{t("preview-file",_)},y=e.ref([]),g=e.ref(0),c=e.ref("");e.watch(()=>n.candidates,_=>{var $,F;y.value=(_||[]).map(Y=>({...Y,...(Y==null?void 0:Y.ocrRow)||{},selectedTargetId:(Y==null?void 0:Y.selectedTargetId)||"",__decision:Y==null?void 0:Y.__decision})),g.value=0,c.value=((F=($=y.value)==null?void 0:$[0])==null?void 0:F.selectedTargetId)||""},{immediate:!0,deep:!0}),e.watch(()=>n.visible,_=>{var $,F;_&&(g.value=0,c.value=((F=($=y.value)==null?void 0:$[0])==null?void 0:F.selectedTargetId)||"")});const D=e.computed(()=>{var $;const _=Number(g.value||0);return(($=y.value||[])==null?void 0:$[_])||null}),I=e.computed(()=>(r(n.columns||[])||[]).filter(F=>F&&F.prop).filter(F=>F.type!=="operate"&&F.label!=="操作"&&F.prop!=="operate")),k=e.computed(()=>I.value.filter(_=>_.label!=="证书附件"&&_.prop!=="证书附件")),W=_=>{if(!_)return;const $=(y.value||[]).findIndex(F=>(F==null?void 0:F.idx)===(_==null?void 0:_.idx));$>-1&&(g.value=$,c.value=(_==null?void 0:_.selectedTargetId)||"")},M=_=>{if(!_){c.value="";return}c.value=String((_==null?void 0:_.id)??"")},R=(_,$="")=>{const F=Number(g.value||0),Y=y.value||[],oe=Y[F];oe&&(oe.__decision=_,oe.selectedTargetId=$,c.value=$,y.value=[...Y])},j=()=>R("skip",""),E=()=>R("add",""),w=()=>{if(!c.value){Ha.ElMessage.warning("请先选择要替换的目标记录");return}R("replace",c.value)},x=()=>{t("update:visible",!1)},b=()=>{const _=y.value||[];if(_.find(F=>(F==null?void 0:F.__decision)==="replace"&&!(F!=null&&F.selectedTargetId))){Ha.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}t("submit",_),t("update:visible",!1)};return(_,$)=>{const F=e.resolveComponent("el-table-column"),Y=e.resolveComponent("svg-icon"),oe=e.resolveComponent("el-table"),ye=e.resolveComponent("el-button"),Ie=e.resolveComponent("el-alert");return e.openBlock(),e.createBlock(wr.ssDialog,{title:"OCR候选匹配",visible:a.visible,"close-on-click-modal":!1,width:"90%",style:{maxWidth:"1200px"},onBeforeDestroy:x},{default:e.withCtx(()=>{var V,pe;return[e.createElementVNode("div",xd,[e.createElementVNode("div",wd,[$[0]||($[0]=e.createElementVNode("div",{class:"ocr-candidate-title"},"待处理OCR行(可跳过)",-1)),e.createVNode(oe,{data:y.value,border:"",stripe:"","max-height":"300",style:{width:"100%"},"highlight-current-row":"",onCurrentChange:W},{default:e.withCtx(()=>[e.createVNode(F,{type:"index",label:"序号",width:"60"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,Q=>(e.openBlock(),e.createBlock(F,{key:Q.prop,label:Q.label,prop:Q.prop,"min-width":Q.minWidth||160},{default:e.withCtx(({row:ce})=>[Q.label==="证书附件"||Q.prop==="证书附件"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[f(ce==null?void 0:ce[Q.prop]).length>0?(e.openBlock(),e.createBlock(Y,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:e.withModifiers(Be=>d({row:ce,prop:Q.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(e.openBlock(),e.createElementBlock("span",_d,"-"))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString((ce==null?void 0:ce[Q.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128)),e.createVNode(F,{label:"候选数",width:"90",fixed:"right"},{default:e.withCtx(({row:Q})=>[e.createTextVNode(e.toDisplayString(((Q==null?void 0:Q.candidates)||[]).length),1)]),_:1}),e.createVNode(F,{label:"处理状态",width:"120",fixed:"right"},{default:e.withCtx(({row:Q})=>[(Q==null?void 0:Q.__decision)==="replace"?(e.openBlock(),e.createElementBlock("span",Sd,"替换")):(Q==null?void 0:Q.__decision)==="add"?(e.openBlock(),e.createElementBlock("span",Ed,"新增")):(Q==null?void 0:Q.__decision)==="skip"?(e.openBlock(),e.createElementBlock("span",Cd,"跳过")):(e.openBlock(),e.createElementBlock("span",Dd,"未处理"))]),_:1})]),_:1},8,["data"])]),y.value&&y.value.length>0?(e.openBlock(),e.createElementBlock("div",Bd,[$[4]||($[4]=e.createElementVNode("div",{class:"ocr-candidate-title"},"当前行候选记录(同编号)",-1)),e.createElementVNode("div",Td,[e.createVNode(ye,{id:"themeBorderButton",onClick:j},{default:e.withCtx(()=>$[1]||($[1]=[e.createTextVNode("跳过本行")])),_:1,__:[1]}),e.createVNode(ye,{id:"themeBorderButton",onClick:E,disabled:!s.value},{default:e.withCtx(()=>$[2]||($[2]=[e.createTextVNode("新增本行")])),_:1,__:[2]},8,["disabled"]),e.createVNode(ye,{class:"ok-button",id:"themeButton",onClick:w,disabled:!v.value||!c.value},{default:e.withCtx(()=>$[3]||($[3]=[e.createTextVNode("替换选中记录")])),_:1,__:[3]},8,["disabled"])]),(((V=D.value)==null?void 0:V.candidates)||[]).length===0?(e.openBlock(),e.createBlock(Ie,{key:0,title:"该编号暂无候选记录,可选择“新增本行”或“跳过本行”。",type:"info",closable:!1,"show-icon":"",style:{margin:"8px 0"}})):e.createCommentVNode("",!0),e.createVNode(oe,{data:((pe=D.value)==null?void 0:pe.candidates)||[],border:"",stripe:"","max-height":"300",style:{width:"100%"},onCurrentChange:M,"highlight-current-row":""},{default:e.withCtx(()=>[e.createVNode(F,{type:"index",label:"序号",width:"60"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I.value,Q=>(e.openBlock(),e.createBlock(F,{key:Q.prop,label:Q.label,prop:Q.prop,"min-width":Q.minWidth||160},{default:e.withCtx(({row:ce})=>[Q.label==="证书附件"||Q.prop==="证书附件"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[f(ce==null?void 0:ce[Q.prop]).length>0?(e.openBlock(),e.createBlock(Y,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:e.withModifiers(Be=>d({row:ce,prop:Q.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(e.openBlock(),e.createElementBlock("span",Nd,"-"))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString((ce==null?void 0:ce[Q.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128))]),_:1},8,["data"])])):e.createCommentVNode("",!0)])]}),footer:e.withCtx(()=>[e.createElementVNode("div",Ad,[e.createVNode(ye,{id:"themeBorderButton",onClick:x},{default:e.withCtx(()=>$[5]||($[5]=[e.createTextVNode("取消")])),_:1,__:[5]}),e.createVNode(ye,{class:"ok-button",id:"themeButton",onClick:b},{default:e.withCtx(()=>$[6]||($[6]=[e.createTextVNode("提交已处理")])),_:1,__:[6]})])]),_:1},8,["visible"])}}},Md=Zl._export_sfc(zd,[["__scopeId","data-v-89e0489c"]]),Id={class:"ocr-preview-content"},Od={class:"ocr-preview-tip"},Ld={class:"ocr-preview-table"},Rd={style:{display:"flex","align-items":"center",gap:"8px"}},$d={class:"dialog-footer"},Vd={__name:"OCRResultPreviewDialog",props:{visible:{type:Boolean,default:!1},ocrPreviewData:{type:Array,default:()=>[]},ocrPreviewColumns:{type:Array,default:()=>[]},ocrSelectedFields:{type:Array,default:()=>[]}},emits:["update:visible","update:ocrPreviewData","update:ocrSelectedFields","confirm","fieldChange"],setup(a,{emit:l}){const r=a,n=l,t=e.ref([]),s=e.ref([]),v=e.ref([]);e.watch(()=>r.visible,I=>{I&&(t.value=JSON.parse(JSON.stringify(r.ocrPreviewData)),s.value=JSON.parse(JSON.stringify(r.ocrPreviewColumns)),v.value=[...r.ocrSelectedFields])});const f=(I,k)=>{const W=[...v.value];if(k)W.includes(I)||W.push(I);else{const M=W.indexOf(I);M>-1&&W.splice(M,1)}v.value=W,n("update:ocrSelectedFields",W)},d=(I,k,W)=>{n("fieldChange",{rowIndex:I,prop:k,value:W})},y=()=>{n("update:ocrPreviewData",t.value),n("confirm",t.value),n("update:visible",!1)},g=()=>{n("update:visible",!1)},c=I=>typeof I!="number"?"-":`${(I*100).toFixed(1)}%`,D=I=>typeof I!="number"?"#606266":I>=.9?"#67c23a":I>=.7?"#e6a23c":"#f56c6c";return(I,k)=>{const W=e.resolveComponent("el-alert"),M=e.resolveComponent("el-table-column"),R=e.resolveComponent("el-checkbox"),j=e.resolveComponent("el-input"),E=e.resolveComponent("el-table"),w=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(wr.ssDialog,{title:"OCR识别结果预览",visible:a.visible,onBeforeDestroy:g,width:"90%",style:{maxWidth:"1200px"}},{default:e.withCtx(()=>[e.createElementVNode("div",Id,[e.createElementVNode("div",Od,[e.createVNode(W,{title:"请核对识别结果。系统将按 编号+名称+制造厂 规则匹配并替换;未唯一命中但有编号的,将进入候选选择;无编号则直接新增。",type:"info",closable:!1,"show-icon":""})]),e.createElementVNode("div",Ld,[e.createVNode(E,{data:t.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(M,{type:"index",label:"序号",width:"60",fixed:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,x=>(e.openBlock(),e.createBlock(M,{key:x.prop,prop:x.prop,"min-width":x.minWidth||230,"class-name":x.isAccuracy?"accuracy-column":""},{header:e.withCtx(()=>[e.createElementVNode("div",Rd,[x.isAccuracy?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(R,{key:0,"model-value":v.value.includes(x.prop),onChange:b=>f(x.prop,b),onClick:k[0]||(k[0]=e.withModifiers(()=>{},["stop"]))},null,8,["model-value","onChange"])),e.createElementVNode("span",null,e.toDisplayString(x.label),1)])]),default:e.withCtx(({row:b,$index:_})=>[x.isAccuracy?(e.openBlock(),e.createElementBlock("span",{key:0,class:"accuracy-value",style:e.normalizeStyle({color:D(b[x.prop]),fontWeight:500})},e.toDisplayString(c(b[x.prop])),5)):(e.openBlock(),e.createBlock(j,{key:1,modelValue:b[x.prop],"onUpdate:modelValue":$=>b[x.prop]=$,size:"small",placeholder:"请输入"+x.label,onChange:$=>d(_,x.prop,$)},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"]))]),_:2},1032,["prop","min-width","class-name"]))),128))]),_:1},8,["data"])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",$d,[e.createVNode(w,{onClick:g,id:"themeBorderButton"},{default:e.withCtx(()=>k[1]||(k[1]=[e.createTextVNode("取消")])),_:1,__:[1]}),e.createVNode(w,{class:"ok-button",onClick:y,id:"themeButton"},{default:e.withCtx(()=>k[2]||(k[2]=[e.createTextVNode("确认")])),_:1,__:[2]})])]),_:1},8,["visible"])}}},Fd=Zl._export_sfc(Vd,[["__scopeId","data-v-df66eb1f"]]),ni=a=>{var n;let l=a;(l==null?void 0:l[0])==="("&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1));let r=(n=ue.analyzeSplitToContent(l,","))==null?void 0:n.map(t=>((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)),un(t)));return r=r==null?void 0:r.join(","),r};function Zs(a){return Ha.axios.post("http://222.92.178.198:8000/api/v1/excel-chat",a)}function Pd(a){return Ha.axios.get(a,{responseType:"blob"})}let Gl="$R",jd="http://222.92.178.198:55002/AIRobot",tt=["Form","BarChart","FormText","FormBlock"];const Qs=a=>{var r,n;let l=(n=ue.analyzeSplitToContent(a,"@"))==null?void 0:n[((r=ue.analyzeSplitToContent(a,"@"))==null?void 0:r.length)-1];return!!(tt!=null&&tt.some(t=>l==null?void 0:l.includes(t)))},Hd=async(a,l,r,n)=>{var s,v,f,d,y,g,c,D,I,k,W,M,R,j,E,w,x,b,_,$,F,Y,oe,ye,Ie,V,pe,Q,ce,Be,Ve,me,N,se,U,Se,Le,Fe,ia,Ba,ee,da;let t=a;if(Qs(t==null?void 0:t[0])){let ie=Jd(t),fa=(s=ie==null?void 0:ie.filter)==null?void 0:s.join(","),Ee=[];(v=ie==null?void 0:ie.hideContents)==null||v.forEach(We=>{if(We){const ua=We;ua&&Ee.push(`(HideGroup=Yes, prop=${ua})`)}});let ne=(f=ie==null?void 0:ie.formContents)==null?void 0:f.filter(We=>{var ua;return(ua=We==null?void 0:We.filters)==null?void 0:ua.includes("@ShowHide=Hide")});(ne==null?void 0:ne.length)>0&&(ne==null||ne.forEach(We=>{if(We){const ua=We==null?void 0:We.prop;ua&&Ee.push(`(Hide=Yes, prop=${ua})`)}}));let Ae=(n==null?void 0:n.menuFilter)??[];return Array.isArray(Ae)||(Ae=Ae?[Ae]:[]),Ae=[...Ae,...Ee],{key:"Form",name:ie==null?void 0:ie.groupName,value:ie==null?void 0:ie.formContents,contents:Array.isArray((d=ie==null?void 0:ie.contents)==null?void 0:d[0])&&((g=(y=ie==null?void 0:ie.contents)==null?void 0:y[0])!=null&&g.every(We=>Array.isArray(We)))?[(D=(c=ie==null?void 0:ie.contents)==null?void 0:c[0])==null?void 0:D[r]]:[ie==null?void 0:ie.contents],filter:"("+fa+")",menuFilter:Ae,groupFilter:ie==null?void 0:ie.groupFilters}}else if(((I=t==null?void 0:t[0])==null?void 0:I[0])!=="&"){let ie=lc(t,n),fa="";(k=ie==null?void 0:ie.tableFilter)!=null&&k.includes(Gl)?ie.tableFilter=(W=ie==null?void 0:ie.tableFilter)==null?void 0:W.replace(Gl,""):fa=(j=(R=(M=ie==null?void 0:ie.tableFilter)==null?void 0:M.replace("(",Gl))==null?void 0:R.split(Gl))==null?void 0:j[0];let Ee=[];ie!=null&&ie.tableFilter&&((E=ue.analyzeSplitToContent(ie==null?void 0:ie.tableFilter,","))==null||E.forEach(Ae=>{Ae!=null&&Ae.includes("@ShowHide=Hide")&&Ee.push("HideGroup=Yes")}));let ne=(n==null?void 0:n.menuFilter)??[];return Array.isArray(ne)||(ne=ne?[ne]:[]),ne=[...ne,...Ee],{key:"Table",name:ie==null?void 0:ie.groupName,tableColumns:ie==null?void 0:ie.tableColumns,assistColumn:ie==null?void 0:ie.columns,tableContents:l===1?ie==null?void 0:ie.tableContents:(x=(w=ie==null?void 0:ie.tableContents)==null?void 0:w[r])!=null&&x.every(Ae=>Array.isArray(Ae))?(b=ie==null?void 0:ie.tableContents)==null?void 0:b[r]:[(_=ie==null?void 0:ie.tableContents)==null?void 0:_[r]],filter:ie==null?void 0:ie.tableFilter,menuFilter:ne,quotePage:fa!==""?((Y=(F=($=fa==null?void 0:fa.replace("*",Gl))==null?void 0:$.split(Gl))==null?void 0:F[0])==null?void 0:Y.replaceAll(":","/"))??"":void 0,quoteGroup:fa!==""?((ce=(Q=(pe=(V=(Ie=(ye=(oe=fa==null?void 0:fa.replace("*",Gl))==null?void 0:oe.split(Gl))==null?void 0:ye[1])==null?void 0:Ie.replace("{",Gl))==null?void 0:V.split(Gl))==null?void 0:pe[0])==null?void 0:Q.split(":"))==null?void 0:ce.filter(Ae=>Ae!==""))??[]:[],relatedQuotes:ie==null?void 0:ie.relatedQuotes,fatherSyncContents:ie==null?void 0:ie.fatherSyncContents,sonSyncContents:ie==null?void 0:ie.sonSyncContents}}else{let ie=[{label:"序号",prop:"sort"},{label:"函数名称",prop:"函数名称"},{label:"函数关联名",prop:"函数关联名"},{label:"函数参数",prop:"函数参数"},{label:"输出值",prop:"输出值"},{label:"导入文件",prop:"导入文件",formType:"Upload"}],fa=t==null?void 0:t[0];fa=fa==null?void 0:fa.slice(1,fa==null?void 0:fa.length),fa=ue.analyzeSplitToContent(fa,":"),fa=fa==null?void 0:fa[(fa==null?void 0:fa.length)-1];let Ee=[];Ee.push("1");let ne=fa==null?void 0:fa.replace("(",Gl);ne=(Be=ne==null?void 0:ne.split(Gl))==null?void 0:Be[0],Ee.push(ne);let Ae=fa==null?void 0:fa.replace("(",Gl);if(Ae=(Ve=Ae==null?void 0:Ae.split(Gl))==null?void 0:Ve[1],Ae=(N=(me=Ae==null?void 0:Ae.replace(")",Gl))==null?void 0:me.split(Gl))==null?void 0:N[0],(U=(se=Ae==null?void 0:Ae.replace(",",Gl))==null?void 0:se.split(Gl))==null||U.forEach(We=>{Ee.push(We)}),Ee.push(""),Ee.push(""),(Se=Ee==null?void 0:Ee[2])!=null&&Se.includes(".xlsx")||(Le=Ee==null?void 0:Ee[2])!=null&&Le.includes(".xls"))try{let We=jd+"/"+(Ee==null?void 0:Ee[2]),ua=await Pd(We),Ga=`生成js函数名称为${Ee==null?void 0:Ee[1]}的函数,规则为:`+(Ee==null?void 0:Ee[3])+"。根据上述描述获取对应的总结性详细可运行js函数,不需要任何注释。";if((ua==null?void 0:ua.status)===200){let L=ua==null?void 0:ua.data;const H=new FormData;H.append("file",L,Ee==null?void 0:Ee[2]),H.append("query",Ga);let J=await Zs(H);J=(Ba=(ia=(Fe=J==null?void 0:J.data)==null?void 0:Fe.data)==null?void 0:ia.response)==null?void 0:Ba.replace("generateResult",Ee==null?void 0:Ee[1]),Ee[Ee.length-2]=J,Ee[Ee.length-1]=[{name:(da=(ee=Ee==null?void 0:Ee[2])==null?void 0:ee.split("."))==null?void 0:da[0],url:We}]}}catch{}return Ee=[Ee],{key:"Method",name:[],tableContents:Ee,tableColumns:ie}}},Ud=(a,l)=>{var n,t,s,v,f,d,y,g,c,D,I,k,W,M,R,j,E,w,x,b,_,$,F,Y,oe,ye,Ie,V,pe,Q,ce,Be,Ve,me,N,se,U,Se,Le,Fe,ia,Ba,ee,da,ie,fa,Ee;let r=(t=(n=ue.analyzeSplitToContent(a,"="))==null?void 0:n.filter(ne=>ne!=="="))==null?void 0:t.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));if(Qs(r==null?void 0:r[1])){let ne=Yd(r),Ae=(f=(v=(s=ne==null?void 0:ne.filter)==null?void 0:s.replace("@",Gl))==null?void 0:v.split(Gl))==null?void 0:f[0],We=(g=(y=(d=ne==null?void 0:ne.filter)==null?void 0:d.replace("(",Gl))==null?void 0:y.split(Gl))==null?void 0:g[1],ua=(I=(D=(c=ne==null?void 0:ne.filter)==null?void 0:c.replace("(",Gl))==null?void 0:D.split(Gl))==null?void 0:I[0];ua="@"+((k=ua==null?void 0:ua.split("@"))==null?void 0:k[1]),We=We==null?void 0:We.slice(0,(We==null?void 0:We.length)-1),We=(M=(W=ue.analyzeSplitToContent(We,","))==null?void 0:W.map(L=>(L=ua+L,L)))==null?void 0:M.join("");let Ga=Ae+"("+We+")";return{key:"Form",name:ne==null?void 0:ne.group,filter:Ga,formPage:((E=(j=(R=Ae==null?void 0:Ae.replace("*",Gl))==null?void 0:R.split(Gl))==null?void 0:j[0])==null?void 0:E.replaceAll(":","/"))??"",formGroup:((Y=(F=($=(_=(b=(x=(w=Ae==null?void 0:Ae.replace("*",Gl))==null?void 0:w.split(Gl))==null?void 0:x[1])==null?void 0:b.replace("{",Gl))==null?void 0:_.split(Gl))==null?void 0:$[0])==null?void 0:F.split(":"))==null?void 0:Y.filter(L=>L!==""))??[],value:[],menuFilter:l==null?void 0:l.menuFilter}}else{let ne=lc(r,l,r==null?void 0:r[1]),Ae="";(oe=ne==null?void 0:ne.tableFilter)!=null&&oe.includes(Gl)?ne.tableFilter=(ye=ne==null?void 0:ne.tableFilter)==null?void 0:ye.replace(Gl,""):Ae=(pe=(V=(Ie=ne==null?void 0:ne.tableFilter)==null?void 0:Ie.replace("(",Gl))==null?void 0:V.split(Gl))==null?void 0:pe[0];let We=(Be=(ce=(Q=ne==null?void 0:ne.tableFilter)==null?void 0:Q.replace("(",Gl))==null?void 0:ce.split(Gl))==null?void 0:Be[0];We=[{menus:(me=(Ve=We==null?void 0:We.split("*"))==null?void 0:Ve[0])==null?void 0:me.replaceAll(":","/"),groups:((se=(N=We==null?void 0:We.split("*"))==null?void 0:N[1])==null?void 0:se.split(":"))??[]}];let ua=(Le=(Se=(U=ne==null?void 0:ne.tableFilter)==null?void 0:U.replace("(",Gl))==null?void 0:Se.split(Gl))==null?void 0:Le[1];(ua==null?void 0:ua[(ua==null?void 0:ua.length)-1])===")"&&(ua=ua==null?void 0:ua.slice(0,(ua==null?void 0:ua.length)-1));let Ga=[];ne!=null&&ne.tableFilter&&((Fe=ue.analyzeSplitToContent(ne==null?void 0:ne.tableFilter,","))==null||Fe.forEach(H=>{H!=null&&H.includes("@ShowHide=Hide")&&Ga.push("HideGroup=Yes")}));let L=(l==null?void 0:l.menuFilter)??[];return Array.isArray(L)||(L=L?[L]:[]),L=[...L,...Ga],{key:"Table",name:ne==null?void 0:ne.groupName,filter:ne==null?void 0:ne.tableFilter,tableColumns:ne==null?void 0:ne.tableColumns,quotePage:Ae!==""?((ee=(Ba=(ia=Ae==null?void 0:Ae.replace("*",Gl))==null?void 0:ia.split(Gl))==null?void 0:Ba[0])==null?void 0:ee.replaceAll(":","/"))??"":void 0,quoteGroup:Ae!==""?((Ee=(fa=(ie=(da=Ae==null?void 0:Ae.replace("*",Gl))==null?void 0:da.split(Gl))==null?void 0:ie[1])==null?void 0:fa.split(":"))==null?void 0:Ee.filter(H=>H!==""))??[]:[],menuFilter:L,relatedQuotes:We,fatherSyncContents:(ne==null?void 0:ne.fatherSyncContents)??[],sonSyncContents:(ne==null?void 0:ne.sonSyncContents)??[]}}},qd=async(a,l)=>{let r=[],n=l==null?void 0:l.length;return l=l==null?void 0:l.map(async(t,s)=>{let v=[];t=t==null?void 0:t.map(async f=>{var d,y;if(v.push(f),((d=ue.analyzeSplitToContent(a,"="))==null?void 0:d.length)<=2){if(((y=ue.analyzeSplitToContent(a,"="))==null?void 0:y.length)!==0){const g=await Hd(ue.analyzeSplitToContent(a,"="),n,s,f);v.push(g)}}else v.push(Ud(a,f))}),await Promise.all(t),r.push(v)}),await Promise.all(l),r};let Pi="/",Wd="$",hn="$R";const ec=a=>{var r,n,t;let l="";if((a==null?void 0:a.length)>1){let s=a==null?void 0:a.filter((v,f)=>f!==0);s=s==null?void 0:s.join(""),s=ue.analyzerSplitToWord(s,")"),(s==null?void 0:s.length)!==1?(s==null?void 0:s[(s==null?void 0:s.length)-1])===")"?s=s==null?void 0:s.join(""):s=(r=s==null?void 0:s.filter((v,f)=>f!==(s==null?void 0:s.length)-1))==null?void 0:r.join(""):s=s==null?void 0:s[0],l="("+s,((t=a==null?void 0:a[0])==null?void 0:t[((n=a==null?void 0:a[0])==null?void 0:n.length)-2])==="@"&&(l="@"+l)}return{filter:l}},ac=(a,l=[])=>{let r=(a==null?void 0:a.map(s=>{var v,f;return(f=s==null?void 0:s.key)==null?void 0:f.slice(1,(v=s==null?void 0:s.key)==null?void 0:v.length)}))??[],n=[];r==null||r.forEach(s=>{var v,f,d,y,g,c,D,I,k,W,M,R,j,E,w,x,b,_,$,F,Y,oe,ye;if(s===""&&(s="算法库:通用算法"),s!=null&&s.includes(Wd)){let Ie="",V=!0,pe=ue.analyzerSplitToWord(s,"(");(pe==null?void 0:pe.length)>1&&(Ie="("+((v=ue.analyzerSplitToWord(pe==null?void 0:pe[1],")"))==null?void 0:v[0]),((d=pe==null?void 0:pe[0])==null?void 0:d[((f=pe==null?void 0:pe[0])==null?void 0:f.length)-2])==="@"&&(Ie="@"+Ie));let Q=s;Q=Q==null?void 0:Q.replace(Ie,""),Ie=un(Ie),Ie=(y=ue.analyzeSplitToContent(Ie,","))==null?void 0:y.map(se=>((se==null?void 0:se[(se==null?void 0:se.length)-1])===","&&(se=se==null?void 0:se.slice(0,(se==null?void 0:se.length)-1)),se)),Ie!=null&&Ie.includes("@ShowHide=Hide")&&(V=!1);let ce=(g=Q==null?void 0:Q.replace("$",hn))==null?void 0:g.split(hn),Be=ce==null?void 0:ce[1],Ve=ce==null?void 0:ce[0];Ve!=null&&Ve.includes("[")&&(Ve=(D=(c=Ve==null?void 0:Ve.replace("[",hn))==null?void 0:c.split(hn))==null?void 0:D[0],Be=Be+":["+((W=(k=(I=ce==null?void 0:ce[0])==null?void 0:I.replace("[",hn))==null?void 0:k.split(hn))==null?void 0:W[1])),Ve=(R=(M=Ve==null?void 0:Ve.replaceAll(":","/"))==null?void 0:M.replaceAll("{",""))==null?void 0:R.replaceAll("}",""),(Ve==null?void 0:Ve[(Ve==null?void 0:Ve.length)-1])!=="/"&&(Ve=Ve+"/"),Be=((j=Ve==null?void 0:Ve.split("/"))==null?void 0:j[0])+":"+Be;let N="";if(!(Be!=null&&Be.includes("[")))N=Be==null?void 0:Be.replaceAll(":","/"),n==null||n.push({path:N,isShow:V,filter:Ie,fatherPath:Ve});else{let se=(w=(E=Be==null?void 0:Be.replace("[",hn))==null?void 0:E.split(hn))==null?void 0:w[1];se=se==null?void 0:se.slice(0,(se==null?void 0:se.length)-1),se=(x=ue.analyzeSplitToContent(se,","))==null?void 0:x.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)),se==null||se.forEach(U=>{var Se,Le;N=((Le=(Se=Be==null?void 0:Be.replace("[",hn))==null?void 0:Se.split(hn))==null?void 0:Le[0])+U,N=N==null?void 0:N.replaceAll(":","/"),n==null||n.push({path:N,isShow:V,filter:Ie,fatherPath:Ve})})}}else{let Ie="",V=!0,pe=ue.analyzerSplitToWord(s,"(");(pe==null?void 0:pe.length)>1&&(Ie=(b=ec(pe))==null?void 0:b.filter);let Q=s;if(Q=Q==null?void 0:Q.replace(Ie,""),(Ie==null?void 0:Ie[0])==="("){Ie=Ie==null?void 0:Ie.slice(1,(Ie==null?void 0:Ie.length)-1);let Be=[];(_=ue.analyzeSplitToContent(Ie,","))==null||_.forEach(Ve=>{(Ve==null?void 0:Ve[(Ve==null?void 0:Ve.length)-1])===","&&(Ve=Ve==null?void 0:Ve.slice(0,(Ve==null?void 0:Ve.length)-1)),(Ve==null?void 0:Ve[0])==="("&&(Ve=Ve==null?void 0:Ve.slice(1,(Ve==null?void 0:Ve.length)-1)),(Ve==null?void 0:Ve[0])!=="@"&&(Ve="@"+Ve),Be.push(un(Ve))}),Ie=Be==null?void 0:Be.join(",")}else Ie=un(Ie);Ie=($=ue.analyzeSplitToContent(Ie,","))==null?void 0:$.map(Be=>((Be==null?void 0:Be[(Be==null?void 0:Be.length)-1])===","&&(Be=Be==null?void 0:Be.slice(0,(Be==null?void 0:Be.length)-1)),Be)),Ie!=null&&Ie.includes("@ShowHide=Hide")&&(V=!1),(Q==null?void 0:Q[(Q==null?void 0:Q.length)-1])==="}"&&(Q=Q+":"),Q=(F=Q==null?void 0:Q.replaceAll("{",""))==null?void 0:F.replaceAll("}","");let ce="";if(Q!=null&&Q.includes("[")){let Be=(Y=Q==null?void 0:Q.replace("[",hn))==null?void 0:Y.split(hn),Ve=Be==null?void 0:Be[1];Ve=Ve==null?void 0:Ve.slice(0,(Ve==null?void 0:Ve.length)-1),(ye=(oe=ue.analyzeSplitToContent(Ve,","))==null?void 0:oe.map(me=>((me==null?void 0:me[(me==null?void 0:me.length)-1])===","&&(me=me==null?void 0:me.slice(0,(me==null?void 0:me.length)-1)),me)))==null||ye.forEach(me=>{ce=(Be==null?void 0:Be[0])+me,ce=ce==null?void 0:ce.replaceAll(":","/"),n==null||n.push({path:ce,isShow:V,filter:Ie})})}else ce=Q==null?void 0:Q.replaceAll(":","/"),n==null||n.push({path:ce,isShow:V,filter:Ie})}});let t=A.cloneDeep(n);return(l==null?void 0:l.length)>0&&(t=l),t=t==null?void 0:t.filter(s=>{var v,f,d,y;return!(s!=null&&s.fatherPath)&&((f=(v=s==null?void 0:s.path)==null?void 0:v.split(Pi))==null?void 0:f.length)>1&&((y=(d=s==null?void 0:s.path)==null?void 0:d.split(Pi))==null?void 0:y[1])===""}),t=t==null?void 0:t.map(s=>{var v;return s.path=(v=s.path)==null?void 0:v.replace(Pi,""),s.path}),(t==null?void 0:t.length)>0&&(n=n==null?void 0:n.map(s=>{var f,d,y,g,c,D,I;let v=t==null?void 0:t.find(k=>{var W;return(W=s==null?void 0:s.path)==null?void 0:W.includes(k)});return!(s!=null&&s.fatherPath)&&v&&!((f=s==null?void 0:s.path)!=null&&f.includes(Pi))&&!(t!=null&&t.find(k=>(s==null?void 0:s.path)===k))&&(s.path=v+Pi+((I=(y=(d=s==null?void 0:s.path)==null?void 0:d.split(v))==null?void 0:y[1])==null?void 0:I.slice(1,(D=(c=(g=s==null?void 0:s.path)==null?void 0:g.split(v))==null?void 0:c[1])==null?void 0:D.length))),s})),n},Kd=(a,l)=>ac([{key:a}],l),Gd=async(a,l)=>{const r=[],n=Kd(a==null?void 0:a.key,l);return n&&(n==null?void 0:n.length)>0&&(n==null||n.forEach(s=>{r.push([{key:"path",value:s==null?void 0:s.path,parentPath:(s==null?void 0:s.parentPath)??"",isShow:s==null?void 0:s.isShow,menuFilter:s==null?void 0:s.filter}])})),await qd(a==null?void 0:a.value,r)};let kl="$R",Hi="[Any]";const Yd=a=>{var v,f;let l={},n=a==null?void 0:a[0];(n==null?void 0:n[0])==="*"&&(n=n==null?void 0:n.slice(1,n==null?void 0:n.length)),n=n==null?void 0:n.split(":"),l.group=n;let t=a==null?void 0:a[1],s;return t!=null&&t.includes("{")?s=(f=(v=t==null?void 0:t.replaceAll("{",""))==null?void 0:v.replaceAll("}",""))==null?void 0:f.replaceAll(Hi,""):s=t==null?void 0:t.replaceAll(Hi,""),(s==null?void 0:s[0])==="$"&&(s=s==null?void 0:s.slice(1,s==null?void 0:s.length)),l.filter=s,l},Jd=a=>{var D,I,k,W,M,R;let l=[],r=[],n=[],t=[],s=[],v=[],f="",d=a==null?void 0:a[0];(d==null?void 0:d[0])==="*"&&(d=d==null?void 0:d.slice(1,d==null?void 0:d.length));let y=ue.analyzeSplitToContent(d,":");(D=y==null?void 0:y.filter(j=>(j==null?void 0:j[0])!=="{"&&(j==null?void 0:j[0])!=="["))==null||D.forEach(j=>{var w,x,b;(j==null?void 0:j[(j==null?void 0:j.length)-1])===":"&&(j=j==null?void 0:j.slice(0,(j==null?void 0:j.length)-1));let E=ue.analyzerSplitToWord(j,"(");if((E==null?void 0:E.length)>1){f=(w=ec(E))==null?void 0:w.filter;let _=j==null?void 0:j.replace(f,"");if(n.push(_),(f==null?void 0:f[0])==="("){f=f==null?void 0:f.slice(1,(f==null?void 0:f.length)-1);let $=[];(x=ue.analyzeSplitToContent(f,","))==null||x.forEach(F=>{(F==null?void 0:F[(F==null?void 0:F.length)-1])===","&&(F=F==null?void 0:F.slice(0,(F==null?void 0:F.length)-1)),(F==null?void 0:F[0])==="("&&(F=F==null?void 0:F.slice(1,(F==null?void 0:F.length)-1)),(F==null?void 0:F[0])!=="@"&&(F="@"+F),$.push(un(F))}),f=$==null?void 0:$.join(",")}else f=un(f);f=(b=ue.analyzeSplitToContent(f,","))==null?void 0:b.map($=>(($==null?void 0:$[($==null?void 0:$.length)-1])===","&&($=$==null?void 0:$.slice(0,($==null?void 0:$.length)-1)),$)),f!=null&&f.includes("@ShowHide=Hide")&&v.push(_),t=[...t,...f]}else n.push(E==null?void 0:E[0])});let g=(I=y==null?void 0:y.filter(j=>(j==null?void 0:j[0])==="{"))==null?void 0:I[0],c=(k=y==null?void 0:y.filter(j=>(j==null?void 0:j[0])==="["))==null?void 0:k[0];return l=Di(c??""),l!=null&&l.every(j=>Array.isArray(j))&&(l=[l]),(g==null?void 0:g[(g==null?void 0:g.length)-1])===":"&&(g=g==null?void 0:g.slice(0,(g==null?void 0:g.length)-1)),s=(W=ue.analyzeSplitToContent(g,"@"))==null?void 0:W[1],s="@"+s,g=g==null?void 0:g.replace(s,""),s=un(s),s=(M=ue.analyzeSplitToContent(s,","))==null?void 0:M.map(j=>((j==null?void 0:j[(j==null?void 0:j.length)-1])===","&&(j=j==null?void 0:j.slice(0,(j==null?void 0:j.length)-1)),j)),(g==null?void 0:g[0])==="{"&&(g=g==null?void 0:g.slice(1,(g==null?void 0:g.length)-1)),g=(R=ue.analyzeSplitToContent(g,","))==null?void 0:R.map(j=>((j==null?void 0:j[(j==null?void 0:j.length)-1])===","&&(j=j==null?void 0:j.slice(0,(j==null?void 0:j.length)-1)),j)),g==null||g.forEach((j,E)=>{var V,pe,Q,ce,Be,Ve,me,N,se,U,Se,Le,Fe,ia,Ba,ee,da,ie,fa,Ee,ne,Ae,We,ua,Ga,L,H,J,ve,he,ga;let w=[],x=[],b=!1,_,$=[],F=[],Y=[],oe="Input",ye=[],Ie=[];if(j!=null&&j.includes("==")){_=(V=j==null?void 0:j.split("=="))==null?void 0:V[0];let la=(pe=j==null?void 0:j.split("=="))==null?void 0:pe[1],te="";((Q=ue.analyzeSplitToContent(la,"$"))==null?void 0:Q.length)>1&&((ce=ue.analyzeSplitToContent(la,"$"))==null?void 0:ce[0])!=="$"?(te=(Be=ue.analyzeSplitToContent(la,"$"))==null?void 0:Be[0],te=te==null?void 0:te.slice(0,(te==null?void 0:te.length)-1)):((Ve=ue.analyzeSplitToContent(la,"}"))==null?void 0:Ve.length)>1&&(te=(me=ue.analyzeSplitToContent(la,"}"))==null?void 0:me[1]);let ba=la==null?void 0:la.replace(te,"");(te==null?void 0:te[0])==="("&&(te=te==null?void 0:te.slice(1,(te==null?void 0:te.length)-1)),(N=ue.analyzeSplitToContent(te,","))==null||N.forEach(Xe=>{var Da;(Xe==null?void 0:Xe[0])!=="@"&&(Xe="@"+Xe),(Xe==null?void 0:Xe[(Xe==null?void 0:Xe.length)-1])===","&&(Xe=Xe==null?void 0:Xe.slice(0,(Xe==null?void 0:Xe.length)-1));let Aa=un(Xe);(Da=ue.analyzeSplitToContent(Aa,","))==null||Da.forEach(aa=>{(aa==null?void 0:aa[(aa==null?void 0:aa.length)-1])===","&&(aa=aa==null?void 0:aa.slice(0,(aa==null?void 0:aa.length)-1)),w.push(aa)})}),(ba==null?void 0:ba[0])==="$"&&(ba=ba==null?void 0:ba.slice(1,ba==null?void 0:ba.length));let Ne=(se=ba==null?void 0:ba.replace("*",kl))==null?void 0:se.split(kl);$=(U=Ne==null?void 0:Ne[0])==null?void 0:U.split(":"),F=(Le=(Se=ue.analyzeSplitToContent(Ne==null?void 0:Ne[1],":"))==null?void 0:Se.filter((Xe,Aa)=>{var Da,aa;return Aa!==((aa=(Da=Ne==null?void 0:Ne[1])==null?void 0:Da.split(":"))==null?void 0:aa.length)-1}))==null?void 0:Le.map(Xe=>((Xe==null?void 0:Xe[(Xe==null?void 0:Xe.length)-1])===":"&&(Xe=Xe==null?void 0:Xe.slice(0,(Xe==null?void 0:Xe.length)-1)),Xe)),Y=(ia=(Fe=ue.analyzeSplitToContent(Ne==null?void 0:Ne[1],":"))==null?void 0:Fe.filter((Xe,Aa)=>{var Da,aa;return Aa===((aa=(Da=Ne==null?void 0:Ne[1])==null?void 0:Da.split(":"))==null?void 0:aa.length)-1}))==null?void 0:ia[0],Y=(ee=(Ba=Y==null?void 0:Y.replaceAll("{",""))==null?void 0:Ba.replaceAll("}",""))==null?void 0:ee.split(":"),oe="Select"}else if(((da=ue.analyzeSplitToContent(j,"="))==null?void 0:da.length)>1)if(oe="Select",_=(fa=(ie=j==null?void 0:j.replace("=",kl))==null?void 0:ie.split(kl))==null?void 0:fa[0],!(j!=null&&j.includes("If")))ye=(ne=(Ee=j==null?void 0:j.replace("=",kl))==null?void 0:Ee.split(kl))==null?void 0:ne[1],ye=ye==null?void 0:ye.split("||");else{let la=(We=(Ae=j==null?void 0:j.replace("=",kl))==null?void 0:Ae.split(kl))==null?void 0:We[1];Ie=(ua=ue.analyzeSplitToContent(la,")"))==null?void 0:ua.filter(te=>!(te!=null&&te.includes("If"))),Ie=Ie==null?void 0:Ie.map(te=>((te==null?void 0:te[0])==="("&&(te=te==null?void 0:te.slice(1,(te==null?void 0:te.length)-1)),te=te==null?void 0:te.split("||"),te)),x=(Ga=ue.analyzeSplitToContent(la,")"))==null?void 0:Ga.filter(te=>te==null?void 0:te.includes("If")),x=x==null?void 0:x.map(te=>((te==null?void 0:te[0])==="|"&&(te=te==null?void 0:te.slice(2,te==null?void 0:te.length)),(te==null?void 0:te[0])==="("&&(te=te==null?void 0:te.slice(1,(te==null?void 0:te.length)-1)),(te==null?void 0:te[0])!=="@"&&(te="@"+te),te))}else if(((L=ue.analyzeSplitToContent(j,"@"))==null?void 0:L.length)>1){_=(H=ue.analyzeSplitToContent(j,"@"))==null?void 0:H[0],(_==null?void 0:_[(_==null?void 0:_.length)-1])==="@"&&(_=_==null?void 0:_.slice(0,(_==null?void 0:_.length)-1));let la="@"+((J=ue.analyzeSplitToContent(j,"@"))==null?void 0:J[1]);la=un(la),w=(ve=ue.analyzeSplitToContent(la,","))==null?void 0:ve.map(te=>((te==null?void 0:te[(te==null?void 0:te.length)-1])===","&&(te=te==null?void 0:te.slice(0,(te==null?void 0:te.length)-1)),te)),w!=null&&w.find(te=>te==null?void 0:te.includes("@Type"))&&(oe=(ga=(he=w==null?void 0:w.find(te=>te==null?void 0:te.includes("@Type")))==null?void 0:he.split("="))==null?void 0:ga[1])}else _=j;w!=null&&w.includes("@ShowHide=Hide")&&(b=!0),r.push({prop:_,label:_,value:"",menuPath:$,groups:F,columns:Y,type:oe,options:ye,allContents:Ie,filters:w,width:g==null?void 0:g.length,isFormColHidden:b,filterContents:x})}),{groupName:n,groupFilters:t,formContents:r,contents:l,filter:s,hideContents:v}},Di=a=>{var n,t;if(!a||typeof a!="string")return[];let l=[],r=a.slice(1,(a==null?void 0:a.length)-1);if((r==null?void 0:r[0])!=="[")(n=ue.analyzeSplitToContent(r,","))==null||n.forEach(s=>{(s==null?void 0:s[(s==null?void 0:s.length)-1])===","&&(s=s.slice(0,(s==null?void 0:s.length)-1)),l.push(s??"")});else{let s=[];(t=ue.analyzeSplitToContent(r,","))==null||t.forEach(v=>{(v==null?void 0:v[(v==null?void 0:v.length)-1])===","&&(v=v==null?void 0:v.slice(0,(v==null?void 0:v.length)-1)),s.push(Di(v))}),l=s}return l},ft=(a,l)=>{var R,j,E,w,x,b,_,$,F,Y,oe,ye,Ie,V,pe,Q,ce,Be,Ve,me,N,se,U,Se,Le,Fe,ia,Ba,ee,da,ie,fa,Ee,ne,Ae,We,ua,Ga,L,H,J,ve,he,ga,la,te,ba,Ne,Xe,Aa,Da,aa,$a,ke,ae,ze,Oe,Me,ya,xa;let r,n=[],t=[],s=[],v=[],f=[],d=[],y=[],g="Input",c,D="",I="",k="",W=[],M="";if(a!=null&&a.includes("==")||a!=null&&a.includes("=")||a!=null&&a.includes("@")||a!=null&&a.includes("||"))if(r=(R=a==null?void 0:a.split("=="))==null?void 0:R[0],c=(j=a==null?void 0:a.split("=="))==null?void 0:j[0],g="Select",a!=null&&a.includes("=")&&!(a!=null&&a.includes("=="))&&!((x=(w=(E=a==null?void 0:a.replace("=",kl))==null?void 0:E.split(kl))==null?void 0:w[1])!=null&&x.includes("If")))if(r=ue.analyzeSplitToContent(a,"@"),r=r==null?void 0:r[0],(r==null?void 0:r[(r==null?void 0:r.length)-1])==="@"&&(r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1)),r=(_=(b=r==null?void 0:r.replace("=",kl))==null?void 0:b.split(kl))==null?void 0:_[0],r!=null&&r.includes("&")&&(r=(F=($=r==null?void 0:r.replace("&",kl))==null?void 0:$.split(kl))==null?void 0:F[0]),c=r,((Y=ue.analyzeSplitToContent(a,"@"))==null?void 0:Y.length)>1&&!(a!=null&&a.includes("||"))){if(!(a!=null&&a.includes("&"))){let qe=(oe=ue.analyzeSplitToContent(a,"@"))==null?void 0:oe[1];if((qe==null?void 0:qe[0])!=="@"&&(qe="@"+qe),qe=un(qe),I=qe,I!=null&&I.includes("@Type")){let Je=ue.analyzeSplitToContent(I,",");Je=Je==null?void 0:Je.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)),Je=(ye=Je==null?void 0:Je.filter(Ue=>Ue==null?void 0:Ue.includes("@Type")))==null?void 0:ye[0],g=(Ie=Je==null?void 0:Je.split("="))==null?void 0:Ie[1]}else g="Input"}}else if(a!=null&&a.includes("||")){let qe=[];n=(Q=(pe=(V=ue.analyzeSplitToContent(a,"="))==null?void 0:V[1])==null?void 0:pe.split("||"))==null?void 0:Q.map(Ue=>{var de,Oa,La,gl;let _e=Ue;if(_e!=null&&_e.includes("@")){let zl="@"+((Oa=(de=_e==null?void 0:_e.replace("@",kl))==null?void 0:de.split(kl))==null?void 0:Oa[1]);_e=(gl=(La=_e==null?void 0:_e.replace("@",kl))==null?void 0:La.split(kl))==null?void 0:gl[0],zl=ni(zl),qe.push(zl)}return{label:_e==null?void 0:_e.replaceAll("'",""),value:_e==null?void 0:_e.replaceAll("'","")}}),(qe==null?void 0:qe.length)>0&&(I="("+(qe==null?void 0:qe.join("||"))+")");let Je=(ce=ue.analyzeSplitToContent(a,"="))==null?void 0:ce[0];if(Je!=null&&Je.includes("@")){(Je==null?void 0:Je[(Je==null?void 0:Je.length)-1])==="="&&(Je=Je==null?void 0:Je.slice(0,(Je==null?void 0:Je.length)-1));let Ue=(Be=ue.analyzeSplitToContent(Je,"@"))==null?void 0:Be[1];Ue="@"+Ue,Ue=ni(Ue),I=I===""?Ue:Ue+","+I}}else g="Input",D=(N=(me=(Ve=a==null?void 0:a.replace("=",kl))==null?void 0:Ve.split(kl))==null?void 0:me[1])==null?void 0:N.replaceAll("'","");else if((U=(se=ue.analyzeSplitToContent(a,"="))==null?void 0:se[1])!=null&&U.includes("||")){let qe=(Se=ue.analyzeSplitToContent(a,"="))==null?void 0:Se[0];if((qe==null?void 0:qe[(qe==null?void 0:qe.length)-1])==="="&&(qe=qe==null?void 0:qe.slice(0,(qe==null?void 0:qe.length)-1)),qe!=null&&qe.includes("@")){let de=(Le=ue.analyzeSplitToContent(qe,"@"))==null?void 0:Le[1];de="@"+de,I=ni(de),r=(ee=(Fe=ue.analyzeSplitToContent(qe,"@"))==null?void 0:Fe[0])==null?void 0:ee.slice(0,((Ba=(ia=ue.analyzeSplitToContent(qe,"@"))==null?void 0:ia[0])==null?void 0:Ba.length)-1),c=(Ee=(da=ue.analyzeSplitToContent(qe,"@"))==null?void 0:da[0])==null?void 0:Ee.slice(0,((fa=(ie=ue.analyzeSplitToContent(qe,"@"))==null?void 0:ie[0])==null?void 0:fa.length)-1)}else r=qe,c=qe;let Je=(ne=ue.analyzeSplitToContent(a,"="))==null?void 0:ne[1];Je=ue.analyzeSplitToContent(Je,")");let Ue=Je==null?void 0:Je.filter(de=>!(de!=null&&de.includes("If")));Ue==null||Ue.forEach(de=>{(de==null?void 0:de[0])==="("&&(de=de==null?void 0:de.slice(1,(de==null?void 0:de.length)-1)),t==null||t.push(de==null?void 0:de.split("||"))});let _e=Je==null?void 0:Je.filter(de=>de==null?void 0:de.includes("If"));_e=_e==null?void 0:_e.map(de=>((de==null?void 0:de[0])==="|"&&(de==null?void 0:de[1])==="|"&&(de=de==null?void 0:de.slice(2,de==null?void 0:de.length)),(de==null?void 0:de[0])==="("&&(de=de==null?void 0:de.slice(1,(de==null?void 0:de.length)-1)),(de==null?void 0:de[0])!=="@"&&(de="@"+de),de)),s=_e}else{let qe=a==null?void 0:a.split("=="),Je=(Ae=qe==null?void 0:qe.filter(Ue=>(Ue==null?void 0:Ue.includes("$"))&&(Ue==null?void 0:Ue[0])!=="{"))==null?void 0:Ae[0];if(Je&&!(Je!=null&&Je.includes("&"))){let Ue=(We=Je==null?void 0:Je.replace("*",kl))==null?void 0:We.split(kl),_e=(Ue==null?void 0:Ue[0])===""?l==null?void 0:l.value:Ue==null?void 0:Ue[0];(_e==null?void 0:_e[0])==="("&&(_e=(ua=ue.analyzeSplitToContent(_e,")"))==null?void 0:ua[1]),_e=(L=(Ga=_e==null?void 0:_e.replaceAll("{",""))==null?void 0:Ga.replaceAll("}",""))==null?void 0:L.replaceAll(Hi,""),(_e==null?void 0:_e[0])==="$"&&(_e=(H=_e==null?void 0:_e.slice(1,_e==null?void 0:_e.length))==null?void 0:H.replaceAll(":","/")),v=_e==null?void 0:_e.split("/");let de=(ve=(J=Ue==null?void 0:Ue[1])==null?void 0:J.replace("{",kl))==null?void 0:ve.split(kl),Oa=de==null?void 0:de[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)),f=Oa==null?void 0:Oa.split(":"),d=(te=(la=(ga=(he=de==null?void 0:de[1])==null?void 0:he.replace("}",kl))==null?void 0:ga.split(kl))==null?void 0:la[0])==null?void 0:te.split(":");let La="";((ba=ue.analyzeSplitToContent(Je,")"))==null?void 0:ba.length)>1&&(La=(Ne=ue.analyzeSplitToContent(Je,")"))==null?void 0:Ne[0]),La&&La!==""&&((La==null?void 0:La[0])!=="@"&&(La="@"+La),I=ni(La))}if(qe!=null&&qe.some(Ue=>(Ue==null?void 0:Ue[0])==="&")){let Ue=(Xe=qe==null?void 0:qe.filter(Oa=>(Oa==null?void 0:Oa[0])==="&"))==null?void 0:Xe[0];(Ue==null?void 0:Ue[0])==="&"&&(Ue=Ue==null?void 0:Ue.slice(1,Ue==null?void 0:Ue.length)),k=(Da=(Aa=Ue==null?void 0:Ue.replace("(",kl))==null?void 0:Aa.split(kl))==null?void 0:Da[0];let _e=(aa=ue.analyzeSplitToContent(Ue,")"))==null?void 0:aa[0];_e=(ke=($a=_e==null?void 0:_e.replace("(",kl))==null?void 0:$a.split(kl))==null?void 0:ke[1],_e=_e==null?void 0:_e.slice(0,(_e==null?void 0:_e.length)-1),(_e==null?void 0:_e[0])==="{"&&(_e=_e==null?void 0:_e.slice(1,_e==null?void 0:_e.length)),(_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)),W=_e==null?void 0:_e.split(",");let de=(ae=ue.analyzeSplitToContent(Ue,")"))==null?void 0:ae[1];de&&de!==""&&(M=ni(de))}else if(!Je&&((ze=qe==null?void 0:qe.filter(Ue=>(Ue==null?void 0:Ue[0])==="{"))==null?void 0:ze.length)>0){let Ue=qe==null?void 0:qe[(qe==null?void 0:qe.length)-1];Ue=Ue==null?void 0:Ue.slice(1,(Ue==null?void 0:Ue.length)-1),Ue=ue.analyzeSplitToContent(Ue,","),Ue=Ue==null?void 0:Ue.map(_e=>((_e==null?void 0:_e[(_e==null?void 0:_e.length)-1])===","&&(_e=_e==null?void 0:_e.slice(0,(_e==null?void 0:_e.length)-1)),_e)),Ue=Ue==null?void 0:Ue.map(_e=>{var de,Oa,La,gl;if(_e=_e==null?void 0:_e.replaceAll("$",""),_e!=null&&_e.includes("{")){let zl="";_e=_e==null?void 0:_e.replaceAll("{","");let tl=_e==null?void 0:_e.split("}");zl=((Oa=(de=tl==null?void 0:tl[0])==null?void 0:de.split(":"))==null?void 0:Oa[0])+":"+(tl==null?void 0:tl[1]),_e=zl,_e=_e+":"}if(_e!=null&&_e.includes(Hi)){let zl="",tl=_e==null?void 0:_e.split(Hi);zl=((gl=(La=tl==null?void 0:tl[0])==null?void 0:La.split(":"))==null?void 0:gl[0])+":"+(tl==null?void 0:tl[1]),_e=zl,_e=_e+":"}return _e=_e==null?void 0:_e.replaceAll(":","/"),_e}),y=Ue}else!((Oe=qe==null?void 0:qe[1])!=null&&Oe.includes("$"))&&((Me=qe==null?void 0:qe[1])==null?void 0:Me[0])!=="("&&d.push(qe==null?void 0:qe[1])}else r=(ya=a==null?void 0:a.split("&"))==null?void 0:ya[0],c=(xa=a==null?void 0:a.split("&"))==null?void 0:xa[0];return{label:r,prop:c,options:n,allContents:t,filterContents:s,menus:v,groups:f,words:d,align:"center",formType:g,filter:I,functionName:k,functionRelatedWords:W,calculatorFilter:M,relatedPages:y,value:D}},Co=(a,l)=>{var n,t,s,v,f,d,y,g,c,D,I,k,W,M,R,j,E,w,x,b,_,$,F,Y,oe,ye,Ie,V,pe,Q;let r=[];if((a==null?void 0:a[0])==="{"&&(a==null?void 0:a[(a==null?void 0:a.length)-1])==="}"&&!((v=(s=(t=(n=a==null?void 0:a.slice(1,(a==null?void 0:a.length)-1))==null?void 0:n.replace(":",kl))==null?void 0:t.split(kl))==null?void 0:s[0])!=null&&v.includes(","))){let ce=a==null?void 0:a.slice(1,(a==null?void 0:a.length)-1),Be=(f=ce==null?void 0:ce.replace(":",kl))==null?void 0:f.split(kl);if(((d=ue.analyzeSplitToContent(Be==null?void 0:Be[1],"="))==null?void 0:d.length)===1){let Ve=Be==null?void 0:Be[0],me=[];(c=ue.analyzeSplitToContent((g=Be==null?void 0:Be[1])==null?void 0:g.slice(1,((y=Be==null?void 0:Be[1])==null?void 0:y.length)-1),","))==null||c.forEach(N=>{var se,U;((se=ue.analyzeSplitToContent(N,"="))==null?void 0:se.length)>1?((N==null?void 0:N[(N==null?void 0:N.length)-1])===","&&(N=N==null?void 0:N.slice(0,(N==null?void 0:N.length)-1)),me=[...me,...Co(N,l)]):((N==null?void 0:N[(N==null?void 0:N.length)-1])===","&&(N=N==null?void 0:N.slice(0,(N==null?void 0:N.length)-1)),me.push((U=Co(N,l))==null?void 0:U[0]))}),r==null||r.push({label:Ve,prop:Ve,children:me,align:"center"})}else{let Ve=[];if(((D=ue.analyzeSplitToContent(ce,"="))==null?void 0:D.length)>=2){let N=(I=ue.analyzeSplitToContent(ce,"="))==null?void 0:I[1],se=(k=ue.analyzeSplitToContent(N,"/"))==null?void 0:k.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));Ve=se==null?void 0:se.map(U=>(U=Di(U),U))}let me=(w=(E=(j=(R=(M=(W=ce==null?void 0:ce.replace("{",kl))==null?void 0:W.split(kl))==null?void 0:M[1])==null?void 0:R.replace("}",kl))==null?void 0:j.split(kl))==null?void 0:E[0])==null?void 0:w.split(",");me==null||me.forEach((N,se)=>{(Ve==null?void 0:Ve.length)>0&&se===0?r==null||r.push({label:N,prop:N,align:"center",formType:"Select",relatedContents:Ve==null?void 0:Ve.map(U=>{let Se={};return me==null||me.forEach((Le,Fe)=>{Se[Le]=U==null?void 0:U[Fe]}),Se}),options:Ve==null?void 0:Ve.map(U=>({label:U==null?void 0:U[0],value:U==null?void 0:U[0]})),mainKey:!0}):r==null||r.push({label:N,prop:N,align:"center"})})}}else if((a==null?void 0:a[0])==="{")if(((x=ue.analyzeSplitToContent(a,"="))==null?void 0:x.length)===2&&((_=(b=ue.analyzeSplitToContent(a,"="))==null?void 0:b[1])==null?void 0:_[0])==="["){let ce=[];if((($=ue.analyzeSplitToContent(a,"="))==null?void 0:$.length)>=2){let Ve=(F=ue.analyzeSplitToContent(a,"="))==null?void 0:F[1],me=(oe=(Y=ue.analyzeSplitToContent(Ve,"|"))==null?void 0:Y.filter(N=>N!=="|"))==null?void 0:oe.map(N=>((N==null?void 0:N[(N==null?void 0:N.length)-1])==="|"&&(N=N==null?void 0:N.slice(0,(N==null?void 0:N.length)-1)),N));ce=me==null?void 0:me.map(N=>(N=Di(N),N))}let Be=(Ie=(ye=a==null?void 0:a.replace("}",kl))==null?void 0:ye.split(kl))==null?void 0:Ie[0];Be=(V=Be==null?void 0:Be.slice(1,Be==null?void 0:Be.length))==null?void 0:V.split(","),Be==null||Be.forEach((Ve,me)=>{(ce==null?void 0:ce.length)>0&&me===0?r==null||r.push({label:Ve,prop:Ve,align:"center",formType:"Select",relatedContents:ce==null?void 0:ce.map(N=>{let se={};return Be==null||Be.forEach((U,Se)=>{se[U]=N==null?void 0:N[Se]}),se}),options:ce==null?void 0:ce.map(N=>({label:N==null?void 0:N[0],value:N==null?void 0:N[0]})),mainKey:!0}):r==null||r.push({label:Ve,prop:Ve,align:"center"})})}else(pe=ue.analyzeSplitToContent(a,","))==null||pe.forEach(ce=>{var Be,Ve,me,N,se,U,Se,Le,Fe,ia,Ba,ee,da,ie,fa,Ee,ne,Ae,We,ua,Ga,L,H,J,ve,he,ga,la,te,ba,Ne,Xe,Aa,Da,aa,$a,ke;if((ce==null?void 0:ce[(ce==null?void 0:ce.length)-1])===","&&(ce=ce==null?void 0:ce.slice(0,(ce==null?void 0:ce.length)-1)),(ce==null?void 0:ce[0])==="{"){let ae=ue.analyzeSplitToContent(ce,"="),ze=ae==null?void 0:ae[(ae==null?void 0:ae.length)-1],Oe=[],Me=[],ya=[],xa="",qe="",Je=[],Ue=[],_e=(Be=ze==null?void 0:ze.replace("*",kl))==null?void 0:Be.split(kl),de=(_e==null?void 0:_e[0])===""?l==null?void 0:l.value:_e==null?void 0:_e[0];de=ue.analyzeSplitToContent(de,")");let Oa="";if((de==null?void 0:de.length)>1&&((Ve=de==null?void 0:de[0])==null?void 0:Ve[0])!=="&"&&(Oa=de==null?void 0:de[0],(Oa==null?void 0:Oa[0])!=="@"&&(Oa="@"+Oa),qe=Oa??""),de=(me=de==null?void 0:de.filter(tl=>(tl==null?void 0:tl[0])==="$"))==null?void 0:me[0],((N=ue.analyzeSplitToContent(de,"}"))==null?void 0:N.length)>1&&((U=(se=ue.analyzeSplitToContent(de,"}"))==null?void 0:se[1])==null?void 0:U[0])==="("&&(Oa=(Se=ue.analyzeSplitToContent(de,"}"))==null?void 0:Se[1],(Oa==null?void 0:Oa[0])!=="@"&&(Oa="@"+Oa),qe!==""&&(qe=qe+","),qe=qe+Oa),(Le=de==null?void 0:de.slice(1,(de==null?void 0:de.length)-1))!=null&&Le.includes("$")||(de=(Fe=ue.analyzeSplitToContent(de,"}"))==null?void 0:Fe[0]),(de==null?void 0:de[0])==="$"&&(de=(ia=de==null?void 0:de.replace("{",""))==null?void 0:ia.replace("}",":"),de=(Ba=de==null?void 0:de.slice(1,de==null?void 0:de.length))==null?void 0:Ba.replaceAll(":","/")),de!=null&&de.includes("$")){let tl=(ee=de==null?void 0:de.split("$"))==null?void 0:ee[0];tl=(da=tl==null?void 0:tl.split("/"))==null?void 0:da[0],de=tl+"/"+((ie=de==null?void 0:de.split("$"))==null?void 0:ie[1])+"/"}Oe=(de==null?void 0:de.split("/"))??[];let La=(Ee=(fa=_e==null?void 0:_e[1])==null?void 0:fa.replace("{",kl))==null?void 0:Ee.split(kl);if((We=(Ae=(ne=_e==null?void 0:_e[1])==null?void 0:ne.split("(@"))==null?void 0:Ae[0])!=null&&We.includes("&&")||(L=(Ga=(ua=_e==null?void 0:_e[1])==null?void 0:ua.split("@"))==null?void 0:Ga[0])!=null&&L.includes("&&")){let tl=(H=_e==null?void 0:_e[1])!=null&&H.includes("(@")?(he=(ve=(J=_e==null?void 0:_e[1])==null?void 0:J.split("(@"))==null?void 0:ve[0])==null?void 0:he.split("&&"):(te=(la=(ga=_e==null?void 0:_e[1])==null?void 0:ga.split("@"))==null?void 0:la[0])==null?void 0:te.split("&&");Je=tl==null?void 0:tl.map(Pa=>{var Il,Vl;return(Pa==null?void 0:Pa[0])==="*"&&(Pa=Pa==null?void 0:Pa.slice(1,Pa==null?void 0:Pa.length)),Pa=(Vl=(Il=Pa==null?void 0:Pa.replace("{",kl))==null?void 0:Il.split(kl))==null?void 0:Vl[0],(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)),Pa=Pa==null?void 0:Pa.split(":"),Pa});let jl=[];tl==null||tl.forEach((Pa,Il)=>{var Vl,Ma;(Pa==null?void 0:Pa[0])==="*"&&(Pa=Pa==null?void 0:Pa.slice(1,Pa==null?void 0:Pa.length)),Pa=(Ma=(Vl=Pa==null?void 0:Pa.replace("{",kl))==null?void 0:Vl.split(kl))==null?void 0:Ma[1],(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)),Pa=Pa==null?void 0:Pa.split(","),jl.push(Il===0?(Pa==null?void 0:Pa.length)-1:Pa==null?void 0:Pa.length),Ue=[...Ue,...Pa]}),jl=(ba=ue.prefixSum(jl))==null?void 0:ba.map(Pa=>Pa==null?void 0:Pa.total),Je=Je==null?void 0:Je.map((Pa,Il)=>({number:jl==null?void 0:jl[Il],contents:Pa}))}let gl=La==null?void 0:La[0];(gl==null?void 0:gl[(gl==null?void 0:gl.length)-1])===":"&&(gl=gl==null?void 0:gl.slice(0,(gl==null?void 0:gl.length)-1)),Me=(gl==null?void 0:gl.split(":"))??[],ya=((Da=(Aa=(Xe=(Ne=La==null?void 0:La[1])==null?void 0:Ne.replace("}",kl))==null?void 0:Xe.split(kl))==null?void 0:Aa[0])==null?void 0:Da.split(","))??[];let zl=($a=ae==null?void 0:ae[0])==null?void 0:$a.slice(1,((aa=ae==null?void 0:ae[0])==null?void 0:aa.length)-2);qe&&qe!==""&&(xa=ni(qe)),(ke=zl==null?void 0:zl.split(","))==null||ke.forEach((tl,jl)=>{var Pa,Il,Vl,Ma,el;((Pa=ue.analyzeSplitToContent(tl,"@"))==null?void 0:Pa.length)>1&&(tl=(Il=ue.analyzeSplitToContent(tl,"@"))==null?void 0:Il[0],(tl==null?void 0:tl[(tl==null?void 0:tl.length)-1])==="@"&&(tl=tl==null?void 0:tl.slice(0,(tl==null?void 0:tl.length)-1))),r.push({label:tl,prop:tl,align:"center",menus:Oe,groups:(Je==null?void 0:Je.length)===0?Me:(Vl=Je==null?void 0:Je.find(sl=>(sl==null?void 0:sl.number)>=jl))==null?void 0:Vl.contents,words:(Ue==null?void 0:Ue.length)===0?(Ma=ya==null?void 0:ya[jl])==null?void 0:Ma.split(":"):(el=Ue==null?void 0:Ue[jl])==null?void 0:el.split(":"),formType:(Oe==null?void 0:Oe.length)>0?"Select":"Input",mainKey:jl===0,filter:xa,isMainPath:(Je==null?void 0:Je.findIndex(sl=>(sl==null?void 0:sl.number)>=jl))===0})})}else r.push({label:ce,prop:ce,align:"center"})});else{let ce=(Q=ue.analyzeSplitToContent(a,","))==null?void 0:Q.map(Be=>((Be==null?void 0:Be[(Be==null?void 0:Be.length)-1])===","&&(Be=Be==null?void 0:Be.slice(0,(Be==null?void 0:Be.length)-1)),Be));ce==null||ce.forEach(Be=>{r.push(ft(Be,l))})}return r},Xd=(a,l)=>{var v,f,d,y,g;let r=a;if(!a)return;let n="";((v=ue.analyzeSplitToContent(a,"}"))==null?void 0:v.length)>1&&(r=(f=ue.analyzeSplitToContent(a,"}"))==null?void 0:f[0],n=(d=ue.analyzeSplitToContent(a,"}"))==null?void 0:d[1]),(a==null?void 0:a[0])==="{"&&(a==null?void 0:a[(a==null?void 0:a.length)-1])==="}"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1));let t=[],s=[];return t.push({label:"排序",prop:"sort"}),t.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(y=ue.analyzeSplitToContent(r,","))==null||y.forEach(c=>{var D;(c==null?void 0:c[(c==null?void 0:c.length)-1])===","&&(c=c==null?void 0:c.slice(0,(c==null?void 0:c.length)-1)),(c==null?void 0:c[0])==="{"?(D=Co(c,l))==null||D.forEach(I=>{t.push(I)}):t.push(ft(c,l))}),t!=null&&t.some(c=>{var D;return(D=c==null?void 0:c.prop)==null?void 0:D.includes("@")})&&(t=t==null?void 0:t.filter(c=>{var D;return!((D=c==null?void 0:c.prop)!=null&&D.includes("@"))})),n!==""&&((n==null?void 0:n[0])=="{"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),(g=ue.analyzeSplitToContent(n,","))==null||g.forEach(c=>{var D;(c==null?void 0:c[(c==null?void 0:c.length)-1])===","&&(c=c==null?void 0:c.slice(0,(c==null?void 0:c.length)-1)),(c==null?void 0:c[0])==="{"?(D=Co(c,l))==null||D.forEach(I=>{s.push(I)}):s.push(ft(c,l))})),{columns:t,secondColumns:s}},un=a=>{var l,r,n,t,s;if(a!=null&&a.includes("@Filter")||a!=null&&a.includes("@Condition")||a!=null&&a.includes("@If"))return a;{let v=(r=(l=a==null?void 0:a.replace("(",kl))==null?void 0:l.split(kl))==null?void 0:r[1],f=(t=(n=a==null?void 0:a.replace("(",kl))==null?void 0:n.split(kl))==null?void 0:t[0];return v=v==null?void 0:v.slice(0,(v==null?void 0:v.length)-1),v=(s=ue.analyzeSplitToContent(v,","))==null?void 0:s.map(d=>((d==null?void 0:d[(d==null?void 0:d.length)-1])===","&&(d=d==null?void 0:d.slice(0,(d==null?void 0:d.length)-1)),(d==null?void 0:d[0])==="("&&(d=d==null?void 0:d.slice(1,(d==null?void 0:d.length)-1)),f+d)),v=v==null?void 0:v.join(","),a!=null&&a.includes("@Quote")&&(v!=null&&v.includes("@QuoteType")||(v=v===""?v+"@QuoteType=Manual":v+",@QuoteType=Manual"),v!=null&&v.includes("@QuoteSonSync")||(v=v===""?v+"@QuoteSonSync=No":v+",@QuoteSonSync=No"),v!=null&&v.includes("@QuoteFatherSync")||(v=v===""?v+"@QuoteFatherSync=Yes":v+",@QuoteFatherSync=Yes")),v}},is=a=>{let l=a==null?void 0:a.map(r=>{var n,t;return{menus:r==null?void 0:r.menus,content:((n=r==null?void 0:r.menus)==null?void 0:n.join("/"))+kl+((t=r==null?void 0:r.groups)==null?void 0:t.join("/"))}});return l=l==null?void 0:l.filter(r=>{var n;return(r==null?void 0:r.menus)&&((n=r==null?void 0:r.menus)==null?void 0:n.length)>0}),l=l==null?void 0:l.map(r=>r==null?void 0:r.content),l=[...new Set(l)],l=l==null?void 0:l.map(r=>{var n,t;return{menus:(n=r==null?void 0:r.split(kl))==null?void 0:n[0],groups:((t=r==null?void 0:r.split(kl))==null?void 0:t[1])??[]}}),l},os=a=>{var r;let l=a;return(l==null?void 0:l[0])==="("&&(l==null?void 0:l[1])==="("&&(l=l.slice(1,(l==null?void 0:l.length)-1)),l=(r=ue.analyzeSplitToContent(l,","))==null?void 0:r.map(n=>((n==null?void 0:n[(n==null?void 0:n.length)-1])===","&&(n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1)),(n==null?void 0:n[0])!=="@"&&(n="@"+n),n=un(n),n)),l==null?void 0:l.join(",")},lc=(a,l,r="")=>{var j,E,w,x,b,_,$,F,Y,oe,ye,Ie,V,pe,Q,ce,Be,Ve,me,N,se,U,Se,Le,Fe,ia,Ba,ee,da,ie,fa,Ee,ne,Ae,We,ua,Ga,L,H,J,ve,he,ga,la,te,ba,Ne,Xe,Aa,Da,aa,$a,ke;let n=[],t=[],s=[],v="",f="",d="",y=[],g=[],c=[],D="";if(((j=a==null?void 0:a[0])==null?void 0:j[0])!=="*"&&((E=a==null?void 0:a[0])==null?void 0:E[0])!=="$"&&!((w=a==null?void 0:a[0])!=null&&w.includes("$")))return;((x=a==null?void 0:a[0])==null?void 0:x[0])!=="*"&&((b=a==null?void 0:a[0])==null?void 0:b[0])!=="$"&&(v=(_=ue.analyzeSplitToContent(a==null?void 0:a[0],")"))==null?void 0:_[0],(v==null?void 0:v[0])!=="@"&&(v="@"+v),v=ni(v),d=($=ue.analyzeSplitToContent(a==null?void 0:a[0],")"))==null?void 0:$[1],(d==null?void 0:d[0])==="$"&&(d=d==null?void 0:d.slice(1,d==null?void 0:d.length)),d=d==null?void 0:d.replaceAll(":","/"));let k=ue.analyzeSplitToContent(a==null?void 0:a[0],":");if(n=(F=k==null?void 0:k.filter(ae=>(ae==null?void 0:ae[0])!=="{"&&(ae==null?void 0:ae[0])!=="["))==null?void 0:F.join(""),f=(Y=a==null?void 0:a[0])==null?void 0:Y.replace(n,""),(n==null?void 0:n[0])==="("&&(n=""),D=(oe=k==null?void 0:k.filter(ae=>(ae==null?void 0:ae[0])!=="["))==null?void 0:oe.join(""),D=(ye=a==null?void 0:a[0])==null?void 0:ye.replace(D,""),f=f==null?void 0:f.replace(D,""),(n==null?void 0:n[0])==="*"&&(n=n==null?void 0:n.slice(1,n==null?void 0:n.length)),(n==null?void 0:n[(n==null?void 0:n.length)-1])===":"&&(n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1)),((Ie=ue.analyzeSplitToContent(f,"@"))==null?void 0:Ie.length)>1&&(v=(V=ue.analyzeSplitToContent(f,"@"))==null?void 0:V[1],(v==null?void 0:v[(v==null?void 0:v.length)-1])===":"&&(v=v==null?void 0:v.slice(0,(v==null?void 0:v.length)-1)),v="@"+v,v=un(v),f=(pe=ue.analyzeSplitToContent(f,"@"))==null?void 0:pe[0],f=f==null?void 0:f.slice(0,(f==null?void 0:f.length)-1)),((Q=ue.analyzeSplitToContent(n,"@"))==null?void 0:Q.length)>1){v!==""&&(v=v+",");let ae=(ce=ue.analyzeSplitToContent(n,"@"))==null?void 0:ce[1];ae="@"+ae,ae=un(ae),v=v+ae,n=(Be=ue.analyzeSplitToContent(n,"@"))==null?void 0:Be[0]}if((n==null?void 0:n[(n==null?void 0:n.length)-1])==="@"&&(n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1)),n=n===""?[]:n==null?void 0:n.split(":"),(f==null?void 0:f[(f==null?void 0:f.length)-1])===":"&&(f=f==null?void 0:f.slice(0,(f==null?void 0:f.length)-1)),r!==""){let ae=(Ve=ue.analyzeSplitToContent(r,")"))==null?void 0:Ve[0],ze=(me=ue.analyzeSplitToContent(r,"@"))==null?void 0:me[1];d=(se=(N=ue.analyzeSplitToContent(r,"@"))==null?void 0:N[0])==null?void 0:se.replace(ae,""),(d==null?void 0:d[(d==null?void 0:d.length)-1])==="@"&&(d=d==null?void 0:d.slice(0,(d==null?void 0:d.length)-1)),ae=os(ae),ze=os(ze);let Oe=ae??"";if(Oe!==""&&(Oe=Oe+","),Oe=Oe+ze,(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!==""&&v!==""&&(v=v+","),v=v+Oe,(d==null?void 0:d[0])==="$"&&(d=d==null?void 0:d.slice(1,d==null?void 0:d.length)),d=(U=ue.analyzeSplitToContent(d,":"))==null?void 0:U.filter((Me,ya)=>{var xa;return!((Me==null?void 0:Me[0])==="{"&&ya===((xa=ue.analyzeSplitToContent(d,":"))==null?void 0:xa.length)-1)}),d=d==null?void 0:d.join(""),(d==null?void 0:d[(d==null?void 0:d.length)-1])===":"&&(d=d==null?void 0:d.slice(0,(d==null?void 0:d.length)-1)),v!=null&&v.includes("@Sync")||(v=v===""?v+"@Sync=(Yes,Yes)":v+",@Sync=(Yes,Yes)"),d!=null&&d.includes("$")){let Me=(Le=(Se=d==null?void 0:d.replace("*",kl))==null?void 0:Se.split(kl))==null?void 0:Le[1],ya=(ia=(Fe=d==null?void 0:d.replace("*",kl))==null?void 0:Fe.split(kl))==null?void 0:ia[0];ya=ya==null?void 0:ya.split("$"),ya=((ee=(Ba=ya==null?void 0:ya[0])==null?void 0:Ba.split(":"))==null?void 0:ee[0])+":"+(ya==null?void 0:ya[1])+":",d=ya+"*"+Me}else d=(da=d==null?void 0:d.replaceAll("{",""))==null?void 0:da.replaceAll("}","")}v!==""&&v&&(v="("+v+")"),v=d+v,((ie=ue.analyzeSplitToContent(f,"}"))==null?void 0:ie.length)>1&&(f=(fa=ue.analyzeSplitToContent(f,"}"))==null?void 0:fa.filter(ae=>(ae==null?void 0:ae[0])!=="@"),f=f==null?void 0:f.join(""));let W=Xd(f,l);s=f===""?[]:(W==null?void 0:W.columns)??[],c=ue.getColumnChild(s);let M=ue.getColumnChild(s);s!=null&&s.some(ae=>{var ze;return Array.isArray(ae==null?void 0:ae.children)&&((ze=ae==null?void 0:ae.children)==null?void 0:ze.length)>0})&&(s=[s]),t=D?Di(D):[],!(t!=null&&t.every(ae=>Array.isArray(ae)))&&(t==null?void 0:t.length)>0&&(t=[t]),(t==null?void 0:t.length)>0&&(Array.isArray(t==null?void 0:t[0])&&((Ee=t==null?void 0:t[0])!=null&&Ee.every(ae=>Array.isArray(ae)))?t=t==null?void 0:t.map((ae,ze)=>(ae=ae.map((Oe,Me)=>(Oe.unshift("{}"),Oe.unshift((Me+1).toString()),Oe)),ae)):t=t==null?void 0:t.map((ae,ze)=>(ae.unshift("{}"),ae.unshift((ze+1).toString()),ae))),W!=null&&W.secondColumns&&((ne=W==null?void 0:W.secondColumns)==null?void 0:ne.length)>0&&((t==null?void 0:t.length)>0?t=t==null?void 0:t.map((ae,ze)=>{var Oe,Me;return Array.isArray(ae==null?void 0:ae[0])?ae=ae==null?void 0:ae.map((ya,xa)=>{var qe,Je;return ya.unshift((Je=(qe=W==null?void 0:W.secondColumns)==null?void 0:qe[xa])==null?void 0:Je.prop),ya}):ae.unshift((Me=(Oe=W==null?void 0:W.secondColumns)==null?void 0:Oe[ze])==null?void 0:Me.prop),ae}):t=(Ae=W==null?void 0:W.secondColumns)==null?void 0:Ae.map((ae,ze)=>(ae=[ae==null?void 0:ae.label],ae.push(ze),ae)),s.unshift({label:"",prop:"disabled",sortable:!1})),c=c==null?void 0:c.map(ae=>{var ze,Oe;return{menus:ae==null?void 0:ae.menus,content:((ze=ae==null?void 0:ae.menus)==null?void 0:ze.join("/"))+kl+((Oe=ae==null?void 0:ae.groups)==null?void 0:Oe.join("/"))}});let R=[];if(((ua=(We=v==null?void 0:v.replace("(",kl))==null?void 0:We.split(kl))==null?void 0:ua[0])!==""&&(R=(L=(Ga=v==null?void 0:v.replace("(",kl))==null?void 0:Ga.split(kl))==null?void 0:L[0],R=[R],R=R==null?void 0:R.map(ae=>{var Oe,Me,ya;let ze=ae==null?void 0:ae.split("*");return{menus:(Oe=ze==null?void 0:ze[0])==null?void 0:Oe.split(":"),content:((Me=ze==null?void 0:ze[0])==null?void 0:Me.replaceAll(":","/"))+kl+((ya=ze==null?void 0:ze[1])==null?void 0:ya.replaceAll(":","/"))}}),c=[...c,...R]),c=c==null?void 0:c.filter(ae=>{var ze;return(ae==null?void 0:ae.menus)&&((ze=ae==null?void 0:ae.menus)==null?void 0:ze.length)>0}),c=c==null?void 0:c.map(ae=>ae==null?void 0:ae.content),c=[...new Set(c)],c=c==null?void 0:c.map(ae=>{var ze,Oe;return{menus:(ze=ae==null?void 0:ae.split(kl))==null?void 0:ze[0],groups:((Oe=ae==null?void 0:ae.split(kl))==null?void 0:Oe[1])??[]}}),y=M==null?void 0:M.filter(ae=>{var ze;return(ae==null?void 0:ae.filter)&&((ze=ae==null?void 0:ae.filter)==null?void 0:ze.includes("@Sync"))}),(y==null?void 0:y.length)>0&&(y=y==null?void 0:y.filter(ae=>{var ze,Oe,Me,ya;return(ya=(Me=(Oe=(ze=ue.analyzeSplitToContent(ae==null?void 0:ae.filter,","))==null?void 0:ze.find(xa=>xa==null?void 0:xa.includes("@Sync")))==null?void 0:Oe.split(","))==null?void 0:Me[0])==null?void 0:ya.includes("Yes")}),y=is(y)),g=M==null?void 0:M.filter(ae=>{var ze;return(ae==null?void 0:ae.filter)&&((ze=ae==null?void 0:ae.filter)==null?void 0:ze.includes("@Sync"))}),(g==null?void 0:g.length)>0&&(g=g==null?void 0:g.filter(ae=>{var ze,Oe,Me,ya;return(ya=(Me=(Oe=(ze=ue.analyzeSplitToContent(ae==null?void 0:ae.filter,","))==null?void 0:ze.find(xa=>xa==null?void 0:xa.includes("@Sync")))==null?void 0:Oe.split(","))==null?void 0:Me[1])==null?void 0:ya.includes("Yes")}),g=is(g)),v!==""&&(v!=null&&v.includes("@Sync"))&&(v==null?void 0:v[0])!=="("){let ae=(H=v==null?void 0:v.replace("(",kl))==null?void 0:H.split(kl),ze=ae==null?void 0:ae[1];if(ze=ze==null?void 0:ze.slice(0,(ze==null?void 0:ze.length)-1),ze=ue.analyzeSplitToContent(ze,","),(he=(ve=(J=ze==null?void 0:ze.find(Oe=>Oe==null?void 0:Oe.includes("@Sync")))==null?void 0:J.split(","))==null?void 0:ve[0])!=null&&he.includes("Yes")){let Oe=ae==null?void 0:ae[0];Oe=[{menus:(la=(ga=Oe==null?void 0:Oe.split("*"))==null?void 0:ga[0])==null?void 0:la.replaceAll(":","/"),groups:((ba=(te=Oe==null?void 0:Oe.split("*"))==null?void 0:te[1])==null?void 0:ba.split(":"))??[]}],y=[...y,...Oe]}if((Aa=(Xe=(Ne=ze==null?void 0:ze.find(Oe=>Oe==null?void 0:Oe.includes("@Sync")))==null?void 0:Ne.split(","))==null?void 0:Xe[1])!=null&&Aa.includes("Yes")){let Oe=ae==null?void 0:ae[0];Oe=[{menus:(aa=(Da=Oe==null?void 0:Oe.split("*"))==null?void 0:Da[0])==null?void 0:aa.replaceAll(":","/"),groups:((ke=($a=Oe==null?void 0:Oe.split("*"))==null?void 0:$a[1])==null?void 0:ke.split(":"))??[]}],g=[...g,...Oe]}}return{groupName:n,tableColumns:s,tableFilter:v,tableContents:t,columns:(W==null?void 0:W.secondColumns)??[],relatedQuotes:c,fatherSyncContents:y,sonSyncContents:g}},rc=(a,l)=>(a=a==null?void 0:a.map((r,n)=>{var t,s,v,f;if(Array.isArray(r))r=r==null?void 0:r.map(d=>{var y,g,c,D;return d!=null&&d.isMainPath||(((y=d==null?void 0:d.children)==null?void 0:y.length)>0?d.children=rc(d.children,l):((g=d==null?void 0:d.menus)==null?void 0:g.length)>0&&!((c=r==null?void 0:r[0])!=null&&c.isMainPath)&&(d.menus=(D=d.menus)==null?void 0:D.map((I,k)=>{var W,M;return((W=d.menus)==null?void 0:W.length)-1===k&&I===""&&(l==null?void 0:l.parentContent)+"/"!==((M=d.menus)==null?void 0:M.join("/"))&&(I=l==null?void 0:l.value),d}),d.bindMenus=d.menus)),d});else{if(n===0&&((t=r.menus)==null?void 0:t.length)>0&&(r.mainKey=!0),r!=null&&r.isMainPath)return r;((s=r.menus)==null?void 0:s.length)>0&&!((v=a==null?void 0:a[0])!=null&&v.isMainPath)&&(r.menus=(f=r.menus)==null?void 0:f.map((d,y)=>{var g,c;return((g=r.menus)==null?void 0:g.length)-1===y&&d===""&&(l==null?void 0:l.parentContent)+"/"!==((c=r.menus)==null?void 0:c.join("/"))&&(d=l==null?void 0:l.value),d}),r.bindMenus=r.menus)}return r}),a),Zd=(a,l)=>(a=a==null?void 0:a.map(r=>((r==null?void 0:r.key)==="header"&&(r.contents=rc(r.contents,l)),r)),a),ht=(a,l)=>{let r=a;return Array.isArray(r==null?void 0:r[0])?r=r==null?void 0:r.map(n=>(n=ht(n,l),n)):r=r==null?void 0:r.map(n=>{var t,s;return n!=null&&n.children&&((t=n==null?void 0:n.children)==null?void 0:t.length)>0?n.children=ht(n==null?void 0:n.children,l):n!=null&&n.words&&((s=n==null?void 0:n.words)==null?void 0:s.length)>0&&(l!=null&&l.find(v=>{var f,d,y,g;return((g=(f=n==null?void 0:n.prop)==null?void 0:f.split("."))==null?void 0:g[((y=(d=n==null?void 0:n.prop)==null?void 0:d.split("."))==null?void 0:y.length)-1])===v}))&&(n.mainKey=!0),n}),r};let gr="$R";const Qd=A.useUnit(A.pinia),{selectTitle:Jr}=A.storeToRefs(Qd),vn=[{key:"@MaxRow",value:"onNumSlice",order:1},{key:"@MaxColumn",value:"onMaxColumn",order:1},{key:"@EditRead",value:"onEditRead",order:1},{key:"@Type",value:"onRandomContents",order:2},{key:"@SubType",value:"onInterfaceTypeContents",order:2},{key:"@If",value:"onConditionContents",order:4},{key:"@QuoteFatherSync",value:"onFatherPaceContents",order:1},{key:"@QuoteSonSync",value:"onPaceContents",order:1},{key:"@MainPam",value:"onMainTagContents",order:3},{key:"@Button",value:"onButtonContents",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},{key:"@TextSize",value:"onTextSize",order:1},{key:"@TextRGBA",value:"onTextRGBA",order:1},{key:"@Position",value:"onPosition",order:4},{key:"@Size",value:"onSize",order:4},{key:"@ShowType",value:"onShowType",order:1},{key:"@StepName",value:"onStepName",order:1},{key:"@Step",value:"onStep",order:1},{key:"@BackGround",value:"onBackGround",order:1}];var ri=(a=>(a[a.ORDINARY=1]="ORDINARY",a[a.BLOCK=2]="BLOCK",a[a.TEXT=3]="TEXT",a))(ri||{});const ep=a=>{if((a==null?void 0:a.filter)!==void 0&&(a==null?void 0:a.filter)!==null&&(a==null?void 0:a.filter)!==""){let l=a==null?void 0:a.contents;return l.push({key:"backGround",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},ap=a=>{const l=ic(a==null?void 0:a.filter);return l?oc(a==null?void 0:a.contents,{position:l}):a==null?void 0:a.contents},lp=a=>{const l=ic(a==null?void 0:a.filter);return l?oc(a==null?void 0:a.contents,{size:l}):a==null?void 0:a.contents},rp=a=>{if((a==null?void 0:a.filter)!==void 0&&(a==null?void 0:a.filter)!==null&&(a==null?void 0:a.filter)!==""){let l=a==null?void 0:a.contents;const r=Number(a==null?void 0:a.filter);return l.push({key:"textSize",contents:Number.isNaN(r)?a==null?void 0:a.filter:r}),l}return a==null?void 0:a.contents},np=a=>{if((a==null?void 0:a.filter)!==void 0&&(a==null?void 0:a.filter)!==null&&(a==null?void 0:a.filter)!==""){let l=a==null?void 0:a.contents;return l.push({key:"textRGBA",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},ip=a=>{var r;return(a==null?void 0:a.filter.toUpperCase())==="ALL"||(a==null?void 0:a.filter.toUpperCase())==="NONE"?a==null?void 0:a.contents:(r=a==null?void 0:a.contents)==null?void 0:r.map(n=>{var t;return(n==null?void 0:n.key)==="tableContents"&&(n.contents=(t=n.contents)==null?void 0:t.slice(0,parseInt(a==null?void 0:a.filter))),n})},op=async a=>{var l,r,n,t,s,v,f,d,y,g,c,D,I,k,W,M,R,j,E,w,x,b,_,$,F,Y,oe,ye,Ie,V;if((a==null?void 0:a.filter)==="Random")return(l=a==null?void 0:a.contents)==null?void 0:l.map(Q=>((Q==null?void 0:Q.key)==="tableContents"&&(Q.contents=ue.shuffle(Q.contents)),Q));if((a==null?void 0:a.filter)==="Auto"){let pe=(n=(r=a==null?void 0:a.contents)==null?void 0:r.find(Se=>(Se==null?void 0:Se.key)==="header"))==null?void 0:n.contents;Array.isArray(pe==null?void 0:pe[0])&&(pe=pe==null?void 0:pe[0]),pe=ue.getColumnChild(pe);let Q=pe==null?void 0:pe.filter(Se=>(Se==null?void 0:Se.filter)&&(Se==null?void 0:Se.filter)!==""),ce=new Map,Be=[];Q==null||Q.forEach(Se=>{var Le,Fe;ce.get((Le=Se==null?void 0:Se.menus)==null?void 0:Le.join("/"))||(ce.set((Fe=Se==null?void 0:Se.menus)==null?void 0:Fe.join("/"),Se),Be.push(Se))});let Ve=(s=(t=Jr==null?void 0:Jr.value)==null?void 0:t.find(Se=>(Se==null?void 0:Se.condition)==="child"))==null?void 0:s.value,me=Be==null?void 0:Be.map(Se=>{var Le,Fe,ia;return Se=(Le=Se==null?void 0:Se.menus)==null?void 0:Le.join("/"),(Se==null?void 0:Se[(Se==null?void 0:Se.length)-1])==="/"&&((ia=(Fe=Jr==null?void 0:Jr.value)==null?void 0:Fe.find(Ba=>(Ba==null?void 0:Ba.condition)==="child"))==null?void 0:ia.parentContent)+"/"!==Se?Se=Se+Ve:(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}),N=Be==null?void 0:Be.map(Se=>Se==null?void 0:Se.groups),se=me==null?void 0:me.map(async Se=>{let Le=await Kr(Se,!1);return{path:Se,contents:Le}});se=await Promise.all(se);let U=se==null?void 0:se.map((Se,Le)=>{var ia,Ba,ee,da,ie,fa,Ee;let Fe=(ia=Se==null?void 0:Se.contents)==null?void 0:ia.filter(ne=>{var Ae,We;return(ne==null?void 0:ne.name)===((We=N==null?void 0:N[Le])==null?void 0:We[((Ae=N==null?void 0:N[Le])==null?void 0:Ae.length)-1])});return Fe=(da=(ee=(Ba=Fe==null?void 0:Fe[0])==null?void 0:Ba.compData)==null?void 0:ee.find(ne=>(ne==null?void 0:ne.key)==="tableContents"))==null?void 0:da.contents,(Se==null?void 0:Se.path)===((fa=(ie=Jr==null?void 0:Jr.value)==null?void 0:ie.find(ne=>(ne==null?void 0:ne.condition)==="child"))==null?void 0:fa.parentContent)&&(Fe=((Ee=Fe==null?void 0:Fe.map(ne=>{for(let Ae in ne)if(ne[Ae]===Ve)return ne}))==null?void 0:Ee.filter(ne=>ne))??[]),Fe??[]});if(U=U==null?void 0:U.map(Se=>(Se=Se==null?void 0:Se.map(Le=>{var ia;let Fe={};for(let Ba in Le)if(Q!=null&&Q.find(ee=>{var da,ie;return((ie=(da=ee==null?void 0:ee.words)==null?void 0:da[0])==null?void 0:ie.replaceAll("'",""))===Ba})){let ee=(ia=Q==null?void 0:Q.find(da=>{var ie,fa;return((fa=(ie=da==null?void 0:da.words)==null?void 0:ie[0])==null?void 0:fa.replaceAll("'",""))===Ba}))==null?void 0:ia.prop;Fe[ee]=Le==null?void 0:Le[Ba]}return Fe}),Se)),U=ue.cartesianProduct(U),Array.isArray(U==null?void 0:U[0])&&(U=U==null?void 0:U[0]),(U==null?void 0:U.length)>0&&((c=(f=(v=Q==null?void 0:Q[0])==null?void 0:v.menus)==null?void 0:f.join("/"))==null?void 0:c[((g=(y=(d=Q==null?void 0:Q[0])==null?void 0:d.menus)==null?void 0:y.join("/"))==null?void 0:g.length)-1])==="/")return(D=a==null?void 0:a.contents)==null?void 0:D.map(Le=>{var Fe;return(Le==null?void 0:Le.key)==="tableContents"&&(U==null?void 0:U.length)>0&&(Le.contents=((Fe=Le.contents)==null?void 0:Fe.length)>0?Le.contents:U),Le})}if((a==null?void 0:a.filter)==="Manual"){let pe=[],Q=[],ce=(k=(I=a==null?void 0:a.contents)==null?void 0:I.find(N=>(N==null?void 0:N.key)==="filter"))==null?void 0:k.contents;(ce==null?void 0:ce[(ce==null?void 0:ce.length)-1])===")"?ce=(M=(W=ce==null?void 0:ce.replace("(",gr))==null?void 0:W.split(gr))==null?void 0:M[0]:ce="",ce!==""&&(pe=((j=(R=ce==null?void 0:ce.split("*"))==null?void 0:R[0])==null?void 0:j.split(":"))??[],Q=((_=(b=(x=(w=(E=ce==null?void 0:ce.split("*"))==null?void 0:E[1])==null?void 0:w.replace("{",gr))==null?void 0:x.split(gr))==null?void 0:b[0])==null?void 0:_.split(":"))??[]);let Be=(F=($=a==null?void 0:a.contents)==null?void 0:$.find(N=>(N==null?void 0:N.key)==="filter"))==null?void 0:F.contents;Be=(oe=(Y=Be==null?void 0:Be.replace("(",gr))==null?void 0:Y.split(gr))==null?void 0:oe[1],Be=Be==null?void 0:Be.slice(0,(Be==null?void 0:Be.length)-1);let Ve=(ye=a==null?void 0:a.contents)==null?void 0:ye.map(N=>{var se,U,Se,Le,Fe,ia,Ba,ee,da;return(N==null?void 0:N.key)==="header"&&((se=N==null?void 0:N.contents)!=null&&se.every(ie=>(ie==null?void 0:ie.mainKey)!==!0)&&Array.isArray(N==null?void 0:N.contents)&&!Array.isArray((U=N==null?void 0:N.contents)==null?void 0:U[0])?N.contents=(Se=N==null?void 0:N.contents)==null?void 0:Se.map((ie,fa)=>{var Ee,ne,Ae;return ie!=null&&ie.isMainPath||(fa===0?(ie.mainKey=!0,ie.formType="Select",ie.bindMenus=pe,ie.groups=((Ee=ie.groups)==null?void 0:Ee.length)===0?Q:ie.groups,ie.words=((ne=ie.words)==null?void 0:ne.length)===0?[ie==null?void 0:ie.prop]:ie.words,ie.filter=Be,(!(ie!=null&&ie.menus)||((Ae=ie==null?void 0:ie.menus)==null?void 0:Ae.length)===0)&&(ie.menus=pe)):(ie.mainKey=!1,ie.bindMenus=pe)),ie}):Array.isArray((Le=N==null?void 0:N.contents)==null?void 0:Le[0])&&((Ba=(ia=(Fe=N==null?void 0:N.contents)==null?void 0:Fe[0])==null?void 0:ia.filter(()=>(pe==null?void 0:pe.length)>0))==null?void 0:Ba.length)>0&&(N.contents[0]=(da=(ee=N==null?void 0:N.contents)==null?void 0:ee[0])==null?void 0:da.map((ie,fa)=>{var Ee,ne,Ae;return ie!=null&&ie.isMainPath||(fa===0?(ie.mainKey=!0,ie.formType="Select",ie.bindMenus=pe,ie.groups=((Ee=ie.groups)==null?void 0:Ee.length)===0?Q:ie.groups,ie.words=((ne=ie.words)==null?void 0:ne.length)===0?[ie==null?void 0:ie.prop]:ie.words,ie.filter=Be,(!(ie!=null&&ie.menus)||Array.isArray(ie==null?void 0:ie.menus)&&((Ae=ie==null?void 0:ie.menus)==null?void 0:Ae.length)===0)&&(pe==null?void 0:pe.length)>0&&(ie.menus=pe)):(ie.mainKey=!1,ie.bindMenus=pe)),ie}))),N}),me=(Ie=Ve==null?void 0:Ve.find(N=>(N==null?void 0:N.key)==="header"))==null?void 0:Ie.contents;if(Array.isArray(me==null?void 0:me[0])&&(me=me==null?void 0:me[0]),me=ue.getColumnChild(me),me!=null&&me.some(N=>{var se,U;return((U=N==null?void 0:N.menus)==null?void 0:U[((se=N==null?void 0:N.menus)==null?void 0:se.length)-1])===""})){let N=(V=Jr==null?void 0:Jr.value)==null?void 0:V.find(se=>(se==null?void 0:se.condition)==="child");Ve=Zd(Ve,N)}return Ve}if((a==null?void 0:a.filter)==="Chart"){let pe=a==null?void 0:a.contents;return pe.push({key:"newType",contents:"Chart"}),pe}return a==null?void 0:a.contents},tp=async a=>{if((a==null?void 0:a.filter)==="Ordin"){let l=a==null?void 0:a.contents;return l.push({key:"enableWrap",contents:1}),l}if((a==null?void 0:a.filter)==="Block"){let l=a==null?void 0:a.contents;return l.push({key:"enableWrap",contents:2}),l}if((a==null?void 0:a.filter)==="Text"){let l=a==null?void 0:a.contents;return l.push({key:"enableWrap",contents:3}),l}if((a==null?void 0:a.filter)==="Bar"||(a==null?void 0:a.filter)==="Pie"||(a==null?void 0:a.filter)==="Line"||(a==null?void 0:a.filter)==="Histogram"||(a==null?void 0:a.filter)==="Scatter"){let l=a==null?void 0:a.contents;return l.push({key:"ChartType",contents:{type:a==null?void 0:a.filter,title:""}}),l}return a==null?void 0:a.contents},sp=a=>{var n,t,s,v,f,d,y,g,c,D,I,k;let l=a==null?void 0:a.filter;if(l!=null&&l.includes("*")&&(l="({"+((t=(n=l==null?void 0:l.replace(":",gr))==null?void 0:n.split(gr))==null?void 0:t[1])),l=(s=l==null?void 0:l.replaceAll("{",""))==null?void 0:s.replaceAll("}",""),(f=(v=l==null?void 0:l.split("="))==null?void 0:v[1])!=null&&f.includes("$")){(l==null?void 0:l[0])==="("&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1));let W=(d=l==null?void 0:l.split("="))==null?void 0:d[0],M=(y=l==null?void 0:l.split("="))==null?void 0:y[1];(g=M==null?void 0:M.slice(1,M==null?void 0:M.length))!=null&&g.includes("$")&&(M=(I=(D=(c=Jr==null?void 0:Jr.value)==null?void 0:c.filter(R=>(R==null?void 0:R.condition)==="child"))==null?void 0:D[0])==null?void 0:I.value),l=W+"="+M}if((l==null?void 0:l[0])!=="("&&(l="("+l+")"),l.slice(1,(l==null?void 0:l.length)-1)==="undefined")return a==null?void 0:a.contents;let r=ue.calculatorAndToOr(l);if((r==null?void 0:r.length)>0){let W=[];return r==null||r.forEach(R=>{let j={};for(let E in R){let w=E;w!=null&&w.includes("[")||(j[w]=R[E])}W.push(j)}),(k=a==null?void 0:a.contents)==null?void 0:k.map(R=>{var E,w,x;let j=(w=(E=a==null?void 0:a.contents)==null?void 0:E.find(b=>(b==null?void 0:b.key)==="header"))==null?void 0:w.contents;if(j=(x=ue.getEqualChild(j))==null?void 0:x.filter(b=>(b==null?void 0:b.label)!=="操作"),(R==null?void 0:R.key)==="tableContents"){let _=ue.tableToForm(R==null?void 0:R.contents,j);W==null||W.forEach($=>{var F,Y;for(let oe in $)!((F=_==null?void 0:_[0])!=null&&F.find(ye=>{var Ie;return(ye==null?void 0:ye.key)===oe||((Ie=ye==null?void 0:ye.key)==null?void 0:Ie.includes(oe))}))&&!(_!=null&&_.find(ye=>{var Ie;return(ye==null?void 0:ye.key)===oe||((Ie=ye==null?void 0:ye.key)==null?void 0:Ie.includes(oe))}))||(((Y=$[oe])==null?void 0:Y[0])!=="!"?_=_==null?void 0:_.filter(ye=>{var Ie,V;return((Ie=ye==null?void 0:ye.find(pe=>{var Q;return(pe==null?void 0:pe.key)===oe||((Q=pe==null?void 0:pe.key)==null?void 0:Q.includes(oe))}))==null?void 0:Ie.value)===$[oe]||Array.isArray($==null?void 0:$[oe])&&((V=$==null?void 0:$[oe])==null?void 0:V.find(pe=>{var Q;return((Q=ye==null?void 0:ye.find(ce=>{var Be;return(ce==null?void 0:ce.key)===oe||((Be=ce==null?void 0:ce.key)==null?void 0:Be.includes(oe))}))==null?void 0:Q.value)===pe}))}):_=_==null?void 0:_.filter(ye=>{var Ie;return((Ie=ye==null?void 0:ye.find(V=>{var pe;return(V==null?void 0:V.key)===oe||((pe=V==null?void 0:V.key)==null?void 0:pe.includes(oe))}))==null?void 0:Ie.value)!==$[oe]}))}),(_==null?void 0:_.length)===0?R.contents=[]:R.contents=_==null?void 0:_.map($=>{let F={};return $==null||$.forEach(Y=>{F[Y==null?void 0:Y.key]=Y==null?void 0:Y.value}),F})}return R})}return a==null?void 0:a.contents},cp=a=>a==null?void 0:a.contents,up=a=>a==null?void 0:a.contents,dp=a=>{var l,r,n,t;if((a==null?void 0:a.filter)!==""&&(a!=null&&a.filter)){let s=(n=(r=a==null?void 0:a.filter)==null?void 0:r.slice(1,((l=a==null?void 0:a.filter)==null?void 0:l.length)-1))==null?void 0:n.split(",");return(t=a==null?void 0:a.contents)==null?void 0:t.map(f=>((f==null?void 0:f.key)==="header"&&(f.contents=ht(f.contents,s)),f))}return a==null?void 0:a.contents},pp=a=>{var r,n,t,s,v;let l=(a==null?void 0:a.filter)??"";if(l!==""){let f=(n=(r=l==null?void 0:l.replace("(",gr))==null?void 0:r.split(gr))==null?void 0:n[1];f=f==null?void 0:f.slice(0,(f==null?void 0:f.length)-1),(f==null?void 0:f[(f==null?void 0:f.length)-1])===")"&&(f=f==null?void 0:f.slice(1,(f==null?void 0:f.length)-1)),f=(t=ue.analyzeSplitToContent(f,","))==null?void 0:t.map(c=>((c==null?void 0:c[(c==null?void 0:c.length)-1])===","&&(c=c==null?void 0:c.slice(0,(c==null?void 0:c.length)-1)),c));let d=f==null?void 0:f[0];(d==null?void 0:d[0])==="("&&(d=d==null?void 0:d.slice(1,(d==null?void 0:d.length)-1));let y=(f==null?void 0:f[1])??"Up",g=(s=a==null?void 0:a.contents)==null?void 0:s.map(c=>{var D,I;return y==="Up"?(c==null?void 0:c.key)==="extraButton"&&(c.contents=(D=d==null?void 0:d.split(","))==null?void 0:D.map(k=>({label:k,prop:k}))):y==="Line"&&(c==null?void 0:c.key)==="rowButton"&&(c.contents=(I=d==null?void 0:d.split(","))==null?void 0:I.map(k=>({label:k,prop:k}))),c});if(y==="Bottom"||y==="Down"){let c=(v=d==null?void 0:d.split(","))==null?void 0:v.map(D=>({label:D,prop:D}));g.push({key:"bottomButton",contents:c})}return g}return a==null?void 0:a.contents},fp=a=>a==null?void 0:a.contents,hp=a=>{var r;let l=(a==null?void 0:a.filter)??"";return(l==null?void 0:l[0])==="{"&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1)),l!==""?(r=a==null?void 0:a.contents)==null?void 0:r.map(t=>{var s;return(t==null?void 0:t.key)==="rowButton"&&(t.contents=(s=l==null?void 0:l.split(","))==null?void 0:s.map(v=>({label:v,prop:v}))),t}):a==null?void 0:a.contents},vp=a=>{var r;let l=(a==null?void 0:a.filter)??"";if((l==null?void 0:l[0])==="{"&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1)),l!==""){let n=a==null?void 0:a.contents,t=(r=l==null?void 0:l.split(","))==null?void 0:r.map(s=>({label:s,prop:s}));return n.push({key:"bottomButton",contents:t}),n}return a==null?void 0:a.contents},mp=a=>{if((a==null?void 0:a.filter)==="Read"){let l=a==null?void 0:a.contents;return l=l==null?void 0:l.map(r=>{var n;return(r==null?void 0:r.key)==="formContent"&&(r.contents=(n=r.contents)==null?void 0:n.map(t=>(t.isNoClick=!0,t))),r}),l!=null&&l.find(r=>(r==null?void 0:r.key)==="tableContents")&&(l==null||l.push({key:"isEdit",contents:!1}),l=l==null?void 0:l.filter(r=>(r==null?void 0:r.key)!=="extraButton"&&(r==null?void 0:r.key)!=="rowButton")),l}return a==null?void 0:a.contents},yp=a=>{var l;if(a!=null&&a.filter){const r=parseInt(a==null?void 0:a.filter);return!r||Number.isNaN(r)?a==null?void 0:a.contents:(l=a==null?void 0:a.contents)==null?void 0:l.map(t=>{var s;return(t==null?void 0:t.key)==="formContent"&&(t.contents=(s=t.contents)==null?void 0:s.map(v=>(v.width=r,v))),t})}return a==null?void 0:a.contents},gp=a=>{var l,r,n,t;if(((l=a==null?void 0:a.filter)==null?void 0:l[0])!=="["){const s=parseInt(a==null?void 0:a.filter);return!s||Number.isNaN(s)?a==null?void 0:a.contents:(r=a==null?void 0:a.contents)==null?void 0:r.map(f=>{var d;return(f==null?void 0:f.key)==="formContent"&&(f.contents=(d=f.contents)==null?void 0:d.map(y=>(y.width=s,y))),f})}if(((n=a==null?void 0:a.filter)==null?void 0:n[0])==="["){let s=Di(a==null?void 0:a.filter),v=Array.isArray(s)?s.map(d=>parseInt(d)).filter(d=>!!d&&!Number.isNaN(d)):[];return v.length?(t=a==null?void 0:a.contents)==null?void 0:t.map(d=>{if((d==null?void 0:d.key)==="formContent"){const y=d.contents??[];d.contents=y.map((g,c)=>{const D=c+1;let I=0,k=0;for(let M=0;M<v.length;M++){if(k+=v[M],D<=k){I=M;break}M===v.length-1&&(I=v.length-1)}const W=v[I]||v[v.length-1]||1;return g.width=W,g})}return d}):a==null?void 0:a.contents}return a==null?void 0:a.contents},bp=a=>{var l;if((a==null?void 0:a.filter)!==""){let r=a==null?void 0:a.filter;return(r==null?void 0:r[0])==="("&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),r=r==null?void 0:r.split(","),(l=a==null?void 0:a.contents)==null?void 0:l.map(t=>{var s,v,f;return(t==null?void 0:t.key)==="header"&&(Array.isArray((s=t==null?void 0:t.contents)==null?void 0:s[0])?t.contents[0]=(f=t.contents[0])==null?void 0:f.map(d=>(r!=null&&r.find(y=>y===(d==null?void 0:d.prop))&&(d.fixed="left"),d)):t.contents=(v=t.contents)==null?void 0:v.map(d=>(r!=null&&r.find(y=>y===(d==null?void 0:d.prop))&&(d.fixed="left"),d))),t})}return a==null?void 0:a.contents},kp=a=>{var l;if((a==null?void 0:a.filter)!==""){let r=a==null?void 0:a.filter;(r==null?void 0:r[0])==="("&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),r=r==null?void 0:r.split(",");const n=s=>(r!=null&&r.find(v=>v===(s==null?void 0:s.prop))&&(s.required=!0),s!=null&&s.children&&Array.isArray(s.children)&&(s.children=s.children.map(v=>n(v))),s);return(l=a==null?void 0:a.contents)==null?void 0:l.map(s=>{var v,f,d;return(s==null?void 0:s.key)==="header"&&(Array.isArray((v=s==null?void 0:s.contents)==null?void 0:v[0])?s.contents[0]=(d=s.contents[0])==null?void 0:d.map(y=>n(y)):s.contents=(f=s.contents)==null?void 0:f.map(y=>n(y))),s})}return a==null?void 0:a.contents},xp=async a=>{var n,t,s,v,f,d,y,g,c,D,I,k,W,M,R,j,E;const l=A.useUnit(A.pinia),{chooseTitle:r}=A.storeToRefs(l);if((a==null?void 0:a.filter)==="true"){let w=await Kr(((t=(n=r==null?void 0:r.value)==null?void 0:n[0])==null?void 0:t.parentContent)??((v=(s=r==null?void 0:r.value)==null?void 0:s[0])==null?void 0:v.relatedContent),!1),x=(d=(f=r==null?void 0:r.value)==null?void 0:f[0])==null?void 0:d.value;(g=(y=w==null?void 0:w[0])==null?void 0:y.compData)!=null&&g.find(F=>(F==null?void 0:F.key)==="header")?w=(c=w==null?void 0:w[0])==null?void 0:c.compData:w=(I=(D=w==null?void 0:w.filter(F=>{var Y;return(Y=F==null?void 0:F.compData)==null?void 0:Y.find(oe=>(oe==null?void 0:oe.key)==="header")}))==null?void 0:D[0])==null?void 0:I.compData;let b=(k=w==null?void 0:w.find(F=>(F==null?void 0:F.key)==="header"))==null?void 0:k.contents;Array.isArray(b==null?void 0:b[0])&&(b=b==null?void 0:b[0]),b=((W=b==null?void 0:b.find(F=>F==null?void 0:F.isMainKey))==null?void 0:W.prop)??((M=b==null?void 0:b[0])==null?void 0:M.prop);let _=(j=(R=w==null?void 0:w.find(F=>(F==null?void 0:F.key)==="tableContents"))==null?void 0:R.contents)==null?void 0:j.find(F=>(F==null?void 0:F[b])===x);return(E=a==null?void 0:a.contents)==null?void 0:E.map(F=>{var Y;return(F==null?void 0:F.key)==="formContent"&&(F.contents=(Y=F.contents)==null?void 0:Y.map(oe=>(oe.value=_==null?void 0:_[oe==null?void 0:oe.prop],oe))),F})}return a==null?void 0:a.contents},wp=a=>{var l,r,n,t,s;if((l=a==null?void 0:a.extra)!=null&&l.row){let v=a==null?void 0:a.filter;if(v!=null&&v.includes("*")&&(v="({"+((n=(r=v==null?void 0:v.replace("{",gr))==null?void 0:r.split(gr))==null?void 0:n[1])),v=(t=v==null?void 0:v.replaceAll("{",""))==null?void 0:t.replaceAll("}",""),(v==null?void 0:v[0])!=="("&&(v="("+v+")"),v.slice(1,(v==null?void 0:v.length)-1)==="undefined")return a==null?void 0:a.contents;let f=ue.calculatorAndToOr(v),d=f==null?void 0:f[0],y=(s=a==null?void 0:a.extra)==null?void 0:s.row,g=[];for(let c in d)(d==null?void 0:d[c])===(y==null?void 0:y[c])?g.push(!0):g.push(!1);return g!=null&&g.every(c=>c===!0)?a==null?void 0:a.contents:[]}else return a==null?void 0:a.contents},_p=a=>{if(a!=null&&a.filter){let l=a==null?void 0:a.contents;return l.push({key:"tab",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},Sp=a=>{if(a!=null&&a.filter){let l=a==null?void 0:a.contents;return l.push({key:"choice",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},Ep=a=>{if(a!=null&&a.filter){let l=a==null?void 0:a.contents;return l.push({key:"fixType",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},Cp=a=>{var l;if(a!=null&&a.filter){let r=a==null?void 0:a.contents,n=a==null?void 0:a.filter;return(n==null?void 0:n[0])==="("&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n=(l=ue.analyzeSplitToContent(n,","))==null?void 0:l.map(t=>((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)),r.push({key:"stepName",contents:n}),r}return a==null?void 0:a.contents},Dp=a=>{if(a!=null&&a.filter){let l=a==null?void 0:a.contents;return l.push({key:"step",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},nc={onNumSlice:ip,onRandomContents:op,onConditionContents:sp,onFatherPaceContents:cp,onPaceContents:up,onMainTagContents:dp,onButtonContents:pp,onPamButtonContents:fp,onRowButtonContents:hp,onRelated:xp,onRowNum:gp,onFixRow:bp,onReqItem:kp,onBottomButtonContents:vp,onConditionContent:wp,onTabs:_p,onSinChoice:Sp,onTextSize:rp,onTextRGBA:np,onPosition:ap,onSize:lp,onShowType:Ep,onStepName:Cp,onStep:Dp,onInterfaceTypeContents:tp,onBackGround:ep,onMaxColumn:yp,onEditRead:mp},Bp=async(a,l)=>{var s,v,f,d,y,g,c,D,I,k,W,M;let r="";if(((s=a==null?void 0:a.find(R=>(R==null?void 0:R.key)==="filter"))==null?void 0:s.contents)!==""&&(r=(v=a==null?void 0:a.find(R=>(R==null?void 0:R.key)==="filter"))==null?void 0:v.contents),r===""||!r)return a;(r==null?void 0:r[0])==="("?r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1):(r=(d=(f=r==null?void 0:r.replace("(",gr))==null?void 0:f.split(gr))==null?void 0:d[1],r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1));let n=(y=ue.analyzeSplitToContent(r,","))==null?void 0:y.map(R=>((R==null?void 0:R[(R==null?void 0:R.length)-1])===","&&(R=R==null?void 0:R.slice(0,(R==null?void 0:R.length)-1)),R!=null&&R.includes("(")||(R=R==null?void 0:R.replaceAll(":","=")),R)),t=a;for(let R in n){let j,E="";j=(D=(c=(g=n==null?void 0:n[R])==null?void 0:g.replace("=",gr))==null?void 0:c.split(gr))==null?void 0:D[0],E=(W=(k=(I=n==null?void 0:n[R])==null?void 0:I.replace("=",gr))==null?void 0:k.split(gr))==null?void 0:W[1];let w=(M=vn==null?void 0:vn.find(x=>(x==null?void 0:x.key)===j))==null?void 0:M.value;if(w){const x=nc[w];t=await x({contents:t,filter:E})}}return t},Et=async(a,l)=>{var v,f,d,y,g,c,D,I,k,W,M,R,j,E,w,x,b,_,$,F;let r="";if(((v=a==null?void 0:a.find(Y=>(Y==null?void 0:Y.key)==="filter"))==null?void 0:v.contents)!==""&&(r=(f=a==null?void 0:a.find(Y=>(Y==null?void 0:Y.key)==="filter"))==null?void 0:f.contents),r===""||!r)return a;(r==null?void 0:r[0])===","&&(r=r==null?void 0:r.slice(1,r==null?void 0:r.length)),(r==null?void 0:r[0])==="("?r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1):(r==null?void 0:r[0])==="@"||(r=(y=(d=r==null?void 0:r.replace("(",gr))==null?void 0:d.split(gr))==null?void 0:y[1],r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1));let n=(g=ue.analyzeSplitToContent(r,","))==null?void 0:g.map(Y=>((Y==null?void 0:Y[(Y==null?void 0:Y.length)-1])===","&&(Y=Y==null?void 0:Y.slice(0,(Y==null?void 0:Y.length)-1)),Y!=null&&Y.includes("(")||(Y=Y==null?void 0:Y.replaceAll(":","=")),Y)),t=a,s=new Map;n==null||n.forEach(Y=>{var ye,Ie,V;let oe=(ye=Y==null?void 0:Y.split("="))==null?void 0:ye[0];if(oe==="@MainPam"&&s.get(oe)){let pe=s.get(oe);pe=pe==null?void 0:pe.slice(0,(pe==null?void 0:pe.length)-1);let Q=(V=(Ie=Y==null?void 0:Y.replace("{",gr))==null?void 0:Ie.split(gr))==null?void 0:V[1];Q=pe+","+Q,s.set(oe,Q)}else oe==="@Button"&&s.get(oe)?s.set(Y,Y):s.set(oe,Y)}),n=Array.from(s.values()),n=n==null?void 0:n.sort((Y,oe)=>{var ye,Ie;return((ye=vn==null?void 0:vn.find(V=>oe==null?void 0:oe.includes(V==null?void 0:V.key)))==null?void 0:ye.order)-((Ie=vn==null?void 0:vn.find(V=>Y==null?void 0:Y.includes(V==null?void 0:V.key)))==null?void 0:Ie.order)});for(let Y in n){let oe,ye="";(c=n==null?void 0:n[Y])!=null&&c.includes("(")&&((D=n==null?void 0:n[Y])!=null&&D.includes("@If"))?(oe=(W=(k=(I=n==null?void 0:n[Y])==null?void 0:I.replace("(",gr))==null?void 0:k.split(gr))==null?void 0:W[0],ye="("+((j=(R=(M=n==null?void 0:n[Y])==null?void 0:M.replace("(",gr))==null?void 0:R.split(gr))==null?void 0:j[1])):(oe=(x=(w=(E=n==null?void 0:n[Y])==null?void 0:E.replace("=",gr))==null?void 0:w.split(gr))==null?void 0:x[0],ye=($=(_=(b=n==null?void 0:n[Y])==null?void 0:b.replace("=",gr))==null?void 0:_.split(gr))==null?void 0:$[1]);let Ie=(F=vn==null?void 0:vn.find(V=>(V==null?void 0:V.key)===oe))==null?void 0:F.value;if(Ie){const V=nc[Ie];t=await V({contents:t,filter:ye,extra:l})}}return t},ic=a=>{if(a==null)return null;const l=String(a).trim();if(!l.startsWith("(")||!l.endsWith(")"))return null;const r=l.slice(1,-1).split(",").map(n=>Number(n.trim()));return r.length<2||r.some(n=>Number.isNaN(n))?null:[r[0],r[1]]},oc=(a,l)=>{var W,M,R,j,E;const r=Array.isArray(a)?a:[],n=r.find(w=>(w==null?void 0:w.key)==="formContent"),t=Array.isArray(n==null?void 0:n.contents)?n.contents:[],s=((W=r.find(w=>(w==null?void 0:w.key)==="_gridLayoutMeta"))==null?void 0:W.contents)??{},v=(t==null?void 0:t[0])??{};let f=((M=l==null?void 0:l.position)==null?void 0:M[0])??(s==null?void 0:s._positionStartRow)??(v==null?void 0:v._positionStartRow),d=((R=l==null?void 0:l.position)==null?void 0:R[1])??(s==null?void 0:s._positionRowSpan)??(v==null?void 0:v._positionRowSpan);(!f||Number.isNaN(f)||f<1)&&(f=1),(!d||Number.isNaN(d)||d<1)&&(d=1);let y=((j=l==null?void 0:l.size)==null?void 0:j[0])??(s==null?void 0:s._sizeStart)??(v==null?void 0:v._sizeStart),g=((E=l==null?void 0:l.size)==null?void 0:E[1])??(s==null?void 0:s._sizeEnd)??(v==null?void 0:v._sizeEnd);(y===void 0||Number.isNaN(y))&&(y=0),(g===void 0||Number.isNaN(g))&&(g=1),y=Math.max(0,Math.min(1,y)),g=Math.max(0,Math.min(1,g)),g<=y&&(y=0,g=1);const c=g-y,D=Math.max(1,Math.round(1/c));let I=r.map(w=>{if((w==null?void 0:w.key)!=="formContent")return w;const x=Array.isArray(w==null?void 0:w.contents)?w.contents:[];return{...w,contents:x.map(b=>({...b,width:D,_positionStartRow:f,_positionRowSpan:d,_sizeStart:y,_sizeEnd:g}))}});const k={_positionStartRow:f,_positionRowSpan:d,_sizeStart:y,_sizeEnd:g};return I.some(w=>(w==null?void 0:w.key)==="_gridLayoutMeta")?I=I.map(w=>(w==null?void 0:w.key)==="_gridLayoutMeta"?{...w,contents:k}:w):I.push({key:"_gridLayoutMeta",contents:k}),I};let po="$R";const Tp=A.useUnit(A.pinia),{selectTitle:Np}=A.storeToRefs(Tp);let Ap=[{label:"新增",prop:"新增"},{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],zp=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"},{label:"复制新增",prop:"复制新增"},{label:"删除",prop:"删除"}],Mp=[{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],Ip=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"}];const ts=async(a,l,r=!0)=>{let n=[],t=a==null?void 0:a.map(async s=>{var c,D,I,k,W,M,R,j,E,w,x,b,_,$,F,Y,oe,ye,Ie,V,pe,Q,ce,Be,Ve,me,N,se,U,Se,Le,Fe,ia,Ba,ee,da,ie,fa,Ee,ne,Ae,We,ua,Ga,L,H,J,ve,he,ga,la,te,ba,Ne,Xe,Aa,Da,aa,$a,ke,ae,ze,Oe,Me,ya,xa,qe,Je,Ue,_e,de,Oa,La,gl,zl,tl,jl,Pa,Il,Vl,Ma,el,sl,ol,Va,dl,rl;let v=(k=(I=(D=(c=s==null?void 0:s.contents)==null?void 0:c.find(X=>{var ra;return(ra=X==null?void 0:X.key)==null?void 0:ra.includes("struct")}))==null?void 0:D.value)==null?void 0:I[0])==null?void 0:k.类型,f=Object.values(s==null?void 0:s.name);f=f==null?void 0:f.reverse();let d=(W=s==null?void 0:s.contents)==null?void 0:W.map(X=>X==null?void 0:X.key),y={comp:v,isShow:s==null?void 0:s.is_show,name:f==null?void 0:f[0],id:s==null?void 0:s.object_id,order_no:s==null?void 0:s.order_no,relatedTables:d,menuFilter:(M=s==null?void 0:s.filter)==null?void 0:M.menuFilter,status:s==null?void 0:s.status,fatherSyncContents:(R=s==null?void 0:s.filter)==null?void 0:R.fatherSyncs,relatedQuotes:(j=s==null?void 0:s.filter)==null?void 0:j.quotes,sonSyncContents:(E=s==null?void 0:s.filter)==null?void 0:E.sonSyncs,nameContents:(w=A.cloneDeep(f))==null?void 0:w.reverse()};for(let X in f)parseInt(X)>=1&&(y[`name${parseInt(X)-1}`]=f[X]);let g=Array.isArray((x=s==null?void 0:s.filter)==null?void 0:x.menuFilter)?(b=s==null?void 0:s.filter)==null?void 0:b.menuFilter:[];if(((_=g==null?void 0:g.filter(X=>X==null?void 0:X.includes("@Filter")))==null?void 0:_.length)>0){let X=g==null?void 0:g.filter(Ye=>Ye==null?void 0:Ye.includes("@Filter"));X=X==null?void 0:X[0],X=(F=($=X==null?void 0:X.replace("(",po))==null?void 0:$.split(po))==null?void 0:F[1],X=X==null?void 0:X.slice(0,(X==null?void 0:X.length)-1),X!=null&&X.includes("*")&&(X=(oe=(Y=X==null?void 0:X.replace("{",po))==null?void 0:Y.split(po))==null?void 0:oe[1],X=X==null?void 0:X.replace("}","")),X=ue.calculatorAndToOr(X);let ra=(l==null?void 0:l.originPath)??"";(ra==null?void 0:ra[(ra==null?void 0:ra.length)-1])==="/"&&(ra=ra==null?void 0:ra.slice(0,(ra==null?void 0:ra.length)-1));let ea=await Kr(ra,!1),fe=(ye=ea==null?void 0:ea.filter(Ye=>(Ye==null?void 0:Ye.comp)==="Table"))==null?void 0:ye[0];fe=(V=(Ie=fe==null?void 0:fe.compData)==null?void 0:Ie.find(Ye=>(Ye==null?void 0:Ye.key)==="tableContents"))==null?void 0:V.contents;let ka=(Q=(pe=Np.value)==null?void 0:pe.find(Ye=>(Ye==null?void 0:Ye.condition)==="child"))==null?void 0:Q.value;fe=(ce=fe==null?void 0:fe.map(Ye=>{for(let ta in Ye)if((Ye==null?void 0:Ye[ta])===ka)return Ye}))==null?void 0:ce.filter(Ye=>Ye),fe=fe==null?void 0:fe[0],X=X==null?void 0:X[0];let ha=[];for(let Ye in X){let ta="";Ha.isObject(fe)&&(ta=(Ve=(Be=Object.keys(fe))==null?void 0:Be.filter(va=>va==null?void 0:va.includes("."+Ye)))==null?void 0:Ve[0]),ta!==""&&(fe!=null&&fe[ta])&&(X==null?void 0:X[Ye])===(fe==null?void 0:fe[ta])||fe!=null&&fe[Ye]&&(X==null?void 0:X[Ye])===(fe==null?void 0:fe[Ye])?ha.push(!0):ha.push(!1)}if(ha!=null&&ha.some(Ye=>Ye===!1)&&((N=l==null?void 0:l.originPath)==null?void 0:N[((me=l==null?void 0:l.originPath)==null?void 0:me.length)-1])!=="/")return}if(v==="Table"||v==="Method"){!r&&((se=y==null?void 0:y.fatherSyncContents)==null?void 0:se.length)>0;let X=((U=s==null?void 0:s.contents)==null?void 0:U.find(He=>{var ca;return(ca=He==null?void 0:He.key)==null?void 0:ca.includes("content")}))||[],ra=[];y.comp="Table",X.value=(Se=X==null?void 0:X.value)==null?void 0:Se.sort((He,ca)=>parseInt(He==null?void 0:He.id)-parseInt(ca==null?void 0:ca.id)),X.value=(Le=X==null?void 0:X.value)==null?void 0:Le.map(He=>{let ca={};for(let oa in He)JSON.stringify(He==null?void 0:He[oa])==="{}"?ca[oa]="":ca[oa]=He==null?void 0:He[oa];return ca}),ra.push({key:"tableContents",contents:X==null?void 0:X.value});let ea=(da=(ee=(Ba=(ia=(Fe=s==null?void 0:s.contents)==null?void 0:Fe.find(He=>{var ca;return(ca=He==null?void 0:He.key)==null?void 0:ca.includes("struct")}))==null?void 0:ia.value)==null?void 0:Ba[0])==null?void 0:ee.结构)==null?void 0:da.contents;Array.isArray(ea==null?void 0:ea[0])?ea[0]=(ie=ea==null?void 0:ea[0])==null?void 0:ie.filter(He=>(He==null?void 0:He.prop)!=="sort"&&(He==null?void 0:He.prop)!=="relatedId"):ea=ea==null?void 0:ea.filter(He=>(He==null?void 0:He.prop)!=="sort"&&(He==null?void 0:He.prop)!=="relatedId"),ra.push({key:"header",contents:ea}),ra.push({key:"filter",contents:(We=(Ae=(ne=(Ee=(fa=s==null?void 0:s.contents)==null?void 0:fa.find(He=>{var ca;return(ca=He==null?void 0:He.key)==null?void 0:ca.includes("struct")}))==null?void 0:Ee.value)==null?void 0:ne[0])==null?void 0:Ae.引用)==null?void 0:We.contents});let fe=Ap,ka=A.cloneDeep(zp);v==="Method"&&ka.push({label:"生成方法",prop:"生成方法"}),!Array.isArray(ea==null?void 0:ea[0])&&((ua=ea==null?void 0:ea[0])==null?void 0:ua.prop)==="disabled"&&(fe=Mp,ka=Ip);const ha=["推力","真空","压力","温度","流量"],Ye=y.name;Ye&&ha.includes(Ye)&&(fe=[...fe],fe.push({label:"导出paraform",prop:"导出paraform",type:"methodButton"}));let ta=[];if(!Array.isArray(ea==null?void 0:ea[0])&&(ea!=null&&ea.some(He=>{var ca;return(He==null?void 0:He.calculatorFilter)&&((ca=He==null?void 0:He.calculatorFilter)==null?void 0:ca.includes("Manual"))}))){let He=(Ga=ea==null?void 0:ea.map(ca=>ca==null?void 0:ca.calculatorFilter))==null?void 0:Ga.filter(ca=>ca&&(ca==null?void 0:ca.includes("Manual")));He==null||He.forEach(ca=>{var Za;let oa=ue.analyzeSplitToContent(ca,",");if(oa=oa==null?void 0:oa.map(Re=>((Re==null?void 0:Re[(Re==null?void 0:Re.length)-1])===","&&(Re=Re==null?void 0:Re.slice(0,(Re==null?void 0:Re.length)-1)),Re)),oa!=null&&oa.find(Re=>(Re==null?void 0:Re.includes("Extent"))&&(Re==null?void 0:Re.includes("Row")))&&(oa!=null&&oa.find(Re=>(Re==null?void 0:Re.includes("Button"))&&(Re==null?void 0:Re.includes(","))))){let Re=oa==null?void 0:oa.find(Te=>Te==null?void 0:Te.includes("@FunctionButton"));Re=(Za=Re==null?void 0:Re.split("="))==null?void 0:Za[1],Re=Re==null?void 0:Re.slice(1,(Re==null?void 0:Re.length)-1),Re=Re==null?void 0:Re.split(","),Re=Re==null?void 0:Re[(Re==null?void 0:Re.length)-1],ta.push(Re)}}),ta=[...new Set(ta)],ta=ta==null?void 0:ta.map(ca=>({label:ca,prop:ca,type:"methodButton"}))}else if(Array.isArray(ea==null?void 0:ea[0])&&((L=ue.getColumnChild(ea==null?void 0:ea[0]))!=null&&L.some(He=>{var ca;return(He==null?void 0:He.calculatorFilter)&&((ca=He==null?void 0:He.calculatorFilter)==null?void 0:ca.includes("Manual"))}))){let He=(J=(H=ue.getColumnChild(ea==null?void 0:ea[0]))==null?void 0:H.map(ca=>ca==null?void 0:ca.calculatorFilter))==null?void 0:J.filter(ca=>ca&&(ca==null?void 0:ca.includes("Manual")));He==null||He.forEach(ca=>{var Za;let oa=ue.analyzeSplitToContent(ca,",");if(oa=oa==null?void 0:oa.map(Re=>((Re==null?void 0:Re[(Re==null?void 0:Re.length)-1])===","&&(Re=Re==null?void 0:Re.slice(0,(Re==null?void 0:Re.length)-1)),Re)),oa!=null&&oa.find(Re=>(Re==null?void 0:Re.includes("Extent"))&&(Re==null?void 0:Re.includes("Row")))&&(oa!=null&&oa.find(Re=>(Re==null?void 0:Re.includes("Button"))&&(Re==null?void 0:Re.includes(","))))){let Re=oa==null?void 0:oa.find(Te=>Te==null?void 0:Te.includes("@FunctionButton"));Re=(Za=Re==null?void 0:Re.split("="))==null?void 0:Za[1],Re=Re==null?void 0:Re.slice(1,(Re==null?void 0:Re.length)-1),Re=Re==null?void 0:Re.split(","),Re=Re==null?void 0:Re[(Re==null?void 0:Re.length)-1],ta.push(Re)}}),ta=[...new Set(ta)],ta=ta==null?void 0:ta.map(ca=>({label:ca,prop:ca,type:"methodButton"}))}if(ra.push({key:"extraButton",contents:fe}),ra.push({key:"rowButton",contents:[...ka,...ta]}),y.compData=await Et(ra,l),(ve=y.compData)!=null&&ve.find(He=>(He==null?void 0:He.key)==="tab")&&(y.tab=(ga=(he=y.compData)==null?void 0:he.find(He=>(He==null?void 0:He.key)==="tab"))==null?void 0:ga.contents),(la=y.compData)!=null&&la.find(He=>(He==null?void 0:He.key)==="step")&&(y.step=(ba=(te=y.compData)==null?void 0:te.find(He=>(He==null?void 0:He.key)==="step"))==null?void 0:ba.contents),(Ne=y.compData)!=null&&Ne.find(He=>(He==null?void 0:He.key)==="choice")&&(y.choice=(Aa=(Xe=y.compData)==null?void 0:Xe.find(He=>(He==null?void 0:He.key)==="choice"))==null?void 0:Aa.contents),(Da=y.compData)!=null&&Da.find(He=>(He==null?void 0:He.key)==="newType")){let He=($a=(aa=y.compData)==null?void 0:aa.find(ca=>(ca==null?void 0:ca.key)==="newType"))==null?void 0:$a.contents;y.comp=He,y.compData=(ke=y.compData)==null?void 0:ke.filter(ca=>(ca==null?void 0:ca.key)!=="newType")}let va="",pl=(ae=y==null?void 0:y.compData)==null?void 0:ae.filter(He=>(He==null?void 0:He.key)==="fixType");(pl==null?void 0:pl.length)>0&&r&&(va=(ze=pl==null?void 0:pl[0])==null?void 0:ze.contents,y.comp=va)}else if(v==="Form"){let X=[],ra=(ya=(Me=(Oe=s==null?void 0:s.contents)==null?void 0:Oe.find(Ye=>{var ta;return(ta=Ye==null?void 0:Ye.key)==null?void 0:ta.includes("content")}))==null?void 0:Me.value)==null?void 0:ya[0],ea=[],fe=Array.isArray((xa=s==null?void 0:s.filter)==null?void 0:xa.menuFilter)?(qe=s==null?void 0:s.filter)==null?void 0:qe.menuFilter:[];fe==null||fe.forEach(Ye=>{if(Ye!=null&&Ye.includes("@Param(Hide=Yes, prop=")||Ye!=null&&Ye.includes("(Hide=Yes, prop=")){const ta=Ye==null?void 0:Ye.match(/prop=([^,)]+)/);ta!=null&&ta[1]&&ea.push(ta==null?void 0:ta[1])}});let ka=(Oa=(de=(_e=(Ue=(Je=s==null?void 0:s.contents)==null?void 0:Je.find(Ye=>{var ta;return(ta=Ye==null?void 0:Ye.key)==null?void 0:ta.includes("struct")}))==null?void 0:Ue.value)==null?void 0:_e[0])==null?void 0:de.结构)==null?void 0:Oa.contents,ha=(La=ka==null?void 0:ka.map(Ye=>(Ye.value=ra==null?void 0:ra[Ye==null?void 0:Ye.prop],Ye)))==null?void 0:La.filter(Ye=>(Ye==null?void 0:Ye.prop)!=="sort"&&(Ye==null?void 0:Ye.prop)!=="relatedId");ha=ha==null?void 0:ha.map(Ye=>(ea!=null&&ea.includes(Ye==null?void 0:Ye.prop)&&(Ye.isHideInForm=!0),Ye)),X.push({key:"filter",contents:(Pa=(jl=(tl=(zl=(gl=s==null?void 0:s.contents)==null?void 0:gl.find(Ye=>{var ta;return(ta=Ye==null?void 0:Ye.key)==null?void 0:ta.includes("struct")}))==null?void 0:zl.value)==null?void 0:tl[0])==null?void 0:jl.引用)==null?void 0:Pa.contents}),X.push({key:"formContent",contents:ha}),X.push({key:"paramHideProps",contents:ea}),y.compData=await Bp(X),(Il=y.compData)!=null&&Il.find(Ye=>(Ye==null?void 0:Ye.key)==="tab")&&(y.tab=(Ma=(Vl=y.compData)==null?void 0:Vl.find(Ye=>(Ye==null?void 0:Ye.key)==="tab"))==null?void 0:Ma.contents),(el=y.compData)!=null&&el.find(Ye=>(Ye==null?void 0:Ye.key)==="step")&&(y.step=(ol=(sl=y.compData)==null?void 0:sl.find(Ye=>(Ye==null?void 0:Ye.key)==="step"))==null?void 0:ol.contents),(Va=y.compData)!=null&&Va.find(Ye=>(Ye==null?void 0:Ye.key)==="choice")&&(y.choice=(rl=(dl=y.compData)==null?void 0:dl.find(Ye=>(Ye==null?void 0:Ye.key)==="choice"))==null?void 0:rl.contents)}return y});return n=await Promise.all(t),n},Op=A.useLoginState(A.pinia),{loginUserInfo:wi}=A.storeToRefs(Op),vt=async(a,l,r="Manual",n=[])=>{var d;let t=a,s;Array.isArray(l==null?void 0:l[0])?s=ue.getColumnChild(l==null?void 0:l[0]):s=l;let v=(d=s==null?void 0:s.filter(y=>{var g;return(y==null?void 0:y.calculatorFilter)&&((g=y==null?void 0:y.calculatorFilter)==null?void 0:g.includes(r))||(y==null?void 0:y.calculatorFilter)===""&&(y==null?void 0:y.functionName)}))==null?void 0:d.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})),f=t==null?void 0:t.map(async y=>(y=await Pp(y,v,s,r,t,n),y));return f=await Promise.all(f),f},Lp=a=>{let l=a==null?void 0:a.contents,r=a==null?void 0:a.valueString,n=a==null?void 0:a.prop,t=a==null?void 0:a.headers,s;return Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=ue.getValueToObjectValue(l,ue.getColumnContents(t))),r==null||r.forEach(v=>{var f;if(l!=null&&l[v]){let d=l==null?void 0:l[v];s=s?d?Bl.isEqual(d.toString(),s.toString()):void 0:d}else{let d=(f=t==null?void 0:t.find(g=>(g==null?void 0:g.label)===v))==null?void 0:f.prop,y=(l==null?void 0:l[d])??0;s=s?y?Bl.isEqual(y.toString(),s.toString()):void 0:y}}),l[n]=s===void 0?void 0:s?1:0,l},kr=a=>{const[l,r,n]=A.cloneDeep(a).split(":").map(Number);let t=+a;return!a||!(a!=null&&a.includes(":"))?t:(l??0)*3600+(r??0)*60+(n??0)},Pn=a=>{const l=s=>s.toString().padStart(2,"0"),r=Math.floor(a/3600),n=Math.floor(a%3600/60),t=a%60;return`${l(r)}:${l(n)}:${parseInt(l(t))}`},Rp=a=>{let l=a==null?void 0:a.contents,r=a==null?void 0:a.valueString,n=a==null?void 0:a.prop,t=a==null?void 0:a.headers,s=a==null?void 0:a.typeString,v=a==null?void 0:a.allContents,f=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=ue.getValueToObjectValue(l,ue.getColumnContents(t))),r==null||r.forEach(d=>{var y,g,c,D,I,k,W,M,R;if(l!=null&&l[d]){if(s==="Row")if(!((g=((y=l==null?void 0:l[d])==null?void 0:y.toString())??"")!=null&&g.includes(":"))&&!((c=f==null?void 0:f.toString())!=null&&c.includes(":"))){let j=+(l==null?void 0:l[d]);f=f+j}else f=kr(f.toString())+kr((D=l==null?void 0:l[d])==null?void 0:D.toString()),f=Pn(f)}else if(s==="Row"){let j=(I=t==null?void 0:t.find(E=>(E==null?void 0:E.label)===d))==null?void 0:I.prop;if(!((W=Number.isNaN(l==null?void 0:l[j])?"":(k=l==null?void 0:l[j])==null?void 0:k.toString())!=null&&W.includes(":"))&&!((M=f==null?void 0:f.toString())!=null&&M.includes(":"))){let E=+((l==null?void 0:l[j])??0);f=f+E}else f=kr(f==null?void 0:f.toString())+kr((R=(l==null?void 0:l[j])??0)==null?void 0:R.toString()),f=Pn(f)}}),s==="Column"){let d=[];r==null||r.forEach(y=>{let g=v==null?void 0:v.map(c=>{var D;return(c==null?void 0:c[y])??(c==null?void 0:c[(D=t==null?void 0:t.find(I=>(I==null?void 0:I.label)===y))==null?void 0:D.prop])});d=[...d,...g]}),f=d.reduce((y,g)=>{let c=0;Number.isNaN(y)||(c=+y);let D=0;return Number.isNaN(g)||(D=+g),c+D},0)}return l[n]=f,l},$p=a=>{let l=a==null?void 0:a.contents,r=a==null?void 0:a.valueString,n=a==null?void 0:a.prop,t=a==null?void 0:a.headers,s=a==null?void 0:a.typeString,v=a==null?void 0:a.allContents,f=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=ue.getValueToObjectValue(l,ue.getColumnContents(t))),r==null||r.forEach(d=>{var y,g,c,D,I,k,W;if(l!=null&&l[d]){if(s==="Row")if(!((g=(y=l==null?void 0:l[d])==null?void 0:y.toString())!=null&&g.includes(":"))&&!((c=f==null?void 0:f.toString())!=null&&c.includes(":"))){let M=+(l==null?void 0:l[d]);f=f===0?f+M:f-M}else f=f===0?kr(f.toString())+kr(l==null?void 0:l[d].toString()):kr(f.toString())-kr(l==null?void 0:l[d].toString()),f=Pn(f)}else if(s==="Row"){let M=(D=t==null?void 0:t.find(R=>(R==null?void 0:R.label)===d))==null?void 0:D.prop;if(!((k=Number.isNaN(l==null?void 0:l[M])?"":(I=l==null?void 0:l[M])==null?void 0:I.toString())!=null&&k.includes(":"))&&!((W=f==null?void 0:f.toString())!=null&&W.includes(":"))){let R=+((l==null?void 0:l[M])??0);f=f===0?f+R:f-R}else f=f===0?kr(f.toString())+kr(((l==null?void 0:l[M])??0).toString()):kr(f.toString())-kr(((l==null?void 0:l[M])??0).toString()),f=Pn(f)}}),s==="Column"){let d=[];r==null||r.forEach(y=>{let g=v==null?void 0:v.map(c=>{var D;return(c==null?void 0:c[y])??(c==null?void 0:c[(D=t==null?void 0:t.find(I=>(I==null?void 0:I.label)===y))==null?void 0:D.prop])});d=[...d,...g]}),f=d.reduce((y,g)=>{let c=0;Number.isNaN(y)||(c=+y);let D=0;return Number.isNaN(g)||(D=+g),c-D},0)}return l[n]=f,l},Vp=a=>{let l=a==null?void 0:a.contents,r=a==null?void 0:a.valueString,n=a==null?void 0:a.prop,t=a==null?void 0:a.headers,s=a==null?void 0:a.typeString,v=a==null?void 0:a.allContents,f=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=ue.getValueToObjectValue(l,ue.getColumnContents(t))),r==null||r.forEach(d=>{var y,g,c,D,I,k,W;if(l!=null&&l[d]){if(s==="Row")if(!((g=(y=l==null?void 0:l[d])==null?void 0:y.toString())!=null&&g.includes(":"))&&!((c=f==null?void 0:f.toString())!=null&&c.includes(":"))){let M=+(l==null?void 0:l[d]);f=f===0?f+M:f*M}else f=f===0?kr(f.toString())+kr(l==null?void 0:l[d].toString()):kr(f.toString())*kr(l==null?void 0:l[d].toString()),f=Pn(f)}else if(s==="Row"){let M=(D=t==null?void 0:t.find(R=>(R==null?void 0:R.label)===d))==null?void 0:D.prop;if(!(l!=null&&l[M]))f=void 0;else if(!((k=Number.isNaN(l==null?void 0:l[M])?"":(I=l==null?void 0:l[M])==null?void 0:I.toString())!=null&&k.includes(":"))&&!((W=f==null?void 0:f.toString())!=null&&W.includes(":"))){let R=+((l==null?void 0:l[M])??0);f=f===0?f+R:f*R}else f=f===0?kr(f.toString())+kr(((l==null?void 0:l[M])??0).toString()):kr(f.toString())*kr(((l==null?void 0:l[M])??0).toString()),f=Pn(f)}}),s==="Column"){let d=[];r==null||r.forEach(y=>{let g=v==null?void 0:v.map(c=>{var D;return(c==null?void 0:c[y])??(c==null?void 0:c[(D=t==null?void 0:t.find(I=>(I==null?void 0:I.label)===y))==null?void 0:D.prop])});d=[...d,...g]}),f=d.reduce((y,g)=>{let c=0;Number.isNaN(y)||(c=+y);let D=0;return Number.isNaN(g)||(D=+g),c*D},0)}return l[n]=f,l},Fp=a=>{let l=a==null?void 0:a.contents,r=a==null?void 0:a.valueString,n=a==null?void 0:a.prop,t=a==null?void 0:a.headers,s=a==null?void 0:a.typeString,v=a==null?void 0:a.allContents,f=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=ue.getValueToObjectValue(l,ue.getColumnContents(t))),r==null||r.forEach(d=>{var y,g,c,D,I,k,W;if(l!=null&&l[d]){if(s==="Row")if(!((g=(y=l==null?void 0:l[d])==null?void 0:y.toString())!=null&&g.includes(":"))&&!((c=f==null?void 0:f.toString())!=null&&c.includes(":"))){let M=+(l==null?void 0:l[d]);f=f===0?f+M:f/M}else f=f===0?kr(f.toString())+kr(l==null?void 0:l[d].toString()):kr(f.toString())/kr(l==null?void 0:l[d].toString()),f=Pn(f)}else if(s==="Row"){let M=(D=t==null?void 0:t.find(R=>(R==null?void 0:R.label)===d))==null?void 0:D.prop;if(!((k=Number.isNaN(l==null?void 0:l[M])?"":(I=l==null?void 0:l[M])==null?void 0:I.toString())!=null&&k.includes(":"))&&!((W=f==null?void 0:f.toString())!=null&&W.includes(":"))){let R=+((l==null?void 0:l[M])??0);f=f===0?f+R:f/R}else f=f===0?kr(f.toString())+kr(((l==null?void 0:l[M])??0).toString()):kr(f.toString())/kr(((l==null?void 0:l[M])??0).toString()),f=Pn(f)}}),s==="Column"){let d=[];r==null||r.forEach(y=>{let g=v==null?void 0:v.map(c=>{var D;return(c==null?void 0:c[y])??(c==null?void 0:c[(D=t==null?void 0:t.find(I=>(I==null?void 0:I.label)===y))==null?void 0:D.prop])});d=[...d,...g]}),f=d.reduce((y,g)=>{let c=0;Number.isNaN(y)||(c=+y);let D=0;return Number.isNaN(g)||(D=+g),c/D},0)}return l[n]=f.toFixed(2),l},fo={Sum:Rp,Substract:$p,Multiple:Vp,Divide:Fp,Compare:Lp},Pp=async(a,l,r,n="Auto",t,s=[])=>{var g,c,D,I,k,W,M,R,j,E,w,x,b,_,$,F,Y,oe,ye,Ie,V;let v=a,f=[],d=await A.getPageDataApi({platId:parseInt((g=wi==null?void 0:wi.value)==null?void 0:g.plat_id),pageName:"menu"});d=(I=(D=(c=d==null?void 0:d.data)==null?void 0:c.result)==null?void 0:D.filter(pe=>(pe==null?void 0:pe.property_name)===""))==null?void 0:I[0];let y=[];if(d!=null&&d.object_name){d=d==null?void 0:d.object_name;let pe=await A.getPageDataApi({platId:parseInt((k=wi==null?void 0:wi.value)==null?void 0:k.plat_id),pageName:d});pe=(E=(j=(R=(M=(W=pe==null?void 0:pe.data)==null?void 0:W.result)==null?void 0:M[0])==null?void 0:R.contents)==null?void 0:j.find(Q=>{var ce;return(ce=Q==null?void 0:Q.key)==null?void 0:ce.includes("content")}))==null?void 0:E.value,f=(w=pe==null?void 0:pe.map(Q=>({functionName:Q==null?void 0:Q.函数名称,functionContent:Q==null?void 0:Q.输出值})))==null?void 0:w.filter(Q=>(Q==null?void 0:Q.functionContent)!==""),f==null||f.forEach(Q=>{y.push(Q.functionName),fo[Q.functionName]=new Function("return "+Q.functionContent)()})}if((l==null?void 0:l.length)===0)return v;for(let pe in l){let Q=(x=l==null?void 0:l[pe])==null?void 0:x.functionName;const ce=fo==null?void 0:fo[Q];let Be=(b=l==null?void 0:l[pe])==null?void 0:b.methods;if(Be=ue.analyzeSplitToContent(Be,","),console.log(Be),(_=Be==null?void 0:Be.find(Ve=>Ve==null?void 0:Ve.includes("@FunctionType")))!=null&&_.includes(n)||(Be==null?void 0:Be.length)===0){let Ve=((Y=(F=($=Be==null?void 0:Be.find(me=>me==null?void 0:me.includes("@FunctionExtent")))==null?void 0:$.replace(":","="))==null?void 0:F.split("="))==null?void 0:Y[1])??[];if(await new Function("return ")(),(y==null?void 0:y.length)>0&&y.find(me=>me===Q)){let me="";try{let se=(oe=l==null?void 0:l[pe])==null?void 0:oe.functionRelatedWords,U=(s==null?void 0:s.length)>0?s==null?void 0:s.map(Le=>{var Fe;return Le==null?void 0:Le[(Fe=l==null?void 0:l[pe])==null?void 0:Fe.prop]}):["0"];U=U==null?void 0:U.map(Le=>Le==null?void 0:Le.slice((Le==null?void 0:Le.length)-5,Le==null?void 0:Le.length)),U=U==null?void 0:U.map(Le=>ue.isNumber(parseInt(Le))&&parseInt(Le)?parseInt(Le):0);let Se=Math.max(...U);se=se==null?void 0:se.map(Le=>{if(Le!=null&&Le.includes("'"))return Le==null?void 0:Le.replaceAll("'","");if(Le!=null&&Le.includes("@"))return Se+1;{let Fe=Object.keys(v);return Le=(v==null?void 0:v[Le])??(v==null?void 0:v[Fe==null?void 0:Fe.find(ia=>ia==null?void 0:ia.includes("."+Le))]),Le}}),me=ce(...se)}catch(se){Ha.ElMessage.warning("关联数据出现错误,"+se.message)}let N=(ye=l==null?void 0:l[pe])==null?void 0:ye.prop;v[N]=me}else v=ce({contents:v,valueString:(Ie=l==null?void 0:l[pe])==null?void 0:Ie.functionRelatedWords,prop:(V=l==null?void 0:l[pe])==null?void 0:V.prop,headers:r,typeString:Ve,allContents:t})}}return v},jp=A.useLoginState(A.pinia),{loginUserInfo:Xr}=A.storeToRefs(jp),Hp=A.useMenuState(A.pinia),{activeMenuPath:ss,currentMenuPath:ho}=A.storeToRefs(Hp),tc=A.useUnit(A.pinia);let cs="$R";const{selectTitle:Ei}=A.storeToRefs(tc),sc=async(a,l)=>{var v,f,d,y,g,c,D,I,k,W,M,R,j;let r=ss.value,n="",t=((v=Ei==null?void 0:Ei.value)==null?void 0:v.find(E=>(E==null?void 0:E.condition)==="child"&&!(E!=null&&E.relatedContent)))??void 0;(a==null?void 0:a.length)===0||(r=l?r:(f=a==null?void 0:a[0])==null?void 0:f.object_name,n=(d=a==null?void 0:a[0])==null?void 0:d.father_name);let s=[];if(n!==""){let E=n;(E==null?void 0:E[(E==null?void 0:E.length)-1])==="/"&&(E=E==null?void 0:E.slice(0,(E==null?void 0:E.length)-1));let w=await Kr(E,!1);w=(y=w==null?void 0:w[0])==null?void 0:y.compData;let x=(g=w==null?void 0:w.find(_=>(_==null?void 0:_.key)==="header"))==null?void 0:g.contents;x=((c=x==null?void 0:x.find(_=>_==null?void 0:_.isMainKey))==null?void 0:c.prop)??((D=x==null?void 0:x[0])==null?void 0:D.prop);let b=(k=(I=w==null?void 0:w.find(_=>(_==null?void 0:_.key)==="tableContents"))==null?void 0:I.contents)==null?void 0:k.map(_=>({label:_==null?void 0:_[x],value:_==null?void 0:_[x]}));s=(W=n==null?void 0:n.split("/"))==null?void 0:W.map(_=>(_===""?t?(t.isShow=!0,_=t):_={value:_,condition:"child",options:b,parentContent:(n==null?void 0:n[(n==null?void 0:n.length)-1])==="/"?n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1):n,isShow:!0}:_={condition:"parent",value:_.trim(),isShow:!0},_))}if(r!==""){let E=(M=r==null?void 0:r.split("/"))==null?void 0:M.map(w=>(w={condition:"normal",value:w.trim(),isShow:!0},w));((R=E==null?void 0:E[0])==null?void 0:R.value)===((j=s==null?void 0:s[0])==null?void 0:j.value)&&(E=E==null?void 0:E.filter((w,x)=>x!==0)),s=[...s??[],...E??[]]}n===""&&t&&((t==null?void 0:t.parentContent)!==ss.value&&(t.isShow=!1),(t==null?void 0:t.value)!==""&&s.push(t)),tc.setSelectTitle(s)},Up=async a=>{var s,v,f,d,y,g,c,D,I;let l=await A.getPageDataApi({platId:parseInt((s=Xr==null?void 0:Xr.value)==null?void 0:s.plat_id),pageName:"menu"}),r=(v=l==null?void 0:l.data)==null?void 0:v.result,n=(g=(y=(d=(f=a==null?void 0:a.filter(k=>(k==null?void 0:k.comp)==="Table"))==null?void 0:f[0])==null?void 0:d.compData)==null?void 0:y.find(k=>(k==null?void 0:k.key)==="filter"))==null?void 0:g.contents;n=(I=(D=(c=n==null?void 0:n.replace("(",cs))==null?void 0:c.split(cs))==null?void 0:D[0])==null?void 0:I.replaceAll(":","/");let t=r==null?void 0:r.filter(k=>{var W;return(k==null?void 0:k.object_name)===ho.value+"/"||((W=ho.value)==null?void 0:W.includes(n))&&n+"/"===(k==null?void 0:k.object_name)});return(t==null?void 0:t.length)>0&&(a=a==null?void 0:a.map(k=>{var W;return(k==null?void 0:k.comp)==="Table"&&(k.compData=(W=k==null?void 0:k.compData)==null?void 0:W.map(M=>{var R,j,E;return(M==null?void 0:M.key)==="header"&&(Array.isArray((R=M.contents)==null?void 0:R[0])?M.contents[0]=(E=M.contents[0])==null?void 0:E.map((w,x)=>{var b;return x===0&&(w.isExistChild=!0,(b=ho.value)!=null&&b.includes(n)&&(w.fatherPath=n)),w}):M.contents=(j=M.contents)==null?void 0:j.map((w,x)=>{var b;return x===0&&(w.isExistChild=!0,(b=ho.value)!=null&&b.includes(n)&&(w.fatherPath=n)),w})),M})),k})),a},Kr=async(a,l,r={})=>{var v,f,d,y,g,c,D,I,k,W,M,R;let n=await A.getPageDataApi({platId:parseInt((v=Xr==null?void 0:Xr.value)==null?void 0:v.plat_id),pageName:a}),t=(f=n==null?void 0:n.data)==null?void 0:f.result;if((t==null?void 0:t.length)===0&&(r!=null&&r.originPath)&&(r==null?void 0:r.originPath)!==a){let j=await A.getPageDataApi({platId:parseInt((d=Xr==null?void 0:Xr.value)==null?void 0:d.plat_id),pageName:r==null?void 0:r.originPath});if(((g=(y=j==null?void 0:j.data)==null?void 0:y.result)==null?void 0:g.length)>0){let E=await ts((c=j==null?void 0:j.data)==null?void 0:c.result,r,!1);E=E==null?void 0:E.map(async b=>{var F,Y,oe,ye,Ie,V,pe,Q,ce,Be,Ve,me,N,se,U,Se,Le,Fe,ia,Ba,ee,da,ie,fa,Ee,ne,Ae,We,ua,Ga;let _=[],$=(F=Object.keys(b))==null?void 0:F.filter(L=>(L==null?void 0:L.includes("name"))&&L!=="nameContents");for(let L in b)$!=null&&$.find(H=>H===L)&&_.push(b==null?void 0:b[L]);if(_=_.reverse(),(b==null?void 0:b.comp)==="Table"){let L=(ye=(oe=(Y=b==null?void 0:b.compData)==null?void 0:Y.find(J=>(J==null?void 0:J.key)==="tableContents"))==null?void 0:oe.contents)==null?void 0:ye.map(J=>{let ve={};for(let he in J)he!=="id"&&he!=="create_time"&&he!=="update_time"&&he!=="sort"&&he!=="create_user_id"&&he!=="update_user_id"&&he!=="department_id"&&he!=="relatedId"&&(ve[he]=J==null?void 0:J[he]);return J=Object.values(ve),J}),H=(V=(Ie=b==null?void 0:b.compData)==null?void 0:Ie.find(J=>(J==null?void 0:J.key)==="header"))==null?void 0:V.contents;if(Array.isArray(H==null?void 0:H[0])?(H[0].push({label:"排序",prop:"sort"}),H[0].push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(pe=H[0])!=null&&pe.find(J=>(J==null?void 0:J.prop)==="disabled")&&(H[0]=(Q=H[0])==null?void 0:Q.filter(J=>(J==null?void 0:J.prop)!=="disabled"),H[0].unshift({label:"",prop:"disabled",sortable:!1}))):(H||(H=[]),H.push({label:"排序",prop:"sort"}),H.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),H!=null&&H.find(J=>(J==null?void 0:J.prop)==="disabled")&&(H=H==null?void 0:H.filter(J=>(J==null?void 0:J.prop)!=="disabled"),H.unshift({label:"",prop:"disabled",sortable:!1}))),H!=null&&H.some(J=>{var ve;return(J==null?void 0:J.calculatorFilter)&&((ve=J==null?void 0:J.calculatorFilter)==null?void 0:ve.includes("Auto"))})&&(L=await vt(L,H,"Auto"),L=L==null?void 0:L.map(J=>Object.values(J))),b!=null&&b.fatherSyncContents){Array.isArray((ce=b==null?void 0:b.fatherSyncContents)==null?void 0:ce[0])&&(b.fatherSyncContents=(Be=b==null?void 0:b.fatherSyncContents)==null?void 0:Be[0]);let J=(Ve=Ei.value)==null?void 0:Ve.find(ve=>(ve==null?void 0:ve.condition)==="child");b.fatherSyncContents=(me=b==null?void 0:b.fatherSyncContents)==null?void 0:me.map(ve=>{var he,ga,la,te,ba,Ne;return((ga=ve==null?void 0:ve.menus)==null?void 0:ga[((he=ve==null?void 0:ve.menus)==null?void 0:he.length)-1])==="/"&&(J==null?void 0:J.parentContent)+"/"!==(ve==null?void 0:ve.menus)?ve.menus=(ve==null?void 0:ve.menus)+(J==null?void 0:J.value):((te=ve==null?void 0:ve.menus)==null?void 0:te[((la=ve==null?void 0:ve.menus)==null?void 0:la.length)-1])==="/"&&(J==null?void 0:J.parentContent)+"/"===(ve==null?void 0:ve.menus)&&(ve.menus=(Ne=ve.menus)==null?void 0:Ne.slice(0,((ba=ve.menus)==null?void 0:ba.length)-1)),ve})}if(b!=null&&b.sonSyncContents){Array.isArray((N=b==null?void 0:b.sonSyncContents)==null?void 0:N[0])&&(b.sonSyncContents=(se=b==null?void 0:b.sonSyncContents)==null?void 0:se[0]);let J=(U=Ei.value)==null?void 0:U.find(ve=>(ve==null?void 0:ve.condition)==="child");b.sonSyncContents=(Se=b==null?void 0:b.sonSyncContents)==null?void 0:Se.map(ve=>{var he,ga,la,te,ba,Ne;return((ga=ve==null?void 0:ve.menus)==null?void 0:ga[((he=ve==null?void 0:ve.menus)==null?void 0:he.length)-1])==="/"&&(J==null?void 0:J.parentContent)+"/"!==(ve==null?void 0:ve.menus)?ve.menus=(ve==null?void 0:ve.menus)+(J==null?void 0:J.value):((te=ve==null?void 0:ve.menus)==null?void 0:te[((la=ve==null?void 0:ve.menus)==null?void 0:la.length)-1])==="/"&&(J==null?void 0:J.parentContent)+"/"===(ve==null?void 0:ve.menus)&&(ve.menus=(Ne=ve.menus)==null?void 0:Ne.slice(0,((ba=ve.menus)==null?void 0:ba.length)-1)),ve})}if(b!=null&&b.relatedQuotes){Array.isArray((Le=b==null?void 0:b.relatedQuotes)==null?void 0:Le[0])&&(b.relatedQuotes=(Fe=b==null?void 0:b.relatedQuotes)==null?void 0:Fe[0]);let J=(ia=Ei.value)==null?void 0:ia.find(ve=>(ve==null?void 0:ve.condition)==="child");b.relatedQuotes=(Ba=b==null?void 0:b.relatedQuotes)==null?void 0:Ba.map(ve=>{var he,ga,la,te,ba,Ne;return((ga=ve==null?void 0:ve.menus)==null?void 0:ga[((he=ve==null?void 0:ve.menus)==null?void 0:he.length)-1])==="/"&&(J==null?void 0:J.parentContent)+"/"!==(ve==null?void 0:ve.menus)?ve.menus=(ve==null?void 0:ve.menus)+(J==null?void 0:J.value):((te=ve==null?void 0:ve.menus)==null?void 0:te[((la=ve==null?void 0:ve.menus)==null?void 0:la.length)-1])==="/"&&(J==null?void 0:J.parentContent)+"/"===(ve==null?void 0:ve.menus)&&(ve.menus=(Ne=ve.menus)==null?void 0:Ne.slice(0,((ba=ve.menus)==null?void 0:ba.length)-1)),ve})}b={filter:(da=(ee=b==null?void 0:b.compData)==null?void 0:ee.find(J=>(J==null?void 0:J.key)==="filter"))==null?void 0:da.contents,key:b==null?void 0:b.comp,name:_,tableColumns:H,tableContents:L,menuFilter:b==null?void 0:b.menuFilter,fatherSyncContents:b==null?void 0:b.fatherSyncContents,relatedQuotes:b==null?void 0:b.relatedQuotes,sonSyncContents:b==null?void 0:b.sonSyncContents}}else{let L=(Ee=(fa=(ie=b==null?void 0:b.compData)==null?void 0:ie.find(J=>(J==null?void 0:J.key)==="formContent"))==null?void 0:fa.contents)==null?void 0:Ee.map(J=>(J==null?void 0:J.value)??"");L=[L];let H=(We=(Ae=(ne=b==null?void 0:b.compData)==null?void 0:ne.find(J=>(J==null?void 0:J.key)==="formContent"))==null?void 0:Ae.contents)==null?void 0:We.map(J=>(J.value="",J));b={contents:L,filter:(Ga=(ua=b==null?void 0:b.compData)==null?void 0:ua.find(J=>(J==null?void 0:J.key)==="filter"))==null?void 0:Ga.contents,key:b==null?void 0:b.comp,name:_,value:H,fatherSyncContents:b==null?void 0:b.fatherSyncContents,relatedQuotes:b==null?void 0:b.relatedQuotes,sonSyncContents:b==null?void 0:b.sonSyncContents}}return b.isShow=!1,b}),E=await Promise.all(E);let w=[{key:"menuPath",contents:[{path:a,fatherPath:(k=(I=(D=j==null?void 0:j.data)==null?void 0:D.result)==null?void 0:I[0])==null?void 0:k.father_name,isShow:!1}]},{key:a,contents:E}];await A.createPlatFormDataApi({platId:parseInt((W=Xr==null?void 0:Xr.value)==null?void 0:W.plat_id),changeData:w});let x=await A.getPageDataApi({platId:parseInt((M=Xr==null?void 0:Xr.value)==null?void 0:M.plat_id),pageName:a});t=(R=x==null?void 0:x.data)==null?void 0:R.result}}l&&await sc(t,!!(r!=null&&r.originPath));let s=await ts(t,r);return l&&(s=await Up(s)),s==null?void 0:s.filter(j=>j)},us=async a=>{var n,t,s,v,f,d,y,g,c,D,I;let l=(n=a==null?void 0:a.menus)==null?void 0:n.join("/");a!=null&&a.endChildMenu&&(a==null?void 0:a.endChildMenu)!==""&&(l==null?void 0:l[(l==null?void 0:l.length)-1])==="/"&&(l=l+(a==null?void 0:a.endChildMenu)),(l==null?void 0:l[(l==null?void 0:l.length)-1])==="/"&&(l=l+((s=(t=a.value)==null?void 0:t.split(" "))==null?void 0:s[0]));let r=await Kr(l,!1);if(r=(v=r==null?void 0:r.filter(k=>{var W,M;return(k==null?void 0:k.name)===((M=a==null?void 0:a.groups)==null?void 0:M[((W=a==null?void 0:a.groups)==null?void 0:W.length)-1])}))==null?void 0:v[0],(d=(f=r==null?void 0:r.compData)==null?void 0:f.find(k=>(k==null?void 0:k.key)==="tableContents"))!=null&&d.contents){r=(g=(y=r==null?void 0:r.compData)==null?void 0:y.find(W=>(W==null?void 0:W.key)==="tableContents"))==null?void 0:g.contents;let k=((c=a==null?void 0:a.words)==null?void 0:c[0])??(a==null?void 0:a.prop);return r=r==null?void 0:r.filter(W=>{var M,R,j,E;return(W==null?void 0:W[a!=null&&a.endChildMenu?k:(M=a==null?void 0:a.words)==null?void 0:M[0]])===(a!=null&&a.relatedWords&&((R=a==null?void 0:a.relatedWords)==null?void 0:R.length)>0?(E=(j=a.value)==null?void 0:j.split(" "))==null?void 0:E[0]:a.value)}),r==null?void 0:r[0]}else{let k=(I=(D=r==null?void 0:r.compData)==null?void 0:D.find(M=>(M==null?void 0:M.key)==="formContent"))==null?void 0:I.contents,W={};return k==null||k.forEach(M=>{W[M.prop]=M.value}),W}},qp={key:0,class:"extra-button-content"},Wp={class:"table-operator-wrap"},Kp={key:0,class:"extra-button-filter"},Gp={key:1,class:"extra-header"},Yp=["onClick"],Jp={class:"table-op-text"},Xp={class:"table-op-text"},Zp={class:"drop-menu",style:{width:"120px"}},Qp=["onClick"],ef={key:0},af={key:1},lf=["onClick"],rf={class:"table-op-text"},nf={key:1,class:"extra-button-content tabs-button-wrapper"},of={class:"table-operator-wrap"},tf={class:"extra-button-filter"},sf={key:0,class:"extra-header"},cf={class:"table-op-action"},uf={class:"table-op-text"},df={class:"drop-menu",style:{width:"120px"}},pf={key:0},ff={key:1},hf=["onClick"],vf={class:"table-op-text"},mf={__name:"header",props:{pageLayout:{type:String,default:"vertical"},lockingPage:Boolean,level:{type:Number,default:1},compName:{type:String,default:"表格名称",required:!1},filterShow:{type:Boolean,default:!1},isDevMode:Boolean,selectNums:Number,dataNums:Number,filterValues:Array,buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},menuFilter:{type:Array,default:()=>[]}},emits:["buttonClick","filter","getImportData"],setup(a,{emit:l}){const r=l,n=a,t=()=>{const $=(n==null?void 0:n.menuFilter)||[];return Array.isArray($)&&($==null?void 0:$.some(F=>{const Y=typeof F=="string"?F:JSON.stringify(F);return Y==null?void 0:Y.includes("HideGroup=Yes")}))},s=e.ref(""),v=e.ref(!1),f=e.ref(!1),d=e.ref([]),y=e.ref([{label:"清空",background:"#999999"},{label:"确认"}]),g=[{label:"新增",icon:"new"},{label:"导入",icon:"import_101"},{label:"导出",icon:"export_101"},{label:"导出paraform",icon:"export_101"},{label:"OCR识别",icon:"OCR识别"},{label:"切换视图",icon:"cardViewport_101"}];function c($,F){return $.map(Y=>{const oe={...Y};return F.forEach(ye=>{delete oe[ye]}),oe})}function D($){if(!$||$.t!=="n")return($==null?void 0:$.v)??"";const F=$.v;if($.z){const Y=String($.z).toLowerCase(),oe=["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 V of oe)if(Y.includes(V))return I(F);const ye=/[ymdhms]/.test(Y),Ie=/^[0#\.\,\s]+$/.test(Y.replace(/[\\\/\-:]/g,""));if(ye&&!Ie)return I(F)}if(F>=1&&F<=73050){if(F<5e3)return F;if(F>=5e3&&F<4e4){const Y=Math.floor((F-25569)/365.25)+1970;return Y>=1970&&Y<=2e3&&$.z&&/[ymd]/.test(String($.z).toLowerCase())?I(F):F}if(F>=4e4)return I(F)}return F}function I($){if(typeof $!="number")return $;try{const F=new Date(($-25569)*86400*1e3);if(isNaN(F.getTime()))return $;const Y=F.getFullYear(),oe=String(F.getMonth()+1).padStart(2,"0"),ye=String(F.getDate()).padStart(2,"0");return`${Y}-${oe}-${ye}`}catch{return $}}const k=$=>{const F=$.raw;if(!F)return;const Y=new FileReader;Y.onload=oe=>{try{const ye=new Uint8Array(oe.target.result),Ie=ue.readSync(ye,{type:"array"}),V=Ie.SheetNames[0],pe=Ie.Sheets[V],ce=ue.utils.decode_range(pe["!ref"]).e.c+1,Be=new Array(ce).fill(""),Ve=[];for(const Se in pe){if(Se[0]==="!")continue;const{r:Le,c:Fe}=ue.utils.decode_cell(Se),ia=pe[Se];let Ba=D(ia);if((Ba==null||Ba==="")&&(Ba=""),Le===0)Be[Fe]=Ba;else{if(!Ve[Le-1]){Ve[Le-1]={};for(let ee=0;ee<ce;ee++)Ve[Le-1][`col_${ee}`]=""}Ve[Le-1][`col_${Fe}`]=Ba}}for(let Se=0;Se<ce;Se++)Be[Se]===void 0&&(Be[Se]="");const me=[];for(let Se=0;Se<Be.length;Se++)(!Be[Se]||Be[Se].toString().trim()==="")&&me.push(Se);let N,se;(me==null?void 0:me.length)>0?(Ha.ElMessage.warning("存在键为空的列,已自动过滤,请检查补充"),N=Be.filter((Se,Le)=>!me.includes(Le)),se=c(Ve,me==null?void 0:me.map(Se=>`col_${Se}`))):(N=Be,se=Ve);const U=Ve==null?void 0:Ve[0];if(!(U!=null&&U.hasOwnProperty("col_0")))return Ha.ElMessage.error("导入的数据列不匹配,请检查是否错位");r("getImportData",N,se)}catch(ye){throw Ha.ElMessage.error(ye.message),new Error(ye.message)}},Y.readAsArrayBuffer(F)},W=$=>{var Y;const F=(Y=d.value)==null?void 0:Y.reduce((oe,ye,Ie)=>(Ie===0?oe[ye.label]=$:oe[ye.label]=ye==null?void 0:ye.value,oe),{});r("filter",F,$,!0)},M=($,F={})=>{r("buttonClick",$,"",F)},R=$=>{var F,Y;d.value=(Y=(F=ue.getColumnChild(A.cloneDeep($)))==null?void 0:F.filter(oe=>(oe==null?void 0:oe.label)!==""&&(oe==null?void 0:oe.label)!=="操作"))==null?void 0:Y.map(oe=>({label:(oe==null?void 0:oe.label)??"",value:"",name:(oe==null?void 0:oe.prop)??"",isFormColHidden:oe==null?void 0:oe.isTableColHidden,width:2,prop:(oe==null?void 0:oe.prop)??""}))},j=e.ref(!1),E=$=>{var F;if(($==null?void 0:$.buttonName)==="确认"&&(r("filter",$==null?void 0:$.content),j.value=($==null?void 0:$.content)&&Object.values($==null?void 0:$.content).length>0),($==null?void 0:$.buttonName)==="清空"){const Y=A.cloneDeep($==null?void 0:$.content);for(const oe in Y)Y[oe]="";d.value=(F=d.value)==null?void 0:F.map(oe=>({...oe,value:""})),r("filter",Y),j.value=!1}v.value=!1},w=()=>{v.value=!v.value,f.value=!0},x=()=>{var F,Y;d.value=(F=d.value)==null?void 0:F.map(oe=>({...oe,value:""}));const $=(Y=d.value)==null?void 0:Y.reduce((oe,ye)=>(oe[ye.label]=ye.value,oe),{});r("filter",$)},b=e.ref(null);let _;return _=$=>{var ye;if(!v.value)return;const F=(ye=b==null?void 0:b.value)==null?void 0:ye.$el,Y=F==null?void 0:F.contains($.target);let oe=!1;document.querySelectorAll(".el-popover, .el-popper").forEach(Ie=>{Ie.contains($.target)&&(oe=!0)}),!Y&&!oe&&(v.value=!1)},e.onMounted(()=>{document.addEventListener("click",_),R(n.columns)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",_)}),e.watch(()=>n.columns,()=>{R(n.columns)},{deep:!0,immediate:!0}),($,F)=>{var pe,Q,ce,Be,Ve,me,N,se;const Y=e.resolveComponent("el-icon"),oe=e.resolveComponent("svg-icon"),ye=e.resolveComponent("el-input"),Ie=e.resolveComponent("el-upload"),V=e.resolveComponent("el-button");return a.pageLayout==="vertical"?(e.openBlock(),e.createElementBlock("div",qp,[t()?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(a.compName?"table-name-wrap":""),style:e.normalizeStyle({background:(n==null?void 0:n.level)>1?"transparent":"var(--ssgroup-background)",paddingLeft:((n==null?void 0:n.level)-1)*12+"px",fontWeight:600-((n==null?void 0:n.level)-1)*100>=400?600-((n==null?void 0:n.level)-1)*100:400,fontSize:17-(n==null?void 0:n.level)>=14?17-(n==null?void 0:n.level)+"px":"14px"})},e.toDisplayString(a.compName),7)),e.createElementVNode("div",Wp,[n!=null&&n.filterShow?(e.openBlock(),e.createElementBlock("div",Kp,[e.createVNode(Ru,{trigger:"contextmenu",ref_key:"popOverRef",ref:b,title:"",width:800,placement:"bottom-start",isVisible:v.value,"onUpdate:isVisible":F[4]||(F[4]=U=>v.value=U)},{reference:e.withCtx(()=>{var U,Se,Le,Fe;return[e.createVNode(ye,{modelValue:s.value,"onUpdate:modelValue":F[0]||(F[0]=ia=>s.value=ia),style:{"min-width":"80px"},placeholder:j.value?(Le=(Se=(U=a.filterValues)==null?void 0:U.filter(ia=>ia))==null?void 0:Se.slice(0,3))==null?void 0:Le.join("/"):"搜索","prefix-icon":e.unref(Ha.search_default),clearable:"",onInput:W,disabled:((Fe=d.value)==null?void 0:Fe.length)===0},{suffix:e.withCtx(()=>{var ia,Ba;return[!s.value&&((Ba=(ia=a.filterValues)==null?void 0:ia.filter(ee=>ee))!=null&&Ba.join("/"))?(e.openBlock(),e.createBlock(Y,{key:0,style:{cursor:"pointer"},onClick:x},{default:e.withCtx(()=>[e.createVNode(e.unref(Ha.circle_close_default))]),_:1})):e.createCommentVNode("",!0)]}),append:e.withCtx(()=>[e.createElementVNode("span",{title:"条件查询",onClick:e.withModifiers(w,["stop"])},[e.createVNode(oe,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:e.withCtx(()=>[f.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"form-content-value",onKeydown:F[1]||(F[1]=e.withModifiers(()=>{},["stop"])),onKeyup:F[2]||(F[2]=e.withModifiers(()=>{},["stop"])),onKeypress:F[3]||(F[3]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:d.value,buttonValue:y.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:y.value,isStartJustify:!1,onOnButtonClick:E},null,8,["rowContents","buttonValue"]))],32)):e.createCommentVNode("",!0)]),_:1},8,["isVisible"])])):e.createCommentVNode("",!0),a.buttons&&((pe=a.buttons)==null?void 0:pe.length)>0?(e.openBlock(),e.createElementBlock("div",Gp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Q=a.buttons)==null?void 0:Q.filter(U=>a.isDevMode||(U==null?void 0:U.label)!=="修改模板"),(U,Se)=>{var Le;return e.openBlock(),e.createElementBlock("div",{class:"extra-contents",key:Se},[(U==null?void 0:U.type)==="upload"?(e.openBlock(),e.createBlock(Ie,{key:0,class:"upload-button-wrap","on-change":k,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1,disabled:!!a.lockingPage},{default:e.withCtx(()=>{var Fe;return[e.createElementVNode("div",{class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),onClick:ia=>M(U==null?void 0:U.label)},[e.createVNode(oe,{class:"table-op-icon",name:(Fe=g==null?void 0:g.find(ia=>(ia==null?void 0:ia.label)===(U==null?void 0:U.label)))==null?void 0:Fe.icon},null,8,["name"]),e.createElementVNode("span",Jp,e.toDisplayString(U==null?void 0:U.label),1)],10,Yp)]}),_:2},1032,["disabled"])):e.createCommentVNode("",!0),(U==null?void 0:U.type)==="popover"?(e.openBlock(),e.createBlock(ll._sfc_main,{key:1},{dropTitle:e.withCtx(()=>{var Fe;return[e.createElementVNode("div",{class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}])},[e.createVNode(oe,{class:"table-op-icon",name:(Fe=g==null?void 0:g.find(ia=>(ia==null?void 0:ia.label)===(U==null?void 0:U.label)))==null?void 0:Fe.icon},null,8,["name"]),e.createElementVNode("span",Xp,e.toDisplayString(U==null?void 0:U.label),1)],2)]}),dropMenu:e.withCtx(()=>[e.createElementVNode("div",Zp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U==null?void 0:U.contents,Fe=>{var ia,Ba;return e.openBlock(),e.createElementBlock("div",{key:Fe==null?void 0:Fe.label,class:e.normalizeClass(["table-op-drop-item",{"is-disabled":!!a.lockingPage}]),onClick:ee=>!a.lockingPage&&M(Fe==null?void 0:Fe.label)},[e.createTextVNode(e.toDisplayString(Fe==null?void 0:Fe.label),1),(ia=Fe==null?void 0:Fe.label)!=null&&ia.includes("选中")?(e.openBlock(),e.createElementBlock("span",ef,"("+e.toDisplayString(a.selectNums)+")",1)):e.createCommentVNode("",!0),(Ba=Fe==null?void 0:Fe.label)!=null&&Ba.includes("全部")?(e.openBlock(),e.createElementBlock("span",af,"("+e.toDisplayString(a.dataNums)+")",1)):e.createCommentVNode("",!0)],10,Qp)}),128))])]),_:2},1024)):e.createCommentVNode("",!0),!(U!=null&&U.type)||(U==null?void 0:U.type)==="methodButton"?(e.openBlock(),e.createElementBlock("div",{key:2,id:"themeButton",class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),onClick:Fe=>!a.lockingPage&&M(U==null?void 0:U.label,U)},[e.createVNode(oe,{class:"table-op-icon",name:((Le=g==null?void 0:g.find(Fe=>(Fe==null?void 0:Fe.label)===(U==null?void 0:U.label)))==null?void 0:Le.icon)??"normal"},null,8,["name"]),e.createElementVNode("span",rf,e.toDisplayString(U==null?void 0:U.label),1)],10,lf)):e.createCommentVNode("",!0)])}),128))])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createElementBlock("div",nf,[e.createElementVNode("div",of,[e.createElementVNode("div",tf,[e.createVNode(ye,{modelValue:s.value,"onUpdate:modelValue":F[5]||(F[5]=U=>s.value=U),style:{"min-width":"80px"},placeholder:j.value?(Ve=(Be=(ce=a.filterValues)==null?void 0:ce.filter(U=>U))==null?void 0:Be.slice(0,3))==null?void 0:Ve.join("/"):"搜索","prefix-icon":e.unref(Ha.search_default),clearable:"",onInput:W,disabled:((me=d.value)==null?void 0:me.length)===0},{suffix:e.withCtx(()=>{var U,Se;return[!s.value&&((Se=(U=a.filterValues)==null?void 0:U.filter(Le=>Le))!=null&&Se.join("/"))?(e.openBlock(),e.createBlock(Y,{key:0,style:{cursor:"pointer"},onClick:x},{default:e.withCtx(()=>[e.createVNode(e.unref(Ha.circle_close_default))]),_:1})):e.createCommentVNode("",!0)]}),append:e.withCtx(()=>[e.createElementVNode("span",{title:"条件查询",onClick:e.withModifiers(w,["stop"])},[e.createVNode(oe,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]),a.buttons&&((N=a.buttons)==null?void 0:N.length)>0?(e.openBlock(),e.createElementBlock("div",sf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((se=a.buttons)==null?void 0:se.filter(U=>a.isDevMode||(U==null?void 0:U.label)!=="修改模板"),(U,Se)=>{var Le;return e.openBlock(),e.createElementBlock("div",{class:"extra-contents",key:Se},[(U==null?void 0:U.type)==="upload"?(e.openBlock(),e.createBlock(Ie,{key:0,class:"upload-button-wrap","on-change":k,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1},{default:e.withCtx(()=>{var Fe;return[e.createElementVNode("div",cf,[e.createVNode(oe,{class:"table-op-icon",name:(Fe=g==null?void 0:g.find(ia=>(ia==null?void 0:ia.label)===(U==null?void 0:U.label)))==null?void 0:Fe.icon},null,8,["name"]),e.createElementVNode("span",uf,e.toDisplayString(U==null?void 0:U.label),1)])]}),_:2},1024)):e.createCommentVNode("",!0),(U==null?void 0:U.type)==="popover"?(e.openBlock(),e.createBlock(ll._sfc_main,{key:1},{dropTitle:e.withCtx(()=>[(U==null?void 0:U.type)==="popover"?(e.openBlock(),e.createBlock(V,{key:0,style:{background:"transparent",color:"#000000"}},{icon:e.withCtx(()=>{var Fe;return[e.createVNode(oe,{class:"table-op-icon",name:(Fe=g==null?void 0:g.find(ia=>(ia==null?void 0:ia.label)===(U==null?void 0:U.label)))==null?void 0:Fe.icon},null,8,["name"])]}),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(U==null?void 0:U.label),1)]),_:2},1024)):e.createCommentVNode("",!0)]),dropMenu:e.withCtx(()=>[e.createElementVNode("div",df,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U==null?void 0:U.contents,Fe=>(e.openBlock(),e.createBlock(V,{key:Fe==null?void 0:Fe.label,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:ia=>M(Fe==null?void 0:Fe.label)},{default:e.withCtx(()=>{var ia,Ba;return[e.createTextVNode(e.toDisplayString(Fe==null?void 0:Fe.label),1),(ia=Fe==null?void 0:Fe.label)!=null&&ia.includes("选中")?(e.openBlock(),e.createElementBlock("span",pf,"("+e.toDisplayString(a.selectNums)+")",1)):e.createCommentVNode("",!0),(Ba=Fe==null?void 0:Fe.label)!=null&&Ba.includes("全部")?(e.openBlock(),e.createElementBlock("span",ff,"("+e.toDisplayString(a.dataNums)+")",1)):e.createCommentVNode("",!0)]}),_:2},1032,["onClick"]))),128))])]),_:2},1024)):e.createCommentVNode("",!0),!(U!=null&&U.type)||(U==null?void 0:U.type)==="methodButton"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),id:"themeButton",onClick:Fe=>!a.lockingPage&&M(U==null?void 0:U.label,U)},[e.createVNode(oe,{class:"table-op-icon",name:(Le=g==null?void 0:g.find(Fe=>(Fe==null?void 0:Fe.label)===(U==null?void 0:U.label)))==null?void 0:Le.icon},null,8,["name"]),e.createElementVNode("span",vf,e.toDisplayString(U==null?void 0:U.label),1)],10,hf)):e.createCommentVNode("",!0)])}),128))])):e.createCommentVNode("",!0)])]))}}},yf=Zl._export_sfc(mf,[["__scopeId","data-v-44a17652"]]),gf={__name:"index",props:{columns:Array,tableData:Array},setup(a){return(l,r)=>{const n=e.resolveComponent("el-table-column"),t=e.resolveComponent("el-table");return e.openBlock(),e.createBlock(t,{data:a.tableData,style:{width:"100%"},stripe:"","max-height":"500"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.columns,s=>{var v;return e.openBlock(),e.createBlock(n,{key:s==null?void 0:s.prop,label:s==null?void 0:s.label,prop:s==null?void 0:s.prop,fixed:(s==null?void 0:s.prop)==="operate"?"right":s==null?void 0:s.fixed,align:(s==null?void 0:s.align)??"left","show-overflow-tooltip":(s==null?void 0:s.showOverflowTooltip)??!0,width:s==null?void 0:s.width,"min-width":(s==null?void 0:s.minWidth)||((s==null?void 0:s.prop)==="operate"?80:(((v=s==null?void 0:s.label)==null?void 0:v.length)*2||4)*27)},{default:e.withCtx(f=>[e.renderSlot(l.$slots,"content",{row:f.row,column:f.column,$index:f.$index,scope:f}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.children,(d,y)=>(e.openBlock(),e.createBlock(ll._sfc_main$2,{key:y,column:d,tableData:a.tableData},e.createSlots({_:2},[e.renderList(l.$slots,(g,c)=>({name:c,fn:e.withCtx(({row:D,slotData:I,item:k,column:W})=>[e.renderSlot(l.$slots,c,e.mergeProps({ref_for:!0},I??D,{item:k??d,slotData:I??D,row:D,column:W,columnProp:d}))])}))]),1032,["column","tableData"]))),128))]),_:2},1032,["label","prop","fixed","align","show-overflow-tooltip","width","min-width"])}),128))]),_:3},8,["data"])}}};class bf extends Bl.Loader{constructor(l){super(l),this.littleEndian=!0}load(l,r,n,t){const s=this,v=new Bl.FileLoader(s.manager);v.setPath(s.path),v.setResponseType("arraybuffer"),v.setRequestHeader(s.requestHeader),v.setWithCredentials(s.withCredentials),v.load(l,function(f){try{r(s.parse(f))}catch(d){t?t(d):console.error(d),s.manager.itemError(l)}},n,t)}_getDataView(l,r,n,t){switch(n){case"F":return t===8?l.getFloat64(r,this.littleEndian):l.getFloat32(r,this.littleEndian);case"I":return t===1?l.getInt8(r):t===2?l.getInt16(r,this.littleEndian):l.getInt32(r,this.littleEndian);case"U":return t===1?l.getUint8(r):t===2?l.getUint16(r,this.littleEndian):l.getUint32(r,this.littleEndian)}}parse(l){function r(I,k){const W=I.length,M=new Uint8Array(k);let R=0,j=0,E,w,x;do if(E=I[R++],E<32){if(E++,j+E>k)throw new Error("Output buffer is not large enough");if(R+E>W)throw new Error("Invalid compressed data");do M[j++]=I[R++];while(--E)}else{if(w=E>>5,x=j-((E&31)<<8)-1,R>=W)throw new Error("Invalid compressed data");if(w===7&&(w+=I[R++],R>=W))throw new Error("Invalid compressed data");if(x-=I[R++],j+w+2>k)throw new Error("Output buffer is not large enough");if(x<0)throw new Error("Invalid compressed data");if(x>=j)throw new Error("Invalid compressed data");do M[j++]=M[x++];while(--w+2)}while(R<W);return M}function n(I){const k={},W=new Uint8Array(I);let M="",R="",j=0,E=!1;const w=W.length;for(;j<w&&E===!1;){const $=String.fromCharCode(W[j++]);$===`
2
+ `||$==="\r"?(R.trim().toLowerCase().startsWith("data")&&(E=!0),R=""):R+=$,M+=$}const x=M.search(/[\r\n]DATA\s(\S*)\s/i),b=/[\r\n]DATA\s(\S*)\s/i.exec(M.slice(x-1));if(k.data=b[1],k.headerLen=b[0].length+x,k.str=M.slice(0,k.headerLen),k.str=k.str.replace(/#.*/gi,""),k.version=/^VERSION (.*)/im.exec(k.str),k.fields=/^FIELDS (.*)/im.exec(k.str),k.size=/^SIZE (.*)/im.exec(k.str),k.type=/^TYPE (.*)/im.exec(k.str),k.count=/^COUNT (.*)/im.exec(k.str),k.width=/^WIDTH (.*)/im.exec(k.str),k.height=/^HEIGHT (.*)/im.exec(k.str),k.viewpoint=/^VIEWPOINT (.*)/im.exec(k.str),k.points=/^POINTS (.*)/im.exec(k.str),k.version!==null&&(k.version=parseFloat(k.version[1])),k.fields=k.fields!==null?k.fields[1].split(" "):[],k.type!==null&&(k.type=k.type[1].split(" ")),k.width!==null&&(k.width=parseInt(k.width[1])),k.height!==null&&(k.height=parseInt(k.height[1])),k.viewpoint!==null&&(k.viewpoint=k.viewpoint[1]),k.points!==null&&(k.points=parseInt(k.points[1],10)),k.points===null&&(k.points=k.width*k.height),k.size!==null&&(k.size=k.size[1].split(" ").map(function($){return parseInt($,10)})),k.count!==null)k.count=k.count[1].split(" ").map(function($){return parseInt($,10)});else{k.count=[];for(let $=0,F=k.fields.length;$<F;$++)k.count.push(1)}k.offset={};let _=0;for(let $=0,F=k.fields.length;$<F;$++)k.data==="ascii"?k.offset[k.fields[$]]=$:(k.offset[k.fields[$]]=_,_+=k.size[$]*k.count[$]);return k.rowSize=_,k}const t=n(l),s=[],v=[],f=[],d=[],y=[],g=new Bl.Color;if(t.data==="ascii"){const I=t.offset,M=new TextDecoder().decode(l).slice(t.headerLen).split(`
3
+ `);for(let R=0,j=M.length;R<j;R++){if(M[R]==="")continue;const E=M[R].split(" ");if(I.x!==void 0&&(s.push(parseFloat(E[I.x])),s.push(parseFloat(E[I.y])),s.push(parseFloat(E[I.z]))),I.rgb!==void 0){const w=t.fields.findIndex(oe=>oe==="rgb"),x=t.type[w],b=parseFloat(E[I.rgb]);let _=b;if(x==="F"){const oe=new Float32Array(1);oe[0]=b,_=new Int32Array(oe.buffer)[0]}const $=(_>>16&255)/255,F=(_>>8&255)/255,Y=(_>>0&255)/255;g.setRGB($,F,Y,Bl.SRGBColorSpace),f.push(g.r,g.g,g.b)}I.normal_x!==void 0&&(v.push(parseFloat(E[I.normal_x])),v.push(parseFloat(E[I.normal_y])),v.push(parseFloat(E[I.normal_z]))),I.intensity!==void 0&&d.push(parseFloat(E[I.intensity])),I.label!==void 0&&y.push(parseInt(E[I.label]))}}if(t.data==="binary_compressed"){const I=new Uint32Array(l.slice(t.headerLen,t.headerLen+8)),k=I[0],W=I[1],M=r(new Uint8Array(l,t.headerLen+8,k),W),R=new DataView(M.buffer),j=t.offset;for(let E=0;E<t.points;E++){if(j.x!==void 0){const w=t.fields.indexOf("x"),x=t.fields.indexOf("y"),b=t.fields.indexOf("z");s.push(this._getDataView(R,t.points*j.x+t.size[w]*E,t.type[w],t.size[w])),s.push(this._getDataView(R,t.points*j.y+t.size[x]*E,t.type[x],t.size[x])),s.push(this._getDataView(R,t.points*j.z+t.size[b]*E,t.type[b],t.size[b]))}if(j.rgb!==void 0){const w=t.fields.indexOf("rgb"),x=R.getUint8(t.points*j.rgb+t.size[w]*E+2)/255,b=R.getUint8(t.points*j.rgb+t.size[w]*E+1)/255,_=R.getUint8(t.points*j.rgb+t.size[w]*E+0)/255;g.setRGB(x,b,_,Bl.SRGBColorSpace),f.push(g.r,g.g,g.b)}if(j.normal_x!==void 0){const w=t.fields.indexOf("normal_x"),x=t.fields.indexOf("normal_y"),b=t.fields.indexOf("normal_z");v.push(this._getDataView(R,t.points*j.normal_x+t.size[w]*E,t.type[w],t.size[w])),v.push(this._getDataView(R,t.points*j.normal_y+t.size[x]*E,t.type[x],t.size[x])),v.push(this._getDataView(R,t.points*j.normal_z+t.size[b]*E,t.type[b],t.size[b]))}if(j.intensity!==void 0){const w=t.fields.indexOf("intensity");d.push(this._getDataView(R,t.points*j.intensity+t.size[w]*E,t.type[w],t.size[w]))}if(j.label!==void 0){const w=t.fields.indexOf("label");y.push(R.getInt32(t.points*j.label+t.size[w]*E,this.littleEndian))}}}if(t.data==="binary"){const I=new DataView(l,t.headerLen),k=t.offset;for(let W=0,M=0;W<t.points;W++,M+=t.rowSize){if(k.x!==void 0){const R=t.fields.indexOf("x"),j=t.fields.indexOf("y"),E=t.fields.indexOf("z");s.push(this._getDataView(I,M+k.x,t.type[R],t.size[R])),s.push(this._getDataView(I,M+k.y,t.type[j],t.size[j])),s.push(this._getDataView(I,M+k.z,t.type[E],t.size[E]))}if(k.rgb!==void 0){const R=I.getUint8(M+k.rgb+2)/255,j=I.getUint8(M+k.rgb+1)/255,E=I.getUint8(M+k.rgb+0)/255;g.setRGB(R,j,E,Bl.SRGBColorSpace),f.push(g.r,g.g,g.b)}if(k.normal_x!==void 0){const R=t.fields.indexOf("normal_x"),j=t.fields.indexOf("normal_y"),E=t.fields.indexOf("normal_z");v.push(this._getDataView(I,M+k.normal_x,t.type[R],t.size[R])),v.push(this._getDataView(I,M+k.normal_y,t.type[j],t.size[j])),v.push(this._getDataView(I,M+k.normal_z,t.type[E],t.size[E]))}if(k.intensity!==void 0){const R=t.fields.indexOf("intensity");d.push(this._getDataView(I,M+k.intensity,t.type[R],t.size[R]))}k.label!==void 0&&y.push(I.getInt32(M+k.label,this.littleEndian))}}const c=new Bl.BufferGeometry;s.length>0&&c.setAttribute("position",new Bl.Float32BufferAttribute(s,3)),v.length>0&&c.setAttribute("normal",new Bl.Float32BufferAttribute(v,3)),f.length>0&&c.setAttribute("color",new Bl.Float32BufferAttribute(f,3)),d.length>0&&c.setAttribute("intensity",new Bl.Float32BufferAttribute(d,1)),y.length>0&&c.setAttribute("label",new Bl.Int32BufferAttribute(y,1)),c.computeBoundingSphere();const D=new Bl.PointsMaterial({size:.005});return f.length>0&&(D.vertexColors=!0),new Bl.Points(c,D)}}const kf=A.useModelComp(A.pinia),{systemPath:ds}=A.storeToRefs(kf),vo=e.ref(),ps=new WeakMap;function xf(a,l,r,n,t){const s=async D=>{try{const I=await A.platformDownloadFile({url:D});if(I.status!==200)throw new Error(`下载失败: ${I.status}`);return I.data}catch(I){throw console.error("addModelFromUrl失败:",I),I}},v=D=>new Promise((I,k)=>{const W=new FileReader;W.onload=M=>{try{const R=M.target.result,E=new Mn.MTLLoader().parse(R);E.preload(),I(E)}catch(R){k(R)}},W.onerror=()=>{k(new Error("MTL文件读取失败"))},W.readAsText(D)}),f=async D=>{const I={materials:{},create:function(k){return this.materials[k]?this.materials[k]:(console.warn(`Material '${k}' not found, using default material`),new Bl.MeshPhongMaterial({color:8947848,side:Bl.DoubleSide}))},getAsArray:function(){const k=[];for(const W in this.materials)k.push(this.materials[W]);return k},preload:function(){for(const k in this.materials)this.materials[k].map&&(this.materials[k].map.needsUpdate=!0)}};for(const k of D){const W=await v(k);Object.assign(I.materials,W.materials)}return I.preload(),I},d=async(D,I=[])=>new Promise((k,W)=>{const M=new FileReader;M.onload=async R=>{try{const j=R.target.result;let E=null;I&&I.length>0&&(I.length===1?E=await v(I[0]):E=await f(I));const w=new Mn.OBJLoader;E&&w.setMaterials(E);const x=w.parse(j);E||x.traverse(b=>{b.isMesh&&(b.material=new Bl.MeshPhongMaterial({color:8947848,side:Bl.DoubleSide}))}),k(x)}catch(j){W(j)}},M.onerror=()=>{W(new Error("OBJ文件读取失败"))},M.readAsText(D)}),y=async D=>{var I;try{r.value=!0;const{scene:k}=a();if(!k)throw new Error("Scene not initialized");t();const W=[];for(let M=0;M<D.length;M++){const R=D[M];n.value=`正在加载模型 ${M+1}/${D.length}...`;const j=await s(R.objUrl),E=((I=R.objUrl)==null?void 0:I.split("/").pop())||`model_${M}.obj`,w=new File([j],E,{type:j.type});let x=[];if(R.mtlUrls){const _=Array.isArray(R.mtlUrls)?R.mtlUrls:[R.mtlUrls];for(let $=0;$<_.length;$++){const F=_[$],Y=await s(F),oe=(F==null?void 0:F.split("/").pop())||`material_${M}_${$}.mtl`,ye=new File([Y],oe,{type:Y.type});x.push(ye)}}const b=await d(w,x);k.add(b),l.value.push(b),W.push(b)}return r.value=!1,W}catch(k){throw console.error("加载模型失败:",k),r.value=!1,k}},g=async(D,I,k=[],W=[])=>{let M;const R=D.toLowerCase();switch(R){case".txt":case".cpt":case".obj":const j=await I.text();if(R===".txt"||R===".cpt"){const ee=/^(?!.*\bf\b)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?$/gm,ie=[...j.matchAll(ee)].map(ne=>({x:parseFloat(ne[1]),y:parseFloat(ne[2]),z:parseFloat(ne[3])})),fa=new Bl.BufferGeometry,Ee=ie.flatMap(ne=>[ne.x,ne.y,ne.z]);if(fa.setAttribute("position",new Bl.Float32BufferAttribute(Ee,3)),R===".txt"){const ne=new Bl.PointsMaterial({color:"#5B5C99",size:1,sizeAttenuation:!1});M=new Bl.Points(fa,ne)}else if(R===".cpt"){const ne=new Bl.LineBasicMaterial({color:"#5B5C99",linewidth:100});M=new Bl.Line(fa,ne)}}else if(R===".obj"){const ee=new Mn.OBJLoader;if(k&&k.length>0){const da=new Mn.MTLLoader;for(const ie of k){const fa=await ie.text(),Ee=da.parse(fa);Ee.preload(),ee.setMaterials(Ee);break}}M=ee.parse(j),(!k||k.length===0)&&M.traverse(da=>{da.isMesh&&(da.material=new Bl.MeshPhongMaterial({color:"#B3B3D4"})),da instanceof Bl.Mesh&&(da.material.side=Bl.DoubleSide)})}break;case".stl":const E=await I.arrayBuffer(),x=new Mn.STLLoader().parse(E),b=new Bl.MeshPhongMaterial({color:"#B3B3D4",side:Bl.DoubleSide});M=new Bl.Mesh(x,b);break;case".nc":const _=["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"],$={"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)"},F=new Bl.Group,Y=_.map(ee=>new Promise((da,ie)=>{new Mn.STLLoader().load(ds.value===""?`/model/${ee}`:`${ds.value}\\${ee}`,Ee=>{const ne=new Bl.MeshPhongMaterial({color:$[ee]||"#B3B3D4",side:Bl.DoubleSide}),Ae=new Bl.Mesh(Ee,ne);da(Ae)},void 0,ie)}));try{(await Promise.all(Y)).forEach(da=>F.add(da)),M=F}catch(ee){throw console.error("加载NC文件对应的STL文件失败:",ee),new Error("无法加载.NC文件对应的STL文件")}break;case".pcd":const oe=new bf,ye=new Bl.Group;try{const ee=await Ha.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/target.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),da=new Blob([ee.data],{type:"application/octet-stream;charset=UTF-8"}),ie=await Ha.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/final.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),fa=new Blob([ie.data],{type:"application/octet-stream;charset=UTF-8"}),Ee=await new Promise((Ae,We)=>{const ua=URL.createObjectURL(da);oe.load(ua,Ga=>{const L=new Float32Array(Ga.geometry.attributes.position.count*3);for(let H=0;H<Ga.geometry.attributes.position.count;H++)L[H*3]=1,L[H*3+1]=0,L[H*3+2]=0;Ga.geometry.setAttribute("color",new Bl.BufferAttribute(L,3)),Ga.material.vertexColors=!0,Ga.scale.set(.3,.3,.3),URL.revokeObjectURL(ua),Ae(Ga)},void 0,We)}),ne=await new Promise((Ae,We)=>{const ua=URL.createObjectURL(fa);oe.load(ua,Ga=>{const L=new Float32Array(Ga.geometry.attributes.position.count*3);for(let H=0;H<Ga.geometry.attributes.position.count;H++)L[H*3]=0,L[H*3+1]=1,L[H*3+2]=0;Ga.geometry.setAttribute("color",new Bl.BufferAttribute(L,3)),Ga.material.vertexColors=!0,Ga.scale.set(.3,.3,.3),URL.revokeObjectURL(ua),Ae(Ga)},void 0,We)});ye.add(Ee),ye.add(ne),M=ye}catch(ee){throw console.error("PCD文件加载失败:",ee),new Error("无法加载PCD文件")}break;case".urdf":const Ie=URL.createObjectURL(I),V=new Mu.URDFLoader,pe="http://139.196.154.85:20026/chfs/shared/机器人/urdf/SmallBender_R-2000iC-165F/meshes",Q={maxConcurrentLoads:4,enableCache:!0,enableLOD:!0,simplifyGeometry:!0,shareMaterials:!0,enableInstancing:!0},ce=new WeakMap,Be=new WeakMap,Ve=new WeakMap,me=async ee=>{if(ce.has(ee))return console.log(`从缓存加载: ${ee}`),ce.get(ee);try{const da=await Ha.axios.get(`${pe}/${ee}`,{responseType:"blob",headers:{"Content-Type":"application/json"},timeout:6e5}),ie=new Blob([da.data],{type:"application/octet-stream;charset=UTF-8"});return Q.enableCache&&ce.set(ee,ie),ie}catch(da){throw console.error(`加载文件失败: ${ee}`,da),new Error(`无法加载文件: ${ee}`)}},N=(ee="default")=>{if(Be.has(ee))return Be.get(ee);const da=new Bl.MeshPhongMaterial({color:12303291,shininess:30,transparent:!1,alphaTest:.1,side:Bl.FrontSide});return Be.set(ee,da),da},se=ee=>{try{ee.isBufferGeometry&&ee.mergeVertices&&ee.mergeVertices(),ee.computeVertexNormals&&ee.computeVertexNormals(),ee.computeBoundingSphere&&ee.computeBoundingSphere(),ee.deleteAttribute&&ee.deleteAttribute("uv2")}catch(da){console.warn("几何体优化失败,使用原始几何体:",da)}return ee},U=async(ee,da,ie)=>{const fa=`stl_${da}`;if(Ve.has(fa)){const We=Ve.get(fa);return new Bl.Mesh(We,N())}const Ee=await ee.arrayBuffer();let Ae=new Mn.STLLoader(ie).parse(Ee);return Ae=se(Ae),Ve.set(fa,Ae),new Bl.Mesh(Ae,N())},Se=async(ee,da,ie)=>{const fa=`obj_${da}`;if(ce.has(fa))return ce.get(fa).clone();const Ee=await ee.text(),ne=new Mn.OBJLoader(ie),Ae=da.replace(".obj",".mtl");try{const Ga=await(await me(Ae)).text(),H=new Mn.MTLLoader(ie).parse(Ga);H.preload(),ne.setMaterials(H)}catch{console.warn(`MTL文件加载失败,使用默认材质: ${Ae}`)}const We=ne.parse(Ee);return We.traverse(ua=>{ua.isMesh&&(ua.geometry=se(ua.geometry),ua.castShadow=!0,ua.receiveShadow=!0,ua.renderOrder=1)}),ce.set(fa,We),We},Le=(ee,da)=>{const ie=new Bl.LOD;if(ie.addLevel(ee,0),ee.geometry){const fa=ee.geometry.clone(),Ee=new Bl.Mesh(fa,ee.material);ie.addLevel(Ee,50)}return ie};let Fe=0,ia=0;const Ba=[];V.loadMeshCb=async(ee,da,ie,fa,Ee)=>{const ne=ee.split("/").pop(),Ae=ie||(()=>{});Fe++;const We=new Promise(async(ua,Ga)=>{try{const L=await me(ne);if(!L||L.size===0)throw new Error(`文件为空: ${ne}`);const H=ne.split(".").pop().toLowerCase();let J;switch(H){case"stl":J=await U(L,ne,da);break;case"obj":J=await Se(L,ne,da);break;default:throw new Error(`不支持的文件格式: ${H}`)}Q.enableLOD&&J.isMesh&&(J=Le(J,ne)),Ae(J),ia++,fa&&fa({loaded:ia,total:Fe,progress:ia/Fe}),ua(J)}catch(L){console.error(`mesh文件加载失败: ${ne}`,L);const H=new Bl.Group;Ae(H),ua(H);const J=new Bl.BoxGeometry(.1,.1,.1),ve=new Bl.MeshStandardMaterial({color:16711680,wireframe:!0});return new Bl.Mesh(J,ve)}});Ba.push(We)};try{if(!Ie){vo.value=void 0;break}if(M=await V.loadAsync(Ie),console.log(`URDF文件加载完成,等待${Fe}个mesh文件加载...`),Ba.length>0)try{await Promise.allSettled(Ba),console.log(`所有mesh文件处理完成,成功加载: ${ia}/${Fe}`)}catch(ie){console.warn("部分mesh文件加载失败,但继续显示模型",ie)}M.traverse(ie=>{ie.isMesh&&(ie.castShadow=!0,ie.receiveShadow=!0,ie.renderOrder=1,ie.material&&(ie.material.needsUpdate=!0))}),console.time("计算包围盒");const ee=new Bl.Box3;ee.expandByObject(M);const da=`urdf_${Date.now()}`;M.userData.boundingBox=ee.clone(),M.userData.modelId=da,ps.set(da,{box:ee.clone(),center:ee.getCenter(new Bl.Vector3),size:ee.getSize(new Bl.Vector3),maxSize:Math.max(...ee.getSize(new Bl.Vector3).toArray())}),vo.value=M,console.log("URDF模型加载完成并优化")}catch(ee){console.error("URDF加载失败:",ee),vo.value=void 0}finally{Ie&&URL.revokeObjectURL(Ie)}break;default:throw new Error(`不支持的文件格式: ${D}`)}return M};return{addModelsFromUrls:y,loadModelByDefaultPath:async D=>{console.log(D);try{r.value=!0,n.value="正在加载模型...";const{scene:I}=a();if(!I)throw new Error("Scene not initialized");t(),await new Promise(W=>setTimeout(W,100));const k=[];for(let W=0;W<D.length;W++){const M=D[W],R=await g(M.suffix,M.blob,M.mtlBlobs||[],M.meshFiles||[]);R&&(I.add(R),l.value.push(R),k.push(R))}return r.value=!1,n.value="",k}catch(I){throw console.error("加载模型失败:",I),r.value=!1,n.value="",I}},urdfModel:vo,modelBoundingBoxes:ps}}window._iconfont_svg_string_4827314='<svg><symbol id="icon-chart-new" viewBox="0 0 1024 1024"><path d="M960 768V448h-64v320h-64v64H192v-64h-64V256h64v-64h256v-64H192V64H0v192h64v512H0v192h192v-64h640v64h192V768h-64zM64 128h64v64H64v-64z m0 768v-64h64v64H64z m896 0h-64v-64h64v64zM256 768V256h128v512H256z m192-320h128v320H448V448z m192 192h128v128H640V640zM512 288c0-17.664 14.336-32 32-32h160V96c0-17.664 14.336-32 32-32s32 14.336 32 32v160h160c17.664 0 32 14.336 32 32s-14.336 32-32 32H768v160c0 17.664-14.336 32-32 32s-32-14.336-32-32V320H544c-17.664 0-32-14.336-32-32z" ></path></symbol><symbol id="icon-ai13" viewBox="0 0 1024 1024"><path d="M863.719038 159.366637l-705.295378 0c-48.443315 0-88.129176 39.690978-88.129176 88.161922l0 528.943904c0 48.474015 39.685861 88.161922 88.129176 88.161922l705.295378 0c48.443315 0 88.134293-39.687908 88.134293-88.161922l0-528.943904C951.853331 199.056592 912.162354 159.366637 863.719038 159.366637M643.272277 776.472464l-484.84964 0 0-176.324868 484.84964 0L643.272277 776.472464zM643.272277 556.053332l-484.84964 0 0-176.296215 484.84964 0L643.272277 556.053332zM863.719038 776.472464 687.394171 776.472464l0-396.659065 176.324868 0L863.719038 776.472464z" ></path></symbol><symbol id="icon-qiehuanwenjianjia" viewBox="0 0 1024 1024"><path d="M409.6 102.4L512 204.8h307.2a102.4 102.4 0 0 1 102.144 94.72l0.256 7.68v512a102.4 102.4 0 0 1-94.72 102.144l-7.68 0.256H512v-76.8h281.6a51.2 51.2 0 0 0 50.842-45.21l0.358-5.99V332.8a51.2 51.2 0 0 0-45.21-50.842l-5.99-0.358H486.4L384 179.2H230.4a51.2 51.2 0 0 0-50.842 45.21l-0.358 5.99v179.2h-76.8V204.8a102.4 102.4 0 0 1 94.72-102.144l7.68-0.256h204.8z m217.6 588.8a38.4 38.4 0 1 1 0 76.8H358.4v99.584a25.6 25.6 0 0 1-41.83 19.814L132.3 736.614a25.6 25.6 0 0 1 16.231-45.414zM447.59 389.99l3.84 2.612L635.7 543.386a25.6 25.6 0 0 1-11.623 45.004l-4.608 0.41H140.8a38.4 38.4 0 0 1-5.222-76.442L140.8 512h268.8v-99.584a25.6 25.6 0 0 1 37.99-22.426z" ></path></symbol><symbol id="icon-baogao" viewBox="0 0 1104 1024"><path d="M265.401 1024a174.066 174.066 0 0 1-173.56-173.56V315.3a4.194 4.194 0 0 0-4.338-4.34H41.22A39.63 39.63 0 0 1 0 273.356V123.66C0 55.684 59.3 0 132.339 0h648.678a132.411 132.411 0 0 1 132.339 132.339v553.22a4.194 4.194 0 0 0 4.339 4.34h146.079a40.714 40.714 0 0 1 41.22 41.22v159.819a132.411 132.411 0 0 1-132.339 132.339l-707.254 0.723z m653.017-260.339A4.194 4.194 0 0 0 914.08 768v123.661a59.3 59.3 0 0 0 118.599 0V768a4.194 4.194 0 0 0-4.339-4.339z m-749.198-452.7a4.194 4.194 0 0 0-4.339 4.338v534.419a100.737 100.737 0 0 0 100.52 100.52h582.147a3.977 3.977 0 0 0 3.616-2.17 4.628 4.628 0 0 0 0-4.34 132.7 132.7 0 0 1-10.848-52.79V133.062a59.3 59.3 0 0 0-118.598 0v140.294a39.195 39.195 0 0 1-41.22 37.604zM132.34 73.762c-32.542 0-59.3 22.418-59.3 49.898v109.92a4.194 4.194 0 0 0 4.34 4.34h566.237a4.194 4.194 0 0 0 4.339-4.34V133.063a132.7 132.7 0 0 1 10.847-52.79c0.723-1.447 0-2.893 0-4.34a3.977 3.977 0 0 0-3.616-2.17z m169.22 692.068a36.881 36.881 0 0 1 0-73.763h402.08a36.881 36.881 0 0 1 0 73.763z m0-196.701a36.881 36.881 0 1 1 0-73.763h402.08a36.881 36.881 0 1 1 0 73.763z" ></path></symbol><symbol id="icon-xinghao" viewBox="0 0 1024 1024"><path d="M580.583 425.004c52.988-24.574 104.44-49.276 152.82-73.594 48.381-24.703 87.034-42.877 115.704-54.268 28.67-11.136 51.58-17.023 69.115-17.023a104.952 104.952 0 0 1 74.235 28.798 93.177 93.177 0 0 1 31.485 71.802c0 16.383-5.12 33.534-15.358 51.069-10.24 17.534-21.247 28.926-32.638 33.79-105.976 41.468-222.832 72.058-350.054 90.872 23.038 20.99 51.452 49.405 85.113 84.474 33.79 35.582 51.453 54.268 52.86 56.7 12.416 17.023 29.566 38.397 51.837 63.74 22.142 25.597 37.501 45.18 46.076 59.643a99.833 99.833 0 0 1 13.055 52.092 93.817 93.817 0 0 1-29.693 68.731 103.16 103.16 0 0 1-76.41 29.694c-31.23 0-66.172-24.318-105.337-72.443-39.037-48.124-89.465-135.158-151.029-260.46A12540.003 12540.003 0 0 1 386.677 862.22a387.3 387.3 0 0 1-61.563 81.53 96.889 96.889 0 0 1-67.835 27.774 101.625 101.625 0 0 1-76.026-31.358c-19.711-20.862-30.078-43.517-30.078-66.939 0-22.142 4.095-38.909 12.287-50.172 75.514-102.393 154.356-191.602 236.782-266.605a2401.103 2401.103 0 0 1-184.818-35.709 1163.818 1163.818 0 0 1-172.531-57.724c-9.984-5.12-19.583-16.382-29.054-33.917A104.696 104.696 0 0 1 0.018 380.72a93.433 93.433 0 0 1 31.358-71.675 102.648 102.648 0 0 1 72.186-28.926c19.839 0 44.285 5.887 73.979 17.79 29.438 11.904 67.067 29.054 112.632 51.453 45.564 22.526 97.656 47.74 155.892 75.514a1833.849 1833.849 0 0 1-26.494-177.267 1574.54 1574.54 0 0 1-10.367-137.078c0-30.205 9.599-56.06 28.798-78.074A95.481 95.481 0 0 1 512.62 0.076c29.822 0 54.012 10.75 73.339 32.51 19.454 21.886 29.054 50.683 29.054 86.649 0 9.855-1.664 29.182-4.48 58.491-2.56 29.182-7.04 64.252-12.16 105.465-5.375 41.34-11.39 88.697-17.79 141.813z" fill="#FF4444" ></path></symbol><symbol id="icon-mima" viewBox="0 0 1024 1024"><path d="M776.86 376.04c-22.05 0-40.16-16.24-43.91-37.98-18.08-104.98-109.79-185.1-219.84-185.1s-201.76 80.13-219.84 185.1c-3.74 21.73-21.85 37.98-43.91 37.98-27.05 0-48.82-24.04-44.44-50.73 24.3-148.16 153.25-261.58 308.19-261.58S796.99 177.15 821.3 325.31c4.38 26.69-17.39 50.73-44.44 50.73zM850.18 418.32H180.33c-37.98 0-68.76 30.79-68.76 68.76v403.71c0 37.98 30.79 68.76 68.76 68.76h665.36c37.97 0 68.75-30.77 68.77-68.74l0.19-408c0.02-35.61-28.85-64.49-64.47-64.49zM557.73 762.56c0 24.64-19.97 44.62-44.62 44.62-24.64 0-44.62-19.97-44.62-44.62v-89.23c0-24.64 19.97-44.62 44.62-44.62 24.64 0 44.62 19.98 44.62 44.62v89.23z" ></path></symbol><symbol id="icon-zhanghao" viewBox="0 0 1024 1024"><path d="M407.61 578.87c-174.46 0-304.73 113.04-304.73 277.2v17.69c0 85.81 139.6 85.81 316.37 85.81h187.73c169.75 0 316.37 0 316.37-85.81v-17.69c0-164.16-130.28-277.2-304.73-277.2H407.61zM503.71 535.67c138.19 0 250.63-105.81 250.63-235.94 0-130.06-112.44-235.86-250.63-235.86-138.11 0-250.56 105.81-250.56 235.86 0 130.13 112.45 235.94 250.56 235.94z" ></path></symbol><symbol id="icon-xiangqingye-37" viewBox="0 0 1024 1024"><path d="M368.64 34.133333H112.64C68.266667 34.133333 34.133333 68.266667 34.133333 112.64v256c0 23.893333 17.066667 40.96 40.96 40.96s40.96-17.066667 40.96-40.96V116.053333h252.586667c23.893333 0 40.96-17.066667 40.96-40.96S389.12 34.133333 368.64 34.133333zM911.36 34.133333h-256c-23.893333 0-40.96 17.066667-40.96 40.96s17.066667 40.96 40.96 40.96h252.586667v252.586667c0 23.893333 17.066667 40.96 40.96 40.96s40.96-17.066667 40.96-40.96V112.64C989.866667 68.266667 955.733333 34.133333 911.36 34.133333zM368.64 907.946667H116.053333v-252.586667c0-23.893333-17.066667-40.96-40.96-40.96S34.133333 634.88 34.133333 655.36v256C34.133333 955.733333 68.266667 989.866667 112.64 989.866667h256c23.893333 0 40.96-17.066667 40.96-40.96s-20.48-40.96-40.96-40.96zM948.906667 617.813333c-23.893333 0-40.96 17.066667-40.96 40.96v252.586667h-252.586667c-23.893333 0-40.96 17.066667-40.96 40.96s17.066667 40.96 40.96 40.96h256c40.96 0 78.506667-34.133333 78.506667-78.506667v-256c0-23.893333-17.066667-40.96-40.96-40.96z" fill="#3366CC" ></path><path d="M416.426667 488.106667L307.2 344.746667c-13.653333-17.066667-34.133333-20.48-51.2-6.826667-17.066667 13.653333-20.48 34.133333-6.826667 51.2L337.92 512l-95.573333 126.293333c-13.653333 17.066667-10.24 37.546667 6.826666 51.2 6.826667 3.413333 13.653333 6.826667 20.48 6.826667 10.24 0 23.893333-6.826667 30.72-13.653333l112.64-146.773334c10.24-17.066667 10.24-34.133333 3.413334-47.786666z" fill="#F4A914" ></path><path d="M597.333333 488.106667L488.106667 341.333333c-13.653333-17.066667-34.133333-20.48-51.2-6.826666-17.066667 13.653333-20.48 34.133333-6.826667 51.2l92.16 122.88-95.573333 126.293333c-13.653333 17.066667-10.24 37.546667 6.826666 51.2 6.826667 3.413333 13.653333 6.826667 20.48 6.826667 10.24 0 23.893333-6.826667 30.72-13.653334l112.64-146.773333c10.24-13.653333 10.24-30.72 0-44.373333z" fill="#F4A914" ></path><path d="M778.24 488.106667L669.013333 341.333333c-13.653333-17.066667-34.133333-20.48-51.2-6.826666-17.066667 13.653333-20.48 34.133333-6.826666 51.2l92.16 122.88-95.573334 126.293333c-6.826667 6.826667-6.826667 17.066667-6.826666 27.306667 0 10.24 6.826667 17.066667 13.653333 23.893333 6.826667 3.413333 13.653333 6.826667 23.893333 6.826667 10.24 0 23.893333-6.826667 30.72-13.653334l112.64-146.773333c6.826667-13.653333 6.826667-30.72-3.413333-44.373333z" fill="#F4A914" ></path></symbol><symbol id="icon-gongzhuangmoju" viewBox="0 0 1024 1024"><path d="M192 170.666667A106.965333 106.965333 0 0 0 85.333333 277.333333V426.666667h256l42.666667 85.333333h256l42.666667-85.333333h256V277.333333A106.965333 106.965333 0 0 0 832 170.666667z" fill="#3B709C" ></path><path d="M384 512l-42.666667-85.333333h341.333334l-42.666667 85.333333z m-298.666667-85.333333V256a85.333333 85.333333 0 0 1 85.333334-85.333333h682.666666a85.333333 85.333333 0 0 1 85.333334 85.333333v170.666667zM853.333333 853.333333H170.666667a85.333333 85.333333 0 0 1-85.333334-85.333333v-256h213.333334l42.666666 85.333333h341.333334l42.666666-85.333333h213.333334v256a85.333333 85.333333 0 0 1-85.333334 85.333333z" fill="#2C6798" ></path></symbol><symbol id="icon-jiagongguochengxinxi" viewBox="0 0 1024 1024"><path d="M345.216 664.192a315.84 315.84 0 0 1 93.12-224.64 315.84 315.84 0 0 1 100.992-68.16 315.392 315.392 0 0 1 123.648-24.96 315.392 315.392 0 0 1 158.72 42.368v-264a24.768 24.768 0 0 0-24.768-24.768H559.296a32.64 32.64 0 0 1 0.704 6.976v133.184c0 19.2-15.616 34.816-34.816 34.816H395.072a34.816 34.816 0 0 1-34.752-34.816v-133.12a32.64 32.64 0 0 1 0.64-6.976H123.456a24.768 24.768 0 0 0-24.768 24.832v676.544c0 13.76 11.072 24.832 24.768 24.832h266.24a316.224 316.224 0 0 1-44.416-162.112zM662.976 406.4a257.792 257.792 0 1 0 0 515.52 257.792 257.792 0 0 0 0-515.52z m112.256 293.376a104.704 104.704 0 0 1-107.328 25.216l-68.48 68.48a46.528 46.528 0 0 1-65.728-65.664l68.48-68.48a104.512 104.512 0 0 1 140.8-129.28l-67.072 67.072 10.88 42.88 43.328 11.328 67.072-67.136c16.64 38.336 9.216 84.416-21.952 115.584z m-220.16 51.456a20.928 20.928 0 1 0 41.856 0 20.928 20.928 0 0 0-41.856 0z" ></path></symbol><symbol id="icon-pingtaiguanli" viewBox="0 0 1024 1024"><path d="M1024 806.4V25.6c0-12.8-12.8-25.6-25.6-25.6H25.6C12.8 0 0 12.8 0 25.6v780.8h435.2v166.4H236.8v51.2h556.8v-51.2H588.8v-166.4H1024zM320 281.6c-12.8-12.8-19.2-25.6-32-32l44.8-76.8c44.8 25.6 96 12.8 121.6-32 12.8-12.8 12.8-32 12.8-44.8h89.6c0 51.2 38.4 83.2 89.6 83.2 12.8 0 32-6.4 44.8-12.8l44.8 76.8c-44.8 25.6-57.6 76.8-32 115.2 12.8 12.8 19.2 25.6 32 32l-44.8 76.8c-44.8-19.2-96-6.4-121.6 38.4-12.8 12.8-12.8 25.6-12.8 44.8H467.2c0-44.8-38.4-83.2-89.6-83.2-12.8 0-32 6.4-44.8 12.8l-44.8-83.2c38.4-25.6 51.2-76.8 32-115.2zM102.4 704v-51.2h825.6v51.2H102.4zM512 416c51.2 0 96-38.4 96-89.6S569.6 236.8 512 236.8c-51.2 0-96 38.4-96 89.6 0 51.2 44.8 89.6 96 89.6z" ></path></symbol><symbol id="icon-zhucaidanguanli" viewBox="0 0 1169 1024"><path d="M787.333831 588.946093a75.189984 75.189984 0 0 0-75.093984 75.092984 75.189984 75.189984 0 0 0 75.093984 75.093984 75.165984 75.165984 0 0 0 75.067984-75.093984 75.165984 75.165984 0 0 0-75.067984-75.092984m0 222.841953a147.919968 147.919968 0 0 1-147.748968-147.748969c0-81.455982 66.291986-147.747968 147.748968-147.747968 81.431983 0 147.747968 66.291986 147.747968 147.747968 0 81.480982-66.315986 147.748968-147.747968 147.748969m89.452981 102.106978c0.342 0.244 1.317 0.585 2.315999 0.585h0.122l71.484985-39.496992c-1.706-4.022999-9.605998-23.478995-9.605998-43.739991a113.858976 113.858976 0 0 1 107.739977-113.613975c0.853-4.729999 5.557999-31.524993 5.557998-51.639989s-4.704999-46.88399-5.558998-51.637989a113.858976 113.858976 0 0 1-107.738977-113.565976c0-20.357996 7.923998-39.813991 9.605998-43.81299l-70.313985-39.057992-0.293-0.025a5.339999 5.339999 0 0 0-2.706 0.732 196.753958 196.753958 0 0 1-26.014994 21.819995c-21.698995 15.238997-42.153991 22.967995-60.951987 22.967995-18.919996 0-39.594991-7.874998-61.390987-23.405995a194.705958 194.705958 0 0 1-26.160994-22.283995 5.777999 5.777999 0 0 0-2.729999-0.707h-0.245l-72.824985 40.032992c1.706 4.046999 9.580998 23.479995 9.580998 43.73999A113.858976 113.858976 0 0 1 528.895886 614.350088c-0.854 4.729999-5.509999 31.524993-5.509998 51.638989s4.655999 46.90899 5.533998 51.662989a113.858976 113.858976 0 0 1 107.763977 113.589975c0 20.334996-7.972998 39.863991-9.679998 43.788991l68.973985 38.545992h0.146c1.024 0 1.95-0.365 2.317-0.585a200.849957 200.849957 0 0 1 26.428994-23.161995c22.088995-16.188997 43.079991-24.429995 62.414987-24.429995 19.552996 0 40.715991 8.387998 62.950986 24.917995 14.920997 11.068998 25.258995 22.185995 26.550995 23.575995m22.673995 108.397976c-13.774997-0.025-27.135994-5.704999-35.765993-15.213996-11.775997-12.896997-49.005989-46.44599-79.530982-46.44599-30.280993 0-68.119985 33.767993-78.993984 45.54399-8.606998 9.386998-21.869995 14.969997-35.498992 14.969997-6.484999 0-12.604997-1.243-18.187996-3.706l-0.975-0.414-92.69698-51.833988-0.926-0.683a44.46999 44.46999 0 0 1-14.920996-53.735989c0.049-0.146 8.532998-19.699996 8.532998-37.594992a98.376979 98.376979 0 0 0-98.254979-98.254978h-3.900999c-15.505997 0-28.159994-13.799997-32.182993-35.108993-0.341-1.706-7.923998-42.178991-7.923999-74.044984 0-31.913993 7.557998-72.361984 7.899999-74.117984 4.119999-21.576995 16.992996-35.449992 32.816993-35.083993h3.266999a98.400979 98.400979 0 0 0 98.279979-98.303978c0-17.846996-8.484998-37.399992-8.558998-37.619992a44.34899 44.34899 0 0 1 15.067996-53.661989l0.95-0.658 97.840979-53.759988 1.024-0.415c5.485999-2.364999 11.507998-3.534999 17.895996-3.534999 13.604997 0 26.891994 5.436999 35.595992 14.628997 11.580998 12.116997 48.17699 43.641991 77.774984 43.64199 29.354994 0 65.755986-30.914993 77.287983-42.812991 8.654998-8.996998 21.844995-14.335997 35.302992-14.335997 6.509999 0 12.653997 1.219 18.285997 3.657l0.974999 0.414 94.47698 52.516988 0.95 0.658c16.895996 11.751997 23.332995 34.889993 14.945997 53.735989-0.049 0.146-8.532998 19.699996-8.532999 37.545992a98.400979 98.400979 0 0 0 98.254979 98.279978h3.291c15.774997-0.341 28.719994 13.506997 32.816993 35.107993 0.317 1.707 7.899998 42.203991 7.899998 74.069984 0 31.889993-7.582998 72.410984-7.948998 74.117984-4.046999 21.551995-16.992996 35.424992-32.767993 35.059993h-3.291a98.400979 98.400979 0 0 0-98.254979 98.278978c0 17.846996 8.483998 37.449992 8.556999 37.619992a44.42199 44.42199 0 0 1-15.017997 53.710989l-0.927 0.683-96.133979 53.100988-0.975 0.415a44.88499 44.88499 0 0 1-17.846996 3.583999z m222.061952-705.339848a48.76199 48.76199 0 1 1-97.523979 0V121.977194c0-13.457997-10.873998-24.453995-24.307995-24.453995h-877.859811c-13.262997 0-24.306995 10.970998-24.306995 24.453995v584.995874c0 13.457997 10.873998 24.453995 24.307995 24.453995h219.500953a48.76199 48.76199 0 1 1 0 97.523979H48.907989A48.76199 48.76199 0 0 1 0 780.190052V48.76221C0 21.822215 21.893995 0.00022 48.907989 0.00022h1023.706781a48.76199 48.76199 0 0 1 48.907989 48.76199v268.189942zM219.427953 975.23701c0-26.940994 21.991995-48.76199 48.981989-48.761989h194.607959a48.76199 48.76199 0 1 1 0 97.523979H268.433942a48.76199 48.76199 0 0 1-49.005989-48.76199z" ></path></symbol><symbol id="icon-caidanguanli" viewBox="0 0 1024 1024"><path d="M414.2 78H158.6c-41.5 0-75.3 33.8-75.3 75.3v255.5c0 41.5 33.8 75.3 75.3 75.3h255.5c41.5 0 75.3-33.8 75.3-75.3V153.3c0-41.5-33.7-75.3-75.2-75.3z m5.2 330.8c0 2.9-2.4 5.3-5.3 5.3H158.6c-2.9 0-5.3-2.4-5.3-5.3V153.3c0-2.9 2.4-5.3 5.3-5.3h255.5c2.9 0 5.3 2.4 5.3 5.3v255.5zM414.2 544.8H158.6c-41.5 0-75.3 33.8-75.3 75.3v255.5c0 41.5 33.8 75.3 75.3 75.3h255.5c41.5 0 75.3-33.8 75.3-75.3V620.1c0-41.5-33.7-75.3-75.2-75.3z m5.2 330.8c0 2.9-2.4 5.3-5.3 5.3H158.6c-2.9 0-5.3-2.4-5.3-5.3V620.1c0-2.9 2.4-5.3 5.3-5.3h255.5c2.9 0 5.3 2.4 5.3 5.3v255.5zM908.8 119.3H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 343.8H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 568.3H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 792.8H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35z" ></path></symbol><symbol id="icon-jueseguanli" viewBox="0 0 1024 1024"><path d="M874.9 577.3c-26.1-27.2-56.8-48.9-90.3-64.1 5.4-4.6 10.6-9.6 15.5-14.8 32.3-34.7 50.1-79.8 50.1-127.2 0-102.9-83.7-186.7-186.7-186.7-11 0-21.8 0.9-32.5 2.8-7.1-9.6-14.9-18.7-23.4-27.2-44.6-44.6-103.9-69.2-167-69.2s-122.4 24.6-167 69.2-69.2 103.9-69.2 167 24.6 122.4 69.2 167c10.8 10.8 22.4 20.4 34.8 28.7-4.9 1.8-9.7 3.8-14.5 5.8-44.9 19-85.2 46.2-119.9 80.8-34.6 34.6-61.8 75-80.8 119.9-19.7 46.5-29.6 95.9-29.6 146.8 0 17.7 1.2 35.5 3.7 52.9l69.3-9.7c-2-14.2-3-28.7-3-43.1 0-169.4 137.8-307.1 307.1-307.1s307.1 137.8 307.1 307.1c0 14.4-1 28.9-3 43.1l69.3 9.7c2.4-17.4 3.7-35.2 3.7-52.9 0-50.9-10-100.3-29.6-146.8-19-44.9-46.2-85.2-80.8-119.9-34.6-34.6-74.9-61.8-119.9-80.8-4.8-2-9.7-4-14.6-5.8 12.3-8.4 24-18 34.8-28.7 44.6-44.6 69.2-103.9 69.2-167 0-25-3.9-49.4-11.3-72.6 63.4 1.1 114.7 53 114.7 116.6 0 45.5-26.6 85.6-65.3 104.7-16.3 8.1-26.8 24.4-26.8 42.6v1c0 21.2 14.1 40 34.6 45.5 94.9 25.8 163.8 112.4 163.8 215 0 10.5-0.7 21-2.2 31.3l69.3 9.7c1.9-13.5 2.9-27.3 2.9-41-0.1-75.8-29.1-147.8-81.7-202.6z m-434.3-84c-91.6 0-166.2-74.6-166.2-166.2S349 160.9 440.6 160.9s166.2 74.6 166.2 166.2-74.5 166.2-166.2 166.2z" ></path></symbol><symbol id="icon-zhiweiguanli" viewBox="0 0 1024 1024"><path d="M878.4 243.5h-91.2v-41.2c0-58.6-47.7-106.2-106.2-106.2H354.2c-58.6 0-106.2 47.7-106.2 106.2v41.2h-91.2c-43.2 0-78.4 35.1-78.4 78.4V856c0 43.2 35.1 78.4 78.4 78.4h721.5c43.2 0 78.4-35.1 78.4-78.4V321.8c0-43.2-35.1-78.3-78.3-78.3zM318 202.3c0-20 16.2-36.2 36.2-36.2H681c20 0 36.2 16.3 36.2 36.2v41.2H318v-41.2zM156.8 313.5h721.5c4.6 0 8.4 3.7 8.4 8.4V554H692.4c-14.8-45.3-57.4-78.2-107.6-78.2H450.4c-50.2 0-92.9 32.9-107.6 78.2H148.5V321.8c0-4.6 3.7-8.3 8.3-8.3zM628 588.9c0 23.8-19.4 43.2-43.2 43.2H450.4c-23.8 0-43.2-19.4-43.2-43.2 0-23.8 19.4-43.2 43.2-43.2h134.3c23.9 0 43.3 19.4 43.3 43.2z m250.4 275.5H156.8c-4.6 0-8.4-3.7-8.4-8.4V623.9h194.3c14.8 45.3 57.4 78.2 107.6 78.2h134.3c50.2 0 92.9-32.9 107.6-78.2h194.3V856c0.2 4.6-3.5 8.4-8.1 8.4z" ></path></symbol><symbol id="icon-bumenguanli" viewBox="0 0 1024 1024"><path d="M322.5 62h384.6v70H322.5z" ></path><path d="M870.2 62h-59.3v70h59.3c7.2 0 13 5.8 13 13v733.9c0 7.2-5.8 13-13 13h-720c-7.2 0-13-5.8-13-13V145c0-7.2 5.8-13 13-13h68.6V62h-68.6c-45.8 0-83 37.2-83 83v733.9c0 45.8 37.2 83 83 83h720c45.8 0 83-37.2 83-83V145c0-45.8-37.3-83-83-83z" ></path><path d="M295 806.2c-0.5-5.7-0.7-11.6-0.7-17.3 0-119 96.8-215.8 215.8-215.8S726 669.8 726 788.8c0 5.8-0.2 11.6-0.7 17.3l69.8 5.6c0.6-7.6 0.9-15.3 0.9-22.9 0-76.4-29.7-148.1-83.7-202.1-29.7-29.8-64.9-52.1-103.3-66.2 45.6-31.5 75.5-84.1 75.5-143.5 0-96.1-78.2-174.4-174.4-174.4-96.1 0-174.4 78.2-174.4 174.4 0 59.5 29.9 112 75.5 143.5C373 534.6 337.8 557 308 586.7c-54 54-83.7 125.8-83.7 202.1 0 7.6 0.3 15.3 0.9 22.9l69.8-5.5z m215.2-533.6c57.5 0 104.4 46.8 104.4 104.4 0 57.5-46.8 104.4-104.4 104.4-57.5 0-104.4-46.8-104.4-104.4 0-57.6 46.8-104.4 104.4-104.4z" ></path></symbol><symbol id="icon-gerenzhongxin" viewBox="0 0 1024 1024"><path d="M930.4 337.3c-22.7-53.7-55.2-101.9-96.6-143.3-41.4-41.4-89.6-73.9-143.3-96.6C634.9 73.9 575.9 62 515.1 62c-60.8 0-119.9 11.9-175.5 35.4-53.7 22.7-101.9 55.2-143.3 96.6-41.4 41.4-73.9 89.6-96.6 143.3-23.5 55.6-35.4 114.6-35.4 175.5 0 50.5 8.3 100.1 24.7 147.4l66.1-22.9c-13.8-39.9-20.8-81.8-20.8-124.5 0-209.9 170.8-380.7 380.7-380.7 209.9 0 380.8 170.8 380.8 380.7 0 41.6-6.7 82.5-19.8 121.5l66.3 22.3c15.6-46.2 23.5-94.7 23.5-143.9 0-60.8-11.9-119.8-35.4-175.4z" ></path><path d="M656.9 422.2c0-76.9-62.6-139.5-139.5-139.5s-139.5 62.6-139.5 139.5 62.6 139.5 139.5 139.5 139.5-62.6 139.5-139.5z m-209 0c0-38.3 31.2-69.5 69.5-69.5s69.5 31.2 69.5 69.5-31.2 69.5-69.5 69.5-69.5-31.2-69.5-69.5zM713.8 627.8c-62-27.2-128.1-40.9-196.4-40.9-69 0-135.7 14-198.2 41.7-60.4 26.7-114.1 64.9-159.5 113.3l-20.3 21.7 18.1 23.6c41.2 53.6 94.8 98 155 128.3 63.2 31.8 131.3 48 202.6 48 71.9 0 140.6-16.4 204.2-48.8 60.7-30.9 114.5-76 155.6-130.4l17.9-23.7-20.5-21.6c-45.3-47.6-98.6-85-158.5-111.2zM515.1 893.5c-109 0-210.3-45.3-282.5-125.4 77.7-71.9 177.7-111.2 284.8-111.2 105.8 0 204.9 38.4 282.2 108.8-72.2 81.6-174.3 127.8-284.5 127.8z" ></path></symbol><symbol id="icon-yonghuguanli" viewBox="0 0 1024 1024"><path d="M751.4 553.2c-42.5-38.5-92.1-67.1-145.5-84.6 53.2-38.9 87.8-101.8 87.8-172.7C693.7 178 597.7 82 479.8 82c-57.1 0-110.8 22.2-151.2 62.6C288.2 185 266 238.7 266 295.8s22.2 110.8 62.6 151.2c7.8 7.8 16.2 15 25 21.4-10.5 3.5-20.9 7.3-31.2 11.7-48.2 20.4-91.4 49.5-128.5 86.7s-66.3 80.4-86.7 128.5c-21.1 49.9-31.8 102.9-31.8 157.4 0 24.8 2.3 49.7 6.8 73.9l68.8-12.7c-3.7-20-5.6-40.6-5.6-61.2 0-184.4 150-334.4 334.4-334.4 83.2 0 163 30.8 224.5 86.6l47.1-51.7zM479.8 152c79.3 0 143.9 64.5 143.9 143.9s-64.5 143.9-143.9 143.9S336 375.2 336 295.9 400.5 152 479.8 152zM726.3 665.3h213.8v70H726.3zM503 831.6h437.1v70H503z" ></path></symbol><symbol id="icon-app" viewBox="0 0 1024 1024"><path d="M363.485867 865.117867h305.5616c21.6576 0 39.2192-17.194667 39.2192-38.4s-17.5616-38.4-39.2192-38.4H363.485867c-21.6576 0-39.2192 17.194667-39.2192 38.4s17.5616 38.4 39.2192 38.4z" fill="#A6ADB4" ></path><path d="M945.288533 699.835733a40.448 40.448 0 0 0-43.195733 43.1872v147.037867a46.865067 46.865067 0 0 1-45.960533 48.708267H166.766933a46.882133 46.882133 0 0 1-45.038933-48.708267v-147.029333a40.439467 40.439467 0 1 0-80.887467 0v147.029333a125.883733 125.883733 0 0 0 125.9264 128.657067h693.0432c70.203733-1.006933 126.4384-58.461867 125.9264-128.657067v-147.029333a40.430933 40.430933 0 0 0-40.448-43.195734zM40.840533 127.735467v147.959466a39.517867 39.517867 0 0 0 79.044267 0V127.735467a45.943467 45.943467 0 0 1 46.882133-47.786667h693.0432a46.882133 46.882133 0 0 1 45.960534 47.786667v147.959466a39.509333 39.509333 0 0 0 39.517866 39.509334 40.448 40.448 0 0 0 40.448-39.509334V127.735467C986.248533 58.052267 930.423467 1.024 860.7232 0H166.775467A125.934933 125.934933 0 0 0 40.840533 127.744z m168.4992 427.972266H326.229333L357.316267 640H418.133333L295.150933 315.733333h-52.701866L119.466667 640h60.817066l29.056-84.292267zM269.124267 392.533333L307.2 503.466667h-76.8l38.724267-110.933334z m231.552 131.959467h32.631466a123.246933 123.246933 0 0 0 88.192-28.535467c23.389867-19.959467 36.394667-49.134933 35.413334-79.488 1.6384-28.245333-9.838933-55.722667-31.249067-74.743466a127.573333 127.573333 0 0 0-84.0192-25.813334H443.733333V640h56.942934V524.4928zM503.466667 366.933333h32.136533c42.180267 0 61.602133 17.493333 61.602133 53.162667 1.092267 16.0256-4.8128 31.701333-16.068266 42.666667a71.364267 71.364267 0 0 1-51.5584 14.677333H503.466667V366.933333z m286.293333-51.0976H691.2V640h57.3184V524.4672h32.853333c31.837867 1.928533 63.189333-8.311467 87.381334-28.544 23.543467-19.959467 36.625067-49.152 35.643733-79.505067 1.536-28.100267-9.710933-55.441067-30.754133-74.752a131.84 131.84 0 0 0-83.882667-25.8304z m39.4752 147.131734a73.813333 73.813333 0 0 1-49.527467 14.72H750.933333V366.933333h32.119467c42.1632 0 61.576533 17.527467 61.576533 53.2736 1.262933 15.957333-4.394667 31.650133-15.394133 42.752z" fill="#A6ADB4" ></path></symbol><symbol id="icon-yepian" viewBox="0 0 1024 1024"><path d="M807.936 99.328c-17.408 0-32.256 9.216-40.448 23.552h-348.16L284.672 355.84l35.84 35.84 126.976-219.648h321.536c8.192 12.8 22.528 20.992 38.912 20.992 25.6 0 46.592-20.992 46.592-46.592s-20.992-47.104-46.592-47.104z" ></path><path d="M301.056 50.688c-8.704 14.848-7.68 32.768 0 46.592L127.488 399.36l134.656 232.448 48.64-13.312L183.808 399.36l160.256-279.04c15.36-1.024 29.696-9.216 37.888-23.04 12.8-22.528 5.12-50.688-17.408-63.488s-50.688-5.632-63.488 16.896z" ></path><path d="M15.872 467.456c8.704 14.848 24.064 23.552 40.448 23.552L228.352 793.6l268.8 1.536 13.312-48.64-253.44-1.536-159.232-279.552c6.656-13.312 7.168-30.208-1.024-44.032-12.8-22.528-40.96-30.208-63.488-17.408-22.528 12.8-30.208 40.96-17.408 63.488z" ></path><path d="M216.064 924.672c17.408 0 32.256-9.216 40.448-23.552h348.16l134.144-232.448-35.84-35.84-126.976 219.648H254.976c-8.192-12.8-22.528-20.992-38.912-20.992-25.6 0-46.592 20.992-46.592 46.592s20.992 46.592 46.592 46.592z" ></path><path d="M722.944 973.312c8.704-14.848 7.68-32.768 0-46.592l173.568-302.08-134.656-232.448-48.64 13.312 127.488 219.136-160.256 279.04c-15.36 1.024-29.696 9.216-37.888 23.04-12.8 22.528-5.12 50.688 17.408 63.488 22.016 13.312 50.176 5.632 62.976-16.896z" ></path><path d="M1008.128 556.544c-8.704-14.848-24.064-23.552-40.448-23.552L795.648 230.4l-268.8-1.536-13.312 48.64 253.44 1.536 159.232 279.552c-6.656 13.312-7.168 30.208 1.024 44.032 12.8 22.528 40.96 30.208 63.488 17.408 22.528-12.8 30.208-40.96 17.408-63.488zM512 391.168C445.44 391.168 391.168 445.44 391.168 512S445.44 632.832 512 632.832s120.832-54.272 120.832-120.832S578.56 391.168 512 391.168z m0 196.096c-41.472 0-75.264-33.792-75.264-75.264s33.792-75.264 75.264-75.264 75.264 33.792 75.264 75.264-33.792 75.264-75.264 75.264z" ></path></symbol><symbol id="icon-left-circle-fill" viewBox="0 0 1024 1024"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m104 316.9c0 10.2-4.9 19.9-13.2 25.9L457.4 512l145.4 105.2c8.3 6 13.2 15.6 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.5l-246-178c-4.4-3.2-4.4-9.7 0-12.9l246-178c5.3-3.8 12.7-0.1 12.7 6.5v46.8z" ></path></symbol><symbol id="icon-right-circle-fill" viewBox="0 0 1024 1024"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m154.7 454.5l-246 178c-5.3 3.8-12.7 0-12.7-6.5v-46.9c0-10.2 4.9-19.9 13.2-25.9L566.6 512 421.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.8 0 13z" ></path></symbol><symbol id="icon-xitongguanli" viewBox="0 0 1026 1024"><path d="M400.896 67.072H140.8c-24.064 0-46.592 11.264-59.392 29.696-9.216 12.8-14.848 27.648-14.848 44.544v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24V141.312c0.512-40.96-33.28-74.24-73.728-74.24z m0 361.984v9.216-9.216z m335.872 83.456c18.432 0 35.328-7.168 48.128-20.48L939.008 337.92c12.8-12.8 20.48-29.696 20.48-48.128s-7.168-35.328-20.48-48.128l-154.112-155.648c-26.112-26.112-70.656-26.112-96.256 0l-154.112 154.112c-12.8 12.8-20.48 29.696-20.48 48.128 0 18.432 7.168 35.328 20.48 48.128l154.112 154.112c12.8 14.336 29.184 22.016 48.128 22.016z m0-369.152l146.432 146.432-146.432 146.432-144.896-146.432L736.768 143.36z m-335.872 406.016H140.8c-40.96 0-74.24 33.28-74.24 74.24v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24v-259.584c0.512-40.448-33.28-74.24-73.728-74.24z m0 352.768v18.432-18.432z m484.352-352.768h-259.584c-40.96 0-74.24 33.28-74.24 74.24v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24v-259.584c0-40.448-33.792-74.24-74.24-74.24z" ></path></symbol><symbol id="icon-gongjianku" viewBox="0 0 1024 1024"><path d="M798.72 320v446.976H223.232V320H63.488v532.48c0 41.472 33.792 75.264 75.264 75.264h745.472c41.472 0 75.264-33.792 75.264-75.264v-532.48H798.72z" ></path><path d="M608.256 494.592z m-10.24-4.608z" ></path><path d="M819.2 96.256H203.776c-41.472 0-75.264 33.792-75.264 75.264V286.72h128v448h510.464V286.72h128V171.008c-0.512-41.472-34.304-74.752-75.776-74.752z m-154.112 493.056l-12.8 12.8c-12.8 12.8-33.28 12.8-46.08 0L477.184 473.088c-33.792 11.776-72.704 4.608-99.328-22.528-27.136-27.136-34.304-66.048-22.528-99.84l38.4 38.4c12.8 12.8 33.28 12.8 46.08 0l12.8-12.8c12.8-12.8 12.8-33.28 0-46.08L414.208 291.84c33.792-11.776 72.704-4.096 99.84 22.528 27.136 27.136 34.304 66.048 22.528 99.84l128.512 128.512c12.288 13.312 12.288 33.792 0 46.592z" ></path></symbol><symbol id="icon-fangfaku" viewBox="0 0 1024 1024"><path d="M256 170.496v170.496h512V170.496h85.504c23.552 0 42.496 18.944 42.496 42.496V896c0 23.552-18.944 42.496-42.496 42.496H170.496c-23.552 0-42.496-18.944-42.496-42.496V212.992c0-23.552 18.944-42.496 42.496-42.496H256z m256 513.024H256v83.456h256v-83.456zM768 491.52H256v83.456h512V491.52zM341.504 85.504h341.504V256H341.504V85.504z" ></path></symbol><symbol id="icon-shebeiku" viewBox="0 0 1024 1024"><path d="M960 491.52v380.416c0 26.112-23.04 47.616-52.224 47.616H116.224c-29.184 0-52.224-21.504-52.224-47.616V491.52c0-26.112 23.04-47.616 52.224-47.616h791.552c28.672 0 52.224 21.504 52.224 47.616z m-149.504 156.16H213.504V783.36h596.992v-135.68z m149.504-500.736v186.88c0 23.04-20.992 42.496-46.592 42.496H110.592c-25.6 0-46.592-18.944-46.592-42.496V146.944c0-23.04 20.992-42.496 46.592-42.496h802.304c26.112 0 47.104 18.944 47.104 42.496z m-671.744 25.6c-41.472 0-74.752 30.208-74.752 68.096s33.792 68.096 74.752 68.096S363.008 278.528 363.008 240.64s-33.792-68.096-74.752-68.096z m224.256 0c-41.472 0-74.752 30.208-74.752 68.096s33.792 68.096 74.752 68.096 74.752-30.208 74.752-68.096-33.792-68.096-74.752-68.096z" ></path></symbol><symbol id="icon-wenjian" viewBox="0 0 1024 1024"><path d="M273.54647 325.996013h476.395357c19.444708-2.046811 36.842605 11.769166 39.40112 30.702171 2.046811 19.444708-11.769166 36.330903-31.213874 38.377714-2.558514 0.511703-5.117029 0.511703-7.675543 0H273.54647c-10.234057-0.511703-19.956411-4.605326-26.608548-11.257463-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737 0.511703-19.956411 17.397897-35.307497 37.866011-34.284091v1.023406z m0 209.286467h476.395357c19.444708-2.046811 36.842605 11.769166 39.40112 30.702171 2.046811 19.444708-11.769166 36.330903-31.213874 38.377714-2.558514 0.511703-5.117029 0.511703-7.675543 0H273.54647c-9.722354 0-19.444708-3.58192-26.608548-10.234057-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737 0.511703-19.444708 17.397897-35.307497 37.354308-34.284091z m0 185.748136h324.931312c19.444708 0 35.307497 15.862788 35.307497 34.795794 0 19.444708-15.862788 34.795794-35.307497 34.795794H273.54647c-9.722354-0.511703-19.444708-4.093623-26.608548-10.74576-6.652137-6.140434-10.74576-14.839383-10.74576-24.050034 0.511703-19.444708 17.397897-35.307497 37.354308-34.795794zM135.898402 0.041294h96.71184c17.397897-0.511703 33.772388 8.187246 43.494742 22.514926l53.217097 82.38416c4.605326 7.16384 12.792571 11.769166 20.979817 11.257462h322.884501c8.698949 0 16.886194-4.093623 21.49152-11.257462l53.217097-82.38416c9.722354-14.32768 26.096846-23.026628 43.494742-22.514926h97.223543c53.7288-1.535109 98.246948 39.912823 100.293759 93.12992v837.657572c-2.046811 52.705394-46.56496 94.153325-100.293759 93.12992h-752.203196c-53.7288 1.535109-98.758651-39.912823-100.293759-92.618217V93.171214C37.139751 39.954117 82.169603-1.493814 135.898402 0.041294z m82.895863 70.103291H135.898402c-6.652137 0-13.304274 2.558514-18.421303 6.652138-4.605326 4.093623-7.16384 10.234057-7.16384 16.374491v837.657572c0.511703 13.304274 11.769166 23.538331 25.07344 23.026629h752.203196c6.652137 0 13.304274-2.558514 18.421303-6.652138 4.605326-4.093623 7.16384-10.234057 7.16384-16.374491V93.171214c0.511703-6.140434-2.046811-12.280868-7.16384-16.374491-5.117029-4.605326-11.257463-6.652137-18.421303-6.652138h-82.895862l-46.053257 70.614994c-18.933006 28.65536-51.681988 45.541554-86.477783 45.029851H350.813601c-34.795794 0.511703-67.544777-16.374491-86.477782-45.029851l-45.541554-70.614994zM399.425372 0.041294h225.149256c19.956411-0.511703 36.842605 15.351086 37.866011 34.795795-0.511703 19.956411-17.397897 35.307497-37.866011 34.795794H399.425372c-10.234057-0.511703-19.956411-4.093623-27.120251-10.74576-6.652137-6.140434-10.74576-15.351086-10.234057-24.050034C362.582767 15.39238 378.957258-0.470408 399.425372 0.041294z" ></path></symbol><symbol id="icon-bianjimoban" viewBox="0 0 1025 1024"><path d="M127.110228 701.648461q0 26.438928 18.812314 45.251241t46.268123 18.812314l253.203575 0 0 128.12711-318.284012 0q-26.438928 0-49.82721-9.660377t-40.675273-26.947368-26.947368-40.675273-9.660377-50.844091l0-637.584906q0-26.438928 9.660377-49.82721t26.947368-40.675273 40.675273-27.455809 49.82721-10.168818l766.728898 0q26.438928 0 49.82721 10.168818t40.675273 27.455809 27.455809 40.675273 10.168818 49.82721l0 187.106256-128.12711 1.016882q-2.033764-25.422046-19.829196-43.217478t-44.234359-17.795432l-637.584906 0q-27.455809 0-46.268123 18.812314t-18.812314 45.251241l0 382.347567zM1016.881827 501.322741q6.101291 9.151936 7.626614 23.388282t-10.677259 28.472691q-11.1857 14.236346-18.303873 21.354518l-8.135055 8.135055-105.75571-95.586892q5.084409-6.101291 14.236346-14.744786t14.236346-13.727905q14.236346-14.236346 30.506455-12.711023t27.455809 6.609732q12.202582 5.084409 26.438928 18.812314t22.3714 29.998014zM613.179742 789.100298q3.050645-3.050645 14.236346-16.270109t27.96425-32.540218 37.116187-42.200596 40.675273-46.268123q48.810328-54.911619 108.806356-122.025819l107.789474 95.586892q-59.996028 68.131082-108.806356 123.042701-20.337637 23.388282-40.675273 46.268123t-37.116187 41.183714-27.455809 29.998014-12.711023 13.727905q-9.151936 12.202582-25.422046 20.337637-7.118173 5.084409-21.354518 11.1857t-29.998014 12.202582-29.489573 10.677259-20.846077 5.59285q-26.438928 5.084409-23.388282-22.3714 1.016882-7.118173 4.067527-21.862959t6.609732-30.506455 7.118173-28.981132 5.59285-18.303873q5.084409-13.219464 17.286991-28.472691z" ></path></symbol><symbol id="icon-shanchu1" viewBox="0 0 1024 1024"><path d="M78.768011 168.230165c0-30.999918 24.230644-56.076722 54.15419-56.076722L403.692131 112.153443 403.692131 56.076722c0-30.999918 24.230644-56.076722 54.15419-56.076722l108.306335 0c29.923546 0 54.155214 25.076803 54.155214 56.076722l0 56.077745 270.768906 0c29.923546 0 54.15419 25.076803 54.15419 56.076722l0 56.076722L78.768011 224.307909 78.768011 168.230165zM891.076776 336.461352l0 112.153443 0 519.30746c0 30.923181-24.231667 56.077745-54.153167 56.077745L187.076392 1024c-29.923546 0-54.15419-25.154564-54.15419-56.077745L132.922201 448.614796 132.922201 336.461352l0-56.077745 758.154574 0L891.076776 336.461352zM349.53794 448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523 0-54.153167 25.153541-54.153167 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.153167 56.077745 29.923546 0 54.15419-25.154564 54.15419-56.077745L349.53794 448.614796zM566.153679 448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523 0-54.153167 25.153541-54.153167 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.153167 56.077745 29.923546 0 54.15419-25.154564 54.15419-56.077745L566.153679 448.614796zM782.770441 448.614796c0-30.923181-24.231667-56.076722-54.155214-56.076722s-54.15419 25.153541-54.15419 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.15419 56.077745s54.155214-25.154564 54.155214-56.077745L782.770441 448.614796z" ></path></symbol><symbol id="icon-edit" viewBox="0 0 1024 1024"><path d="M923.9 335.8c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.8-35.2-174.3-35.2S392.2 74.1 337 97.5c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3C75.3 391 63.5 449.7 63.5 510.1c0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c35.9-15.2 69.3-34.8 99.8-58.5l-0.1-0.1c9.1-7.4 14.8-18.6 14.8-31.2 0-22.3-18-40.3-40.3-40.3-9.2 0-17.7 3.1-24.5 8.3l-0.2-0.3c-62 47.9-139.7 76.4-223.9 76.4-202.3 0-366.9-164.6-366.9-366.9s164.7-366.9 367-366.9 366.9 164.6 366.9 366.9c0 66.2-17.6 128.3-48.4 182l0.4 0.2c-4.4 6.5-7 14.2-7 22.6 0 22.3 18 40.3 40.3 40.3 16 0 29.8-9.3 36.3-22.8l0.2 0.1c8.9-15.5 16.8-31.5 23.8-48.1 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.7-119.1-35.1-174.3z" ></path><path d="M693.7 626.5H507.6l-57.1 66.1h243.2zM663.2 411.4c7.5-7.6 7.5-23.5 0-31.3l-45.4-46.8c-7.7-7.6-22.9-7.6-30.4 0l-45.7 46.8 76.1 78.1 45.4-46.8zM328.8 614.5v78.1h76.1l197.5-218.7-76-77.9z" ></path></symbol><symbol id="icon-new" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M695.7 469.2h-139v-139c0-23.6-19.3-43-43-43-23.6 0-43 19.3-43 43v139h-139c-23.6 0-43 19.3-43 43s19.3 43 43 43h139v139c0 23.7 19.3 43 43 43 23.6 0 43-19.3 43-43v-139h139c23.6 0 43-19.3 43-43s-19.4-43-43-43z" ></path></symbol><symbol id="icon-biaoqianye1" viewBox="0 0 1024 1024"><path d="M345.557333 128l110.677334 168.405333H938.666667V896H85.333333V128h260.224zM299.52 213.333333H170.666667v597.333334h682.666666V381.738667H410.197333L299.52 213.333333z" fill="#222222" ></path><path d="M597.333333 136.533333c0-4.693333 3.541333-8.533333 7.893334-8.533333h325.546666c4.352 0 7.893333 3.84 7.893334 8.533333v68.266667c0 4.693333-3.541333 8.533333-7.893334 8.533333h-325.546666C600.874667 213.333333 597.333333 209.493333 597.333333 204.8V136.533333z" fill="#222222" ></path></symbol><symbol id="icon-biaoqianye" viewBox="0 0 1024 1024"><path d="M376.6 494.8c5.1 4.8 7.9 11.7 7.6 18.7 0.4 7.1-2.5 14-7.6 18.7-5.3 4.7-12.3 7.2-19.3 6.9h-69.6v235.1c0.2 7.4-2.9 14.4-8.4 19.1-5.5 5.4-12.9 8.3-20.5 8.1-7.6 0.3-15.1-2.7-20.5-8.1-5.3-4.9-8.2-11.9-8.1-19.1v-235H161c-7.2 0.3-14.2-2.3-19.3-7.3-5.2-4.8-8-11.7-7.6-18.7-0.3-7 2.5-13.7 7.6-18.3 5.3-4.8 12.2-7.3 19.3-7h198.4c6.3 0 12.4 2.5 17.2 6.9z m215.7 70.1c5.2 5.1 8 12.2 7.7 19.6v189.9c0.3 7.2-2.5 14.2-7.7 19.1-4.8 5.3-11.7 8.3-18.9 8.1-7.1 0.1-13.9-2.7-18.9-7.7-4.8-5.2-7.6-12-7.6-19.1-18 19.5-42.9 30.8-69.2 31.4-19.7 0.3-38.9-5.3-55.5-15.9-17.2-10.7-31.2-26.1-40.3-44.4-19.3-40.4-19.3-87.6 0-128 8.9-18.4 22.9-33.8 40.3-44.4 16-10.5 34.8-16.1 53.9-15.9 26.3-0.1 51.8 9.8 71.2 27.7-0.2-7.3 2.6-14.4 7.7-19.6 10.6-10.2 27.2-10.2 37.8 0l-0.5-0.8z m-61.2 168.7c24.1-31.6 24.1-75.6 0-107.2-11.5-14.3-28.9-22.3-47.1-21.6-17.9-0.5-35.1 7.4-46.3 21.6-12.1 15-18.5 34-18.1 53.4-0.6 19.5 5.7 38.6 17.7 53.8 11.6 13.9 28.8 21.7 46.7 21.2 18.1 0.4 35.3-7.4 47.1-21.2zM835.4 573c17.1 10.7 31 25.9 40.3 44 9.9 19.8 14.9 41.8 14.5 64 0.4 22.3-4.6 44.4-14.5 64.4-9 18.3-23 33.7-40.3 44.4-16 10.6-34.8 16.1-53.9 15.9-13.9 0.2-27.7-2.9-40.3-9-11.6-5-22.1-12.2-31-21.2v2.8c0.2 7.2-2.5 14.2-7.5 19.4-5 5.1-11.9 8-19.1 7.9-7.1 0.3-14-2.5-18.9-7.7-5.2-5.1-8-12.2-7.6-19.6V497.2c-0.2-7.3 2.5-14.4 7.6-19.6 10.6-10.3 27.2-10.3 37.8 0 5.1 5.2 7.9 12.2 7.6 19.6v93.3c8-9.8 18-17.7 29.4-23.2 12.4-6.8 26.2-10.3 40.3-10.2 19.7-0.2 39 5.3 55.6 15.9z m-15.7 163c12.2-15.1 18.6-34.3 18.1-53.8 0.6-19.4-5.7-38.3-17.7-53.4-12-13.4-29-21.1-46.9-21.1s-34.9 7.7-46.9 21.1c-24.1 31.6-24.1 75.6 0 107.2 11.6 14.1 29 22.1 47.1 21.6 18.3-0.2 35.4-9.1 46.3-24v2.4zM708.1 253.5c-15.5 0-28-12.5-28-28V113.4c-0.1-8 0-15.9 0-23.8V77.9c0-15.5 12.5-28 28-28H886c17 0 32.9 6.6 45 18.6 11.3 11.3 17.8 26 18.6 41.8 0.1 0.7 0.1 1.4 0.1 2.1v113.2c0 15.5-12.5 28-28 28H708.1z m28-56h157.4v-84.1c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.4-2.2-5.4-2.2H736.1v91.7zM371.9 254.6c-15.5 0-28-12.5-28-28V78.9c0-15.4 12.5-27.9 27.9-28l213.4-1.1h0.1c17 0 32.9 6.6 45 18.6 12 12.1 18.6 28 18.6 45v113.2c0 15.5-12.5 28-28 28h-249z m28-56.1h193v-85.2c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.3-2.2-5.3-2.2l-185.5 0.9v91.9z" fill="#595959" ></path><path d="M72.4 974.2c-17.3 0-33.5-6.7-45.7-18.7-12.2-12.1-18.9-28.1-18.9-45.1V113.6c0-35.2 29-63.8 64.6-63.8h169c17.3 0 33.5 6.6 45.7 18.7 12.2 12 18.9 28.1 18.9 45.1V283c0 2 0.8 3.9 2.3 5.4 1.5 1.4 3.4 2.2 5.4 2.2h637.9c17.3 0 33.5 6.6 45.7 18.7 12.2 12 18.9 28 18.9 45.1v556c0 17.1-6.7 33.1-18.9 45.1s-28.4 18.7-45.7 18.7H72.4z m7.7-860.6c-4.3 0-7.7 3.4-7.7 7.6v788.7c0 2 0.8 4 2.3 5.4 1.4 1.4 3.4 2.2 5.4 2.2h871.5c2.1 0 4-0.8 5.4-2.2 1.5-1.4 2.3-3.3 2.3-5.4V350.6c0-2-0.8-3.9-2.2-5.3-1.5-1.5-3.4-2.3-5.4-2.3h-638c-17.3 0-33.5-6.7-45.7-18.7-12.2-12-18.9-28.1-18.9-45.1V121.1c0-2-0.8-3.9-2.3-5.4-1.4-1.4-3.4-2.2-5.4-2.2H80.1z" fill="#595959" ></path></symbol><symbol id="icon-buzhou" viewBox="0 0 1024 1024"><path d="M488.106667 792.462222h257.137777a28.444444 28.444444 0 0 0 28.444445-28.444444 28.444444 28.444444 0 0 0-28.444445-28.444445H488.106667a28.444444 28.444444 0 0 0-28.444445 28.444445 28.444444 28.444444 0 0 0 28.444445 28.444444zM242.346667 764.017778A80.782222 80.782222 0 1 0 341.333333 686.08v-96.142222a80.213333 80.213333 0 0 0 0-155.875556V337.92a80.782222 80.782222 0 1 0-39.822222 0v96.142222a80.213333 80.213333 0 0 0 0 155.875556v96.142222a80.782222 80.782222 0 0 0-59.164444 77.937778zM284.444444 259.982222a40.96 40.96 0 0 1 81.92 0 40.391111 40.391111 0 0 1-40.391111 40.96 40.391111 40.391111 0 0 1-41.528889-40.96zM284.444444 512a40.96 40.96 0 1 1 40.96 40.96A40.96 40.96 0 0 1 284.444444 512z m40.391112 211.057778a40.391111 40.391111 0 0 1 40.391111 40.96 40.96 40.96 0 0 1-81.92 0 40.391111 40.391111 0 0 1 39.253333-40.96zM488.106667 540.444444h257.137777a28.444444 28.444444 0 1 0 0-56.888888H488.106667a28.444444 28.444444 0 1 0 0 56.888888zM488.106667 288.426667h257.137777a28.444444 28.444444 0 0 0 28.444445-28.444445 28.444444 28.444444 0 0 0-28.444445-28.444444H488.106667a28.444444 28.444444 0 0 0-28.444445 28.444444 28.444444 28.444444 0 0 0 28.444445 28.444445z" fill="#151515" ></path><path d="M859.022222 79.644444H164.977778a22.755556 22.755556 0 0 0-22.755556 22.755556v819.2a22.755556 22.755556 0 0 0 22.755556 22.755556h694.044444a22.755556 22.755556 0 0 0 22.755556-22.755556V102.4a22.755556 22.755556 0 0 0-22.755556-22.755556z m-22.755555 819.2H187.733333V125.155556h648.533334z" fill="#151515" ></path></symbol><symbol id="icon-ok" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M715.6 371.6c-15.7-15.7-41.4-15.7-57 0l-196 196-95.9-95.9c-15.7-15.7-41.4-15.7-57 0-15.7 15.7-15.7 41.4 0 57l124.5 124.5c15.7 15.7 41.4 15.7 57 0l224.5-224.5c15.6-15.7 15.6-41.4-0.1-57.1z" ></path></symbol><symbol id="icon-cancel" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M697.9 329.1c-15.6-15.6-41-15.6-56.6 0L513 457.4 384.7 329.1c-15.6-15.6-41-15.6-56.6 0-15.6 15.6-15.6 41 0 56.6L456.4 514 328.1 642.3c-15.6 15.6-15.6 41 0 56.6 15.6 15.6 41 15.6 56.6 0L513 570.6l128.3 128.3c15.6 15.6 41 15.6 56.6 0 15.6-15.6 15.6-41 0-56.6L569.6 514l128.3-128.3c15.6-15.6 15.6-41.1 0-56.6z" ></path></symbol><symbol id="icon-savebaocun" viewBox="0 0 1024 1024"><path d="M778.7 97.2H247.3C165 97.2 98 164.3 98 246.7v532.2c0 82.4 67 149.4 149.3 149.4h531.5c82.3 0 149.3-67 149.3-149.4V246.7C928 164.3 861 97.2 778.7 97.2z m-452.2 79.9h373.1v83.7H331.9c-2.9 0-5.5-2.6-5.5-5.5v-78.2z m373 671.3h-373v-225h373.1v225z m148.7-69.6c0 38.1-30.8 69.2-68.8 69.5V612.9c0-38.3-31.1-69.4-69.3-69.4H316c-38.2 0-69.3 31.1-69.3 69.4v235.4c-38-0.3-68.8-31.4-68.8-69.5V246.7c0-38.1 30.8-69.2 68.8-69.5v78.2c0 47.1 38.3 85.4 85.3 85.4h378c38.2 0 69.3-31.1 69.3-69.4v-94.2c38 0.3 68.8 31.4 68.8 69.5v532.1z" ></path></symbol><symbol id="icon-shijianxian2" viewBox="0 0 1024 1024"><path d="M171.52 924.16v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z m0-322.56v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z m0-394.24v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z" ></path><path d="M350.72 350.72c0 79.36-64 143.36-143.36 143.36s-143.36-64-143.36-143.36 64-143.36 143.36-143.36 143.36 64 143.36 143.36z m-143.36-71.68c-39.424 0-71.68 32.256-71.68 71.68s32.256 71.68 71.68 71.68 71.68-32.256 71.68-71.68-32.256-71.68-71.68-71.68z m143.36 430.08c0 79.36-64 143.36-143.36 143.36s-143.36-64-143.36-143.36 64-143.36 143.36-143.36 143.36 64 143.36 143.36z m-143.36-71.68c-39.424 0-71.68 32.256-71.68 71.68s32.256 71.68 71.68 71.68 71.68-32.256 71.68-71.68-32.256-71.68-71.68-71.68z m716.8-286.72h-501.76c-19.968 0-35.84-15.872-35.84-35.84s15.872-35.84 35.84-35.84h501.76c19.968 0 35.84 15.872 35.84 35.84s-15.872 35.84-35.84 35.84z m-284.672 107.52H420.352c-18.432 0-33.792-15.36-33.792-33.792v-4.096c0-18.432 15.36-33.792 33.792-33.792h219.136c18.432 0 33.792 15.36 33.792 33.792v4.096c0 18.432-15.36 33.792-33.792 33.792z m284.672 250.88h-501.76c-19.968 0-35.84-15.872-35.84-35.84s15.872-35.84 35.84-35.84h501.76c19.968 0 35.84 15.872 35.84 35.84s-15.872 35.84-35.84 35.84z m-284.672 107.52H420.352c-18.432 0-33.792-15.36-33.792-33.792v-4.096c0-18.432 15.36-33.792 33.792-33.792h219.136c18.432 0 33.792 15.36 33.792 33.792v4.096c0 18.432-15.36 33.792-33.792 33.792z" ></path></symbol><symbol id="icon-buzhoutiao" viewBox="0 0 1024 1024"><path d="M0 0h1024v1024H0z" fill="#FFFFFF" fill-opacity="0" ></path><path d="M204 372c66.31 0 121.852 46.1 136.326 108h137.53c12.901-33.907 45.71-58 84.144-58 38.435 0 71.243 24.093 84.145 58h139.71c12.902-33.907 45.71-58 84.145-58 49.706 0 90 40.294 90 90s-40.294 90-90 90c-38.434 0-71.242-24.092-84.144-57.998H646.144C633.242 577.908 600.434 602 562 602c-38.434 0-71.242-24.092-84.144-57.998h-137.53C325.852 605.9 270.309 652 204 652c-77.32 0-140-62.68-140-140s62.68-140 140-140z m0 64c-41.974 0-76 34.026-76 76s34.026 76 76 76 76-34.026 76-76-34.026-76-76-76z m358 50c-14.36 0-26 11.64-26 26s11.64 26 26 26 26-11.64 26-26-11.64-26-26-26z m308 0c-14.36 0-26 11.64-26 26s11.64 26 26 26 26-11.64 26-26-11.64-26-26-26z" fill="#666666" ></path></symbol><symbol id="icon-m-qianming" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M573.44 646.656l-3.072 6.144c-8.192 12.288-14.336 25.088-19.456 38.912-6.656 18.944-3.072 36.352 16.896 43.008 34.816 11.264 72.704 9.216 106.496-4.608 9.216-3.072 11.264-4.096 34.304-12.8 16.384-6.656 33.792-12.8 51.2-17.408 1.024 0 2.048-0.512 3.072-1.024 10.24-2.048 6.656-5.632 16.896 1.024 3.584 3.072 8.704 4.096 13.312 3.072 4.608-1.024 5.632-3.072 8.192-7.68 5.632-8.192 3.584-19.456-4.608-25.088-18.944-12.8-22.528-10.24-41.472-6.144-1.536 0.512-3.072 0.512-4.096 1.024-18.944 5.12-37.376 11.264-55.808 18.432-22.016 8.704-24.064 9.728-32.768 12.288-24.576 10.24-52.224 12.8-78.336 6.144 4.608-11.264 10.24-22.016 16.896-32.256 1.536-2.048 2.56-4.096 3.584-6.144 8.704-13.824 15.36-29.184 18.432-45.056 4.096-19.456-7.68-38.4-27.136-42.496-0.512 0-1.536-0.512-2.048-0.512-27.648-6.656-59.392 3.072-148.992 37.888-81.92 32.256-117.76 41.984-129.024 35.84-4.096-2.56-8.704-3.072-13.312-1.536-9.728 2.56-15.36 12.8-12.8 22.016 1.024 4.608 4.096 8.192 8.192 10.752 23.04 8.704 48.64 7.68 71.168-2.048 29.696-9.216 59.392-19.456 88.064-32.256 77.824-30.72 111.104-40.448 126.976-36.352 3.072 1.024 3.072 0 2.56 3.072-2.56 12.288-7.168 23.552-13.312 33.792zM665.088 235.52c-19.456-17.92-49.664-17.408-68.608 1.024L312.32 519.68c-2.048 2.048-3.584 4.608-4.608 7.68l-22.528 80.896c-2.56 9.728 3.072 19.456 12.8 21.504 3.584 1.024 7.68 0.512 11.264-0.512l71.168-29.696c5.632-2.56 10.752-5.632 15.36-10.24l283.648-269.824 2.56-2.56c18.432-19.456 17.92-50.176-2.048-68.608l-1.024-1.024-13.824-11.776z" ></path></symbol><symbol id="icon-touxiang_avatar" viewBox="0 0 1024 1024"><path d="M925.866667 797.866667c-12.8-25.6-34.133333-46.933333-64-64-29.866667-21.333333-68.266667-34.133333-119.466667-42.666667-4.266667 0-29.866667-4.266667-59.733333-12.8-21.333333-4.266667-34.133333-8.533333-38.4-12.8v-17.066667c4.266667-51.2 29.866667-76.8 55.466666-106.666666 8.533333-8.533333 17.066667-21.333333 25.6-29.866667 29.866667-42.666667 34.133333-89.6 34.133334-98.133333 0-8.533333 0-17.066667-4.266667-21.333334-4.266667-8.533333-8.533333-12.8-12.8-21.333333 0-12.8 4.266667-21.333333 4.266667-29.866667 0-21.333333 4.266667-55.466667-4.266667-89.6 0-8.533333-4.266667-12.8-4.266667-21.333333-8.533333-25.6-17.066667-46.933333-34.133333-68.266667-4.266667-12.8-64-72.533333-234.666667-85.333333H401.066667c-4.266667 0-17.066667 0-25.6 4.266667-21.333333 4.266667-38.4 21.333333-42.666667 42.666666v21.333334c-8.533333 8.533333-55.466667 51.2-55.466667 102.4-4.266667 34.133333-4.266667 85.333333 0 123.733333-8.533333 8.533333-17.066667 21.333333-12.8 42.666667 0 12.8 4.266667 55.466667 34.133334 98.133333 8.533333 8.533333 17.066667 17.066667 25.6 29.866667 25.6 29.866667 51.2 55.466667 55.466666 106.666666v17.066667c-4.266667 4.266667-17.066667 8.533333-38.4 12.8-29.866667 8.533333-59.733333 12.8-64 12.8-46.933333 8.533333-85.333333 21.333333-115.2 42.666667-25.6 17.066667-46.933333 38.4-64 64-25.6 38.4-25.6 76.8-25.6 85.333333v21.333333c0 25.6 21.333333 46.933333 46.933334 46.933334H896c25.6 0 46.933333-21.333333 46.933333-46.933334v-17.066666c8.533333-12.8 8.533333-51.2-17.066666-89.6z m-546.133334-128c0 4.266667 0 4.266667 0 0v4.266666c-4.266667 0-4.266667 0 0-4.266666z m503.466667 213.333333l-742.4 4.266667v-4.266667s0-25.6 12.8-51.2c8.533333-17.066667 25.6-29.866667 42.666667-42.666667 25.6-17.066667 55.466667-25.6 89.6-34.133333 4.266667 0 34.133333-4.266667 68.266666-12.8 51.2-12.8 76.8-29.866667 85.333334-46.933333 0-4.266667 0-4.266667 4.266666-8.533334v-42.666666c-8.533333-72.533333-42.666667-115.2-72.533333-145.066667-8.533333-8.533333-12.8-17.066667-21.333333-21.333333-21.333333-29.866667-21.333333-59.733333-21.333334-64l4.266667-4.266667 8.533333-8.533333c4.266667-17.066667 0-25.6 0-29.866667-4.266667-34.133333-4.266667-81.066667 0-119.466667 0-29.866667 29.866667-55.466667 29.866667-55.466666 8.533333-4.266667 17.066667-12.8 21.333333-21.333334 0-4.266667 4.266667-4.266667 4.266667-8.533333v-25.6H465.066667c140.8 8.533333 192 59.733333 192 59.733333 8.533333 12.8 17.066667 25.6 21.333333 42.666667 4.266667 4.266667 4.266667 8.533333 4.266667 12.8 4.266667 29.866667 4.266667 55.466667 4.266666 76.8 0 12.8 0 21.333333-4.266666 38.4 0 12.8 0 25.6 8.533333 29.866667l4.266667 4.266666 4.266666 4.266667s0 34.133333-21.333333 64c-4.266667 8.533333-12.8 12.8-21.333333 21.333333-29.866667 29.866667-64 72.533333-72.533334 145.066667v42.666667c0 4.266667 0 4.266667 4.266667 8.533333 8.533333 21.333333 34.133333 34.133333 85.333333 46.933333 34.133333 8.533333 64 12.8 68.266667 12.8 38.4 8.533333 68.266667 17.066667 93.866667 34.133334 17.066667 12.8 34.133333 25.6 42.666666 42.666666 8.533333 25.6 8.533333 51.2 4.266667 55.466667z" ></path></symbol><symbol id="icon-m-mianban" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M884.15744 348.01152v49.152h-745.984v-49.152z" ></path><path d="M356.43392 846.99136h-49.152v-450.048h49.152z" ></path></symbol><symbol id="icon-m-xialakuang" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M510.464 639.488l207.872-254.976H302.08z" ></path></symbol><symbol id="icon-m-biaodan" viewBox="0 0 1024 1024"><path d="M122.88 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384H122.88c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H137.216c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M244.224 279.04h142.848v49.152H244.224zM244.224 425.472h142.848v49.152H244.224zM436.736 279.04h342.528v49.152H436.736zM436.736 425.472h342.528v49.152H436.736zM244.224 572.416h142.848v49.152H244.224zM436.736 572.416h342.528v172.544H436.736z" ></path></symbol><symbol id="icon-m-biaoge" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M249.344 347.648h49.152v499.2h-49.152zM584.704 347.648h49.152v499.2h-49.152zM137.728 165.888h746.496v181.76H137.728z" ></path><path d="M137.728 481.792h746.496v49.152H137.728zM137.728 664.576h746.496v49.152H137.728z" ></path></symbol><symbol id="icon-dashboard-o" viewBox="0 0 1024 1024"><path d="M880 622c17.673 0 32 14.327 32 32v226c0 17.673-14.327 32-32 32H582c-17.673 0-32-14.327-32-32V654c0-17.673 14.327-32 32-32h298zM442 476c17.673 0 32 14.327 32 32v372c0 17.673-14.327 32-32 32H144c-17.673 0-32-14.327-32-32V508c0-17.673 14.327-32 32-32h298z m406 210H614v162h234V686zM410 540H176v308h234V540z m470-428c17.673 0 32 14.327 32 32v372c0 17.673-14.327 32-32 32H582c-17.673 0-32-14.327-32-32V144c0-17.673 14.327-32 32-32h298z m-32 64H614v308h234V176z m-406-64c17.673 0 32 14.327 32 32v226c0 17.673-14.327 32-32 32H144c-17.673 0-32-14.327-32-32V144c0-17.673 14.327-32 32-32h298z m-32 64H176v162h234V176z" fill="#000000" fill-opacity=".65" ></path></symbol><symbol id="icon-line-layoutmasonryfensanbuju" viewBox="0 0 1024 1024"><path d="M896 128H128c-25.6 0-42.666667 17.066667-42.666667 42.666667v682.666666c0 25.6 17.066667 42.666667 42.666667 42.666667h768c25.6 0 42.666667-17.066667 42.666667-42.666667V170.666667c0-25.6-17.066667-42.666667-42.666667-42.666667zM170.666667 213.333333h298.666666v341.333334H170.666667V213.333333z m0 597.333334v-170.666667h298.666666v170.666667H170.666667z m682.666666 0h-298.666666v-341.333334h298.666666v341.333334z m0-426.666667h-298.666666V213.333333h298.666666v170.666667z" fill="#09121F" ></path></symbol><symbol id="icon-zidingyibuju" viewBox="0 0 1024 1024"><path d="M0 0v256h1024V0z m960 192H64V64h896zM0 1024h512V320H0z m64-640h384v576H64zM576 576h448v-256H576z m64-192h320v128H640zM576 1024h448V640H576z m64-320h320v256H640z" fill="#575869" ></path></symbol><symbol id="icon-daochu" viewBox="0 0 1024 1024"><path d="M394.6 689.8c-13.2 3.2-27.4-9.5-31.7-23.2-8.4-28.5-12.7-58.6-12.7-88.1 0-159.4 151.5-325.1 314.1-352.1v-5.3c0-1.6 0-3.7 0.5-5.3l0.5-2.1c1.6-11.6 5.8-38.5 32.2-55.4 10.6-6.9 22.2-10 34.3-10 14.8 0 26.9 5.3 34.3 9.5 1.6 0.5 2.6 1.6 4.2 2.6L929.2 286c17.4 13.2 28 34.8 28 57 0 22.7-10.6 44.3-28.5 57.5L770.5 525.7c-11.6 9-25.3 13.7-39.1 13.7-12.1 0-23.8-3.7-34.8-10.6-21.1-13.7-31.7-34.8-31.7-64.4v-1.1C559.3 475 442.2 569 416.3 657.6c-4.8 14.3-13.7 32.2-21.7 32.2z m335.7-466.6V256c0 17.4-13.7 31.7-31.1 32.7-125.6 6.9-257.6 131.4-279.7 254.4C486 458.7 595.2 390 699.7 397.4c17.4 1.1 30.6 15.3 30.6 32.7V465c0 4.7 0.5 6.9 0.5 7.9l157.3-124.6c2.1-1.6 2.6-3.2 2.6-5.3 0-2.1-1.1-4.2-2.6-5.3L731.9 214.3c-1.1 1.6-1.6 5.8-2.1 8.4l0.5 0.5z m0 0" ></path><path d="M715.6 916.3H188.3c-67 0-121.9-54.9-121.9-121.9v-568c0-67 54.9-121.9 121.9-121.9h436.5v69.7H188.3c-28.5 0-52.3 23.2-52.3 52.3V795c0 28.5 23.2 52.3 52.3 52.3h527.3c28.5 0 52.3-23.2 52.3-52.3V593.2H837v201.6c0 66.6-54.4 121.5-121.4 121.5z m0 0" ></path><path d="M183 566.9h112.4V626H183v-59.1z m0 154.1h296.1v59.1H183V721z m0-425.4h237v59.1H183v-59.1z m0 140.9h112.4v59.1H183v-59.1z m0 0" ></path></symbol><symbol id="icon-daoru" viewBox="0 0 1024 1024"><path d="M111.6 148.8c7.9 0 16.9 17.9 21.6 32.2 25.9 88.7 143 182.6 248.6 194.2v-1.1c0-29.6 10.6-50.7 31.7-64.4 11.1-6.9 22.7-10.6 34.8-10.6 13.7 0 27.4 4.8 39.1 13.7L645.8 438c17.9 13.2 28.5 34.8 28.5 57.5 0 22.2-10.6 43.8-28 57L487.4 678.2c-1.6 1.1-2.6 2.1-4.2 2.6-7.4 4.2-19.5 9.5-34.3 9.5-12.1 0-23.7-3.2-34.3-10-26.4-16.9-30.6-43.8-32.2-55.4l-0.5-2.1c-0.5-1.6-0.5-3.7-0.5-5.3v-5.3c-162.6-26.9-314.1-192.6-314.1-352 0-29.6 4.2-59.6 12.7-88.1 4.2-13.8 18.4-26.5 31.6-23.3z m335.2 467.1c0.5 2.6 1.1 6.9 2.1 8.4l156.2-123.5c1.6-1.1 2.6-3.2 2.6-5.3 0-2.1-0.5-3.7-2.6-5.3L447.8 365.7c0 1.1-0.5 3.2-0.5 7.9v34.8c0 17.4-13.2 31.7-30.6 32.7-104.5 7.4-213.8-61.2-280.3-145.7 22.2 123 154.1 247.5 279.7 254.4 17.4 1.1 31.1 15.3 31.1 32.7v32.7l-0.4 0.7z m0.5-0.5" ></path><path d="M309 916.3c-67 0-121.4-54.9-121.4-121.4V593.2h69.1v201.6c0 29 23.8 52.3 52.3 52.3h527.3c29 0 52.3-23.8 52.3-52.3V226.4c0-29-23.8-52.3-52.3-52.3H399.8v-69.7h436.5c67 0 121.9 54.9 121.9 121.9v567.9c0 67-54.9 121.9-121.9 121.9H309v0.2z m0 0" ></path><path d="M841.6 626H729.1v-59.1h112.4V626z m0 154.1H545.5V721h296.1v59.1z m0-425.4h-237v-59.1h237v59.1z m0 140.9H729.1v-59.1h112.4v59.1z m0-59.1" ></path></symbol><symbol id="icon-a-juxing1851" viewBox="0 0 1024 1024"><path d="M0 0h438.857143v1024H0V0z m512 0h512v438.857143H512V0z m0 512h219.428571v219.428571H512V512z m292.571429 0h219.428571v219.428571h-219.428571V512z m-292.571429 292.571429h73.142857v73.142857H512v-73.142857z m146.285714 0h73.142857v73.142857H658.285714v-73.142857z m-146.285714 146.285714h73.142857v73.142857H512v-73.142857z m146.285714 0h73.142857v73.142857H658.285714v-73.142857z m146.285715 0h73.142857v73.142857h-73.142857v-73.142857z m146.285714 0h73.142857v73.142857h-73.142857v-73.142857z m-146.285714-146.285714h73.142857v73.142857h-73.142857v-73.142857z m146.285714 0h73.142857v73.142857h-73.142857v-73.142857z" ></path></symbol><symbol id="icon-sxsz" viewBox="0 0 1024 1024"><path d="M304.5 152.6h415L927 512 719.5 871.4h-415L97 512z" fill="#386BF3" ></path><path d="M512 512m-145.25 0a145.25 145.25 0 1 0 290.5 0 145.25 145.25 0 1 0-290.5 0Z" fill="#3D4265" ></path></symbol><symbol id="icon-mx" viewBox="0 0 1024 1024"><path d="M511.9 325.12v248.55L727.15 449.4l-0.01-248.55z" fill="#C3D2FB" ></path><path d="M296.65 200.85L511.9 325.12v248.56L296.65 449.4z" fill="#3D4265" ></path><path d="M511.9 325.12l215.25-124.27L511.9 76.57 296.65 200.85z" fill="#386BF3" ></path><path d="M296.62 698.02v248.55L511.87 822.3l-0.01-248.56z" fill="#C3D2FB" ></path><path d="M81.37 573.74l215.25 124.28v248.55L81.37 822.3z" fill="#3D4265" ></path><path d="M296.62 698.02l215.25-124.28-215.25-124.27L81.37 573.74z" fill="#386BF3" ></path><path d="M727.03 698.02v248.55L942.28 822.3l-0.01-248.56z" fill="#C3D2FB" ></path><path d="M511.78 573.74l215.25 124.28v248.55L511.78 822.3z" fill="#3D4265" ></path><path d="M727.03 698.02l215.25-124.28-215.25-124.27-215.25 124.27z" fill="#386BF3" ></path></symbol><symbol id="icon-al" viewBox="0 0 1024 1024"><path d="M192 132h440v640H192z" fill="#386BF3" ></path><path d="M632 260h200v512H632z" fill="#C3D2FB" ></path><path d="M398.86 612L512 725.14 625.14 612H912v280H112V612z" fill="#3D4265" ></path></symbol><symbol id="icon-sf" viewBox="0 0 1024 1024"><path d="M511.82 512.5v435L888.54 730l-0.02-435z" fill="#C3D2FB" ></path><path d="M135.1 295l376.72 217.5v435L135.1 730z" fill="#3D4265" ></path><path d="M511.82 512.5L888.54 295 511.82 77.5 135.1 295z" fill="#386BF3" ></path></symbol><symbol id="icon-moxing" viewBox="0 0 1061 1024"><path d="M447.122 467.332L49.24 268.162A33.501 33.501 0 0 0 0.136 300.745v441.02a33.042 33.042 0 0 0 16.062 27.994l396.965 248.275a33.96 33.96 0 0 0 17.438 5.507 33.042 33.042 0 0 0 33.043-33.042V497.162a33.042 33.042 0 0 0-16.522-29.83z m598.889-203.76a33.042 33.042 0 0 0-31.666 0l-463.507 203.76a33.042 33.042 0 0 0-19.733 30.289v493.337a33.042 33.042 0 0 0 49.563 28.453l463.048-265.255a33.042 33.042 0 0 0 16.521-28.453V291.566a33.042 33.042 0 0 0-14.226-27.994z m-54.611-84.9a33.042 33.042 0 0 0-22.487-29.83L550.838 1.53a32.583 32.583 0 0 0-19.733 0L83.659 158.021a33.042 33.042 0 0 0-4.13 61.036l397.882 199.17a33.501 33.501 0 0 0 14.685 3.213 33.96 33.96 0 0 0 13.31 0L969.37 215.845a33.042 33.042 0 0 0 22.029-37.173z" fill="#5E5C5C" ></path></symbol><symbol id="icon-yanzhengyanzhengma" viewBox="0 0 1024 1024"><path d="M943.1 172c-2.4-0.2-245.1-25.3-413.8-147.8-5.1-3.7-11-5.6-17.3-5.6-6.2 0-12.2 1.9-17.3 5.6C326.9 146 83.3 171.8 80.9 172c-15.2 1.4-26.6 14.1-26.6 29.3 0 6.7 0.6 165.8 54.8 344.4 32.1 105.8 76.4 196.4 131.9 269.2 70.3 92.3 158.5 156 262 189.2 2.9 0.9 5.9 1.4 9 1.4s6.1-0.5 8.9-1.4c103.6-33.2 191.7-96.8 262-189.2 55.4-72.7 99.8-163.2 131.9-269.2 54.1-178.6 54.8-337.7 54.8-344.4C969.7 186.1 958.3 173.5 943.1 172zM910.1 227.2l-0.1 1.6c-2.9 58.1-13.4 174.4-51.4 299.9-66.7 220.1-183.1 360.1-346 416.1L512 945l-0.6-0.2C349 888.9 232.7 749.4 165.8 530.1c-39.8-130.5-49.4-254.2-51.8-301.4l-0.1-1.6 1.5-0.2c70.6-10.3 250.5-44.8 395.5-142.4l0.9-0.7 1 0.7C658 182.1 837.9 216.6 908.5 227L910.1 227.2z" ></path><path d="M641.8 351 467 580.3l-89-76.1c-5.3-4.5-12.1-7-19.1-7-8.6 0-16.8 3.7-22.4 10.3-10.5 12.3-9.1 31 3.3 41.5l112.7 96.4c5.2 4.4 12.4 7 19.6 7 0.9 0 1.8 0 2.7-0.1 8-0.8 15.4-5 20.3-11.4l193.7-254c4.8-6.3 6.8-14 5.7-21.8-1-7.8-5.1-14.7-11.3-19.5C670.1 335.6 651.6 338.1 641.8 351z" ></path></symbol><symbol id="icon-verify" viewBox="0 0 1024 1024"><path d="M713.856 93.44c44.672 9.344 79.36 15.488 105.024 18.944a332.8 332.8 0 0 0 28.864 3.008A110.08 110.08 0 0 1 944 223.36v348.672c0 71.232-36.288 168.32-80.704 219.328a737.216 737.216 0 0 1-100.672 106.496C683.264 966.208 599.232 1008 512 1008s-171.328-41.792-250.624-110.144c-26.88-23.168-51.2-47.808-72.832-72.512a409.152 409.152 0 0 1-24.768-30.208c-47.68-52.928-83.776-150.4-83.776-223.104V223.36c0-54.72 42.752-102.528 99.264-108.096 5.76-0.32 17.536-1.408 34.432-3.648a953.6 953.6 0 0 0 95.168-17.92c19.392-4.608 34.944-12.16 65.92-30.4l9.984-5.888C434.048 28.416 466.432 16 512 16c39.296 0 68.288 11.84 127.488 43.968l2.304 1.28c38.784 21.056 55.296 28.672 72.064 32.192z m-19.712 93.952c-29.376-6.144-50.688-16-98.176-41.856l-2.304-1.216C549.312 120.32 529.088 112 512 112c-24.192 0-42.88 7.168-78.656 28.16-4.736 2.88-4.736 2.88-9.728 5.76-38.784 22.912-61.12 33.664-92.48 41.216-37.76 8.96-72.96 15.36-104.768 19.648a556.8 556.8 0 0 1-39.68 4.16c-5.12 0.512-10.688 6.784-10.688 12.416v348.672c0 49.344 27.52 123.84 62.08 162.56a642.176 642.176 0 0 0 85.952 90.56c63.552 54.72 128.192 86.848 187.968 86.848 59.776 0 124.416-32.128 187.968-86.848a642.176 642.176 0 0 0 88.32-93.632c31.808-36.608 59.712-111.36 59.712-159.488V223.36c0-5.44-5.888-12.032-6.656-12.288-20.288-0.448-66.112-6.72-147.2-23.68zM400.128 488.704L487.68 576.256l185.088-185.088a48 48 0 0 1 67.84 67.84L521.6 678.144a48 48 0 0 1-67.84 0l-121.6-121.536a48 48 0 1 1 67.968-67.84z" fill="#768893" ></path></symbol><symbol id="icon-preview" viewBox="0 0 1024 1024"><path d="M854.36155804 32.02835121a114.60838884 114.60838884 0 0 1 114.21544637 105.17775738l0.39294247 9.43063278v170.60277392a49.1178817 49.1178817 0 0 1-97.77732893 6.68003145l-0.45843311-6.68003145V146.63674137a16.37262679 16.37262679 0 0 0-12.63966726-15.9796843l-3.73295954-0.39294246H130.1675186a16.37262679 16.37262679 0 0 0-15.91419368 12.57417659l-0.45843312 3.79845017v732.18388095a16.37262679 16.37262679 0 0 0 12.63966859 15.91419369l3.73295821 0.4584331h275.4530781a49.1178817 49.1178817 0 0 1 6.68003143 97.77732894l-6.68003143 0.4584331H130.1675186a114.60838884 114.60838884 0 0 1-114.21544639-105.24324667l-0.39294246-9.36514216V146.63674137a114.60838884 114.60838884 0 0 1 105.24324669-114.28093698l9.36514216-0.32745318h724.19403944z m-286.32450218 495.1082417a235.76582919 235.76582919 0 0 1 358.88798459 303.35203402l80.61881587 80.55332523a39.29430509 39.29430509 0 0 1-55.53595059 55.66693187l-80.61881589-80.61881587a235.83131983 235.83131983 0 0 1-303.35203398-358.88798459z m277.87622625 55.60144257a157.17721902 157.17721902 0 1 0-222.27478502 222.2747837 157.17721902 157.17721902 0 0 0 222.27478502-222.2747837z m-450.70567639-33.26917864a42.56883017 42.56883017 0 1 1 0 85.13766035H210.39339064a42.56883017 42.56883017 0 1 1 0-85.13766035h184.81421508z m0-158.68350096a42.56883017 42.56883017 0 1 1 0 85.13766036H210.39339064a42.56883017 42.56883017 0 1 1 0-85.13766036h184.81421508z m233.67013285-158.68350095a42.56883017 42.56883017 0 1 1 0 85.13766036h-418.48434793a42.56883017 42.56883017 0 1 1 0-85.13766036h418.48434793z" fill="#7f7f7f" ></path></symbol><symbol id="icon-yunshangchuan-xian" viewBox="0 0 1039 1024"><path d="M711.40656 345.248C667.88656 248.448 594.91056 208 481.83856 208c-118.848 0-219.328 96.512-256.736 267.76l-4.96 22.752-23.2 2.256c-83.744 8.192-120.176 54.176-131.36 144.4C54.30256 736.528 103.18256 816 193.85456 816h190.672a32 32 0 1 1 0 64H193.83856C58.68656 880-13.44144 762.72 2.07856 637.296 15.61456 528 65.80656 458.416 167.75856 440.224 215.27856 254.704 335.99856 144 481.83856 144c143.072 0 241.184 58.72 294.24 189.808 3.328-0.176 6.576-0.272 9.76-0.272 125.184 0 223.68 93.696 239.84 252.768 0.896 8.96 1.36 17.952 1.36 26.96C1027.03856 760.576 907.61456 880 760.30256 880h-120.064a32 32 0 1 1 0-64h120.064c111.968 0 202.72-90.768 202.72-202.736 0-6.848-0.32-13.68-1.024-20.48-12.912-127.088-84.544-195.248-176.16-195.248-23.136 0-55.68 7.232-96.928 22.032a32 32 0 1 1-21.616-60.224c15.584-5.6 30.288-10.304 44.112-14.08zM544.23856 598.512V848a32 32 0 0 1-64 0V598.512l-39.712 46.32a32 32 0 1 1-48.592-41.664l95.632-111.552a32.032 32.032 0 0 1 49.344 0l95.616 111.552a32 32 0 0 1-48.592 41.664l-39.696-46.32z" ></path></symbol><symbol id="icon-yulan" viewBox="0 0 1024 1024"><path d="M897.28 85.333333h-750.933333c-28.16 0-51.2 23.04-51.2 51.2v750.933334c0 28.16 23.04 51.2 51.2 51.2h276.906666c18.773333 0 34.133333-15.36 34.133334-34.133334s-15.36-34.133333-34.133334-34.133333H163.413333V153.6h716.8v275.626667c0 18.773333 15.36 34.133333 34.133334 34.133333s34.133333-15.36 34.133333-34.133333V136.533333c0-28.16-22.613333-51.2-51.2-51.2z" fill="#4C4C4C" ></path><path d="M649.813333 315.733333h-324.266666c-18.773333 0-34.133333-15.36-34.133334-34.133333s15.36-34.133333 34.133334-34.133333h324.266666c18.773333 0 34.133333 15.36 34.133334 34.133333s-14.933333 34.133333-34.133334 34.133333zM564.48 452.266667h-238.933333c-18.773333 0-34.133333-15.36-34.133334-34.133334s15.36-34.133333 34.133334-34.133333h238.933333c18.773333 0 34.133333 15.36 34.133333 34.133333s-14.933333 34.133333-34.133333 34.133334zM479.146667 588.8h-153.6c-18.773333 0-34.133333-15.36-34.133334-34.133333s15.36-34.133333 34.133334-34.133334h153.6c18.773333 0 34.133333 15.36 34.133333 34.133334s-14.933333 34.133333-34.133333 34.133333zM724.48 544c-94.293333 0-170.666667 76.373333-170.666667 170.666667s76.373333 170.666667 170.666667 170.666666 170.666667-76.373333 170.666667-170.666666-76.373333-170.666667-170.666667-170.666667z m0 273.066667c-56.32 0-102.4-46.08-102.4-102.4s46.08-102.4 102.4-102.4 102.4 46.08 102.4 102.4-45.653333 102.4-102.4 102.4z" fill="#4C4C4C" ></path><path d="M938.666667 928.853333c-13.226667 13.226667-34.986667 13.226667-48.213334 0l-72.533333-72.533333c-13.226667-13.226667-13.226667-34.986667 0-48.213333 13.226667-13.226667 34.986667-13.226667 48.213333 0l72.533334 72.533333c13.226667 13.226667 13.226667 34.56 0 48.213333z" fill="#4C4C4C" ></path></symbol><symbol id="icon-sousuo" viewBox="0 0 1024 1024"><path d="M1004.8 915.2l-243.2-243.2c0 0-6.4-6.4-6.4-6.4C800 595.2 832 505.6 832 416 832 185.6 646.4 0 416 0S0 185.6 0 416 185.6 832 416 832c89.6 0 179.2-32 243.2-83.2 0 6.4 6.4 6.4 6.4 6.4l243.2 243.2c25.6 25.6 70.4 25.6 96 6.4C1030.4 979.2 1030.4 940.8 1004.8 915.2zM64 416C64 224 224 64 416 64S768 224 768 416 608 768 416 768 64 608 64 416z" fill="#231815" ></path></symbol><symbol id="icon-ziliucheng" viewBox="0 0 1024 1024"><path d="M212.992 526.336 212.992 526.336 212.992 526.336 215.04 526.336 212.992 526.336Z" ></path><path d="M813.056 768l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912l0-38.912-18.432 0c-53.248 0-96.256-43.008-96.256-96.256L659.456 614.4l-96.256 0 0 192.512c0 20.48-16.384 38.912-38.912 38.912L120.832 845.824c-20.48 0-38.912-16.384-38.912-38.912L81.92 401.408c0-20.48 16.384-38.912 38.912-38.912l192.512 0L313.344 190.464 120.832 190.464C98.304 190.464 81.92 174.08 81.92 151.552L81.92 112.64c0-20.48 16.384-38.912 38.912-38.912l788.48 0c20.48 0 38.912 16.384 38.912 38.912l0 38.912c0 20.48-16.384 38.912-38.912 38.912L331.776 190.464l0 174.08 192.512 0c20.48 0 38.912 16.384 38.912 38.912L563.2 593.92l96.256 0 0-153.6c0-53.248 43.008-96.256 96.256-96.256l18.432 0 0-38.912c0-20.48 16.384-38.912 38.912-38.912l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912l0-38.912-18.432 0c-43.008 0-77.824 34.816-77.824 77.824L677.888 593.92l96.256 0 0-38.912c0-20.48 16.384-38.912 38.912-38.912l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912L774.144 614.4l-96.256 0 0 153.6c0 43.008 34.816 77.824 77.824 77.824l18.432 0 0-38.912C774.144 784.384 792.576 768 813.056 768z" ></path></symbol><symbol id="icon-danyuange" viewBox="0 0 1024 1024"><path d="M467.970999 661.248453h-184.831769a70.655912 70.655912 0 0 0-54.527932 25.599968A82.431897 82.431897 0 0 0 204.803328 744.19235v196.607754A82.687897 82.687897 0 0 0 228.611298 998.400032a71.423911 71.423911 0 0 0 54.527932 25.599968h184.831769a73.727908 73.727908 0 0 0 55.039931-25.599968 81.919898 81.919898 0 0 0 23.551971-58.623927v-195.583755a81.919898 81.919898 0 0 0-23.551971-58.367927 72.959909 72.959909 0 0 0-55.039931-25.599968z m5.887993-84.991893A118.015852 118.015852 0 0 0 512.002944 549.376593 127.99984 127.99984 0 0 0 545.538902 460.800704V126.465122A133.119834 133.119834 0 0 0 537.602912 76.801184a123.391846 123.391846 0 0 0-25.599968-40.447949 118.015852 118.015852 0 0 0-37.119954-25.599968A104.703869 104.703869 0 0 0 428.547048 0.00128H116.995438A105.471868 105.471868 0 0 0 71.683494 9.985268a121.087849 121.087849 0 0 0-37.119953 25.599968A127.99984 127.99984 0 0 0 9.219572 76.801184 133.119834 133.119834 0 0 0 0.003584 126.465122V460.800704a127.99984 127.99984 0 0 0 34.559957 88.31989 121.087849 121.087849 0 0 0 37.119953 27.135966 105.471868 105.471868 0 0 0 45.311944 9.983987h311.55161a106.239867 106.239867 0 0 0 45.311944-9.983987z m527.35934-329.215589a71.67991 71.67991 0 0 0-54.783931-25.599968h-184.575769a72.959909 72.959909 0 0 0-55.295931 25.599968 81.919898 81.919898 0 0 0-23.551971 58.367927v195.583756a83.199896 83.199896 0 0 0 23.551971 59.647925 73.983908 73.983908 0 0 0 55.295931 25.599968H947.2024a72.447909 72.447909 0 0 0 54.783932-25.599968 84.991894 84.991894 0 0 0 22.015972-59.647925v-195.583756a82.943896 82.943896 0 0 0-22.783972-58.367927zM947.2024 661.248453h-185.343768a72.959909 72.959909 0 0 0-55.295931 25.599968 81.919898 81.919898 0 0 0-23.551971 58.367927v196.607755A81.919898 81.919898 0 0 0 706.562701 998.400032a73.983908 73.983908 0 0 0 55.295931 25.599968H947.2024a72.447909 72.447909 0 0 0 54.783932-25.599968 83.455896 83.455896 0 0 0 22.015972-57.599928v-196.607754a83.199896 83.199896 0 0 0-22.783972-58.367927 71.67991 71.67991 0 0 0-54.783931-25.599968z m0 0" ></path></symbol><symbol id="icon-rengongzhineng_filledbeifen" viewBox="0 0 1024 1024"><path d="M913.678222 374.556444c0-175.431111-160.782222-317.653333-359.139555-317.653333a382.577778 382.577778 0 0 0-254.663111 93.767111 270.108444 270.108444 0 0 0-91.335112 118.840889 318.350222 318.350222 0 0 0-20.849777 98.773333c-0.597333 38.840889 18.389333 76.871111 1.664 114.688-11.633778 26.453333-41.870222 48.824889-61.312 69.916445 0 0-54.442667 36.224 49.436444 41.173333 2.929778 0.142222 16.071111 62.222222 19.342222 76.430222a16.753778 16.753778 0 0 0-3.271111 10.752c0 11.904 15.004444 21.617778 33.450667 21.617778h11.278222c-24.362667 3.313778-41.955556 12.8-41.955555 26.026667 0 9.102222 11.562667 21.105778 28.842666 28.302222 0 0-21.333333 66.744889 10.296889 81.962667a36.977778 36.977778 0 0 0 21.333333 1.564444c44.856889 2.446222 125.155556-0.739556 169.784889-0.739555 0-0.810667 23.466667 127.146667 23.466667 127.146666h403.299556c0 0.64-38.769778-289.265778-38.769778-289.265777 70.968889-101.632 95.544889-192.611556 96.881778-268.643556 1.422222-11.491556 2.161778-23.068444 2.176-34.659556h0.042666zM701.155556 320.711111a72.632889 72.632889 0 0 1-65.706667-42.055111l-54.471111 31.544889a108.344889 108.344889 0 0 1-7.509334 107.975111l102.172445 59.192889a36.508444 36.508444 0 1 1-10.894222 25.984 35.555556 35.555556 0 0 1 2.019555-10.026667L561.777778 432.512a109.511111 109.511111 0 1 1 10.168889-138.154667l57.728-33.422222a72.718222 72.718222 0 1 1 71.466666 59.733333v0.042667z" fill="#323233" ></path></symbol><symbol id="icon-fuhao-huizhi" viewBox="0 0 1024 1024"><path d="M254.4 82.624L82.624 254.4a60.704 60.704 0 0 0 0 85.92L254.4 512l128.8-128.8-42.88-42.88-85.92 85.888-42.88-42.88 85.888-85.92-42.88-42.88-85.92 85.888-42.88-42.88 171.776-171.84 171.584 171.616L512 254.4l-171.776-171.84a60.576 60.576 0 0 0-85.76 0z m644.096 644.064l-171.808 171.808-42.88-42.912 85.888-85.888-42.88-42.88-85.92 85.856-42.88-42.88 85.888-85.888-42.912-42.912L512 769.6l171.776 171.776a60.704 60.704 0 0 0 85.92 0l171.776-171.776a60.704 60.704 0 0 0 0-85.92L769.6 512l-42.912 42.88 171.808 171.808zM680.8 211.328l131.968 131.872-43.968 44L636.8 255.2l44-43.872zM240.96 650.976l131.968 131.872-44 44-131.968-131.872 44-44zM680.704 123.424a124.544 124.544 0 0 1 176.288 0.096l43.584 43.52a124.704 124.704 0 0 1 0.096 176.16L355.264 888.416l-268.352 48.384 48.384-268.288L680.704 123.424zM334.4 821.344L857.472 298.656c23.84-23.872 23.552-63.264-0.8-87.52L813.12 167.616c-24.544-24.544-63.552-24.832-87.584-0.8L202.432 689.6l-27.52 159.424 159.52-27.616z" fill="#0A8CF0" ></path></symbol><symbol id="icon-shanchu" viewBox="0 0 1024 1024"><path d="M799.2 874.4c0 34.4-28.001 62.4-62.4 62.4H287.2c-34.4 0-62.4-28-62.4-62.4V212h574.4v662.4zM349.6 100c0-7.2 5.6-12.8 12.8-12.8h300c7.2 0 12.8 5.6 12.8 12.8v37.6H349.6V100z m636.8 37.6H749.6V100c0-48.001-39.2-87.2-87.2-87.2h-300c-48 0-87.2 39.199-87.2 87.2v37.6H37.6C16.8 137.6 0 154.4 0 175.2s16.8 37.6 37.6 37.6h112v661.6c0 76 61.6 137.6 137.6 137.6h449.6c76 0 137.6-61.6 137.6-137.6V212h112c20.8 0 37.6-16.8 37.6-37.6s-16.8-36.8-37.6-36.8zM512 824c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0 20.8 16.8 37.6 37.6 37.6m-175.2 0c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0.8 20.8 17.6 37.6 37.6 37.6m350.4 0c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0 20.8 16.8 37.6 37.6 37.6" fill="#8A8A8A" ></path></symbol><symbol id="icon-jurassic_import-form" viewBox="0 0 1024 1024"><path d="M764.9 64H225.4l1.4 224.2 64-0.4-1-159.8h383.6v224H896v544H289.8l1-159.8-64-0.4-1.4 224.2H960V277.7L764.9 64z m-27.6 64.7L882.8 288H737.3V128.7z" fill="#707070" ></path><path d="M356.5 224h255.9v64H356.5z" fill="#707070" ></path><path d="M576.4 416h255.9v64H576.4zM512.5 576h319.8v64H512.5zM384.5 736h447.8v64H384.5z" fill="#707070" ></path><path d="M336.9 349H198.6l98.9 98.9H64v128.2h233.5L198.6 675h138.3l162.9-163z" fill="#707070" ></path></symbol><symbol id="icon-kaoheweidufenxi" viewBox="0 0 1024 1024"><path d="M815.542857 212.943238l118.296381 68.266667v168.033524l-201.532952 116.345904-0.487619-163.352381-125.366857-72.46019 209.091047-116.833524z m-89.673143-51.736381L519.314286 279.454476 305.785905 156.233143 511.561143 37.449143l214.308571 123.757714zM294.619429 887.466667L89.234286 768.877714V546.133333l205.677714 118.00381-0.292571 223.329524z m85.333333 49.249523l-0.097524-223.914666 133.607619 76.653714 132.632381-76.604952-1.024 222.744381-133.558857 77.043809-131.510857-75.922286zM434.468571 328.021333L295.253333 407.747048l-0.195047 156.672L89.234286 444.318476V281.258667l132.047238-76.263619 213.089524 123.026285z m86.113524 49.737143l126.780953 73.191619-0.780191 164.08381-133.12 76.897524-133.656381-78.019048-0.097524-157.403429 140.921905-78.750476z m413.257143 169.008762v222.110476l-200.655238 115.809524-0.633905-221.769143 201.289143-116.150857z" fill="#82529d" ></path></symbol><symbol id="icon-wenjianjia" viewBox="0 0 1024 1024"><path d="M855.04 385.024q19.456 2.048 38.912 10.24t33.792 23.04 21.504 37.376 2.048 54.272q-2.048 8.192-8.192 40.448t-14.336 74.24-18.432 86.528-19.456 76.288q-5.12 18.432-14.848 37.888t-25.088 35.328-36.864 26.112-51.2 10.24l-567.296 0q-21.504 0-44.544-9.216t-42.496-26.112-31.744-40.96-12.288-53.76l0-439.296q0-62.464 33.792-97.792t95.232-35.328l503.808 0q22.528 0 46.592 8.704t43.52 24.064 31.744 35.84 12.288 44.032l0 11.264-53.248 0q-40.96 0-95.744-0.512t-116.736-0.512-115.712-0.512-92.672-0.512l-47.104 0q-26.624 0-41.472 16.896t-23.04 44.544q-8.192 29.696-18.432 62.976t-18.432 61.952q-10.24 33.792-20.48 65.536-2.048 8.192-2.048 13.312 0 17.408 11.776 29.184t29.184 11.776q31.744 0 43.008-39.936l54.272-198.656q133.12 1.024 243.712 1.024l286.72 0z" ></path></symbol><symbol id="icon-biaoqian" viewBox="0 0 1024 1024"><path d="M934.912 516.096q23.552 26.624 19.456 49.664t-26.624 46.592l-324.608 327.68q-8.192 7.168-19.456 11.264t-23.04 4.608-23.04-2.56-18.432-10.24q-121.856-122.88-218.112-220.16l-80.896-80.896q-39.936-39.936-71.168-71.68t-51.2-51.2-20.992-21.504q-3.072-4.096-10.752-14.848t-6.656-25.088l0-19.456 0-40.96q0-23.552 0.512-52.736t0.512-58.88q1.024-70.656 2.048-156.672 2.048-13.312 6.144-24.064t15.36-22.016q10.24-11.264 22.016-16.384t22.016-5.12l329.728 0q2.048 0 9.216 0.512t10.24 1.536q6.144 2.048 11.264 5.12t10.24 8.192zM217.088 317.44q40.96 0 69.12-28.672t28.16-69.632-28.16-69.632-69.12-28.672q-20.48 0-37.888 7.68t-30.72 20.992-20.992 31.232-7.68 38.4 7.68 38.4 20.992 31.232 30.72 20.992 37.888 7.68z" fill="#ea9518" ></path></symbol><symbol id="icon-wenben" viewBox="0 0 1024 1024"><path d="M823.296 60.416q65.536 0 99.328 38.4t33.792 93.696l0 543.744q0 25.6-21.504 46.08l-171.008 163.84q-13.312 11.264-22.528 14.336t-23.552 3.072l-459.776 0q-23.552 0-47.104-9.728t-41.984-27.648-30.208-43.008-11.776-55.808l0-634.88q0-60.416 33.28-96.256t94.72-35.84l568.32 0zM608.256 702.464q13.312 0 22.528-9.216t9.216-22.528q0-14.336-9.216-23.04t-22.528-8.704l-320.512 0q-13.312 0-22.528 8.704t-9.216 23.04q0 13.312 9.216 22.528t22.528 9.216l320.512 0zM736.256 509.952q13.312 0 22.528-9.216t9.216-22.528-9.216-22.528-22.528-9.216l-448.512 0q-13.312 0-22.528 9.216t-9.216 22.528 9.216 22.528 22.528 9.216l448.512 0zM799.744 318.464q13.312 0 22.528-9.216t9.216-23.552q0-13.312-9.216-22.528t-22.528-9.216l-512 0q-13.312 0-22.528 9.216t-9.216 22.528q0 14.336 9.216 23.552t22.528 9.216l512 0z" fill="#db639b" ></path></symbol><symbol id="icon-yingyong" viewBox="0 0 1026 1024"><path d="M371.732817 94.172314q25.773475 0 44.112294 17.843175t18.338819 43.616651l0 247.821878q0 25.773475-18.338819 44.112294t-44.112294 18.338819l-247.821878 0q-25.773475 0-43.616651-18.338819t-17.843175-44.112294l0-247.821878q0-25.773475 17.843175-43.616651t43.616651-17.843175l247.821878 0zM371.732817 589.81607q25.773475 0 44.112294 17.843175t18.338819 43.616651l0 248.813166q0 25.773475-18.338819 43.616651t-44.112294 17.843175l-247.821878 0q-25.773475 0-43.616651-17.843175t-17.843175-43.616651l0-248.813166q0-25.773475 17.843175-43.616651t43.616651-17.843175l247.821878 0zM868.367861 589.81607q25.773475 0 43.616651 17.843175t17.843175 43.616651l0 248.813166q0 25.773475-17.843175 43.616651t-43.616651 17.843175l-247.821878 0q-25.773475 0-44.112294-17.843175t-18.338819-43.616651l0-248.813166q0-25.773475 18.338819-43.616651t44.112294-17.843175l247.821878 0zM1006.156825 203.21394q19.82575 19.82575 19.82575 46.590513t-19.82575 45.599226l-184.379477 184.379477q-19.82575 19.82575-46.094869 19.82575t-46.094869-19.82575l-184.379477-184.379477q-18.834463-18.834463-18.834463-45.599226t18.834463-46.590513l184.379477-184.379477q19.82575-18.834463 46.094869-18.834463t46.094869 18.834463z" fill="#0061b2" ></path></symbol><symbol id="icon-wenjianjia-copy" viewBox="0 0 1024 1024"><path d="M855.04 385.024q19.456 2.048 38.912 10.24t33.792 23.04 21.504 37.376 2.048 54.272q-2.048 8.192-8.192 40.448t-14.336 74.24-18.432 86.528-19.456 76.288q-5.12 18.432-14.848 37.888t-25.088 35.328-36.864 26.112-51.2 10.24l-567.296 0q-21.504 0-44.544-9.216t-42.496-26.112-31.744-40.96-12.288-53.76l0-439.296q0-62.464 33.792-97.792t95.232-35.328l503.808 0q22.528 0 46.592 8.704t43.52 24.064 31.744 35.84 12.288 44.032l0 11.264-53.248 0q-40.96 0-95.744-0.512t-116.736-0.512-115.712-0.512-92.672-0.512l-47.104 0q-26.624 0-41.472 16.896t-23.04 44.544q-8.192 29.696-18.432 62.976t-18.432 61.952q-10.24 33.792-20.48 65.536-2.048 8.192-2.048 13.312 0 17.408 11.776 29.184t29.184 11.776q31.744 0 43.008-39.936l54.272-198.656q133.12 1.024 243.712 1.024l286.72 0z" ></path></symbol></svg>',(a=>{var l=(r=(r=document.getElementsByTagName("script"))[r.length-1]).getAttribute("data-injectcss"),r=r.getAttribute("data-disable-injectsvg");if(!r){var n,t,s,v,f,d=function(c,D){D.parentNode.insertBefore(c,D)};if(l&&!a.__iconfont__svg__cssinject__){a.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(c){console&&console.log(c)}}n=function(){var c,D=document.createElement("div");D.innerHTML=a._iconfont_svg_string_4827314,(D=D.getElementsByTagName("svg")[0])&&(D.setAttribute("aria-hidden","true"),D.style.position="absolute",D.style.width=0,D.style.height=0,D.style.overflow="hidden",D=D,(c=document.body).firstChild?d(D,c.firstChild):c.appendChild(D))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(n,0):(t=function(){document.removeEventListener("DOMContentLoaded",t,!1),n()},document.addEventListener("DOMContentLoaded",t,!1)):document.attachEvent&&(s=n,v=a.document,f=!1,g(),v.onreadystatechange=function(){v.readyState=="complete"&&(v.onreadystatechange=null,y())})}function y(){f||(f=!0,s())}function g(){try{v.documentElement.doScroll("left")}catch{return void setTimeout(g,50)}y()}})(window);const wf=["onClick"],_f=e.defineComponent({__name:"index",props:{items:{default:()=>[]},disabled:{type:Boolean,default:!1},textSize:{default:void 0},textColor:{default:void 0},backGround:{default:void 0},backGroundImage:{default:void 0}},emits:["update:backGroundImage"],setup(a,{emit:l}){const r=a,n=l,t=e.ref(null),s=e.ref(null),v=e.computed(()=>{const w=Number(r==null?void 0:r.textSize),x=ue.rgbaToColor(r==null?void 0:r.textColor),b={},_={};return!Number.isNaN(w)&&w&&(b.fontSize=`${w}px`,_.fontSize=`${w}px`),x&&(b.color=x,_.color=x),{label:b,value:_}}),f=e.ref(""),d=e.ref(""),y=e.ref(!1),g=async w=>{if(w){d.value&&(URL.revokeObjectURL(d.value),d.value="");try{const x=await A.platformDownloadFile({url:w}),b=new Blob([x==null?void 0:x.data],{type:(x==null?void 0:x.headers["content-type"])||"image/*"});d.value=URL.createObjectURL(b)}catch{d.value=""}}};e.watch(()=>r==null?void 0:r.backGroundImage,w=>{w&&(f.value=w)},{immediate:!0}),e.watch(f,w=>{g(w)},{immediate:!0});const c=()=>{var w;(w=s.value)==null||w.click()},D=async w=>{var _,$,F;const x=w.target,b=(_=x==null?void 0:x.files)==null?void 0:_[0];if(!b){x.value="";return}y.value=!0;try{const Y=new FormData;Y.append("file",b);const oe=await A.platformUploadFile(Y),ye=(F=($=oe==null?void 0:oe.data)==null?void 0:$.result)==null?void 0:F.url;ye?(f.value=ye,n("update:backGroundImage",ye),g(ye),Ha.ElMessage.success("背景图片上传成功")):Ha.ElMessage.error("背景图片上传失败")}catch{Ha.ElMessage.error("背景图片上传失败")}finally{y.value=!1,x.value=""}},I=e.computed(()=>d.value?{backgroundImage:`url(${d.value})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{}),k=w=>ll.getComponent(w),W=w=>{if(!w)return;const x=w.querySelector("input, textarea, .el-input__inner");x&&typeof x.focus=="function"&&x.focus()},M=(w,x,b)=>{r.disabled||w.field&&(t.value=x,e.nextTick(()=>{W(b.currentTarget)}))},R=()=>{t.value=null},j=w=>{var b;const x=((b=w==null?void 0:w.field)==null?void 0:b.value)??(w==null?void 0:w.value);return x==null||x===""?"-":x},E=w=>{const x=w!=null&&w.width&&w.width>0?w.width:1,_=`calc((100% - ${(x-1)*16}px) / ${x})`;return{flex:`0 0 ${_}`,maxWidth:_,minWidth:"140px",boxSizing:"border-box"}};return(w,x)=>(e.openBlock(),e.createElementBlock("div",{class:"statistics-cards-container",style:e.normalizeStyle(I.value),onClick:x[2]||(x[2]=b=>(r==null?void 0:r.backGround)&&c())},[r!=null&&r.backGround?(e.openBlock(),e.createElementBlock("div",{key:0,class:"form-backGround-upload",onClick:x[0]||(x[0]=e.withModifiers(b=>c(),["stop"]))},[e.createElementVNode("input",{ref_key:"bgUploadRef",ref:s,type:"file",accept:"image/*",style:{display:"none"},onChange:D},null,544),x[3]||(x[3]=e.createElementVNode("img",{src:ll._imports_0,class:"bg-upload-icon",alt:"上传背景"},null,-1))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.items,(b,_)=>{var $,F,Y,oe,ye,Ie,V,pe;return e.openBlock(),e.createElementBlock("div",{class:"statistics-card",key:_,style:e.normalizeStyle(E(b)),onClick:x[1]||(x[1]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",{class:"statistics-label",style:e.normalizeStyle(v.value.label)},e.toDisplayString(b==null?void 0:b.label),5),e.createElementVNode("div",{class:"statistics-value",style:e.normalizeStyle(v.value.value),onClick:Q=>{var ce;return(ce=b.field)!=null&&ce.isNoClick?null:M(b,_,Q)}},[t.value===_&&b.field?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k((($=b.field)==null?void 0:$.type)??"Input")),{key:0,modelValue:b.field.value,"onUpdate:modelValue":Q=>b.field.value=Q,isEdit:!0,disabled:(F=b.field)==null?void 0:F.disabled,content:((Y=b.field)==null?void 0:Y.contents)??[],optionUrl:b.field,originalValue:(oe=b.field)==null?void 0:oe.value,config:(ye=b.field)==null?void 0:ye.config,configModel:((Ie=b.field)==null?void 0:Ie.prop)??((V=b.field)==null?void 0:V.name),selectedTagList:((pe=b.field)==null?void 0:pe.selectValue)??[],onBlur:R,onBlurChange:R},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(j(b)),1)],64))],12,wf)],4)}),128))],4))}}),Sf=Zl._export_sfc(_f,[["__scopeId","data-v-d73001ab"]]),cc=A.defineStore("formToTableComp",{state:()=>({selectArray:[],selectString:""}),actions:{setSelectArray(a){this.selectArray=a},setSelectString(a){this.selectString=a}}}),Ef={class:"calculator-content"},Cf={class:"calculator-child"},Df={class:"calculator-child"},Bf=e.defineComponent({__name:"calculator",setup(a){const l=e.ref(),r=e.ref();return e.onMounted(()=>{l.value=[{type:"Upload",label:"输入",name:"input"}],r.value=[{type:"Upload",label:"输出",name:"output"}]}),(n,t)=>(e.openBlock(),e.createElementBlock("div",Ef,[e.createElementVNode("div",Cf,[e.createVNode(ll.ssForm,{rowContents:l.value,isRowFlex:!0},null,8,["rowContents"])]),e.createElementVNode("div",Df,[e.createVNode(ll.ssForm,{rowContents:r.value,isEdit:!1,isRowFlex:!0},null,8,["rowContents"])])]))}}),Tf=Zl._export_sfc(Bf,[["__scopeId","data-v-73db0fe7"]]),mt=(a,l)=>{let r=a,n=l;return Array.isArray(r)&&(r=r==null?void 0:r.map((t,s)=>{if(Array.isArray(t)){let v={};return t=t==null?void 0:t.forEach((f,d)=>{var y;(y=n==null?void 0:n[d])!=null&&y.prop?v[n[d].prop]=f:Array.isArray(f)&&(v.children=mt(f,n))}),Object.assign(v,{id:s})}else return t})),r},uc=(a,l,r)=>{let n=a,t=l;return n=n==null?void 0:n.map((s,v)=>{var f,d;return!Array.isArray(s)||!((f=t==null?void 0:t[v])!=null&&f.label)&&!r||(s.unshift(((d=t==null?void 0:t[v])==null?void 0:d.label)??""),s.some(y=>Array.isArray(y))&&(s=s==null?void 0:s.map(y=>{var g;return Array.isArray(y)&&(y=uc(y,(g=t==null?void 0:t[v])==null?void 0:g.children,r)),y}))),s}),n},Nf=(a,l,r)=>{if(l==="")return a==null?void 0:a.filter(n=>(n==null?void 0:n.id)!==r);{const n=l.split("-");return Af(a,n,r)}},Af=(a,l,r)=>{let n=a,t=l;return(t==null?void 0:t.length)===0?n=n==null?void 0:n.filter(s=>s.id!==r):n=n==null?void 0:n.map(s=>(s.id.toString()===(t==null?void 0:t[0])&&(t==null||t.shift(),s=dc(s,t,r)),s)),n},dc=(a,l,r)=>{var s,v;let n=a,t=l;return(t==null?void 0:t.length)===0?n.children=(s=n.children)==null?void 0:s.filter(f=>f.id!==r):n.children=(v=n.children)==null?void 0:v.map(f=>(f.id.toString()===(t==null?void 0:t[0])&&(t==null||t.shift(),f=dc(f,t,r)),f)),n},zf=(a,l,r)=>{if(l==="")return r;{const n=l.split("-");return Mf(a,n,r)}},Mf=(a,l,r)=>{let n=a,t=l;return(t==null?void 0:t.length)===0?n=r:n=n==null?void 0:n.map(s=>(s.id.toString()===(t==null?void 0:t[0])&&(t==null||t.shift(),s=pc(s,t,r)),s)),n},pc=(a,l,r)=>{var s;let n=a,t=l;return(t==null?void 0:t.length)===0?n.children=r:n.children=(s=n.children)==null?void 0:s.map(v=>(v.id.toString()===(t==null?void 0:t[0])&&(t==null||t.shift(),v=pc(v,t,r)),v)),n};class If{constructor(l={}){Wr(this,"url");Wr(this,"heartbeatInterval");Wr(this,"socket",null);Wr(this,"isConnected",!1);Wr(this,"heartTimer",null);Wr(this,"canvas",null);Wr(this,"ctx",null);Wr(this,"mainCamCutMode",0);Wr(this,"pMainShowStartX",0);Wr(this,"pMainShowStartY",0);Wr(this,"onLog");Wr(this,"onDevCount");Wr(this,"onResolution");Wr(this,"onCameraStatus");Wr(this,"onPhoto");this.url=l.url??"ws://127.0.0.1:22225",this.heartbeatInterval=l.heartbeatInterval??3e3}init(l,r,n){var v;(v=this.canvas)!=null&&v.parentNode&&this.canvas.parentNode.removeChild(this.canvas);const t=document.createElement("canvas");t.style.border="solid 1px #A0A0A0",t.id="MainCamCanvas",t.width=r,t.height=n;const s=t.getContext("2d");if(!s)throw new Error("无法获取 CanvasRenderingContext2D");l.appendChild(t),this.canvas=t,this.ctx=s}async connect(){this.socket&&(this.socket.readyState===WebSocket.OPEN||this.socket.readyState===WebSocket.CONNECTING)||await new Promise((l,r)=>{const n=new WebSocket(this.url);n.binaryType="arraybuffer",n.onopen=()=>{this.socket=n,this.isConnected=!0,this.startHeartbeat(),this.log("socket.onopen"),l()},n.onerror=t=>{this.isConnected=!1,this.log("socket.onerror"),r(t)},n.onclose=()=>{this.isConnected=!1,this.stopHeartbeat(),this.log("socket.onclose")},n.onmessage=t=>{this.handleMessage(t)}})}destroy(){var l;this.stopHeartbeat();try{this.closeCamera()}catch{}if(this.socket){try{this.socket.onmessage=null}catch{}try{this.socket.onopen=null}catch{}try{this.socket.onerror=null}catch{}try{this.socket.onclose=null}catch{}try{this.socket.close()}catch{}this.socket=null}this.isConnected=!1,(l=this.canvas)!=null&&l.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.canvas=null,this.ctx=null}getDevCount(){this.sendBytes(new Uint8Array([119,136,80]))}getResolution(l=0){this.sendBytes(new Uint8Array([119,136,81,l]))}chooseResolution(l){if(!Array.isArray(l)||l.length===0)return null;const r=l.find(t=>t.width===2592&&t.height===1944);return r||[...l].sort((t,s)=>s.width*s.height-t.width*t.height)[0]||null}openCamera(l=0,r=1280,n=720){if(!this.canvas)throw new Error("请先 init() 传入容器并创建 canvas");const t=new Uint8Array(12);t[0]=119,t[1]=136,t[2]=1,t[3]=l,t[4]=this.canvas.width>>8&255,t[5]=this.canvas.width&255,t[6]=this.canvas.height>>8&255,t[7]=this.canvas.height&255,t[8]=r>>8&255,t[9]=r&255,t[10]=n>>8&255,t[11]=n&255,this.sendBytes(t)}closeCamera(){this.sendBytes(new Uint8Array([119,136,2,0]))}photo(){const t=new Uint8Array(12);t[0]=119,t[1]=136,t[2]=16,t[3]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t[9]=0,t[10]=0,t[11]=0,this.sendBytes(t)}bestSize(){this.sendBytes(new Uint8Array([119,136,5,0]))}rotateLeft(){this.sendBytes(new Uint8Array([119,136,7,0]))}rotateRight(){this.sendBytes(new Uint8Array([119,136,8,0]))}focus(){this.sendBytes(new Uint8Array([119,136,48,0]))}log(l){var r;(r=this.onLog)==null||r.call(this,l)}sendBytes(l){if(!this.socket||this.socket.readyState!==WebSocket.OPEN||!this.isConnected)throw new Error("socket 未连接");this.socket.send(l.buffer)}startHeartbeat(){this.stopHeartbeat(),this.heartTimer=window.setInterval(()=>{this.log("heartCheck...........")},this.heartbeatInterval)}stopHeartbeat(){this.heartTimer&&(clearInterval(this.heartTimer),this.heartTimer=null)}handleMessage(l){var t,s,v,f,d,y;const r=new Uint8Array(l.data);if(r.length<=0)return;if(r[0]===17&&r[1]===17&&r[2]===17){this.log("heart socket!!!!");return}if(r[0]!==85||r[1]!==102)return;const n=r[2];if(n===80){const g=r[3],c=r.length-4,D=new Uint8Array(c);for(let W=0;W<c;W++)D[W]=r[4+W];const k=decodeURIComponent(this.byteToString(D)).split("|");(t=this.onDevCount)==null||t.call(this,g,k);return}if(n===81){const g=r[3]||0,c=[];for(let D=0;D<g;D++){const I=(r[4+D*4+0]||0)*256+(r[4+D*4+1]||0),k=(r[4+D*4+2]||0)*256+(r[4+D*4+3]||0);c.push({width:I,height:k,text:`${I}*${k}`})}(s=this.onResolution)==null||s.call(this,g,c);return}if(n===1){r[3]===1&&((v=this.onCameraStatus)==null||v.call(this,"opened")),r[3]===3&&((f=this.onCameraStatus)==null||f.call(this,"closed"));return}if(n===16){if(r[3]===1){const c=r[4]*256+r[5],D=r[6]*65536+r[7]*256+r[8];let I="";if(c>0){const M=new Uint8Array(c);for(let R=0;R<c;R++)M[R]=r[9+R];I=decodeURIComponent(this.byteToString(M))}const k=new Uint8Array(D);for(let M=0;M<D;M++)k[M]=r[9+c+M];const W=this.uint8ArrayToString(k);(d=this.onPhoto)==null||d.call(this,{flag:0,imgPath:I,base64:W})}r[3]===2&&((y=this.onPhoto)==null||y.call(this,{flag:2,imgPath:"",base64:""}));return}if(n===204){if(!this.canvas||!this.ctx)return;const g=r[3]*256+r[4],c=r[5]*256+r[6];this.pMainShowStartX=r[7]*256+r[8],this.pMainShowStartY=r[9]*256+r[10],this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height);const D=this.ctx.createImageData(g,c);let I=11;for(let k=0;k<D.data.length;k+=4)D.data[k+0]=r[I],D.data[k+1]=r[I+1],D.data[k+2]=r[I+2],D.data[k+3]=255,I+=3;this.ctx.putImageData(D,this.pMainShowStartX,this.pMainShowStartY),this.mainCamCutMode;return}}uint8ArrayToString(l){let r="";for(let n=0;n<l.length;n++)r+=String.fromCharCode(l[n]);return r}byteToString(l){let r="";for(let n=0;n<l.length;n++)r+=String.fromCharCode(l[n]);return r}}const Of={style:{display:"flex",gap:"16px",height:"100%"}},Lf={key:0,style:{color:"var(--el-text-color-secondary)"}},Rf={style:{width:"420px",display:"flex","flex-direction":"column",gap:"16px"}},$f={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px"}},Vf={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"}},Ff={key:0,style:{height:"100%",display:"flex","align-items":"center","justify-content":"center",color:"var(--el-text-color-secondary)"}},Pf={key:1,style:{display:"grid","grid-template-columns":"repeat(2, minmax(0, 1fr))",gap:"8px"}},jf=["src","onClick"],Hf=["onClick"],Uf={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px",flex:"1","min-height":"0",display:"flex","flex-direction":"column"}},qf={class:"dialog-footer"},Wf=e.defineComponent({__name:"index",props:{visible:{type:Boolean,default:!1}},emits:["confirm","cancel"],setup(a,{emit:l}){const r=a,n=l,t=e.ref(null),s=e.ref(!1),v=e.ref([]),f=e.ref(""),d=e.ref(!1),y=e.ref([]),g=new If({url:"ws://127.0.0.1:22225"});function c(F,Y){var Q;const oe=F.split(","),ye=((Q=oe[0].match(/:(.*?);/))==null?void 0:Q[1])??"image/jpeg",Ie=atob(oe[1]);let V=Ie.length;const pe=new Uint8Array(V);for(;V--;)pe[V]=Ie.charCodeAt(V);return new File([pe],Y,{type:ye})}function D(){g.onLog=F=>{console.log("[GPY]",F)},g.onDevCount=(F,Y)=>{if(f.value+=`设备数量=${F},设备=${Y.join(",")}
4
+ `,F>0){f.value+=`检测到设备,正在获取分辨率...
5
+ `;try{g.getResolution(0)}catch(oe){f.value+=`获取分辨率失败:${(oe==null?void 0:oe.message)??oe}
6
+ `}}else f.value+=`未检测到高拍仪设备!
7
+ `},g.onResolution=(F,Y)=>{if(F<=0||!Array.isArray(Y)||Y.length===0){f.value+=`未获取到可用分辨率,回退使用 1280*720 打开...
8
+ `;try{g.openCamera(0,1280,720)}catch(ye){f.value+=`打开摄像头失败:${(ye==null?void 0:ye.message)??ye}
9
+ `}return}const oe=g.chooseResolution(Y);if(!oe){f.value+=`分辨率选择失败,回退使用 1280*720 打开...
10
+ `;try{g.openCamera(0,1280,720)}catch(ye){f.value+=`打开摄像头失败:${(ye==null?void 0:ye.message)??ye}
11
+ `}return}f.value+=`获取分辨率 ${oe.text}成功,打开摄像头...
12
+ `;try{g.closeCamera(),setTimeout(()=>{try{g.openCamera(0,oe.width,oe.height)}catch(ye){f.value+=`打开摄像头失败:${(ye==null?void 0:ye.message)??ye}
13
+ `}},100)}catch{try{g.openCamera(0,oe.width,oe.height)}catch(ye){f.value+=`打开摄像头失败:${(ye==null?void 0:ye.message)??ye}
14
+ `}}},g.onCameraStatus=F=>{F==="opened"?(s.value=!0,f.value+=`摄像头已打开
15
+ `):(s.value=!1,f.value+=`摄像头已关闭
16
+ `)},g.onPhoto=F=>{if(F.flag===0&&F.base64){const Y=`data:image/jpeg;base64,${F.base64}`,oe=c(Y,`gpy-capture-${Date.now()}.jpg`);v.value.push({uid:`${Date.now()}_${Math.random().toString(16).slice(2)}`,url:Y,file:oe}),f.value+=`拍照完成,已接收图片(当前 ${v.value.length} 张)
17
+ `}else f.value+=`拍照失败 flag=${F.flag}
18
+ `}}const I=async()=>{if(await e.nextTick(),!t.value)return;k(),D();const F=t.value.getBoundingClientRect();g.init(t.value,Math.floor(F.width),Math.floor(F.height)),f.value+=`正在连接设备服务...
19
+ `,await g.connect(),f.value+=`正在获取设备数量...
20
+ `,g.getDevCount()},k=()=>{try{g.destroy()}catch(F){console.error(F)}s.value=!1,v.value=[],f.value="",d.value=!1,y.value=[]};e.watch(()=>r.visible,F=>{F?I():k()});const W=()=>{try{g.bestSize()}catch(F){console.error(F)}},M=()=>{try{g.rotateLeft()}catch(F){console.error(F)}},R=()=>{try{g.rotateRight()}catch(F){console.error(F)}},j=()=>{try{g.focus()}catch(F){console.error(F)}},E=()=>{f.value+=`正在拍照...
21
+ `;try{g.photo()}catch(F){f.value+=`拍照调用失败:${(F==null?void 0:F.message)??F}
22
+ `}},w=()=>{v.value.length>0?n("confirm",v.value.map(F=>F.file)):n("confirm",[])},x=F=>{F<0||F>=v.value.length||(v.value.splice(F,1),f.value+=`已删除一张图片(剩余 ${v.value.length} 张)
23
+ `)},b=F=>{if(!F)return;const Y=`gpy-preview-${Date.now()}.jpg`;y.value=[{name:Y,blobUrl:F}],d.value=!0},_=()=>{d.value=!1},$=()=>{k(),n("cancel")};return(F,Y)=>{const oe=e.resolveComponent("el-input"),ye=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(wr.ssDialog,{title:"扫描录入",visible:r.visible,onBeforeDestroy:$,width:"1200px",style:{height:"80%"}},{default:e.withCtx(()=>[e.createElementVNode("div",Of,[e.createElementVNode("div",{ref_key:"cameraBox",ref:t,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)"}},[s.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Lf,"初始化摄像头..."))],512),e.createElementVNode("div",Rf,[e.createElementVNode("div",$f,[Y[0]||(Y[0]=e.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"拍照图片",-1)),e.createElementVNode("div",Vf,[v.value.length===0?(e.openBlock(),e.createElementBlock("div",Ff,"暂无图片")):(e.openBlock(),e.createElementBlock("div",Pf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(Ie,V)=>(e.openBlock(),e.createElementBlock("div",{key:Ie.uid,style:{position:"relative",border:"1px solid var(--el-border-color)","border-radius":"4px",overflow:"hidden",background:"#fafafa"}},[e.createElementVNode("img",{src:Ie.url,onClick:pe=>b(Ie.url),style:{width:"100%",height:"94px","object-fit":"contain",display:"block",background:"#fafafa",cursor:"zoom-in"},alt:"captured image",title:"点击放大"},null,8,jf),e.createElementVNode("div",{onClick:pe=>x(V),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,Hf)]))),128))]))],512)]),e.createElementVNode("div",Uf,[Y[1]||(Y[1]=e.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"操作记录",-1)),e.createVNode(oe,{type:"textarea",value:f.value,readonly:"",rows:10,placeholder:"设备操作记录...",style:{flex:"1"}},null,8,["value"])])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",qf,[e.createVNode(ye,{onClick:W,disabled:!s.value,id:"themeBorderButton"},{default:e.withCtx(()=>Y[2]||(Y[2]=[e.createTextVNode("适屏")])),_:1,__:[2]},8,["disabled"]),e.createVNode(ye,{onClick:M,disabled:!s.value,id:"themeBorderButton"},{default:e.withCtx(()=>Y[3]||(Y[3]=[e.createTextVNode("左旋")])),_:1,__:[3]},8,["disabled"]),e.createVNode(ye,{onClick:R,disabled:!s.value,id:"themeBorderButton"},{default:e.withCtx(()=>Y[4]||(Y[4]=[e.createTextVNode("右旋")])),_:1,__:[4]},8,["disabled"]),e.createVNode(ye,{onClick:j,disabled:!s.value,id:"themeBorderButton"},{default:e.withCtx(()=>Y[5]||(Y[5]=[e.createTextVNode("对焦")])),_:1,__:[5]},8,["disabled"]),e.createVNode(ye,{onClick:E,disabled:!s.value,id:"themeButton"},{default:e.withCtx(()=>Y[6]||(Y[6]=[e.createTextVNode("拍照")])),_:1,__:[6]},8,["disabled"]),Y[9]||(Y[9]=e.createElementVNode("div",{style:{flex:"1"}},null,-1)),e.createVNode(ye,{onClick:w,disabled:v.value.length===0,id:"themeButton"},{default:e.withCtx(()=>Y[7]||(Y[7]=[e.createTextVNode("确认")])),_:1,__:[7]},8,["disabled"]),e.createVNode(ye,{onClick:$,id:"themeBorderButton"},{default:e.withCtx(()=>Y[8]||(Y[8]=[e.createTextVNode("取消")])),_:1,__:[8]})])]),_:1},8,["visible"]),d.value?(e.openBlock(),e.createBlock(ll.ssFilePreview,{key:0,fileDataList:y.value,onDestroy:_},null,8,["fileDataList"])):e.createCommentVNode("",!0)],64)}}}),Kf=Zl._export_sfc(Wf,[["__scopeId","data-v-24a2050a"]]),fs=A.useMenuState(A.pinia),Gf=async a=>{var s,v,f,d,y,g;let l=a==null?void 0:a.导入文件,r=a==null?void 0:a.函数参数,n=(s=l==null?void 0:l[0])==null?void 0:s.url,t="";if(!(n!=null&&n.includes("http"))||!(n!=null&&n.includes("https"))){fs.setContentLoading(!0);const c=await A.platformDownloadFile({url:n});let D=c==null?void 0:c.data;const I=new FormData;I.append("file",D,((v=l==null?void 0:l[0])==null?void 0:v.name)+"."+((f=n==null?void 0:n.split("."))==null?void 0:f[1])),I.append("query",r);let k=await Zs(I);k=(g=(y=(d=k==null?void 0:k.data)==null?void 0:d.data)==null?void 0:y.response)==null?void 0:g.replace("generateResult",a==null?void 0:a.函数名称),t=k,fs.setContentLoading(!1)}return t},Ct=A.defineStore("formComp",{state:()=>({objUrl:[],blobUrls:[]}),actions:{setObjUrl(a){this.objUrl=a},setBlobUrls(a){this.blobUrls=a}}}),Yf=A.useModelComp(A.pinia),{extraContents:ov}=A.storeToRefs(Yf),Jf=A.useLoginState(A.pinia),{extraUrl:ii}=A.storeToRefs(Jf);let fc=ii.value===""||!ii.value?"http://139.196.154.85:20015":ii.value;e.watch(()=>ii.value,()=>{fc=ii.value===""||!ii.value?"http://139.196.154.85:20015":ii.value},{deep:!0,immediate:!0});const Do={检校类型:["检校类型","证书类别"],证书编号:["证书编号"],设备名称:["设备名称","器具名称","样品名称","仪器名称","被校设备"],型号规格:["型号规格","型号/规格","型号"],出厂编号:["出厂编号","器具/管理编号","器具编号","管理编号","仪器编号"],制造厂:["制造厂","制造单位","制造厂商","制造商"],检校结果:["检校结果","检定结论","校准结果","校准/检定结果","检定结果"],依据文件:["依据文件","检定依据","检定所依据的技术文件","所依据/参照技术文件(代号/名称)","检定所依据的技术文件(编号/名称)","检定方法说明"],检校日期:["检校日期","校准日期","校验日期","检定日期","发证日期","发布日期","接收日期","签证日期"],有效日期:["有效日期","有效期","有效期至"]},hs={columnName:"OCR图片",acceptTypes:"image/*",maxSize:10,maxFiles:20,apiUrl:fc+"/api/public/paddleOCR"};class Xf{constructor(l){Wr(this,"config");this.config={...hs,...l}}updateConfig(l){this.config={...this.config,...l}}getConfig(){return{...this.config}}validateFileSize(l){const r=this.config.maxSize*1024*1024;return l.size<=r}validateFileType(l){return l.type.startsWith("image/")||l.type==="application/pdf"}getAuthorizationToken(){const l=Ha.Local.get(Ha.accessTokenKey);return l?`Bearer ${l}`:""}buildOCRRequest(l,r){return{title:r,form:{OCR图片文件:l}}}async recognize(l,r){const n=this.getAuthorizationToken(),t=this.buildOCRRequest(l,r),s=this.config.apiUrl||hs.apiUrl||"";return(await Ha.axios.post(s,t,{headers:{"Content-Type":"application/json",Authorization:n}})).data}getFieldAliases(l){return Do[l]?Do[l]:[l]}extractTableHeaders(l){const r=[],n=new Set,t=v=>{const f=v==null?void 0:v.label;return!(!f||f==="操作"||f===this.config.columnName||(v==null?void 0:v.type)==="operate"||(v==null?void 0:v.prop)==="operate")},s=v=>{(v||[]).forEach(f=>{if(!f)return;const d=(f==null?void 0:f.children)||(f==null?void 0:f.child)||(f==null?void 0:f.columns);if(Array.isArray(d)&&d.length>0){s(d);return}if(t(f)){const y=f.label;if(!n.has(y)){n.add(y);const g=this.getFieldAliases(y);r.push(g)}}})};return s(l||[]),r}}function hc(a){return new Xf(a)}hc();const yt=async(a,l)=>{var v,f,d,y,g,c,D,I,k,W,M,R,j,E,w,x,b;let r=(f=(v=A.cloneDeep(a))==null?void 0:v.optionUrl)==null?void 0:f.menuSelect,n=[];r==null||r.forEach(_=>{});let t="",s=await ue.menuToParent(r);if(s==null||s.forEach(_=>{var $,F,Y,oe;(_==null?void 0:_.name)===(((oe=(Y=(F=($=A.cloneDeep(a))==null?void 0:$.optionUrl)==null?void 0:F.groupSelect)==null?void 0:Y[0])==null?void 0:oe.replaceAll("'",""))??"")&&(t=_==null?void 0:_.id)}),l){t=l;const _=await Nr.getInsofDataApi({id:t}),$=(c=(g=(y=(d=_==null?void 0:_.data)==null?void 0:d.result)==null?void 0:y[0])==null?void 0:g.key)==null?void 0:c.pageKey;s=await ue.getItemData($,sessionStorage.getItem("systemKey"),"")}if(t!==""){let _;l?_=(D=s==null?void 0:s.find(Y=>(Y==null?void 0:Y.id)===l))==null?void 0:D.compData:_=(I=s==null?void 0:s.find(Y=>{var oe,ye,Ie,V;return(Y==null?void 0:Y.name)===(((ye=(oe=a==null?void 0:a.groupSelect)==null?void 0:oe.split(":"))==null?void 0:ye[0])||((V=(Ie=a==null?void 0:a.optionUrl)==null?void 0:Ie.groupSelect)==null?void 0:V[0]))}))==null?void 0:I.compData;let $=(W=(k=_==null?void 0:_.find(Y=>(Y==null?void 0:Y.key)==="header"))==null?void 0:k.contents)==null?void 0:W.map(Y=>Y==null?void 0:Y.label);(R=(M=_==null?void 0:_.find(Y=>(Y==null?void 0:Y.key)==="header"))==null?void 0:M.contents)!=null&&R.every(Y=>Array.isArray(Y))&&($=(w=ue.getColumnChild((E=(j=_==null?void 0:_.find(Y=>(Y==null?void 0:Y.key)==="header"))==null?void 0:j.contents)==null?void 0:E[0]))==null?void 0:w.map(Y=>Y==null?void 0:Y.prop));let F=(b=(x=_==null?void 0:_.find(Y=>(Y==null?void 0:Y.key)==="tableContents"))==null?void 0:x.contents)==null?void 0:b.map(Y=>{if(Array.isArray(Y))Y=Y==null?void 0:Y.filter(oe=>!(oe!=null&&oe.id));else{let oe={};for(let ye in Y)ye!=="id"&&(oe[ye]=Y==null?void 0:Y[ye]);Y=oe}return Y});F==null||F.forEach(Y=>{Array.isArray(Y)?n.push(ue.getValueToObjectValue(Y,$)):n.push(Y)})}return n},Zf=A.useMenuState(A.pinia),{activeMenuPath:tv}=A.storeToRefs(Zf),Qf=A.useUnit(A.pinia),{chooseTitle:sv}=A.storeToRefs(Qf),e0="col-operate",vc=a=>`${e0}-${a}`,a0=(a,l)=>{const r=new Map;a.forEach(t=>{const{prop:s}=t;r.set(s,t)});const n=t=>{Array.isArray(t)&&t.forEach(s=>{const{prop:v}=s||{},f=r.get(v);l0(f,s),Array.isArray(s==null?void 0:s.children)&&s.children.length>0&&n(s.children)})};return n(l),l},l0=(a,l)=>(a&&(l.sortable=a==null?void 0:a.sortable,l.filterable=a==null?void 0:a.filterable,l.showSummary=a==null?void 0:a.showSummary,l.operable=a==null?void 0:a.operable,l.fixed=a==null?void 0:a.fixed),l),r0=(a,l)=>{const{sortable:r=!1,filterable:n=!1,showSummary:t=!1,operable:s=!1,fixed:v=!1}=l||{};return{prop:a,sortable:r,filterable:n,showSummary:t,operable:s,fixed:v}},n0=async a=>{var s,v;if(!a)return;const l=vc(a),r=await Nr.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:l}}),n=(s=r==null?void 0:r.data)==null?void 0:s.code,t=(v=r==null?void 0:r.data)==null?void 0:v.result;if(n==200)return t==null?void 0:t[0]},i0=async a=>{if(a)return[]},o0=async(a,l)=>{if(!a||!l)return;const r=vc(a);return await Nr.createInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:r},value:{columns:l}})},t0=async(a,l)=>!a||!l?void 0:await Nr.updateInsofDataApi({id:a,value:{columns:l}}),vs=async(a,l)=>{const r=sessionStorage.getItem("systemKey");if(!a||!l||!r)return;const n=await n0(a);return n?await t0(n==null?void 0:n.id,l):await o0(a,l)};var xo={exports:{}},s0=xo.exports,ms;function c0(){return ms||(ms=1,function(a,l){(function(r,n){n()})(s0,function(){function r(y,g){return typeof g>"u"?g={autoBom:!1}:typeof g!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),g={autoBom:!g}),g.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(y.type)?new Blob(["\uFEFF",y],{type:y.type}):y}function n(y,g,c){var D=new XMLHttpRequest;D.open("GET",y),D.responseType="blob",D.onload=function(){d(D.response,g,c)},D.onerror=function(){console.error("could not download file")},D.send()}function t(y){var g=new XMLHttpRequest;g.open("HEAD",y,!1);try{g.send()}catch{}return 200<=g.status&&299>=g.status}function s(y){try{y.dispatchEvent(new MouseEvent("click"))}catch{var g=document.createEvent("MouseEvents");g.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),y.dispatchEvent(g)}}var v=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof A.commonjsGlobal=="object"&&A.commonjsGlobal.global===A.commonjsGlobal?A.commonjsGlobal:void 0,f=v.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),d=v.saveAs||(typeof window!="object"||window!==v?function(){}:"download"in HTMLAnchorElement.prototype&&!f?function(y,g,c){var D=v.URL||v.webkitURL,I=document.createElement("a");g=g||y.name||"download",I.download=g,I.rel="noopener",typeof y=="string"?(I.href=y,I.origin===location.origin?s(I):t(I.href)?n(y,g,c):s(I,I.target="_blank")):(I.href=D.createObjectURL(y),setTimeout(function(){D.revokeObjectURL(I.href)},4e4),setTimeout(function(){s(I)},0))}:"msSaveOrOpenBlob"in navigator?function(y,g,c){if(g=g||y.name||"download",typeof y!="string")navigator.msSaveOrOpenBlob(r(y,c),g);else if(t(y))n(y,g,c);else{var D=document.createElement("a");D.href=y,D.target="_blank",setTimeout(function(){s(D)})}}:function(y,g,c,D){if(D=D||open("","_blank"),D&&(D.document.title=D.document.body.innerText="downloading..."),typeof y=="string")return n(y,g,c);var I=y.type==="application/octet-stream",k=/constructor/i.test(v.HTMLElement)||v.safari,W=/CriOS\/[\d]+/.test(navigator.userAgent);if((W||I&&k||f)&&typeof FileReader<"u"){var M=new FileReader;M.onloadend=function(){var E=M.result;E=W?E:E.replace(/^data:[^;]*;/,"data:attachment/file;"),D?D.location.href=E:location=E,D=null},M.readAsDataURL(y)}else{var R=v.URL||v.webkitURL,j=R.createObjectURL(y);D?D.location=j:location.href=j,D=null,setTimeout(function(){R.revokeObjectURL(j)},4e4)}});v.saveAs=d.saveAs=d,a.exports=d})}(xo)),xo.exports}c0();const Hn=A.defineStore("tabComp",{state:()=>({itemData:[],originalData:[],extraContents:[],nodeDev:"",isEdit:"view",isRefreshCurStructure:!1,isSubmitCurStructure:!1,curStructureCompIds:[],itemGridData:[],itemExtendData:void 0,payloadTypes:"",lockingPage:"",systemPath:void 0,pageMapState:void 0,cacheUpdatingData:void 0,freshContent:!1,tableLoading:!1,routeToChildPath:"",tableViewContents:[],activeItemIndex:0,fixMenuStatus:!1,refreshTable:!1,selectTab:""}),actions:{setItemData(a){this.itemData=a},setCurStructureCompIds(a){this.curStructureCompIds=a},setRefreshCurStructure(a){this.isRefreshCurStructure=a},setOriginalData(a){this.originalData=a},setExtraContents(a){this.extraContents=a},setNodeDev(a){this.nodeDev=a},setIsEdit(a){this.isEdit=a},setSelectTab(a){this.selectTab=a}}}),u0=A.useLoginState(A.pinia),{loginUserInfo:st}=A.storeToRefs(u0),d0=async a=>{var n,t,s;let l=await A.getAllTables({platId:parseInt((n=st==null?void 0:st.value)==null?void 0:n.plat_id),tableNames:[a]});return l=(s=(t=l==null?void 0:l.data)==null?void 0:t.result)==null?void 0:s[0],await sc(l,!1),[{comp:"Table",isShow:!0,name:"日志管理",compData:[{key:"extraButton",contents:[]},{key:"rowButton",contents:[]},{key:"header",contents:[{label:"请求类型",prop:"request_method",formType:"Input",align:"center"},{label:"请求路径",prop:"request_url",formType:"Input",align:"center"},{label:"请求参数",prop:"request_param",formType:"Upload",align:"center"},{label:"返回结果",prop:"request_result",formType:"Upload",align:"center"},{label:"返回信息",prop:"request_message",formType:"Input",align:"center"},{label:"请求表格",prop:"request_table",formType:"Input",align:"center"},{label:"请求种类",prop:"request_type",formType:"Input",align:"center"},{label:"请求创建时间",prop:"create_time",formType:"Date",align:"center"},{label:"请求创建人",prop:"create_user_id",formType:"Input",align:"center"}]},{key:"tableContents",contents:l}]}]},p0=A.useLoginState(),{loginUserInfo:hl}=A.storeToRefs(p0);let mo="$R";const Br=A.useModelComp(A.pinia),mc=e.ref(!1),{itemData:f0,itemGridData:li,curStructureCompIds:ys,isSubmitCurStructure:h0,routeToChildPath:v0,pageMapState:gt,itemExtendData:yo,refreshTable:gs}=A.storeToRefs(Br),Oo=Hn(A.pinia),Ir=A.useMenuState(A.pinia),tr=e.shallowRef([]),{asideMenus:m0,activeTopMenuPath:y0,activeMenuPath:yl,platform:cv,buttonTriggerType:g0,currentMenuPath:Zr}=A.storeToRefs(Ir),dn=A.useUnit(A.pinia),{selectTitle:Fn,chooseTitle:Bo}=A.storeToRefs(dn);e.ref();const Bi=e.ref(!0),jn=e.ref(0),bt=e.ref([]);e.ref(!1);const Dt=e.ref(!1),Ki=e.ref(),yc=e.ref(),gc=e.ref(),b0=()=>{Br.setItemGridData([]),Br.setIsEdit("edit"),Br.setSubmitCurStructure(yl.value!=="/平台管理/菜单管理")},k0=()=>{Br.setIsEdit("view"),Br.setRefreshCurStructure(!0)},x0=async a=>{var t;let l=Fn.value,r=l==null?void 0:l.findIndex(s=>(s==null?void 0:s.value)===(a==null?void 0:a.value)),n=l==null?void 0:l.filter((s,v)=>v<=r);dn.setSelectTitle(ll.safeClone(n)),n=(t=n==null?void 0:n.map(s=>s==null?void 0:s.value))==null?void 0:t.join("/"),Ir.setActiveMenuPath(null),Ir.setActiveMenuPath(n)},ct=async(a,l,r,n="contentConfig")=>{var t;try{if(!Array.isArray(a))return;let s,v;l==="create"?(s={dataList:a==null?void 0:a.map(d=>{var y;return{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:r!=null&&r.startsWith("/")?r==null?void 0:r.substring(1):r,type:"structure",structureBelong:n,parentTable:"",version:1},value:{pageData:{...d,compData:(y=d==null?void 0:d.compData)==null?void 0:y.filter(g=>(g==null?void 0:g.key)!=="tableContents")}}}})},v=Nr.batchAddInsofDataApi):l==="update"?(s={dataList:a==null?void 0:a.map(d=>{var y;return{id:d==null?void 0:d.id,value:{pageData:{...d,compData:(y=d==null?void 0:d.compData)==null?void 0:y.filter(g=>(g==null?void 0:g.key)!=="tableContents")}}}})},v=Nr.batchUpdateInsofDataApi):l==="delete"&&(s={ids:a},v=Nr.batchDeleteInsofDataApi);const f=await v(s);if(((t=f==null?void 0:f.data)==null?void 0:t.code)===200)return f.data.result;throw Ha.ElMessage.error("保存响应失败"),new Error("保存响应失败")}catch{Ha.ElMessage.error("保存响应失败")}},bs=async(a,l,r,n)=>{var t,s,v,f,d,y,g,c,D,I,k;try{const W=(s=(t=a==null?void 0:a.results)==null?void 0:t.filter(x=>!(x!=null&&x.id)||typeof(x==null?void 0:x.id)=="string"))==null?void 0:s.map(x=>({key:{pageKey:a==null?void 0:a.pageKey,systemKey:sessionStorage.getItem("systemKey"),type:l,relatedInfo:r},value:{tableData:x}})),M=(f=(v=a==null?void 0:a.results)==null?void 0:v.filter(x=>(x==null?void 0:x.id)&&typeof(x==null?void 0:x.id)=="number"))==null?void 0:f.map(x=>({id:x==null?void 0:x.id,value:{tableData:x}})),R=JSON.parse(JSON.stringify(a)),j=(d=R==null?void 0:R.results)==null?void 0:d.map(x=>x.id);let E;r?E=(c=(g=(y=gt.value)==null?void 0:y[yl.value])==null?void 0:g.filter(x=>{var b,_,$;return((b=x==null?void 0:x.key)==null?void 0:b.type)===l&&(($=(_=x==null?void 0:x.key)==null?void 0:_.relatedInfo)==null?void 0:$.target)===n}))==null?void 0:c.map(x=>x==null?void 0:x.id):E=(k=(I=(D=gt.value)==null?void 0:D[yl.value])==null?void 0:I.filter(x=>{var b;return((b=x==null?void 0:x.key)==null?void 0:b.type)===l}))==null?void 0:k.map(x=>x==null?void 0:x.id);const w=E==null?void 0:E.filter(x=>!(j!=null&&j.includes(x))&&typeof x=="number");(W==null?void 0:W.length)>0&&await Nr.batchAddInsofDataApi({dataList:W}),(M==null?void 0:M.length)>0&&await Nr.batchUpdateInsofDataApi({dataList:M}),(w==null?void 0:w.length)>0&&await Nr.batchDeleteInsofDataApi({ids:w})}catch(W){throw new Error(W)}},w0=async a=>{var y,g,c,D,I,k,W,M,R,j;Ir.setContentLoading(!0);const l=JSON.parse(JSON.stringify(f0.value));if(!h0.value)return Ir.setCacheStructures({key:g0.value,data:l}),Ha.ElMessage.success("已暂存");const r=l==null?void 0:l.map(E=>E.id),n=r.filter(E=>{var w;return!((w=ys.value)!=null&&w.includes(E))}),t=(y=ys.value)==null?void 0:y.filter(E=>!r.includes(E)),s=[...n,...t].filter(E=>typeof E!==null&&typeof E<"u"),v=l==null?void 0:l.filter(E=>!E.id),f=l==null?void 0:l.filter(E=>E.id);let d=[];if(s&&(s==null?void 0:s.length)>0&&d.push(ct(s,"delete",a)),v&&(v==null?void 0:v.length)>0&&d.push(ct(v,"create",a)),f&&(f==null?void 0:f.length)>0&&d.push(ct(f,"update",a)),li.value&&((g=li.value)!=null&&g.isDelete&&((D=(c=li.value)==null?void 0:c.results)==null?void 0:D.length)>0&&((k=(I=li.value)==null?void 0:I.results)!=null&&k.every(E=>typeof E=="number"))?await Nr.batchDeleteInsofDataApi({ids:(W=li.value)==null?void 0:W.results}):(console.log("itemGridData.value",li.value),d.push(await bs(li.value,"gridLayout")))),yo.value)for(const E in yo.value)d.push(await bs((M=yo.value)==null?void 0:M[E],"extend",{target:E,compId:(j=(R=yo.value)==null?void 0:R[E])==null?void 0:j.compId},E));await Promise.all(d).then(()=>{Ha.ElMessage.success("保存成功"),Br.setRefreshCurStructure(!0)}).catch(E=>{Ha.ElMessage.success(E)}),Ir.setContentLoading(!1)},Gi=a=>Ti(a),_0=e.computed(()=>{var a;return(a=tr.value)==null?void 0:a.filter(l=>(l==null?void 0:l.affix)&&(l==null?void 0:l.affix)!=="default")}),bc=e.computed(()=>{var a;return(a=tr.value)==null?void 0:a.filter(l=>!(l!=null&&l.affix&&(l==null?void 0:l.affix)!=="default"))}),kc=e.ref(0),xc=e.ref(null),S0="ocr_committed_temp_ids_v1",E0=(a,l)=>`${S0}:${String(a??"")}:${String(l??"")}`,C0=(a,l,r)=>{try{const n=E0(a,l),t=sessionStorage.getItem(n),s=t?JSON.parse(t):[],v=Array.isArray(s)?s:[],f=Array.from(new Set([...v,...r||[]].map(d=>String(d)))).slice(-200);sessionStorage.setItem(n,JSON.stringify(f))}catch{}},To=async(a,l="data",r)=>{var t,s,v,f,d,y,g,c,D,I,k,W,M,R,j,E,w,x,b,_,$,F,Y,oe,ye,Ie,V,pe,Q,ce,Be,Ve,me,N,se,U,Se,Le,Fe,ia,Ba,ee,da,ie,fa,Ee,ne,Ae,We,ua,Ga,L,H,J,ve,he,ga,la,te,ba,Ne,Xe,Aa,Da,aa,$a,ke,ae,ze,Oe,Me,ya,xa,qe,Je,Ue,_e,de,Oa,La,gl,zl,tl,jl,Pa,Il,Vl;let n=((v=(s=(t=Fn.value)==null?void 0:t.filter(Ma=>(Ma==null?void 0:Ma.condition)==="child"))==null?void 0:s[0])==null?void 0:v.value)??"";if((a==null?void 0:a.buttonName)==="新增"){let Ma=(f=a==null?void 0:a.fixContent)==null?void 0:f.map(X=>{let ra={};for(let ea in X)Array.isArray(X==null?void 0:X[ea])?ra[ea]=JSON.stringify(X==null?void 0:X[ea]):ra[ea]=X==null?void 0:X[ea];return ra}),el=await A.quoteApi({platId:parseInt((d=hl==null?void 0:hl.value)==null?void 0:d.plat_id),type:"fatherSyncs",related:[{menus:n!==""?yl.value+"/"+n:yl.value,groups:a==null?void 0:a.name}]});el=(y=el==null?void 0:el.data)==null?void 0:y.result,el=el==null?void 0:el.filter(X=>{var ra,ea;return!((X==null?void 0:X.fatherPath)!==""&&((ea=(ra=X==null?void 0:X.quote)==null?void 0:ra[0])==null?void 0:ea.menus)===(yl==null?void 0:yl.value))});let sl=el==null?void 0:el.map(X=>{var ka,ha;let ra={},ea=Ma==null?void 0:Ma[0],fe;return Array.isArray((ka=X==null?void 0:X.struct)==null?void 0:ka[0])?fe=ue.getColumnChild((ha=X==null?void 0:X.struct)==null?void 0:ha[0]):fe=X==null?void 0:X.struct,fe=fe==null?void 0:fe.filter(Ye=>(Ye==null?void 0:Ye.prop)!=="relatedId"),fe==null||fe.forEach(Ye=>{var ta,va;ra[Ye.prop]=((ta=Ye==null?void 0:Ye.words)!=null&&ta[0]?(ea==null?void 0:ea[(va=Ye==null?void 0:Ye.words)==null?void 0:va[0]])??(ea==null?void 0:ea[Ye==null?void 0:Ye.prop]):ea==null?void 0:ea[Ye==null?void 0:Ye.prop])??""}),ra.id="1",ra.relatedId=`[${ra.id}]`,delete ra.sort,{tableName:"content_"+(X==null?void 0:X.id),tableContents:[ra]}}),ol=[{tableName:(g=a==null?void 0:a.relatedContents)==null?void 0:g.find(X=>X==null?void 0:X.includes("content")),tableContents:Ma}];ol=[...ol,...sl];let Va=await A.quoteApi({platId:parseInt((c=hl==null?void 0:hl.value)==null?void 0:c.plat_id),type:"sonSyncs",related:[{menus:n!==""?yl.value+"/"+n:yl.value,groups:a==null?void 0:a.name}]});Va=(I=(D=Va==null?void 0:Va.data)==null?void 0:D.result)==null?void 0:I.filter(X=>!(ol!=null&&ol.find(ra=>(ra==null?void 0:ra.tableName)==="content_"+(X==null?void 0:X.id)))),Va=Va==null?void 0:Va.filter(X=>{var ra,ea;return!((X==null?void 0:X.fatherPath)!==""&&((ea=(ra=X==null?void 0:X.quote)==null?void 0:ra[0])==null?void 0:ea.menus)===(yl==null?void 0:yl.value))});let dl=Va==null?void 0:Va.map(X=>{var ka,ha,Ye,ta,va,pl,He;let ra={},ea=Ma==null?void 0:Ma[0],fe;return Array.isArray((ka=X==null?void 0:X.struct)==null?void 0:ka[0])?fe=ue.getColumnChild((ha=X==null?void 0:X.struct)==null?void 0:ha[0]):fe=X==null?void 0:X.struct,fe=fe==null?void 0:fe.filter(ca=>(ca==null?void 0:ca.prop)!=="relatedId"),((ta=(Ye=fe==null?void 0:fe[0])==null?void 0:Ye.words)!=null&&ta[0]?ea!=null&&ea[(pl=(va=fe==null?void 0:fe[0])==null?void 0:va.words)==null?void 0:pl[0]]:ea!=null&&ea[(He=fe==null?void 0:fe[0])==null?void 0:He.prop])?(fe==null||fe.forEach(ca=>{var oa,Za;ra[ca.prop]=((oa=ca==null?void 0:ca.words)!=null&&oa[0]?(ea==null?void 0:ea[(Za=ca==null?void 0:ca.words)==null?void 0:Za[0]])??(ea==null?void 0:ea[ca==null?void 0:ca.prop]):ea==null?void 0:ea[ca==null?void 0:ca.prop])??""}),ra.id="1",ra.relatedId=`[${ra.id}]`,delete ra.sort):ra=void 0,{tableName:"content_"+(X==null?void 0:X.id),tableContents:[ra]}});dl=dl==null?void 0:dl.filter(X=>{var ra;return!((ra=X==null?void 0:X.tableContents)!=null&&ra.every(ea=>ea===void 0))}),ol=[...ol,...dl],await A.pageBatchAddApi({platId:parseInt((k=hl==null?void 0:hl.value)==null?void 0:k.plat_id),changeContents:ol});let rl=[];ol==null||ol.forEach(X=>{var ra;(ra=X==null?void 0:X.tableContents)==null||ra.forEach(ea=>{rl.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(ea),request_result:"{}",is_delete:!1,request_table:X==null?void 0:X.tableName,request_type:"add"})})}),await A.pageBatchAddApi({platId:parseInt((W=hl==null?void 0:hl.value)==null?void 0:W.plat_id),changeContents:[{tableName:"log",tableContents:rl}]})}if((a==null?void 0:a.buttonName)==="OCR批量新增"){const Ma=((a==null?void 0:a.ocrRows)||[]).map(Va=>Va==null?void 0:Va.id).filter(Va=>Va!=null),el=((a==null?void 0:a.ocrRows)||[]).map(Va=>{const dl={...Va};return delete dl._isOCRRow,delete dl._ocrTableId,Object.keys(dl).forEach(rl=>{/(^|\.)证书附件$/.test(rl)&&Array.isArray(dl[rl])&&(dl[rl]=JSON.stringify(dl[rl].map(X=>({url:(X==null?void 0:X.url)||"",name:(X==null?void 0:X.name)||(X==null?void 0:X.fileName)||"",fileName:(X==null?void 0:X.fileName)||(X==null?void 0:X.name)||""})).filter(X=>X.url||X.name)))}),dl});let sl=[{tableName:(M=a==null?void 0:a.relatedContents)==null?void 0:M.find(Va=>Va==null?void 0:Va.includes("content")),tableContents:el}];await A.pageBatchAddApi({platId:parseInt((R=hl==null?void 0:hl.value)==null?void 0:R.plat_id),changeContents:sl});let ol=[];sl==null||sl.forEach(Va=>{var dl;(dl=Va==null?void 0:Va.tableContents)==null||dl.forEach(rl=>{ol.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(rl),request_result:"{}",is_delete:!1,request_table:Va==null?void 0:Va.tableName,request_type:"ocrBatchAdd"})})}),await A.pageBatchAddApi({platId:parseInt((j=hl==null?void 0:hl.value)==null?void 0:j.plat_id),changeContents:[{tableName:"log",tableContents:ol}]}),C0(a==null?void 0:a.parentTableId,a==null?void 0:a.index,Ma)}if((a==null?void 0:a.buttonName)==="编辑"){const el=((a==null?void 0:a.fixContent)||(a==null?void 0:a.singleContent)||[]||[]).map(fe=>{const ka={...fe};return delete ka._isOCRRow,delete ka._ocrTableId,delete ka._isTemp,delete ka.tableEditType,delete ka.index,ka});let sl=el==null?void 0:el.map(fe=>{let ka={};for(let ha in fe)Array.isArray(fe==null?void 0:fe[ha])?ka[ha]=JSON.stringify(fe==null?void 0:fe[ha]):ka[ha]=fe==null?void 0:fe[ha];return ka}),ol=await A.quoteApi({platId:parseInt((E=hl==null?void 0:hl.value)==null?void 0:E.plat_id),type:"fatherSyncs",related:[{menus:n!==""?yl.value+"/"+n:yl.value,groups:a==null?void 0:a.name}]});ol=(w=ol==null?void 0:ol.data)==null?void 0:w.result,ol=ol==null?void 0:ol.filter(fe=>{var ka,ha;return!((fe==null?void 0:fe.fatherPath)!==""&&((ha=(ka=fe==null?void 0:fe.quote)==null?void 0:ka[0])==null?void 0:ha.menus)===(yl==null?void 0:yl.value))});let Va=(x=sl==null?void 0:sl[0])==null?void 0:x.id,dl=[{tableName:(b=a==null?void 0:a.relatedContents)==null?void 0:b.find(fe=>fe==null?void 0:fe.includes("content")),tableContents:sl}],rl=(_=ol==null?void 0:ol.map(fe=>{var ha,Ye,ta,va,pl;let ka=(ha=fe==null?void 0:fe.contents)==null?void 0:ha.filter(He=>{var ca,oa;return JSON.stringify(He==null?void 0:He.relatedId)!=="{}"&&(He==null?void 0:He.relatedId)!==""&&(He!=null&&He.relatedId)?(ca=He==null?void 0:He.relatedId)==null?void 0:ca.includes(parseInt(Va)):(He==null?void 0:He.sort)===((oa=sl==null?void 0:sl[0])==null?void 0:oa.sort)});if((ka==null?void 0:ka.length)>0){let He=sl==null?void 0:sl[0];He={...He,id:(Ye=ka==null?void 0:ka[0])==null?void 0:Ye.id};let ca={},oa=He,Za;return Array.isArray((ta=fe==null?void 0:fe.struct)==null?void 0:ta[0])?Za=ue.getColumnChild((va=fe==null?void 0:fe.struct)==null?void 0:va[0]):Za=fe==null?void 0:fe.struct,Za=Za==null?void 0:Za.filter(Re=>(Re==null?void 0:Re.prop)!=="relatedId"),Za==null||Za.forEach(Re=>{var Te,_l;ca[Re.prop]=((Te=Re==null?void 0:Re.words)!=null&&Te[0]?(oa==null?void 0:oa[(_l=Re==null?void 0:Re.words)==null?void 0:_l[0]])??(oa==null?void 0:oa[Re==null?void 0:Re.prop]):oa==null?void 0:oa[Re==null?void 0:Re.prop])??""}),ca.id=(pl=ka==null?void 0:ka[0])==null?void 0:pl.id,delete ca.sort,delete ca.relatedId,{tableName:"content_"+(fe==null?void 0:fe.id),tableContents:[ca]}}else return}))==null?void 0:_.filter(fe=>fe);dl=[...dl,...rl];let X=await A.quoteApi({platId:parseInt(($=hl==null?void 0:hl.value)==null?void 0:$.plat_id),type:"sonSyncs",related:[{menus:n!==""?yl.value+"/"+n:yl.value,groups:a==null?void 0:a.name}]});X=(Y=(F=X==null?void 0:X.data)==null?void 0:F.result)==null?void 0:Y.filter(fe=>!(dl!=null&&dl.find(ka=>(ka==null?void 0:ka.tableName)==="content_"+(fe==null?void 0:fe.id)))),X=X==null?void 0:X.filter(fe=>{var ka,ha;return!((fe==null?void 0:fe.fatherPath)!==""&&((ha=(ka=fe==null?void 0:fe.quote)==null?void 0:ka[0])==null?void 0:ha.menus)===(yl==null?void 0:yl.value))});let ra=(oe=X==null?void 0:X.map(fe=>{var ha,Ye,ta,va,pl;let ka=(ha=fe==null?void 0:fe.contents)==null?void 0:ha.filter(He=>{var ca,oa,Za;return JSON.stringify(He==null?void 0:He.relatedId)!=="{}"&&(He==null?void 0:He.relatedId)!==""&&(He!=null&&He.relatedId)?(ca=He==null?void 0:He.relatedId)==null?void 0:ca.includes(parseInt(Va)):(He==null?void 0:He.sort)===((oa=sl==null?void 0:sl[0])==null?void 0:oa.sort)||(He==null?void 0:He.sort)===(parseInt(((Za=sl==null?void 0:sl[0])==null?void 0:Za.sort)??"0")+1).toString()});if((ka==null?void 0:ka.length)>0){let He=sl==null?void 0:sl[0];He={...He,id:(Ye=ka==null?void 0:ka[0])==null?void 0:Ye.id};let ca={},oa=He,Za;return Array.isArray((ta=fe==null?void 0:fe.struct)==null?void 0:ta[0])?Za=ue.getColumnChild((va=fe==null?void 0:fe.struct)==null?void 0:va[0]):Za=fe==null?void 0:fe.struct,Za=Za==null?void 0:Za.filter(Re=>(Re==null?void 0:Re.prop)!=="relatedId"),Za==null||Za.forEach(Re=>{var Te,_l,Ll,Wl;((Te=Re==null?void 0:Re.words)!=null&&Te[0]?(oa==null?void 0:oa[(_l=Re==null?void 0:Re.words)==null?void 0:_l[0]])??(oa==null?void 0:oa[Re==null?void 0:Re.prop]):oa!=null&&oa[Re==null?void 0:Re.prop])&&(ca[Re.prop]=((Ll=Re==null?void 0:Re.words)!=null&&Ll[0]?(oa==null?void 0:oa[(Wl=Re==null?void 0:Re.words)==null?void 0:Wl[0]])??(oa==null?void 0:oa[Re==null?void 0:Re.prop]):oa==null?void 0:oa[Re==null?void 0:Re.prop])??"")}),ca.id=(pl=ka==null?void 0:ka[0])==null?void 0:pl.id,delete ca.sort,delete ca.relatedId,{tableName:"content_"+(fe==null?void 0:fe.id),tableContents:[ca]}}else return}))==null?void 0:oe.filter(fe=>fe);dl=[...dl,...ra],await A.pageBatchUpdateApi({platId:parseInt((ye=hl==null?void 0:hl.value)==null?void 0:ye.plat_id),changeContents:dl});let ea=[];dl==null||dl.forEach(fe=>{var ka;(ka=fe==null?void 0:fe.tableContents)==null||ka.forEach(ha=>{ea.push({id:"1",request_method:"Post",request_url:"/platform/page/update",request_param:JSON.stringify(ha),request_result:"{}",is_delete:!1,request_table:fe==null?void 0:fe.tableName,request_type:"update"})})}),await A.pageBatchAddApi({platId:parseInt((Ie=hl==null?void 0:hl.value)==null?void 0:Ie.plat_id),changeContents:[{tableName:"log",tableContents:ea}]})}if((a==null?void 0:a.buttonName)==="删除"){let Ma=[{tableName:(V=a==null?void 0:a.relatedContents)==null?void 0:V.find(X=>X==null?void 0:X.includes("content")),tableContents:a==null?void 0:a.fixContent}],el=await A.quoteApi({platId:parseInt((pe=hl==null?void 0:hl.value)==null?void 0:pe.plat_id),type:"fatherSyncs",related:[{menus:n!==""?yl.value+"/"+n:yl.value,groups:a==null?void 0:a.name}]});el=(Q=el==null?void 0:el.data)==null?void 0:Q.result,el=el==null?void 0:el.filter(X=>{var ra,ea;return!((X==null?void 0:X.fatherPath)!==""&&((ea=(ra=X==null?void 0:X.quote)==null?void 0:ra[0])==null?void 0:ea.menus)===(yl==null?void 0:yl.value))});let sl=(Be=(ce=a==null?void 0:a.fixContent)==null?void 0:ce[0])==null?void 0:Be.id,ol=(Ve=el==null?void 0:el.map(X=>{var ea,fe,ka,ha,Ye,ta;let ra=(ea=X==null?void 0:X.contents)==null?void 0:ea.filter(va=>{var pl,He,ca;return JSON.stringify(va==null?void 0:va.relatedId)!=="{}"&&(va==null?void 0:va.relatedId)!==""&&(va!=null&&va.relatedId)?(pl=va==null?void 0:va.relatedId)==null?void 0:pl.includes(parseInt(sl)):(va==null?void 0:va.sort)===((ca=(He=a==null?void 0:a.fixContent)==null?void 0:He[0])==null?void 0:ca.sort)});if((ra==null?void 0:ra.length)>0){let va=(fe=a==null?void 0:a.fixContent)==null?void 0:fe[0];va={...va,id:(ka=ra==null?void 0:ra[0])==null?void 0:ka.id};let pl={},He=va,ca;return Array.isArray((ha=X==null?void 0:X.struct)==null?void 0:ha[0])?ca=ue.getColumnChild((Ye=X==null?void 0:X.struct)==null?void 0:Ye[0]):ca=X==null?void 0:X.struct,ca=ca==null?void 0:ca.filter(oa=>(oa==null?void 0:oa.prop)!=="relatedId"),ca==null||ca.forEach(oa=>{var Za,Re;pl[oa.prop]=((Za=oa==null?void 0:oa.words)!=null&&Za[0]?(He==null?void 0:He[(Re=oa==null?void 0:oa.words)==null?void 0:Re[0]])??(He==null?void 0:He[oa==null?void 0:oa.prop]):He==null?void 0:He[oa==null?void 0:oa.prop])??""}),pl.id=(ta=ra==null?void 0:ra[0])==null?void 0:ta.id,delete pl.sort,delete pl.relatedId,{tableName:"content_"+(X==null?void 0:X.id),tableContents:[pl]}}else return}))==null?void 0:Ve.filter(X=>X);Ma=[...Ma,...ol];let Va=await A.quoteApi({platId:parseInt((me=hl==null?void 0:hl.value)==null?void 0:me.plat_id),type:"sonSyncs",related:[{menus:n!==""?yl.value+"/"+n:yl.value,groups:a==null?void 0:a.name}]});Va=(se=(N=Va==null?void 0:Va.data)==null?void 0:N.result)==null?void 0:se.filter(X=>!(Ma!=null&&Ma.find(ra=>(ra==null?void 0:ra.tableName)==="content_"+(X==null?void 0:X.id)))),Va=Va==null?void 0:Va.filter(X=>{var ra,ea;return!((X==null?void 0:X.fatherPath)!==""&&((ea=(ra=X==null?void 0:X.quote)==null?void 0:ra[0])==null?void 0:ea.menus)===(yl==null?void 0:yl.value))});let dl=(U=Va==null?void 0:Va.map(X=>{var ea,fe,ka,ha,Ye,ta;let ra=(ea=X==null?void 0:X.contents)==null?void 0:ea.filter(va=>{var pl,He,ca;return JSON.stringify(va==null?void 0:va.relatedId)!=="{}"&&(va==null?void 0:va.relatedId)!==""&&(va!=null&&va.relatedId)?(pl=va==null?void 0:va.relatedId)==null?void 0:pl.includes(parseInt(sl)):(va==null?void 0:va.sort)===((ca=(He=a==null?void 0:a.fixContent)==null?void 0:He[0])==null?void 0:ca.sort)});if((ra==null?void 0:ra.length)>0){let va=(fe=a==null?void 0:a.fixContent)==null?void 0:fe[0];va={...va,id:(ka=ra==null?void 0:ra[0])==null?void 0:ka.id};let pl={},He=va,ca;return Array.isArray((ha=X==null?void 0:X.struct)==null?void 0:ha[0])?ca=ue.getColumnChild((Ye=X==null?void 0:X.struct)==null?void 0:Ye[0]):ca=X==null?void 0:X.struct,ca=ca==null?void 0:ca.filter(oa=>(oa==null?void 0:oa.prop)!=="relatedId"),ca==null||ca.forEach(oa=>{var Za,Re;pl[oa.prop]=((Za=oa==null?void 0:oa.words)!=null&&Za[0]?(He==null?void 0:He[(Re=oa==null?void 0:oa.words)==null?void 0:Re[0]])??(He==null?void 0:He[oa==null?void 0:oa.prop]):He==null?void 0:He[oa==null?void 0:oa.prop])??""}),pl.id=(ta=ra==null?void 0:ra[0])==null?void 0:ta.id,delete pl.sort,delete pl.relatedId,{tableName:"content_"+(X==null?void 0:X.id),tableContents:[pl]}}else return}))==null?void 0:U.filter(X=>X);Ma=[...Ma,...dl],await A.pageBatchDeleteApi({platId:parseInt((Se=hl==null?void 0:hl.value)==null?void 0:Se.plat_id),changeContents:Ma});let rl=[];Ma==null||Ma.forEach(X=>{var ra;(ra=X==null?void 0:X.tableContents)==null||ra.forEach(ea=>{rl.push({id:"1",request_method:"Post",request_url:"/platform/page/delete",request_param:JSON.stringify(ea),request_result:"{}",is_delete:!1,request_table:X==null?void 0:X.tableName,request_type:"delete"})})}),await A.pageBatchAddApi({platId:parseInt((Le=hl==null?void 0:hl.value)==null?void 0:Le.plat_id),changeContents:[{tableName:"log",tableContents:rl}]})}if((a==null?void 0:a.buttonName)==="复制新增"){let Ma=await A.getPageDataApi({platId:parseInt((Fe=hl==null?void 0:hl.value)==null?void 0:Fe.plat_id),pageName:"menu"});if(Ma=(ia=Ma==null?void 0:Ma.data)==null?void 0:ia.result,Ma!=null&&Ma.find(el=>(el==null?void 0:el.father_name)===yl.value+"/")){gc.value=a,yc.value=Ma==null?void 0:Ma.filter(ol=>(ol==null?void 0:ol.father_name)===yl.value+"/");let el=(ee=(Ba=a==null?void 0:a.columns)==null?void 0:Ba.find(ol=>ol==null?void 0:ol.mainKey))==null?void 0:ee.prop,sl=(ie=(da=a==null?void 0:a.fixContent)==null?void 0:da[0])==null?void 0:ie[el];Dt.value=!0,Ki.value=[{prop:el,label:el,name:el,value:sl}]}else{let el=(fa=a==null?void 0:a.fixContent)==null?void 0:fa.map(Va=>{let dl={};for(let rl in Va)Array.isArray(Va==null?void 0:Va[rl])?dl[rl]=JSON.stringify(Va==null?void 0:Va[rl]):dl[rl]=Va==null?void 0:Va[rl];return dl.relatedId="",dl}),sl=[{tableName:(Ee=a==null?void 0:a.relatedContents)==null?void 0:Ee.find(Va=>Va==null?void 0:Va.includes("content")),tableContents:el}];await A.pageBatchAddApi({platId:parseInt((ne=hl==null?void 0:hl.value)==null?void 0:ne.plat_id),changeContents:sl});let ol=[];sl==null||sl.forEach(Va=>{var dl;(dl=Va==null?void 0:Va.tableContents)==null||dl.forEach(rl=>{ol.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(rl),request_result:"{}",is_delete:!1,request_table:Va==null?void 0:Va.tableName,request_type:"copyAdd"})})}),await A.pageBatchAddApi({platId:parseInt((Ae=hl==null?void 0:hl.value)==null?void 0:Ae.plat_id),changeContents:[{tableName:"log",tableContents:ol}]})}}if((a==null?void 0:a.buttonName)==="methodButton"){let Ma=((Ga=(ua=(We=a==null?void 0:a.columns)==null?void 0:We.map(fe=>fe==null?void 0:fe.filter))==null?void 0:ua.filter(fe=>fe!==""))==null?void 0:Ga[0])??"";Ma=ue.analyzeSplitToContent(Ma,","),Ma=(Ma==null?void 0:Ma.find(fe=>fe==null?void 0:fe.includes("@Filter")))??"";let el=(L=a==null?void 0:a.fixContent)==null?void 0:L.map(fe=>{let ka={};for(let ha in fe)Array.isArray(fe==null?void 0:fe[ha])?ka[ha]=JSON.stringify(fe==null?void 0:fe[ha]):ka[ha]=fe==null?void 0:fe[ha];return ka}),sl=await A.quoteApi({platId:parseInt((H=hl==null?void 0:hl.value)==null?void 0:H.plat_id),type:"fatherSyncs",related:[{menus:n!==""?yl.value+"/"+n:yl.value,groups:a==null?void 0:a.name}]});sl=(J=sl==null?void 0:sl.data)==null?void 0:J.result,sl=sl==null?void 0:sl.filter(fe=>{var ka,ha;return!((fe==null?void 0:fe.fatherPath)!==""&&((ha=(ka=fe==null?void 0:fe.quote)==null?void 0:ka[0])==null?void 0:ha.menus)===(yl==null?void 0:yl.value))});let ol=(he=(ve=a==null?void 0:a.columns)==null?void 0:ve[0])==null?void 0:he.prop,Va=(ga=el==null?void 0:el[0])==null?void 0:ga[ol],dl=[{tableName:(la=a==null?void 0:a.relatedContents)==null?void 0:la.find(fe=>fe==null?void 0:fe.includes("content")),tableContents:el}],rl=(te=sl==null?void 0:sl.map(fe=>{var ha,Ye,ta,va,pl;let ka=(ha=fe==null?void 0:fe.contents)==null?void 0:ha.filter(He=>{var ca;return(ca=Object.values(He))==null?void 0:ca.find(oa=>oa===Va)});if((ka==null?void 0:ka.length)>0){let He=el==null?void 0:el[0];He={...He,id:(Ye=ka==null?void 0:ka[0])==null?void 0:Ye.id};let ca={},oa=He,Za;return Array.isArray((ta=fe==null?void 0:fe.struct)==null?void 0:ta[0])?Za=ue.getColumnChild((va=fe==null?void 0:fe.struct)==null?void 0:va[0]):Za=fe==null?void 0:fe.struct,Za=Za==null?void 0:Za.filter(Re=>(Re==null?void 0:Re.prop)!=="relatedId"),Za==null||Za.forEach(Re=>{var Te,_l;ca[Re.prop]=((Te=Re==null?void 0:Re.words)!=null&&Te[0]?(oa==null?void 0:oa[(_l=Re==null?void 0:Re.words)==null?void 0:_l[0]])??(oa==null?void 0:oa[Re==null?void 0:Re.prop]):oa==null?void 0:oa[Re==null?void 0:Re.prop])??""}),ca.id=(pl=ka==null?void 0:ka[0])==null?void 0:pl.id,delete ca.sort,{tableName:"content_"+(fe==null?void 0:fe.id),tableContents:[ca]}}else return}))==null?void 0:te.filter(fe=>fe);dl=[...dl,...rl];let X=await A.quoteApi({platId:parseInt((ba=hl==null?void 0:hl.value)==null?void 0:ba.plat_id),type:"sonSyncs",related:[{menus:n!==""?yl.value+"/"+n:yl.value,groups:a==null?void 0:a.name}]});if(X=(Xe=(Ne=X==null?void 0:X.data)==null?void 0:Ne.result)==null?void 0:Xe.filter(fe=>!(dl!=null&&dl.find(ka=>(ka==null?void 0:ka.tableName)==="content_"+(fe==null?void 0:fe.id)))),X=X==null?void 0:X.filter(fe=>{var ka,ha;return!((fe==null?void 0:fe.fatherPath)!==""&&((ha=(ka=fe==null?void 0:fe.quote)==null?void 0:ka[0])==null?void 0:ha.menus)===(yl==null?void 0:yl.value))}),Ma&&Ma!==""){(Ma==null?void 0:Ma[(Ma==null?void 0:Ma.length)-1])===","&&(Ma=Ma==null?void 0:Ma.slice(0,(Ma==null?void 0:Ma.length)-1)),Ma=(Da=(Aa=Ma==null?void 0:Ma.replace("(",mo))==null?void 0:Aa.split(mo))==null?void 0:Da[1],Ma=Ma==null?void 0:Ma.slice(0,(Ma==null?void 0:Ma.length)-1),(Ma==null?void 0:Ma[0])==="*"&&(Ma="{"+(($a=(aa=Ma==null?void 0:Ma.replace("{",mo))==null?void 0:aa.split(mo))==null?void 0:$a[1])),Ma=(ke=Ma==null?void 0:Ma.replaceAll("{",""))==null?void 0:ke.replaceAll("}","");let fe=ue.calculatorAndToOr(Ma);fe=fe==null?void 0:fe[0];let ka;if((ae=Object.values(fe))!=null&&ae.some(ha=>(ha==null?void 0:ha[0])==="*")){let ha=(Oe=(ze=Fn.value)==null?void 0:ze.find(Ye=>(Ye==null?void 0:Ye.condition)==="child"))!=null&&Oe.value?(Zr==null?void 0:Zr.value)+"/"+((ya=(Me=Fn.value)==null?void 0:Me.find(Ye=>(Ye==null?void 0:Ye.condition)==="child"))==null?void 0:ya.value):Zr==null?void 0:Zr.value;ka=await Kr(ha,!1)}for(let ha in fe)if(((xa=fe==null?void 0:fe[ha])==null?void 0:xa[0])==="*"){let Ye=(_e=(Ue=(Je=fe[ha])==null?void 0:Je.slice(1,(qe=fe[ha])==null?void 0:qe.length))==null?void 0:Ue.split(":"))==null?void 0:_e[0],ta=(Oa=(de=fe[ha])==null?void 0:de.split(":"))==null?void 0:Oa[1],va=(La=ka==null?void 0:ka.filter(pl=>(pl==null?void 0:pl.name)===Ye))==null?void 0:La[0];va=(zl=(gl=va==null?void 0:va.compData)==null?void 0:gl.find(pl=>(pl==null?void 0:pl.key)==="tableContents"))==null?void 0:zl.contents,va=(tl=va==null?void 0:va[0])==null?void 0:tl[ta],fe[ha]=va}Ma=((jl=Object.values(fe))==null?void 0:jl[0])??""}let ra=(Pa=X==null?void 0:X.map(fe=>{var ha,Ye,ta,va,pl;let ka=(ha=fe==null?void 0:fe.contents)==null?void 0:ha.filter(He=>{var ca;return(ca=Object.values(He))==null?void 0:ca.find(oa=>oa===(Ma===""?Va:Ma))});if((ka==null?void 0:ka.length)>0){let He=el==null?void 0:el[0];He={...He,id:(Ye=ka==null?void 0:ka[0])==null?void 0:Ye.id};let ca={},oa=He,Za;return Array.isArray((ta=fe==null?void 0:fe.struct)==null?void 0:ta[0])?Za=ue.getColumnChild((va=fe==null?void 0:fe.struct)==null?void 0:va[0]):Za=fe==null?void 0:fe.struct,Za=Za==null?void 0:Za.filter(Re=>(Re==null?void 0:Re.prop)!=="relatedId"),Za==null||Za.forEach(Re=>{var _l,Ll,Wl,Kl;let Te=(_l=a==null?void 0:a.columns)==null?void 0:_l.find(Ql=>{var pr,Rl,fr;return((Rl=(pr=Ql==null?void 0:Ql.words)==null?void 0:pr[0])==null?void 0:Rl.replaceAll("'",""))===(Re==null?void 0:Re.prop)&&((fr=Ql==null?void 0:Ql.functionRelatedWords)==null?void 0:fr.length)>0});Te=(Ll=Te==null?void 0:Te.prop)==null?void 0:Ll.replaceAll("'",""),ca[Re.prop]=((Wl=Re==null?void 0:Re.words)!=null&&Wl[0]?(oa==null?void 0:oa[(Kl=Re==null?void 0:Re.words)==null?void 0:Kl[0]])??(oa==null?void 0:oa[Re==null?void 0:Re.prop])??(oa==null?void 0:oa[Te]):(oa==null?void 0:oa[Re==null?void 0:Re.prop])??(oa==null?void 0:oa[Te]))??void 0}),ca.id=(pl=ka==null?void 0:ka[0])==null?void 0:pl.id,delete ca.sort,{tableName:"content_"+(fe==null?void 0:fe.id),tableContents:[ca]}}else return}))==null?void 0:Pa.filter(fe=>fe);dl=[...dl,...ra],await A.pageBatchUpdateApi({platId:parseInt((Il=hl==null?void 0:hl.value)==null?void 0:Il.plat_id),changeContents:dl});let ea=[];dl==null||dl.forEach(fe=>{var ka;(ka=fe==null?void 0:fe.tableContents)==null||ka.forEach(ha=>{ea.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(ha),request_result:"{}",is_delete:!1,request_table:fe==null?void 0:fe.tableName,request_type:"method"})})}),await A.pageBatchAddApi({platId:parseInt((Vl=hl==null?void 0:hl.value)==null?void 0:Vl.plat_id),changeContents:[{tableName:"log",tableContents:ea}]})}Br.setRefreshCurStructure(!0),await xt(a)},kt=async(a,l,r)=>{var t;let n=a==null?void 0:a.find(s=>(s==null?void 0:s.id)===l);if(n){let s=(t=n.compData)==null?void 0:t.map(v=>{var f;if((v==null?void 0:v.key)==="tableContents"){let d={...v,contents:r};return d.contents=(f=(d==null?void 0:d.contents)??[])==null?void 0:f.map(y=>{let g={};for(let c in y)JSON.stringify(y==null?void 0:y[c])==="{}"?g[c]="":g[c]=y==null?void 0:y[c];return g}),d}return v});return n.compData=await Et(s,{}),a=a==null?void 0:a.map(v=>((v==null?void 0:v.id)===(n==null?void 0:n.id)&&(v=n),v)),a}else{let s=a==null?void 0:a.filter(f=>{var d;return(f==null?void 0:f.children)&&((d=f==null?void 0:f.children)==null?void 0:d.length)>0||(f==null?void 0:f.comp)==="Tabs"}),v=s==null?void 0:s.map(async f=>{var d;return f!=null&&f.children&&((d=f==null?void 0:f.children)==null?void 0:d.length)>0?f.children=await kt(f==null?void 0:f.children,l,r):f.compData=await kt(f==null?void 0:f.compData,l,r),f});return s=await Promise.all(v),s}},xt=async a=>{var s,v,f,d,y,g,c;let l=(s=a==null?void 0:a.relatedContents)==null?void 0:s.filter(D=>D==null?void 0:D.includes("content_"));if(!l)return;let r=await A.getAllTables({platId:parseInt((v=hl==null?void 0:hl.value)==null?void 0:v.plat_id),tableNames:l??[]});if(r=(d=(f=r==null?void 0:r.data)==null?void 0:f.result)==null?void 0:d[0],!r||!Array.isArray(r))return;r=r==null?void 0:r.map(D=>{D==null||delete D.source_table;const I={};for(let k in D){const W=D==null?void 0:D[k],M=W&&Object.prototype.toString.call(W)==="[object Object]"&&Object.keys(W).length===0,R=Array.isArray(W)&&W.length===0;W==null||W==="{}"||M||R?I[k]="":I[k]=W}return I});let n=(g=(y=l==null?void 0:l[0])==null?void 0:y.split("_"))==null?void 0:g[1],t=await kt(tr.value,n,r);tr.value=(c=tr.value)==null?void 0:c.map(D=>{var I,k;return(I=t==null?void 0:t[0])!=null&&I.tabInform&&((k=t==null?void 0:t[0])==null?void 0:k.tabInform)===(D==null?void 0:D.tabInform)?D=t==null?void 0:t[0]:(D!=null&&D.name?(D==null?void 0:D.name)===(t==null?void 0:t.name):(D==null?void 0:D.id)===(t==null?void 0:t.id))&&(D=t),D})},D0=a=>{let l=Ki.value;Ki.value=l==null?void 0:l.map(r=>(r.value=a==null?void 0:a[r==null?void 0:r.prop],r))},B0=async()=>{var D,I,k,W,M,R,j,E,w,x;let a=gc.value,l=yc.value,r=(I=(D=a==null?void 0:a.columns)==null?void 0:D.find(b=>b==null?void 0:b.mainKey))==null?void 0:I.prop,n=(W=(k=Ki.value)==null?void 0:k[0])==null?void 0:W.value,t=(M=a==null?void 0:a.fixContent)==null?void 0:M.map(b=>{var $;let _={};for(let F in b)Array.isArray(b==null?void 0:b[F])?_[F]=JSON.stringify(b==null?void 0:b[F]):_[F]=b==null?void 0:b[F];return($=a==null?void 0:a.columns)==null||$.forEach(F=>{(F==null?void 0:F.formType)==="Upload"&&(_==null?void 0:_[F==null?void 0:F.prop])===""&&(_[F==null?void 0:F.prop]="{}")}),_[r]=n,_}),s=[{tableName:(R=a==null?void 0:a.relatedContents)==null?void 0:R.find(b=>b==null?void 0:b.includes("content")),tableContents:t}];await A.pageBatchAddApi({platId:parseInt((j=hl==null?void 0:hl.value)==null?void 0:j.plat_id),changeContents:s}),l=l==null?void 0:l.filter(b=>{var _,$,F;return(F=b==null?void 0:b.object_name)==null?void 0:F.includes(($=(_=a==null?void 0:a.fixContent)==null?void 0:_[0])==null?void 0:$[r])});let v=[],f=new Map;l==null||l.forEach(b=>{v.push(`content_${b==null?void 0:b.object_id}`),v.push(`struct_${b==null?void 0:b.object_id}`),f.set(b==null?void 0:b.object_id,b)});let d=await A.getAllTables({platId:parseInt((E=hl==null?void 0:hl.value)==null?void 0:E.plat_id),tableNames:v??[]});d=(w=d==null?void 0:d.data)==null?void 0:w.result;let y=[],g=[];d=ue.chunk(d,2),d==null||d.forEach(b=>{var F,Y,oe,ye,Ie,V,pe,Q,ce,Be,Ve,me,N,se,U,Se,Le,Fe,ia,Ba,ee;let _=f.get((ye=(oe=(Y=(F=b==null?void 0:b[1])==null?void 0:F[0])==null?void 0:Y.source_table)==null?void 0:oe.split("_"))==null?void 0:ye[1]),$=(pe=(V=(Ie=_==null?void 0:_.object_name)==null?void 0:Ie.split("/"))==null?void 0:V.filter((da,ie)=>{var fa,Ee;return((Ee=(fa=_==null?void 0:_.object_name)==null?void 0:fa.split("/"))==null?void 0:Ee.length)-1!==ie}))==null?void 0:pe.join("/");if($=$+"/"+n,g!=null&&g.find(da=>(da==null?void 0:da.path)===$)||g.push({fatherPath:_==null?void 0:_.father_name,isShow:_==null?void 0:_.is_show,path:$}),((ce=(Q=b==null?void 0:b[1])==null?void 0:Q[0])==null?void 0:ce.类型)==="Table"){let da=((me=(Ve=(Be=b==null?void 0:b[1])==null?void 0:Be[0])==null?void 0:Ve.结构)==null?void 0:me.contents)??[],ie=ll.safeClone(da);Array.isArray(ie==null?void 0:ie[0])&&(ie=ue.getColumnChild(ie==null?void 0:ie[0]));let fa=[];if(((N=b==null?void 0:b[0])==null?void 0:N.length)>0&&(fa=(se=b==null?void 0:b[0])==null?void 0:se.map(Ee=>ie==null?void 0:ie.map(Ae=>(Ae=(Ee==null?void 0:Ee[Ae==null?void 0:Ae.prop])??"",Ae)))),y!=null&&y.find(Ee=>(Ee==null?void 0:Ee.key)===$)){let Ee=(U=y==null?void 0:y.find(Ae=>(Ae==null?void 0:Ae.key)===$))==null?void 0:U.contents;Ee.push({isShow:_==null?void 0:_.is_show,filter:((Fe=(Le=(Se=b==null?void 0:b[1])==null?void 0:Se[0])==null?void 0:Le.引用)==null?void 0:Fe.contents)??"",key:"Table",name:Object.values(_==null?void 0:_.name),tableColumns:da,tableContents:fa});let ne=y==null?void 0:y.findIndex(Ae=>(Ae==null?void 0:Ae.key)===$);y[ne].contents=Ee}else y.push({key:$,contents:[{isShow:_==null?void 0:_.is_show,filter:((ee=(Ba=(ia=b==null?void 0:b[1])==null?void 0:ia[0])==null?void 0:Ba.引用)==null?void 0:ee.contents)??"",key:"Table",name:Object.values(_==null?void 0:_.name),tableColumns:da,tableContents:fa}]})}});let c=[];c.push({key:"menuPath",contents:g}),c=[...c,...y],await A.createPlatFormDataApi({platId:parseInt((x=hl==null?void 0:hl.value)==null?void 0:x.plat_id),changeData:c}),Dt.value=!1,Br.setRefreshTable(!0)},No=async(a,l)=>{},Ao=async a=>{tr.value=await ue.getDeepDiffItems(a),Br.setItemData(tr.value),Br.setOriginalData(tr.value)};e.ref();const T0=e.ref(null),N0=()=>{var a,l;console.log("倒计时结束时"),A.ElMessageBox.alert(`超时未提交,【${(l=(a=yl.value)==null?void 0:a.split("/"))==null?void 0:l[0]}】失败`,"告警",{confirmButtonText:"确认",type:"error"})},wc=e.ref([]),A0=e.computed(()=>{var a,l;return(l=(a=gt.value)==null?void 0:a[yl.value])==null?void 0:l.filter(r=>{var n;return((n=r==null?void 0:r.key)==null?void 0:n.type)==="gridLayout"})});e.watch(()=>[y0.value],()=>{dn.setSelectTitle([]),dn.setChooseTitle([])},{deep:!0});e.watch(()=>Bo.value,async(a,l)=>{var n,t,s,v,f,d;let r=(n=Bo.value)==null?void 0:n.filter(y=>(y==null?void 0:y.condition)==="child"&&(y==null?void 0:y.value)!==""&&(y==null?void 0:y.parentContent)!==Zr.value);if((r==null?void 0:r.length)>0){Ir.setContentLoading(!0);let y=((t=r==null?void 0:r[0])==null?void 0:t.relatedContent)??(yl==null?void 0:yl.value),g=y+"/"+((s=r==null?void 0:r[0])==null?void 0:s.value),c=!!((v=r==null?void 0:r[0])!=null&&v.parentContent),D=await Kr(g,c,{originPath:y});D=(f=D==null?void 0:D.filter(W=>W))==null?void 0:f.map(W=>(W.isShow=!0,W)),console.log(D,"loadingContents");let I=await ue.getDeepDiffItems(D),k=I==null?void 0:I.filter(W=>W==null?void 0:W.choice);Oo.setSelectTab((d=k==null?void 0:k[0])==null?void 0:d.choiceName),I=I==null?void 0:I.filter(W=>{var M;return!(W!=null&&W.choiceName)||(W==null?void 0:W.choiceName)===((M=k==null?void 0:k[0])==null?void 0:M.choiceName)}),tr.value=I,Ir.setContentLoading(!1)}});const z0=(a,l)=>{setTimeout(async()=>{var f,d,y;let r=(f=Bo.value)==null?void 0:f.filter(g=>(g==null?void 0:g.condition)==="child"&&(g==null?void 0:g.value)!==""&&(g==null?void 0:g.parentContent)!==Zr.value),n=yl==null?void 0:yl.value,t=yl==null?void 0:yl.value;(r==null?void 0:r.length)>0&&(t=((d=r==null?void 0:r[0])==null?void 0:d.relatedContent)??(yl==null?void 0:yl.value),n=t+"/"+((y=r==null?void 0:r[0])==null?void 0:y.value));let s=await Kr(n,!1,{originPath:t});s=s==null?void 0:s.map(g=>(g.isShow=!0,g));let v=await ue.getDeepDiffItems(s);tr.value=v==null?void 0:v.filter(g=>!(g!=null&&g.step)||(g==null?void 0:g.step)===(a==null?void 0:a.title))},10)},M0=a=>{setTimeout(async()=>{var v,f,d;let l=(v=Bo.value)==null?void 0:v.filter(y=>(y==null?void 0:y.condition)==="child"&&(y==null?void 0:y.value)!==""&&(y==null?void 0:y.parentContent)!==Zr.value),r=yl==null?void 0:yl.value,n=yl==null?void 0:yl.value;(l==null?void 0:l.length)>0&&(n=((f=l==null?void 0:l[0])==null?void 0:f.relatedContent)??(yl==null?void 0:yl.value),r=n+"/"+((d=l==null?void 0:l[0])==null?void 0:d.value));let t=await Kr(r,!1,{originPath:n});t=t==null?void 0:t.map(y=>(y.isShow=!0,y)),Oo.setSelectTab(a);let s=await ue.getDeepDiffItems(t);tr.value=s==null?void 0:s.filter(y=>!(y!=null&&y.choiceName)||(y==null?void 0:y.choiceName)===a)},10)};e.watch(()=>m0.value,a=>{a!=null&&a.length||(tr.value=[])},{immediate:!0});e.watch(()=>[yl.value],async a=>{var s,v,f,d;if(!yl.value)return;if(yl.value==="/"){tr.value=[];return}Ir.setCurrentMenuPath(yl.value),Br.setLockingPage(""),tr.value=[];let l=e.getCurrentInstance();(s=l==null?void 0:l.scope)==null||s.stop(),l=null,Bi.value=!1,Ir.setContentLoading(!0),mc.value=!0;let r=a==null?void 0:a[0],n=r,t=(v=Fn.value)==null?void 0:v.filter(y=>(y==null?void 0:y.condition)==="child"&&(y==null?void 0:y.value)!==""&&(y==null?void 0:y.parentContent)!==yl.value&&!(y!=null&&y.relatedContent));if((t==null?void 0:t.length)>0&&(r=r+"/"+((f=t==null?void 0:t[0])==null?void 0:f.value)),r==="系统管理/日志管理")tr.value=await d0("log");else{let y=await Kr(r,!0,{originPath:n});y=y==null?void 0:y.map(D=>(D.isShow=!0,D));let g=await ue.getDeepDiffItems(y),c=g==null?void 0:g.filter(D=>D==null?void 0:D.choice);Oo.setSelectTab((d=c==null?void 0:c[0])==null?void 0:d.choiceName),tr.value=g==null?void 0:g.filter(D=>{var I;return!(D!=null&&D.choiceName)||(D==null?void 0:D.choiceName)===((I=c==null?void 0:c[0])==null?void 0:I.choiceName)})}Ir.setContentLoading(!1),Br.setExtraContents([]),dn.setSelectIndex(""),dn.setSelectMenu(""),Br.setItemData(tr.value),Br.setOriginalData(tr.value),Br.setRefreshTable(!1),e.nextTick(()=>{jn.value=jn.value++,Bi.value=!0})},{immediate:!0});e.watch(()=>[gs.value],async()=>{var a,l,r,n;if(gs.value){tr.value=[];let t=e.getCurrentInstance();(a=t==null?void 0:t.scope)==null||a.stop(),t=null,Bi.value=!1,Ir.setContentLoading(!0),mc.value=!0;let s=Zr==null?void 0:Zr.value,v=s,f=(l=Fn.value)==null?void 0:l.filter(c=>(c==null?void 0:c.condition)==="child"&&(c==null?void 0:c.value)!==""&&(c==null?void 0:c.parentContent)!==(Zr==null?void 0:Zr.value));(f==null?void 0:f.length)>0&&(s=s+"/"+((r=f==null?void 0:f[0])==null?void 0:r.value));let d=await Kr(s,!0,{originPath:v});d=d==null?void 0:d.map(c=>(c.isShow=!0,c));let y=await ue.getDeepDiffItems(d),g=y==null?void 0:y.filter(c=>c==null?void 0:c.choice);if(Oo.setSelectTab((n=g==null?void 0:g[0])==null?void 0:n.choiceName),tr.value=y==null?void 0:y.filter(c=>{var D;return!(c!=null&&c.choiceName)||(c==null?void 0:c.choiceName)===((D=g==null?void 0:g[0])==null?void 0:D.choiceName)}),Ir.setContentLoading(!1),Br.setExtraContents([]),dn.setSelectIndex(""),dn.setSelectMenu(""),Br.setItemData(tr.value),Br.setOriginalData(tr.value),Br.setRefreshTable(!1),(f==null?void 0:f.length)>0){let c=[...Fn.value,...f];dn.setSelectTitle(c)}e.nextTick(()=>{jn.value=jn.value++,Bi.value=!0})}},{immediate:!0,deep:!0});const I0=async()=>{Ir.setLinkMenuInfo(null),Ir.setActiveMenuPath(v0.value),tr.value=null,Br.setRouteToChildPath(""),Ir.setChildMenu("")},O0=a=>new RegExp("button","i").test(a),L0=a=>/^[\u4e00-\u9fa5]+\/[\u4e00-\u9fa5]+\^(.+)$/.test(a),_c=a=>{if(L0(a)){const l=a==null?void 0:a.split("^");(l==null?void 0:l.length)>0&&(l!=null&&l[0])&&Ir.setLinkMenuInfo({path:l==null?void 0:l[0],data:l==null?void 0:l[1]})}},Sc=async(a,l,r)=>{var D,I,k,W,M,R,j,E,w,x,b,_;let n="",t="";for(let $ in l)(l==null?void 0:l[$])===a&&(t=$);r==null||r.forEach($=>{($==null?void 0:$.prop)===t&&(n=$==null?void 0:$.fatherPath)});let s=n===""?yl.value:n;n!==""&&Ir.setCurrentMenuPath(s),Ir.setCurrentMenuPath(s+"/"+a),Ir.setContentLoading(!0),tr.value=await Kr(s+"/"+a,!0,{originPath:s+"/",row:l});let v=await Kr(s,!1),f=(D=v==null?void 0:v.filter($=>($==null?void 0:$.comp)==="Table"))==null?void 0:D[0],d=((M=(W=(k=(I=f==null?void 0:f.compData)==null?void 0:I.find($=>($==null?void 0:$.key)==="header"))==null?void 0:k.contents)==null?void 0:W[0])==null?void 0:M.prop)??((x=(w=(E=(j=(R=f==null?void 0:f.compData)==null?void 0:R.find($=>($==null?void 0:$.key)==="header"))==null?void 0:j.contents)==null?void 0:E[0])==null?void 0:w[0])==null?void 0:x.prop),y=(_=(b=f==null?void 0:f.compData)==null?void 0:b.find($=>($==null?void 0:$.key)==="tableContents"))==null?void 0:_.contents;y=y==null?void 0:y.map($=>({label:$==null?void 0:$[d],value:$==null?void 0:$[d]}));let g=Fn.value,c={value:a,condition:"child",options:y,relatedContent:s,isShow:!0};g=g==null?void 0:g.filter($=>($==null?void 0:$.condition)!=="child"),g.push(c),dn.setSelectTitle(g),dn.setChooseTitle([c]),Ir.setContentLoading(!1),Br.setExtraContents([]),dn.setSelectIndex(""),dn.setSelectMenu(""),Br.setItemData(tr.value),Br.setOriginalData(tr.value)},R0=a=>{kc.value=a},Si=e.reactive({index:0,comp:null}),$0=e.computed(()=>{var a;return(a=tr.value)==null?void 0:a.map((l,r)=>({id:l.id,name:l.name,status:V0(l,r)}))}),Ec=(a,l)=>{var d,y,g,c,D;const r=l?a:a-2,n=(d=tr.value)==null?void 0:d[r],t=(g=(y=n==null?void 0:n.compData)==null?void 0:y.find(I=>(I==null?void 0:I.key)==="header"))==null?void 0:g.contents,s=t==null?void 0:t.findIndex(I=>(I==null?void 0:I.isMainKey)&&(I==null?void 0:I.label)!=="操作"),v=s===-1?0:s,f=(D=(c=n==null?void 0:n.compData)==null?void 0:c.find(I=>(I==null?void 0:I.key)==="tableContents"))==null?void 0:D.contents;return{valid:f==null?void 0:f.every(I=>I==null?void 0:I[v+1]),length:(f==null?void 0:f.length)||0}},V0=(a,l)=>{var n;let r="process";if(((n=a==null?void 0:a.comp)==null?void 0:n.toUpperCase())==="TABLE"){const{valid:t,length:s}=Ec(l,!0);Si.index===l?r="process":s===0?r="wait":r=t?"success":"error"}return r},Cc=a=>{var r,n,t,s,v;const l=a+1;if(l>1&&((t=(n=(r=tr.value)==null?void 0:r[a])==null?void 0:n.comp)==null?void 0:t.toUpperCase())==="TABLE"){const{valid:f}=Ec(l);f?(Si.index=l,Si.comp=(s=tr.value)==null?void 0:s[a]):Ha.ElMessage({showClose:!0,type:"warning",message:"当前流程有输入未完成"})}else Si.index=l,Si.comp=(v=tr.value)==null?void 0:v[a]},Dc=e.computed(()=>{var a,l;return(l=(a=bc.value)==null?void 0:a[0])==null?void 0:l.isStepLayout});e.watch(()=>Dc.value,a=>{a&&Cc(0)},{immediate:!0});const F0={class:"table-content"},P0={class:"menu-config-wrap"},j0=["onClick"],H0={key:0,class:"viewport-wrap"},U0=["onClick"],q0={title:"选择显示列信息"},W0={key:0,class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},K0=["title"],G0={class:"col-operate-wrap"},Y0={key:0,class:"col-operate-radio-wrapper"},J0={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},X0={key:0,style:{display:"flex","justify-content":"center","align-items":"center"}},Z0={class:"pop-view"},Q0={class:"pop-wrapper"},e3={class:"file-list-pop"},a3=["title","onClick"],l3=["onClick"],r3=["onClick"],n3={key:1,style:{display:"flex","justify-content":"flex-end",gap:"8px","margin-top":"8px"}},i3={class:"form-content"},o3={key:0,class:"dialog-footer"},t3={class:"dialog-footer"},s3={class:"ocr-dialog-content"},c3={class:"ocr-steps"},u3={key:0,class:"ocr-action-buttons"},d3={key:1,class:"ocr-preview-area"},p3={class:"ocr-file-grid"},f3={class:"file-thumbnail"},h3=["src"],v3={key:1,class:"thumbnail-placeholder"},m3={class:"progress-svg",viewBox:"0 0 36 36"},y3=["stroke","stroke-width","stroke-dasharray"],g3={key:0,class:"progress-icon"},b3={key:1,class:"progress-icon"},k3=["onClick"],x3={class:"file-name"},w3={key:0,class:"ocr-recognize-button"},_3={key:2,class:"ocr-progress-section"},S3={key:3,class:"ocr-confirm-area"},E3={class:"ocr-preview-tip"},C3={class:"ocr-preview-table"},D3={style:{display:"flex","align-items":"center",gap:"8px"}},B3={key:0},T3={key:4,class:"ocr-success-area"},N3={key:0,class:"ocr-dialog-footer"},A3={class:"form-content"},z3={style:{width:"100%",margin:"0","font-size":"14px","font-weight":"600"}},M3={style:{display:"flex","justify-content":"space-between",gap:"8px"}},I3={style:{display:"flex"}},ks="ss-ocr-upload-history",O3="ss-ocr-cert-history-v1",L3={__name:"index",props:{pageLayout:{type:String,default:"vertical"},related:{type:Array,default:[]},level:{type:Number,default:1},compName:{type:String,default:"",required:!1},compNames:{type:Array,default:()=>[],required:!1},groupNames:{type:Array,default:()=>[],required:!1},compItem:{type:Object,default:()=>{}},operatingForm:{type:Object,default:()=>{}},cacheNewData:{type:Object,default:()=>{}},config:Object,parentTableId:{type:Number,default:0},itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,isDevMode:Boolean,changedContent:{type:Object,default:()=>{}},showHeader:{type:Boolean,default:!0},allowSelect:{type:Boolean,default:!0},allowOperate:{type:Boolean,default:!0},allMapContents:{type:Object,default:()=>{}}},emits:["getSliceContLength","clickMainKey","change","contentChange","onButtonClick","contentClick","pageChange","rowClick","routeUrl"],setup(a,{emit:l}){var Vt;const r=e.ref([]),n=Ct(A.pinia),t=e.ref(null),s=e.ref(new Set),v=e.ref(new Map),f=e.ref(!1),d=e.ref(new Map),y=new Map,g=e.ref(new Map),c=a,D=e.ref((c==null?void 0:c.allowSelect)??!0),I=e.ref(((Vt=c==null?void 0:c.config)==null?void 0:Vt.showIndex)??!0),k=e.ref(),W=e.ref(!0),M=e.ref(!1),R=e.ref([]),j={sortable:"switch",filterable:"switch",showSummary:"switch",operable:"switch",fixed:"radio"},E=e.ref([{label:"排序",value:"sortable",checked:!1},{label:"合计",value:"showSummary",checked:!1},{type:"radio",label:"固定",value:"fixed",checked:"",options:[{label:"无",value:!1},{label:"左",value:"left"},{label:"右",value:"right"}]}]),w=ue.useOriginalState(A.pinia);let x="$R";const{originalPath:b}=A.storeToRefs(w),_=b.value,$=e.computed(()=>{var h;const u=(h=ue.getAllLeafNodes(V.value)||[])==null?void 0:h.filter(B=>(B==null?void 0:B.type)!=="operate"&&(B==null?void 0:B.label)!=="操作"&&(B==null?void 0:B.prop)!=="operate");return u.length>0?u.every(B=>!!(B!=null&&B.sortable)):!1});e.computed(()=>{var h;return(h=V.value)==null?void 0:h.every(B=>B==null?void 0:B.filterable)}),e.computed(()=>{var h;return(h=V.value)==null?void 0:h.every(B=>B==null?void 0:B.operable)});const F=e.ref(!0),Y=e.ref([]),oe=e.reactive({column:{},status:!1,text:"合计"}),ye=e.reactive({currentPage:1,pageSize:10,total:0,pageSizes:[5,10,20]}),Ie=l,V=e.ref([]),pe=e.ref([]),Q=e.ref([]),ce=e.reactive({prop:"",order:null}),Be=e.ref([]),Ve=e.ref(!1),me=e.ref(!1),N=e.ref(null),{isUseBackdrop:se,initTrackFileType:U,getFileExtension:Se,setData:Le,getFileInfo:Fe,getFilesInfo:ia}=So.useThreeSystem(),Ba=e.ref([]),ee=e.ref(!1),da=e.ref(),ie=A.useMenuState(),{importLoading:fa,activeMenuPath:Ee,contentLoading:ne,linkMenuInfo:Ae}=A.storeToRefs(ie),We=ue.useTableComp(A.pinia),ua=A.useModelComp(A.pinia),Ga=Hn(A.pinia),{extraContents:L,cacheUpdatingData:H,tableViewContents:J,tableLoading:ve,pageMapState:he,lockingPage:ga}=A.storeToRefs(ua),{selectTab:la}=A.storeToRefs(Ga),{compType:te,hasEditable:ba}=Ys.useRole(),Ne=e.ref([]),Xe=e.ref([]),Aa=e.ref(new Map);e.ref(!1);const Da=e.ref("");e.ref();const aa=e.ref(!0),$a=e.ref(0),ke=e.ref(!0),ae=e.ref(""),ze=e.ref(!1),Oe=e.ref(null);e.ref([]);const Me=e.ref({label:"查看三维模型"}),ya=e.ref(!1),xa=e.ref(),qe=e.ref([]),Je=e.ref([]),Ue=e.ref(!1),_e=e.ref([]),de=e.ref([]),Oa=e.ref([]),La=e.ref([]),gl=e.ref([]),zl=()=>{try{const u=localStorage.getItem(ks),h=u?JSON.parse(u):[];gl.value=Array.isArray(h)?h:[]}catch{gl.value=[]}},tl=()=>{try{localStorage.setItem(ks,JSON.stringify(gl.value||[]))}catch{}},jl=u=>{var re,le,q;if(!u)return;const h=u.url||((re=u==null?void 0:u.uploadResult)==null?void 0:re.url)||"",B=u.name||((le=u==null?void 0:u.uploadResult)==null?void 0:le.name)||((q=u==null?void 0:u.uploadResult)==null?void 0:q.fileName)||"";if(!h&&!B)return;const z={name:B,url:h,ts:Date.now()},P=String(z.name||"").trim().toLowerCase(),C=(gl.value||[]).findIndex(xe=>String((xe==null?void 0:xe.name)||"").trim().toLowerCase()===P);C>-1&&gl.value.splice(C,1),gl.value.unshift(z),gl.value.length>20&&(gl.value=gl.value.slice(0,20)),tl()};zl();const Pa=(u,h)=>`${O3}:${String(u??"")}:${String(h??"")}`,Il=(u,h)=>{try{const B=sessionStorage.getItem(Pa(u,h)),z=B?JSON.parse(B):[];return Array.isArray(z)?z:[]}catch{return[]}},Vl=(u,h,B)=>{try{sessionStorage.setItem(Pa(u,h),JSON.stringify(Array.isArray(B)?B:[]))}catch{}},Ma=(u,h,B)=>{if(!h)return;const z=Il(u,h),P=[B,...z||[]].filter(Boolean).slice(0,1);return Vl(u,h,P),P},el=(u,h,B)=>{if(!h||!B)return;const z=Pa(u,h),P=Pa(u,B);try{const C=sessionStorage.getItem(z);if(!C)return;const re=(()=>{try{const xe=JSON.parse(C);return Array.isArray(xe)?xe:[]}catch{return[]}})(),le=Il(u,B),q=[...re,...le||[]].filter(Boolean).sort((xe,Ce)=>Number((Ce==null?void 0:Ce.ts)||0)-Number((xe==null?void 0:xe.ts)||0)).slice(0,1);sessionStorage.setItem(P,JSON.stringify(q)),sessionStorage.removeItem(z)}catch{}},sl=e.ref(!1),ol=e.ref(!1),Va=e.ref([]),dl=e.ref(null);e.ref(!1),e.ref([]),e.ref(""),e.ref("");const rl=e.ref(!1),X=e.ref([]),ra=e.ref(1),ea=e.ref(new Map),fe=e.ref(new Map),ka=e.ref(0),ha=e.ref(!1),Ye=e.ref([]),ta=e.ref([]),va=u=>{var h;try{const B=(h=ue.getAllLeafNodes(V.value)||[])==null?void 0:h.filter(z=>(z==null?void 0:z.type)!=="operate"&&(z==null?void 0:z.label)!=="操作"&&(z==null?void 0:z.prop)!=="operate");return(B==null?void 0:B.find(z=>(z==null?void 0:z.prop)===u||(z==null?void 0:z.label)===u))||null}catch{return null}},pl=u=>{const h=va(u),B=(h==null?void 0:h.formType)||(h==null?void 0:h.columnType)||"Input";return ll.getComponent(B)||ll.getComponent("Input")},He=e.ref([]),ca=e.ref(null),oa=e.ref([]),Za=e.ref(null),Re=e.ref(""),Te=e.ref(!1),_l=e.ref([]),Ll=e.ref(""),Wl=e.ref(!1),Kl=e.ref([]),Ql=e.ref([]),pr=e.ref([]),Rl=e.ref(null),fr=e.ref([]),$r=e.ref("");e.computed(()=>{var u;try{const h=(u=ue.getAllLeafNodes(V.value)||[])==null?void 0:u.filter(z=>(z==null?void 0:z.type)!=="operate"&&(z==null?void 0:z.label)!=="操作"&&(z==null?void 0:z.prop)!=="operate"),B=new Map;return h==null||h.forEach(z=>{z!=null&&z.label&&(z!=null&&z.prop)&&B.set(z.label,z.prop)}),B.get("编号")||""}catch{return""}});const Hl=e.computed(()=>{var u;try{const h=(u=ue.getAllLeafNodes(V.value)||[])==null?void 0:u.filter(z=>(z==null?void 0:z.type)!=="operate"&&(z==null?void 0:z.label)!=="操作"&&(z==null?void 0:z.prop)!=="operate"),B=new Map;return h==null||h.forEach(z=>{z!=null&&z.label&&(z!=null&&z.prop)&&B.set(z.label,z.prop)}),B.get("名称")||""}catch{return""}}),ar=e.computed(()=>{var u;try{const h=(u=ue.getAllLeafNodes(V.value)||[])==null?void 0:u.filter(z=>(z==null?void 0:z.type)!=="operate"&&(z==null?void 0:z.label)!=="操作"&&(z==null?void 0:z.prop)!=="operate"),B=new Map;return h==null||h.forEach(z=>{z!=null&&z.label&&(z!=null&&z.prop)&&B.set(z.label,z.prop)}),B.get("制造厂")||""}catch{return""}}),Vr=()=>{Wl.value=!1,Kl.value=[],Ql.value=[],pr.value=[],Rl.value=null,fr.value=[],$r.value=""},Tr=u=>u==null?!1:typeof u=="string"?u.trim()!=="":Array.isArray(u)?u.length>0:!0,Fr=(u,h)=>{const B=(u==null?void 0:u.ocrRow)||{};for(const P of Object.keys(B))P==="id"||P==="_isOCRRow"||P==="_ocrTableId"||Tr(B[P])&&(h[P]=B[P]);const z=Xe.value.find(P=>P.id===h.id);if(z)for(const P of Object.keys(B))P==="id"||P==="_isOCRRow"||P==="_ocrTableId"||Tr(B[P])&&(z[P]=B[P]);Aa.value&&Aa.value.set(h.id,h),Ma(c==null?void 0:c.index,h.id,u==null?void 0:u.versionItem),Ql.value=[...Ql.value||[],JSON.parse(JSON.stringify(h))]},Mr=async(u,h=null)=>{var B,z,P,C,re,le,q;try{const xe=(B=ue.getAllLeafNodes(V.value)||[])==null?void 0:B.filter(Sa=>(Sa==null?void 0:Sa.type)!=="operate"&&(Sa==null?void 0:Sa.label)!=="操作"&&(Sa==null?void 0:Sa.prop)!=="operate"),Ce=new Map;xe==null||xe.forEach(Sa=>{Sa!=null&&Sa.label&&(Sa!=null&&Sa.prop)&&Ce.set(Sa.label,Sa.prop)});const Ke=Ce.get("系统编号")||Ce.get("编号");if(!Ke){console.warn("未找到系统编号字段,跳过向检校记录表插入数据");return}const Pe=h||Rl.value;if((Array.isArray(Pe==null?void 0:Pe.result)?Pe.result:[]).length===0){console.warn("OCR识别结果为空,跳过向检校记录表插入数据");return}for(let Sa=0;Sa<u.length;Sa++){const Ia=u[Sa],za=Ia[Ke];if(!za){console.warn(`第 ${Sa+1} 条匹配行缺少系统编号,跳过`);continue}const Qe=`设备管理/试验设备/${za}`,Ja=await A.getPageDataApi({platId:parseInt((z=cl.value)==null?void 0:z.plat_id),pageName:Qe});if(!((P=Ja==null?void 0:Ja.data)!=null&&P.result)||!Array.isArray(Ja.data.result)){console.warn(`未找到详情页数据: ${Qe}`);continue}const _a=Ja.data.result.find(sa=>(sa==null?void 0:sa.property_name)==="校检记录");if(!_a){console.warn(`详情页 ${Qe} 中未找到校检记录表`);continue}const Xa=(C=_a.contents)==null?void 0:C.find(sa=>(sa==null?void 0:sa.key)&&sa.key.startsWith("content_"));if(!Xa||!Xa.key){console.warn("校检记录表中未找到 content item");continue}const ge=Xa.key,Ra=Array.isArray(Xa.value)?Xa.value:[];if(Ra.length>=5){const we=[...Ra].sort((pa,Na)=>{const al=Number((pa==null?void 0:pa.create_time)||0),Ua=Number((Na==null?void 0:Na.create_time)||0);return al-Ua})[0];we!=null&&we.id&&await A.pageBatchDeleteApi({platId:parseInt((re=cl.value)==null?void 0:re.plat_id),changeContents:[{tableName:ge,tableContents:[{id:we.id}]}]})}const wa=(le=xe==null?void 0:xe.find(sa=>(sa==null?void 0:sa.label)==="证书附件"))==null?void 0:le.prop,Ca=String(Date.now()),Ea={id:Ca},T=Ra[0]||{},G=new Date().toISOString().split("T")[0];if(Object.keys(T||{}).forEach(sa=>{if(sa!=="id"){if(sa==="证书附件"){Ea[sa]="";return}if(sa==="校检日期"||sa==="检校日期"){Ea[sa]=Ia[sa]||Ia.校检日期||Ia.检校日期||G;return}if(["校检周期","检校周期","校检结果","检校结果","计量状态","依据文件","证书编号"].includes(sa)){Ea[sa]=Ia[sa]??"";return}Ea[sa]=Ia[sa]??""}}),wa&&Ia[wa]){const sa=Ia[wa];if(Array.isArray(sa)&&sa.length>0)Ea.证书附件=JSON.stringify(sa.map(we=>({url:(we==null?void 0:we.url)||"",name:(we==null?void 0:we.name)||(we==null?void 0:we.fileName)||"",fileName:(we==null?void 0:we.fileName)||(we==null?void 0:we.name)||""})).filter(we=>we.url||we.name));else if(typeof sa=="string")try{const we=JSON.parse(sa);Ea.证书附件=sa}catch{Ea.证书附件=JSON.stringify([{url:sa,name:sa,fileName:sa}])}}console.log(ge,"tableName","inspectionRecordRow",Ea),await A.pageBatchAddApi({platId:parseInt((q=cl.value)==null?void 0:q.plat_id),changeContents:[{tableName:ge,tableContents:[Ea]}]});const $e=_a==null?void 0:_a.object_id;if($e&&Ca){const sa=wa&&Ia[wa]?Ia[wa]:null;let we=[],pa="",Na=!1;if(Array.isArray(sa)&&sa.length>0){we=sa.map(fl=>({name:(fl==null?void 0:fl.name)||(fl==null?void 0:fl.fileName)||"",url:(fl==null?void 0:fl.url)||""})).filter(fl=>fl.url||fl.name);const Ua=sa[0];pa=(Ua==null?void 0:Ua.url)||"";const ul=(Ua==null?void 0:Ua.name)||(Ua==null?void 0:Ua.fileName)||"";Na=String(ul).toLowerCase().endsWith(".pdf")||String(pa).toLowerCase().endsWith(".pdf")}else if(typeof sa=="string")try{const Ua=JSON.parse(sa);Array.isArray(Ua)?(we=Ua.map(ul=>({name:(ul==null?void 0:ul.name)||(ul==null?void 0:ul.fileName)||"",url:(ul==null?void 0:ul.url)||""})).filter(ul=>ul.url||ul.name),we.length>0&&(pa=we[0].url||"",Na=String(we[0].name).toLowerCase().endsWith(".pdf")||String(pa).toLowerCase().endsWith(".pdf"))):(pa=sa,Na=String(sa).toLowerCase().endsWith(".pdf"))}catch{pa=sa,Na=String(sa).toLowerCase().endsWith(".pdf")}const al={ts:Date.now(),versionId:String(Date.now())+"_"+String(Sa),label:new Date().toLocaleString(),certType:Ia.证书类型||"",certNo:Ia.证书编号||"",fileType:Na?"pdf":"image",sourceUrl:Na?pa:"",images:we};Ma($e,Ca,al)}}}catch(xe){console.error("向校检记录表插入OCR识别结果失败:",xe),Ha.ElMessage.error("向校检记录表插入数据失败,请查看控制台")}},Sr=u=>{const h=Array.isArray(u)?u:Kl.value||[];if(h.length===0){Vr();return}if(h.find(C=>(C==null?void 0:C.__decision)==="replace"&&!(C!=null&&C.selectedTargetId))){Ha.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}h.forEach(C=>{var le;const re=C==null?void 0:C.__decision;if(!(!re||re==="skip")){if(re==="add"){Ma(c==null?void 0:c.index,(le=C==null?void 0:C.ocrRow)==null?void 0:le.id,C==null?void 0:C.versionItem),pr.value=[...pr.value||[],C.ocrRow];return}if(re==="replace"){const q=C==null?void 0:C.selectedTargetId,xe=(Ne.value||[]).find(Ce=>String(Ce==null?void 0:Ce.id)===String(q));if(!xe)return;Fr(C,xe)}}}),(Ql.value||[]).length>0&&(Ne.value=[...Ne.value||[]]),(pr.value||[]).length>0&&(Ne.value=[...Ne.value||[],...pr.value||[]],Xe.value=[...Xe.value||[],...pr.value||[]],(pr.value||[]).forEach(C=>{var re,le;return(le=(re=Aa.value)==null?void 0:re.set)==null?void 0:le.call(re,C.id,C)})),ln.value=Ne.value;const z=Ql.value||[],P=pr.value||[];if(z.length>0&&(Ie("change",{buttonName:"编辑",singleContent:z,content:Ne.value,relatedContents:c==null?void 0:c.related,index:c==null?void 0:c.index,parentTableId:c==null?void 0:c.parentTableId,columns:V.value,name:c==null?void 0:c.compName}),Mr(z)),P.length>0){const C=Rl.value;Ie("change",{buttonName:"OCR批量新增",content:Ne.value,index:c==null?void 0:c.index,parentTableId:c==null?void 0:c.parentTableId,column:V.value,ocrRows:P,relatedContents:c==null?void 0:c.related,uploadedFiles:(Array.isArray(C==null?void 0:C.result)?C.result:[]).map(re=>(Array.isArray(re==null?void 0:re.图片信息)?re.图片信息:[]).map(le=>({url:(le==null?void 0:le.url)||"",name:(le==null?void 0:le.name)||"",fileName:(le==null?void 0:le.name)||""})).filter(le=>le.url)),ocrResult:C,matchedCount:(z||[]).length,newCount:(P||[]).length})}Ha.ElMessage.success("已提交候选处理结果"),Vr()},Er=hc(),yn=e.computed(()=>Er.getConfig()),Dr=e.ref(),ur=e.ref(),gn=cc(A.pinia),ln=e.ref(),rn=e.ref(0),Sn=A.useUnit(A.pinia),{selectIndex:Tn,selectMenu:pn,selectTitle:lr}=A.storeToRefs(Sn),{selectString:Ol}=A.storeToRefs(gn),Ar=A.useLoginState(A.pinia),{loginUserInfo:cl}=A.storeToRefs(Ar),cr=e.ref(720),Fl=e.ref(!1),_r=e.ref(!1),Yl=e.ref([]),hr=e.ref(),Or=e.ref(!0),bn=e.ref(!0);e.ref([]);const Nn=e.inject("contentRef");e.provide("contentRef",Nn),e.provide("getSuggestListForCell",_u),e.provide("getSuggestLoadingForCell",(u,h)=>{const B=`${u==null?void 0:u.id}:${(h==null?void 0:h.prop)||(h==null?void 0:h.property)}`;return g.value.get(B)||!1}),e.watch(()=>{var u;return(u=Ne.value)==null?void 0:u.length},u=>{ye.total=u}),e.watch(()=>J.value,async()=>{var h,B,z,P,C,re,le,q,xe,Ce,Ke,Pe,Ze,Sa,Ia,za,Qe;if(((h=J.value)==null?void 0:h.length)===0||!((B=c==null?void 0:c.itemData)!=null&&B.find(Ja=>(Ja==null?void 0:Ja.key)==="columnPath"))||!((z=c==null?void 0:c.itemData)!=null&&z.find(Ja=>(Ja==null?void 0:Ja.key)==="pageColumn")))return;let u=(xe=(q=(le=(re=(C=(P=c==null?void 0:c.itemData)==null?void 0:P.find(Ja=>(Ja==null?void 0:Ja.key)==="pageColumn"))==null?void 0:C.contents)==null?void 0:re.split("["))==null?void 0:le[1])==null?void 0:q.split("]"))==null?void 0:xe[0];((Ze=(Pe=(Ke=(Ce=c==null?void 0:c.itemData)==null?void 0:Ce.find(Ja=>(Ja==null?void 0:Ja.key)==="pageColumn"))==null?void 0:Ke.contents)==null?void 0:Pe.split("["))==null?void 0:Ze[0])+((Ia=(Sa=J.value)==null?void 0:Sa.find(Ja=>(Ja==null?void 0:Ja.key)===u))==null?void 0:Ia.value),(Qe=(za=c==null?void 0:c.itemData)==null?void 0:za.find(Ja=>(Ja==null?void 0:Ja.key)==="pageGroup"))==null||Qe.contents,$t(compData,c.allMapContents)},{deep:!0});const kn=u=>{var B,z,P,C,re;const h=(z=(B=V.value)==null?void 0:B.filter(le=>le==null?void 0:le.mainKey))==null?void 0:z.map(le=>le==null?void 0:le.prop);if(h.length===0){const le=(P=V.value)==null?void 0:P.map(q=>q==null?void 0:q.prop);return(C=le==null?void 0:le.map(q=>u==null?void 0:u[q]))==null?void 0:C.join("|")}return(re=h==null?void 0:h.map(le=>u==null?void 0:u[le]))==null?void 0:re.join("|")},Un=u=>{var le,q,xe,Ce,Ke;const h=(q=(le=V.value)==null?void 0:le.filter(Pe=>Pe==null?void 0:Pe.required))==null?void 0:q.map(Pe=>Pe==null?void 0:Pe.prop),B=[];if(u==null||u.forEach(Pe=>{h==null||h.forEach(Ze=>{const Sa=Pe[Ze];(Sa==null||Sa==="")&&(B.includes(Ze)||B.push(Ze))})}),B.length>0)return Ha.ElMessage.warning(`请填写必填项:${B.join("、")}`);const z=new Map,P=new Map;(xe=Ne.value)==null||xe.forEach(Pe=>{const Ze=kn(Pe);z.set(Ze,Pe)}),u==null||u.forEach(Pe=>{const Ze=kn(Pe);P.set(Ze,Pe)});const C=u==null?void 0:u.filter(Pe=>z.has(kn(Pe))),re=(Ce=Ne.value)==null?void 0:Ce.filter(Pe=>P.has(kn(Pe)));return(C==null?void 0:C.length)>0&&(m.columns=(Ke=V.value)==null?void 0:Ke.filter(Pe=>(Pe==null?void 0:Pe.label)!=="操作"),m.existRows=re,m.tableData=C,m.show=!0),m.newRows=u==null?void 0:u.filter(Pe=>{const Ze=kn(Pe);return!z.has(Ze)}),m.newRows},Ln=e.ref(""),xn=e.ref(null),An=async()=>{var u,h,B,z,P,C;try{const re=await A.quoteApi({related:[{menus:Ee.value,groups:c==null?void 0:c.compName}],platId:parseInt((u=cl.value)==null?void 0:u.plat_id)});if(((h=re==null?void 0:re.data)==null?void 0:h.code)===200){xn.value=(B=re==null?void 0:re.data)==null?void 0:B.result;const le=(z=V.value)==null?void 0:z.map(Ce=>(Ce==null?void 0:Ce.prop)||(Ce==null?void 0:Ce.label)),q=Rn(le,(P=re==null?void 0:re.data)==null?void 0:P.result),xe=q==null?void 0:q.flatMap(Ce=>Ce==null?void 0:Ce.quote);(xe==null?void 0:xe.length)>0&&(Ln.value=(C=xe==null?void 0:xe.map(Ce=>Ce==null?void 0:Ce.menus))==null?void 0:C.join("、"))}}catch(re){throw new Error(re)}};function Rn(u,h){var B;return(B=h.filter(z=>z.struct&&Array.isArray(z.struct)?z.struct.some(P=>P.words&&Array.isArray(P.words)?P.words.some(C=>u.includes(C)):!1):!1))==null?void 0:B.map(z=>{const P={...z};return P.struct&&Array.isArray(P.struct)&&(P.struct=P.struct.filter(C=>C.words&&Array.isArray(C.words)?C.words.some(re=>u.includes(re)):!1)),P})}const Qr=async(u,h)=>{var B,z;try{xn.value||await An();const P=h==null?void 0:h.map(re=>{const le=Object.keys(re),q={};return le.forEach((xe,Ce)=>{q[u[Ce]]=re[xe]}),q}),C=Un(P);if(!C||(C==null?void 0:C.length)===0)return;m.show||await O(C)}catch(P){throw Ha.ElMessage.error("数据导入处理失败"),await A.pageBatchAddApi({platId:parseInt((B=cl==null?void 0:cl.value)==null?void 0:B.plat_id),changeContents:[{tableName:"log",tableContents:[{id:"1",request_method:"Post",request_url:"",request_param:JSON.stringify(t1),request_result:JSON.stringify(P),is_delete:!1,request_table:(z=c==null?void 0:c.related)==null?void 0:z.find(C=>C==null?void 0:C.includes("content")),request_type:"error"}]}]}),new Error(P)}},zn=async u=>{var C,re,le,q,xe,Ce,Ke;let h=Q.value;h!=null&&h.find(Pe=>(u==null?void 0:u.key)===(Pe==null?void 0:Pe.key))&&(h=h==null?void 0:h.filter(Pe=>(u==null?void 0:u.key)!==(Pe==null?void 0:Pe.key))),h.push({key:u==null?void 0:u.key,value:[(re=u==null?void 0:u.value)==null?void 0:re[((C=u==null?void 0:u.value)==null?void 0:C.length)-1]]});let B=La.value;B=B==null?void 0:B.map(Pe=>{var Ze,Sa;return(Pe==null?void 0:Pe.type)==="Select"&&(u==null?void 0:u.key)===(Pe==null?void 0:Pe.prop)&&Array.isArray(Pe.value)&&(Ze=Pe.value)!=null&&Ze.every(Ia=>typeof Ia=="string")&&(Pe.selectValue=(Sa=h==null?void 0:h.find(Ia=>(Ia==null?void 0:Ia.key)===(Pe==null?void 0:Pe.prop)))==null?void 0:Sa.value),Pe});let z=(q=(le=B==null?void 0:B.find(Pe=>(Pe==null?void 0:Pe.prop)===(u==null?void 0:u.key)))==null?void 0:le.optionUrl)==null?void 0:q.menuId,P=B==null?void 0:B.find(Pe=>(Pe==null?void 0:Pe.prop)===(u==null?void 0:u.key));if(z){let Pe=await yt(P==null?void 0:P.optionUrl,z),Ze,Sa=Y.value,Ia=(Ke=(Ce=(xe=La.value)==null?void 0:xe.find(za=>{var Qe;return(Qe=P==null?void 0:P.optionUrl)==null?void 0:Qe.menuId}))==null?void 0:Ce.selectValue)==null?void 0:Ke[0];if(Pe==null||Pe.forEach(za=>{var Qe,Ja,_a,Xa,ge,Ra,wa,Ca,Ea,T;if(z){let G=(Ja=(Qe=La.value)==null?void 0:Qe.find(sa=>{var we,pa;return((we=P==null?void 0:P.optionUrl)==null?void 0:we.menuId)===((pa=sa==null?void 0:sa.optionUrl)==null?void 0:pa.menuId)}))==null?void 0:Ja.prop,$e=(Xa=(_a=B==null?void 0:B.find(sa=>(sa==null?void 0:sa.prop)===G))==null?void 0:_a.selectValue)==null?void 0:Xa[0];G!=null&&G.includes("·")&&(G=(ge=G==null?void 0:G.split("·"))==null?void 0:ge[0],$e=(Ea=(Ca=(wa=u==null?void 0:u.value)==null?void 0:wa[((Ra=u==null?void 0:u.value)==null?void 0:Ra.length)-1])==null?void 0:Ca.split(" "))==null?void 0:Ea[0]),Sa!=null&&Sa.find(sa=>(sa==null?void 0:sa.value)===Ia)?Ze=(T=Sa==null?void 0:Sa.find(sa=>(sa==null?void 0:sa.value)===Ia))==null?void 0:T.objectValue:za[G]===$e&&(Ze=za)}}),Ze){let za=B;za=za==null?void 0:za.map(Qe=>{var Ja,_a,Xa,ge,Ra,wa;return z&&(Ze!=null&&Ze[Qe==null?void 0:Qe.prop])&&ae.value==="新增"&&(Qe==null?void 0:Qe.prop)!==(P==null?void 0:P.prop)?Qe.value=(Ze==null?void 0:Ze[Qe==null?void 0:Qe.prop])||(Ze==null?void 0:Ze[(ge=(Xa=(_a=(Ja=Qe==null?void 0:Qe.optionUrl)==null?void 0:Ja.groupSelect)==null?void 0:_a[1])==null?void 0:Xa.replaceAll("[",""))==null?void 0:ge.replaceAll("]","")]):Qe.value=(wa=(Ra=La.value)==null?void 0:Ra.find(Ca=>(Ca==null?void 0:Ca.prop)===(Qe==null?void 0:Qe.prop)))==null?void 0:wa.value,Qe}),La.value=za}}Q.value=h},qn=async(u,h)=>{var B,z,P,C,re;if((B=u==null?void 0:u.toString())!=null&&B.includes(".txt")||(z=u==null?void 0:u.toString())!=null&&z.includes(".cpt")||(P=u==null?void 0:u.toString())!=null&&P.includes(".cyd")){const le=await Ha.axios.get(u,{responseType:"blob",headers:{"Content-Type":"application/json"}}),q=new Blob([le.data],{type:"application/octet-stream;charset=UTF-8"});let xe=URL.createObjectURL(q);da.value=[{name:(re=u==null?void 0:u.split("/"))==null?void 0:re[((C=u==null?void 0:u.split("/"))==null?void 0:C.length)-1],blobUrl:xe}],ee.value=!0}else Array.isArray(h)&&(h==null?void 0:h.length)>0&&Ie("routeUrl",{isEdit:!1,routerUrl:h})};e.onBeforeUnmount(()=>{bn.value=!1;let u=rn.value;rn.value=u+1});const Lr=e.reactive({prop:"",order:null}),Wn=e.computed(()=>{const u=(Ne.value??[]).slice(),h=Lr.prop||ce.prop,B=Lr.order||ce.order;if(!h||!B)return u;const z=B==="ascending",P=re=>{if(h)return re&&Object.prototype.hasOwnProperty.call(re,h)?re[h]:h.includes(".")?h.split(".").reduce((le,q)=>le==null?le:le[q],re):re==null?void 0:re[h]},C=re=>{if(re==null)return{ok:!1,value:NaN};if(typeof re=="number")return{ok:Number.isFinite(re),value:re};const le=String(re).trim();if(le==="")return{ok:!1,value:NaN};const q=le.replace(/[,\s]/g,"");if(!/^[+-]?(\d+\.?\d*|\.\d+)$/.test(q))return{ok:!1,value:NaN};const xe=Number(q);return{ok:Number.isFinite(xe),value:xe}};return u.sort((re,le)=>{const q=P(re),xe=P(le);if(q==null&&xe==null)return 0;if(q==null)return z?-1:1;if(xe==null)return z?1:-1;const Ce=C(q),Ke=C(xe);if(Ce.ok&&Ke.ok)return z?Ce.value-Ke.value:Ke.value-Ce.value;const Pe=ge=>{if(ge==null)return{ok:!1,value:NaN};const Ra=String(ge).trim();if(Ra==="")return{ok:!1,value:NaN};const wa=Ra.match(/^(-)?(\d+):(\d{1,2}):(\d{1,2})$/);if(!wa)return{ok:!1,value:NaN};const Ca=wa[1]?-1:1,Ea=Number(wa[2]),T=Number(wa[3]),G=Number(wa[4]);return[Ea,T,G].some($e=>Number.isNaN($e))?{ok:!1,value:NaN}:T>=60||G>=60?{ok:!1,value:NaN}:{ok:!0,value:Ca*(Ea*3600+T*60+G)}},Ze=Pe(q),Sa=Pe(xe);if(Ze.ok&&Sa.ok)return z?Ze.value-Sa.value:Sa.value-Ze.value;const Ia=new Date(q).getTime(),za=new Date(xe).getTime(),Qe=!Number.isNaN(Ia),Ja=!Number.isNaN(za);if(Qe&&Ja)return z?Ia-za:za-Ia;const _a=String(q),Xa=String(xe);return z?_a.localeCompare(Xa):Xa.localeCompare(_a)})}),fn=e.computed(()=>{var B;const u=(ye.currentPage-1)*ye.pageSize,h=u+ye.pageSize;return Ie("getSliceContLength",ye),(B=Wn.value)==null?void 0:B.slice(u,h)}),Ni=u=>{ye.currentPage=u,Ie("getSliceContLength",ye)},Lo=u=>{var z;ye.pageSize=u;const h=((z=Ne.value)==null?void 0:z.length)??0,B=u>0?Math.ceil(h/u):1;ye.currentPage>B&&(ye.currentPage=B||1,Ha.ElMessage.warning("当前页超出范围,已自动跳转到最后一页")),Ie("getSliceContLength",ye)},Ro=({prop:u,order:h})=>{Lr.prop=u,Lr.order=h,ye.currentPage=1};function En(u){const h=[];function B(z,P=""){z.forEach(C=>{C.children&&C.children.length>0?B(C.children,C.prop):h.push(C.prop)})}return B(u),h}const $o=(u,h)=>{var le,q,xe,Ce;let B=(q=(le=V.value)==null?void 0:le.map(Ke=>Ke==null?void 0:Ke.prop))==null?void 0:q.filter(Ke=>Ke!=="operate");((xe=V.value)==null?void 0:xe.some(Ke=>{var Pe;return((Pe=Ke==null?void 0:Ke.children)==null?void 0:Pe.length)>0}))&&(B=En((Ce=V.value)==null?void 0:Ce.filter(Ke=>(Ke==null?void 0:Ke.prop)!=="operate")));let P;if(P=(u==null?void 0:u.length)===(B==null?void 0:B.length)?u:u.slice(0,B==null?void 0:B.length),!(P==null?void 0:P.every(Ke=>B==null?void 0:B.find(Pe=>Ke===Pe))))return Ha.ElMessage.error("导入的数据表头不匹配");Qr(P,h)},Vo=(u,h)=>{var P;const B=u==null?void 0:u.filter(C=>C!=="序号"),z=h==null?void 0:h.map(C=>{const re=Object.entries(C);return re.shift(),Object.fromEntries(re)});ua.setRefreshCurStructure(!1),((P=V.value)==null?void 0:P.length)===0||$o(B,z)},Fo=(u,h,B,z)=>{const P=[],C=[],re=xe=>Object.keys(xe).length;for(const xe in u)if(u[xe]!==void 0){const Ce=u[xe],Ke=[];for(const[Pe,Ze]of Object.entries(Ce))Ke.push(Ze),C.length<re(Ce)&&C.push(Pe);P.push(Ke)}P.unshift(C);const le=ue.utils.aoa_to_sheet(P),q=ue.utils.book_new();ue.utils.book_append_sheet(q,le,z),ue.writeFileSync(q,`${h}.xlsx`),Yl.value=[]},Ai=async(u,h,B,z=!1,P)=>{try{ua.setRefreshCurStructure(!1)}catch(C){Ha.ElMessage.error(C)}},Ji=async(u,h)=>{await Ai()},jr=async(u,h)=>{await Ai("columnType",h,u,!1)},Po=async({newRow:u,targetIndex:h})=>{var P;if(!ba(c.config,{type:te.TABLE}))return;const z=(ye.currentPage-1)*ye.pageSize+(h??0);u._isTemp=!0;try{(u.sort===void 0||u.sort===null||String(u.sort).trim()==="")&&(u.sort=Xn(z,Ne.value||[]))}catch{}Ne.value.splice(z,0,u),await e.nextTick(),v.value.has(u.id)||v.value.set(u.id,A.cloneDeep(u)),Ne.value=(P=Ne.value)==null?void 0:P.map(C=>({...C,tableEditType:(C==null?void 0:C.id)===u.id?"edit":(C==null?void 0:C.tableEditType)??"text"})),s.value.add(u.id),Fl.value=!0},jo=(u,h,B,z=[])=>(!Array.isArray(h)||h.length===0||h.forEach(P=>{const C=P==null?void 0:P.prop;if(!C)return;let re=u==null?void 0:u[C];if(re==null||String(re).trim()==="")return;re=String(re);const le=new Set([...(Array.isArray(B)?B:[]).filter(Ce=>(Ce==null?void 0:Ce.id)!==(u==null?void 0:u.id)).map(Ce=>Ce==null?void 0:Ce[C]).filter(Ce=>Ce!=null).map(Ce=>String(Ce)),...(Array.isArray(z)?z:[]).map(Ce=>Ce==null?void 0:Ce[C]).filter(Ce=>Ce!=null).map(Ce=>String(Ce))]);if(!le.has(re))return;let q=1,xe="";for(;xe=`${re}(${q})`,!!le.has(xe);)q++;u[C]=xe}),u),zi=async()=>{var P,C,re,le,q,xe,Ce,Ke;const u=Array.from(s.value||[]);if(u.length===0)return;const h=(C=ue.getColumnChild((P=A.cloneDeep(V.value))==null?void 0:P.filter(Pe=>(Pe==null?void 0:Pe.label)!=="操作")))==null?void 0:C.filter(Pe=>(Pe==null?void 0:Pe.required)===!0);if((h==null?void 0:h.length)>0)for(let Pe=0;Pe<u.length;Pe++){const Ze=u[Pe],Sa=(re=Ne.value)==null?void 0:re.find(Ia=>(Ia==null?void 0:Ia.id)===Ze);if(Sa)for(let Ia=0;Ia<h.length;Ia++){const za=h[Ia],Qe=za==null?void 0:za.prop,Ja=(za==null?void 0:za.label)??Qe,_a=Sa==null?void 0:Sa[Qe];if(_a===""||_a===null||_a===void 0||Array.isArray(_a)&&_a.length===0){Ha.ElMessage.error(`${Ja}不能为空`);return}}}const B=[],z=[];if(u.forEach(Pe=>{var Ja;const Ze=(Ja=Ne.value)==null?void 0:Ja.find(_a=>(_a==null?void 0:_a.id)===Pe);if(!Ze)return;if(Ze!=null&&Ze._isTemp){const Xa=(ue.getAllLeafNodes(V.value)||[]).filter(T=>(T==null?void 0:T.mainKey)===!0||(T==null?void 0:T.isMainKey)===!0),ge=Ne.value.findIndex(T=>(T==null?void 0:T.id)===Pe),Ra=ge>=0?ge+1:Ne.value.length+1;jo(Ze,Xa,Ne.value,B);const wa={id:Ra.toString()};(Ze==null?void 0:Ze.sort)!==void 0&&(Ze==null?void 0:Ze.sort)!==null&&String(Ze.sort).trim()!==""?wa.sort=String(Ze.sort):wa.sort=Xn(ge>=0?ge:Ne.value.length-1,Ne.value||[]),(ue.getAllLeafNodes(V.value)||[]).filter(T=>(T==null?void 0:T.type)!=="operate"&&(T==null?void 0:T.label)!=="操作"&&(T==null?void 0:T.prop)!=="operate").forEach(T=>{const G=T==null?void 0:T.prop;if(G){const $e=Ze[G];$e!==void 0?wa[G]=$e??"":wa[G]=""}}),B.push(wa);return}const Ia=(ue.getAllLeafNodes(V.value)||[]).filter(_a=>(_a==null?void 0:_a.type)!=="operate"&&(_a==null?void 0:_a.label)!=="操作"&&(_a==null?void 0:_a.prop)!=="operate"),za=new Set(Ia.map(_a=>_a==null?void 0:_a.prop).filter(Boolean)),Qe={};for(const _a of za)Object.prototype.hasOwnProperty.call(Ze,_a)&&(Qe[_a]=Ze[_a]);z.push({id:Ze.id,value:{tableData:Qe}})}),ua.setTableLoading(c==null?void 0:c.index),z.length>0){const Pe=z.map(Sa=>{const Ia={id:Sa.id,...Sa.value.tableData};return delete Ia._isOCRRow,delete Ia._ocrTableId,delete Ia._isTemp,delete Ia.tableEditType,delete Ia.index,Ia}),Ze=[{tableName:((le=c==null?void 0:c.related)==null?void 0:le.find(Sa=>Sa==null?void 0:Sa.includes("content")))??"content_"+(c==null?void 0:c.index),tableContents:Pe}];try{await A.pageBatchUpdateApi({platId:parseInt((q=cl.value)==null?void 0:q.plat_id),changeContents:Ze})}catch(Sa){Ha.ElMessage.error(((Ce=(xe=Sa==null?void 0:Sa.response)==null?void 0:xe.data)==null?void 0:Ce.message)||(Sa==null?void 0:Sa.message)||"保存失败"),ua.setTableLoading(!1);return}}if(B.length>0){const Pe={fixContent:B,buttonName:"新增",relatedContents:c==null?void 0:c.related,name:c==null?void 0:c.compName,columns:V.value};Ie("change",Pe)}Ha.ElMessage.success("保存成功"),s.value.clear(),v.value.clear(),Ne.value=(Ke=Ne.value)==null?void 0:Ke.map(Pe=>({...Pe,tableEditType:"text"})),Fl.value=!1,ua.setRefreshCurStructure(!0)},Ho=()=>{var h;const u=Array.from(s.value||[]);if(u.length===0){Fl.value=!1;return}u.forEach(B=>{var C,re;const z=v.value.get(B),P=(C=Ne.value)==null?void 0:C.find(le=>(le==null?void 0:le.id)===B);if(P!=null&&P._isTemp){Ne.value=Ne.value.filter(le=>(le==null?void 0:le.id)!==P.id);return}if(z){const le=(re=Ne.value)==null?void 0:re.findIndex(q=>(q==null?void 0:q.id)===B);le!==-1&&(Ne.value[le]={...Ne.value[le],...z})}}),s.value.clear(),v.value.clear(),Ne.value=(h=Ne.value)==null?void 0:h.map(B=>({...B,tableEditType:"text"})),Fl.value=!1},Mi=e.ref(!1),Xi=async u=>{var P,C,re,le;if(!Fl.value||u!=null&&u.isComposing||(u==null?void 0:u.key)!=="Enter")return;const h=u==null?void 0:u.target;if(((C=(P=h==null?void 0:h.tagName)==null?void 0:P.toLowerCase)==null?void 0:C.call(P))==="textarea")return;const z=document.getElementById("excel-table");z&&!z.contains(h)||((re=h==null?void 0:h.blur)==null||re.call(h),(le=u.preventDefault)==null||le.call(u),await e.nextTick(),await Zi())},Zi=async()=>{if(H.value){Fl.value=!1;return}if(!Mi.value){Mi.value=!0;try{Array.from(s.value||[]).length>0?await zi():Fl.value=!1}finally{Promise.resolve().then(()=>{Mi.value=!1})}}},Uo=u=>{Yl.value=u},Qi=(u,h)=>{hr.value===h?Or.value=!1:Or.value=!0,hr.value=h==null?void 0:h.changeProp},ci=u=>{if(!u)return;const{item:h,value:B}=u,z=La.value.find(P=>P.prop==h.prop);z&&z.contents.push({label:B,value:B})},nn=e.computed(()=>{var B,z,P;const u=(B=V.value)==null?void 0:B.some(C=>C==null?void 0:C.filterable);return document.documentElement.style.setProperty("--ssTable-header-filter-display",u?"inline-block":"none"),(P=(z=V.value)==null?void 0:z.filter(C=>(C==null?void 0:C.label)!=="操作"))==null?void 0:P.map(C=>({...C,filterable:!!(C!=null&&C.filterable),showSummary:!!(C!=null&&C.showSummary),operable:!!(C!=null&&C.operable),fixed:C==null?void 0:C.fixed}))}),Kn=async(u,h,B)=>{const z=A.cloneDeep(V.value);await e.nextTick();const P=z==null?void 0:z.map(re=>(B==null?void 0:B.label)===(re==null?void 0:re.label)?{...re,[h]:u}:re),C=Ii(P);await vs(c.index,C),V.value=P,pe.value=C},Ii=u=>{var P;const h=u||[];return((P=ue.getAllLeafNodes(h)||[])==null?void 0:P.filter(C=>(C==null?void 0:C.prop)&&(C==null?void 0:C.type)!=="operate"&&(C==null?void 0:C.label)!=="操作"&&(C==null?void 0:C.prop)!=="operate")).map(C=>{const{prop:re}=C;return r0(re,C)})},eo=async u=>{let h=await i0(c.index);h||(h=Ii(u)),pe.value=h},ao=async(u,h)=>{const B=A.cloneDeep(V.value),z=re=>Array.isArray(re)?re.map(le=>{const q=Array.isArray(le==null?void 0:le.children)&&le.children.length>0,xe={...le};return(xe==null?void 0:xe.prop)==="operate"||(xe==null?void 0:xe.label)==="操作"||(xe==null?void 0:xe.type)==="operate"?(xe.sortable=!1,xe.filterable=!1,xe.operable=!1):xe.sortable=q?!1:!!u,q&&(xe.children=z(xe.children)),xe}):re,P=z(B),C=Ii(P);await vs(c.index,C),V.value=P,pe.value=C,await e.nextTick(),rn.value=rn.value+1},lo=()=>{ze.value=!1},Gn=u=>{Ie("clickTrigger",u)},ro=async u=>{var C,re,le,q,xe,Ce,Ke,Pe,Ze,Sa,Ia,za,Qe,Ja,_a;const h=u==null?void 0:u.row,B=u==null?void 0:u.rowData,z=u==null?void 0:u.suffix;if((C=h==null?void 0:h.toString())!=null&&C.includes(".urdf")||u!=null&&u.isUrdf||z!=null&&z.includes(".urdf")){if(h.includes(",")){Ha.ElMessage.error("当前版本仅允许单个urdf预览!");return}if(se(h)){const ge={files:[Fe(h)],data:{}};Le(ge);return}_e.value=[{url:h,extension:Se(h)}],me.value=!0,N.value={data:A.cloneDeep(B)},Ve.value=!0;return}let P=[];if((re=h==null?void 0:h.toString())!=null&&re.includes(".stl")||(le=h==null?void 0:h.toString())!=null&&le.includes(".STL")||(q=h==null?void 0:h.toString())!=null&&q.includes(".obj")||(xe=h==null?void 0:h.toString())!=null&&xe.includes(".mtl")){const Xa=(Ce=h==null?void 0:h.toString())==null?void 0:Ce.split(","),ge=ia(Xa),Ra=ge==null?void 0:ge[0];if(se(Ra==null?void 0:Ra.extension)){Le({files:ge,data:{}});return}_e.value=ge,me.value=!1,Ve.value=!0;return}if((Ke=h==null?void 0:h.toString())!=null&&Ke.includes(".stl")||(Pe=h==null?void 0:h.toString())!=null&&Pe.includes(".STL")||(Ze=h==null?void 0:h.toString())!=null&&Ze.includes(".obj")||(Sa=h==null?void 0:h.toString())!=null&&Sa.includes(".mtl")||z!=null&&z.includes(".stl")||z!=null&&z.includes(".STL")||z!=null&&z.includes(".obj")||z!=null&&z.includes(".mtl")){let Xa,ge=[],Ra={};if(Array.isArray(h)?Xa=h:Xa=h==null?void 0:h.split(","),Xa==null||Xa.forEach(wa=>{wa.includes(".mtl")?ge.push(wa):Ra.blob=Ra.blob?Ra.blob+","+wa:wa}),(ge==null?void 0:ge.length)>0&&(Ra.mtlBlobs=ge),z&&(Ra.suffix=z),(za=(Ia=Object.values(Ra))==null?void 0:Ia[0])!=null&&za.includes("http:"))P.push(Ra);else{const wa=new Blob([Ra.blob],{type:"application/octet-stream;charset=UTF-8"});let Ca=URL.createObjectURL(wa),Ea="";(Qe=h==null?void 0:h.split("/"))==null||Qe.forEach((T,G)=>{var $e;G===(($e=h==null?void 0:h.split("/"))==null?void 0:$e.length)-1&&(Ea=T)}),(Ja=Ra.blob)!=null&&Ja.includes(".stl")&&(Ea=(Ea==null?void 0:Ea.replaceAll(">",""))+".urdf"),da.value=[{name:Ea,blobUrl:Ca}],ee.value=!0}}else{const Xa=await Ha.axios.get(h,{responseType:"blob",headers:{"Content-Type":"application/json"}}),ge=new Blob([Xa.data],{type:"application/octet-stream;charset=UTF-8"});let Ra=URL.createObjectURL(ge),wa="";if((_a=h==null?void 0:h.split("/"))==null||_a.forEach((Ca,Ea)=>{var T;Ea===((T=h==null?void 0:h.split("/"))==null?void 0:T.length)-1&&(wa=Ca)}),se(wa)){const Ca=U(wa),Ea=Fe(h);Le({files:[Ea],data:{trackFileType:Ca}});return}da.value=[{name:wa,blobUrl:Ra}],ee.value=!0}(P==null?void 0:P.length)>0&&n.setBlobUrls(P)},Yn=u=>{var z,P,C,re;if(u!=null&&u.downloadUrl)return u==null?void 0:u.name;const h=(re=(z=u==null?void 0:u.url)==null?void 0:z.split("."))==null?void 0:re[((C=(P=u==null?void 0:u.url)==null?void 0:P.split("."))==null?void 0:C.length)-1];return(u==null?void 0:u.name)+"."+h},no=u=>{if(!u)return"未知文件";try{const z=Yn(u);if(typeof z=="string"&&z.includes("."))return z}catch{}const h=(u==null?void 0:u.fileName)||(u==null?void 0:u.name)||"未知文件",B=(u==null?void 0:u.suffix)||"";return h.includes(".")?h:`${h}${B}`},io=u=>{if(u==null||typeof u=="number"||typeof u!="string")return u;const h=u.match(/^(\d+)\_(\d+)$/);if(!h)return u;const B=Number(h[1]),z=Number(h[2]);return!Number.isFinite(B)||!Number.isFinite(z)?u:String(B*1e3+z)},Jn=u=>{if(u==null)return null;const h=String(u).trim();if(!h)return null;const B=Number(h);return Number.isFinite(B)?B:null},qo=u=>{if(u==null)return null;const h=String(u).trim();if(!h)return null;if(/^\d+$/.test(h)){const P=Number(h);return Number.isFinite(P)?h.length<=10?P*1e3:P:null}const B=h.includes("T")?h:h.replace(" ","T"),z=Date.parse(B);return Number.isFinite(z)?z:null},ui=(u,h=[])=>{const B=Array.isArray(u)?u.slice():[];if(B.length<=1)return B;const z=new Map((h||[]).map((re,le)=>[String(re),le])),P=B.some(re=>Jn(re==null?void 0:re.sort)!==null),C=B.map((re,le)=>({r:re,idx:le,id:String((re==null?void 0:re.id)??""),sortVal:Jn(re==null?void 0:re.sort),createTimeMs:qo(re==null?void 0:re.create_time),prevIdx:z.has(String(re==null?void 0:re.id))?z.get(String(re==null?void 0:re.id)):Number.POSITIVE_INFINITY}));return C.sort((re,le)=>{if(P){const Ce=re.sortVal,Ke=le.sortVal;if(Ce===null&&Ke!==null)return 1;if(Ce!==null&&Ke===null)return-1;if(Ce!==null&&Ke!==null&&Ce!==Ke)return Ce-Ke}const q=re.createTimeMs,xe=le.createTimeMs;return q!==null&&xe!==null&&q!==xe?xe-q:q!==null&&xe===null?-1:q===null&&xe!==null?1:re.prevIdx!==le.prevIdx?re.prevIdx-le.prevIdx:re.idx-le.idx}),C.map(re=>re.r)},Xn=(u,h=[])=>{const B=h==null?void 0:h[u-1],z=h==null?void 0:h[u],P=Jn(B==null?void 0:B.sort),C=Jn(z==null?void 0:z.sort);let re=null;P!==null&&C!==null&&C>P?re=(P+C)/2:P!==null?re=P+1:C!==null?re=Math.max(C-1,0):re=(u??0)+1;const le=Number(re.toFixed(6));return String(Number.isFinite(le)?le:re)},di=async u=>{let h=null,B=null;if(u!=null&&u.id){const P=A.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});try{const C=await A.platformDownloadFile(u);h=URL.createObjectURL(C.data),B=no(u)}finally{P.close()}}else if(u!=null&&u.downloadUrl){const P=await pi(),C=A.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),re=await Ha.axios.post(u==null?void 0:u.url,null,{responseType:"blob",headers:{Authorization:P,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}).finally(()=>{C.close()}),le=new Blob([re.data],{type:"application/octet-stream;charset=UTF-8"});h=URL.createObjectURL(le),B=u==null?void 0:u.name}else{const P=await A.platformDownloadFile({url:u==null?void 0:u.url});!u.url.toUpperCase().includes(".OBJ")&&!u.url.toUpperCase().includes(".STL")&&!u.url.toUpperCase().includes(".MTL")&&!u.url.toUpperCase().includes(".URDF")?(h=URL.createObjectURL(P.data),B=Yn(u)):h=u==null?void 0:u.url}if(se(h)){const P={row:`${h}`,suffix:Se(B)};ro(P);return}const z={name:B,blobUrl:h};da.value=[z],ee.value=!0},Wo=async u=>{let h=null,B=null;if(u!=null&&u.id){const C=await A.platformDownloadFile(u);h=URL.createObjectURL(C.data),B=no(u)}else if(u!=null&&u.downloadUrl){const C=await pi(),re=await Ha.axios.post(u==null?void 0:u.url,null,{responseType:"blob",headers:{Authorization:C,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}),le=new Blob([re.data],{type:"application/octet-stream;charset=UTF-8"});h=URL.createObjectURL(le),B=u==null?void 0:u.name}else{const C=await A.platformDownloadFile({url:u==null?void 0:u.url});h=URL.createObjectURL(C.data),B=Yn(u)}const z={name:B,blobUrl:h},P=document.createElement("a");P.href=z.blobUrl,P.download=z.name,P.style.display="none",document.body.appendChild(P),P.click(),setTimeout(()=>{document.body.removeChild(P)},100)},Oi=(u,h)=>{var z;if(Object.values(h).length===0)return;let B=u;return Object.values(h).find(P=>{var C,re,le;return((C=P==null?void 0:P.toString())==null?void 0:C.includes(".txt"))||((re=P==null?void 0:P.toString())==null?void 0:re.includes(".cpt"))||((le=P==null?void 0:P.toString())==null?void 0:le.includes(".obj"))})?B=[...u,Me.value]:(z=c==null?void 0:c.config)!=null&&z.allowMove&&(B=[...u,{label:"迁移"}]),B},Ko=()=>{M.value=!0},Go=e.ref([]),oo=async(u,h,B=!1)=>{var re,le,q,xe;if(!u)return;if(B){Ne.value=[...Aa.value.values()].filter(Ce=>Object.values(Ce).some(Ke=>typeof Ke=="string"?Ke==null?void 0:Ke.toLowerCase().includes(h==null?void 0:h.toLowerCase()):!1));return}let z={};for(let Ce in u)(u==null?void 0:u[Ce])!==""&&(z[Ce]=u==null?void 0:u[Ce]);if(JSON.stringify(z)==="{}"){Ne.value=Array.from(((re=Aa.value)==null?void 0:re.values())??[]);return}let P=(le=c==null?void 0:c.related)==null?void 0:le.find(Ce=>Ce==null?void 0:Ce.includes("content_")),C=await A.getFillFind({platId:parseInt((q=cl==null?void 0:cl.value)==null?void 0:q.plat_id),tableName:P,params:z});C=(xe=C==null?void 0:C.data)==null?void 0:xe.result,Ne.value=C,ua.setTableLoading(!1)},Zn=e.computed(()=>{var h,B;return((B=(h=c==null?void 0:c.itemData)==null?void 0:h.find(z=>(z==null?void 0:z.key)==="isEdit"))==null?void 0:B.contents)??!0}),Cn=async u=>{var z,P,C,re;if(!ba(c.config,{type:te.TABLE})||!(((P=(z=c==null?void 0:c.itemData)==null?void 0:z.find(le=>(le==null?void 0:le.key)==="isEdit"))==null?void 0:P.contents)??!0)||!u)return;((C=Array.from(s.value))==null?void 0:C.length)>0&&await zi();const B=u==null?void 0:u.id;B!=null&&(s.value.clear(),v.value.clear(),v.value.has(B)||v.value.set(B,A.cloneDeep(u)),Ne.value=(re=Ne.value)==null?void 0:re.map(le=>({...le,tableEditType:(le==null?void 0:le.id)===B?"edit":"text"})),s.value.add(B),Fl.value=!0)},Li=async(u,h,B,z)=>{z!=null&&z.isExistChild&&Ie("clickMainKey",u,B,V.value)},Ri=()=>{ee.value=!1},Yo=u=>{Ie("rowClick",u)};e.watch(()=>c.changedContent,()=>{var B,z;if(!c.changedContent)return;let u=(B=Ne.value)==null?void 0:B.map(P=>{var C;return P.id===((C=c.changedContent)==null?void 0:C.id)&&(P={...c.changedContent,id:c.changedContent.newId?c.changedContent.newId:c.changedContent.id},delete P.newId),P});const h=(z=c.itemData)==null?void 0:z.map(P=>((P==null?void 0:P.key)==="tableContents"&&(P.contents=u),P));Ne.value=u,Ie("contentChange",{contents:h,index:c.index}),Ie("change",{content:u,index:c==null?void 0:c.index,buttonName:"",id:c==null?void 0:c.index})},{deep:!0,immediate:!0});const Jo=()=>{},Xo=async()=>{const u=Ee.value,h=sessionStorage.getItem("systemKey"),B=await ue.getItemData(u,h,""),z=(B==null?void 0:B.find(le=>(le==null?void 0:le.name)==="方法明细"))||(B==null?void 0:B[0]),P=(z==null?void 0:z.compData)||[],C=P==null?void 0:P.find(le=>{const q=le==null?void 0:le.key;return q==="formContent"||q==="tableContents"});return C==null?void 0:C.contents},pi=async()=>{const h=Ha.Local.get("access-token");return h?`Bearer ${h}`:""},Zo=async(u,{token:h,inputData:B}={})=>await Ha.axios.post(u,B,{headers:{Authorization:h}}).catch(P=>(ie.setImportLoading(!1),Promise.reject(P))),Qo=u=>{var z;let h={};const B=[];return h.form={},(z=A.cloneDeep(u))==null||z.forEach((P,C)=>{var re,le,q,xe,Ce,Ke,Pe,Ze,Sa,Ia,za,Qe,Ja,_a;if((P==null?void 0:P.comp)==="Table"){(le=(re=P==null?void 0:P.compData)==null?void 0:re.find(wa=>(wa==null?void 0:wa.key)==="header"))==null||le.contents;let Xa=(Ce=(xe=(q=P==null?void 0:P.compData)==null?void 0:q.find(wa=>(wa==null?void 0:wa.key)==="tableContents"))==null?void 0:xe.contents)==null?void 0:Ce.map(wa=>wa.slice(1));(Ia=(Sa=(Ze=(Pe=(Ke=P==null?void 0:P.compData)==null?void 0:Ke.find(wa=>(wa==null?void 0:wa.key)==="header"))==null?void 0:Pe.contents)==null?void 0:Ze[0])==null?void 0:Sa[0])==null||Ia.label;let ge=(Qe=(za=P==null?void 0:P.compData)==null?void 0:za.find(wa=>(wa==null?void 0:wa.key)==="header"))==null?void 0:Qe.contents,Ra=[];Xa==null||Xa.forEach(wa=>{let Ca=[];wa==null||wa.forEach((Ea,T)=>{var $e;let G={};(($e=ge[T])==null?void 0:$e.label)!=="操作"&&(G[ge[T].label]=Ea,Ca.push(G))}),Ra.push(Ca)}),h[P.name]=Ra}else{const Xa=(_a=(Ja=P.compData)==null?void 0:Ja.find(ge=>(ge==null?void 0:ge.key)==="formContent"))==null?void 0:_a.contents;Xa==null||Xa.forEach(ge=>{var Ra,wa;if(ge.prop!==""){let Ca=ge==null?void 0:ge.value;Array.isArray(Ca)?Ca=((Ra=Ca==null?void 0:Ca[0])==null?void 0:Ra.oldUrl)||"http://222.92.178.198:62001/"+((wa=Ca==null?void 0:Ca[0])==null?void 0:wa.url):Ca=Ca.toString(),ge={key:(ge==null?void 0:ge.prop)??(ge==null?void 0:ge.label),value:Ca},B.push(ge)}})}}),h.form=ue.getFormContents(B),h},et=u=>{const h=[],B=z=>{z&&typeof z=="object"&&!Array.isArray(z)?Object.values(z).forEach(B):h.push(z)};return B(u),h},at=async(u,h,B)=>{var ge,Ra,wa,Ca,Ea,T,G,$e,sa,we,pa,Na,al,Ua,ul,fl,Pl;ie.setImportLoading(!0),ua.setFreshContent(!1);let z=await Xo().catch(ja=>(ie.setImportLoading(!1),Promise.reject(ja)));z=z==null?void 0:z.filter(ja=>{var ml;return((ml=ja==null?void 0:ja.find(Fa=>Fa==null?void 0:Fa.id))==null?void 0:ml.id)===(h==null?void 0:h.id)});let P=ue.getEqualChild([(ge=V.value)==null?void 0:ge.filter(ja=>(ja==null?void 0:ja.label)!=="操作")]);const C=(wa=(Ra=ue.tableToForm(z,P))==null?void 0:Ra[0])==null?void 0:wa.find(ja=>{const ml=ja==null?void 0:ja.key;return ml==="Interface"||ml==="方法体"}),re=C==null?void 0:C.value;if(!re){console.log("未搜索到isMain, 缺少算法执行接口"),ie.setImportLoading(!1);return}const le=V.value?ue.getEqualChild([V.value]):[],q=le.find(ja=>{const ml=ja==null?void 0:ja.prop;return ml==="Input1"||ml==="输入数据.输入1"||ml==="样本输入数据"}),xe=q==null?void 0:q.prop;let Ce=h==null?void 0:h[xe];const Ke=await pi().catch(ja=>(ie.setImportLoading(!1),Promise.reject(ja)));let Pe=!0,Ze="";(Ca=V.value)==null||Ca.forEach(ja=>{(ja==null?void 0:ja.prop)===xe&&(Pe=!!(ja!=null&&ja.childPath),Ze=ja==null?void 0:ja.childPath)});let Sa="";if(Pe){let ja=(T=(Ea=V.value)==null?void 0:Ea.find(il=>(il==null?void 0:il.isMainKey)===!0))==null?void 0:T.prop;Sa=h==null?void 0:h[ja];let ml=Ze==null?void 0:Ze.split(_),Fa=[];ml==null||ml.forEach((il,wl)=>{(ml==null?void 0:ml.length)-1===wl&&Fa.push(Sa),Fa.push(il)}),Fa=Fa==null?void 0:Fa[0];let nl=await ue.getItemData(Fa,sessionStorage.getItem("systemKey"),""),Wa=nl==null?void 0:nl.filter(il=>(il==null?void 0:il.name)===xe);Wa=Wa==null?void 0:Wa.map(il=>{var wl;return il.compData=(wl=il==null?void 0:il.compData)==null?void 0:wl.map(Dl=>{var xr;return(Dl==null?void 0:Dl.key)==="tableContents"&&(Dl.contents=(xr=Dl==null?void 0:Dl.contents)==null?void 0:xr.filter($l=>($l==null?void 0:$l[1])===(h==null?void 0:h[xe]))),Dl}),il}),(!Wa||(Wa==null?void 0:Wa.length)===0)&&(Wa=nl,Wa=Wa==null?void 0:Wa.map(il=>{var wl;return il.compData=(wl=il==null?void 0:il.compData)==null?void 0:wl.map(Dl=>{var xr;return(Dl==null?void 0:Dl.key)==="tableContents"&&(Dl.contents=(xr=Dl==null?void 0:Dl.contents)==null?void 0:xr.filter($l=>{var bl,Nl;return($l==null?void 0:$l[1])===(h==null?void 0:h[(Nl=(bl=V==null?void 0:V.value)==null?void 0:bl[0])==null?void 0:Nl.prop])})),Dl}),il})),Ce=Qo(Wa)}const Ia=await Zo(re,{token:Ke,inputData:Ce}).catch(ja=>(ie.setImportLoading(!1),Promise.reject(ja))),za=(G=Ia==null?void 0:Ia.data)==null?void 0:G.data,Qe=le.find(ja=>(ja==null?void 0:ja.prop)==="Output1"),Ja=Qe==null?void 0:Qe.prop;let _a=[],Xa=[];if(za&&(($e=Object.values(za))==null?void 0:$e.length)>0){let ja=[];const ml=new FormData,Fa=(sa=et(za))==null?void 0:sa.map(async Wa=>{var il,wl;if(!Array.isArray(Wa)&&(Wa!=null&&Wa.includes("http"))){let Dl=await Ha.axios.get(Wa,{responseType:"blob"}),xr=(wl=Wa==null?void 0:Wa.split("/"))==null?void 0:wl[((il=Wa==null?void 0:Wa.split("/"))==null?void 0:il.length)-1];ml.append("files",Dl.data,xr)}else ja.push(Wa)});if(await Promise.all(Fa),!ue.isFormDataEmpty(ml)){let Wa=await A.uploadAmountApi(ml),il=(pa=(we=Wa==null?void 0:Wa.data)==null?void 0:we.result)==null?void 0:pa.map(wl=>{var Dl,xr,$l,bl,Nl,Xl;return{name:(Xl=(Nl=(bl=(Dl=wl==null?void 0:wl.url)==null?void 0:Dl.split("/"))==null?void 0:bl[(($l=(xr=wl==null?void 0:wl.url)==null?void 0:xr.split("/"))==null?void 0:$l.length)-1])==null?void 0:Nl.split("."))==null?void 0:Xl[0],url:wl==null?void 0:wl.url}});ja=[...ja,...il]}let nl={};for(let Wa in h)Wa!=="id"&&(nl[Wa]=h[Wa]);nl[Ja]=ja,Xa.push({id:h==null?void 0:h.id,value:{tableData:nl}})}if((Xa==null?void 0:Xa.length)>0){const ja=Xa.map(Fa=>{const nl={id:Fa.id,...Fa.value.tableData};return delete nl._isOCRRow,delete nl._ocrTableId,delete nl._isTemp,delete nl.tableEditType,delete nl.index,nl}),ml=[{tableName:(Na=c==null?void 0:c.related)==null?void 0:Na.find(Fa=>Fa==null?void 0:Fa.includes("content")),tableContents:ja}];await A.pageBatchUpdateApi({platId:parseInt((al=cl.value)==null?void 0:al.plat_id),changeContents:ml})}if((_a==null?void 0:_a.length)>0)try{await A.pageBatchAddApi({platId:parseInt((Ua=cl.value)==null?void 0:Ua.plat_id),changeContents:[{tableName:(ul=c==null?void 0:c.related)==null?void 0:ul.find(ja=>ja==null?void 0:ja.includes("content")),tableContents:_a.map(ja=>{var Fa,nl,Wa;const ml={id:((Fa=ja==null?void 0:ja.key)==null?void 0:Fa.id)??((nl=ja==null?void 0:ja.key)==null?void 0:nl.rowId)??(ja==null?void 0:ja.id),...((Wa=ja==null?void 0:ja.value)==null?void 0:Wa.tableData)||{}};return delete ml._isOCRRow,delete ml._ocrTableId,delete ml._isTemp,delete ml.tableEditType,delete ml.index,Object.keys(ml).forEach(il=>{il==="证书附件"&&Array.isArray(ml[il])&&(ml[il]=JSON.stringify(ml[il]))}),ml})}]})}catch(ja){Ha.ElMessage.error(((Pl=(fl=ja==null?void 0:ja.response)==null?void 0:fl.data)==null?void 0:Pl.message)||(ja==null?void 0:ja.message)||"保存失败"),ua.setTableLoading(!1);return}Fi(!0),ie.setImportLoading(!1),ua.setFreshContent(!0)},to=(u,h)=>(u=u==null?void 0:u.map(B=>{var z,P;return B!=null&&B.children&&((z=B.children)!=null&&z.find(C=>C.id===(h==null?void 0:h.id))?B.children=(P=B.children)==null?void 0:P.filter(C=>(C==null?void 0:C.id)!==(h==null?void 0:h.id)):B.children=to(B.children,h)),B}),u),fi=e.ref(!1),o=()=>{fi.value=!0},i=async u=>{var B,z,P,C;fi.value=!1;const h=Array.isArray(u)?u:u?[u]:[];if(h.length!==0)for(const re of h){const le={name:re.name||`capture-${Date.now()}.jpg`,url:URL.createObjectURL(re),raw:re,uid:Date.now()+Math.random()};Va.value.push(le),rr(le,"uploading"),Al(le,0);try{const q=new FormData;q.append("file",re,le.name);const xe=await A.platformUploadFile(q);le.uploadResult=((B=xe==null?void 0:xe.data)==null?void 0:B.result)||{name:le.name,url:"",fileName:le.name},jl({name:((z=le.uploadResult)==null?void 0:z.name)||le.name,url:((P=le.uploadResult)==null?void 0:P.url)||"",id:(C=le.uploadResult)==null?void 0:C.id}),rr(le,"uploaded"),Al(le,100)}catch(q){console.error("文件上传失败:",q),Ha.ElMessage.error(`文件 ${le.name} 上传失败,请重试`),rr(le,"pending"),Al(le,0);const xe=Va.value.findIndex(Ce=>Ce.uid===le.uid);xe>-1&&Va.value.splice(xe,1)}}},p=e.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:(u,h,B)=>{h===(c==null?void 0:c.index)?B(new Error("选择源不能和目标源一致")):B()}}]},buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"确认",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]}),m=e.reactive({title:"温馨提示:检测到导入的以下数据,系统中已存在,请选择操作",show:!1,width:"70%",columns:[],tableData:[],existRows:[],newRows:[],buttonValue:[{label:"跳过",value:"cancel",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"覆盖",render:"popover",value:"replace",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}],result:""}),S=()=>{m.show=!1},O=async u=>{var h,B,z,P,C,re,le,q;try{const xe=[];let Ce=(h=Ne.value||[])==null?void 0:h.slice();(u||[]).forEach(Ia=>{const za={...Ia};try{za.sort=Xn(0,Ce)}catch{}xe.push(za),Ce.unshift(za)});let Ke=await A.quoteApi({platId:parseInt((B=cl==null?void 0:cl.value)==null?void 0:B.plat_id),type:"fatherSyncs",related:[{menus:Ee.value,groups:""},{menus:Ee.value,groups:c==null?void 0:c.compName}]});Ke=(z=Ke==null?void 0:Ke.data)==null?void 0:z.result;let Pe=Ke==null?void 0:Ke.map(Ia=>({tableName:"content_"+(Ia==null?void 0:Ia.id),tableContents:xe==null?void 0:xe.map((za,Qe)=>({id:Qe,...za}))})),Ze=[{tableName:(P=c==null?void 0:c.related)==null?void 0:P.find(Ia=>Ia==null?void 0:Ia.includes("content")),tableContents:xe==null?void 0:xe.map((Ia,za)=>({id:za,...Ia}))}];Ze=[...Ze,...Pe];const Sa=await A.pageBatchAddApi({platId:parseInt((C=cl.value)==null?void 0:C.plat_id),changeContents:Ze});if(((re=Sa==null?void 0:Sa.data)==null?void 0:re.code)===200){const Ia={buttonName:"新增",columns:V.value,fixContent:xe==null?void 0:xe.map((Qe,Ja)=>({id:Ja,...Qe})),relatedContents:c==null?void 0:c.related};await xt(Ia),Ha.ElMessage.success("数据导入成功");let za=[];Ze==null||Ze.forEach(Qe=>{var Ja;(Ja=Qe==null?void 0:Qe.tableContents)==null||Ja.forEach(_a=>{za.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(_a),request_result:"{}",is_delete:!1,request_table:Qe==null?void 0:Qe.tableName,request_type:"export"})})}),await A.pageBatchAddApi({platId:parseInt((le=cl==null?void 0:cl.value)==null?void 0:le.plat_id),changeContents:[{tableName:"log",tableContents:za}]})}else{let Ia=[];Ze==null||Ze.forEach(za=>{var Qe;(Qe=za==null?void 0:za.tableContents)==null||Qe.forEach(Ja=>{Ia.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(Ja),request_result:"{}",is_delete:!1,request_table:za==null?void 0:za.tableName,request_type:"error"})})}),await A.pageBatchAddApi({platId:parseInt((q=cl==null?void 0:cl.value)==null?void 0:q.plat_id),changeContents:[{tableName:"log",tableContents:Ia}]}),Ha.ElMessage.error("数据导入响应失败")}}catch(xe){throw new Error(xe)}},K=async u=>{var h,B,z,P,C,re,le,q,xe,Ce;try{if(u==="cancel"&&(m.show=!1),u==="replace"&&((h=m==null?void 0:m.existRows)==null?void 0:h.length)>0){await A.pageBatchDeleteApi({platId:parseInt((B=cl.value)==null?void 0:B.plat_id),changeContents:[{tableName:((z=c==null?void 0:c.related)==null?void 0:z.find(Pe=>Pe==null?void 0:Pe.includes("content_")))||((P=c==null?void 0:c.related)==null?void 0:P.find(Pe=>Pe==null?void 0:Pe.includes("content"))),tableContents:m==null?void 0:m.existRows}]});const Ke=await A.pageBatchAddApi({platId:parseInt((C=cl.value)==null?void 0:C.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:(()=>{const Pe=(Ne.value||[]).filter(za=>!((m==null?void 0:m.existRows)||[]).some(Qe=>String(Qe==null?void 0:Qe.id)===String(za==null?void 0:za.id))),Ze=(m==null?void 0:m.tableData)||[],Sa=[];let Ia=Pe.slice();return Ze.forEach(za=>{const Qe={...za};try{Qe.sort=Xn(0,Ia)}catch{}Sa.push(Qe),Ia.unshift(Qe)}),Sa.map((za,Qe)=>({id:Qe,...za}))})()}]});if(((le=Ke==null?void 0:Ke.data)==null?void 0:le.code)!==200)return;(q=m.newRows)!=null&&q.length&&await O(m.newRows),await xt({buttonName:"新增",columns:V.value,fixContent:(xe=m==null?void 0:m.tableData)==null?void 0:xe.map((Pe,Ze)=>({id:Ze,...Pe})),relatedContents:c==null?void 0:c.related}),(Ce=m.newRows)!=null&&Ce.length||Ha.ElMessage.success("数据导入成功")}}catch(Ke){throw new Error(Ke)}finally{m.show=!1,m.columns=[],m.tableData=[],m.existRows=[]}},Z=()=>{p.show=!1},be=u=>{var h,B;if((u==null?void 0:u.buttonName)==="取消")return p.show=!1;p.to=u==null?void 0:u.content,!(!(c!=null&&c.index)||!((h=p.to)!=null&&h.groupName))&&(c==null?void 0:c.index)!==((B=p.to)==null?void 0:B.groupName)&&(Ie("change",{buttonName:"迁移",value:{from:p.from,to:p.to,data:p.selectRow}}),p.show=!1)},je=async u=>{var h,B,z,P;if(u){if(!Er.validateFileSize(u.raw)){Ha.ElMessage.warning(`文件大小不能超过 ${yn.value.maxSize}MB`);const C=Va.value.findIndex(re=>re.uid===u.uid);C>-1&&Va.value.splice(C,1),De();return}if(!Er.validateFileType(u.raw)){Ha.ElMessage.warning("请上传图片文件");const C=Va.value.findIndex(re=>re.uid===u.uid);C>-1&&Va.value.splice(C,1),De();return}rr(u,"uploading"),Al(u,0);try{const C=new FormData;C.append("file",u.raw,u.name);const re=await A.platformUploadFile(C);u.uploadResult=((h=re==null?void 0:re.data)==null?void 0:h.result)||{name:u.name,url:"",fileName:u.name},jl({name:((B=u.uploadResult)==null?void 0:B.name)||u.name,url:((z=u.uploadResult)==null?void 0:z.url)||"",id:(P=u.uploadResult)==null?void 0:P.id}),rr(u,"uploaded"),Al(u,100)}catch(C){console.error("文件上传失败:",C),Ha.ElMessage.error(`文件 ${u.name} 上传失败,请重试`),rr(u,"pending"),Al(u,0);const re=Va.value.findIndex(le=>le.uid===u.uid);re>-1&&Va.value.splice(re,1)}finally{De()}}},De=()=>{e.nextTick(()=>{const u=document.querySelector('.ocr-upload-input input[type="file"]');u&&(u.value="")})},na=async()=>{var B,z;if(sessionStorage.setItem("ocr_root_table_id",String((c==null?void 0:c.index)??"")),Va.value.length===0){Ha.ElMessage.warning("请先选择要上传的图片");return}if(Va.value.filter(P=>{const C=Cl(P);return C!=="uploaded"&&C!=="completed"&&C!=="failed"}).length>0){Ha.ElMessage.warning("请等待所有文件上传完成后再开始识别");return}ol.value=!0,ka.value=0;let h=null;try{Va.value.forEach(Qe=>{rr(Qe,"processing")});const P=Math.floor(Math.random()*10)+90;h=setInterval(()=>{ka.value<P?ka.value+=1:clearInterval(h)},50);const C=Va.value.map(Qe=>{var Ja,_a,Xa;return{name:((Ja=Qe.uploadResult)==null?void 0:Ja.name)||Qe.name,url:((_a=Qe.uploadResult)==null?void 0:_a.url)||"",fileName:((Xa=Qe.uploadResult)==null?void 0:Xa.fileName)||Qe.name}}),re=Er.extractTableHeaders(V.value),le=C.map(Qe=>({name:(Qe==null?void 0:Qe.fileName)||(Qe==null?void 0:Qe.name),url:(Qe==null?void 0:Qe.url)||""})),q=await Er.recognize(le,re);if(console.log(q,"ocrResult"),clearInterval(h),h=null,(q==null?void 0:q.code)===500||(q==null?void 0:q.type)==="error"||!(q!=null&&q.result)){ka.value=0,Va.value.forEach(Qe=>{rr(Qe,"failed"),Al(Qe,0)}),Ha.ElMessage.error((q==null?void 0:q.message)||"OCR识别失败,请重试"),ol.value=!1;return}ka.value=P;const xe=Array.isArray(q==null?void 0:q.result)?q.result:[];if(xe.length===0){ka.value=0,Va.value.forEach(Qe=>{rr(Qe,"failed"),Al(Qe,0)}),Ha.ElMessage.warning("OCR识别未返回有效数据"),ol.value=!1;return}const Ce=new Set,Ke=[];xe.forEach((Qe,Ja)=>{const _a=Qe!=null&&Qe.数据&&typeof(Qe==null?void 0:Qe.数据)=="object"?Qe.数据:{},Xa=Array.isArray(Qe==null?void 0:Qe.图片信息)?Qe.图片信息:[],ge=new Map;Xa.forEach(wa=>{wa!=null&&wa.name&&ge.set(wa.name,wa.url||"")});const Ra={_index:Ja,_certType:(Qe==null?void 0:Qe.证书类型)||"",_certNo:(Qe==null?void 0:Qe.证书编号)||"",_ocrImages:Xa,__ocrFieldMeta:{}};Object.entries(_a).forEach(([wa,Ca])=>{let Ea="",T=0,G=[],$e="";Ca&&typeof Ca=="object"&&!Array.isArray(Ca)?(Ea=(Ca==null?void 0:Ca.value)??"",T=(Ca==null?void 0:Ca.score)??0,G=Array.isArray(Ca==null?void 0:Ca.bboxNorm)?Ca==null?void 0:Ca.bboxNorm:[],$e=(Ca==null?void 0:Ca.imageName)||""):Array.isArray(Ca)&&Ca.length>=2?(Ea=Ca[0]??"",T=Ca[1]??0):(Ea=Ca??"",T=0),Ra[wa]=Ea,Ra[`${wa}_accuracy`]=T,Ce.add(wa),Ra.__ocrFieldMeta[wa]={value:Ea,score:T,bboxNorm:G,imageName:$e,imageUrl:$e&&ge.get($e)||"",images:Xa}}),Ke.push(Ra)});const Pe=[],Ze=new Set;Ke.forEach(Qe=>{Qe&&Ce.forEach(Ja=>{const _a=Qe[`${Ja}_accuracy`];(typeof _a=="number"?_a>0:_a!=null&&String(_a).trim()!==""&&String(_a)!=="0")&&Ze.add(Ja)})}),Ce.forEach(Qe=>{Pe.push({prop:Qe,label:Qe,editable:!0,minWidth:230}),Ze.has(Qe)&&Pe.push({prop:`${Qe}_accuracy`,label:"准确率",editable:!1,minWidth:100,isAccuracy:!0})}),Va.value.forEach(Qe=>{rr(Qe,"completed")}),ka.value=100,ta.value=Pe,Ye.value=Ke,He.value=C,ca.value=q;const Sa=["出厂编号","设备名称","制造厂"],Ia=Pe.filter(Qe=>Qe&&!Qe.isAccuracy&&typeof Qe.prop=="string").map(Qe=>Qe.prop),za=["出厂编号","设备名称","制造厂"];oa.value=Ia.filter(Qe=>za.includes(Qe)),console.log("[OCR] 默认勾选字段 props:",oa.value),ra.value=2,ol.value=!1,ha.value=!1}catch(P){console.error("OCR处理失败:",P),h&&(clearInterval(h),h=null),Ha.ElMessage.error(((z=(B=P==null?void 0:P.response)==null?void 0:B.data)==null?void 0:z.message)||"OCR识别失败,请重试"),ol.value=!1,ka.value=0,Va.value.forEach(C=>{rr(C,"pending"),Al(C,0)})}},Ta=u=>{if(u==null)return"";let h=String(u);return h=h.replace(/\s+/g," ").trim(),h=h.replace(/[!-~]/g,B=>String.fromCharCode(B.charCodeAt(0)-65248)),h=h.replace(/ /g," "),h=h.replace(/^(编号|No\.?|NO\.?|no\.?|SN\.?|sn\.?|序列号)\s*[::]?\s*/i,""),h},Ya=()=>{var Qe,Ja;const u=He.value,h=ca.value,B=Ye.value;if(!B||B.length===0){Ha.ElMessage.warning("暂无数据可添加");return}const z=(Qe=ue.getAllLeafNodes(V.value)||[])==null?void 0:Qe.filter(_a=>(_a==null?void 0:_a.type)!=="operate"&&(_a==null?void 0:_a.label)!=="操作"&&(_a==null?void 0:_a.prop)!=="operate"),P=new Map,C=new Map,re=(Ja=z==null?void 0:z.find(_a=>(_a==null?void 0:_a.label)==="证书附件"))==null?void 0:Ja.prop;z==null||z.forEach(_a=>{_a!=null&&_a.label&&(_a!=null&&_a.prop)&&(P.set(_a.label,_a.prop),C.set(_a.prop,_a.label))});const le=Date.now(),q=_a=>String(le*1e3+_a),xe=[],Ce=[],Ke=_a=>{const Xa=Do&&Do[_a]||[_a];for(const ge of Xa){const Ra=P.get(ge);if(Ra)return Ra}return""},Pe=Ke("出厂编号"),Ze=Ke("设备名称"),Sa=Ke("制造厂"),Ia=[],za=_a=>{var Ea,T;if(!re)return[];const Xa=(Array.isArray(u)?u[_a]:null)||null,ge=(Xa==null?void 0:Xa.url)||"",Ra=(Xa==null?void 0:Xa.fileName)||(Xa==null?void 0:Xa.name)||"";return(String(Ra).toLowerCase().endsWith(".pdf")||String(ge).toLowerCase().endsWith(".pdf"))&&ge?[{url:ge,name:Ra,fileName:Ra}]:(Array.isArray((T=(Ea=h==null?void 0:h.result)==null?void 0:Ea[_a])==null?void 0:T.图片信息)?h.result[_a].图片信息:[]).map(G=>({url:(G==null?void 0:G.url)||"",name:(G==null?void 0:G.name)||"",fileName:(G==null?void 0:G.name)||""})).filter(G=>G.url)};if(B.forEach((_a,Xa)=>{var al;const ge={id:q(Xa),_isOCRRow:!0,_ocrTableId:c==null?void 0:c.index};for(const[Ua,ul]of P.entries())Object.prototype.hasOwnProperty.call(_a,Ua)&&(ge[ul]=_a[Ua]);re&&(ge[re]=za(Xa));const Ra=(Array.isArray(h==null?void 0:h.result)?h.result[Xa]:null)||null,wa=(Array.isArray(u)?u[Xa]:null)||null,Ca=(wa==null?void 0:wa.url)||"",Ea=(wa==null?void 0:wa.fileName)||(wa==null?void 0:wa.name)||"",T=String(Ea).toLowerCase().endsWith(".pdf")||String(Ca).toLowerCase().endsWith(".pdf"),G={ts:Date.now(),versionId:String(Date.now())+"_"+String(Xa),label:new Date().toLocaleString(),certType:(Ra==null?void 0:Ra.证书类型)||"",certNo:(Ra==null?void 0:Ra.证书编号)||"",fileType:T?"pdf":"image",sourceUrl:T?Ca:"",images:Array.isArray(Ra==null?void 0:Ra.图片信息)?Ra.图片信息.map(Ua=>({name:(Ua==null?void 0:Ua.name)||"",url:(Ua==null?void 0:Ua.url)||""})).filter(Ua=>Ua.url):[]},$e=Ua=>Ta(Ua?ge==null?void 0:ge[Ua]:""),sa=$e(Pe),we=$e(Ze),pa=$e(Sa);if(!!(Pe&&Ze&&Sa&&sa&&we&&pa)){const Ua=(Ne.value||[]).find(ul=>{const fl=Ta(Pe?ul==null?void 0:ul[Pe]:""),Pl=Ta(Ze?ul==null?void 0:ul[Ze]:""),ja=Ta(Sa?ul==null?void 0:ul[Sa]:"");return fl&&Pl&&ja&&fl===sa&&Pl===we&&ja===pa});if(Ua){Ia.push({idx:Xa,ocrRow:ge,versionItem:G,ocrNo:sa,candidates:[Ua],selectedTargetId:String((Ua==null?void 0:Ua.id)??""),__decision:"replace",allowAdd:!1,allowReplace:!0});return}}if(sa&&Pe){const Ua=(Ne.value||[]).filter(ul=>{const fl=Ta(Pe?ul==null?void 0:ul[Pe]:"");return fl&&fl===sa});if(Ua.length>0){Ia.push({idx:Xa,ocrRow:ge,versionItem:G,ocrNo:sa,candidates:Ua,selectedTargetId:"",__decision:"",allowAdd:!0,allowReplace:!0});return}}try{if(ge.sort===void 0||ge.sort===null||String(ge.sort).trim()===""){const Ua=(Ne.value||[]).map(fl=>Jn(fl==null?void 0:fl.sort)).filter(fl=>fl!==null),ul=Ua.length>0?Math.max(...Ua):((al=Ne.value)==null?void 0:al.length)??0;ge.sort=String(Number((ul+1).toFixed(6)))}}catch{}Ma(c==null?void 0:c.index,ge.id,G),Ia.push({idx:Xa,ocrRow:ge,versionItem:G,ocrNo:sa,candidates:[],selectedTargetId:"",__decision:"add",allowAdd:!0,allowReplace:!1})}),(Ia||[]).length>0){Kl.value=(Ia||[]).map(_a=>({..._a,selectedTargetId:(_a==null?void 0:_a.selectedTargetId)||""})),Wl.value=!0,Ql.value=Ce,pr.value=xe,Rl.value=h,fr.value=u,$r.value=re||"";return}},qa=(u,h,B)=>{Ye.value[u]&&(Ye.value[u][h]=B)},Qa=u=>u==null||u===0?"-":`${(Number(u)*100).toFixed(1)}%`,xl=u=>{if(u==null||u===0)return"#909399";const h=Number(u);return h>=.9?"#67c23a":h>=.7?"#e6a23c":"#f56c6c"},vl=u=>{var B,z,P,C;if(Za.value===u){Za.value=null,Te.value=!1,Re.value="";return}Za.value=u,Re.value="";const h=(B=Ye.value)==null?void 0:B[u];if(h&&Array.isArray(h._ocrImages)&&h._ocrImages.length>0){_l.value=h._ocrImages.map(q=>({name:(q==null?void 0:q.name)||"",url:(q==null?void 0:q.url)||""})).filter(q=>q.name||q.url);const re=h.__ocrFieldMeta||{},le=(z=Object.values(re))==null?void 0:z.find(q=>q==null?void 0:q.imageName);Ll.value=(le==null?void 0:le.imageName)||((C=(P=_l.value)==null?void 0:P[0])==null?void 0:C.name)||"",Te.value=_l.value.length>0}else _l.value=[],Te.value=!1,Ll.value=""},El=()=>{sl.value=!1,Va.value=[],dl.value=null,ra.value=1,ea.value.clear(),fe.value.clear(),ka.value=0,Te.value=!1},Ul=u=>u.raw?URL.createObjectURL(u.raw):u.url?u.url:"",Cl=u=>{const h=u.uid||u.name;return ea.value.get(h)||"pending"},Ml=u=>{const h=u.uid||u.name;return fe.value.get(h)||0},Al=(u,h)=>{const B=u.uid||u.name;fe.value.set(B,Math.min(100,Math.max(0,h)))},Hr=u=>{const h=Cl(u),B=100.53;if(h==="completed"||h==="uploaded")return`${B} ${B}`;if(h==="failed")return`${B} ${B}`;if(h==="uploading"){const z=Ml(u);return`${B*(z/100)} ${B}`}else if(h==="processing")return`${B*.5} ${B}`;return`0 ${B}`},rr=(u,h)=>{const B=u.uid||u.name;ea.value.set(B,h),(h==="completed"||h==="uploaded")&&Al(u,100)},Gr=()=>{e.nextTick(()=>{const u=document.querySelector('.ocr-upload-input input[type="file"]');if(u)u.value="",u.click();else{const h=document.createElement("input");h.type="file",h.multiple=!0,h.accept="image/*,application/pdf",h.style.display="none",h.onchange=async B=>{const z=Array.from(B.target.files||[]);for(const P of z){const C={name:P.name,raw:P,uid:Date.now()+Math.random()};Va.value.push(C),await je(C)}B.target.value="",document.body.removeChild(h)},document.body.appendChild(h),h.click()}})},on=()=>{ra.value>1&&ra.value--},wn=()=>{ra.value===1?Va.value.length>0&&!ol.value&&na():ra.value===2&&(Ya(),ra.value=3)},hi=async u=>{await Tt(u==null?void 0:u.row)},Qn=async({row:u,prop:h})=>{!u||!h||await Tt(u,h)},Tt=async(u,h)=>{var P,C;const B=u==null?void 0:u.id;if(!B){Ha.ElMessage.warning("暂无可预览数据");return}let z=Il(c==null?void 0:c.index,B);if(!z||z.length===0){const re=sessionStorage.getItem("ocr_root_table_id"),le=re!==null?Number(re):null;if(le!=null&&le!==""&&!Number.isNaN(le)){const q=Il(le,B);Array.isArray(q)&&q.length>0&&(Vl(c==null?void 0:c.index,B,q),z=q)}}if(!z||z.length===0){const re=(P=ue.getAllLeafNodes(V.value)||[])==null?void 0:P.filter(q=>(q==null?void 0:q.type)!=="operate"&&(q==null?void 0:q.label)!=="操作"&&(q==null?void 0:q.prop)!=="operate"),le=h||((C=re==null?void 0:re.find(q=>(q==null?void 0:q.label)==="证书附件"))==null?void 0:C.prop);if(le&&u[le]){const q=u[le];let xe=[],Ce="",Ke=!1;if(typeof q=="string")try{const Pe=JSON.parse(q);Array.isArray(Pe)&&(xe=Pe.map(Ze=>({name:(Ze==null?void 0:Ze.name)||(Ze==null?void 0:Ze.fileName)||"",url:(Ze==null?void 0:Ze.url)||""})).filter(Ze=>Ze.url||Ze.name),xe.length>0&&(Ce=xe[0].url||"",Ke=String(xe[0].name).toLowerCase().endsWith(".pdf")||String(Ce).toLowerCase().endsWith(".pdf")))}catch{Ce=q,Ke=String(q).toLowerCase().endsWith(".pdf"),xe=[{name:q,url:q}]}else Array.isArray(q)&&(xe=q.map(Pe=>({name:(Pe==null?void 0:Pe.name)||(Pe==null?void 0:Pe.fileName)||"",url:(Pe==null?void 0:Pe.url)||""})).filter(Pe=>Pe.url||Pe.name),xe.length>0&&(Ce=xe[0].url||"",Ke=String(xe[0].name).toLowerCase().endsWith(".pdf")||String(Ce).toLowerCase().endsWith(".pdf")));if(xe.length>0||Ce){const Pe={ts:Date.now(),versionId:String(Date.now()),label:new Date().toLocaleString(),certType:u.证书类型||"",certNo:u.证书编号||"",fileType:Ke?"pdf":"image",sourceUrl:Ke?Ce:"",images:xe};z=[Pe],Ma(c==null?void 0:c.index,B,Pe)}}}if(!z||z.length===0){Ha.ElMessage.warning("暂无可预览数据");return}X.value=z,rl.value=!0},nu=u=>{Va.value=Va.value.filter((h,B)=>B!==u)},lt=async(u,h,B)=>{var z,P,C,re,le,q,xe,Ce,Ke,Pe,Ze,Sa,Ia,za,Qe,Ja,_a,Xa,ge,Ra,wa;if(ba(c.config,{type:te.TABLE,tableOperate:u})){if(Da.value="",Ue.value=!0,aa.value=!0,Ie("onButtonClick",u,h),Y.value=[],u==="删除")A.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var Ca,Ea,T,G;(Ca=Ne.value)!=null&&Ca.find($e=>($e==null?void 0:$e.id)===(h==null?void 0:h.id))?Ne.value=(Ea=A.cloneDeep(Ne.value))==null?void 0:Ea.filter($e=>($e==null?void 0:$e.id)!==(h==null?void 0:h.id)):Ne.value=to(A.cloneDeep(Ne.value),h);try{h!=null&&h.id&&((G=(T=Aa.value)==null?void 0:T.has)!=null&&G.call(T,h==null?void 0:h.id))&&Aa.value.delete(h.id)}catch{}Nf(ln.value,pn.value,h==null?void 0:h.id),ua.setTableLoading(c==null?void 0:c.index),Ie("change",{content:Ne.value,fixContent:[h],index:c==null?void 0:c.index,type:"delete",name:c==null?void 0:c.groupNames,buttonName:u,columns:V.value,relatedContents:c==null?void 0:c.related}),console.log(h,"item")});else if(u==="批量删除"){if(((z=Yl.value)==null?void 0:z.length)===0)return Ha.ElMessage.warning("请先勾选操作的数据");A.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(async()=>{var T,G,$e,sa,we;const Ca=(T=Yl.value)==null?void 0:T.map(pa=>pa.id);Ne.value=(G=A.cloneDeep(Ne.value))==null?void 0:G.filter(pa=>!(Ca!=null&&Ca.includes(pa.id))),ua.setTableLoading(c==null?void 0:c.index),Ie("change",{content:Ne.value,fixContent:Yl.value,index:c==null?void 0:c.index,type:"delete",name:c==null?void 0:c.compName,buttonName:u,relatedContents:c==null?void 0:c.related,columns:V.value});const Ea=(Ca||[]).filter(Boolean);if(Ea.length>0&&Ea.every(pa=>pa!=null&&pa!=="")){const pa=(Yl.value||[]).map(Na=>{const al={...Na};return delete al._isOCRRow,delete al._ocrTableId,delete al._isTemp,delete al.tableEditType,delete al.index,al});await A.pageBatchDeleteApi({platId:parseInt(($e=cl.value)==null?void 0:$e.plat_id),changeContents:[{tableName:((sa=c==null?void 0:c.related)==null?void 0:sa.find(Na=>Na==null?void 0:Na.includes("content_")))||((we=c==null?void 0:c.related)==null?void 0:we.find(Na=>Na==null?void 0:Na.includes("content"))),tableContents:pa}]})}})}else if(u==="复制新增"){ae.value="复制新增",A.cloneDeep(h);const Ca=(P=V.value)==null?void 0:P.find(Ea=>Ea==null?void 0:Ea.isMainKey);Ca||((C=V.value)==null||C[0]),ur.value=h,Fi(!0)}else if(u==="新增")ae.value="新增",$i(""),ze.value=!0;else if(u==="编辑")ae.value="编辑",$i(h),ze.value=!0;else if(u==="查看")ae.value="查看",$i(h),Ue.value=!1,aa.value=!1,ze.value=!0;else if(u==="查看三维模型"){const Ca={};for(let T in h)T!=="id"&&(Ca[T]=h[T]);let Ea=(re=Object.values(Ca))==null?void 0:re[1];We.setTableShowThree(Ea)}else if(u==="切换视图")yu();else if(((le=B==null?void 0:B.extra)==null?void 0:le.type)==="modelExample")ae.value=u,ya.value=!0;else if(u==="新建"){let Ca=he.value,Ea=[];for(let we in Ca)we!=null&&we.includes(`loading${((q=cl.value)==null?void 0:q.account)||((xe=cl.value)==null?void 0:xe.账号)}`)&&(Ea=[...Ea,...we]);let T=[];for(let we in Ca)we!=null&&we.includes(`updateLoading${((Ce=cl.value)==null?void 0:Ce.account)||((Ke=cl.value)==null?void 0:Ke.账号)}`)&&(T=[...T,...we]);let G=Ea==null?void 0:Ea.map(we=>we==null?void 0:we.id);const $e=T==null?void 0:T.map(we=>we==null?void 0:we.id);G=[...A.cloneDeep(G),...$e],(G==null?void 0:G.length)>0&&(G!=null&&G.every(we=>we!==null&&we))&&await Nr.batchDeleteInsofDataApi({ids:G});const sa=(Pe=Oa.value)==null?void 0:Pe.find(we=>(we==null?void 0:we.label)==="新建");await tu(!1,sa)}else if(u==="修改模板"){let Ca=A.cloneDeep(Ee).value;ua.setRouteToChildPath(Ca),ie.setActiveMenuPath(Ca+_)}else if(u==="执行")at(u,h);else if(u==="导出paraform"){const Ca=A.ElLoading.service({lock:!0,text:"正在导出paraform...",background:"rgba(0, 0, 0, 0.7)"});try{const Ea=["推力","真空","压力","温度","流量"],T=bl=>{var Nl,Xl,Tl;return bl?typeof(bl==null?void 0:bl.value)=="string"?bl.value:((Tl=(Xl=(Nl=bl==null?void 0:bl._custom)==null?void 0:Nl.value)==null?void 0:Xl.value)==null?void 0:Tl.value)||"":""},G=Array.isArray(lr.value)?lr.value:[],$e=T(G.find(bl=>(bl==null?void 0:bl.condition)==="child")),sa=String($e||"").slice(0,8),we=bl=>{if(bl==null)return"";const Nl=String(bl).trim();if(!Nl)return"";if(/^\d{8}$/.test(Nl))return Nl;const Xl=Nl.match(/^(\d{4})[-\/.](\d{1,2})[-\/.](\d{1,2})$/);if(Xl){const Jl=Xl[1],nr=Xl[2].padStart(2,"0"),ql=Xl[3].padStart(2,"0");return`${Jl}${nr}${ql}`}const Tl=Nl.replace(/\D/g,"");return Tl.length>=8?Tl.slice(0,8):""},pa=async bl=>{var Nl,Xl;if(!bl)return"";try{const Tl=await Kr("试验任务/任务管理",!1),Jl=(mr,sr=[])=>{if(!Array.isArray(mr))return sr;for(const dr of mr)(dr==null?void 0:dr.comp)==="Table"&&(dr!=null&&dr.name)&&sr.push(dr),Array.isArray(dr==null?void 0:dr.children)&&Jl(dr.children,sr),Array.isArray(dr==null?void 0:dr.tab)&&Jl(dr.tab,sr),Array.isArray(dr==null?void 0:dr.choice)&&Jl(dr.choice,sr);return sr},ql=Jl(Tl||[]).find(mr=>(mr==null?void 0:mr.name)==="任务列表"),vr=((Xl=(Nl=ql==null?void 0:ql.compData)==null?void 0:Nl.find(mr=>(mr==null?void 0:mr.key)==="tableContents"))==null?void 0:Xl.contents)||[];if(!Array.isArray(vr)||vr.length===0)return"";const qr=vr.find(mr=>String((mr==null?void 0:mr["试验代号(名称)"])||"").slice(0,8)===bl);return we(qr==null?void 0:qr.计划试验时间)}catch(Tl){return console.warn("获取任务列表计划试验时间失败:",Tl),""}},Na=(Ee.value||"").replace(/\/+$/,""),al=$e?`${Na}/${$e}`:Na,Ua=await Kr(al||Ee.value,!1),ul=String(la.value||"").trim(),fl=bl=>String(bl||"").trim(),Pl=(bl,Nl=[],Xl="")=>{if(!Array.isArray(bl))return Nl;for(const Tl of bl){const Jl=fl((Tl==null?void 0:Tl.choiceName)||(Tl==null?void 0:Tl.name0)||Xl);(Tl==null?void 0:Tl.comp)==="Table"&&(Tl==null?void 0:Tl.name)&&Ea.includes(Tl.name)&&(!ul||Jl===ul)&&Nl.push(Tl),Array.isArray(Tl==null?void 0:Tl.children)&&Pl(Tl.children,Nl,Jl),Array.isArray(Tl==null?void 0:Tl.tab)&&Pl(Tl.tab,Nl,Jl),Array.isArray(Tl==null?void 0:Tl.choice)&&Pl(Tl.choice,Nl,Jl)}return Nl},ja=Pl(Ua||[]),ml=new Map;for(const bl of ja)bl!=null&&bl.name&&!ml.has(bl.name)&&ml.set(bl.name,bl);const Fa=Ea.map(bl=>ml.get(bl)).filter(Boolean);if(!Fa||Fa.length===0)return Ha.ElMessage.warning("未找到需要导出的表(推力、真空、压力、温度、流量)");const nl=bl=>{const Nl=new Map,Xl=(Tl,Jl=[])=>{if(Array.isArray(Tl))for(const nr of Tl){const ql=((nr==null?void 0:nr.label)??"").toString().trim(),vr=ql?[...Jl,ql]:[...Jl];if(Array.isArray(nr==null?void 0:nr.children)&&nr.children.length>0)Xl(nr.children,vr);else{const mr=((nr==null?void 0:nr.prop)??"").toString();if(!mr)continue;const sr=ql||mr,dr=(vr.length>0?[...Jl,sr]:[sr]).join(".");Nl.set(mr,dr)}}};return Xl(bl,[]),Nl},Wa=(bl,Nl)=>{const Xl=nl(bl||[]),Jl=(ue.getAllLeafNodes(bl||[])||[]).filter(ql=>(ql==null?void 0:ql.prop)&&(ql==null?void 0:ql.type)!=="operate"&&(ql==null?void 0:ql.label)!=="操作"&&(ql==null?void 0:ql.prop)!=="operate"),nr=Array.isArray(Nl)?Nl:[];return nr.length===0?[]:nr.map(ql=>{const vr={};return Jl.forEach(qr=>{const mr=String(qr.prop),sr=Xl.get(mr)||String(qr.label||qr.prop);vr[sr]=(ql==null?void 0:ql[mr])??""}),vr})},il=Fa.map(bl=>{var nr,ql;const Nl=(bl==null?void 0:bl.compData)||[];let Xl=(nr=Nl==null?void 0:Nl.find(vr=>(vr==null?void 0:vr.key)==="header"))==null?void 0:nr.contents;Array.isArray(Xl==null?void 0:Xl[0])&&(Xl=Xl[0]);const Tl=((ql=Nl==null?void 0:Nl.find(vr=>(vr==null?void 0:vr.key)==="tableContents"))==null?void 0:ql.contents)||[];if(!Array.isArray(Xl)||Xl.length===0||!Array.isArray(Tl)||Tl.length===0)return null;const Jl=Wa(Xl||[],Tl||[]);return!Array.isArray(Jl)||Jl.length===0?null:{类型:bl==null?void 0:bl.name,数据:Jl}}).filter(Boolean);if(!il||il.length===0)return Ha.ElMessage.warning("没有可导出的数据(推力、真空、压力、温度、流量均为空)");const wl=await pa(sa),Dl={试验代号:sa,试验日期:wl,ParaForm:il},xr=await pi().catch(()=>""),$l=await A.exportParaformApi(Dl,xr);if(((Ze=$l==null?void 0:$l.data)==null?void 0:Ze.code)===200&&((Ia=(Sa=$l==null?void 0:$l.data)==null?void 0:Sa.result)!=null&&Ia.Excel文件)){const bl=$l.data.result.Excel文件,Nl=await A.platformDownloadFile({url:bl}),Xl=new Blob([Nl.data],{type:"application/vnd.ms-excel"}),Tl=URL.createObjectURL(Xl),Jl=A.dayjs().format("YYYYMMDD"),ql=`${(sa||"UNKNOWN").trim()||"UNKNOWN"}_${Jl}_paraform.xls`,vr=document.createElement("a");vr.href=Tl,vr.download=ql,vr.style.display="none",document.body.appendChild(vr),vr.click(),setTimeout(()=>{document.body.removeChild(vr),URL.revokeObjectURL(Tl)},100);const qr=Array.isArray((Qe=(za=$l==null?void 0:$l.data)==null?void 0:za.result)==null?void 0:Qe.warnings)?$l.data.result.warnings:[];if(qr.length>0){const mr=qr.map((sr,dr)=>`${dr+1}. ${(sr==null?void 0:sr.field)||"未知字段"}:${(sr==null?void 0:sr.message)||""}`).join(`
24
+ `);Ha.ElMessage.warning({message:`导出成功,但存在以下提示:
25
+ ${mr}`,duration:5e3,showClose:!0})}else Ha.ElMessage.success("导出成功")}else Ha.ElMessage.error(((Ja=$l==null?void 0:$l.data)==null?void 0:Ja.message)||"导出失败")}catch(Ea){console.error("导出paraform失败:",Ea),Ha.ElMessage.error("导出失败:"+((Ea==null?void 0:Ea.message)||"未知错误"))}finally{Ca.close()}}else if(u!=null&&u.includes("导出")&&u!=="导出paraform"){if(u==="导出选中"&&((_a=Yl.value)==null?void 0:_a.length)===0)return Ha.ElMessage.warning(`请先勾选${u}的数据`);if(u==="导出全部"&&((Xa=Ne.value)==null?void 0:Xa.length)===0)return Ha.ElMessage.warning("暂无数据导出");let Ca=["序号",...(Ra=(ge=V.value)==null?void 0:ge.map($e=>$e==null?void 0:$e.prop))==null?void 0:Ra.filter($e=>$e!=="操作")],Ea=u==="导出全部"?Ne.value:Yl.value;const T=["id","sort","tableEditType","create_time","update_time","source_table","create_user_id","update_user_id","department_id","relatedId"];Ea=Ea==null?void 0:Ea.map($e=>Object.fromEntries(Object.entries($e).filter(([sa])=>!T.includes(sa)))),Ca=["序号",...Ca],Ea=Ea==null?void 0:Ea.map(($e,sa)=>({序号:sa+1,...$e}));let G=(c==null?void 0:c.compName)||"表格信息";Fo(Ea,G,Ca,G)}else if(u==="OCR识别")sl.value=!0,Va.value=[],ra.value=1,ea.value.clear(),fe.value.clear(),ka.value=0;else if(u==="迁移")p.selectRow=h,p.show=!0;else if(u==="生成方法"){let Ca=await Gf(h),Ea;h!==""?Ea=[h]:Ea=A.cloneDeep(Ne.value),Ea=Ea==null?void 0:Ea.map(G=>(G.输出值=Ca,G));const T={fixContent:Ea,buttonName:"编辑",relatedContents:c==null?void 0:c.related,columns:V.value,name:c==null?void 0:c.groupNames};Ie("change",T)}else if(((wa=B==null?void 0:B.extra)==null?void 0:wa.type)==="methodButton"){let Ca;h!==""?Ca=[h]:Ca=A.cloneDeep(Ne.value);const T={fixContent:await vt(Ca,V==null?void 0:V.value,"Manual",Ne.value),buttonName:"methodButton",relatedContents:c==null?void 0:c.related,columns:V.value,name:c==null?void 0:c.groupNames};Ie("change",T)}}},iu=async(u,h)=>{var B,z,P,C,re,le,q,xe,Ce,Ke,Pe,Ze,Sa,Ia,za,Qe,Ja,_a,Xa,ge;try{let Ra,wa;const Ca=(B=he.value[Ee.value+_])==null?void 0:B.filter(Na=>{var al;return((al=Na==null?void 0:Na.key)==null?void 0:al.type)==="structureMethod"}),Ea=(z=he.value[Ee.value+_])==null?void 0:z.filter(Na=>{var al;return((al=Na==null?void 0:Na.key)==null?void 0:al.type)==="structure"}),T=Ca==null?void 0:Ca.find(Na=>{var al,Ua;return((Ua=(al=Na==null?void 0:Na.value)==null?void 0:al.pageData)==null?void 0:Ua.method)==="保存"});if(!T)return;const G=(le=(re=he.value[(C=(P=T==null?void 0:T.value)==null?void 0:P.pageData)==null?void 0:C.path])==null?void 0:re.filter(Na=>{var al;return((al=Na==null?void 0:Na.key)==null?void 0:al.type)==="data"}))==null?void 0:le.find(Na=>{var al,Ua,ul,fl;return((Ua=(al=Na==null?void 0:Na.value)==null?void 0:al.tableData)==null?void 0:Ua.算法名称)===((fl=(ul=T==null?void 0:T.value)==null?void 0:ul.pageData)==null?void 0:fl.method)});if(!G)return;const $e={buttonName:(xe=(q=T==null?void 0:T.value)==null?void 0:q.pageData)==null?void 0:xe.method,api:(Ke=(Ce=G==null?void 0:G.value)==null?void 0:Ce.tableData)==null?void 0:Ke.算法体,content:Ea==null?void 0:Ea.map(Na=>{var al;return(al=Na==null?void 0:Na.value)==null?void 0:al.pageData}),extraContent:[],extraValues:(Ze=(Pe=T==null?void 0:T.value)==null?void 0:Pe.pageData)==null?void 0:Ze.data,methodName:(Ia=(Sa=T==null?void 0:T.value)==null?void 0:Sa.pageData)==null?void 0:Ia.path};if(!u)return;const sa={...u,compData:(za=u==null?void 0:u.compData)==null?void 0:za.map(Na=>{var al;return(Na==null?void 0:Na.key)==="formContent"?{...Na,contents:(al=Na==null?void 0:Na.contents)==null?void 0:al.map(Ua=>(Ua==null?void 0:Ua.prop)===h?{...Ua,value:""}:Ua)}:Na})},we={key:{pageKey:Ee.value+_,parentTable:"",systemKey:sessionStorage.getItem("systemKey"),type:"structure"},value:{pageData:sa}},pa=await Ha.axios.post($e.api,we,{headers:{"Content-Type":"application/json"}});return((Qe=pa==null?void 0:pa.data)==null?void 0:Qe.code)===200&&(Ra=(_a=(Ja=pa==null?void 0:pa.data)==null?void 0:Ja.result)==null?void 0:_a.latestReportCode,wa=(ge=(Xa=pa==null?void 0:pa.data)==null?void 0:Xa.result)==null?void 0:ge.status),{newMainKeyValue:Ra,newStatus:wa}}catch(Ra){throw Ha.ElMessage.error(Ra),new Error(Ra)}},Nt=e.reactive({prop:"状态",value:""});e.ref(["系统自动生成信息","审批意见"]);const ou=async(u,h,B)=>{var q,xe;let z=u==null?void 0:u[h==null?void 0:h.prop],P=1,C,re;const le=A.cloneDeep(Ee).value+_+z;if(le){Nt.value="",C=(q=he.value[le])==null?void 0:q.filter(Pe=>{var Ze;return((Ze=Pe==null?void 0:Pe.key)==null?void 0:Ze.type)==="structure"});const Ce=C==null?void 0:C.find(Pe=>{var Ze,Sa,Ia;return((Ia=(Sa=(Ze=Pe==null?void 0:Pe.value)==null?void 0:Ze.pageData)==null?void 0:Sa.comp)==null?void 0:Ia.toUpperCase())==="FORM"});re={...(xe=Ce==null?void 0:Ce.value)==null?void 0:xe.pageData,id:Ce==null?void 0:Ce.id};const Ke=await iu(re,h==null?void 0:h.prop);if(Nt.value=Ke==null?void 0:Ke.newStatus,Ke!=null&&Ke.newMainKeyValue)return Ke==null?void 0:Ke.newMainKeyValue}if(Ne.value.some(Ce=>(Ce==null?void 0:Ce[h==null?void 0:h.prop])===z)){const Ce=z;for(;Ne.value.some(Ke=>(Ke==null?void 0:Ke[h==null?void 0:h.prop])===`${Ce}(${P})`);)P++;z=`${Ce}(${P})`}return z},tu=async(u,h,B)=>{var C,re,le,q;let z,P;if(await ou(B==null?void 0:B.data,B==null?void 0:B.firstCol),z=A.cloneDeep(Ee).value+_,P=A.cloneDeep(z)+`loading${((C=cl.value)==null?void 0:C.account)||((re=cl.value)==null?void 0:re.账号)}`,h){const xe=(q=(le=he.value[P])==null?void 0:le.filter(Ce=>{var Ke;return((Ke=Ce==null?void 0:Ce.key)==null?void 0:Ke.parentTable)===""}))==null?void 0:q.map(Ce=>{var Ke;return{id:Ce==null?void 0:Ce.id,...(Ke=Ce==null?void 0:Ce.value)==null?void 0:Ke.pageData}});(xe==null?void 0:xe.length)>0||await ue.loadingConstruct(z,P,null,null,null),ua.setRouteToChildPath(A.cloneDeep(Ee).value),ie.setActiveMenuPath(P)}else ua.setRouteToChildPath(A.cloneDeep(Ee).value),ie.setActiveMenuPath(P)},su=()=>{Ve.value=!1,_e.value=[],me.value=!1},$i=u=>{var C,re,le,q,xe,Ce,Ke,Pe,Ze,Sa,Ia,za,Qe,Ja,_a,Xa,ge,Ra,wa,Ca,Ea;const h=[];Be.value=A.cloneDeep(V.value),(re=ue.getColumnChild((C=A.cloneDeep(V.value))==null?void 0:C.filter(T=>(T==null?void 0:T.label)!=="操作")))==null||re.forEach((T,G)=>{var $e,sa,we;T!=null&&T.formType&&(($e=T==null?void 0:T.formType)==null?void 0:$e.toUpperCase())==="SELECT"||T!=null&&T.menuId?h.push({label:(sa=T==null?void 0:T.prop)!=null&&sa.includes(".")?T==null?void 0:T.prop:(T==null?void 0:T.label)??(T==null?void 0:T.prop)??"",name:(T==null?void 0:T.prop)??"t"+G,prop:T==null?void 0:T.prop,type:"Select",value:(u==null?void 0:u[T==null?void 0:T.prop])??(T==null?void 0:T.value)??"",id:(T==null?void 0:T.id)??G,contents:(T==null?void 0:T.options)??[],multiple:(T==null?void 0:T.multiple)??!1,multipleLimit:T==null?void 0:T.multipleLimit,width:1,isFormColHidden:T==null?void 0:T.isFormColHidden,relatedValueId:T==null?void 0:T.relatedValueId,disabled:T==null?void 0:T.disabled,menus:T==null?void 0:T.menus,groups:T==null?void 0:T.groups,words:T==null?void 0:T.words,allSelectionContents:(T==null?void 0:T.allSelectionContents)??[],filterContent:T==null?void 0:T.filterContent,disabled:(T==null?void 0:T.prop)==="disabled"?!0:T==null?void 0:T.disabled,filter:T==null?void 0:T.filter,bindMenus:T==null?void 0:T.bindMenus,isMainPath:T==null?void 0:T.isMainPath,required:(T==null?void 0:T.required)??!1,relatedContents:T==null?void 0:T.relatedContents,mainKey:T==null?void 0:T.mainKey,relatedContents:T==null?void 0:T.relatedContents,functionName:T==null?void 0:T.functionName,functionRelatedWords:T==null?void 0:T.functionRelatedWords,calculatorFilter:T==null?void 0:T.calculatorFilter,isReadonly:T==null?void 0:T.isReadonly}):h.push({label:(we=T==null?void 0:T.prop)!=null&&we.includes(".")?T==null?void 0:T.prop:(T==null?void 0:T.label)??(T==null?void 0:T.prop)??"",prop:T==null?void 0:T.prop,name:(T==null?void 0:T.prop)??"t"+G,type:!(T!=null&&T.formType)||(T==null?void 0:T.formType)===""?"Input":T==null?void 0:T.formType,value:(T==null?void 0:T.formType)==="Upload"?(u==null?void 0:u[T==null?void 0:T.prop])??"{}":(u==null?void 0:u[T==null?void 0:T.prop])??(T==null?void 0:T.value)??"",id:(T==null?void 0:T.id)??G,contents:(T==null?void 0:T.options)??[],multiple:(T==null?void 0:T.multiple)??!1,width:1,isFormColHidden:T==null?void 0:T.isFormColHidden,disabled:(T==null?void 0:T.prop)==="disabled"?!0:T==null?void 0:T.disabled,relatedValueId:T==null?void 0:T.relatedValueId,menus:T==null?void 0:T.menus,groups:T==null?void 0:T.groups,words:T==null?void 0:T.words,filter:T==null?void 0:T.filter,bindMenus:T==null?void 0:T.bindMenus,isMainPath:T==null?void 0:T.isMainPath,required:(T==null?void 0:T.required)??!1,relatedContents:T==null?void 0:T.relatedContents,mainKey:T==null?void 0:T.mainKey,relatedContents:T==null?void 0:T.relatedContents,functionName:T==null?void 0:T.functionName,functionRelatedWords:T==null?void 0:T.functionRelatedWords,calculatorFilter:T==null?void 0:T.calculatorFilter,isReadonly:T==null?void 0:T.isReadonly})}),u===""||!u||(Da.value=(u==null?void 0:u.id)??"");let B=ue.getColumnChild((le=A.cloneDeep(V.value))==null?void 0:le.filter(T=>(T==null?void 0:T.label)!=="操作"));qe.value&&((q=qe.value)==null?void 0:q.length)>0&&(qe.value=(xe=A.cloneDeep(qe).value)==null?void 0:xe.map(T=>{var $e;let G=(T==null?void 0:T.prop)||(($e=B==null?void 0:B.find(sa=>(sa==null?void 0:sa.label)===(T==null?void 0:T.label)))==null?void 0:$e.prop);return G&&(T.value=u[G]),T})),La.value=qe.value&&((Ce=qe.value)==null?void 0:Ce.length)>0?ue.getTableFormToForm(qe.value):h,La.value=((Ke=La.value)==null?void 0:Ke.map(T=>({...T,disabled:(T==null?void 0:T.prop)==="disabled"?!0:T==null?void 0:T.disabled})))??La.value;let z=[],P=((Sa=(Ze=(Pe=c.itemData)==null?void 0:Pe.filter(T=>(T==null?void 0:T.key)==="filter"))==null?void 0:Ze[0])==null?void 0:Sa.contents)??"";if(P=ue.analyzeSplitToContent(P,","),(P==null?void 0:P.length)>0&&(z=P.flat()),(z==null?void 0:z.length)>0){let T=z==null?void 0:z.filter(pa=>pa==null?void 0:pa.includes("@Type"));if(T=T==null?void 0:T[(T==null?void 0:T.length)-1],(T==null?void 0:T[(T==null?void 0:T.length)-1])===","&&(T=T==null?void 0:T.slice(0,(T==null?void 0:T.length)-1)),T){let pa=(za=(Ia=T==null?void 0:T.replace("=",x))==null?void 0:Ia.split(x))==null?void 0:za[1];((Qe=pa==null?void 0:pa.trim())==null?void 0:Qe.toUpperCase())==="MANUAL"&&(c==null||c.index,La.value=(Ja=La.value)==null?void 0:Ja.map((Na,al)=>Na))}let G=(_a=La.value)==null?void 0:_a.filter(pa=>pa==null?void 0:pa.mainKey),$e;G==null||G.forEach(pa=>{var al;if($e!==void 0)return;let Na=pa==null?void 0:pa.menus;((al=G==null?void 0:G.filter(Ua=>Ua==null?void 0:Ua.mainKey))==null?void 0:al.length)>1&&($e=Na,pa==null||pa.groups)});let sa=[],we=new Map;if(G==null||G.forEach(pa=>{var Na,al,Ua,ul,fl,Pl,ja,ml,Fa,nl,Wa,il,wl;if((Na=pa==null?void 0:pa.prop)!=null&&Na.includes(".")){let Dl=[];we.get(((Ua=(al=pa==null?void 0:pa.prop)==null?void 0:al.split("."))==null?void 0:Ua[0])+(pa!=null&&pa.isMainPath?0:1)+((ul=pa==null?void 0:pa.groups)==null?void 0:ul[0]))&&(Dl=we.get(((Pl=(fl=pa==null?void 0:pa.prop)==null?void 0:fl.split("."))==null?void 0:Pl[0])+(pa!=null&&pa.isMainPath?0:1)+((ja=pa==null?void 0:pa.groups)==null?void 0:ja[0]))),Dl.push(pa),we.set(((Fa=(ml=pa==null?void 0:pa.prop)==null?void 0:ml.split("."))==null?void 0:Fa[0])+(pa!=null&&pa.isMainPath?0:1)+((nl=pa==null?void 0:pa.groups)==null?void 0:nl[0]),Dl)}else{let Dl=[];we.get("normal"+(pa!=null&&pa.isMainPath?0:1)+((Wa=pa==null?void 0:pa.groups)==null?void 0:Wa[0]))&&(Dl=we.get("normal"+(pa!=null&&pa.isMainPath?0:1)+((il=pa==null?void 0:pa.groups)==null?void 0:il[0]))),Dl.push(pa),we.set("normal"+(pa!=null&&pa.isMainPath?0:1)+((wl=pa==null?void 0:pa.groups)==null?void 0:wl[0]),Dl)}}),sa=Array.from(we.values()),(sa==null?void 0:sa.length)>0)for(let pa in sa){let Na=sa==null?void 0:sa[pa];if((Na==null?void 0:Na.length)!==1){if((Na==null?void 0:Na.length)>1){let al=Na==null?void 0:Na.map(nl=>nl==null?void 0:nl.prop),Ua=Na==null?void 0:Na.map(nl=>nl==null?void 0:nl.label),ul=Na==null?void 0:Na.map(nl=>nl==null?void 0:nl.value),fl=(Xa=A.cloneDeep(Na))==null?void 0:Xa[0],Pl=(ge=La.value)==null?void 0:ge.findIndex(nl=>(nl==null?void 0:nl.prop)===(fl==null?void 0:fl.prop)),ja=(Ra=La.value)==null?void 0:Ra.slice(0,Pl),ml=(Ca=La.value)==null?void 0:Ca.slice(Pl,(wa=La.value)==null?void 0:wa.length);fl.label=Ua==null?void 0:Ua.join("·"),fl.value=ul==null?void 0:ul.join(" "),fl.value.trim()===""&&(fl.value=""),fl.prop=al==null?void 0:al.join("·");let Fa=Na==null?void 0:Na.map(nl=>{var Wa;return(Wa=nl==null?void 0:nl.words)==null?void 0:Wa.join(".")});fl.relatedWords=Fa,fl.usingType="parent",ml.unshift(fl),La.value=[...ja,...ml],La.value=(Ea=La.value)==null?void 0:Ea.map(nl=>(al!=null&&al.find(Wa=>Wa===(nl==null?void 0:nl.prop))&&(nl.isFormColHidden=!0,nl.relatedWords=Fa),nl))}}}}},cu=()=>{var h;const u=(h=t.value)==null?void 0:h.$el;u&&Bl.Sortable.create(u,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:B=>{var re;const{oldIndex:z,newIndex:P}=B;if(z===P)return;const C=nn.value.splice(z,1)[0];nn.value.splice(P,0,C),V.value=(re=V.value)==null?void 0:re.slice().sort((le,q)=>{if(le.label==="操作")return 1;if(q.label==="操作")return-1;const xe=nn.value.findIndex(Ke=>Ke.label===le.label),Ce=nn.value.findIndex(Ke=>Ke.label===q.label);return xe-Ce})}})};e.onMounted(()=>{xa.value=window.innerWidth-240*2,window.addEventListener("keydown",Xi)});const uu=()=>{e.nextTick(()=>{cu()})},du=()=>{f.value=!0},rt=(u,h)=>{var z;if(!u&&!(u!=null&&u.children))return{contents:u,currentSelectContents:void 0};let B;return u.children=(z=u.children)==null?void 0:z.map(P=>{var C,re;if((P==null?void 0:P.id)===Da.value){let le={};for(let q in P){let xe=(C=h==null?void 0:h.find(Ce=>(Ce==null?void 0:Ce.prop)===q))==null?void 0:C.label;xe?le[q]=(re=ur.value)==null?void 0:re[xe]:le[q]=P[q]??""}P=Object.assign(le,ur.value),B=P}else{let le=rt(P,h);P=le==null?void 0:le.contents,B=le==null?void 0:le.currentSelectContents}return P}),{contents:u,currentSelectContents:B}},At=(u,h)=>{let B,z;return u!=null&&u.find(P=>(P==null?void 0:P.id)===Da.value)?B=u==null?void 0:u.map(P=>{var C,re,le;if((P==null?void 0:P.id)===Da.value){let q={};for(let Ce in P){let Ke=(C=h==null?void 0:h.find(Pe=>(Pe==null?void 0:Pe.prop)===Ce))==null?void 0:C.label;Ke?q[Ce]=((re=ur.value)==null?void 0:re[Ke])??"":q[Ce]=P[Ce]??""}let xe=ur.value;for(let Ce in q)(le=ur.value)!=null&&le[Ce]||(xe[Ce]=(q==null?void 0:q[Ce])??"");P=xe,z=P}return P}):B=u==null?void 0:u.map(P=>{var C,re,le,q;if((P==null?void 0:P.id)===Da.value){let xe={};for(let Ce in P){let Ke=(C=h==null?void 0:h.find(Pe=>(Pe==null?void 0:Pe.prop)===Ce))==null?void 0:C.label;Ke?xe[Ce]=(re=ur.value)==null?void 0:re[Ke]:xe[Ce]=P[Ce]??""}P=Object.assign(xe,ur.value),z=P}else P=(le=rt(P,h))==null?void 0:le.contents,z=(q=rt(P,h))==null?void 0:q.currentSelectContents;return P}),{newContents:B,currentSelectContents:z}},zt=(u,h,B)=>{var z,P;return u[h==null?void 0:h.prop]=B,typeof u.id=="number"&&(u.id=(z=u.id)==null?void 0:z.toString()),u.children&&((P=u.children)==null?void 0:P.length)>0&&(u.children=u.children.map(zt)),u},Mt=u=>{var B;const h=[];return h.push({...u}),u!=null&&u.children&&Array.isArray(u.children)&&((B=u.children)==null||B.forEach(z=>{h.push(...Mt(z))})),(h==null?void 0:h.length)>0?h==null?void 0:h.map(z=>{const P={...z};return delete P.children,P}):[]},so=["Pacific6000数据采集装置.通道号","通道号"],Vi=u=>{if(!u)return"";const h=so.map(B=>u==null?void 0:u[B]).find(B=>B!=null&&String(B).trim()!=="");return h==null?"":String(h).trim()},nt=async(u,h=void 0)=>{if(!u)return!1;try{const B=Ze=>{var Sa,Ia,za;return Ze?typeof(Ze==null?void 0:Ze.value)=="string"?Ze.value:((za=(Ia=(Sa=Ze==null?void 0:Ze._custom)==null?void 0:Sa.value)==null?void 0:Ia.value)==null?void 0:za.value)||"":""},z=Array.isArray(lr.value)?lr.value:[],P=B(z.find(Ze=>(Ze==null?void 0:Ze.condition)==="child")),C=(Ee.value||"").replace(/\/+$/,""),re=P?`${C}/${P}`:C,le=await Kr(re||Ee.value,!1),q=String(la.value||"").trim(),xe=Ze=>String(Ze||"").trim(),Ce=(Ze,Sa=[],Ia="")=>{if(!Array.isArray(Ze))return Sa;for(const za of Ze){const Qe=xe((za==null?void 0:za.choiceName)||(za==null?void 0:za.name0)||Ia);(za==null?void 0:za.comp)==="Table"&&(!q||Qe===q)&&Sa.push(za),Array.isArray(za==null?void 0:za.children)&&Ce(za.children,Sa,Qe),Array.isArray(za==null?void 0:za.tab)&&Ce(za.tab,Sa,Qe),Array.isArray(za==null?void 0:za.choice)&&Ce(za.choice,Sa,Qe)}return Sa},Ke=Ce(le||[]),Pe=String((c==null?void 0:c.compName)||"");return Ke.some(Ze=>{var Ia,za;const Sa=((za=(Ia=Ze==null?void 0:Ze.compData)==null?void 0:Ia.find(Qe=>(Qe==null?void 0:Qe.key)==="tableContents"))==null?void 0:za.contents)||[];return!Array.isArray(Sa)||Sa.length===0?!1:Sa.some(Qe=>{if(String((Ze==null?void 0:Ze.name)||"")===Pe&&(Qe==null?void 0:Qe.id)===h)return!1;const _a=Vi(Qe);return!!_a&&_a===u})})}catch{return(Ne.value||[]).some(z=>{if((z==null?void 0:z.id)===h)return!1;const P=Vi(z);return!!P&&P===u})}},Fi=async(u=!0,h,B)=>{var xe,Ce,Ke,Pe,Ze,Sa,Ia,za,Qe,Ja,_a,Xa,ge,Ra,wa,Ca,Ea,T,G,$e,sa,we,pa,Na,al,Ua,ul,fl,Pl,ja,ml;if(ur.value){const Fa=(Ce=ue.getColumnChild((xe=A.cloneDeep(V.value))==null?void 0:xe.filter(Wa=>(Wa==null?void 0:Wa.label)!=="操作")))==null?void 0:Ce.filter(Wa=>(Wa==null?void 0:Wa.required)===!0);for(let Wa=0;Wa<((Fa==null?void 0:Fa.length)??0);Wa++){const il=Fa[Wa],wl=il==null?void 0:il.prop,Dl=(il==null?void 0:il.label)??wl,xr=(Ke=ur.value)==null?void 0:Ke[wl];if(xr===""||xr===null||xr===void 0||Array.isArray(xr)&&xr.length===0){Ha.ElMessage.error(`${Dl}不能为空`);return}}const nl=Vi(ur.value);if(nl&&await nt(nl,Da.value||void 0)){Ha.ElMessage.warning("当前任务下通道号不能重复,请重新选择");return}}let z=ue.getColumnChild((Pe=A.cloneDeep(V.value))==null?void 0:Pe.filter(Fa=>(Fa==null?void 0:Fa.label)!=="操作")),P,C=A.cloneDeep(Ne.value);if(!ur.value){ze.value=!1;return}if(Da.value===""){$a.value++;let Fa;Fa={id:$a.value.toString()};try{Fa.sort=Xn(0,Ne.value||[])}catch{}Fa!=null&&Fa.children&&(Fa={...Fa,children:(Ze=Fa.children)==null?void 0:Ze.map(Wa=>zt(Wa,h,B))});const nl=Object.assign(ur.value,Fa);C.unshift(nl),P=nl}else C=(Sa=At(C,z))==null?void 0:Sa.newContents,P=(Ia=At(C,z))==null?void 0:Ia.currentSelectContents;const re=(za=c.itemData)==null?void 0:za.filter(Fa=>(Fa==null?void 0:Fa.key)==="childTree")[0];if(((Qe=re==null?void 0:re.contents)==null?void 0:Qe.length)>0){ae.value="编辑";const Fa=[];C==null||C.forEach((il,wl)=>{var xr;let Dl={};if(Array.isArray(il)){let $l=[];il==null||il.filter(bl=>!(bl!=null&&bl.id)).forEach((bl,Nl)=>{var Xl,Tl,Jl,nr,ql,vr,qr;if((Tl=(Xl=Dr.value)==null?void 0:Xl[Nl])!=null&&Tl.prop&&!Array.isArray(bl)){let mr={};mr[Dr.value[Nl].column]=bl,L!=null&&L.value&&((Jl=L==null?void 0:L.value)==null?void 0:Jl.length)>0&&((nr=L==null?void 0:L.value)!=null&&nr.find(sr=>JSON.stringify(sr==null?void 0:sr[0])===JSON.stringify(mr)))&&($l=(ql=L==null?void 0:L.value)==null?void 0:ql.find(sr=>JSON.stringify(sr==null?void 0:sr[0])===JSON.stringify(mr))),$l&&$l.length>0?Dl[Dr.value[Nl].prop]=$l!=null&&$l.find(sr=>{var dr;return((dr=Object.keys(sr))==null?void 0:dr[0])===Dr.value[Nl].column})?(vr=$l==null?void 0:$l.find(sr=>{var dr;return((dr=Object.keys(sr))==null?void 0:dr[0])===Dr.value[Nl].column}))==null?void 0:vr[Dr.value[Nl].column]:bl:Dl[Dr.value[Nl].prop]=bl}else Array.isArray(bl)&&((qr=Dr.value[Nl])!=null&&qr.prop?Dl[Dr.value[Nl].prop]=bl:Dl.children=mt(bl,Dr.value))})}else Dl=il;if(Array.isArray(il)&&il.some($l=>$l==null?void 0:$l.id)){const $l=(xr=il==null?void 0:il.find(bl=>bl.id))==null?void 0:xr.id;Fa.push(Object.assign(Dl,{id:io($l)}))}else Dl.id?Fa.push(Dl):Fa.push(Object.assign(Dl,{id:wl.toString()}))});const nl=(Ne.value||[]).map(il=>String(il==null?void 0:il.id)),Wa=ui(Fa,nl);Ne.value=Rt(Wa,re,V.value)}Ot(Ne.value),ln.value=Ne.value;const le=zf(ln.value,pn.value,C);let q=[];if(H.value?(q=(Ja=A.cloneDeep(H).value.singleContent)==null?void 0:Ja.filter(Fa=>(Fa==null?void 0:Fa.id)!==(P==null?void 0:P.id)),q.push(P)):q=[P],Fl.value){const Fa={content:le,singleContent:((_a=re==null?void 0:re.contents)==null?void 0:_a.length)>0?q==null?void 0:q.flatMap(Mt):q,index:c==null?void 0:c.index,buttonName:"编辑",column:V.value,parentTableId:c==null?void 0:c.parentTableId};ua.setCacheUpdatingData(Fa)}if((Xa=V.value)==null||Xa.forEach(Fa=>{(Fa==null?void 0:Fa.formType)==="Upload"&&(P[Fa.prop]=P[Fa.prop]===""?"{}":typeof P[Fa.prop]!="string"?JSON.stringify(P[Fa.prop]):P[Fa.prop])}),u){(Ca=(wa=(Ra=(ge=c.itemData)==null?void 0:ge.find(Wa=>(Wa==null?void 0:Wa.key)==="filterAllType"))==null?void 0:Ra.value)==null?void 0:wa.find(Wa=>(Wa==null?void 0:Wa.value)==="onConditionContents"))==null||Ca.content;let Fa=(Ea=c.itemData)==null?void 0:Ea.filter(Wa=>(Wa==null?void 0:Wa.key)==="filterAllType");Fa=Array.from(new Map(Fa.filter(Boolean).map((Wa,il)=>[Wa.value,{...Wa,_idx:il}])).values()).sort((Wa,il)=>Wa._idx-il._idx).map(({_idx:Wa,...il})=>il),Fa=(T=Fa==null?void 0:Fa[(Fa==null?void 0:Fa.length)-1])==null?void 0:T.value;const nl={fixContent:[P],buttonName:ae.value,relatedContents:c==null?void 0:c.related,columns:V.value,name:c==null?void 0:c.groupNames};ua.setTableLoading(c==null?void 0:c.index),ze.value=!1,ur.value=void 0,Ie("change",nl)}if((sa=($e=(G=La.value)==null?void 0:G[0])==null?void 0:$e.optionUrl)!=null&&sa.menuId){ze.value=!1;let Fa=(we=c.itemData)==null?void 0:we.filter(nl=>(nl==null?void 0:nl.key)==="filterAllType");if((Fa==null?void 0:Fa.length)>0){let nl=Fa==null?void 0:Fa.map(wl=>wl==null?void 0:wl.value),Wa=(al=(Na=(pa=nl.flat().find(wl=>{var Dl;return(Dl=wl==null?void 0:wl.content)==null?void 0:Dl.includes("@Num")}))==null?void 0:pa.content)==null?void 0:Na.split(":"))==null?void 0:al[1];((fl=(ul=(Ua=nl.flat().find(wl=>{var Dl;return(Dl=wl==null?void 0:wl.content)==null?void 0:Dl.includes("@Type:")}))==null?void 0:Ua.content)==null?void 0:ul.split(":"))==null?void 0:fl[1])!=="Manual"&&(Wa=parseInt(Wa),Ne.value=(ml=Ne.value)==null?void 0:ml.slice(((Pl=Ne.value)==null?void 0:Pl.length)-Wa,(ja=Ne.value)==null?void 0:ja.length))}}};e.onUnmounted(()=>{window.removeEventListener("keydown",Xi),V.value=[],Ne.value=[],Be.value=[],Ba.value=[],qe.value=[],Je.value=[],_e.value=[],de.value=[],La.value=[],Yl.value=[],t.value=null,Ln.value=""});const co=async(u,h,B)=>{var Ze,Sa,Ia,za,Qe,Ja,_a,Xa,ge,Ra,wa,Ca,Ea;hr.value=(B==null?void 0:B.prop)??(B==null?void 0:B.property);const z=A.cloneDeep(c.itemData),P=((Ze=z==null?void 0:z.find(T=>(T==null?void 0:T.key)==="header"))==null?void 0:Ze.contents)??[];let C=P==null?void 0:P.find((T,G)=>{var $e,sa,we;return(T==null?void 0:T.prop)===hr.value||(T==null?void 0:T.label)===hr.value||(G==null?void 0:G.toString())===((we=(sa=($e=hr.value)==null?void 0:$e.split("a"))==null?void 0:sa[1])==null?void 0:we.toString())});const re=ue.getColumnChild((Sa=A.cloneDeep(V.value))==null?void 0:Sa.filter(T=>(T==null?void 0:T.label)!=="操作"));if(C||(C=re==null?void 0:re.find(T=>(T==null?void 0:T.prop)===hr.value||(T==null?void 0:T.label)===hr.value)),C&&!((Ia=C==null?void 0:C.menus)!=null&&Ia.length)&&!((za=C==null?void 0:C.groups)!=null&&za.length)&&!((Qe=C==null?void 0:C.words)!=null&&Qe.length)){const T=(Ja=La.value)==null?void 0:Ja.find(G=>(G==null?void 0:G.prop)===hr.value);T&&(C={...C,menus:(T==null?void 0:T.menus)??(C==null?void 0:C.menus),groups:(T==null?void 0:T.groups)??(C==null?void 0:C.groups),words:(T==null?void 0:T.words)??(C==null?void 0:C.words),bindMenus:(T==null?void 0:T.bindMenus)??(C==null?void 0:C.bindMenus),isMainPath:(T==null?void 0:T.isMainPath)??(C==null?void 0:C.isMainPath),relatedContents:(T==null?void 0:T.relatedContents)??(C==null?void 0:C.relatedContents),endChildMenu:(T==null?void 0:T.endChildMenu)??(C==null?void 0:C.endChildMenu)})}if(C&&((_a=La==null?void 0:La.value)==null||_a.forEach(T=>{var G,$e,sa,we,pa;(T==null?void 0:T.prop)===(C==null?void 0:C.prop)&&(T!=null&&T.endChildMenu)&&((G=C==null?void 0:C.prop)!=null&&G.includes(".")&&((sa=($e=C==null?void 0:C.prop)==null?void 0:$e.split("."))==null?void 0:sa[0])!==((pa=(we=T==null?void 0:T.prop)==null?void 0:we.split("."))==null?void 0:pa[0])?C.endChildMenu=T==null?void 0:T.value:C.endChildMenu=T==null?void 0:T.endChildMenu)})),!C)return;const le=hr.value,q=(Xa=Ne.value)==null?void 0:Xa.findIndex(T=>(T==null?void 0:T.id)===(h==null?void 0:h.id));q!==-1&&le&&(Ne.value[q]={...Ne.value[q],[le]:u});const xe=T=>{Array.isArray(T)&&T.forEach(G=>{Array.isArray(G==null?void 0:G.allSelectionContents)&&G.allSelectionContents.length>0&&(G.contactValue=Ne.value[q]??h),Array.isArray(G==null?void 0:G.children)&&G.children.length>0&&xe(G.children)})};xe(V.value),C.value=u,C.endChildMenu=C.endChildMenu||"";let Ce=C!=null&&C.isMainPath&&(C!=null&&C.mainKey)?C==null?void 0:C.value:"";const Ke=T=>{Array.isArray(T)&&T.forEach(G=>{var sa,we;if(((G==null?void 0:G.type)==="Select"||(G==null?void 0:G.formType)&&G.formType.toUpperCase()==="SELECT"||(G==null?void 0:G.columnType)&&G.columnType.toUpperCase()==="SELECT")&&Array.isArray(G==null?void 0:G.menus)&&G.menus.length>0&&G.menus[G.menus.length-1]===""&&(C!=null&&C.isMainPath)&&(C!=null&&C.mainKey)){const pa=(sa=G==null?void 0:G.prop)!=null&&sa.includes(".")?G.prop.split(".")[0]:null,Na=(we=C==null?void 0:C.prop)!=null&&we.includes(".")?C.prop.split(".")[0]:null;(!pa||!Na||pa===Na)&&(G.endChildMenu=Ce)}Array.isArray(G==null?void 0:G.children)&&G.children.length>0&&Ke(G.children)})};if(Ke(V.value),!!(C!=null&&C.mainKey)&&Array.isArray(C==null?void 0:C.menus)&&(C==null?void 0:C.menus.length)>0&&(C!=null&&C.value)&&(C==null?void 0:C.value)!==""){let T=C!=null&&C.relatedContents&&((ge=C==null?void 0:C.relatedContents)==null?void 0:ge.length)>0?(Ra=C==null?void 0:C.relatedContents)==null?void 0:Ra.find(G=>{var $e,sa,we,pa;return(G==null?void 0:G[(pa=($e=C==null?void 0:C.prop)==null?void 0:$e.split("."))==null?void 0:pa[((we=(sa=C==null?void 0:C.prop)==null?void 0:sa.split("."))==null?void 0:we.length)-1]])===(C==null?void 0:C.value)}):await us(C);if(T){const G={...h};re==null||re.forEach($e=>{var sa,we,pa,Na,al,Ua,ul,fl,Pl,ja,ml,Fa,nl,Wa,il,wl;($e==null?void 0:$e.prop)!==(C==null?void 0:C.prop)&&(C!=null&&C.relatedContents&&((sa=C==null?void 0:C.relatedContents)==null?void 0:sa.length)>0?(we=$e==null?void 0:$e.prop)!=null&&we.includes(".")&&((Na=(pa=$e==null?void 0:$e.prop)==null?void 0:pa.split("."))==null?void 0:Na[0])===((Ua=(al=C==null?void 0:C.prop)==null?void 0:al.split("."))==null?void 0:Ua[0])?G[$e.prop]=T[(ja=(ul=$e==null?void 0:$e.prop)==null?void 0:ul.split("."))==null?void 0:ja[((Pl=(fl=$e==null?void 0:$e.prop)==null?void 0:fl.split("."))==null?void 0:Pl.length)-1]]??G[$e.prop]:G[$e.prop]=(T==null?void 0:T[$e.prop])??G[$e.prop]:ue.same((C==null?void 0:C.menus)??[],($e==null?void 0:$e.menus)??[])&&ue.same((C==null?void 0:C.groups)??[],($e==null?void 0:$e.groups)??[])&&!ue.same((C==null?void 0:C.words)??[],($e==null?void 0:$e.words)??[])?(ml=$e==null?void 0:$e.prop)!=null&&ml.includes(".")&&((nl=(Fa=$e==null?void 0:$e.prop)==null?void 0:Fa.split("."))==null?void 0:nl[0])!==((il=(Wa=C==null?void 0:C.prop)==null?void 0:Wa.split("."))==null?void 0:il[0])||(G[$e.prop]=(T==null?void 0:T[(wl=$e==null?void 0:$e.words)==null?void 0:wl.join(".")])??(T==null?void 0:T[$e.prop])??G[$e.prop]):(!($e!=null&&$e.isMainPath)&&ue.same((C==null?void 0:C.bindMenus)??[],($e==null?void 0:$e.bindMenus)??[]),G[$e.prop]=(T==null?void 0:T[$e.prop])??G[$e.prop]))}),Ne.value=(wa=A.cloneDeep(Ne.value))==null?void 0:wa.map($e=>($e==null?void 0:$e.id)===(h==null?void 0:h.id)?{...G,id:$e==null?void 0:$e.id}:$e)}}if((Ca=C==null?void 0:C.optionUrl)!=null&&Ca.menuSelect){let T="";re==null||re.forEach(sa=>{var we,pa,Na,al,Ua;T===""&&((Na=(pa=(we=sa==null?void 0:sa.optionUrl)==null?void 0:we.groupSelect)==null?void 0:pa[1])!=null&&Na.includes("["))&&(T=(Ua=(al=sa==null?void 0:sa.optionUrl)==null?void 0:al.groupSelect)==null?void 0:Ua[1])});let G=await yt(C),$e;if(G==null||G.forEach(sa=>{var we,pa,Na,al,Ua,ul,fl,Pl,ja,ml;T===((pa=(we=C==null?void 0:C.optionUrl)==null?void 0:we.groupSelect)==null?void 0:pa[1])&&((Ua=(al=(Na=C==null?void 0:C.optionUrl)==null?void 0:Na.groupSelect)==null?void 0:al[1])!=null&&Ua.includes("["))&&((ml=A.cloneDeep(sa))==null?void 0:ml[(ja=(Pl=(fl=(ul=C==null?void 0:C.optionUrl)==null?void 0:ul.groupSelect)==null?void 0:fl[1])==null?void 0:Pl.replaceAll("[",""))==null?void 0:ja.replaceAll("]","")])===(C==null?void 0:C.value)&&($e=sa)}),$e){const sa={...h};re==null||re.forEach(we=>{var pa,Na,al,Ua,ul,fl,Pl,ja,ml,Fa,nl;($e!=null&&$e[we==null?void 0:we.label]||$e!=null&&$e[(Ua=(al=(Na=(pa=we==null?void 0:we.optionUrl)==null?void 0:pa.groupSelect)==null?void 0:Na[1])==null?void 0:al.replaceAll("[",""))==null?void 0:Ua.replaceAll("]","")])&&((Pl=(fl=(ul=we==null?void 0:we.optionUrl)==null?void 0:ul.groupSelect)==null?void 0:fl[1])!=null&&Pl.includes("["))&&(sa[we.prop]=($e==null?void 0:$e[we==null?void 0:we.label])||($e==null?void 0:$e[(nl=(Fa=(ml=(ja=we==null?void 0:we.optionUrl)==null?void 0:ja.groupSelect)==null?void 0:ml[1])==null?void 0:Fa.replaceAll("[",""))==null?void 0:nl.replaceAll("]","")]))}),Ne.value=(Ea=A.cloneDeep(Ne.value))==null?void 0:Ea.map(we=>(we==null?void 0:we.id)===(h==null?void 0:h.id)?{...sa,id:we==null?void 0:we.id}:we)}}},pu=async u=>{var Ze,Sa,Ia,za,Qe,Ja,_a,Xa,ge,Ra,wa,Ca,Ea,T;if(!u)return;const h=A.cloneDeep(ur.value||{});ur.value=u;const B=Vi(h),z=Vi(ur.value);if(z&&z!==B&&await nt(z,Da.value||void 0)){Ha.ElMessage.warning("当前任务下通道号不能重复,请重新选择"),so.forEach($e=>{if(Object.prototype.hasOwnProperty.call(ur.value||{},$e)||Object.prototype.hasOwnProperty.call(h||{},$e)){const sa=(h==null?void 0:h[$e])??"";ur.value[$e]=sa,u[$e]=sa}}),La.value=(La.value||[]).map($e=>{if(!($e!=null&&$e.prop)||!so.includes($e.prop))return $e;const sa=(h==null?void 0:h[$e.prop])??"";return{...$e,value:sa,selectValue:sa===""?[]:[sa]}});return}let P=A.cloneDeep(c.itemData);P==null||P.map(G=>{var $e,sa,we,pa;return(G==null?void 0:G.key)==="header"&&(Array.isArray(($e=G.contents)==null?void 0:$e[0])?G.contents=(we=ue.getColumnChild((sa=G.contents)==null?void 0:sa[0]))==null?void 0:we.map((Na,al)=>{var Ua,ul,fl,Pl,ja,ml;return((fl=(ul=(Ua=La.value)==null?void 0:Ua.find(Fa=>(Fa==null?void 0:Fa.prop)===(Na==null?void 0:Na.prop)))==null?void 0:ul.optionUrl)==null?void 0:fl.multiple)===!0&&!Array.isArray((Pl=Object.values(u))==null?void 0:Pl[al])?Na.value=[(ja=Object.values(u))==null?void 0:ja[al]]:Na.value=(ml=Object.values(u))==null?void 0:ml[al],Na}):G.contents=(pa=G.contents)==null?void 0:pa.map((Na,al)=>{var Ua,ul,fl,Pl,ja,ml;return((fl=(ul=(Ua=La.value)==null?void 0:Ua.find(Fa=>(Fa==null?void 0:Fa.prop)===(Na==null?void 0:Na.prop)))==null?void 0:ul.optionUrl)==null?void 0:fl.multiple)===!0&&!Array.isArray((Pl=Object.values(u))==null?void 0:Pl[al])?Na.value=[(ja=Object.values(u))==null?void 0:ja[al]]:Na.value=(ml=Object.values(u))==null?void 0:ml[al],Na})),G});let C=La.value,re=(Ze=P==null?void 0:P.find(G=>(G==null?void 0:G.key)==="header"))==null?void 0:Ze.contents;if(hr.value||(C=C==null?void 0:C.map(G=>{var $e;return G.value=G.value??(($e=re==null?void 0:re.find((sa,we)=>(sa==null?void 0:sa.prop)===(G==null?void 0:G.name)))==null?void 0:$e.value),G})),!Or.value)return;let le=A.cloneDeep(hr.value);(Sa=hr.value)!=null&&Sa.includes("·")&&(hr.value=(za=(Ia=hr.value)==null?void 0:Ia.split("·"))==null?void 0:za[0]);let q=(Ja=(Qe=P==null?void 0:P.find(G=>(G==null?void 0:G.key)==="header"))==null?void 0:Qe.contents)==null?void 0:Ja.find((G,$e)=>(G==null?void 0:G.prop)===hr.value);(_a=La==null?void 0:La.value)==null||_a.forEach(G=>{var $e,sa,we,pa,Na,al,Ua,ul,fl;(G==null?void 0:G.prop)===(q==null?void 0:q.prop)&&(G!=null&&G.endChildMenu)&&(($e=q==null?void 0:q.prop)!=null&&$e.includes(".")&&((we=(sa=q==null?void 0:q.prop)==null?void 0:sa.split("."))==null?void 0:we[0])!==((Na=(pa=G==null?void 0:G.prop)==null?void 0:pa.split("."))==null?void 0:Na[0])?q.endChildMenu=(Ua=(al=G==null?void 0:G.value)==null?void 0:al.split(" "))==null?void 0:Ua[0]:q.endChildMenu=(fl=(ul=G==null?void 0:G.endChildMenu)==null?void 0:ul.split(" "))==null?void 0:fl[0])});let xe=q!=null&&q.isMainPath&&(q!=null&&q.mainKey)?q==null?void 0:q.value:"",Ce=C,Ke=Q.value;if(Ke!=null&&Ke.find(G=>(q==null?void 0:q.prop)===(G==null?void 0:G.key))&&(Ke=Ke==null?void 0:Ke.filter(G=>(q==null?void 0:q.prop)!==(G==null?void 0:G.key))),Ke!=null&&Ke.find(G=>le===(G==null?void 0:G.key))&&(Ke=Ke==null?void 0:Ke.filter(G=>le!==(G==null?void 0:G.key))),(q==null?void 0:q.formType)==="Select"?Ce=Ce==null?void 0:Ce.map(G=>{var $e,sa,we,pa,Na,al,Ua,ul,fl,Pl,ja,ml,Fa,nl,Wa,il;return(G==null?void 0:G.type)==="Select"&&((($e=G==null?void 0:G.allSelectionContents)==null?void 0:$e.length)>0&&(G.contactValue=u),((q==null?void 0:q.prop)===(G==null?void 0:G.prop)||le===(G==null?void 0:G.prop))&&q&&(Array.isArray(q.value)&&((sa=q.value)==null?void 0:sa.length)>0&&((we=q.value)!=null&&we.every(wl=>typeof wl=="string"))?(Ke.push({key:G==null?void 0:G.prop,value:[(Na=q.value)==null?void 0:Na[((pa=q.value)==null?void 0:pa.length)-1]]}),G.selectValue=(al=Ke==null?void 0:Ke.find(wl=>(wl==null?void 0:wl.key)===(G==null?void 0:G.prop)))==null?void 0:al.value):Array.isArray(q.value)&&((Ua=q.value)==null?void 0:Ua.length)===0?(Ke=[],G.selectValue=[],u[G==null?void 0:G.prop]=""):Array.isArray(G.value)&&Ke.push({key:G==null?void 0:G.prop,value:[(ul=G.value)==null?void 0:ul[(G==null?void 0:G.length)-1]]})),((Pl=G==null?void 0:G.menus)==null?void 0:Pl[((fl=G==null?void 0:G.menus)==null?void 0:fl.length)-1])===""&&(q!=null&&q.isMainPath)&&(q!=null&&q.mainKey)&&((ja=G==null?void 0:G.prop)!=null&&ja.includes(".")&&((Fa=(ml=G==null?void 0:G.prop)==null?void 0:ml.split("."))==null?void 0:Fa[0])!==((Wa=(nl=q==null?void 0:q.prop)==null?void 0:nl.split("."))==null?void 0:Wa[0])||(G.endChildMenu=(il=xe==null?void 0:xe.split(" "))==null?void 0:il[0]))),G.value=(u==null?void 0:u[G==null?void 0:G.prop])??(G==null?void 0:G.value),G}):(q==null?void 0:q.formType)!=="Input"&&(Ce=Ce==null?void 0:Ce.map(G=>(G.value=(u==null?void 0:u[G==null?void 0:G.prop])??(G==null?void 0:G.value),G))),Q.value=Ke,Ce!=null&&Ce.some(G=>(G==null?void 0:G.functionName)&&(G==null?void 0:G.functionName)!=="")){let G=await vt([u],V==null?void 0:V.value,"Auto",Ne.value),$e=[];(Xa=Ce==null?void 0:Ce.filter(we=>(we==null?void 0:we.functionName)&&(we==null?void 0:we.functionName)!==""))==null||Xa.forEach(we=>{var pa;((pa=we==null?void 0:we.functionRelatedWords)==null?void 0:pa.length)>0&&($e=[...$e,...we==null?void 0:we.functionRelatedWords])}),$e=$e==null?void 0:$e.filter(we=>(we==null?void 0:we[0])!=="@");let sa=[];for(let we in G==null?void 0:G[0])$e!=null&&$e.find(pa=>we===pa||(we==null?void 0:we.includes("."+pa)))&&sa.push(((ge=G==null?void 0:G[0])==null?void 0:ge[we])!=="");(G==null?void 0:G.length)>0&&sa.every(we=>we)&&(Ce=Ce==null?void 0:Ce.map(we=>{var pa;return we.value=((pa=G==null?void 0:G[0])==null?void 0:pa[we==null?void 0:we.prop])??we.value,we})),ur.value=G==null?void 0:G[0]}if(La.value=Ce,q=Object.assign({},q??{},{relatedWords:(wa=(Ra=La==null?void 0:La.value)==null?void 0:Ra.find(G=>(G==null?void 0:G.prop)===(q==null?void 0:q.prop)))==null?void 0:wa.relatedWords}),(q==null?void 0:q.mainKey)&&(q!=null&&q.value)&&(q==null?void 0:q.value)!==""){let G=q!=null&&q.relatedContents&&((Ca=q==null?void 0:q.relatedContents)==null?void 0:Ca.length)>0?(Ea=q==null?void 0:q.relatedContents)==null?void 0:Ea.find($e=>{var sa,we,pa,Na;return($e==null?void 0:$e[(Na=(sa=q==null?void 0:q.prop)==null?void 0:sa.split("."))==null?void 0:Na[((pa=(we=q==null?void 0:q.prop)==null?void 0:we.split("."))==null?void 0:pa.length)-1]])===(q==null?void 0:q.value)}):await us(q);if(G&&JSON.stringify(G)!=="{}"){let $e=Ce;$e=$e==null?void 0:$e.map(we=>{var pa,Na,al,Ua,ul,fl,Pl,ja,ml,Fa,nl,Wa,il,wl,Dl,xr,$l,bl,Nl,Xl,Tl;if((q==null?void 0:q.prop)===(we==null?void 0:we.prop))we.value=(G==null?void 0:G[(pa=we==null?void 0:we.words)==null?void 0:pa.join(".")])??(G==null?void 0:G[we==null?void 0:we.prop])??G[(ul=(Na=we==null?void 0:we.prop)==null?void 0:Na.split("."))==null?void 0:ul[((Ua=(al=we==null?void 0:we.prop)==null?void 0:al.split("."))==null?void 0:Ua.length)-1]];else if(q!=null&&q.relatedContents&&((fl=q==null?void 0:q.relatedContents)==null?void 0:fl.length)>0)we.value=(Pl=we==null?void 0:we.prop)!=null&&Pl.includes(".")&&((ml=(ja=we==null?void 0:we.prop)==null?void 0:ja.split("."))==null?void 0:ml[0])===((nl=(Fa=q==null?void 0:q.prop)==null?void 0:Fa.split("."))==null?void 0:nl[0])?G[(Dl=(Wa=we==null?void 0:we.prop)==null?void 0:Wa.split("."))==null?void 0:Dl[((wl=(il=we==null?void 0:we.prop)==null?void 0:il.split("."))==null?void 0:wl.length)-1]]:(G==null?void 0:G[we==null?void 0:we.prop])??(we==null?void 0:we.value);else if(ue.same((q==null?void 0:q.menus)??[],(we==null?void 0:we.menus)??[])&&ue.same((q==null?void 0:q.groups)??[],(we==null?void 0:we.groups)??[])&&!ue.same((q==null?void 0:q.words)??[],(we==null?void 0:we.words)??[]))if((xr=we==null?void 0:we.prop)!=null&&xr.includes(".")&&((bl=($l=we==null?void 0:we.prop)==null?void 0:$l.split("."))==null?void 0:bl[0])!==((Xl=(Nl=q==null?void 0:q.prop)==null?void 0:Nl.split("."))==null?void 0:Xl[0])){let Jl=Object.keys(G);Jl=Jl==null?void 0:Jl.find(nr=>{var ql;return nr==null?void 0:nr.includes("."+((ql=we==null?void 0:we.words)==null?void 0:ql.join(".")))}),we.value=(G==null?void 0:G[Jl])??(G==null?void 0:G[we==null?void 0:we.prop])??we.value}else{let Jl=Object.keys(G);Jl=Jl==null?void 0:Jl.find(nr=>{var ql;return nr==null?void 0:nr.includes("."+((ql=we==null?void 0:we.words)==null?void 0:ql.join(".")))}),we.value=(G==null?void 0:G[(Tl=we==null?void 0:we.words)==null?void 0:Tl.join(".")])??(G==null?void 0:G[Jl])??(G==null?void 0:G[we==null?void 0:we.prop])??we.value}else!(we!=null&&we.isMainPath)&&ue.same((q==null?void 0:q.bindMenus)??[],(we==null?void 0:we.bindMenus)??[]),we.value=(G==null?void 0:G[we==null?void 0:we.prop])??we.value;return we}),La.value=$e;let sa={};(T=La.value)==null||T.forEach(we=>{sa[we.prop]=we==null?void 0:we.value}),ur.value=sa}}Or.value=!0,M.value=!1},fu=u=>u?(u==null?void 0:u.toUpperCase())==="INPUT"?"TEXTAREA":u:"TEXTAREA",hu=u=>{var C,re;const h=(re=(C=qe.value)==null?void 0:C.find(le=>(le==null?void 0:le.label)===(u==null?void 0:u.label)))==null?void 0:re.multiple,B=u==null?void 0:u.prop;if((u==null?void 0:u.formType)!="Select")return;Ne.value.forEach(le=>{const q=le==null?void 0:le[B];h&&Eo.isString(q)&&(le[B]=[q]),!h&&!Eo.isString(q)&&(le[B]="")})},It=(u,h)=>{var B;return h==null||h.forEach(z=>{u[z==null?void 0:z.prop]=z==null?void 0:z.value}),u.children&&((B=u.children)==null?void 0:B.length)>0&&(u.children=u.children.map(z=>It(z,h))),u},it=u=>{var B,z,P,C,re,le;$i("");const h=(B=La.value)==null?void 0:B.reduce((q,xe)=>(q[xe.name]=xe.value,q),{});if(((z=Object.keys(h))==null?void 0:z.length)>0){ur.value=h,Da.value="",$a.value=(P=Ne.value)==null?void 0:P.length,de.value=(C=Oa.value)==null?void 0:C.filter(xe=>(xe==null?void 0:xe.label)!=="新增");const q=(le=(re=Be.value)==null?void 0:re.filter(xe=>(xe==null?void 0:xe.label)!=="操作"))==null?void 0:le.map(xe=>{var Ke,Pe,Ze;const Ce=(Pe=(Ke=qe.value)==null?void 0:Ke.find(Sa=>(Sa==null?void 0:Sa.label)===(xe==null?void 0:xe.label)))==null?void 0:Pe.multiple;return hu(xe),{...xe,contents:(xe==null?void 0:xe.options)??[],optionUrl:xe!=null&&xe.formMenuSelect&&((Ze=xe==null?void 0:xe.formMenuSelect)==null?void 0:Ze.length)>0?{groupSelect:xe==null?void 0:xe.groupSelect,menuSelect:xe==null?void 0:xe.formMenuSelect,selectRelateType:"",type:xe==null?void 0:xe.formType,multiple:Ce}:null}});V.value=q==null?void 0:q.map(xe=>It(xe,[{prop:"type",value:"edit"},{prop:"columnType",value:fu(xe==null?void 0:xe.formType)||(xe==null?void 0:xe.columnType)}])),u==="createClick"&&(ae.value="新增",Fi(!0))}},vi={START:"开始时间",END:"结束时间",HOURS:"工时"},vu=(u,h)=>Number(A.dayjs(h).diff(A.dayjs(u),"day",!0).toFixed(1)),Ot=u=>{var C;const h=c.itemData,B=(C=h==null?void 0:h.find(re=>(re==null?void 0:re.key)==="header"))==null?void 0:C.contents,z=new Map;return B==null||B.forEach((re,le)=>{const{label:q}=re;z.set(q,le)}),!z.has(vi.START)||!z.has(vi.END)||!z.has(vi.HOURS)?u:u==null?void 0:u.map(re=>{const le=re==null?void 0:re[vi.START],q=re==null?void 0:re[vi.END],xe=vu(le,q);return le&&q&&(re[vi.HOURS]=`${xe}天`),re})},Lt=(u,h,B=0)=>{if(B>((h==null?void 0:h.length)??""))return u;const z=h==null?void 0:h[B],P=new Map;for(const re of u){const le=re[z];P.has(le)||P.set(le,[]),P.get(le)&&P.get(le).push(re)}const C=[];for(const[re,le]of P){const[q,...xe]=le,Ce={...q};B+1===((h==null?void 0:h.length)??"")?Ce.children=le==null?void 0:le.map(Ke=>(Ke.level=A.cloneDeep(B)+1,Ke)).filter((Ke,Pe)=>Pe!==0):xe.length>0&&(Ce.children=Lt(xe,h,B+1)),Ce.level=B,C.push(Ce)}return C},Rt=(u,h,B)=>{var P;if(!(h!=null&&h.contents)||((P=h==null?void 0:h.contents)==null?void 0:P.length)===0)return u;let z=[];return z=Lt(u,h==null?void 0:h.contents,0),z},$t=async(u,h)=>{var za,Qe,Ja,_a,Xa,ge,Ra,wa,Ca,Ea,T,G,$e,sa,we,pa,Na,al,Ua,ul,fl,Pl,ja,ml,Fa,nl,Wa,il,wl,Dl,xr,$l,bl,Nl,Xl,Tl,Jl,nr,ql,vr,qr,mr,sr,dr,Ft,Pt,jt;const B=u==null?void 0:u.filter(ma=>(ma==null?void 0:ma.key)==="header");u==null||u.filter(ma=>(ma==null?void 0:ma.key)==="tableIndexColumn")[0];const z=u==null?void 0:u.filter(ma=>(ma==null?void 0:ma.key)==="childTree")[0];let P=!0;if((Ja=(Qe=(za=u==null?void 0:u.find(ma=>(ma==null?void 0:ma.key)==="filterAllType"))==null?void 0:za.value)==null?void 0:Qe.find(ma=>(ma==null?void 0:ma.value)==="onPamButtonContents"))!=null&&Ja.content){let ma=(ge=(Xa=(_a=u==null?void 0:u.find(Sl=>(Sl==null?void 0:Sl.key)==="filterAllType"))==null?void 0:_a.value)==null?void 0:Xa.find(Sl=>(Sl==null?void 0:Sl.value)==="onPamButtonContents"))==null?void 0:ge.content;ma=(Ra=ma==null?void 0:ma.split(":"))==null?void 0:Ra[1],ma=(wa=ma.slice(1,(ma==null?void 0:ma.length)-1))==null?void 0:wa.split(","),P=!!(ma!=null&&ma.find(Sl=>Sl==="操作"))}const C=u==null?void 0:u.find(ma=>(ma==null?void 0:ma.key)==="page"),re=u==null?void 0:u.find(ma=>(ma==null?void 0:ma.key)==="rowButton"),le=u==null?void 0:u.find(ma=>(ma==null?void 0:ma.key)==="extraButton"),q=u==null?void 0:u.filter(ma=>(ma==null?void 0:ma.key)==="tableContents"),xe=u==null?void 0:u.filter(ma=>(ma==null?void 0:ma.key)==="bottomButton"),Ce=u==null?void 0:u.filter(ma=>(ma==null?void 0:ma.key)==="tableIndex");qe.value=(Ea=(Ca=u==null?void 0:u.filter(ma=>(ma==null?void 0:ma.key)==="tableToForm"))==null?void 0:Ca[0])==null?void 0:Ea.contents,ke.value=(C==null?void 0:C.contents)??!0;let Ke=[];Ol.value===""?Ke=B==null?void 0:B[0]:Ke=(B==null?void 0:B.find(ma=>(ma==null?void 0:ma.selectLabel)==="("+Ol.value+")"))??(B==null?void 0:B.find(ma=>!(ma!=null&&ma.selectLabel)));let Pe=[];Ol.value===""?Pe=Ce==null?void 0:Ce[0]:Pe=(Ce==null?void 0:Ce.find(ma=>(ma==null?void 0:ma.selectLabel)==="("+Ol.value+")"))??(Ce==null?void 0:Ce.find(ma=>!(ma!=null&&ma.selectLabel)));let Ze=[],Sa=[];if(((T=Ke==null?void 0:Ke.contents)==null?void 0:T.length)>0){let ma=[],Sl=Ke==null?void 0:Ke.contents;if(Array.isArray(Sl==null?void 0:Sl[0])&&((G=Sl==null?void 0:Sl[0])!=null&&G.every(Ka=>!(Ka!=null&&Ka.children)))&&(Sl=Sl==null?void 0:Sl[0]),Sl.some(Ka=>Array.isArray(Ka)&&(Ka==null?void 0:Ka.find(Ge=>Ge.children))))ma=($e=ue.getGradeColumns(Sl,P))==null?void 0:$e[0],ma!=null&&ma.find(Ka=>(Ka==null?void 0:Ka.label)==="操作")||ma.push({label:"操作",prop:"operate",type:"operate"});else{let Ka=Sl.some(Ge=>Array.isArray(Ge))?Sl==null?void 0:Sl[0]:Sl;Ka!=null&&Ka.find(Ge=>(Ge==null?void 0:Ge.label)==="操作")||Ka.push({label:"操作",prop:"operate",type:"operate"}),Ka==null||Ka.forEach((Ge,er)=>{var zr,Rr,Cr,ai,gi,bi,br,_n,$n,ki,an,Vn,Wt,Kt,Gt,Yt,Jt,Xt,Zt,Qt,es;if((Rr=(zr=Ee.value)==null?void 0:zr.split("/"))==null||Rr.forEach(ir=>{var yr,Dn,as;ir!==""&&((as=(Dn=(yr=ir==null?void 0:ir.split(_+"updateLoading"))==null?void 0:yr[0])==null?void 0:Dn.split(_+"loading"))==null||as[0])}),Ge!=null&&Ge.methodContent){let ir=(gi=(ai=(Cr=Ge==null?void 0:Ge.methodContent)==null?void 0:Cr.replace("@","%%#"))==null?void 0:ai.split("%%#"))==null?void 0:gi[1];if(ir=ir==null?void 0:ir.slice(0,(ir==null?void 0:ir.length)-1),ir=ue.contentTransArrayToAllNoExtra(ir??"",","),(bi=ir==null?void 0:ir.find(yr=>yr==null?void 0:yr.includes("@Button")))!=null&&bi.includes("Prop")&&((br=ir==null?void 0:ir.find(yr=>yr==null?void 0:yr.includes("Type")))!=null&&br.includes("Manual"))){let yr=($n=(_n=ir==null?void 0:ir.find(Dn=>Dn==null?void 0:Dn.includes("@Button")))==null?void 0:_n.split(":"))==null?void 0:$n[1];yr=((Vn=(an=(ki=yr==null?void 0:yr.replaceAll("[",""))==null?void 0:ki.replaceAll("]",""))==null?void 0:an.split(","))==null?void 0:Vn[1])??"算法执行",Ze.push(yr)}else if((Wt=ir==null?void 0:ir.find(yr=>yr==null?void 0:yr.includes("@Button")))!=null&&Wt.includes("Row")&&((Kt=ir==null?void 0:ir.find(yr=>yr==null?void 0:yr.includes("Type")))!=null&&Kt.includes("Manual"))){let yr=(Yt=(Gt=ir==null?void 0:ir.find(Dn=>Dn==null?void 0:Dn.includes("@Button")))==null?void 0:Gt.split(":"))==null?void 0:Yt[1];yr=((Zt=(Xt=(Jt=yr==null?void 0:yr.replaceAll("[",""))==null?void 0:Jt.replaceAll("]",""))==null?void 0:Xt.split(","))==null?void 0:Zt[1])??"算法执行",Sa.push(yr)}}(Qt=qe.value)==null||Qt.find(ir=>(ir==null?void 0:ir.prop)===(Ge==null?void 0:Ge.prop));let Pr=((es=Ge==null?void 0:Ge.filter)==null?void 0:es.includes("@Readonly=true"))??!1;ma.push({label:(Ge==null?void 0:Ge.label)==="操作"?P?"操作":"":(Ge==null?void 0:Ge.label)??"",prop:(Ge==null?void 0:Ge.label)==="操作"?"operate":(Ge==null?void 0:Ge.prop)??"a"+er,width:Ge!=null&&Ge.width?parseInt(Ge.width):"",fixed:(Ge==null?void 0:Ge.fixed)??void 0,sortable:(Ge==null?void 0:Ge.sortable)??!1,filterable:(Ge==null?void 0:Ge.filterable)??!1,operable:(Ge==null?void 0:Ge.operable)??!1,showSummary:(Ge==null?void 0:Ge.showSummary)??!1,align:(Ge==null?void 0:Ge.align)??"left",showOverflowTooltip:(Ge==null?void 0:Ge.showOverflowTooltip)??!0,isNotDrag:(Ge==null?void 0:Ge.isNotDrag)??!1,isEditCol:(Ge==null?void 0:Ge.isEditCol)??!1,isOperate:(Ge==null?void 0:Ge.isOperate)??!1,id:(Ge==null?void 0:Ge.id)??er,type:(Ge==null?void 0:Ge.label)==="操作"?"operate":void 0,formType:(Ge==null?void 0:Ge.formType)??(Ge!=null&&Ge.groupSelect?"Select":""),disabled:Ge==null?void 0:Ge.disabled,options:(Ge==null?void 0:Ge.options)??[],value:(Ge==null?void 0:Ge.value)??"",isExistChild:(Ge==null?void 0:Ge.isExistChild)??!1,mainKey:(Ge==null?void 0:Ge.mainKey)??er===0,allSelectionContents:(Ge==null?void 0:Ge.allContents)??[],filterContent:Ge==null?void 0:Ge.filterContents,menus:Ge==null?void 0:Ge.menus,groups:Ge==null?void 0:Ge.groups,words:Ge==null?void 0:Ge.words,filter:Ge==null?void 0:Ge.filter,bindMenus:Ge==null?void 0:Ge.bindMenus,fatherPath:Ge==null?void 0:Ge.fatherPath,isMainPath:Ge==null?void 0:Ge.isMainPath,required:(Ge==null?void 0:Ge.required)??!1,relatedContents:Ge==null?void 0:Ge.relatedContents,functionName:Ge==null?void 0:Ge.functionName,functionRelatedWords:Ge==null?void 0:Ge.functionRelatedWords,calculatorFilter:Ge==null?void 0:Ge.calculatorFilter,relatedPages:Ge==null?void 0:Ge.relatedPages,multiple:(Ge==null?void 0:Ge.multiple)??!1,multipleLimit:Ge==null?void 0:Ge.multipleLimit,isReadonly:Pr})})}R.value=(sa=xe==null?void 0:xe[0])==null?void 0:sa.contents;const tn=ue.getNewColumnChild(ma),Ht=Ka=>Array.isArray(Ka)?Ka.map(Ge=>(Array.isArray(Ge==null?void 0:Ge.children)&&Ge.children.length>0?(Ge.sortable=!1,Ht(Ge.children)):(Ge==null?void 0:Ge.prop)==="operate"||(Ge==null?void 0:Ge.label)==="操作"||(Ge==null?void 0:Ge.type)==="operate"||(Ge.sortable=!1),Ge)):Ka;Ht(tn),await eo(tn),a0(pe.value,tn),V.value=tn,Ba.value=tn,r.value=(we=V.value)==null?void 0:we.map(Ka=>Ka==null?void 0:Ka.label);let sn=(Na=(pa=ue.getAllLeafNodes(V.value))==null?void 0:pa.filter(Ka=>(Ka==null?void 0:Ka.type)!=="operate"))==null?void 0:Na.map((Ka,Ge)=>({prop:(Ka==null?void 0:Ka.prop)??"a"+Ge,column:Ka.label}));Dr.value=sn;let en=[];Ol.value===""?en=q==null?void 0:q[0]:en=(q==null?void 0:q.find(Ka=>(Ka==null?void 0:Ka.selectLabel)==="("+Ol.value+")"))??(q==null?void 0:q.find(Ka=>!(Ka!=null&&Ka.selectLabel)));let ei=Array.isArray((al=en==null?void 0:en.contents)==null?void 0:al[0])&&((Ua=en==null?void 0:en.contents)!=null&&Ua[0].every(Ka=>Array.isArray(Ka)))?(ul=en==null?void 0:en.contents)==null?void 0:ul[0]:en==null?void 0:en.contents;Pe!=null&&Pe.contents&&((fl=Pe==null?void 0:Pe.contents)==null?void 0:fl.length)!==0&&(ei=(Pl=A.cloneDeep(ei))==null?void 0:Pl.map((Ka,Ge)=>{if(!Array.isArray(Ka)){let er={};for(let Pr in Ka)Pr!=="id"&&Pr!=="index"&&(er[Pr]=Ka[Pr]);Ka=Object.values(er)}return Ka}));const Bu=!!((ja=V.value)!=null&&ja.find(Ka=>Ka.prop==="index"));ei=uc(ei,Pe==null?void 0:Pe.contents,Bu);const mi=[];ei==null||ei.forEach((Ka,Ge)=>{var Pr;let er={};if(Array.isArray(Ka)){let zr=[];Ka==null||Ka.filter(Rr=>!(Rr!=null&&Rr.id)).forEach((Rr,Cr)=>{var ai,gi,bi,br,_n,$n;if((ai=sn==null?void 0:sn[Cr])!=null&&ai.prop&&!Array.isArray(Rr)){let ki={};ki[sn[Cr].column]=Rr,L!=null&&L.value&&((gi=L==null?void 0:L.value)==null?void 0:gi.length)>0&&((bi=L==null?void 0:L.value)!=null&&bi.find(an=>JSON.stringify(an==null?void 0:an[0])===JSON.stringify(ki)))&&(zr=(br=L==null?void 0:L.value)==null?void 0:br.find(an=>JSON.stringify(an==null?void 0:an[0])===JSON.stringify(ki))),zr&&zr.length>0?er[sn[Cr].prop]=zr!=null&&zr.find(an=>{var Vn;return((Vn=Object.keys(an))==null?void 0:Vn[0])===sn[Cr].column})?(_n=zr==null?void 0:zr.find(an=>{var Vn;return((Vn=Object.keys(an))==null?void 0:Vn[0])===sn[Cr].column}))==null?void 0:_n[sn[Cr].column]:Rr:er[sn[Cr].prop]=Rr}else Array.isArray(Rr)&&(($n=sn[Cr])!=null&&$n.prop?er[sn[Cr].prop]=Rr:er.children=mt(Rr,sn))})}else er=Ka;if(Array.isArray(Ka)&&Ka.some(zr=>zr==null?void 0:zr.id)){const zr=(Pr=Ka==null?void 0:Ka.find(Rr=>Rr.id))==null?void 0:Pr.id;mi.push(Object.assign(er,{id:io(zr)}))}else er.id?mi.push(er):mi.push(Object.assign(er,{id:Ge.toString()}))});try{const Ka=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),Ge=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null"),er=Ka==null?void 0:Ka.tableId,Pr=Ka==null?void 0:Ka.compIndex;if(er&&Array.isArray(Ge)&&Ge.length>0&&String(er)===String(c==null?void 0:c.parentTableId)&&String(Pr)===String(c==null?void 0:c.index)){const zr=new Set(mi.map(Cr=>String(Cr==null?void 0:Cr.id))),Rr=Ge.filter(Cr=>!zr.has(String(Cr)));if(Rr.length>0){const Cr=Ka==null?void 0:Ka.pageKey,ai=Cr!=null&&Cr.startsWith("/")?Cr.substring(1):Cr;((h==null?void 0:h[Cr])||(h==null?void 0:h[ai])||[]).filter(br=>{var _n,$n;return((_n=br==null?void 0:br.key)==null?void 0:_n.type)==="data"&&String(($n=br==null?void 0:br.key)==null?void 0:$n.tableId)===String(er)&&Rr.includes(br==null?void 0:br.id)}).forEach(br=>{var _n;zr.has(String(br==null?void 0:br.id))||(mi.push({id:br==null?void 0:br.id,...((_n=br==null?void 0:br.value)==null?void 0:_n.tableData)||{}}),zr.add(String(br==null?void 0:br.id)))})}}}catch{}let yi=null;try{const Ka=`ocr_committed_temp_ids_v1:${String((c==null?void 0:c.parentTableId)??"")}:${String((c==null?void 0:c.index)??"")}`,Ge=JSON.parse(sessionStorage.getItem(Ka)||"null");Array.isArray(Ge)&&Ge.length>0&&(yi=new Set(Ge.map(er=>String(er))))}catch{}const Ut=Array.from(((ml=Aa.value)==null?void 0:ml.values())||[]).filter(Ka=>!(!(Ka!=null&&Ka._isOCRRow&&(Ka==null?void 0:Ka._ocrTableId)===(c==null?void 0:c.index))||yi&&yi.has(String(Ka==null?void 0:Ka.id)))),Tu=(Ne.value||[]).map(Ka=>String(Ka==null?void 0:Ka.id)),qt=ui(mi,Tu);if(Ne.value=Rt(qt,z,V.value),Xe.value=qt,(Fa=Xe.value)==null||Fa.forEach(Ka=>{var Ge;(Ge=Aa.value)==null||Ge.set(Ka.id,Ka)}),yi&&yi.size>0)try{const Ka=new Set(Array.from(yi.values()));Ne.value=(Ne.value||[]).filter(Ge=>!Ka.has(String(Ge==null?void 0:Ge.id))),Xe.value=(Xe.value||[]).filter(Ge=>!Ka.has(String(Ge==null?void 0:Ge.id))),Ka.forEach(Ge=>{var er,Pr;try{(Pr=(er=Aa.value)==null?void 0:er.delete)==null||Pr.call(er,Ge)}catch{}})}catch{}const uo=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),ot=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null");if(uo&&Array.isArray(ot)&&ot.length>0&&String(uo==null?void 0:uo.compIndex)===String(c==null?void 0:c.index)){const Ka=new Set((Xe.value||[]).map(Ge=>String(Ge==null?void 0:Ge.id)));ot.filter(Ge=>!Ka.has(String(Ge)))}if(Ut.length>0){const Ka=new Set((Ne.value||[]).map(er=>er==null?void 0:er.id)),Ge=Ut.filter(er=>!Ka.has(er.id));Ge.length>0&&(Ne.value=[...Ne.value||[],...Ge],Xe.value=[...Xe.value||[],...Ge],Ge.forEach(er=>{var Pr;return(Pr=Aa.value)==null?void 0:Pr.set(er.id,er)}))}}else V.value=[],Be.value=[],Ne.value=[],Xe.value=[],Aa.value=new Map;if(Sa=[...new Set(Sa)],Sa=Sa==null?void 0:Sa.map(ma=>({label:ma,type:"methodButton"})),((nl=re==null?void 0:re.contents)==null?void 0:nl.length)>0?Je.value=re==null?void 0:re.contents:Je.value=[],Je.value=[...Je.value,...Sa],Ze=[...new Set(Ze)],Ze=Ze==null?void 0:Ze.map(ma=>({label:ma,type:"methodButton"})),((Wa=le==null?void 0:le.contents)==null?void 0:Wa.length)>0)if((Dl=(wl=(il=u==null?void 0:u.find(ma=>(ma==null?void 0:ma.key)==="filterAllType"))==null?void 0:il.value)==null?void 0:wl.find(ma=>(ma==null?void 0:ma.value)==="onButtonContents"))!=null&&Dl.content){let ma=(bl=($l=(xr=u==null?void 0:u.find(Sl=>(Sl==null?void 0:Sl.key)==="filterAllType"))==null?void 0:xr.value)==null?void 0:$l.find(Sl=>(Sl==null?void 0:Sl.value)==="onButtonContents"))==null?void 0:bl.content;if(ma=(Nl=ma==null?void 0:ma.split(":"))==null?void 0:Nl[1],ma=(Xl=ma.slice(1,(ma==null?void 0:ma.length)-1))==null?void 0:Xl.split(","),de.value=(Tl=le==null?void 0:le.contents)==null?void 0:Tl.filter(Sl=>ma==null?void 0:ma.find(tn=>tn===(Sl==null?void 0:Sl.label))),Oa.value=(Jl=le==null?void 0:le.contents)==null?void 0:Jl.filter(Sl=>ma==null?void 0:ma.find(tn=>tn===(Sl==null?void 0:Sl.label))),(nr=le==null?void 0:le.contents)!=null&&nr.some(Sl=>(Sl==null?void 0:Sl.label)==="OCR识别")&&!((ql=de.value)!=null&&ql.some(Sl=>(Sl==null?void 0:Sl.label)==="OCR识别"))){const Sl=(vr=le==null?void 0:le.contents)==null?void 0:vr.find(tn=>(tn==null?void 0:tn.label)==="OCR识别");de.value=[...de.value,Sl],Oa.value=[...Oa.value,Sl]}W.value=!!(ma!=null&&ma.find(Sl=>Sl==="搜索")),F.value=!!(ma!=null&&ma.find(Sl=>Sl==="块状显示"))}else de.value=le==null?void 0:le.contents,Oa.value=le==null?void 0:le.contents;else de.value=[],Oa.value=[];de.value=[...de.value,...Ze],Oa.value=[...Oa.value,...Ze],typeof Ee.value=="string"&&Ee.value==="设备管理/试验设备"&&(c==null?void 0:c.compName)==="设备列表"?((qr=de.value)!=null&&qr.some(ma=>(ma==null?void 0:ma.label)==="OCR识别")||(de.value=[...de.value||[],{label:"OCR识别"}]),(mr=Oa.value)!=null&&mr.some(ma=>(ma==null?void 0:ma.label)==="OCR识别")||(Oa.value=[...Oa.value||[],{label:"OCR识别"}])):(de.value=(de.value||[]).filter(ma=>(ma==null?void 0:ma.label)!=="OCR识别"),Oa.value=(Oa.value||[]).filter(ma=>(ma==null?void 0:ma.label)!=="OCR识别")),(sr=de.value)!=null&&sr.some(ma=>(ma==null?void 0:ma.label)==="切换视图")||(de.value=[...de.value||[],{label:"切换视图"}]),(dr=Oa.value)!=null&&dr.some(ma=>(ma==null?void 0:ma.label)==="切换视图")||(Oa.value=[...Oa.value||[],{label:"切换视图"}]),$a.value=((Ft=Ne==null?void 0:Ne.value)==null?void 0:Ft.length)??0,Ot(Ne.value),ln.value=Ne.value,Fl.value&&(V.value=(jt=(Pt=Be.value)==null?void 0:Pt.filter(ma=>(ma==null?void 0:ma.label)!=="操作"))==null?void 0:jt.map(ma=>{var Sl;return{...ma,type:"edit",optionUrl:ma!=null&&ma.formMenuSelect&&((Sl=ma==null?void 0:ma.formMenuSelect)==null?void 0:Sl.length)>0?{groupSelect:ma==null?void 0:ma.groupSelect,menuSelect:ma==null?void 0:ma.formMenuSelect,selectRelateType:"",type:ma==null?void 0:ma.formType}:null}}),it())};e.watch(()=>[c.itemData,Ol.value,Tn.value,pn.value,L==null?void 0:L.value],async()=>{var u,h,B,z,P,C;if((u=c==null?void 0:c.itemData)!=null&&u.find(re=>(re==null?void 0:re.key)==="columnPath")&&!((h=J.value)!=null&&h.find(re=>{var le,q;return(re==null?void 0:re.key)===((q=(le=c==null?void 0:c.itemData)==null?void 0:le.find(xe=>(xe==null?void 0:xe.key)==="columnPath"))==null?void 0:q.contents)}))){let re=J.value,le={key:(z=(B=c==null?void 0:c.itemData)==null?void 0:B.find(q=>(q==null?void 0:q.key)==="columnPath"))==null?void 0:z.contents,value:(C=(P=c==null?void 0:c.itemData)==null?void 0:P.find(q=>(q==null?void 0:q.key)==="columnUsingPath"))==null?void 0:C.contents};re!=null&&re.find(q=>(q==null?void 0:q.key)===(le==null?void 0:le.key))?re=re==null?void 0:re.map(q=>((q==null?void 0:q.key)===(le==null?void 0:le.key)&&(q.value=le.value),q)):re.push(le),ua.setTableViewContents(re)}await $t(c.itemData,c.allMapContents)},{deep:!0,immediate:!0}),e.watch(()=>c==null?void 0:c.operatingForm,u=>{u!=null&&u.form&&($i(u==null?void 0:u.form),ae.value=u==null?void 0:u.dialogTitle,Ue.value=!0,ze.value=!0)},{immediate:!0,deep:!0});const mu=()=>{var u;(u=k.value)!=null&&u.includes("read")&&(Fl.value=!Fl.value)},yu=()=>{_r.value=!_r.value};e.watch(()=>{var u;return(u=c==null?void 0:c.config)==null?void 0:u.viewport},u=>{var h;k.value=u,(u==null?void 0:u.length)===0?Fl.value=!1:(u!=null&&u.includes("read")||(Fl.value=!0),u!=null&&u.includes("edit")||(Fl.value=!1)),I.value=((h=c==null?void 0:c.config)==null?void 0:h.showIndex)||Fl.value},{immediate:!0}),e.watch(()=>Fl.value,u=>{var h;u?(it("viewChange"),ua.setCacheUpdatingData(null)):(de.value=Oa.value,V.value=Ba.value,H.value&&(ua.setTableLoading(c==null?void 0:c.index),Ie("change",H.value))),I.value=u||((h=c==null?void 0:c.config)==null?void 0:h.showIndex),Yl.value=[]},{immediate:!0}),e.watch(()=>{var u;return(u=fn.value)==null?void 0:u.length},u=>{u===0&&(ye.currentPage=1)}),e.watch(()=>c==null?void 0:c.compNames,u=>{p.contents=[{label:"列表名",prop:"groupName",name:"列表名",type:"select",value:"",id:0,contents:u||[],width:1}]},{immediate:!0}),e.ref(!1);const gu=(u,h)=>{var B;it("createClick"),h===ye.pageSize&&(ye.currentPage=Math.ceil(((B=Ne.value)==null?void 0:B.length)/ye.pageSize))},bu=async(u,h,B)=>{var P,C,re,le,q;const z=(h==null?void 0:h.property)??(h==null?void 0:h.prop);if(z&&so.includes(z)&&B!==void 0&&B!==null&&String(B).trim()!==""){const xe=String(B).trim();if(await nt(xe,u==null?void 0:u.id)){Ha.ElMessage.warning("当前任务下通道号不能重复,请重新选择");const Ke=(P=Ne.value)==null?void 0:P.findIndex(Ze=>(Ze==null?void 0:Ze.id)===(u==null?void 0:u.id)),Pe=Ke!==-1?(re=(C=Ne.value)==null?void 0:C[Ke])==null?void 0:re[z]:void 0;z&&(u[z]=Pe??"");return}}if(Fl.value){const xe=u==null?void 0:u.id;xe!=null&&(v.value.has(xe)||v.value.set(xe,A.cloneDeep(u)),s.value.add(xe));const Ce=(le=Ne.value)==null?void 0:le.findIndex(Ke=>(Ke==null?void 0:Ke.id)===(u==null?void 0:u.id));Ce!==-1&&z&&(Ne.value[Ce]={...Ne.value[Ce],[z]:B}),co(B,u,h);return}co(B,u,h),ur.value=A.cloneDeep(u),Da.value=u==null?void 0:u.id,$a.value=(q=Ne.value)==null?void 0:q.length,ae.value=u!=null&&u._isTemp?"新增":"编辑",Fi(!1)},ku=async()=>{var u,h;try{const B=[];if(c!=null&&c.related&&Array.isArray(c.related)&&(console.log("props.related",c.related),c.related.forEach(z=>{if(typeof z=="string"&&z.includes("content_")){const P=z.split("_")[1];P&&(B.push(`content_${P}`),B.push(`struct_${P}`))}})),B.length===0&&(c!=null&&c.itemData)){const z=(h=(u=c.itemData)==null?void 0:u.find(P=>(P==null?void 0:P.key)==="contentTableId"))==null?void 0:h.contents;z&&(B.push(`content_${z}`),B.push(`struct_${z}`))}return B}catch(B){return console.error("获取 tableNames 失败:",B),[]}},xu=async(u,h,B)=>{var C,re;if(!B||typeof B!="string"||B.trim()===""){const le=(h==null?void 0:h.property)??(h==null?void 0:h.prop),q=`${u==null?void 0:u.id}:${le}`;d.value.delete(q),g.value.set(q,!1);return}const z=(h==null?void 0:h.property)??(h==null?void 0:h.prop),P=`${u==null?void 0:u.id}:${z}`;g.value.set(P,!0);try{const le=await ku();if(le.length===0){console.warn("未找到同名表,跳过全局搜索"),d.value.delete(P),g.value.set(P,!1);return}const q=parseInt((C=cl.value)==null?void 0:C.plat_id);if(!q){console.warn("platId 无效,跳过全局搜索"),d.value.delete(P),g.value.set(P,!1);return}const xe=await A.getAllTables({platId:q,tableNames:le??[]}),Ce=((re=xe==null?void 0:xe.data)==null?void 0:re.result)||[],Ke=[],Pe=[];for(let Ze=0;Ze<Ce.length;Ze+=2)Ze+1<Ce.length&&Pe.push([Ce[Ze],Ce[Ze+1]]);Pe.forEach(([Ze,Sa])=>{var Xa;if(!Array.isArray(Ze)||Ze.length===0||!Array.isArray(Sa)||Sa.length===0)return;const Ia=Sa[0];let za=((Xa=Ia==null?void 0:Ia.结构)==null?void 0:Xa.contents)??[];if(!Array.isArray(za)||za.length===0)return;let Qe=A.cloneDeep(za);if(Array.isArray(Qe==null?void 0:Qe[0])&&(Qe=ue.getColumnChild(Qe[0])),!Array.isArray(Qe)||Qe.length===0||!Qe.some(ge=>(ge==null?void 0:ge.prop)===z))return;[...Ze].sort((ge,Ra)=>{const wa=Number((ge==null?void 0:ge.update_time)??0);return Number((Ra==null?void 0:Ra.update_time)??0)-wa}).slice(0,20).forEach(ge=>{const Ra=ge[z];if(Ra!=null){const wa=String(Ra);wa.toLowerCase().includes(B.toLowerCase())&&Ke.findIndex(Ea=>{var T;return ge.id&&((T=Ea.rowData)==null?void 0:T.id)===ge.id?!0:Ea.label===wa})===-1&&Ke.push({label:wa,rowData:A.cloneDeep(ge),sourceTable:(Ia==null?void 0:Ia.source_table)||""})}})}),d.value.set(P,Ke)}catch(le){console.error("全局搜索建议失败:",le),d.value.delete(P)}finally{g.value.set(P,!1)}},wu=(u,h,B)=>{if(!Fl.value)return;const z=(h==null?void 0:h.property)??(h==null?void 0:h.prop),P=(h==null?void 0:h.formType)||(h==null?void 0:h.columnType)||"";if(P&&P.toUpperCase()!=="INPUT"&&P!=="")return;const C=`${u==null?void 0:u.id}:${z}`;if(y.has(C)&&clearTimeout(y.get(C)),!B||B.trim()===""){d.value.delete(C),g.value.set(C,!1);return}const re=setTimeout(()=>{xu(u,{prop:z,property:z},B),y.delete(C)},300);y.set(C,re)};function _u(u,h){const B=`${u==null?void 0:u.id}:${(h==null?void 0:h.property)??(h==null?void 0:h.prop)}`;return d.value.get(B)||[]}const Su=(u,h,B)=>{var xe;if(!B||!B.rowData)return;const z=B.rowData,P=u==null?void 0:u.id,C=(h==null?void 0:h.property)??(h==null?void 0:h.prop);(ue.getAllLeafNodes(V.value)||[]).filter(Ce=>(Ce==null?void 0:Ce.type)!=="operate"&&(Ce==null?void 0:Ce.label)!=="操作"&&(Ce==null?void 0:Ce.prop)!=="operate").forEach(Ce=>{const Ke=Ce==null?void 0:Ce.prop;Ke&&z[Ke]!==void 0&&(u[Ke]=z[Ke])}),(xe=Ne.value)==null||xe.findIndex(Ce=>(Ce==null?void 0:Ce.id)===P),P!=null&&(v.value.has(P)||v.value.set(P,A.cloneDeep(u)),s.value.add(P));const q=`${P}:${C}`;d.value.delete(q),g.value.set(q,!1),co(u[C],u,h)},Ur=u=>{var q,xe,Ce,Ke,Pe,Ze,Sa,Ia,za,Qe,Ja;const{row:h,column:B,item:z,slotData:P}=u;let C=h!=null&&h[B==null?void 0:B.prop]||(h==null?void 0:h[B==null?void 0:B.prop])===0?((xe=(q=h==null?void 0:h[B==null?void 0:B.prop])==null?void 0:q[0])==null?void 0:xe.contents)??((h==null?void 0:h[B==null?void 0:B.prop])===0?"0":h==null?void 0:h[B==null?void 0:B.prop]):((Ke=(Ce=h==null?void 0:h[z==null?void 0:z.prop])==null?void 0:Ce[0])==null?void 0:Ke.contents)??(h==null?void 0:h[z==null?void 0:z.prop])??((Ze=(Pe=P==null?void 0:P[z==null?void 0:z.prop])==null?void 0:Pe[0])==null?void 0:Ze.contents)??(P==null?void 0:P[z==null?void 0:z.prop])??((za=(Ia=h==null?void 0:h[(Sa=z==null?void 0:z.child)==null?void 0:Sa.prop])==null?void 0:Ia[0])==null?void 0:za.contents)??(h==null?void 0:h[(Qe=z==null?void 0:z.child)==null?void 0:Qe.prop]),le=Array.isArray(C)&&!(C!=null&&C.every(_a=>typeof _a=="string"||typeof _a=="number"))?"查看":C;if(le=Array.isArray(le)?le.join(","):le,(B==null?void 0:B.formType)==="Date")if(!le||le===""||le===null||le===void 0)le="";else{const _a=A.dayjs(le,["YYYY-MM-DD","YYYY/MM/DD","YYYY年MM月DD日","YYYYMMDD"],!0);le=_a.isValid()?_a.format("YYYYMMDD"):le??""}return Array.isArray(B==null?void 0:B.relatedPages)&&((Ja=B==null?void 0:B.relatedPages)==null?void 0:Ja.length)>0&&(le="详情页"),le},Eu=u=>{var xe,Ce,Ke,Pe,Ze,Sa,Ia,za,Qe,Ja;const{row:h,column:B,item:z,slotData:P}=u;let C=h!=null&&h[B==null?void 0:B.prop]?((Ce=(xe=h==null?void 0:h[B==null?void 0:B.prop])==null?void 0:xe[0])==null?void 0:Ce.contents)??(h==null?void 0:h[B==null?void 0:B.prop]):((Pe=(Ke=h==null?void 0:h[z==null?void 0:z.prop])==null?void 0:Ke[0])==null?void 0:Pe.contents)??(h==null?void 0:h[z==null?void 0:z.prop])??((Sa=(Ze=P==null?void 0:P[z==null?void 0:z.prop])==null?void 0:Ze[0])==null?void 0:Sa.contents)??(P==null?void 0:P[z==null?void 0:z.prop])??((Qe=(za=h==null?void 0:h[(Ia=z==null?void 0:z.child)==null?void 0:Ia.prop])==null?void 0:za[0])==null?void 0:Qe.contents)??(h==null?void 0:h[(Ja=z==null?void 0:z.child)==null?void 0:Ja.prop]);const le=Array.isArray(C)&&!(C!=null&&C.every(_a=>typeof _a=="string"||typeof _a=="number")),q=Array.isArray(C)&&(C==null?void 0:C.find(_a=>_a==null?void 0:_a.url));return le&&q},Cu=u=>{var P,C,re,le;if(!(u!=null&&u.column))return!1;const h=Ee.value==="试验任务/任务管理",B=(c==null?void 0:c.compName)==="任务列表",z=((C=(P=u==null?void 0:u.column)==null?void 0:P.filter)==null?void 0:C.includes("@TextRGBA"))||((le=(re=u==null?void 0:u.column)==null?void 0:re.filter)==null?void 0:le.includes("@TextBackRGBA"));return h&&B&&z},Du=(u,h)=>u.find(B=>Object.values(B).some(z=>z===h));return e.watch(()=>Ae.value,async u=>{if(u){ie.setContentLoading(!0),await e.nextTick();const h=Du(Ne.value,u==null?void 0:u.data);if(!h)return ie.setContentLoading(!1);await Li(u==null?void 0:u.data,null,h,{data:u==null?void 0:u.data}),ie.setContentLoading(!1)}},{deep:!0,immediate:!0}),e.watch(()=>c==null?void 0:c.cacheNewData,u=>{var h;u&&(Array.isArray(u)?u.forEach(B=>{var z,P,C,re,le;if(换,String(B==null?void 0:B.compId)===String(c==null?void 0:c.index)&&(B!=null&&B.resId)&&((z=B==null?void 0:B.data)!=null&&z.id)){const q=(P=B==null?void 0:B.data)==null?void 0:P.id,xe=B==null?void 0:B.resId;if(Ne.value=(C=Ne.value)==null?void 0:C.map(Ce=>{if((Ce==null?void 0:Ce.id)===q){const Ke={...Ce,id:xe};return delete Ke._isOCRRow,delete Ke._ocrTableId,Ke}return Ce}),(le=(re=Aa.value)==null?void 0:re.has)!=null&&le.call(re,q)){const Ke={...Aa.value.get(q)||{},id:xe};delete Ke._isOCRRow,delete Ke._ocrTableId,Aa.value.delete(q),Aa.value.set(xe,Ke)}el(c==null?void 0:c.index,q,xe)}}):String(u==null?void 0:u.compId)===String(c==null?void 0:c.index)&&(Ne.value=(h=Ne.value)==null?void 0:h.map(B=>{var z;if((B==null?void 0:B.id)===((z=u==null?void 0:u.data)==null?void 0:z.id)){const P={...B,id:u==null?void 0:u.resId};return delete P._isOCRRow,delete P._ocrTableId,P}return B})))},{immediate:!0,deep:!0}),(u,h)=>{var Qe,Ja,_a,Xa;const B=e.resolveComponent("svg-icon"),z=e.resolveComponent("el-popover"),P=e.resolveComponent("el-switch"),C=e.resolveComponent("el-checkbox"),re=e.resolveComponent("el-radio"),le=e.resolveComponent("el-radio-group"),q=e.resolveComponent("el-checkbox-group"),xe=e.resolveComponent("el-button"),Ce=e.resolveComponent("el-icon"),Ke=e.resolveComponent("el-progress"),Pe=e.resolveComponent("el-alert"),Ze=e.resolveComponent("el-table-column"),Sa=e.resolveComponent("el-table"),Ia=e.resolveComponent("el-upload"),za=e.resolveComponent("el-text");return e.openBlock(),e.createElementBlock("div",F0,[bn.value?(e.openBlock(),e.createBlock(ll.ssTable,{id:"excel-table",pageObj:ye,showIndex:I.value,isTree:(Qe=a.compItem)==null?void 0:Qe.isTree,summaryInfo:oe,columns:V.value,defaultSort:ce,isCardViewport:_r.value,checkedColumns:r.value,key:rn.value+V.value,tableData:fn.value,isEditViewport:Fl.value,isShowPagination:ke.value,isShowEdit:!1,isShowDelete:!1,allowSelect:D.value,onDbClickRow:Cn,extraButton:de.value,rowButton:Je.value,cacheExtraButtons:Oa.value,isClearSelection:((Ja=Yl.value)==null?void 0:Ja.length)===0,onDoCurrentChange:Ni,onDoSizeChange:Lo,onSortChange:Ro,onContentClick:Li,onRowClick:Yo,onSelectChange:Uo,onCellChange:bu,onCellInput:wu,onSelectSuggest:Su,onChange:co,onPreview:ro,onSubmitEditingTable:Zi,onHandleColEditChange:Ji,onHandleColTypeChange:jr,onClickButton:lt,onAddNewRow:Po,bottomButton:R.value,allowRowAddOrDelete:Zn.value},e.createSlots({headerButton:e.withCtx(ge=>{var Ra,wa,Ca,Ea;return[a.showHeader?(e.openBlock(),e.createBlock(yf,{key:0,id:"tableHeaderButton",pageLayout:a.pageLayout,lockingPage:e.unref(ga)===e.unref(Ee),filterValues:Go.value,selectNums:(Ra=Yl.value)==null?void 0:Ra.length,dataNums:(wa=Ne.value)==null?void 0:wa.length,compName:a.compName,isDevMode:a.isDevMode,buttons:ge.buttons,menuFilter:(Ea=(Ca=a.compItem)==null?void 0:Ca.component)==null?void 0:Ea.menuFilter,onButtonClick:h[1]||(h[1]=(T,G,$e)=>lt(T,G,{extra:$e})),columns:V.value,onFilter:oo,onGetImportData:Vo,level:a.level,filterShow:W.value},null,8,["pageLayout","lockingPage","filterValues","selectNums","dataNums","compName","isDevMode","buttons","menuFilter","columns","level","filterShow"])):e.createCommentVNode("",!0)]}),viewport:e.withCtx(()=>{var ge,Ra,wa,Ca;return[((ge=Ne.value)==null?void 0:ge.length)>0&&a.allowOperate&&F.value?(e.openBlock(),e.createElementBlock("div",H0,[(Ra=k.value)!=null&&Ra.includes("read")&&((wa=k.value)!=null&&wa.includes("edit"))&&((Ca=Je.value)!=null&&Ca.some(Ea=>(Ea==null?void 0:Ea.label)==="编辑"))&&!_r.value&&e.unref(ga)!==e.unref(Ee)?(e.openBlock(),e.createElementBlock("span",{key:0,title:"编辑表格",onClick:mu},[e.createVNode(B,{name:"editTable",class:"view-icon"})])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]}),rowCreate:e.withCtx(({row:ge,index:Ra})=>[e.createElementVNode("span",{title:"新增",class:"row-create-wrap",onClick:wa=>gu(ge,Ra)},[e.createVNode(B,{name:"rowCreate",style:{width:"10px",height:"10px"}})],8,U0)]),operateCol:e.withCtx(()=>[e.createVNode(z,{title:"选择显示列信息",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:uu,onBeforeEnter:du},{reference:e.withCtx(()=>[e.createElementVNode("span",q0,[e.createVNode(B,{name:"operate",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),default:e.withCtx(()=>[f.value?(e.openBlock(),e.createElementBlock("div",W0,[h[20]||(h[20]=e.createElementVNode("div",{class:"group-title"},"表格操作",-1)),e.createVNode(P,{"model-value":$.value,"active-text":"排序","inactive-text":"",style:{"margin-right":"8px"},onChange:h[2]||(h[2]=ge=>ao(ge))},null,8,["model-value"]),h[21]||(h[21]=e.createElementVNode("div",{class:"group-title"},"表格列操作",-1)),e.createVNode(q,{modelValue:r.value,"onUpdate:modelValue":h[3]||(h[3]=ge=>r.value=ge),style:{height:"100%"},min:2,ref_key:"checkboxGroupRef",ref:t},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(nn.value,ge=>(e.openBlock(),e.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:ge.label},[e.createVNode(C,{value:ge.label,style:{width:"100%",marginRight:0}},{default:e.withCtx(()=>[e.createElementVNode("span",{title:ge.label,style:{display:"inline-block",width:"250px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},e.toDisplayString(ge.label),9,K0)]),_:2},1032,["value"]),e.createVNode(z,{"popper-class":"col-operate-popover",title:"列操作",placement:"left",teleported:!1,trigger:"hover"},{reference:e.withCtx(()=>[e.createVNode(B,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:e.withCtx(()=>{var Ra;return[e.createElementVNode("div",G0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Ra=Object.keys(ge))==null?void 0:Ra.filter(wa=>{var Ca;return(Ca=E.value)==null?void 0:Ca.find(Ea=>(Ea==null?void 0:Ea.value)===wa)}),wa=>{var Ca,Ea;return e.openBlock(),e.createElementBlock("div",{key:wa},[j[wa]=="radio"?(e.openBlock(),e.createElementBlock("div",Y0,[h[19]||(h[19]=e.createElementVNode("div",null,"固定:",-1)),e.createVNode(le,{"model-value":ge==null?void 0:ge[wa],onChange:T=>Kn(T,wa,ge)},{default:e.withCtx(()=>{var T,G;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((G=(T=E.value)==null?void 0:T.find($e=>($e==null?void 0:$e.value)===wa))==null?void 0:G.options,$e=>(e.openBlock(),e.createBlock(re,{key:$e==null?void 0:$e.value,label:$e==null?void 0:$e.value,value:$e==null?void 0:$e.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString($e==null?void 0:$e.label),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["model-value","onChange"])])):e.createCommentVNode("",!0),j[wa]=="switch"?(e.openBlock(),e.createBlock(P,{key:1,"model-value":ge==null?void 0:ge[wa],"active-text":(Ea=(Ca=E.value)==null?void 0:Ca.find(T=>(T==null?void 0:T.value)===wa))==null?void 0:Ea.label,onChange:T=>Kn(T,wa,ge)},null,8,["model-value","active-text","onChange"])):e.createCommentVNode("",!0)])}),128))])]}),_:2},1024),e.createElementVNode("span",J0,[e.createVNode(B,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0)]),_:1})]),content:e.withCtx(ge=>{var Ra,wa,Ca,Ea,T,G,$e,sa,we,pa,Na,al,Ua,ul,fl,Pl,ja,ml,Fa,nl;return[((Ra=ge==null?void 0:ge.column)==null?void 0:Ra.label)==="证书附件"||((wa=ge==null?void 0:ge.column)==null?void 0:wa.prop)==="证书附件"?(e.openBlock(),e.createElementBlock("div",X0,[e.createVNode(B,{name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:e.withModifiers(Wa=>hi(ge),["stop"]),title:"查看OCR图片"},null,8,["onClick"])])):Eu(ge)?(e.openBlock(),e.createBlock(z,{key:1,"popper-class":"file-popover",placement:"right",trigger:"hover",effect:"light",width:"auto"},{reference:e.withCtx(()=>[e.createElementVNode("span",Z0,e.toDisplayString(Ur(ge)),1)]),default:e.withCtx(()=>{var Wa,il;return[e.createElementVNode("div",Q0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((il=ge==null?void 0:ge.row)==null?void 0:il[(Wa=ge==null?void 0:ge.column)==null?void 0:Wa.prop],wl=>(e.openBlock(),e.createElementBlock("div",e3,[e.createElementVNode("div",{class:"prop-url",title:Yn(wl),onClick:Dl=>di(wl)},e.toDisplayString(Yn(wl)),9,a3),e.createElementVNode("div",{class:"prop-download",onClick:Dl=>Wo(wl)}," 下载 ",8,l3)]))),256))])]}),_:2},1024)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[Cu(ge)?(e.openBlock(),e.createBlock(Vu,{key:0,value:Ur(ge),columnContent:ge==null?void 0:ge.column},null,8,["value","columnContent"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"table-cell-content",style:e.normalizeStyle({color:!Array.isArray(Ur(ge))&&((Ea=(Ca=Ur(ge))==null?void 0:Ca.toString())!=null&&Ea.includes(".txt")||(G=(T=Ur(ge))==null?void 0:T.toString())!=null&&G.includes(".cpt")||(sa=($e=Ur(ge))==null?void 0:$e.toString())!=null&&sa.includes(".cyd"))?"var(--vertical-menuitem-active-bg)":"",textDecoration:!Array.isArray(Ur(ge))&&((pa=(we=Ur(ge))==null?void 0:we.toString())!=null&&pa.includes(".txt")||(al=(Na=Ur(ge))==null?void 0:Na.toString())!=null&&al.includes(".cpt")||(ul=(Ua=Ur(ge))==null?void 0:Ua.toString())!=null&&ul.includes(".cyd"))?"underline":"",cursor:!Array.isArray(Ur(ge))&&((Pl=(fl=Ur(ge))==null?void 0:fl.toString())!=null&&Pl.includes(".txt")||(ml=(ja=Ur(ge))==null?void 0:ja.toString())!=null&&ml.includes(".cpt")||(nl=(Fa=Ur(ge))==null?void 0:Fa.toString())!=null&&nl.includes(".cyd"))?"pointer":"",marginLeft:(ge==null?void 0:ge.colIndex)===0?`${((ge==null?void 0:ge.level)??0)*20}px`:0}),onClick:Wa=>{var il;return qn(Ur(ge),((il=ge==null?void 0:ge.column)==null?void 0:il.relatedPages)??[])}},e.toDisplayString(Ur(ge)===0?"0":Ur(ge)),13,r3))],64))]}),_:2},[((_a=Je.value)==null?void 0:_a.length)>0?{name:"actions",fn:e.withCtx(({item:ge,fIndex:Ra})=>[e.createVNode(z,{title:"",placement:"left-start","popper-class":"menu-operate-popover"},{reference:e.withCtx(()=>[e.createVNode(B,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"},onClick:h[0]||(h[0]=e.withModifiers(()=>{},["stop"]))})]),default:e.withCtx(()=>[e.createElementVNode("div",P0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Oi(Je.value,ge),(wa,Ca)=>(e.openBlock(),e.createElementBlock("div",{class:"menu-config-item",key:Ca,onClick:e.withModifiers(Ea=>lt(wa==null?void 0:wa.label,ge,{extra:wa}),["stop"])},[e.createElementVNode("div",{style:e.normalizeStyle({color:wa==null?void 0:wa.textColor}),class:"extra-button-label"},e.toDisplayString(wa==null?void 0:wa.label),5)],8,j0))),128))])]),_:2},1024)]),key:"0"}:void 0]),1032,["pageObj","showIndex","isTree","summaryInfo","columns","defaultSort","isCardViewport","checkedColumns","tableData","isEditViewport","isShowPagination","allowSelect","extraButton","rowButton","cacheExtraButtons","isClearSelection","bottomButton","allowRowAddOrDelete"])):e.createCommentVNode("",!0),Fl.value?(e.openBlock(),e.createElementBlock("div",n3,[e.createVNode(xe,{id:"themeBorderButton",onClick:Ho},{default:e.withCtx(()=>h[22]||(h[22]=[e.createTextVNode("取消")])),_:1,__:[22]}),e.createVNode(xe,{class:"ok-button",id:"themeButton",onClick:zi},{default:e.withCtx(()=>h[23]||(h[23]=[e.createTextVNode("保存")])),_:1,__:[23]})])):e.createCommentVNode("",!0),e.createVNode(wr.ssDialog,{title:ae.value,visible:ze.value,width:cr.value,onBeforeDestroy:lo,style:{height:"74%"}},{default:e.withCtx(()=>[e.createElementVNode("div",i3,[e.createVNode(ll.ssForm,{ref_key:"formRef",ref:Oe,rowContents:La.value,showOperator:!1,onChange:pu,isEnableWrap:!1,onFixChangeValue:Ko,onClickTrigger:Gn,isEdit:aa.value,onBlurChange:Qi,onCreate:ci,onTagChange:zn},null,8,["rowContents","isEdit"])])]),footer:e.withCtx(()=>[Ue.value?(e.openBlock(),e.createElementBlock("div",o3,[e.createVNode(xe,{onClick:h[4]||(h[4]=ge=>ze.value=!1),id:"themeBorderButton"},{default:e.withCtx(()=>h[24]||(h[24]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[24]}),e.createVNode(xe,{class:"ok-button",onClick:h[5]||(h[5]=ge=>Fi(!0)),id:"themeButton"},{default:e.withCtx(()=>h[25]||(h[25]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[25]})])):e.createCommentVNode("",!0)]),_:1},8,["title","visible","width"]),e.createVNode(wr.ssDialog,{title:ae.value,visible:ya.value,width:xa.value,onBeforeDestroy:h[7]||(h[7]=ge=>ya.value=!1)},{default:e.withCtx(()=>[e.createVNode(Tf)]),footer:e.withCtx(()=>[e.createElementVNode("div",t3,[e.createVNode(xe,{onClick:h[6]||(h[6]=ge=>ya.value=!1),class:"cancel-button",id:"themeBorderButton"},{default:e.withCtx(()=>h[26]||(h[26]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[26]}),e.createVNode(xe,{class:"ok-button",onClick:Jo,id:"themeButton"},{default:e.withCtx(()=>h[27]||(h[27]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[27]})])]),_:1},8,["title","visible","width"]),ee.value?(e.openBlock(),e.createBlock(ll.ssFilePreview,{key:2,fileDataList:da.value,onDestroy:Ri},null,8,["fileDataList"])):e.createCommentVNode("",!0),Ve.value?(e.openBlock(),e.createBlock(wr.ssDialog,{key:3,visible:Ve.value,onBeforeDestroy:su,style:{height:"80vh",width:"80vw"},"body-class":"three-dialog-body","footer-class":"three-dialog-footer"},{default:e.withCtx(()=>[e.createVNode(So.ThreeViewerHost,{files:_e.value,threeData:N.value},null,8,["files","threeData"])]),_:1},8,["visible"])):e.createCommentVNode("",!0),e.createVNode(wr.ssDialog,{title:"OCR扫描录入",visible:sl.value,"close-on-click-modal":!1,onBeforeDestroy:El,width:"1000px",dialogHeight:700,minWidth:900,minHeight:600,class:"ocr-upload-dialog",resizable:!0},{default:e.withCtx(()=>[h[38]||(h[38]=e.createElementVNode("div",{class:"ocr-header-bg"},null,-1)),e.createElementVNode("div",s3,[e.createElementVNode("div",c3,[e.createElementVNode("div",{class:e.normalizeClass(["ocr-step-item",{active:ra.value===1}])},h[28]||(h[28]=[e.createElementVNode("div",{class:"step-circle"},"1",-1),e.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件识别",-1)]),2),h[31]||(h[31]=e.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),e.createElementVNode("div",{class:e.normalizeClass(["ocr-step-item",{active:ra.value===2}])},h[29]||(h[29]=[e.createElementVNode("div",{class:"step-circle"},"2",-1),e.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件确认",-1)]),2),h[32]||(h[32]=e.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),e.createElementVNode("div",{class:e.normalizeClass(["ocr-step-item",{active:ra.value===3}])},h[30]||(h[30]=[e.createElementVNode("div",{class:"step-circle"},"3",-1),e.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件提交",-1)]),2)]),ra.value===1?(e.openBlock(),e.createElementBlock("div",u3,[e.createVNode(xe,{onClick:o,class:"ocr-action-btn",disabled:ol.value,size:"default"},{default:e.withCtx(()=>h[33]||(h[33]=[e.createTextVNode("扫描文件 ")])),_:1,__:[33]},8,["disabled"]),e.createVNode(xe,{onClick:Gr,class:"ocr-action-btn",disabled:ol.value,size:"default"},{default:e.withCtx(()=>h[34]||(h[34]=[e.createTextVNode("上传文件 ")])),_:1,__:[34]},8,["disabled"])])):e.createCommentVNode("",!0),ra.value===1?(e.openBlock(),e.createElementBlock("div",d3,[e.createElementVNode("div",p3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Va.value,(ge,Ra)=>{var wa;return e.openBlock(),e.createElementBlock("div",{key:Ra,class:"ocr-file-item"},[e.createElementVNode("div",f3,[ge.raw&&((wa=ge.raw.type)!=null&&wa.startsWith("image/"))?(e.openBlock(),e.createElementBlock("img",{key:0,src:Ul(ge),alt:"预览",class:"thumbnail-image"},null,8,h3)):(e.openBlock(),e.createElementBlock("div",v3,[e.createVNode(Ce,{size:40},{default:e.withCtx(()=>[e.createVNode(e.unref(Ha.document_default))]),_:1})])),e.createElementVNode("div",{class:e.normalizeClass(["file-progress-ring",{uploading:Cl(ge)==="uploading",processing:Cl(ge)==="processing",completed:Cl(ge)==="completed"||Cl(ge)==="uploaded",failed:Cl(ge)==="failed"}])},[(e.openBlock(),e.createElementBlock("svg",m3,[h[35]||(h[35]=e.createElementVNode("circle",{class:"progress-ring-bg",cx:"18",cy:"18",r:"16",fill:"none",stroke:"#e4e7ed","stroke-width":"2"},null,-1)),e.createElementVNode("circle",{class:e.normalizeClass(["progress-ring-fill",{completed:Cl(ge)==="completed"||Cl(ge)==="uploaded",uploading:Cl(ge)==="uploading",processing:Cl(ge)==="processing",failed:Cl(ge)==="failed"}]),cx:"18",cy:"18",r:"16",fill:"none",stroke:Cl(ge)==="failed"?"#f56c6c":Cl(ge)==="completed"||Cl(ge)==="uploaded"?"#67c23a":"#409eff","stroke-width":Cl(ge)==="completed"||Cl(ge)==="uploaded"||Cl(ge)==="failed"?3:2,"stroke-dasharray":Hr(ge),"stroke-dashoffset":"0","stroke-linecap":"round",transform:"rotate(-90 18 18)"},null,10,y3)])),Cl(ge)==="completed"||Cl(ge)==="uploaded"?(e.openBlock(),e.createElementBlock("div",g3,[e.createVNode(Ce,{class:"check-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Ha.check_default))]),_:1})])):e.createCommentVNode("",!0),Cl(ge)==="failed"?(e.openBlock(),e.createElementBlock("div",b3,[e.createVNode(Ce,{class:"error-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Ha.close_default))]),_:1})])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:"file-delete-btn",onClick:Ca=>nu(Ra)},[e.createVNode(Ce,null,{default:e.withCtx(()=>[e.createVNode(e.unref(Ha.close_default))]),_:1})],8,k3)]),e.createElementVNode("div",x3,e.toDisplayString(ge.name||"文件名123"),1)])}),128))]),Va.value.length>0?(e.openBlock(),e.createElementBlock("div",w3,[e.createVNode(xe,{onClick:na,class:"ocr-start-recognize-btn",disabled:ol.value||Va.value.length===0,size:"default"},{default:e.withCtx(()=>h[36]||(h[36]=[e.createTextVNode("开始识别 ")])),_:1,__:[36]},8,["disabled"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),ra.value===1?(e.openBlock(),e.createElementBlock("div",_3,[e.createVNode(Ke,{percentage:ka.value,"stroke-width":8},null,8,["percentage"])])):e.createCommentVNode("",!0),ra.value===2?(e.openBlock(),e.createElementBlock("div",S3,[e.createElementVNode("div",E3,[e.createVNode(Pe,{title:"请核对识别结果。",type:"info",closable:!1,"show-icon":""})]),e.createElementVNode("div",C3,[e.createVNode(Sa,{data:Ye.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(Ze,{type:"index",label:"序号",width:"60",fixed:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ta.value,ge=>(e.openBlock(),e.createBlock(Ze,{key:ge.prop,prop:ge.prop,"min-width":ge.minWidth||230,"class-name":ge.isAccuracy?"accuracy-column":""},{header:e.withCtx(()=>[e.createElementVNode("div",D3,[e.createElementVNode("span",null,e.toDisplayString(ge.label),1)])]),default:e.withCtx(({row:Ra,$index:wa})=>{var Ca,Ea,T;return[ge.isAccuracy?(e.openBlock(),e.createElementBlock("span",{key:0,class:"accuracy-value",style:e.normalizeStyle({color:xl(Ra[ge.prop]),fontWeight:500})},e.toDisplayString(Qa(Ra[ge.prop])),5)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[Za.value!==wa?(e.openBlock(),e.createElementBlock("span",B3,e.toDisplayString(Ra[ge.prop]),1)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(pl(ge.prop)),{key:1,modelValue:Ra[ge.prop],"onUpdate:modelValue":G=>Ra[ge.prop]=G,size:"small",placeholder:"请输入"+ge.label,content:((Ca=va(ge.prop))==null?void 0:Ca.contents)??((Ea=va(ge.prop))==null?void 0:Ea.options)??[],optionUrl:(T=va(ge.prop))==null?void 0:T.optionUrl,onChange:G=>qa(wa,ge.prop,G),onFocus:G=>Re.value=ge.prop,onBlur:h[8]||(h[8]=G=>Re.value="")},null,40,["modelValue","onUpdate:modelValue","placeholder","content","optionUrl","onChange","onFocus"]))],64))]}),_:2},1032,["prop","min-width","class-name"]))),128)),e.createVNode(Ze,{label:"编辑",width:"80",fixed:"right"},{default:e.withCtx(({$index:ge})=>[Za.value===ge?(e.openBlock(),e.createBlock(Ce,{key:0,class:"ocr-edit-icon editing",style:{"margin-left":"12px"},onClick:e.withModifiers(Ra=>vl(ge),["stop"])},{default:e.withCtx(()=>[e.createVNode(e.unref(Ha.check_default))]),_:2},1032,["onClick"])):(e.openBlock(),e.createBlock(B,{key:1,name:"edit_101",class:"ocr-edit-icon",onClick:e.withModifiers(Ra=>vl(ge),["stop"])},null,8,["onClick"]))]),_:1})]),_:1},8,["data"])])])):e.createCommentVNode("",!0),ra.value===3?(e.openBlock(),e.createElementBlock("div",T3,[e.createVNode(Ce,{size:"32",class:"ocr-success-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Ha.check_default))]),_:1}),h[37]||(h[37]=e.createElementVNode("div",{class:"ocr-success-text"},"文件提交成功",-1))])):e.createCommentVNode("",!0)]),e.createVNode(Ia,{ref:"ocrUploadRef","file-list":Va.value,"onUpdate:fileList":h[9]||(h[9]=ge=>Va.value=ge),multiple:"",action:"","auto-upload":!1,limit:20,accept:"image/*,application/pdf","on-change":je,"show-file-list":!1,class:"ocr-upload-input",style:{display:"none"}},null,8,["file-list"])]),footer:e.withCtx(()=>[ra.value!==3?(e.openBlock(),e.createElementBlock("div",N3,[e.createVNode(xe,{onClick:on,class:"ocr-start-recognize-btn",disabled:ra.value===1||ol.value},{default:e.withCtx(()=>h[39]||(h[39]=[e.createTextVNode(" 上一步 ")])),_:1,__:[39]},8,["disabled"]),e.createVNode(xe,{onClick:wn,class:"ocr-start-recognize-btn",disabled:ol.value},{default:e.withCtx(()=>h[40]||(h[40]=[e.createTextVNode(" 下一步 ")])),_:1,__:[40]},8,["disabled"])])):e.createCommentVNode("",!0)]),_:1},8,["visible"]),e.createVNode(Kf,{visible:fi.value,onConfirm:i,onCancel:h[10]||(h[10]=ge=>fi.value=!1)},null,8,["visible"]),e.createVNode(kd,{visible:rl.value,"onUpdate:visible":h[11]||(h[11]=ge=>rl.value=ge),versions:X.value},null,8,["visible","versions"]),e.createVNode(od,{visible:Te.value,"onUpdate:visible":h[12]||(h[12]=ge=>Te.value=ge),images:_l.value,"default-image-name":Ll.value,"field-meta":Za.value!==null?((Xa=Ye.value[Za.value])==null?void 0:Xa.__ocrFieldMeta)||{}:{},"focused-field-name":Re.value,onClose:h[13]||(h[13]=ge=>Te.value=!1),class:"ocr-img-preview-dialog"},null,8,["visible","images","default-image-name","field-meta","focused-field-name"]),e.createVNode(Md,{visible:Wl.value,"onUpdate:visible":h[14]||(h[14]=ge=>Wl.value=ge),candidates:Kl.value,"name-prop":Hl.value,"mfr-prop":ar.value,columns:V.value,onSubmit:Sr,onPreviewFile:Qn},null,8,["visible","candidates","name-prop","mfr-prop","columns"]),e.createVNode(Fd,{visible:ha.value,"onUpdate:visible":h[15]||(h[15]=ge=>ha.value=ge),ocrPreviewData:Ye.value,"onUpdate:ocrPreviewData":h[16]||(h[16]=ge=>Ye.value=ge),ocrSelectedFields:oa.value,"onUpdate:ocrSelectedFields":h[17]||(h[17]=ge=>oa.value=ge),ocrPreviewColumns:ta.value,onConfirm:Ya,onFieldChange:h[18]||(h[18]=({rowIndex:ge,prop:Ra,value:wa})=>qa(ge,Ra,wa))},null,8,["visible","ocrPreviewData","ocrSelectedFields","ocrPreviewColumns"]),e.createVNode(wr.ssDialog,{title:p.title,visible:p.show,width:p.width,onBeforeDestroy:Z},{default:e.withCtx(()=>[e.createElementVNode("div",A3,[e.createVNode(ll.ssForm,{rowContents:p==null?void 0:p.contents,formRules:p==null?void 0:p.formRules,showOperator:!1,buttonValue:p.buttonValue,isEdit:aa.value,isStartJustify:!1,onOnButtonClick:be},null,8,["rowContents","formRules","buttonValue","isEdit"])])]),_:1},8,["title","visible","width"]),e.createVNode(wr.ssDialog,{title:"",visible:m.show,width:m.width,alignCenter:!0,onBeforeDestroy:S},{header:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("div",z3,e.toDisplayString(m.title),1),e.createVNode(za,{size:"small",type:"danger",style:{width:"100%"}},{default:e.withCtx(()=>h[41]||(h[41]=[e.createTextVNode(" (选择【覆盖】,可能会影响到原数据的引用关系;选择【跳过】将会放弃重复数据的导入。请谨慎操作!) ")])),_:1,__:[41]})])]),footer:e.withCtx(()=>[e.createElementVNode("div",M3,[e.createVNode(za,{size:"small",style:{width:"100%","text-align":"left"},type:"info"},{default:e.withCtx(()=>[e.createTextVNode("引用模块:"+e.toDisplayString(Ln.value||"暂无"),1)]),_:1}),e.createElementVNode("div",I3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m==null?void 0:m.buttonValue,ge=>(e.openBlock(),e.createBlock(xe,{key:ge==null?void 0:ge.label,style:e.normalizeStyle({background:ge==null?void 0:ge.background,color:ge==null?void 0:ge.color}),onClick:Ra=>K(ge==null?void 0:ge.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(ge==null?void 0:ge.label),1)]),_:2},1032,["style","onClick"]))),128))])])]),default:e.withCtx(()=>[e.createVNode(gf,{columns:m==null?void 0:m.columns,tableData:m==null?void 0:m.tableData},{content:e.withCtx(({row:ge,item:Ra,slotData:wa,scope:Ca,column:Ea,columnProp:T,$index:G})=>[e.createTextVNode(e.toDisplayString((ge==null?void 0:ge[Ea==null?void 0:Ea.prop])||(ge==null?void 0:ge[Ea==null?void 0:Ea.label])||(ge==null?void 0:ge[Ea==null?void 0:Ea.property])||(wa==null?void 0:wa[Ea==null?void 0:Ea.property])),1)]),_:1},8,["columns","tableData"])]),_:1},8,["visible","width"])])}}},Bc=Zl._export_sfc(L3,[["__scopeId","data-v-7dc7345c"]]),R3={key:1,class:"static-form-body"},$3=["onClick"],V3={key:1},F3=e.defineComponent({__name:"index",props:{itemData:{default:()=>[]},fields:{default:()=>[]},compName:{default:""},title:{default:""},disabled:{type:Boolean,default:!1},textSize:{default:void 0},textColor:{default:void 0},backGround:{default:void 0},backGroundImage:{default:void 0}},emits:["update:backGroundImage"],setup(a,{emit:l}){const r=a,n=l,t=x=>{switch(x){case"占用":return"warning";case"注销":return"info";case"损坏":return"danger";case"可用":return"success";default:return""}},s=e.computed(()=>{var $;const x=($=r.itemData)==null?void 0:$.find(F=>(F==null?void 0:F.key)==="formContent"),b=(x==null?void 0:x.contents)||[];return(r.fields&&r.fields.length>0?r.fields:b).filter(F=>(F==null?void 0:F.label)||(F==null?void 0:F.isHideInForm)).map(F=>{let Y=F==null?void 0:F.value;Array.isArray(Y)&&(Y=Y.map(V=>V==null?"":typeof V=="object"?V.label??V.value??V.name??JSON.stringify(V):String(V)).filter(Boolean).join(",")),Y!=null&&typeof Y=="object"&&(Y=Y.label??Y.value??Y.name??JSON.stringify(Y));const oe=F.isHideInForm?"":F.label??"",ye=Y==null||Y===""?"-":String(Y),Ie=oe==="使用状态";return{label:oe,value:ye,isStatus:Ie,tagType:Ie?t(ye):"",width:F.width??1,field:F}})}),v=e.ref(null),f=e.ref(null),d=e.computed(()=>{const x=Number(r==null?void 0:r.textSize),b=ue.rgbaToColor(r==null?void 0:r.textColor),_={},$={},F={},Y={};return!Number.isNaN(x)&&x&&(_.fontSize=`${x}px`,$.fontSize=`${x+1}px`,F.fontSize=`${x}px`,Y.fontSize=`${x}px`),b&&($.color=b,F.color=b,Y.color=b),{item:_,label:$,value:F,empty:Y}}),y=e.ref(""),g=e.ref(""),c=e.ref(!1),D=async x=>{if(x){g.value&&(URL.revokeObjectURL(g.value),g.value="");try{const b=await A.platformDownloadFile({url:x}),_=new Blob([b==null?void 0:b.data],{type:(b==null?void 0:b.headers["content-type"])||"image/*"});g.value=URL.createObjectURL(_)}catch{g.value=""}}};e.watch(()=>r==null?void 0:r.backGroundImage,x=>{x&&(y.value=x)},{immediate:!0}),e.watch(y,x=>{D(x)},{immediate:!0});const I=()=>{var x;(x=f.value)==null||x.click()},k=async x=>{var $,F,Y;const b=x.target,_=($=b==null?void 0:b.files)==null?void 0:$[0];if(!_){b.value="";return}c.value=!0;try{const oe=new FormData;oe.append("file",_);const ye=await A.platformUploadFile(oe),Ie=(Y=(F=ye==null?void 0:ye.data)==null?void 0:F.result)==null?void 0:Y.url;Ie?(y.value=Ie,n("update:backGroundImage",Ie),D(Ie),Ha.ElMessage.success("背景图片上传成功")):Ha.ElMessage.error("背景图片上传失败")}catch{Ha.ElMessage.error("背景图片上传失败")}finally{c.value=!1,b.value=""}},W=e.computed(()=>g.value?{backgroundImage:`url(${g.value})`,backgroundSize:"contain",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{}),M=x=>ll.getComponent(x),R=x=>{if(!x)return;const b=x.querySelector("input, textarea, .el-input__inner");b&&typeof b.focus=="function"&&b.focus()},j=(x,b,_)=>{r.disabled||(v.value=b,e.nextTick(()=>{R(_.currentTarget)}))},E=()=>{v.value=null},w=x=>{const b=x!=null&&x.width&&x.width>0?x.width:1,$=`calc((100% - ${(b-1)*48}px) / ${b})`;return{flex:`0 0 ${$}`,maxWidth:$,minWidth:"0",boxSizing:"border-box"}};return(x,b)=>{const _=e.resolveComponent("el-tag");return e.openBlock(),e.createElementBlock("div",{class:"static-form-card",style:e.normalizeStyle(W.value),onClick:b[2]||(b[2]=$=>(r==null?void 0:r.backGround)==="Yes"&&I())},[(r==null?void 0:r.backGround)==="Yes"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"form-backGround-upload",onClick:b[0]||(b[0]=e.withModifiers($=>I(),["stop"]))},[e.createElementVNode("input",{ref_key:"bgUploadRef",ref:f,type:"file",accept:"image/*",style:{display:"none"},onChange:k},null,544),b[3]||(b[3]=e.createElementVNode("img",{src:ll._imports_0,class:"bg-upload-icon",alt:"上传背景"},null,-1))])):e.createCommentVNode("",!0),s.value.length?(e.openBlock(),e.createElementBlock("div",R3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,($,F)=>{var Y,oe,ye,Ie,V,pe,Q,ce,Be;return e.openBlock(),e.createElementBlock("div",{key:F,class:"static-form-item",style:e.normalizeStyle({...w($),...d.value.item}),onClick:b[1]||(b[1]=e.withModifiers(()=>{},["stop"]))},[$.label&&!((Y=$==null?void 0:$.field)!=null&&Y.isHideInForm)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"static-form-label",style:e.normalizeStyle(d.value.label)},e.toDisplayString($.label)+": ",5)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"static-form-value",style:e.normalizeStyle(d.value.value),onClick:Ve=>{var me;return(me=$.field)!=null&&me.isNoClick?null:j($,F,Ve)}},[v.value===F&&$.field?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(M(((oe=$.field)==null?void 0:oe.type)??"Input")),{key:0,modelValue:$.field.value,"onUpdate:modelValue":Ve=>$.field.value=Ve,isEdit:!0,disabled:(ye=$.field)==null?void 0:ye.disabled,content:((Ie=$.field)==null?void 0:Ie.contents)??[],optionUrl:$.field,originalValue:(V=$.field)==null?void 0:V.value,config:(pe=$.field)==null?void 0:pe.config,configModel:((Q=$.field)==null?void 0:Q.prop)??((ce=$.field)==null?void 0:ce.name),selectedTagList:((Be=$.field)==null?void 0:Be.selectValue)??[],onBlur:E,onBlurChange:E},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[$.isStatus?(e.openBlock(),e.createBlock(_,{key:0,type:$.tagType,size:"Default",effect:"plain"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString($.value??"-"),1)]),_:2},1032,["type"])):(e.openBlock(),e.createElementBlock("span",V3,e.toDisplayString($.value??"-"),1))],64))],12,$3)],4)}),128))])):(e.openBlock(),e.createElementBlock("div",{key:2,class:"static-form-empty",style:e.normalizeStyle(d.value.empty)}," 暂无数据 ",4))],4)}}}),Tc=Zl._export_sfc(F3,[["__scopeId","data-v-74b02d73"]]),P3={class:"form-content"},j3={title:"选择标签"},H3={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},U3={class:"col-operate-wrap"},q3={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},W3={__name:"index",props:{formRules:Object,itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,compName:{type:String,default:""},allMapContents:{type:Object},config:{type:Object,default:()=>{}}},emits:["change","contentChange","routeUrl","clickTrigger"],setup(a,{emit:l}){const r=()=>{v.value=!1,f.value=!1,d.value=[]},n=a;e.computed(()=>{var ze;const ke=(ze=Fe.value)==null?void 0:ze.split("/");return(ke==null?void 0:ke.some(Oe=>(Oe==null?void 0:Oe.includes("updateLoading"))||(Oe==null?void 0:Oe.includes("loading"))))?!1:Be.value==="view"});const t=l,s=e.ref([]),v=e.ref(!1),f=e.ref(!1),d=e.ref([]),{getFileExtension:y}=So.useThreeSystem(),g=e.ref(),c=e.ref(!1),D=e.ref(!1),I=A.useUnit(A.pinia),{chooseTitle:k}=A.storeToRefs(I),W=e.ref([]),M=e.ref(),R=e.ref(!1),j=e.ref([]),E=cc(A.pinia),w=Ct(A.pinia),x=e.ref(!1),b=e.ref(),_=e.ref(),$=e.ref(),F=e.ref(),Y=e.ref(),oe=A.useLoginState(A.pinia),{loginUserInfo:ye}=A.storeToRefs(oe),Ie=e.ref(),V=e.ref(!0),pe=A.useModelComp(A.pinia),{tableViewContents:Q,itemData:ce,isEdit:Be,routeToChildPath:Ve,lockingPage:me,homepageBackgroundTableId:N}=A.storeToRefs(pe),se=e.ref(null),U=e.ref(!1),Se=e.ref(!1),Le=A.useMenuState(),{activeMenuPath:Fe}=A.storeToRefs(Le),ia=ue.useOriginalState(A.pinia),{originalPath:Ba}=A.storeToRefs(ia),{compType:ee,hasEditable:da}=Ys.useRole(),ie=()=>!da(n.config,{type:ee.FORM});e.computed(()=>Fe.value==="设备管理/试验设备"&&n.compName==="设备概要");const fa=async()=>{var ze,Oe,Me;const ke=N==null?void 0:N.value,ae=(ze=ye==null?void 0:ye.value)==null?void 0:ze.plat_id;if(!(!ke||!ae))try{const ya=await A.getAllTables({platId:parseInt(ae),tableNames:[`content_${ke}`,`struct_${ke}`],user_unique_id:"0"}),xa=((Me=(Oe=ya==null?void 0:ya.data)==null?void 0:Oe.result)==null?void 0:Me[0])??[],qe=String((n==null?void 0:n.index)??""),Je=xa==null?void 0:xa.find(Ue=>String(Ue==null?void 0:Ue.relatedForm_id)===qe);Je!=null&&Je.backgroundImg_url&&(F.value=Je.backgroundImg_url)}catch(ya){console.error("获取首页背景图片表数据失败:",ya)}},Ee=e.ref([]),ne=e.ref([{label:"编辑",value:"operable",checked:!1},{label:"禁用",value:"disabled",checked:!1}]),Ae=async ke=>{Se.value=ke,await ve("disabled",null,ke,!0)},We=async ke=>{await ve("operable",null,ke,!0)};e.watch(()=>Fe.value,async()=>{s.value=[],d.value=[]},{deep:!0,immediate:!0});const ua=()=>{e.nextTick(()=>{J()})},Ga=ke=>{var ae;s.value=(ae=s.value)==null?void 0:ae.map(ze=>({...ze,isFormColHidden:!(ke!=null&&ke.includes(ze.label))}))};e.onUnmounted(()=>{se.value=null});const L=ke=>{t("clickTrigger",ke)},H=async ke=>{var ae,ze,Oe,Me,ya,xa;if(ke===""){let qe="";(ae=s.value)==null||ae.forEach(de=>{de!=null&&de.isMain&&(qe=de==null?void 0:de.value)});let Je=await ue.getItemData(Ve.value,sessionStorage.getItem("systemKey"),"");qe=((xa=(ya=(Me=(Oe=(ze=Je==null?void 0:Je[0])==null?void 0:ze.compData)==null?void 0:Oe.find(de=>(de==null?void 0:de.key)==="mainRouters"))==null?void 0:Me.contents)==null?void 0:ya[0])==null?void 0:xa.routerContent)+Ba.value+qe;let _e=await ue.getItemData(qe,sessionStorage.getItem("systemKey"),"");R.value=!0,j.value=_e==null?void 0:_e.filter(de=>(de==null?void 0:de.comp)!=="methodButton"),t("routeUrl",j.value)}},J=()=>{var ae;const ke=(ae=se.value)==null?void 0:ae.$el;ke&&Bl.Sortable.create(ke,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:ze=>{const{oldIndex:Oe,newIndex:Me}=ze;if(Oe===Me)return;const ya=s.value.splice(Oe,1)[0];s.value.splice(Me,0,ya)}})},ve=async(ke,ae,ze,Oe=!1)=>{try{pe.setRefreshCurStructure(!1)}catch{Ha.ElMessage.error("编辑处理失败")}},he=async(ke,ae)=>{await ve()},ga=async(ke,ae)=>{ke&&await ve()},la=async(ke,ae,ze)=>{await ve(ae,ze,ke,!1)},te=(ke,ae)=>{Ie.value===ae?V.value=!1:V.value=!0,Ie.value=ae==null?void 0:ae.changeProp},ba=async ke=>{var xa;F.value=ke;const ae=n.itemData,ze=ae==null?void 0:ae.find(qe=>(qe==null?void 0:qe.key)==="backGroundImage");ze?ze.contents=ke:ae==null||ae.push({key:"backGroundImage",contents:ke}),t("change",{key:"backGroundImage",contents:ke});const Oe=N==null?void 0:N.value,Me=n==null?void 0:n.index,ya=(xa=ye==null?void 0:ye.value)==null?void 0:xa.plat_id;if(!(!Oe||!ya||!Me||!ke))try{await A.pageBatchAddApi({platId:parseInt(ya),changeContents:[{tableName:`content_${Oe}`,tableContents:[{backgroundImg_url:ke,relatedForm_id:String(Me)}]}],user_unique_id:"0"})}catch(qe){console.error("保存背景图片记录失败:",qe),Ha.ElMessage.error("背景图片记录保存失败")}},Ne=async ke=>{var ze,Oe,Me,ya,xa,qe,Je,Ue,_e,de,Oa,La,gl,zl,tl;let ae=[];if((ze=ke==null?void 0:ke.toString())!=null&&ze.includes(".urdf")){if(ke.includes(",")){Ha.ElMessage.error("当前版本仅允许单个urdf预览!");return}d.value=[{url:ke,extension:y(ke)}],f.value=!0,v.value=!0;return}if((Oe=ke==null?void 0:ke.toString())!=null&&Oe.includes(".stl")||(Me=ke==null?void 0:ke.toString())!=null&&Me.includes(".STL")||(ya=ke==null?void 0:ke.toString())!=null&&ya.includes(".obj")||(xa=ke==null?void 0:ke.toString())!=null&&xa.includes(".mtl")){const Pa=((qe=ke==null?void 0:ke.toString())==null?void 0:qe.split(",")).map(Il=>({url:Il,extension:y(Il)}));d.value=Pa,f.value=!1,v.value=!0;return}if((Je=ke==null?void 0:ke.toString())!=null&&Je.includes(".stl")||(Ue=ke==null?void 0:ke.toString())!=null&&Ue.includes(".STL")||(_e=ke==null?void 0:ke.toString())!=null&&_e.includes(".obj")||(de=ke==null?void 0:ke.toString())!=null&&de.includes(".mtl")){let jl,Pa=[],Il={};if(Array.isArray(ke)?jl=ke:jl=ke==null?void 0:ke.split(","),jl==null||jl.forEach(Vl=>{Vl.includes(".mtl")?Pa.push(Vl):Il.blob=Il.blob?Il.blob+","+Vl:Vl}),(Pa==null?void 0:Pa.length)>0&&(Il.mtlBlobs=Pa),(La=(Oa=Object.values(Il))==null?void 0:Oa[0])!=null&&La.includes("http:"))ae.push(Il);else{const Vl=new Blob([Il.blob],{type:"application/octet-stream;charset=UTF-8"});let Ma=URL.createObjectURL(Vl),el="";(gl=ke==null?void 0:ke.split("/"))==null||gl.forEach((sl,ol)=>{var Va;ol===((Va=ke==null?void 0:ke.split("/"))==null?void 0:Va.length)-1&&(el=sl)}),(zl=Il.blob)!=null&&zl.includes(".stl")&&(el=(el==null?void 0:el.replaceAll(">",""))+".urdf"),M.value=[{name:el,blobUrl:Ma}],D.value=!0}}else{const jl=A.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),Pa=await Ha.axios.get(ke,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{jl.close()}),Il=new Blob([Pa.data],{type:"application/octet-stream;charset=UTF-8"});let Vl=URL.createObjectURL(Il),Ma="";(tl=ke==null?void 0:ke.split("/"))==null||tl.forEach((el,sl)=>{var ol;sl===((ol=ke==null?void 0:ke.split("/"))==null?void 0:ol.length)-1&&(Ma=el)}),M.value=[{name:Ma,blobUrl:Vl}],D.value=!0}(ae==null?void 0:ae.length)>0&&w.setBlobUrls(ae)},Xe=()=>{D.value=!1},Aa=ke=>{var ya,xa,qe,Je;const ae=(xa=(ya=ll.safeClone(n.itemData))==null?void 0:ya.find(Ue=>(Ue==null?void 0:Ue.key)==="formContent"))==null?void 0:xa.contents,ze=ll.safeClone(ke.content);let Oe={};ze&&((qe=Object.values(ze))==null?void 0:qe.length)>0&&((Je=Object.values(ze))==null||Je.forEach((Ue,_e)=>{Oe[ae[_e].key]=Ue}));const Me={content:Oe,index:n==null?void 0:n.index,buttonName:ke==null?void 0:ke.buttonName};t("change",Me)};e.computed(()=>"http://222.92.178.198:62001");const Da=async ke=>{var Oa,La,gl,zl,tl,jl,Pa,Il,Vl,Ma,el,sl,ol,Va,dl,rl;if(!ke)return;(La=(Oa=n==null?void 0:n.itemData)==null?void 0:Oa.find(X=>(X==null?void 0:X.key)==="parentFormPath"))==null||La.contents;let ae=Q.value;(ae==null?void 0:ae.length)>0&&(ae=ae==null?void 0:ae.map(X=>{var ea,fe,ka,ha;let ra=(ea=X==null?void 0:X.key)==null?void 0:ea.split("/");return(n==null?void 0:n.compName)===(ra==null?void 0:ra[0])&&(fe=s.value)!=null&&fe.find(Ye=>(Ye==null?void 0:Ye.prop)===(ra==null?void 0:ra[1]))&&(X.value=(ha=(ka=s.value)==null?void 0:ka.find(Ye=>(Ye==null?void 0:Ye.prop)===(ra==null?void 0:ra[1])))==null?void 0:ha.value),X}),pe.setTableViewContents(ae));const ze=ll.safeClone(n.itemData);let Oe=ze==null?void 0:ze.map(X=>{var ra;return(X==null?void 0:X.key)==="formContent"&&((ra=X.contents)==null||ra.map((ea,fe)=>{var ka,ha,Ye,ta,va,pl,He,ca,oa,Za,Re,Te,_l,Ll,Wl,Kl,Ql,pr,Rl,fr,$r;return ea.type=(ha=(ka=s.value)==null?void 0:ka.find(Hl=>(Hl==null?void 0:Hl.prop)===(ea==null?void 0:ea.prop)))==null?void 0:ha.type,ea.options=ea!=null&&ea.options?ea.options:((va=(ta=(Ye=ea==null?void 0:ea.key)==null?void 0:Ye.split("$"))==null?void 0:ta[1])==null?void 0:va.length)>0?(oa=(ca=Lu((He=(pl=ea==null?void 0:ea.key)==null?void 0:pl.split("$"))==null?void 0:He[1]))==null?void 0:ca.split(","))==null?void 0:oa.map(Hl=>({label:Hl,value:Hl})):[],(Za=ea==null?void 0:ea.key)!=null&&Za.includes("$")&&(ea.key=(Te=(Re=ea==null?void 0:ea.key)==null?void 0:Re.split("$"))==null?void 0:Te[0]),ea.signature=(Ll=(_l=s.value)==null?void 0:_l.find(Hl=>(Hl==null?void 0:Hl.prop)===(ea==null?void 0:ea.prop)))==null?void 0:Ll.signature,ea.isLoginUser=(Kl=(Wl=s.value)==null?void 0:Wl.find(Hl=>(Hl==null?void 0:Hl.prop)===(ea==null?void 0:ea.prop)))==null?void 0:Kl.isLoginUser,ea.value=(Ql=Object.values(ke))==null?void 0:Ql[fe],ea.isFormColHidden=(Rl=(pr=s.value)==null?void 0:pr.find(Hl=>(Hl==null?void 0:Hl.prop)===(ea==null?void 0:ea.prop)))==null?void 0:Rl.isFormColHidden,ea.isHideInForm=($r=(fr=s.value)==null?void 0:fr.find(Hl=>(Hl==null?void 0:Hl.prop)===(ea==null?void 0:ea.prop)))==null?void 0:$r.isHideInForm,ea})),X}),Me=s.value,ya=(zl=(gl=ll.safeClone(Oe))==null?void 0:gl.find(X=>(X==null?void 0:X.key)==="formContent"))==null?void 0:zl.contents;if(Me=Me==null?void 0:Me.map(X=>{var ra,ea;return(X==null?void 0:X.type)==="Select"&&((ra=X==null?void 0:X.allSelectionContents)==null?void 0:ra.length)>0&&(X.contactValue=ke),X.value=(ea=ya==null?void 0:ya.find((fe,ka)=>((fe==null?void 0:fe.id)??ka)===(X==null?void 0:X.id)))==null?void 0:ea.value,X}),!V.value){t("contentChange",{contents:Oe,index:n.index});return}let xa="",qe=(Pa=(jl=(tl=ll.safeClone(Oe))==null?void 0:tl.find(X=>(X==null?void 0:X.key)==="formContent"))==null?void 0:jl.contents)==null?void 0:Pa.find((X,ra)=>{var ea,fe,ka;return(X==null?void 0:X.label)===Ie.value||ra.toString()===((ka=(fe=(ea=Ie.value)==null?void 0:ea.split("t"))==null?void 0:fe[1])==null?void 0:ka.toString())}),Je=(Il=qe==null?void 0:qe.optionUrl)==null?void 0:Il.menuSelect,Ue=!0;if((el=(Ma=(Vl=ll.safeClone(Oe))==null?void 0:Vl.find(X=>(X==null?void 0:X.key)==="formContent"))==null?void 0:Ma.contents)==null||el.forEach(X=>{var ra,ea,fe,ka,ha,Ye;Ue&&((fe=(ea=(ra=X==null?void 0:X.optionUrl)==null?void 0:ra.groupSelect)==null?void 0:ea[1])!=null&&fe.includes("["))&&(xa=(ha=(ka=X==null?void 0:X.optionUrl)==null?void 0:ka.groupSelect)==null?void 0:ha[1],JSON.stringify(Je)===JSON.stringify((Ye=X==null?void 0:X.optionUrl)==null?void 0:Ye.menuSelect)&&(Ue=!1))}),(sl=qe==null?void 0:qe.optionUrl)!=null&&sl.menuSelect&&V.value){let X=await yt(qe),ra,ea=(ol=qe==null?void 0:qe.optionUrl)==null?void 0:ol.menuSelect;if(X==null||X.forEach(fe=>{var ka,ha,Ye,ta,va,pl,He,ca,oa,Za;xa===((ha=(ka=qe==null?void 0:qe.optionUrl)==null?void 0:ka.groupSelect)==null?void 0:ha[1])&&((va=(ta=(Ye=qe==null?void 0:qe.optionUrl)==null?void 0:Ye.groupSelect)==null?void 0:ta[1])!=null&&va.includes("["))&&((Za=ll.safeClone(fe))==null?void 0:Za[(oa=(ca=(He=(pl=qe==null?void 0:qe.optionUrl)==null?void 0:pl.groupSelect)==null?void 0:He[1])==null?void 0:ca.replaceAll("[",""))==null?void 0:oa.replaceAll("]","")])===(qe==null?void 0:qe.value)&&(ra=fe)}),ra){let fe=ll.safeClone(Me);fe=fe==null?void 0:fe.map(ha=>{var Ye,ta,va,pl,He,ca,oa,Za,Re,Te,_l;return(ra!=null&&ra[ha==null?void 0:ha.label]||ra!=null&&ra[(pl=(va=(ta=(Ye=ha==null?void 0:ha.optionUrl)==null?void 0:Ye.groupSelect)==null?void 0:ta[1])==null?void 0:va.replaceAll("[",""))==null?void 0:pl.replaceAll("]","")])&&((oa=(ca=(He=ha==null?void 0:ha.optionUrl)==null?void 0:He.groupSelect)==null?void 0:ca[1])!=null&&oa.includes("["))&&ea!=null&&ea.every(Ll=>{var Wl,Kl;return(Kl=(Wl=ha==null?void 0:ha.optionUrl)==null?void 0:Wl.menuSelect)==null?void 0:Kl.includes(Ll)})&&(ha.value=(ra==null?void 0:ra[ha==null?void 0:ha.label])||(ra==null?void 0:ra[(_l=(Te=(Re=(Za=ha==null?void 0:ha.optionUrl)==null?void 0:Za.groupSelect)==null?void 0:Re[1])==null?void 0:Te.replaceAll("[",""))==null?void 0:_l.replaceAll("]","")]),Array.isArray(ha.value)&&ha.value.every(Ll=>(Ll==null?void 0:Ll.url)&&(Ll==null?void 0:Ll.name))&&(ha.type="Upload")),ha}),fe=fe==null?void 0:fe.map(ha=>{var Ye,ta,va;return(Ye=ha==null?void 0:ha.optionUrl)!=null&&Ye.oldMenuSelect&&(ha.optionUrl.menuSelect=(va=(ta=ll.safeClone(ha))==null?void 0:ta.optionUrl)==null?void 0:va.oldMenuSelect),ha}),s.value=ll.safeClone(fe);let ka=ll.safeClone(fe);ka=ka==null?void 0:ka.map(ha=>{var Ye,ta,va,pl,He,ca;return(ta=(Ye=ha==null?void 0:ha.optionUrl)==null?void 0:Ye.menuSelect)!=null&&ta.some(oa=>oa==null?void 0:oa.includes("["))&&(ha.optionUrl.oldMenuSelect=(pl=(va=ll.safeClone(ha))==null?void 0:va.optionUrl)==null?void 0:pl.menuSelect,ha.optionUrl.menuSelect=(ca=(He=ha==null?void 0:ha.optionUrl)==null?void 0:He.menuSelect)==null?void 0:ca.map(oa=>{var Za,Re,Te,_l;if(oa!=null&&oa.includes("[")){let Ll=(Re=(Za=oa==null?void 0:oa.replaceAll("[","").replaceAll("]",""))==null?void 0:Za.split(":"))==null?void 0:Re[1];oa=(_l=(Te=ll.safeClone(fe))==null?void 0:Te.find(Wl=>(Wl==null?void 0:Wl.label)===Ll))==null?void 0:_l.value}return oa})),ha}),s.value=ka}else s.value=Me;Oe=Oe==null?void 0:Oe.map(fe=>{var ka;return(fe==null?void 0:fe.key)==="formContent"&&(fe.contents=(ka=fe.contents)==null?void 0:ka.map(ha=>{var Ye,ta,va,pl;return ha.value=((ta=(Ye=s.value)==null?void 0:Ye.find(He=>(He==null?void 0:He.label)===(ha==null?void 0:ha.key)))==null?void 0:ta.value)??(ha==null?void 0:ha.value),ha.type=((pl=(va=s.value)==null?void 0:va.find(He=>(He==null?void 0:He.prop)===(ha==null?void 0:ha.key)))==null?void 0:pl.type)??(ha==null?void 0:ha.type),ha})),fe})}V.value=!1,t("contentChange",{contents:Oe,index:n.index});let _e=[],de=[];if((dl=ll.safeClone((Va=Oe==null?void 0:Oe.find(X=>(X==null?void 0:X.key)==="formContent"))==null?void 0:Va.contents))==null||dl.forEach(X=>{var ra;Array.isArray(X==null?void 0:X.value)&&((ra=X==null?void 0:X.value)!=null&&ra.find(ea=>{var fe;return(fe=ea==null?void 0:ea.url)==null?void 0:fe.includes(".obj")}))&&(de=X==null?void 0:X.value)}),(de==null?void 0:de.length)>0){const X=(rl=ll.safeClone(de))==null?void 0:rl.filter(ra=>{var ea;return(ea=ra==null?void 0:ra.url)==null?void 0:ea.includes(".obj")});X==null||X.forEach(ra=>{var fe,ka,ha,Ye;const ea=(fe=de==null?void 0:de.filter(ta=>{var va;return(ta==null?void 0:ta.name)===(ra==null?void 0:ra.name)&&((va=ta==null?void 0:ta.url)==null?void 0:va.includes(".mtl"))}))==null?void 0:fe.map(ta=>ta==null?void 0:ta.url);_e.push({objUrl:ra==null?void 0:ra.url,mtlUrls:((ka=de==null?void 0:de.filter(ta=>{var va;return(ta==null?void 0:ta.name)===(ra==null?void 0:ra.name)&&((va=ta==null?void 0:ta.url)==null?void 0:va.includes(".mtl"))}))==null?void 0:ka.length)===1?(Ye=(ha=de==null?void 0:de.filter(ta=>{var va;return(ta==null?void 0:ta.name)===(ra==null?void 0:ra.name)&&((va=ta==null?void 0:ta.url)==null?void 0:va.includes(".mtl"))}))==null?void 0:ha[0])==null?void 0:Ye.url:ea})}),w.setObjUrl(_e)}},aa=(ke,ae,ze)=>{let Oe="";const Me=ae==null?void 0:ae.map(ya=>{var xa;return(xa=ya==null?void 0:ya.value)==null?void 0:xa.pageData});return Me==null||Me.forEach(ya=>{var xa;(ya==null?void 0:ya.name)===(ke==null?void 0:ke[0])&&((xa=ya==null?void 0:ya.compData)==null||xa.forEach(qe=>{var Je;(qe==null?void 0:qe.key)==="formContent"&&((Je=qe==null?void 0:qe.contents)==null||Je.forEach(Ue=>{var _e;(Ue==null?void 0:Ue.prop)===(ke==null?void 0:ke[1])&&(Oe=(Ue==null?void 0:Ue.value)===""?ue.judgeContents((_e=ll.safeClone(Ue))==null?void 0:_e.optionUrl,ze):Ue==null?void 0:Ue.value)}))}))}),Oe},$a=(ke,ae,ze,Oe)=>{var qe,Je;let Me="",ya="";(qe=ll.safeClone(ae))==null||qe.forEach((Ue,_e)=>{Ue!=null&&Ue.includes("[")?ya=ya+Ba.value+ke[_e]:ya=ya===""?ya+Ue:ya+"/"+Ue});let xa=(Je=Oe[ya])==null?void 0:Je.map(Ue=>{var _e;return(_e=Ue==null?void 0:Ue.value)==null?void 0:_e.pageData});return xa==null||xa.forEach(Ue=>{var _e;(Ue==null?void 0:Ue.name)===(ze==null?void 0:ze[0])&&((_e=Ue==null?void 0:Ue.compData)==null||_e.forEach(de=>{var Oa;(de==null?void 0:de.key)==="formContent"&&((Oa=de==null?void 0:de.contents)==null||Oa.forEach(La=>{(La==null?void 0:La.prop)===(ze==null?void 0:ze[1])&&(Me=La==null?void 0:La.value)}))}))}),Me};return e.watch(()=>N==null?void 0:N.value,async()=>{await fa()},{immediate:!0}),e.watch(()=>n.itemData,async()=>{var Oa,La,gl,zl,tl,jl,Pa,Il,Vl,Ma,el,sl,ol,Va,dl,rl,X,ra,ea,fe,ka,ha,Ye;const ke=(Oa=n.itemData)==null?void 0:Oa.find(ta=>(ta==null?void 0:ta.key)==="formContent"),ae=(La=ll.safeClone(n.itemData))==null?void 0:La.find(ta=>(ta==null?void 0:ta.key)==="formButton"),ze=(gl=ll.safeClone(n.itemData))==null?void 0:gl.find(ta=>(ta==null?void 0:ta.key)==="formFlex"),Oe=(zl=ll.safeClone(n.itemData))==null?void 0:zl.find(ta=>(ta==null?void 0:ta.key)==="formWrap"),Me=(tl=ll.safeClone(n.itemData))==null?void 0:tl.find(ta=>(ta==null?void 0:ta.key)==="enableWrap"),ya=(jl=ll.safeClone(n.itemData))==null?void 0:jl.find(ta=>(ta==null?void 0:ta.key)==="textSize"),xa=(Pa=ll.safeClone(n.itemData))==null?void 0:Pa.find(ta=>(ta==null?void 0:ta.key)==="textRGBA"),qe=(Il=ll.safeClone(n.itemData))==null?void 0:Il.find(ta=>(ta==null?void 0:ta.key)==="backGround"),Je=(Vl=ll.safeClone(n.itemData))==null?void 0:Vl.find(ta=>(ta==null?void 0:ta.key)==="backGroundImage");(Oe==null?void 0:Oe.contents)==="纵向"?c.value=!1:c.value=!0;const Ue=Number(ya==null?void 0:ya.contents);b.value=Number.isNaN(Ue)?void 0:Ue,_.value=xa==null?void 0:xa.contents,$.value=qe==null?void 0:qe.contents,F.value=Je==null?void 0:Je.contents;const _e=Me==null?void 0:Me.contents;if(_e===void 0?x.value=ri.BLOCK:typeof _e=="boolean"?x.value=_e?ri.ORDINARY:ri.BLOCK:x.value=_e,Y.value=typeof(ze==null?void 0:ze.contents)!="boolean"?!(!(ze!=null&&ze.contents)===""||((Ma=ze==null?void 0:ze.contents)==null?void 0:Ma.toUpperCase())==="VERTICAL"):ze==null?void 0:ze.contents,((el=ke==null?void 0:ke.contents)==null?void 0:el.length)>0&&Array.isArray(ke==null?void 0:ke.contents)){let ta=n.allMapContents;const va=(ol=(sl=ll.safeClone(ke))==null?void 0:sl.contents)==null?void 0:ol.map((Te,_l)=>{var Mr,Sr,Er,yn,Dr,ur,gn,ln,rn,Sn,Tn,pn,lr;let Ll=(Te==null?void 0:Te.label)??(Te==null?void 0:Te.key)??"";Te==null||Te.type;let Wl=(Te==null?void 0:Te.options)??[];if((Mr=Te==null?void 0:Te.key)!=null&&Mr.includes("$")&&(Ll=(Sr=ll.safeClone(Te==null?void 0:Te.key).split("$"))==null?void 0:Sr[0],((yn=(Er=ll.safeClone(Te==null?void 0:Te.key).split("$"))==null?void 0:Er[1])==null?void 0:yn.length)>0)){const[Ol,Ar]=(ur=(Dr=ll.safeClone(Te==null?void 0:Te.key).split("$"))==null?void 0:Dr[1])==null?void 0:ur.split(/[()]/);(gn=ue.FormType.find(cl=>(cl==null?void 0:cl.key)===Ol))==null||gn.value,((ln=Ar==null?void 0:Ar.split(","))==null?void 0:ln.length)>0&&(Wl=(rn=Ar==null?void 0:Ar.split(","))==null?void 0:rn.map(cl=>({label:cl,value:cl})))}let Kl=Te==null?void 0:Te.options;((Sn=Te==null?void 0:Te.optionUrl)==null?void 0:Sn.selectRelateType)==="自定义绑定"&&(Kl=(pn=(Tn=Te==null?void 0:Te.optionUrl)==null?void 0:Tn.defaultSelect)==null?void 0:pn.map(Ol=>({label:Ol,value:Ol})));let Ql=(Te==null?void 0:Te.menuPath)??[],pr=(Te==null?void 0:Te.groups)??[],Rl=(Te==null?void 0:Te.columns)??[],fr=!1,$r=(Te==null?void 0:Te.isFormColHidden)??!1,Hl="",ar=Te!=null&&Te.value?Te.value:(Kl==null?void 0:Kl.length)>0?(lr=Kl==null?void 0:Kl[0])==null?void 0:lr.value:(Te==null?void 0:Te.value)??"",Vr=!1,Tr="Input";return((Kl==null?void 0:Kl.length)>0||(Ql==null?void 0:Ql.length)>0)&&(Tr="Select"),(Array.isArray(Hl)&&(Hl!=null&&Hl.every(Ol=>(Ol==null?void 0:Ol.name)&&(Ol==null?void 0:Ol.url)))||Array.isArray(ar)&&(ar!=null&&ar.every(Ol=>(Ol==null?void 0:Ol.name)&&(Ol==null?void 0:Ol.url))))&&(Tr="upload"),Te!=null&&Te.isMainUrl&&(Tr="Url"),{label:Ll??"",name:Ll??"t"+_l,prop:Ll??ll.safeClone(Te==null?void 0:Te.key),type:(Te==null?void 0:Te.type)??Tr,value:(Te==null?void 0:Te.type)==="Date"&&ar===""?new Date:ar,id:(Te==null?void 0:Te.id)??_l,contents:(Kl==null?void 0:Kl.length)>0?Kl:Wl??[],width:(Te==null?void 0:Te.width)??1,isLoginUser:fr,config:Te==null?void 0:Te.config,optionUrl:(Te==null?void 0:Te.optionUrl)??Te,isFormColHidden:$r,isHideInForm:(Te==null?void 0:Te.isHideInForm)??!1,signature:Vr,isMain:Te==null?void 0:Te.isMain,required:(Te==null?void 0:Te.required)??!1,isMainUrl:Te==null?void 0:Te.isMainUrl,operable:(Te==null?void 0:Te.operable)??!1,disabled:(Te==null?void 0:Te.disabled)??!1,isSync:Te==null?void 0:Te.isSync,menus:Ql,groups:pr,words:Rl,allSelectionContents:Te==null?void 0:Te.allContents,filterContent:Te==null?void 0:Te.filterContents,isNoClick:(Te==null?void 0:Te.isNoClick)??!1}}),pl=va==null?void 0:va.map(Te=>Te==null?void 0:Te.value);let He="";pl==null||pl.forEach(Te=>{Te!==""&&Te!==void 0&&(He=He===""?Te:He+"/"+Te)}),E.setSelectArray(pl),E.setSelectString(He);let ca=(Va=ll.safeClone(va))==null?void 0:Va.map(Te=>(Te!=null&&Te.value&&ue.IsJson(Te==null?void 0:Te.value)&&Array.isArray(JSON.parse(Te==null?void 0:Te.value))&&(Te.value=JSON.parse(Te.value)),Te)),oa={};ca==null||ca.forEach(Te=>{oa[Te.label]=Te==null?void 0:Te.value}),ca=ca==null?void 0:ca.map(Te=>{var _l,Ll,Wl,Kl,Ql,pr,Rl,fr,$r;if((Te==null?void 0:Te.type)==="Select"&&((_l=Te==null?void 0:Te.allSelectionContents)==null?void 0:_l.length)>0&&(Te.contactValue=oa),(Wl=(Ll=Te==null?void 0:Te.optionUrl)==null?void 0:Ll.menuSelect)!=null&&Wl.some(Hl=>Hl==null?void 0:Hl.includes("["))){let Hl="";Te.optionUrl.oldMenuSelect=(Ql=(Kl=ll.safeClone(Te))==null?void 0:Kl.optionUrl)==null?void 0:Ql.menuSelect,Te.optionUrl.menuSelect=(Rl=(pr=Te==null?void 0:Te.optionUrl)==null?void 0:pr.menuSelect)==null?void 0:Rl.map(ar=>{var Vr,Tr,Fr,Mr,Sr,Er;if(ar!=null&&ar.includes("[")){let yn=(Tr=(Vr=ar==null?void 0:ar.replaceAll("[","").replaceAll("]",""))==null?void 0:Vr.split(":"))==null?void 0:Tr[1];Hl=aa((Fr=ar==null?void 0:ar.replaceAll("[","").replaceAll("]",""))==null?void 0:Fr.split(":"),ta==null?void 0:ta[Fe.value],ta),ar=((Sr=(Mr=ll.safeClone(ca))==null?void 0:Mr.find(Dr=>(Dr==null?void 0:Dr.label)===yn))==null?void 0:Sr.value)||aa((Er=ar==null?void 0:ar.replaceAll("[","").replaceAll("]",""))==null?void 0:Er.split(":"),ta==null?void 0:ta[Fe.value],ta)}return ar}),Hl!==""&&Te.value===""&&(Te.value=$a(Te.optionUrl.menuSelect,Te.optionUrl.oldMenuSelect,(fr=Te==null?void 0:Te.optionUrl)==null?void 0:fr.groupSelect,ta),Array.isArray(Te.value)&&(($r=Te.value)!=null&&$r.every(ar=>ar==null?void 0:ar.url))&&(Te.type="UPLOAD"))}return Te}),s.value=ca,Se.value=((dl=s.value)==null?void 0:dl.every(Te=>Te==null?void 0:Te.disabled))||me.value===Fe.value,U.value=(rl=s.value)==null?void 0:rl.every(Te=>Te==null?void 0:Te.operable),Ee.value=(X=s.value)==null?void 0:X.map(Te=>Te==null?void 0:Te.label);let Za=[],Re=[];if((ra=ll.safeClone(s.value))==null||ra.forEach(Te=>{var _l;Array.isArray(Te==null?void 0:Te.value)&&((_l=Te==null?void 0:Te.value)!=null&&_l.find(Ll=>{var Wl;return(Wl=Ll==null?void 0:Ll.url)==null?void 0:Wl.includes(".obj")}))&&(Re=Te==null?void 0:Te.value)}),(Re==null?void 0:Re.length)>0){const Te=(ea=ll.safeClone(Re))==null?void 0:ea.filter(_l=>{var Ll;return(Ll=_l==null?void 0:_l.url)==null?void 0:Ll.includes(".obj")});Te==null||Te.forEach(_l=>{var Wl,Kl,Ql,pr;const Ll=(Wl=Re==null?void 0:Re.filter(Rl=>{var fr;return(Rl==null?void 0:Rl.name)===(_l==null?void 0:_l.name)&&((fr=Rl==null?void 0:Rl.url)==null?void 0:fr.includes(".mtl"))}))==null?void 0:Wl.map(Rl=>Rl==null?void 0:Rl.url);Za.push({objUrl:_l==null?void 0:_l.url,mtlUrls:((Kl=Re==null?void 0:Re.filter(Rl=>{var fr;return(Rl==null?void 0:Rl.name)===(_l==null?void 0:_l.name)&&((fr=Rl==null?void 0:Rl.url)==null?void 0:fr.includes(".mtl"))}))==null?void 0:Kl.length)===1?(pr=(Ql=Re==null?void 0:Re.filter(Rl=>{var fr;return(Rl==null?void 0:Rl.name)===(_l==null?void 0:_l.name)&&((fr=Rl==null?void 0:Rl.url)==null?void 0:fr.includes(".mtl"))}))==null?void 0:Ql[0])==null?void 0:pr.url:Ll})}),w.setObjUrl(Za)}(fe=ll.safeClone(s.value))==null||fe.forEach(Te=>{var _l,Ll,Wl,Kl,Ql,pr,Rl,fr,$r,Hl,ar,Vr,Tr;if((Ll=(_l=Te==null?void 0:Te.value)==null?void 0:_l.toString())!=null&&Ll.includes(".stl")||(Kl=(Wl=Te==null?void 0:Te.value)==null?void 0:Wl.toString())!=null&&Kl.includes(".STL")||(pr=(Ql=Te==null?void 0:Te.value)==null?void 0:Ql.toString())!=null&&pr.includes(".obj")||(fr=(Rl=Te==null?void 0:Te.value)==null?void 0:Rl.toString())!=null&&fr.includes(".mtl")||(Hl=($r=Te==null?void 0:Te.value)==null?void 0:$r.toString())!=null&&Hl.includes(".urdf")){let Fr={},Mr=[],Sr;Array.isArray(Te==null?void 0:Te.value)?Sr=Te==null?void 0:Te.value:Sr=(ar=Te==null?void 0:Te.value)==null?void 0:ar.split(","),Sr==null||Sr.forEach(Er=>{Er.includes(".mtl")?Mr.push(Er):Fr.blob=Fr.blob==="undefined"?Er:Fr.blob+","+Er}),(Mr==null?void 0:Mr.length)>0&&(Fr.mtlBlobs=Mr),(Tr=(Vr=Object.values(Fr))==null?void 0:Vr[0])!=null&&Tr.includes("http:")}})}else s.value=[];let de=Q.value;if((de==null?void 0:de.length)>0&&(de=de==null?void 0:de.map(ta=>{var pl,He,ca,oa;let va=(pl=ta==null?void 0:ta.key)==null?void 0:pl.split("/");return(n==null?void 0:n.compName)===(va==null?void 0:va[0])&&(He=s.value)!=null&&He.find(Za=>(Za==null?void 0:Za.prop)===(va==null?void 0:va[1]))&&(ta.value=(oa=(ca=s.value)==null?void 0:ca.find(Za=>(Za==null?void 0:Za.prop)===(va==null?void 0:va[1])))==null?void 0:oa.value),ta}),pe.setTableViewContents(de)),n!=null&&n.formRules)g.value=n==null?void 0:n.formRules;else{let ta={};(ka=ll.safeClone(s).value)==null||ka.forEach(va=>{((va==null?void 0:va.isMain)===!0||(va==null?void 0:va.required)===!0)&&(ta[(va==null?void 0:va.prop)??(va==null?void 0:va.name)]=[{required:!0,message:`${(va==null?void 0:va.label)||(va==null?void 0:va.prop)||(va==null?void 0:va.name)}不能为空`}])}),g.value=ta}if(((ha=ae==null?void 0:ae.contents)==null?void 0:ha.length)>0){const ta=[];(Ye=ae==null?void 0:ae.contents)==null||Ye.forEach((va,pl)=>{(va==null?void 0:va.label)!==""&&ta.push({label:(va==null?void 0:va.label)??"",id:(va==null?void 0:va.id)??pl,type:(va==null?void 0:va.type)??"",background:va==null?void 0:va.background})}),W.value=ta}else W.value=[]},{deep:!0,immediate:!0}),e.watch(()=>me.value,ke=>{Se.value=ke===Fe.value},{immediate:!0}),(ke,ae)=>{var qe;const ze=e.resolveComponent("svg-icon"),Oe=e.resolveComponent("el-switch"),Me=e.resolveComponent("el-checkbox"),ya=e.resolveComponent("el-popover"),xa=e.resolveComponent("el-checkbox-group");return e.openBlock(),e.createElementBlock("div",P3,[x.value===e.unref(ri).TEXT?(e.openBlock(),e.createBlock(Tc,{key:0,itemData:a.itemData,compName:a.compName,fields:s.value,textSize:b.value,textColor:_.value,backGround:$.value,backGroundImage:F.value,disabled:Se.value||ie(),"onUpdate:backGroundImage":ba},null,8,["itemData","compName","fields","textSize","textColor","backGround","backGroundImage","disabled"])):x.value===e.unref(ri).BLOCK?(e.openBlock(),e.createBlock(Sf,{key:1,items:(qe=s.value)==null?void 0:qe.map(Je=>({label:Je!=null&&Je.isHideInForm?"":Je==null?void 0:Je.label,value:Je==null?void 0:Je.value,width:(Je==null?void 0:Je.width)??1,field:Je})),textSize:b.value,textColor:_.value,backGround:$.value,backGroundImage:F.value,disabled:Se.value||ie(),"onUpdate:backGroundImage":ba},null,8,["items","textSize","textColor","backGround","backGroundImage","disabled"])):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"form-shadow-box":x.value===e.unref(ri).ORDINARY})},[e.createVNode(ll.ssForm,{rowContents:s.value,formRules:g.value,buttonValue:W.value,isRowFlex:!1,isEnableWrap:!0,textSize:b.value,textColor:_.value,backGround:$.value,backGroundImage:F.value,onOnButtonClick:Aa,onChange:Da,formDisabled:Se.value||ie(),formLabelsOperable:U.value,isButtonRow:c.value,onPreview:Ne,onBlurChange:te,onHandleColEditChange:he,onHandleColTypeChange:ga,onRouteUrl:H,onClickTrigger:L,"onUpdate:backGroundImage":ba},{operateCol:e.withCtx(({renderColumns:Je,formDisabled:Ue,formLabelsOperable:_e})=>[e.createVNode(ya,{title:"选择操作的标签",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:ua},{reference:e.withCtx(()=>[e.createElementVNode("span",j3,[e.createVNode(ze,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})])]),default:e.withCtx(()=>[e.createElementVNode("div",H3,[ae[1]||(ae[1]=e.createElementVNode("div",{class:"group-title"},"表单操作",-1)),e.createVNode(Oe,{"model-value":Ue,"active-text":"禁用","inactive-text":"",onChange:Ae,style:{"margin-right":"8px"}},null,8,["model-value"]),e.createVNode(Oe,{"model-value":_e,"active-text":"编辑所有标签","inactive-text":"",onChange:We},null,8,["model-value"]),ae[2]||(ae[2]=e.createElementVNode("div",{class:"group-title"},"表单列操作",-1)),e.createVNode(xa,{modelValue:Ee.value,"onUpdate:modelValue":ae[0]||(ae[0]=de=>Ee.value=de),style:{height:"100%"},ref_key:"checkboxGroupRef",ref:se,onChange:Ga},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Je,de=>(e.openBlock(),e.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:de.label},[e.createVNode(Me,{value:de.label,style:{width:"100%",marginRight:0}},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(de.label),1)]),_:2},1032,["value"]),e.createVNode(ya,{title:"标签操作",placement:"left",teleported:!1,trigger:"hover"},{reference:e.withCtx(()=>[e.createVNode(ze,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:e.withCtx(()=>{var Oa;return[e.createElementVNode("div",U3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Oa=Object.keys(de))==null?void 0:Oa.filter(La=>{var gl;return(gl=ne.value)==null?void 0:gl.find(zl=>(zl==null?void 0:zl.value)===La)}),La=>{var gl,zl;return e.openBlock(),e.createElementBlock("div",{key:La},[e.createVNode(ll._sfc_main$1,{value:de==null?void 0:de[La],"active-text":(zl=(gl=ne.value)==null?void 0:gl.find(tl=>(tl==null?void 0:tl.value)===La))==null?void 0:zl.label,inactiveText:"",onChange:tl=>la(tl,La,de)},null,8,["value","active-text","onChange"])])}),128))])]}),_:2},1024),e.createElementVNode("span",q3,[e.createVNode(ze,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:2},1032,["modelValue"])])]),_:2},1024)]),_:1},8,["rowContents","formRules","buttonValue","textSize","textColor","backGround","backGroundImage","formDisabled","formLabelsOperable","isButtonRow"])],2)),D.value?(e.openBlock(),e.createBlock(ll.ssFilePreview,{key:3,fileDataList:M.value,onDestroy:Xe},null,8,["fileDataList"])):e.createCommentVNode("",!0),v.value?(e.openBlock(),e.createBlock(wr.ssDialog,{key:4,visible:v.value,onBeforeDestroy:r,style:{height:"700px",width:"1000px"}},{default:e.withCtx(()=>[e.createVNode(So.ThreeViewerHost,{files:d.value,onGetAnimationData:ke.onAnimationData},null,8,["files","onGetAnimationData"])]),_:1},8,["visible"])):e.createCommentVNode("",!0)])}}},xs=Zl._export_sfc(W3,[["__scopeId","data-v-7bb009b3"]]),zo=e.ref(0),Nc=a=>{var l;return!a||(a==null?void 0:a.length)===0?[]:(l=A.cloneDeep(a))==null?void 0:l.map(n=>(zo.value++,n={label:(n==null?void 0:n.label)??"",prop:(n==null?void 0:n.label)==="操作"?"operate":n==null?void 0:n.prop,width:n!=null&&n.width?parseInt(n.width):"",fixed:(n==null?void 0:n.fixed)??void 0,sortable:(n==null?void 0:n.sortable)??!1,align:(n==null?void 0:n.align)??"left",showOverflowTooltip:(n==null?void 0:n.showOverflowTooltip)??!0,isNotDrag:(n==null?void 0:n.isNotDrag)??!1,isEditCol:(n==null?void 0:n.isEditCol)??!1,isOperate:(n==null?void 0:n.isOperate)??!1,id:(n==null?void 0:n.id)??zo.value,children:Nc(n==null?void 0:n.children)},n))},K3=a=>{var r;return(r=A.cloneDeep(a))==null?void 0:r.map(n=>(zo.value++,n={label:(n==null?void 0:n.label)??"",prop:(n==null?void 0:n.label)==="操作"?"operate":n==null?void 0:n.prop,width:n!=null&&n.width?parseInt(n.width):"",fixed:(n==null?void 0:n.fixed)??void 0,sortable:(n==null?void 0:n.sortable)??!1,align:(n==null?void 0:n.align)??"left",showOverflowTooltip:(n==null?void 0:n.showOverflowTooltip)??!0,isNotDrag:(n==null?void 0:n.isNotDrag)??!1,isEditCol:(n==null?void 0:n.isEditCol)??!1,isOperate:(n==null?void 0:n.isOperate)??!1,id:(n==null?void 0:n.id)??zo.value,children:Nc(n==null?void 0:n.children)},n))},Ac=(a,l)=>{var r;return a!=null&&a.find(n=>(n==null?void 0:n.id)===l)?(r=A.cloneDeep(a))==null?void 0:r.filter(t=>(t==null?void 0:t.id)!==l):(a=a==null?void 0:a.map(n=>(n.children=Ac(n==null?void 0:n.children,l),n)),a)},zc=(a,l)=>{var r;return a!=null&&a.find(n=>(n==null?void 0:n.id)===(l==null?void 0:l.id))?(r=A.cloneDeep(a))==null?void 0:r.map(t=>((t==null?void 0:t.id)===(l==null?void 0:l.id)&&(t=l),t)):(a=a==null?void 0:a.map(n=>(n.children=zc(n==null?void 0:n.children,l),n)),a)},Mc=(a,l)=>{var r;return a!=null&&a.find(n=>{var t;return(n==null?void 0:n.id)===((t=l==null?void 0:l.contents)==null?void 0:t.id)})?(r=A.cloneDeep(a))==null?void 0:r.map(t=>{var s;return(t==null?void 0:t.id)===((s=l==null?void 0:l.contents)==null?void 0:s.id)&&(t=l==null?void 0:l.contents),t}):(a=a==null?void 0:a.map(n=>(n.children=Mc(n==null?void 0:n.children,l),n)),a)},Ic=(a,l)=>{var r;return a!=null&&a.find(n=>(n==null?void 0:n.id)===(l==null?void 0:l.id))?(r=A.cloneDeep(a))==null?void 0:r.map(t=>((t==null?void 0:t.id)===(l==null?void 0:l.id)&&(t!=null&&t.children||(t.children=[]),t.children.push(l.contents)),t)):(a=a==null?void 0:a.map(n=>(n.children=Ic(n==null?void 0:n.children,l),n)),a)},or=[{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"}],G3=[{label:"查看",value:"view"},{label:"修改",value:"fix"},{label:"删除",value:"delete"},{label:"三维算例",value:"modelExample"}],Y3=[{label:"新增",value:"add"}],In=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Y3},{key:"background",label:"按钮背景色",type:"Color"}],On=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:G3},{key:"textColor",label:"按钮颜色",type:"Color"}],J3={class:"table-header-child"},X3={class:"table-header-child-main"},Z3={class:"table-header-child-content"},Q3={class:"table-header-child-content-item"},e2={class:"fix-button"},a2={key:0},l2={class:"form-content"},r2={__name:"tableNewChild",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(a,{emit:l}){const r=a,n=l,t=e.ref(!1),s=e.ref(""),v=ue.useTableComp(A.pinia),{tableIndex:f}=A.storeToRefs(v);e.ref(0);const d=e.ref(""),y=e.ref([]),g=e.ref([]),c=E=>{var x;t.value=!0;let w=[];or==null||or.forEach(b=>{let _=A.cloneDeep(f.value)+1;v.setTableIndex(_),w.push({label:b==null?void 0:b.label,name:b==null?void 0:b.label,type:b.type,value:E[b.key],id:f.value,contents:b==null?void 0:b.options})}),E!=null&&E.children&&((x=E==null?void 0:E.children)==null?void 0:x.length)>0&&w.push({children:E==null?void 0:E.children,isFormColHidden:!0}),d.value=E==null?void 0:E.id,y.value=w,g.value=w},D=E=>{n("fixChange",A.cloneDeep(E))},I=E=>{n("deleteChange",A.cloneDeep(E))},k=E=>{t.value=!0;let w=[];or==null||or.forEach(x=>{let b=A.cloneDeep(f.value)+1;v.setTableIndex(b),w.push({label:x==null?void 0:x.label,name:x==null?void 0:x.label,type:x.type,value:"",id:f.value,contents:x==null?void 0:x.options})}),s.value=E==null?void 0:E.id,y.value=w,g.value=w},W=E=>{let w=A.cloneDeep(g.value);w=w==null?void 0:w.map(x=>(x.children||(x.value=E==null?void 0:E[x.name]),x)),g.value=w},M=()=>{var w,x;y.value=g.value;let E={};if(d.value!=="")E.id=d.value,(w=y.value)==null||w.forEach(b=>{const _=or==null?void 0:or.find($=>($==null?void 0:$.label)===(b==null?void 0:b.label));_?E[_.key]=b.value:b!=null&&b.children&&b.children.length>0&&(E.children=b.children)}),t.value=!1,n("fixChange",{contents:A.cloneDeep(E),id:s.value,type:"fix"});else{let b=A.cloneDeep(f.value)+1;v.setTableIndex(b),E.id="id"+f.value,(x=y.value)==null||x.forEach(_=>{const $=or==null?void 0:or.find(F=>(F==null?void 0:F.label)===(_==null?void 0:_.label));$?E[$.key]=_.value:_!=null&&_.children&&_.children.length>0&&(E.children=_.children)}),t.value=!1,n("fixChange",{contents:A.cloneDeep(E),id:s.value,type:"add"})}d.value="",y.value=[],g.value=[]},R=()=>{t.value=!1,d.value="",s.value="",y.value=[],g.value=[]},j=E=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{n("deleteChange",E),Ha.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(E,w)=>{const x=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",J3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r==null?void 0:r.tableChildContents,(b,_)=>(e.openBlock(),e.createElementBlock("div",X3,[e.createElementVNode("div",Z3,[e.createElementVNode("div",Q3,e.toDisplayString(b.label),1),e.createElementVNode("div",e2,[e.createVNode(x,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:$=>k(b)},null,8,["onClick"]),e.createVNode(x,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:$=>c(b)},null,8,["onClick"]),e.createVNode(x,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:$=>j(b)},null,8,["onClick"])])]),b!=null&&b.children&&b.children.length>0?(e.openBlock(),e.createElementBlock("div",a2,[e.createVNode(Oc,{tableChildContents:b==null?void 0:b.children,onDeleteChange:I,onFixChange:D},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),256)),e.createVNode(wr.ssDialog,{visible:t.value,onBeforeDestroy:R,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",l2,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:W},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:R,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:M},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},n2=Zl._export_sfc(r2,[["__scopeId","data-v-e0fef72d"]]),i2={class:"table-header-child"},o2={class:"table-header-child-main"},t2={class:"table-header-child-content"},s2={class:"table-header-child-content-item"},c2={class:"fix-button"},u2={key:0},d2={class:"form-content"},p2={class:"dialog-footer"},f2={__name:"tableChildren",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(a,{emit:l}){const r=a,n=l,t=e.ref(!1),s=e.ref(""),v=ue.useTableComp(A.pinia),{tableIndex:f}=A.storeToRefs(v),d=e.ref(""),y=e.ref([]),g=e.ref([]),c=E=>{n("fixChange",A.cloneDeep(E))},D=E=>{var x;t.value=!0;let w=[];or==null||or.forEach(b=>{let _=A.cloneDeep(f.value)+1;v.setTableIndex(_),w.push({label:b==null?void 0:b.label,name:b==null?void 0:b.label,type:b.type,value:E[b.key],id:f.value,contents:b==null?void 0:b.options})}),E!=null&&E.children&&((x=E==null?void 0:E.children)==null?void 0:x.length)>0&&w.push({children:E==null?void 0:E.children,isFormColHidden:!0}),d.value=E==null?void 0:E.id,y.value=w,g.value=w},I=E=>{t.value=!0;let w=[];or==null||or.forEach(x=>{let b=A.cloneDeep(f.value)+1;v.setTableIndex(b),w.push({label:x==null?void 0:x.label,name:x==null?void 0:x.label,type:x.type,value:"",id:f.value,contents:x==null?void 0:x.options})}),s.value=E==null?void 0:E.id,y.value=w,g.value=w},k=E=>{let w=A.cloneDeep(g.value);w=w==null?void 0:w.map(x=>(x.children||(x.value=E==null?void 0:E[x.name]),x)),g.value=w},W=()=>{var w,x;y.value=g.value;let E={};if(d.value!=="")E.id=d.value,(w=y.value)==null||w.forEach(b=>{const _=or==null?void 0:or.find($=>($==null?void 0:$.label)===(b==null?void 0:b.label));_?E[_.key]=b.value:b!=null&&b.children&&b.children.length>0&&(E.children=b.children)}),t.value=!1,n("fixChange",{contents:A.cloneDeep(E),id:s.value,type:"fix"});else{let b=A.cloneDeep(f.value)+1;v.setTableIndex(b),E.id="idChild"+f.value,(x=y.value)==null||x.forEach(_=>{const $=or==null?void 0:or.find(F=>(F==null?void 0:F.label)===(_==null?void 0:_.label));$?E[$.key]=_.value:_!=null&&_.children&&_.children.length>0&&(E.children=_.children)}),t.value=!1,n("fixChange",{contents:A.cloneDeep(E),id:s.value,type:"add"})}d.value="",y.value=[],g.value=[]},M=()=>{t.value=!1,d.value="",s.value="",y.value=[],g.value=[]},R=E=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{n("deleteChange",E),Ha.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},j=E=>{n("deleteChange",E)};return(E,w)=>{const x=e.resolveComponent("svg-icon"),b=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",i2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r==null?void 0:r.tableChildContents,(_,$)=>(e.openBlock(),e.createElementBlock("div",o2,[e.createElementVNode("div",t2,[e.createElementVNode("div",s2,e.toDisplayString(_.label),1),e.createElementVNode("div",c2,[e.createVNode(x,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:F=>I(_)},null,8,["onClick"]),e.createVNode(x,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:F=>D(_)},null,8,["onClick"]),e.createVNode(x,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:F=>R(_)},null,8,["onClick"])])]),_!=null&&_.children&&_.children.length>0?(e.openBlock(),e.createElementBlock("div",u2,[e.createVNode(n2,{tableChildContents:_==null?void 0:_.children,onDeleteChange:j,onFixChange:c},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),256)),e.createVNode(wr.ssDialog,{visible:t.value,onBeforeDestroy:M,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",d2,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:k},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",p2,[e.createVNode(b,{onClick:M,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>w[0]||(w[0]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[0]}),e.createVNode(b,{class:"ok-button button",onClick:W,id:"themeButton"},{default:e.withCtx(()=>w[1]||(w[1]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},Oc=Zl._export_sfc(f2,[["__scopeId","data-v-ebd68fa1"]]),h2={class:"table-operate-content"},v2={class:"table-operate-item"},m2={class:"operate-title"},y2={class:"operate-content"},g2={class:"fix-content"},b2={class:"fix-content-label"},k2={class:"fix-button"},x2={key:0},w2={class:"operate-title"},_2={class:"operate-content"},S2={class:"fix-content"},E2={class:"fix-content-label"},C2={class:"fix-button"},D2={class:"operate-title"},B2={class:"operate-content"},T2={class:"fix-content"},N2={class:"fix-content-label"},A2={class:"fix-button"},z2={class:"operate-title"},M2={class:"operate-content"},I2={class:"fix-content"},O2={class:"fix-content-label"},L2={class:"fix-button"},R2={class:"operate-content"},$2={style:{display:"flex","justify-content":"space-between"}},V2={class:"form-content"},F2={class:"dialog-footer"},P2={class:"form-content"},j2={class:"dialog-footer"},H2={class:"form-content"},U2={class:"dialog-footer"},q2={class:"form-content"},W2={class:"dialog-footer"},K2={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const r=a,n=l,t=e.ref([]),s=e.ref(!1),v=e.ref(!1),f=e.ref([]),d=e.ref(!1),y=e.ref([]),g=e.ref(!1),c=e.ref([]),D=e.ref(""),I=e.ref(""),k=e.ref([]),W=e.ref([]),M=e.ref([]),R=e.ref([]),j=e.ref(!1),E=e.ref([]),w=e.ref([]),x=e.ref(0),b=e.ref([]),_=e.ref([]),$=e.ref([]),F=()=>{j.value=!0;let L=[];In==null||In.forEach(H=>{x.value++,L.push({label:H==null?void 0:H.label,name:H==null?void 0:H.label,type:H.type,value:(H==null?void 0:H.key)==="background"?"var(--ssComponent-primary-color)":"",id:x.value,contents:H==null?void 0:H.options})}),E.value=L,w.value=L},Y=()=>{var H,J,ve;v.value=!0;let L=[];(ve=(J=(H=ue.FormContent)==null?void 0:H.find(he=>(he==null?void 0:he.key)==="Input"))==null?void 0:J.value)==null||ve.forEach(he=>{x.value++,L.push({label:he==null?void 0:he.label,name:(he==null?void 0:he.name)||(he==null?void 0:he.label),type:he.type,value:(he==null?void 0:he.label)==="类型"?"Input":"",id:x.value,contents:he==null?void 0:he.options})}),b.value=L,_.value=L},oe=L=>{L||(b.value=_.value)},ye=async L=>{var H,J,ve,he,ga,la,te,ba,Ne,Xe,Aa,Da;if((L==null?void 0:L.类型)!==((J=(H=_.value)==null?void 0:H.find(aa=>(aa==null?void 0:aa.label)==="类型"))==null?void 0:J.value)){let aa=[],$a=await((ga=(he=(ve=ue.FormContent)==null?void 0:ve.find(ke=>(ke==null?void 0:ke.key)===((L==null?void 0:L.类型)===""?"Input":L==null?void 0:L.类型)))==null?void 0:he.value)==null?void 0:ga.value)?await((Xe=(Ne=(ba=ue.FormContent)==null?void 0:ba.find(ke=>(ke==null?void 0:ke.key)===((L==null?void 0:L.类型)===""?"Input":L==null?void 0:L.类型)))==null?void 0:Ne.value)==null?void 0:Xe.value):(te=(la=ue.FormContent)==null?void 0:la.find(ke=>(ke==null?void 0:ke.key)===((L==null?void 0:L.类型)===""?"Input":L==null?void 0:L.类型)))==null?void 0:te.value;if($a==null||$a.forEach(ke=>{x.value++,aa.push({label:ke==null?void 0:ke.label,name:(ke==null?void 0:ke.name)||(ke==null?void 0:ke.label),type:ke.type,value:ke!=null&&ke.属性名?(L==null?void 0:L.prop)||(L==null?void 0:L.name)||(L==null?void 0:L.label):(L==null?void 0:L[ke.label])??"",id:x.value,contents:ke==null?void 0:ke.options,prop:(ke==null?void 0:ke.prop)||(ke==null?void 0:ke.name)||(ke==null?void 0:ke.label)})}),L!=null&&L.菜单选项&&((Aa=L==null?void 0:L.菜单选项)==null?void 0:Aa.length)>0){const ke=await ue.menuToContentType(L==null?void 0:L.菜单选项);aa=aa==null?void 0:aa.map(ae=>((ae==null?void 0:ae.name)==="组信息选项"&&(ae.contents=ke),ae))}_.value=await ue.selectToBase(A.cloneDeep(aa)),b.value=await ue.selectToBase(A.cloneDeep(aa))}else{let aa=A.cloneDeep(b.value);if(aa=aa==null?void 0:aa.map($a=>($a.value=L==null?void 0:L[$a.name],$a)),L!=null&&L.菜单选项&&((Da=L==null?void 0:L.菜单选项)==null?void 0:Da.length)>0){const $a=await ue.menuToContentType(L==null?void 0:L.菜单选项);aa=aa==null?void 0:aa.map(ke=>((ke==null?void 0:ke.name)==="组信息选项"&&(ke.contents=$a),ke))}aa=ue.formToOptionsContents(aa),_.value=await ue.selectToBase(A.cloneDeep(aa))}},Ie=async L=>{await ye(L),b.value=_.value},V=(L,H)=>{if((H==null?void 0:H.type)=="Select"&&(L==null?void 0:L.key)==="selectRelateType"){const J=H==null?void 0:H.optionUrl;return(J==null?void 0:J.selectRelateType)||H[L.key]}if((H==null?void 0:H.type)=="Select"&&(L==null?void 0:L.key)==="menuSelect"){const J=H==null?void 0:H.optionUrl;return(J==null?void 0:J.menuSelect)||H[L.key]}if((H==null?void 0:H.type)=="Select"&&(L==null?void 0:L.key)==="groupSelect"){const J=H==null?void 0:H.optionUrl;return(J==null?void 0:J.groupSelect)||H[L.key]}if((H==null?void 0:H.type)=="Select"&&(L==null?void 0:L.key)==="originalContent")return(H==null?void 0:H.value)||H[L.key];if((H==null?void 0:H.type)=="Select"&&(L==null?void 0:L.key)==="multiple"){const J=H[L.key];return Xs(J)?J:L.default}return(L==null?void 0:L.label)==="类型"&&H[L.key]===""?"Input":(L==null?void 0:L.key)==="isFormColHidden"&&!H[L.key]?!1:H[L.key]},pe=async L=>{var ve,he,ga,la,te,ba,Ne,Xe,Aa;v.value=!0;let H=[];const J=await((ga=(he=(ve=ue.FormContent)==null?void 0:ve.find(Da=>(Da==null?void 0:Da.key)===((L==null?void 0:L.type)===""?"Input":L==null?void 0:L.type)))==null?void 0:he.value)==null?void 0:ga.value)?await((Xe=(Ne=(ba=ue.FormContent)==null?void 0:ba.find(Da=>(Da==null?void 0:Da.key)===((L==null?void 0:L.type)===""?"Input":L==null?void 0:L.type)))==null?void 0:Ne.value)==null?void 0:Xe.value):(te=(la=ue.FormContent)==null?void 0:la.find(Da=>(Da==null?void 0:Da.key)===((L==null?void 0:L.type)===""?"Input":L==null?void 0:L.type)))==null?void 0:te.value;if(J==null||J.forEach(Da=>{x.value++,H.push({label:Da==null?void 0:Da.label,name:(Da==null?void 0:Da.name)||(Da==null?void 0:Da.label),type:Da.type,value:(Da==null?void 0:Da.label)==="属性名"?(L==null?void 0:L.prop)||(L==null?void 0:L.name)||(L==null?void 0:L.label):V(Da,L),id:x.value,contents:Da==null?void 0:Da.options})}),L!=null&&L.menuSelect&&((Aa=L==null?void 0:L.menuSelect)==null?void 0:Aa.length)>0){const Da=await ue.menuToContentType(L==null?void 0:L.menuSelect);H=H==null?void 0:H.map(aa=>((aa==null?void 0:aa.name)==="组信息选项"&&(aa.contents=Da),aa))}D.value=L==null?void 0:L.id,b.value=await ue.selectToBase(ue.formToOptionsContents(H)),_.value=await ue.selectToBase(ue.formToOptionsContents(H))},Q=L=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var H,J;$.value=(H=A.cloneDeep($.value))==null?void 0:H.filter(ve=>(ve==null?void 0:ve.id)!==(L==null?void 0:L.id)),n("change",(J=A.cloneDeep(r.originalItemContents))==null?void 0:J.map(ve=>((ve==null?void 0:ve.key)==="tableToForm"&&(ve.contents=$.value),ve))),Ha.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},ce=()=>{v.value=!1,b.value=[],D.value=""},Be=async()=>{var ve,he,ga,la,te,ba,Ne,Xe,Aa,Da;b.value=_.value;let L={};D.value!==""?L.id=D.value:(x.value++,L.id="id"+x.value);let H=await((ga=(he=(ve=ue.FormContent)==null?void 0:ve.find(aa=>{var $a,ke;return(aa==null?void 0:aa.key)===(((ke=($a=b.value)==null?void 0:$a.find(ae=>(ae==null?void 0:ae.label)==="类型"))==null?void 0:ke.value)??"label")}))==null?void 0:he.value)==null?void 0:ga.value)??((te=(la=ue.FormContent)==null?void 0:la.find(aa=>{var $a,ke;return(aa==null?void 0:aa.key)===(((ke=($a=b.value)==null?void 0:$a.find(ae=>(ae==null?void 0:ae.label)==="类型"))==null?void 0:ke.value)??"label")}))==null?void 0:te.value);if((ba=b.value)==null||ba.forEach(aa=>{const $a=H==null?void 0:H.find(ke=>(ke==null?void 0:ke.label)===(aa==null?void 0:aa.label));$a&&(L[$a.key]=aa.value)}),L.name=L.label,(Ne=$.value)!=null&&Ne.find(aa=>aa.id===L.id))$.value=(Xe=$.value)==null?void 0:Xe.map(aa=>(aa.id===L.id&&(aa=L),aa));else{let aa=A.cloneDeep($.value);$.value||($.value=[]),aa.push(L),$.value=aa}$.value=$.value.map(({id:aa,...$a})=>$a),v.value=!1,D.value="";let J=A.cloneDeep(r.originalItemContents);(Aa=A.cloneDeep(r.originalItemContents))!=null&&Aa.find(aa=>(aa==null?void 0:aa.key)==="tableToForm")?J=(Da=A.cloneDeep(r.originalItemContents))==null?void 0:Da.map(aa=>((aa==null?void 0:aa.key)==="tableToForm"&&(aa.contents=$.value),aa)):J.push({key:"tableToForm",contents:$.value}),n("change",J)},Ve=L=>{j.value=!0;let H=[];In==null||In.forEach(J=>{x.value++,H.push({label:J==null?void 0:J.label,name:J==null?void 0:J.label,type:J.type,value:L[J.key],id:x.value,contents:J==null?void 0:J.options})}),D.value=L==null?void 0:L.id,E.value=H,w.value=H};e.watch(()=>g.value,()=>{var H,J;let L=A.cloneDeep(r.originalItemContents);(H=A.cloneDeep(r.originalItemContents))!=null&&H.find(ve=>(ve==null?void 0:ve.key)==="page")?L=(J=A.cloneDeep(r.originalItemContents))==null?void 0:J.map(ve=>((ve==null?void 0:ve.key)==="page"&&(ve.contents=g.value),ve)):L.push({key:"page",contents:g.value}),n("change",L)},{deep:!0});const me=L=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var H,J;W.value=(H=A.cloneDeep(W.value))==null?void 0:H.filter(ve=>(ve==null?void 0:ve.id)!==(L==null?void 0:L.id)),n("change",(J=A.cloneDeep(r.originalItemContents))==null?void 0:J.map(ve=>((ve==null?void 0:ve.key)==="extraButton"&&(ve.contents=W.value),ve))),Ha.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},N=()=>{var J,ve,he,ga,la;E.value=w.value;let L={};if(D.value!==""?L.id=D.value:(x.value++,L.id="id"+x.value),(J=E.value)==null||J.forEach(te=>{const ba=In==null?void 0:In.find(Ne=>(Ne==null?void 0:Ne.label)===(te==null?void 0:te.label));ba?L[ba.key]=te.value:te!=null&&te.children&&te.children.length>0&&(L.children=te.children)}),(ve=W.value)!=null&&ve.find(te=>te.id===L.id))W.value=(he=W.value)==null?void 0:he.map(te=>(te.id===L.id&&(te=L),te));else{let te=A.cloneDeep(W.value)??[];te.push(L),W.value=te}j.value=!1,D.value="";let H=A.cloneDeep(r.originalItemContents);(ga=A.cloneDeep(r.originalItemContents))!=null&&ga.find(te=>(te==null?void 0:te.key)==="extraButton")?H=(la=A.cloneDeep(r.originalItemContents))==null?void 0:la.map(te=>((te==null?void 0:te.key)==="extraButton"&&(te.contents=W.value),te)):H.push({key:"extraButton",contents:W.value}),n("change",H)},se=L=>{let H=A.cloneDeep(w.value);H=H==null?void 0:H.map(J=>(J.children||(J.value=L==null?void 0:L[J.name]),J)),w.value=H},U=()=>{j.value=!1,E.value=[],D.value=""},Se=L=>{d.value=!0;let H=[];On==null||On.forEach(J=>{x.value++,H.push({label:J==null?void 0:J.label,name:J==null?void 0:J.label,type:J.type,value:L[J.key],id:x.value,contents:J==null?void 0:J.options})}),D.value=L==null?void 0:L.id,M.value=H,R.value=H},Le=L=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var H,J;k.value=(H=A.cloneDeep(k.value))==null?void 0:H.filter(ve=>(ve==null?void 0:ve.id)!==(L==null?void 0:L.id)),n("change",(J=A.cloneDeep(r.originalItemContents))==null?void 0:J.map(ve=>((ve==null?void 0:ve.key)==="rowButton"&&(ve.contents=k.value),ve))),Ha.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},Fe=()=>{s.value=!0;let L=[];or==null||or.forEach(H=>{x.value++,L.push({label:H==null?void 0:H.label,name:H==null?void 0:H.label,type:H.type,value:"",id:x.value,contents:H==null?void 0:H.options})}),y.value=L,c.value=L},ia=()=>{d.value=!0;let L=[];On==null||On.forEach(H=>{x.value++,L.push({label:H==null?void 0:H.label,name:H==null?void 0:H.label,type:H.type,value:"",id:x.value,contents:H==null?void 0:H.options})}),M.value=L,R.value=L},Ba=L=>{let H=A.cloneDeep(R.value);H=H==null?void 0:H.map(J=>(J.children||(J.value=L==null?void 0:L[J.name]),J)),R.value=H},ee=()=>{var J,ve,he,ga,la;M.value=R.value;let L={};if(D.value!==""?L.id=D.value:(x.value++,L.id="id"+x.value),(J=M.value)==null||J.forEach(te=>{const ba=On==null?void 0:On.find(Ne=>(Ne==null?void 0:Ne.label)===(te==null?void 0:te.label));ba?L[ba.key]=te.value:te!=null&&te.children&&te.children.length>0&&(L.children=te.children)}),(ve=k.value)!=null&&ve.find(te=>te.id===L.id))k.value=(he=k.value)==null?void 0:he.map(te=>(te.id===L.id&&(te=L),te));else{let te=A.cloneDeep(k.value);te.push(L),k.value=te}d.value=!1,D.value="";let H=A.cloneDeep(r.originalItemContents);(ga=A.cloneDeep(r.originalItemContents))!=null&&ga.find(te=>(te==null?void 0:te.key)==="rowButton")?H=(la=A.cloneDeep(r.originalItemContents))==null?void 0:la.map(te=>((te==null?void 0:te.key)==="rowButton"&&(te.contents=k.value),te)):H.push({key:"rowButton",contents:k.value}),n("change",H)},da=()=>{d.value=!1,D.value="",R.value=[],M.value=[]},ie=L=>{s.value=!0;let H=[];or==null||or.forEach(J=>{x.value++,H.push({label:J==null?void 0:J.label,name:J==null?void 0:J.label,type:J.type,value:"",id:x.value,contents:J==null?void 0:J.options})}),y.value=H,I.value=L==null?void 0:L.id,c.value=H},fa=L=>{var H;f.value=Ac(A.cloneDeep(f.value),L==null?void 0:L.id),n("change",(H=A.cloneDeep(r.originalItemContents))==null?void 0:H.map(J=>{var ve;return(J==null?void 0:J.key)==="header"&&(J.contents=(ve=f.value)!=null&&ve.some(he=>he==null?void 0:he.children)?[f.value]:f.value),J}))},Ee=L=>{var J,ve,he;L.type==="fix"?L.id!==""?f.value=Mc(f.value,L):f.value=zc(f.value,L==null?void 0:L.contents):f.value=Ic(f.value,L),f.value=(J=f.value)!=null&&J.some(ga=>ga==null?void 0:ga.children)?[f.value]:f.value,D.value="";let H=A.cloneDeep(r.originalItemContents);(ve=A.cloneDeep(r.originalItemContents))!=null&&ve.find(ga=>(ga==null?void 0:ga.key)==="header")?H=(he=A.cloneDeep(r.originalItemContents))==null?void 0:he.map(ga=>((ga==null?void 0:ga.key)==="header"&&(ga.contents=f.value),ga)):H.push({key:"header",contents:f.value}),n("change",H)},ne=L=>{var J;s.value=!0;let H=[];or==null||or.forEach(ve=>{x.value++,H.push({label:ve==null?void 0:ve.label,name:ve==null?void 0:ve.label,type:ve.type,value:L[ve.key],id:x.value,contents:ve==null?void 0:ve.options})}),L!=null&&L.children&&((J=L==null?void 0:L.children)==null?void 0:J.length)>0&&H.push({children:L==null?void 0:L.children,isFormColHidden:!0}),D.value=L==null?void 0:L.id,I.value="",y.value=H,c.value=H},Ae=L=>{let H=A.cloneDeep(c.value);H=H==null?void 0:H.map(J=>(J.children||(J.value=L==null?void 0:L[J.name]),J)),c.value=H},We=()=>{s.value=!1,D.value="",I.value="",c.value=[]},ua=()=>{var J,ve,he,ga,la,te;y.value=c.value;let L={};if(D.value!==""?L.id=D.value:(x.value++,L.id="id"+x.value),(J=y.value)==null||J.forEach(ba=>{const Ne=or==null?void 0:or.find(Xe=>(Xe==null?void 0:Xe.label)===(ba==null?void 0:ba.label));Ne?L[Ne.key]=ba.value:ba!=null&&ba.children&&ba.children.length>0&&(L.children=ba.children)}),(ve=f.value)!=null&&ve.find(ba=>ba.id===L.id))f.value=(he=f.value)==null?void 0:he.map(ba=>(ba.id===L.id&&(ba=L),ba));else{let ba=A.cloneDeep(f.value)??[];I.value===""?ba.push(L):ba=ba==null?void 0:ba.map(Ne=>(Ne.id===I.value&&(Ne.children||(Ne.children=[]),Ne.children.push(L)),Ne)),f.value=ba}f.value=(ga=f.value)!=null&&ga.some(ba=>ba==null?void 0:ba.children)?[f.value]:f.value,s.value=!1,D.value="",I.value="";let H=A.cloneDeep(r.originalItemContents);(la=A.cloneDeep(r.originalItemContents))!=null&&la.find(ba=>(ba==null?void 0:ba.key)==="header")?H=(te=A.cloneDeep(r.originalItemContents))==null?void 0:te.map(ba=>((ba==null?void 0:ba.key)==="header"&&(ba.contents=f.value),ba)):H.push({key:"header",contents:f.value}),n("change",H)},Ga=L=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var H,J;f.value=(H=A.cloneDeep(f.value))==null?void 0:H.filter(ve=>(ve==null?void 0:ve.id)!==(L==null?void 0:L.id)),n("change",(J=A.cloneDeep(r.originalItemContents))==null?void 0:J.map(ve=>{var he;return(ve==null?void 0:ve.key)==="header"&&(ve.contents=(he=f.value)!=null&&he.some(ga=>ga==null?void 0:ga.children)?[f.value]:f.value),ve})),Ha.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return e.watch(()=>r.originalItemContents,()=>{var L,H,J,ve,he,ga,la,te,ba,Ne,Xe,Aa,Da,aa,$a,ke,ae,ze,Oe;if(!(!r.originalItemContents||r.originalItemContents.length===0))if(t.value=A.cloneDeep(r.originalItemContents),f.value=(H=(L=t.value)==null?void 0:L.find(Me=>(Me==null?void 0:Me.key)==="header"))==null?void 0:H.contents,k.value=(ve=(J=t.value)==null?void 0:J.find(Me=>(Me==null?void 0:Me.key)==="rowButton"))==null?void 0:ve.contents,W.value=(ga=(he=t.value)==null?void 0:he.find(Me=>(Me==null?void 0:Me.key)==="extraButton"))==null?void 0:ga.contents,g.value=(te=(la=t.value)==null?void 0:la.find(Me=>(Me==null?void 0:Me.key)==="page"))!=null&&te.contents?!!((Ne=(ba=t.value)==null?void 0:ba.find(Me=>(Me==null?void 0:Me.key)==="page"))!=null&&Ne.contents):!1,$.value=(Aa=(Xe=t.value)==null?void 0:Xe.find(Me=>(Me==null?void 0:Me.key)==="tableToForm"))==null?void 0:Aa.contents,f.value=(Da=f.value)==null?void 0:Da.map((Me,ya)=>(Array.isArray(Me)?Me=K3(Me):Me={label:(Me==null?void 0:Me.label)??"",prop:(Me==null?void 0:Me.label)==="操作"?"operate":Me==null?void 0:Me.prop,width:Me!=null&&Me.width?parseInt(Me.width):"",fixed:(Me==null?void 0:Me.fixed)??void 0,sortable:(Me==null?void 0:Me.sortable)??!1,align:(Me==null?void 0:Me.align)??"left",showOverflowTooltip:(Me==null?void 0:Me.showOverflowTooltip)??!0,isNotDrag:(Me==null?void 0:Me.isNotDrag)??!1,isEditCol:(Me==null?void 0:Me.isEditCol)??!1,isOperate:(Me==null?void 0:Me.isOperate)??!1,id:(Me==null?void 0:Me.id)??ya,formMenuSelect:(Me==null?void 0:Me.formMenuSelect)??void 0,groupSelect:(Me==null?void 0:Me.groupSelect)??void 0},Me)),f.value=(aa=f.value)!=null&&aa.every(Me=>Array.isArray(Me))?($a=f.value)==null?void 0:$a[0]:f.value,k.value=(ke=k.value)==null?void 0:ke.map((Me,ya)=>Me={label:(Me==null?void 0:Me.label)??"",type:(Me==null?void 0:Me.type)??"",textColor:(Me==null?void 0:Me.textColor)??"#000000",id:(Me==null?void 0:Me.id)??ya}),W.value=(ae=W.value)==null?void 0:ae.map((Me,ya)=>Me={label:(Me==null?void 0:Me.label)??"",type:(Me==null?void 0:Me.type)??"",background:(Me==null?void 0:Me.background)??"var(--ssComponent-primary-color)",id:(Me==null?void 0:Me.id)??ya}),$.value)$.value=(Oe=$.value)==null?void 0:Oe.map(Me=>{x.value++;let ya=Me;return ya.id=x.value,ya});else{let Me=[];const ya=(ze=ue.getColumnChild(A.cloneDeep(f.value)))==null?void 0:ze.filter(xa=>(xa==null?void 0:xa.prop)!=="operate");ya==null||ya.forEach(xa=>{var qe;x.value++,Me.push({label:xa==null?void 0:xa.label,name:(xa==null?void 0:xa.prop)||(xa==null?void 0:xa.label),type:xa!=null&&xa.groupSelect?"Select":"Input",value:"",id:x.value,contents:xa==null?void 0:xa.options,menuSelect:xa==null?void 0:xa.formMenuSelect,groupSelect:(qe=xa==null?void 0:xa.groupSelect)==null?void 0:qe.split(":"),selectRelateType:"关联绑定列"})}),$.value=Me}},{deep:!0,immediate:!0}),(L,H)=>{const J=e.resolveComponent("svg-icon"),ve=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",h2,[e.createElementVNode("div",v2,[e.createElementVNode("div",m2,[H[2]||(H[2]=e.createElementVNode("div",null,e.toDisplayString("表头"),-1)),e.createVNode(ve,{class:"icon-content",onClick:Fe,id:"themeButton"},{icon:e.withCtx(()=>[e.createVNode(J,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[H[1]||(H[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",y2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(he,ga)=>(e.openBlock(),e.createElementBlock("div",{key:ga},[e.createElementVNode("div",g2,[e.createElementVNode("div",b2,e.toDisplayString(he==null?void 0:he.label),1),e.createElementVNode("div",k2,[e.createVNode(J,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:la=>ie(he)},null,8,["onClick"]),e.createVNode(J,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:la=>ne(he)},null,8,["onClick"]),e.createVNode(J,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:la=>Ga(he)},null,8,["onClick"])])]),he!=null&&he.children&&he.children.length>0?(e.openBlock(),e.createElementBlock("div",x2,[e.createVNode(Oc,{tableChildContents:he==null?void 0:he.children,onDeleteChange:fa,onFixChange:Ee},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),128))]),e.createElementVNode("div",w2,[H[4]||(H[4]=e.createElementVNode("div",null,e.toDisplayString("行内按钮"),-1)),e.createVNode(ve,{class:"icon-content",id:"themeButton",onClick:ia},{icon:e.withCtx(()=>[e.createVNode(J,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[H[3]||(H[3]=e.createTextVNode(" 新增 "))]),_:1,__:[3]})]),e.createElementVNode("div",_2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(he,ga)=>(e.openBlock(),e.createElementBlock("div",{key:ga},[e.createElementVNode("div",S2,[e.createElementVNode("div",E2,e.toDisplayString(he==null?void 0:he.label),1),e.createElementVNode("div",C2,[e.createVNode(J,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:la=>Se(he)},null,8,["onClick"]),e.createVNode(J,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:la=>Le(he)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",D2,[H[6]||(H[6]=e.createElementVNode("div",null,e.toDisplayString("表外按钮"),-1)),e.createVNode(ve,{class:"icon-content",id:"themeButton",onClick:F},{icon:e.withCtx(()=>[e.createVNode(J,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[H[5]||(H[5]=e.createTextVNode(" 新增 "))]),_:1,__:[5]})]),e.createElementVNode("div",B2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(W.value,(he,ga)=>(e.openBlock(),e.createElementBlock("div",{key:ga},[e.createElementVNode("div",T2,[e.createElementVNode("div",N2,e.toDisplayString(he==null?void 0:he.label),1),e.createElementVNode("div",A2,[e.createVNode(J,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:la=>Ve(he)},null,8,["onClick"]),e.createVNode(J,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:la=>me(he)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",z2,[H[8]||(H[8]=e.createElementVNode("div",null,e.toDisplayString("表格弹框字段设置"),-1)),e.createVNode(ve,{class:"icon-content",id:"themeButton",onClick:Y},{icon:e.withCtx(()=>[e.createVNode(J,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[H[7]||(H[7]=e.createTextVNode(" 新增 "))]),_:1,__:[7]})]),e.createElementVNode("div",M2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($.value,(he,ga)=>(e.openBlock(),e.createElementBlock("div",{key:ga},[e.createElementVNode("div",I2,[e.createElementVNode("div",O2,e.toDisplayString(he==null?void 0:he.label),1),e.createElementVNode("div",L2,[e.createVNode(J,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:la=>pe(he)},null,8,["onClick"]),e.createVNode(J,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:la=>Q(he)},null,8,["onClick"])])])]))),128))]),H[10]||(H[10]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("分页"))],-1)),e.createElementVNode("div",R2,[e.createElementVNode("div",$2,[H[9]||(H[9]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否分页"),-1)),e.createVNode(ll._sfc_main$1,{modelValue:g.value,"onUpdate:modelValue":H[0]||(H[0]=he=>g.value=he)},null,8,["modelValue"])])])]),e.createVNode(wr.ssDialog,{visible:s.value,onBeforeDestroy:We,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",V2,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:Ae},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",F2,[e.createVNode(ve,{onClick:We,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>H[11]||(H[11]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[11]}),e.createVNode(ve,{class:"ok-button button",onClick:ua,id:"themeButton"},{default:e.withCtx(()=>H[12]||(H[12]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible"]),e.createVNode(wr.ssDialog,{visible:d.value,onBeforeDestroy:da,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",P2,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:M.value,key:M.value,isEnableWrap:!0,onChange:Ba},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",j2,[e.createVNode(ve,{onClick:da,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>H[13]||(H[13]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[13]}),e.createVNode(ve,{class:"ok-button button",onClick:ee,id:"themeButton"},{default:e.withCtx(()=>H[14]||(H[14]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible"]),e.createVNode(wr.ssDialog,{visible:j.value,onBeforeDestroy:U,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",H2,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:E.value,key:E.value,isEnableWrap:!0,onChange:se},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",U2,[e.createVNode(ve,{onClick:U,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>H[15]||(H[15]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[15]}),e.createVNode(ve,{class:"ok-button button",onClick:N,id:"themeButton"},{default:e.withCtx(()=>H[16]||(H[16]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[16]})])]),_:1},8,["visible"]),e.createVNode(wr.ssDialog,{visible:v.value,onBeforeDestroy:ce,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",q2,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:b.value,key:b.value,isEnableWrap:!0,onChange:ye,onChangeVisible:oe,onBlurChange:Ie},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",W2,[e.createVNode(ve,{onClick:ce,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>H[17]||(H[17]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[17]}),e.createVNode(ve,{class:"ok-button button",onClick:Be,id:"themeButton"},{default:e.withCtx(()=>H[18]||(H[18]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[18]})])]),_:1},8,["visible"])])}}},G2=Zl._export_sfc(K2,[["__scopeId","data-v-7a6b87b5"]]),Y2=A.useModelComp(A.pinia),{pageMapState:J2}=A.storeToRefs(Y2),X2=A.useMenuState(A.pinia),{activeMenuPath:Z2}=A.storeToRefs(X2),Q2=e.ref(24),eh=e.ref(6),ah=e.ref(10),lh=e.ref(70),rh=e.ref(.18),nh=e.ref(45),ih=(a,l,r,n)=>{var t,s,v,f,d,y,g,c,D,I,k,W,M,R,j,E;return{x:((s=(t=a==null?void 0:a.value)==null?void 0:t.tableData)==null?void 0:s.x)||l%2*12,y:((f=(v=a==null?void 0:a.value)==null?void 0:v.tableData)==null?void 0:f.y)||l,w:((y=(d=a==null?void 0:a.value)==null?void 0:d.tableData)==null?void 0:y.w)||Q2.value,h:((c=(g=a==null?void 0:a.value)==null?void 0:g.tableData)==null?void 0:c.h)||r,minW:((I=(D=a==null?void 0:a.value)==null?void 0:D.tableData)==null?void 0:I.minW)||eh.value,minH:((W=(k=a==null?void 0:a.value)==null?void 0:k.tableData)==null?void 0:W.minH)||rh.value,maxH:((R=(M=a==null?void 0:a.value)==null?void 0:M.tableData)==null?void 0:R.maxH)||nh.value,i:((E=(j=a==null?void 0:a.value)==null?void 0:j.tableData)==null?void 0:E.i)||l,id:(a==null?void 0:a.id)||l+"",component:n}},oh=(a,l)=>{var n,t,s,v,f,d,y,g;let r=1;if(a!=null&&a.compData&&Array.isArray(a==null?void 0:a.compData))if(((n=a==null?void 0:a.comp)==null?void 0:n.toUpperCase())==="TABLE"){if(((v=(s=(t=a==null?void 0:a.compData)==null?void 0:t.find(D=>(D==null?void 0:D.key)==="tableContents"))==null?void 0:s.contents)==null?void 0:v.length)===0)return 2}else((f=a==null?void 0:a.comp)==null?void 0:f.toUpperCase())==="FORM"&&(r=((g=(y=(d=a==null?void 0:a.compData)==null?void 0:d.find(D=>(D==null?void 0:D.key)==="formContent"))==null?void 0:y.contents)==null?void 0:g.length)/5);return r*2},Lc=(a,l,r)=>{var v,f;const n=(f=(v=J2.value)==null?void 0:v[Z2.value])==null?void 0:f.filter(d=>{var y;return((y=d==null?void 0:d.key)==null?void 0:y.type)==="gridLayout"}),t=n==null?void 0:n.find(d=>{var y,g,c;return((c=(g=(y=d==null?void 0:d.value)==null?void 0:y.tableData)==null?void 0:g.component)==null?void 0:c.id)===a.id}),s=oh(a);return a!=null&&a.children&&(a==null?void 0:a.children.length)>0&&(a.children=a.children.map((d,y)=>Lc(d,y))),{...ih(t,l,s,a)}},th=(a,l)=>{if((a==null?void 0:a.length)===0)return[];const r=A.cloneDeep(a);return Array.isArray(a)?r==null?void 0:r.map((n,t)=>Lc(n,t)):[]},sh=a=>({TABLE:{overall:[{label:"栅格布局",prop:"isGridLayout",type:"switch",value:!1,disabled:!1,activeText:"启用",inactiveText:"默认"},{label:"界面布局",prop:"layout",type:"radio",value:"vertical",options:[{label:"垂直",value:"vertical"},{label:"水平",value:"horizontal"}]},{label:"流程式布局",prop:"isStepLayout",type:"radio",value:!1,options:[{label:"启用",value:!0,disabled:!1},{label:"禁用",value:!1,disabled:!1}]}],alone:[{label:"默认显示序号",prop:"showIndex",type:"radio",value:!1,options:[{label:"是",value:!0},{label:"否",value:!1}]},{label:"浏览视图配置",prop:"viewport",type:"checkbox",value:["read"],options:[{label:"只读视图",value:"read"},{label:"编辑视图",value:"edit"}]},{label:"是否选择迁移",prop:"allowMove",type:"radio",value:!1,options:[{label:"是",value:!0},{label:"否",value:!1}]}]}}),ch=(a,l)=>a==null?void 0:a.map(r=>{for(const n in l)if(n===(r==null?void 0:r.prop))return{...r,value:l[n]};return r}),uh=e.defineComponent({__name:"index",props:{compType:String,comp:Object,target:{type:String,default:"alone"},optionItems:Array},emits:["change"],setup(a,{emit:l}){const r=a,n=l,t=e.ref([]);e.watch(()=>r.compType,f=>{var g;const d=sh(r==null?void 0:r.optionItems),y=f?(g=d[f==null?void 0:f.toUpperCase()])==null?void 0:g[r==null?void 0:r.target]:[];t.value=y==null?void 0:y.map(c=>{for(const[D,I]of Object.entries((r==null?void 0:r.comp)||{}))if((c==null?void 0:c.prop)===D)return{...c,value:I};return c})},{immediate:!0});const s=f=>ll.getComponent(f),v=f=>{var d,y;(f==null?void 0:f.prop)==="layout"&&(f==null?void 0:f.value)==="horizontal"?t.value=(d=t.value)==null?void 0:d.map(g=>{var c;return(g==null?void 0:g.prop)==="isStepLayout"?{...g,options:(c=g==null?void 0:g.options)==null?void 0:c.map(D=>({...D,disabled:!0}))}:(g==null?void 0:g.prop)==="isGridLayout"?{...g,disabled:!0}:g}):t.value=(y=t.value)==null?void 0:y.map(g=>{var c;return(g==null?void 0:g.prop)==="isStepLayout"?{...g,options:(c=g==null?void 0:g.options)==null?void 0:c.map(D=>({...D,disabled:!1}))}:(g==null?void 0:g.prop)==="isGridLayout"?{...g,disabled:!1}:g}),n("change",{target:r==null?void 0:r.target,styleConfigs:t.value,prop:f==null?void 0:f.prop})};return(f,d)=>{const y=e.resolveComponent("el-col"),g=e.resolveComponent("el-row");return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,c=>(e.openBlock(),e.createBlock(g,{class:"style-row",key:c==null?void 0:c.prop},{default:e.withCtx(()=>[e.createVNode(y,{span:6,class:"style-row-title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c==null?void 0:c.label)+":",1)]),_:2},1024),e.createVNode(y,{span:18,style:{display:"flex"}},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s(c.type)),{modelValue:c.value,"onUpdate:modelValue":D=>c.value=D,content:c==null?void 0:c.options,optionUrl:c==null?void 0:c.optionUrl,disabled:c==null?void 0:c.disabled,activeText:c==null?void 0:c.activeText,inactiveText:c==null?void 0:c.inactiveText,onChange:D=>v(c)},null,40,["modelValue","onUpdate:modelValue","content","optionUrl","disabled","activeText","inactiveText","onChange"]))]),_:2},1024)]),_:2},1024))),128)}}}),dh=Zl._export_sfc(uh,[["__scopeId","data-v-6c233914"]]),ph=e.defineComponent({__name:"index",props:{compType:String,activeTabName:String,comp:Object,extendItem:{type:Object,default:{}},target:{type:String,default:"alone"},relatedData:Array},emits:["change","onButtonClick"],setup(a,{emit:l}){const r=a,n=l,t=[{required:!0,message:"输入不能为空",trigger:"blur"}],s=e.ref([]),v=R=>R==null?void 0:R.reduce((j,E)=>(j[E==null?void 0:E.prop]=E==null?void 0:E.rule,j),{}),f=e.computed(()=>({formRules:v(s.value),buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"保存",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]})),d=e.ref([]),y=e.ref(""),g=(R,j,E)=>{var b;let w=[];(r==null?void 0:r.activeTabName)==="任务配置"?(w=[{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:R},{label:"按钮名称",value:"按钮名称",children:j}]},{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:"暂停"}]}],s.value=[{prop:"任务名称",rule:t},{prop:"任务关键词",rule:t},{prop:"执行任务",rule:t},{prop:"执行动作",rule:t},{prop:"执行交互",rule:t}]):(r==null?void 0:r.activeTabName)==="任务关联"&&(w=[{prop:"关联名称",label:"关联名称",key:"关联名称",type:"input",value:"",isTableColHidden:!1,isFormColHidden:!1},{label:"关联形式",prop:"关联形式",key:"关联形式",type:"select",value:"流程式",width:1,isFormColHidden:!1,contents:[{label:"流程式",value:"流程式"}]},{label:"关联任务集合",prop:"关联任务集合",key:"关联任务集合",type:"tag",value:[],width:1,isFormColHidden:!1,contents:(b=r==null?void 0:r.relatedData)==null?void 0:b.map(_=>({label:_==null?void 0:_.任务名称,value:_==null?void 0:_.任务名称}))},{prop:"关联状态",label:"关联状态",key:"关联状态",type:"radio",value:"启动",isTableColHidden:!1,isFormColHidden:!1,contents:[{label:"启动",value:"启动"},{label:"暂停",value:"暂停"}]}],s.value=[{prop:"关联名称",rule:t},{prop:"关联状态",rule:t},{prop:"关联形式",rule:t},{prop:"关联任务集合",rule:t}]);let x;return E&&(E==null?void 0:E.length)>0?x=[...w,...c(R,j,E)]:x=w,x},c=(R,j,E)=>{const w=[{label:"进度关键词",prop:"进度关键词",key:"进度关键词",type:"input",value:"",width:2,isFormColHidden:!1,contents:[]},{label:"统计算法源",prop:"统计算法源",key:"统计算法源",type:"input",value:"",width:2,isFormColHidden:!1,contents:[]},{label:"统计是否获取错误集",prop:"统计是否获取错误集",key:"统计是否获取错误集",type:"radio",value:!1,width:2,isFormColHidden:!1,contents:[{label:"是",value:!0},{label:"否",value:!1}]}];return E?w==null?void 0:w.filter(x=>E==null?void 0:E.includes(x==null?void 0:x.prop)):w},D=(R,j)=>{var _,$,F,Y,oe,ye,Ie,V,pe;const E=((oe=(Y=(F=($=(_=r==null?void 0:r.comp)==null?void 0:_.compData)==null?void 0:$.find(Q=>(Q==null?void 0:Q.key)==="header"))==null?void 0:F.contents)==null?void 0:Y.filter(Q=>(Q==null?void 0:Q.label)!=="操作"))==null?void 0:oe.map(Q=>({value:Q==null?void 0:Q.prop,label:Q.label})))||[],w=/button/i,x=((pe=(V=(Ie=(ye=r==null?void 0:r.comp)==null?void 0:ye.compData)==null?void 0:Ie.filter(Q=>w.test(Q==null?void 0:Q.key)))==null?void 0:V.flatMap(Q=>Q==null?void 0:Q.contents))==null?void 0:pe.map(Q=>({value:Q==null?void 0:Q.label,label:Q.label})))||[],b=g(E,x,R);d.value=j?ch(b,j):b,R&&(R==null?void 0:R.length)>0&&s.value.push(...R==null?void 0:R.map(Q=>({prop:Q,rule:t})))};e.onMounted(()=>{D(null,r==null?void 0:r.extendItem)});const I=R=>{const j=R==null?void 0:R[y.value];if(y.value==="执行任务"){if(!(j!=null&&j.join("/")))return;const E=j==null?void 0:j.join("/");D(E==="统计/统计规则/自定义"?["统计算法源","统计是否获取错误集"]:E==="进度设置/进度条"?["进度关键词"]:null,R)}},k=R=>{n("change",{target:r==null?void 0:r.target,extendConfigs:R})},W=(R,j)=>{y.value=j==null?void 0:j.changeProp,I(R)},M=R=>{n("onButtonClick",R)};return(R,j)=>(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:d.value,key:d.value,isStartJustify:!1,isEnableWrap:!1,formRules:f.value.formRules,buttonValue:f.value.buttonValue,onChange:k,onBlurChange:W,onOnButtonClick:M},null,8,["rowContents","formRules","buttonValue"]))}}),fh=Zl._export_sfc(ph,[["__scopeId","data-v-7c660c1f"]]),hh={};function vh(a,l){return null}const mh=Zl._export_sfc(hh,[["render",vh]]),yh={class:"form-operate-content"},gh={class:"form-operate-item"},bh={class:"operate-title"},kh={class:"operate-content"},xh={class:"fix-content"},wh={class:"fix-button"},_h={class:"operate-title"},Sh={class:"operate-content"},Eh={class:"fix-content"},Ch={class:"fix-button"},Dh={style:{display:"flex","justify-content":"space-between"}},Bh={class:"form-content"},Th={class:"dialog-footer"},Nh={class:"form-content"},Ah={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const r=a,n=l,t=e.ref(!1),s=e.ref([]),v=e.ref([]),f=e.ref(!1),d=e.ref([]),y=e.ref([]),g=e.ref(""),c=e.ref(!1),D=e.ref(0),I=e.ref([]),k=e.ref([]),W=(V,pe)=>{if((pe==null?void 0:pe.type)=="Select"&&(V==null?void 0:V.key)==="selectRelateType"){const Q=pe==null?void 0:pe.optionUrl;return(Q==null?void 0:Q.selectRelateType)||pe[V.key]}if((pe==null?void 0:pe.type)=="Select"&&(V==null?void 0:V.key)==="menuSelect"){const Q=pe==null?void 0:pe.optionUrl;return(Q==null?void 0:Q.menuSelect)||pe[V.key]}if((pe==null?void 0:pe.type)=="Select"&&(V==null?void 0:V.key)==="groupSelect"){const Q=pe==null?void 0:pe.optionUrl;return(Q==null?void 0:Q.groupSelect)||pe[V.key]}if((pe==null?void 0:pe.type)=="Select"&&(V==null?void 0:V.key)==="originalContent")return(pe==null?void 0:pe.value)||pe[V.key];if((pe==null?void 0:pe.type)=="Select"&&(V==null?void 0:V.key)==="multiple"){const Q=pe[V.key];return Xs(Q)?Q:V.default}return(V==null?void 0:V.label)==="类型"&&pe[V.key]===""?"Input":(V==null?void 0:V.key)==="isFormColHidden"&&!pe[V.key]?!1:pe[V.key]},M=async V=>{var ce,Be,Ve,me,N,se;t.value=!0;let pe=[];const Q=await((Ve=(Be=(ce=ue.FormContent)==null?void 0:ce.find(U=>(U==null?void 0:U.key)===((V==null?void 0:V.type)===""?"Input":V==null?void 0:V.type)))==null?void 0:Be.value)==null?void 0:Ve.value)??((N=(me=ue.FormContent)==null?void 0:me.find(U=>(U==null?void 0:U.key)===((V==null?void 0:V.type)===""?"Input":V==null?void 0:V.type)))==null?void 0:N.value);if(Q==null||Q.forEach(U=>{D.value++,pe.push({label:U==null?void 0:U.label,name:U==null?void 0:U.label,type:U.type,prop:U==null?void 0:U.prop,value:W(U,V),id:D.value,contents:U==null?void 0:U.options,width:(V==null?void 0:V.width)??1})}),V!=null&&V.menuSelect&&((se=V==null?void 0:V.menuSelect)==null?void 0:se.length)>0){const U=await ue.menuToContentType(V==null?void 0:V.menuSelect);pe=pe==null?void 0:pe.map(Se=>((Se==null?void 0:Se.name)==="组信息选项"&&(Se.contents=U),Se))}g.value=V==null?void 0:V.id,s.value=await ue.selectToBase(ue.formToOptionsContents(pe)),v.value=await ue.selectToBase(ue.formToOptionsContents(pe))},R=V=>{var Q;f.value=!0;let pe=[];(Q=ue.FormButton)==null||Q.forEach(ce=>{D.value++,pe.push({label:ce==null?void 0:ce.label,name:ce==null?void 0:ce.label,type:ce.type,value:(ce==null?void 0:ce.label)==="类型"&&V[ce.key]===""?"normal":V[ce.key],id:D.value,contents:ce==null?void 0:ce.options})}),I.value=pe,k.value=pe,g.value=V==null?void 0:V.id};e.watch(()=>c.value,()=>{var pe,Q;let V=A.cloneDeep(r.originalItemContents);(pe=A.cloneDeep(r.originalItemContents))!=null&&pe.find(ce=>(ce==null?void 0:ce.key)==="enableWrap")?V=(Q=A.cloneDeep(r.originalItemContents))==null?void 0:Q.map(ce=>((ce==null?void 0:ce.key)==="enableWrap"&&(ce.contents=!c.value),ce)):V.push({key:"enableWrap",contents:!c.value}),n("change",V)},{deep:!0});const j=()=>{var Q,ce,Be,Ve,me;I.value=k.value;let V={};if(g.value!==""?V.id=g.value:(D.value++,V.id="id"+D.value),(Q=I.value)==null||Q.forEach(N=>{var U;const se=(U=ue.FormButton)==null?void 0:U.find(Se=>(Se==null?void 0:Se.label)===(N==null?void 0:N.label));se&&(V[se.key]=N.value)}),(ce=d.value)!=null&&ce.find(N=>N.id===V.id))d.value=(Be=d.value)==null?void 0:Be.map(N=>(N.id===V.id&&(N=V),N));else{let N=A.cloneDeep(d.value);d.value||(d.value=[]),N.push(V),d.value=N}f.value=!1,g.value="";let pe=A.cloneDeep(r.originalItemContents);(Ve=A.cloneDeep(r.originalItemContents))!=null&&Ve.find(N=>(N==null?void 0:N.key)==="formButton")?pe=(me=A.cloneDeep(r.originalItemContents))==null?void 0:me.map(N=>((N==null?void 0:N.key)==="formButton"&&(N.contents=d.value),N)):pe.push({key:"formButton",contents:d.value}),n("change",pe)},E=V=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var pe,Q;y.value=(pe=A.cloneDeep(y.value))==null?void 0:pe.filter(ce=>(ce==null?void 0:ce.id)!==(V==null?void 0:V.id)),n("change",(Q=A.cloneDeep(r.originalItemContents))==null?void 0:Q.map(ce=>((ce==null?void 0:ce.key)==="formContent"&&(ce.contents=y.value),ce))),Ha.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},w=V=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var pe,Q;d.value=(pe=A.cloneDeep(d.value))==null?void 0:pe.filter(ce=>(ce==null?void 0:ce.id)!==(V==null?void 0:V.id)),n("change",(Q=A.cloneDeep(r.originalItemContents))==null?void 0:Q.map(ce=>((ce==null?void 0:ce.key)==="formButton"&&(ce.contents=d.value),ce))),Ha.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},x=()=>{var pe;f.value=!0;let V=[];(pe=ue.FormButton)==null||pe.forEach(Q=>{D.value++,V.push({label:Q==null?void 0:Q.label,name:Q==null?void 0:Q.label,type:Q.type,value:(Q==null?void 0:Q.label)==="类型"?"normal":"",id:D.value,contents:Q==null?void 0:Q.options})}),I.value=V,k.value=V},b=()=>{var pe,Q,ce;t.value=!0;let V=[];(ce=(Q=(pe=ue.FormContent)==null?void 0:pe.find(Be=>(Be==null?void 0:Be.key)==="Input"))==null?void 0:Q.value)==null||ce.forEach(Be=>{D.value++,V.push({label:Be==null?void 0:Be.label,name:Be==null?void 0:Be.label,type:Be.type,value:(Be==null?void 0:Be.label)==="类型"?"Input":"",id:D.value,contents:Be==null?void 0:Be.options})}),s.value=V,v.value=V},_=V=>{let pe=A.cloneDeep(k.value);pe=pe==null?void 0:pe.map(Q=>(Q.value=V==null?void 0:V[Q.name],Q)),k.value=pe},$=V=>{const pe=V.find(Be=>(Be==null?void 0:Be.name)==="类型");if((pe==null?void 0:pe.value)!="Select")return;const Q=V.find(Be=>(Be==null?void 0:Be.name)==="多选"),ce=V.find(Be=>(Be==null?void 0:Be.name)==="初始值");Q!=null&&Q.value&&Eo.isString(ce.value)&&(ce.value=[ce.value]),!(Q!=null&&Q.value)&&!Eo.isString(ce.value)&&(ce.value="")},F=async V=>{var pe,Q,ce,Be,Ve,me,N,se,U,Se,Le,Fe;if((V==null?void 0:V.类型)!==((Q=(pe=v.value)==null?void 0:pe.find(ia=>(ia==null?void 0:ia.label)==="类型"))==null?void 0:Q.value)){let ia=[];const Ba=await((Ve=(Be=(ce=ue.FormContent)==null?void 0:ce.find(ee=>(ee==null?void 0:ee.key)===((V==null?void 0:V.类型)===""?"Input":V==null?void 0:V.类型)))==null?void 0:Be.value)==null?void 0:Ve.value)?await((Se=(U=(se=ue.FormContent)==null?void 0:se.find(ee=>(ee==null?void 0:ee.key)===((V==null?void 0:V.类型)===""?"Input":V==null?void 0:V.类型)))==null?void 0:U.value)==null?void 0:Se.value):(N=(me=ue.FormContent)==null?void 0:me.find(ee=>(ee==null?void 0:ee.key)===((V==null?void 0:V.类型)===""?"Input":V==null?void 0:V.类型)))==null?void 0:N.value;if(Ba==null||Ba.forEach(ee=>{var ie,fa;D.value++;const da=Ou(ee==null?void 0:ee.default)?(V==null?void 0:V[ee.label])??ee.value??"":ee==null?void 0:ee.default;ia.push({label:ee==null?void 0:ee.label,name:ee==null?void 0:ee.label,type:ee.type,value:da,prop:ee==null?void 0:ee.prop,id:D.value,contents:ee==null?void 0:ee.options,width:((fa=(ie=v.value)==null?void 0:ie[0])==null?void 0:fa.width)??1})}),V!=null&&V.菜单选项&&((Le=V==null?void 0:V.菜单选项)==null?void 0:Le.length)>0){const ee=await ue.menuToContentType(V==null?void 0:V.菜单选项);ia=ia==null?void 0:ia.map(da=>((da==null?void 0:da.name)==="组信息选项"&&(da.contents=ee),da))}$(ia),v.value=await ue.selectToBase(A.cloneDeep(ia)),s.value=await ue.selectToBase(A.cloneDeep(ia))}else{let ia=A.cloneDeep(v.value);if(ia=ia==null?void 0:ia.map(Ba=>(Ba.value=V==null?void 0:V[Ba.name],Ba)),V!=null&&V.菜单选项&&((Fe=V==null?void 0:V.菜单选项)==null?void 0:Fe.length)>0){const Ba=await ue.menuToContentType(V==null?void 0:V.菜单选项);ia=ia==null?void 0:ia.map(ee=>((ee==null?void 0:ee.name)==="组信息选项"&&(ee.contents=Ba),ee))}ia=ue.formToOptionsContents(ia),$(ia),v.value=await ue.selectToBase(A.cloneDeep(ia))}},Y=V=>{V||(s.value=v.value)},oe=async V=>{await F(V),s.value=v.value},ye=Bl.debounce(async()=>{var ce,Be,Ve,me,N,se,U,Se,Le,Fe,ia,Ba;s.value=v.value;let V={};V.width=((Be=(ce=s.value)==null?void 0:ce[0])==null?void 0:Be.width)??1,g.value!==""?V.id=g.value:(D.value++,V.id="id"+D.value);let pe=await((N=(me=(Ve=ue.FormContent)==null?void 0:Ve.find(ee=>{var da,ie;return(ee==null?void 0:ee.key)===(((ie=(da=s.value)==null?void 0:da.find(fa=>(fa==null?void 0:fa.label)==="类型"))==null?void 0:ie.value)??"label")}))==null?void 0:me.value)==null?void 0:N.value)??((U=(se=ue.FormContent)==null?void 0:se.find(ee=>{var da,ie;return(ee==null?void 0:ee.key)===(((ie=(da=s.value)==null?void 0:da.find(fa=>(fa==null?void 0:fa.label)==="类型"))==null?void 0:ie.value)??"label")}))==null?void 0:U.value);if((Se=s.value)==null||Se.forEach(ee=>{const da=pe==null?void 0:pe.find(ie=>(ie==null?void 0:ie.label)===(ee==null?void 0:ee.label));da&&(V[da.key]=ee.value)}),V.width=V.width?V.width:1,V.key=V==null?void 0:V.label,V.isFormColHidden=V==null?void 0:V.isFormColHidden,(Le=y.value)!=null&&Le.find(ee=>ee.id===V.id))y.value=(Fe=y.value)==null?void 0:Fe.map(ee=>(ee.id===V.id&&(ee=V),ee));else{let ee=A.cloneDeep(y.value);ee.push(V),y.value=ee}y.value=y.value.map(({id:ee,...da})=>da),t.value=!1,g.value="";let Q=A.cloneDeep(r.originalItemContents);(ia=A.cloneDeep(r.originalItemContents))!=null&&ia.find(ee=>(ee==null?void 0:ee.key)==="formContent")?Q=(Ba=A.cloneDeep(r.originalItemContents))==null?void 0:Ba.map(ee=>((ee==null?void 0:ee.key)==="formContent"&&(ee.contents=y.value),ee)):Q.push({key:"formContent",contents:y.value}),n("change",Q)},300),Ie=()=>{t.value=!1,f.value=!1,g.value="",v.value=[],k.value=[]};return e.watch(()=>r.originalItemContents,()=>{var pe,Q,ce,Be,Ve,me;if(!r.originalItemContents||r.originalItemContents.length===0)return;const V=A.cloneDeep(r.originalItemContents);y.value=((pe=V==null?void 0:V.find(N=>(N==null?void 0:N.key)==="formContent"))==null?void 0:pe.contents)??[],d.value=((Q=V==null?void 0:V.find(N=>(N==null?void 0:N.key)==="formButton"))==null?void 0:Q.contents)??[],c.value=(ce=V==null?void 0:V.find(N=>(N==null?void 0:N.key)==="enableWrap"))!=null&&ce.contents?!((Be=V==null?void 0:V.find(N=>(N==null?void 0:N.key)==="enableWrap"))!=null&&Be.contents):!0,y.value=(Ve=A.cloneDeep(y.value))==null?void 0:Ve.map((N,se)=>{var Se;let U=N;return U.id=(N==null?void 0:N.id)??se,N!=null&&N.label||(N.label=(N==null?void 0:N.key)??(N==null?void 0:N.label)??""),N!=null&&N.type||(N.type=(N==null?void 0:N.type)??""),N.contents=((Se=N==null?void 0:N.options)==null?void 0:Se.length)===0?(N==null?void 0:N.contents)??"":N==null?void 0:N.options,U}),y.value=ue.formToOptionsContents(y.value),d.value=(me=d.value)==null?void 0:me.map((N,se)=>N={label:(N==null?void 0:N.label)??"",type:(N==null?void 0:N.type)??"",background:(N==null?void 0:N.background)??"var(--ssComponent-primary-color)",id:se})},{deep:!0,immediate:!0}),(V,pe)=>{const Q=e.resolveComponent("svg-icon"),ce=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",yh,[e.createElementVNode("div",gh,[e.createElementVNode("div",bh,[pe[2]||(pe[2]=e.createElementVNode("div",null,e.toDisplayString("表单内容"),-1)),e.createVNode(ce,{class:"icon-content",id:"themeButton",onClick:b},{icon:e.withCtx(()=>[e.createVNode(Q,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[pe[1]||(pe[1]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))]),_:1,__:[1]})]),e.createElementVNode("div",kh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(Be,Ve)=>(e.openBlock(),e.createElementBlock("div",{key:Ve},[e.createElementVNode("div",xh,[e.createElementVNode("div",null,e.toDisplayString(Be.label),1),e.createElementVNode("div",wh,[e.createVNode(Q,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:me=>M(Be)},null,8,["onClick"]),e.createVNode(Q,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:me=>E(Be)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",_h,[pe[4]||(pe[4]=e.createElementVNode("div",null,e.toDisplayString("表单按钮"),-1)),e.createVNode(ce,{class:"icon-content",id:"themeButton",onClick:x},{icon:e.withCtx(()=>[e.createVNode(Q,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[pe[3]||(pe[3]=e.createTextVNode(" 新增 "))]),_:1,__:[3]})]),e.createElementVNode("div",Sh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(Be,Ve)=>(e.openBlock(),e.createElementBlock("div",{key:Ve},[e.createElementVNode("div",Eh,[e.createElementVNode("div",null,e.toDisplayString(Be.label),1),e.createElementVNode("div",Ch,[e.createVNode(Q,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:me=>R(Be)},null,8,["onClick"]),e.createVNode(Q,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:me=>w(Be)},null,8,["onClick"])])])]))),128))]),pe[6]||(pe[6]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("表单布局"))],-1)),e.createElementVNode("div",Dh,[pe[5]||(pe[5]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否自动撑宽"),-1)),e.createVNode(ll._sfc_main$1,{modelValue:c.value,"onUpdate:modelValue":pe[0]||(pe[0]=Be=>c.value=Be)},null,8,["modelValue"])])]),e.createVNode(wr.ssDialog,{visible:t.value,onBeforeDestroy:Ie,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Bh,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:s.value,key:s.value,isEnableWrap:!0,onChange:F,onChangeVisible:Y,onBlurChange:oe},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",Th,[e.createVNode(ce,{onClick:Ie,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>pe[7]||(pe[7]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[7]}),e.createVNode(ce,{class:"ok-button button",onClick:e.unref(ye),id:"themeButton"},{default:e.withCtx(()=>pe[8]||(pe[8]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[8]},8,["onClick"])])]),_:1},8,["visible"]),e.createVNode(wr.ssDialog,{visible:f.value,onBeforeDestroy:Ie,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Nh,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:I.value,key:I.value,isEnableWrap:!0,onChange:_},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:Ie,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:j},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},ws=Zl._export_sfc(Ah,[["__scopeId","data-v-20850524"]]),zh={class:"step-module content"},Mh={class:"module-data"},Ih={class:"step-module layout"},Oh={class:"form-content"},Lh=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const r=a,n=l,t=e.ref([{label:"方向:",prop:"direction",type:"RADIO",contents:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}],value:"horizontal"},{label:"是否居中:",prop:"alignCenter",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0},{label:"应用简洁风格",prop:"simple",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1}]),s=e.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"标题",prop:"title",type:"input",value:""},{label:"描述",prop:"description",type:"input",value:""}]),v=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),f=e.reactive({visible:!1,width:"40%",title:"步骤条"}),d=e.ref("create"),y=e.ref({}),g=e.ref([]),c=M=>{var R;y.value=M,n("change",(R=k())==null?void 0:R.compData)},D=(M,R)=>{var j,E;switch(M){case"create":(j=s.value)==null||j.forEach(w=>{w.value=""}),d.value="create",f.visible=!0;break;case"update":(E=s.value)==null||E.forEach(w=>{w.value=R[w==null?void 0:w.prop]}),d.value="update",f.visible=!0;break;case"delete":g.value.splice(R,1),d.value="delete";break}},I=M=>{var R,j,E;if((M==null?void 0:M.buttonName)==="确认"){const w=A.cloneDeep(M==null?void 0:M.content);switch(Object.keys(w).forEach(x=>{w[x]===""&&delete w[x]}),d.value){case"create":g.value.push({...w,index:((R=g.value)==null?void 0:R.length)+1});break;case"update":g.value=(j=g.value)==null?void 0:j.map(x=>x.index===(w==null?void 0:w.index)?{...x,title:w==null?void 0:w.title,description:w==null?void 0:w.description}:x);break}n("change",(E=k())==null?void 0:E.compData),f.visible=!1}else f.visible=!1},k=()=>({comp:"Step",compData:[{key:"stepList",contents:g.value},{key:"stepConfig",contents:y.value}]}),W=()=>{f.visible=!1};return e.watch(()=>r==null?void 0:r.itemContents,M=>{var R,j;M&&(y.value=((R=M==null?void 0:M.find(E=>E.key==="stepConfig"))==null?void 0:R.contents)??{},g.value=((j=M==null?void 0:M.find(E=>E.key==="stepList"))==null?void 0:j.contents)??[])},{immediate:!0}),(M,R)=>{const j=e.resolveComponent("svg-icon"),E=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",zh,[R[2]||(R[2]=e.createElementVNode("h4",{class:"module-title"},"内容",-1)),e.createVNode(E,{class:"module-icon",id:"themeButton",onClick:R[0]||(R[0]=w=>D("create"))},{icon:e.withCtx(()=>[e.createVNode(j,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[R[1]||(R[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",Mh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(w,x)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:x},[e.createElementVNode("span",null,e.toDisplayString(w==null?void 0:w.title),1),e.createElementVNode("div",null,[e.createVNode(E,{type:"primary",size:"small",onClick:b=>D("update",{...w,index:x+1})},{default:e.withCtx(()=>R[3]||(R[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(E,{type:"danger",size:"small",onClick:b=>D("delete",x)},{default:e.withCtx(()=>R[4]||(R[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",Ih,[R[5]||(R[5]=e.createElementVNode("div",{class:"module-title"},"布局",-1)),e.createVNode(ll.ssForm,{rowContents:t.value,onChange:c},null,8,["rowContents"])])]),e.createVNode(wr.ssDialog,{visible:f.visible,title:f.title,onBeforeDestroy:W,width:f.width},{default:e.withCtx(()=>[e.createElementVNode("div",Oh,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:s.value,key:s.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:v.value,onOnButtonClick:I},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),Rh=Zl._export_sfc(Lh,[["__scopeId","data-v-7dbd17f2"]]),$h={class:"step-module content"},Vh={class:"module-data"},Fh={class:"step-module layout"},Ph={class:"form-content"},jh=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const r=a,n=l,t=e.ref("create"),s=e.ref({}),v=e.ref([]),f=e.ref([{label:"方向:",prop:"placement",type:"radio",contents:[{label:"底部",value:"bottom"},{label:"顶部",value:"top"}],value:"bottom"},{label:"节点类型:",prop:"type",type:"select",contents:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}],value:"primary"},{label:"颜色:",prop:"color",type:"color",value:""},{label:"尺寸:",prop:"size",type:"radio",contents:[{label:"normal",value:"normal"},{label:"large",value:"large"}],value:"normal"},{label:"是否空心",prop:"isHollow",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0},{label:"是否居中",prop:"isCenter",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),d=e.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"内容",prop:"content",type:"input",value:""},{label:"时间戳",prop:"timestamp",type:"datetime",value:""}]),y=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),g=e.reactive({visible:!1,width:"40%",title:"时间线"}),c=M=>{var R;s.value=M,n("change",(R=k())==null?void 0:R.compData)},D=(M,R)=>{var j,E;switch(M){case"create":(j=d.value)==null||j.forEach(w=>{w.value=""}),t.value="create",g.visible=!0;break;case"update":(E=d.value)==null||E.forEach(w=>{w.value=R[w==null?void 0:w.prop]}),t.value="update",g.visible=!0;break;case"delete":v.value.splice(R,1),t.value="delete";break}},I=M=>{var R,j,E,w;if((M==null?void 0:M.buttonName)==="确认"){const x=A.cloneDeep(M==null?void 0:M.content);switch(Object.keys(x).forEach(b=>{x[b]===""&&delete x[b]}),t.value){case"create":(j=v.value)==null||j.push({...x,index:((R=v.value)==null?void 0:R.length)+1});break;case"update":v.value=(E=v.value)==null?void 0:E.map(b=>b.index===(x==null?void 0:x.index)?{...b,content:x==null?void 0:x.content,timestamp:x==null?void 0:x.timestamp}:b);break}n("change",(w=k())==null?void 0:w.compData),g.visible=!1}else g.visible=!1},k=()=>({comp:"TimeLine",compData:[{key:"timeLineList",contents:v.value},{key:"timeLineConfig",contents:s.value}]}),W=()=>{g.visible=!1};return e.watch(()=>r==null?void 0:r.itemContents,M=>{var R,j;M&&(s.value=((R=M==null?void 0:M.find(E=>E.key==="timeLineConfig"))==null?void 0:R.contents)??{},v.value=((j=M==null?void 0:M.find(E=>E.key==="timeLineList"))==null?void 0:j.contents)??[])},{immediate:!0}),(M,R)=>{const j=e.resolveComponent("svg-icon"),E=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",$h,[R[2]||(R[2]=e.createElementVNode("h4",{class:"module-title"},"内容",-1)),e.createVNode(E,{class:"module-icon",id:"themeButton",onClick:R[0]||(R[0]=w=>D("create"))},{icon:e.withCtx(()=>[e.createVNode(j,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[R[1]||(R[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",Vh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(w,x)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:x},[e.createElementVNode("span",null,e.toDisplayString(w==null?void 0:w.content),1),e.createElementVNode("div",null,[e.createVNode(E,{type:"primary",size:"small",onClick:b=>D("update",{...w,index:x+1})},{default:e.withCtx(()=>R[3]||(R[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(E,{type:"danger",size:"small",onClick:b=>D("delete",x)},{default:e.withCtx(()=>R[4]||(R[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",Fh,[R[5]||(R[5]=e.createElementVNode("div",{class:"module-title"},"布局",-1)),e.createVNode(ll.ssForm,{rowContents:f.value,onChange:c},null,8,["rowContents"])])]),e.createVNode(wr.ssDialog,{visible:g.visible,title:g.title,onBeforeDestroy:W,width:g.width},{default:e.withCtx(()=>[e.createElementVNode("div",Ph,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:d.value,key:d.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:y.value,onOnButtonClick:I},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),Hh=Zl._export_sfc(jh,[["__scopeId","data-v-39ffc861"]]),Uh={};function qh(a,l){return e.openBlock(),e.createElementBlock("div")}const Wh=Zl._export_sfc(Uh,[["render",qh]]),Kh={class:"extra-content"},Gh={key:0},Yh={key:1},Jh={class:"dialog-footer"},Xh={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},emits:["change"],setup(a,{emit:l}){const r=a,n=e.ref(0),t=e.ref(),s=e.ref(),v=l,f=e.ref(!1),d=e.ref({}),y=e.ref({}),g=e.ref();e.watch(()=>[r.itemData],()=>{var w;const E=A.cloneDeep(r.itemData);t.value=(w=A.cloneDeep(E))==null?void 0:w.map(x=>{var b;if(x.key==="extra"){let _=[];(b=x.value)==null||b.forEach($=>{var F;_.push((F=Object.values($))==null?void 0:F[0])}),x.value=_}return x})},{deep:!0,immediate:!0});const c=(E,w,x,b)=>{var $;let _={};(($=E==null?void 0:E[0])==null?void 0:$.contents)==="详情"&&(f.value=!0,_[w]=E,s.value=E==null?void 0:E.filter(F=>(F==null?void 0:F.key)!=="tableContentName"),d.value=_,y.value=x,g.value=b.id)},D=E=>{var F,Y,oe,ye;const w=(Y=(F=Object.values(A.cloneDeep(d.value)))==null?void 0:F[0])==null?void 0:Y.filter(Ie=>(Ie==null?void 0:Ie.key)==="tableContentName"),x=(ye=(oe=Object.values(A.cloneDeep(d.value)))==null?void 0:oe[0])==null?void 0:ye.filter(Ie=>(Ie==null?void 0:Ie.key)!=="tableContentName"),b=x==null?void 0:x.map((Ie,V)=>{var pe;return V===E.index&&(Ie==null?void 0:Ie.comp)==="Table"&&(Ie.compData=(pe=Ie.compData)==null?void 0:pe.map(Q=>{var ce,Be;return(Q==null?void 0:Q.key)==="tableContents"&&(Q.contents=(Be=(ce=E.content)==null?void 0:ce.map(Ve=>{let me={};for(let N in Ve)N!=="id"&&(me[N]=Ve[N]);return me}))==null?void 0:Be.map(Ve=>Object.values(Ve))),Q})),Ie});b.unshift(w==null?void 0:w[0]);let _=A.cloneDeep(d.value),$={};for(let Ie in _)$[Ie]=b;d.value=$},I=()=>{f.value=!1,d.value={},y.value={},g.value=void 0,n.value++},k=E=>{var F,Y,oe,ye;const w=(Y=(F=Object.values(A.cloneDeep(d.value)))==null?void 0:F[0])==null?void 0:Y.filter(Ie=>(Ie==null?void 0:Ie.key)==="tableContentName"),x=(ye=(oe=Object.values(A.cloneDeep(d.value)))==null?void 0:oe[0])==null?void 0:ye.filter(Ie=>(Ie==null?void 0:Ie.key)!=="tableContentName"),b=x==null?void 0:x.map((Ie,V)=>(V===E.index&&(Ie.compData=E.contents),Ie));b.unshift(w==null?void 0:w[0]);let _=A.cloneDeep(d.value),$={};for(let Ie in _)$[Ie]=b;d.value=$},W=()=>{var w,x;let E={};for(let b in y.value)b===((w=Object.keys(d.value))==null?void 0:w[0])?E[b]=(x=Object.values(d.value))==null?void 0:x[0]:E[b]=y.value[b];v("change",{buttonName:"编辑",index:g.value,singleContent:E},"methodData"),f.value=!1,d.value={},y.value={},g.value=void 0},M=()=>{f.value=!1,d.value={},y.value={},g.value=void 0},R=E=>{v("change",E,"methodData")},j=E=>Ti(E);return(E,w)=>{const x=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",Kh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(b,_)=>(e.openBlock(),e.createElementBlock("div",{key:n.value},[(b==null?void 0:b.key)==="extra"?(e.openBlock(),e.createElementBlock("div",Gh)):(e.openBlock(),e.createElementBlock("div",Yh,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(j(b.comp)),{itemData:b==null?void 0:b.compData,childItemData:b==null?void 0:b.itemChildData,key:_,index:(b==null?void 0:b.id)??_,onContentClick:c,onChange:R},null,40,["itemData","childItemData","index"]))]))]))),128)),e.createVNode(wr.ssDialog,{visible:f.value,onBeforeDestroy:M},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(b,_)=>(e.openBlock(),e.createElementBlock("div",{key:_,class:"extra-dialog"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(j(b.comp)),{itemData:b==null?void 0:b.compData,onChange:D,childItemData:b==null?void 0:b.itemChildData,key:_,onContentChange:k,index:(b==null?void 0:b.id)??_,class:"extra-component"},null,40,["itemData","childItemData","index"]))]))),128))]),footer:e.withCtx(()=>[e.createElementVNode("div",Jh,[e.createVNode(x,{class:"cancel-button footer-button",onClick:I,id:"themeBorderButton"},{default:e.withCtx(()=>w[0]||(w[0]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[0]}),e.createVNode(x,{class:"confirm-button footer-button",onClick:W,id:"themeButton"},{default:e.withCtx(()=>w[1]||(w[1]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},Zh=Zl._export_sfc(Xh,[["__scopeId","data-v-2d9c5ab2"]]),Qh={key:0,class:"method-content"},e4={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},setup(a){const l=e.ref([]),r=ue.useOriginalState(A.pinia),{originalPath:n}=A.storeToRefs(r),t=a,s=e.ref(!1),v=e.ref(),f=ue.useTableComp(A.pinia),{multipleTableConst:d}=A.storeToRefs(f),y=A.useModelComp(A.pinia),g=e.ref(!1),c=A.useMenuState(A.pinia),D=A.useLoginState(A.pinia),{itemData:I,isEdit:k,routeToChildPath:W,tableViewContents:M,lockingPage:R,payloadTypes:j}=A.storeToRefs(y),{activeMenuPath:E,platform:w,childMenu:x}=A.storeToRefs(c),{loginUserInfo:b}=A.storeToRefs(D),_=e.ref(!1),$=async()=>{var me,N;(me=l.value)!=null&&me.find(se=>(se==null?void 0:se.buttonName)==="保存")&&await Q((N=l.value)==null?void 0:N.find(se=>(se==null?void 0:se.buttonName)==="保存")),await ue.onSaveBack()};e.watch(()=>I.value,async()=>{k.value==="view"&&!_.value&&await Ve(A.cloneDeep(t.itemData)),_.value=!1},{deep:!0});const F=()=>{s.value=!1,v.value=void 0},Y=me=>me.map(N=>{const se={};for(const U in N){const Se=N[U];if(U.includes(d.value)){const Le=U.split(d.value);let Fe=se;Le.forEach((ia,Ba)=>{Ba===Le.length-1?Fe[ia]=Se:(Fe[ia]||(Fe[ia]={}),Fe=Fe[ia])})}else se[U]=Se}return se}),oe=async(me,N,se=[])=>{var Se,Le,Fe,ia,Ba,ee,da,ie,fa,Ee,ne,Ae,We,ua,Ga;let U=(Se=A.cloneDeep(N))==null?void 0:Se.filter(L=>(L==null?void 0:L.comp)!=="methodButton");if(me!=null&&me.includes("[")){let L=(ee=(Ba=(ia=(Fe=(Le=A.cloneDeep(me))==null?void 0:Le.split("["))==null?void 0:Fe[1])==null?void 0:ia.split("]"))==null?void 0:Ba[0])==null?void 0:ee.split(":"),H="";if(L!=null&&L[0]){let J=(da=U==null?void 0:U.find(ve=>(ve==null?void 0:ve.name)===(L==null?void 0:L[0])))==null?void 0:da.compData;if(!J){let ve=(ie=me==null?void 0:me.split("["))==null?void 0:ie[0],he=await ue.getItemData(ve,sessionStorage.getItem("systemKey"),"",!1,"","",se);J=(fa=he==null?void 0:he.find(ga=>(ga==null?void 0:ga.name)===(L==null?void 0:L[0])))==null?void 0:fa.compData}J==null||J.forEach(ve=>{var he,ga,la,te,ba,Ne;if((ve==null?void 0:ve.key)==="formContent")(he=ve==null?void 0:ve.contents)==null||he.forEach(Xe=>{var Aa;(Xe==null?void 0:Xe.key)===(L==null?void 0:L[1])&&(Array.isArray(Xe==null?void 0:Xe.value)?H=Xe==null?void 0:Xe.value:H=(Aa=Xe==null?void 0:Xe.value)==null?void 0:Aa.toString())});else if((ve==null?void 0:ve.key)==="tableContents"){let Xe=[],Aa=(ga=J==null?void 0:J.find(aa=>(aa==null?void 0:aa.key)==="header"))==null?void 0:ga.contents,Da=(L==null?void 0:L[1])??"";if(Aa!=null&&Aa.every(aa=>Array.isArray(aa))){let aa=ue.getColumnChild((ba=Aa==null?void 0:Aa[0])==null?void 0:ba.filter($a=>($a==null?void 0:$a.label)!=="操作"));(Ne=ve.contents)==null||Ne.forEach($a=>{let ke={};$a=$a==null?void 0:$a.filter(ae=>!(ae!=null&&ae.id)),aa==null||aa.forEach((ae,ze)=>{let Oe=$a[ze];typeof $a[ze]=="number"&&(Oe=$a[ze].toString()),(Da===""||Da===ae.prop)&&(ke[ae.prop]=Oe)}),Xe.push(ke)}),Xe=Y(Xe)}else{let aa=(la=Aa==null?void 0:Aa.map($a=>$a==null?void 0:$a.label))==null?void 0:la.filter($a=>$a!=="操作");(te=ve.contents)==null||te.forEach($a=>{let ke={};$a=$a==null?void 0:$a.filter(ae=>!(ae!=null&&ae.id)),aa==null||aa.forEach((ae,ze)=>{let Oe=$a[ze];typeof $a[ze]=="number"&&(Oe=$a[ze].toString()),(Da===""||Da===ae)&&(ke[ae]=Oe)}),Xe.push(ke)})}H=Xe}})}return H}else if(me!=null&&me.includes("/")){let L={};return(Ee=A.cloneDeep(U))==null||Ee.forEach((H,J)=>{var ve,he,ga,la,te,ba,Ne,Xe,Aa,Da,aa,$a,ke,ae,ze,Oe,Me,ya,xa;if((H==null?void 0:H.comp)==="Table"){let qe=Array.isArray((ga=(he=(ve=H==null?void 0:H.compData)==null?void 0:ve.find(de=>(de==null?void 0:de.key)==="header"))==null?void 0:he.contents)==null?void 0:ga[0])?(Ne=(ba=(te=(la=H==null?void 0:H.compData)==null?void 0:la.find(de=>(de==null?void 0:de.key)==="header"))==null?void 0:te.contents)==null?void 0:ba[0])==null?void 0:Ne.some(de=>de==null?void 0:de.children):[],Je=(Da=(Aa=(Xe=H==null?void 0:H.compData)==null?void 0:Xe.find(de=>(de==null?void 0:de.key)==="tableContents"))==null?void 0:Aa.contents)==null?void 0:Da.map(de=>(de!=null&&de.find(Oa=>Oa==null?void 0:Oa.id)&&(de=de.slice(1)),de)),Ue=(ze=(ae=(ke=($a=(aa=H==null?void 0:H.compData)==null?void 0:aa.find(de=>(de==null?void 0:de.key)==="header"))==null?void 0:$a.contents)==null?void 0:ke[0])==null?void 0:ae[0])==null?void 0:ze.label,_e=(Me=(Oe=H==null?void 0:H.compData)==null?void 0:Oe.find(de=>(de==null?void 0:de.key)==="header"))==null?void 0:Me.contents;if(qe)(qe==null?void 0:qe.length)===0?L[H.name]=L!=null&&L[H.name]?L[H.name]:ue.tableToForm(Je,_e):L[Ue]=ue.tableToForm(Je,_e);else{const de=[];_e=_e.slice(1,_e.length-1),_e==null||_e.forEach((Oa,La)=>{Je==null||Je.forEach(gl=>{de.push({key:Oa.label+gl[0],value:gl[La+1]})})}),L["form"+J]=de}}else{const qe=(xa=(ya=H.compData)==null?void 0:ya.find(Ue=>(Ue==null?void 0:Ue.key)==="formContent"))==null?void 0:xa.contents;L!=null&&L.form||(L.form=[]);const Je=[];qe==null||qe.forEach(Ue=>{Ue.key!==""&&(Ue={key:(Ue==null?void 0:Ue.key)??(Ue==null?void 0:Ue.label),value:Ue==null?void 0:Ue.value},Je.push(Ue))}),L.form=[...Je,...A.cloneDeep(L==null?void 0:L.form)]}}),L}else{if(me==="createInsofDataApi"){let L=(ne=A.cloneDeep(N))==null?void 0:ne[0];return L={comp:(Ae=A.cloneDeep(L))==null?void 0:Ae.comp,compData:(We=A.cloneDeep(L))==null?void 0:We.compData,name:(ua=A.cloneDeep(L))==null?void 0:ua.name,isShow:(Ga=A.cloneDeep(L))==null?void 0:Ga.isShow},{key:{type:"structure",systemKey:sessionStorage.getItem("systemKey"),parentTable:"",pageKey:E.value},value:{pageData:L}}}return me}},ye=async(me,N,se)=>{var Le,Fe,ia;let U=await ue.getItemData(N,sessionStorage.getItem("systemKey"),""),Se=U==null?void 0:U.find(Ba=>(Ba==null?void 0:Ba.name)===(se==null?void 0:se[0]));if(Se){if((Se==null?void 0:Se.comp)==="Table"){let Ba={};for(let Ae in A.cloneDeep(me))A.cloneDeep(me)[Ae]!=="loginUser"?Ba[Ae]=A.cloneDeep(me)[Ae]:Ba[Ae]=((Le=b.value)==null?void 0:Le.account)||((Fe=b.value)==null?void 0:Fe.账号);let ee=[],da=Ba;Array.isArray(me)||(da=[Ba]),da==null||da.forEach(Ae=>{ee.push({[Ae[se[1]]]:Ae})});let ie=[],fa=ee==null?void 0:ee.map(Ae=>{var We;return(We=Object.keys(Ae))==null?void 0:We[0]});U==null||U.forEach(Ae=>{var We;(Ae==null?void 0:Ae.name)===(se==null?void 0:se[0])&&((We=Ae==null?void 0:Ae.compData)==null||We.forEach(ua=>{var Ga;(ua==null?void 0:ua.key)==="tableContents"&&((Ga=ua==null?void 0:ua.contents)==null||Ga.forEach(L=>{L!=null&&L.some(H=>fa.includes(H))&&ie.push({[L.find(H=>H.id).id]:L.find(H=>fa.includes(H))})}))}))});let Ee=ie==null?void 0:ie.map(Ae=>{var We;return(We=Object.keys(Ae))==null?void 0:We[0]}),ne=[];if(Ee==null||Ee.forEach(Ae=>{var Ga;let We=(Ga=ie==null?void 0:ie.find(L=>{var H;return((H=Object.keys(L))==null?void 0:H[0].toString())===Ae.toString()}))==null?void 0:Ga[Ae],ua=ee==null?void 0:ee.find(L=>{var H;return((H=Object.keys(L))==null?void 0:H[0])===We});ne.push({id:parseInt(Ae),value:{tableData:ua[We]}})}),(ne==null?void 0:ne.length)>0)return ne}else if((Se==null?void 0:Se.comp)==="Form"){let Ba=A.cloneDeep(Se);Ba.compData=(ia=Ba.compData)==null?void 0:ia.map(ie=>{var fa;return(ie==null?void 0:ie.key)==="formContent"&&(ie.contents=(fa=ie.contents)==null?void 0:fa.map(Ee=>((Ee==null?void 0:Ee.key)===(se==null?void 0:se[1])&&(Ee.value=(me==null?void 0:me[Ee==null?void 0:Ee.prop])||me),Ee))),ie});let ee={};for(let ie in Ba)ie!=="id"&&(ee[ie]=Ba[ie]);let da=[];if(da.push({id:Se==null?void 0:Se.id,keyType:se==null?void 0:se[1],value:{pageData:ee}}),(da==null?void 0:da.length)>0)return da}}},Ie=async(me,N,se)=>{var Le,Fe,ia,Ba,ee,da,ie,fa,Ee,ne;let U=await ue.getItemData(N,sessionStorage.getItem("systemKey"),""),Se=U==null?void 0:U.find(Ae=>(Ae==null?void 0:Ae.name)===(se==null?void 0:se[0]));if(Se){if((Se==null?void 0:Se.comp)==="Table"){let Ae={};for(let We in A.cloneDeep(me))A.cloneDeep(me)[We]!=="loginUser"?Ae[We]=A.cloneDeep(me)[We]:Ae[We]=((Le=b.value)==null?void 0:Le.account)||((Fe=b.value)==null?void 0:Fe.账号);await Nr.createInsofDataApi({key:{type:"data",pageKey:N,tableId:Se==null?void 0:Se.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:Ae}})}else if((Se==null?void 0:Se.comp)==="Form"){let Ae=A.cloneDeep(Se),We=Object.keys(me),ua="";(Ba=(ia=A.cloneDeep(Ae))==null?void 0:ia.compData)==null||Ba.forEach(he=>{var ga,la;(he==null?void 0:he.key)==="formContent"&&((la=(ga=A.cloneDeep(he))==null?void 0:ga.contents)==null||la.forEach(te=>{var ba;We.includes(te==null?void 0:te.key)&&(te==null?void 0:te.value)===((ba=b.value)==null?void 0:ba.姓名)&&(ua=te==null?void 0:te.key)}))});let Ga=[];(ee=Object.values(me[ua]))==null||ee.forEach(he=>{he!=null&&he.includes("(")&&Ga.push(he)}),Ga=[...new Set(Ga)];const L=Ga==null?void 0:Ga.map(async he=>{var Ne,Xe,Aa,Da,aa,$a,ke,ae,ze,Oe,Me,ya;let ga="";($a=(aa=(Da=(Aa=(Xe=(Ne=A.cloneDeep(he))==null?void 0:Ne.split("("))==null?void 0:Xe[1])==null?void 0:Aa.split(")"))==null?void 0:Da[0])==null?void 0:aa.split(":"))==null||$a.forEach(xa=>{ga=ga===""?ga+xa.replaceAll("'",""):ga+"/"+xa.replaceAll("'","")});let la=[];(ya=(Me=(Oe=(ze=(ae=(ke=A.cloneDeep(he))==null?void 0:ke.split("<"))==null?void 0:ae[1])==null?void 0:ze.split(">"))==null?void 0:Oe[0])==null?void 0:Me.split(":"))==null||ya.forEach(xa=>{la.push(xa.replaceAll("'",""))});const te=await ue.getItemData(ga,sessionStorage.getItem("systemKey"),"");let ba="";return te==null||te.forEach(xa=>{var qe;xa.name===(la==null?void 0:la[0])&&((qe=xa==null?void 0:xa.compData)==null||qe.forEach(Je=>{var Ue;(Je==null?void 0:Je.key)==="formContent"&&((Ue=Je.contents)==null||Ue.forEach(_e=>{(_e==null?void 0:_e.key)===(la==null?void 0:la[1])&&(ba=_e==null?void 0:_e.value)}))}))}),{[he]:ba}}),H=await Promise.all(L);Ae.compData=(ie=(da=A.cloneDeep(Ae))==null?void 0:da.compData)==null?void 0:ie.map(he=>{var ga,la;return(he==null?void 0:he.key)==="formContent"&&(he.contents=(la=(ga=A.cloneDeep(he))==null?void 0:ga.contents)==null?void 0:la.map(te=>{var ba,Ne,Xe,Aa;return(ba=me[ua])!=null&&ba[te==null?void 0:te.key]&&(me[ua][te==null?void 0:te.key].includes("(")?te.value=(Ne=H==null?void 0:H.find(Da=>{var aa;return((aa=Object.keys(Da))==null?void 0:aa[0])===me[ua][te==null?void 0:te.key]}))==null?void 0:Ne[me[ua][te==null?void 0:te.key]]:te.value=(Aa=(Xe=A.cloneDeep(me))==null?void 0:Xe[ua])==null?void 0:Aa[te==null?void 0:te.key]),te})),he});const J=await Nr.getInsofDataApi({key:{type:"structure",pageKey:N,systemKey:sessionStorage.getItem("systemKey")}});let ve="";((fa=J==null?void 0:J.data)==null?void 0:fa.type)==="success"&&((ne=(Ee=J==null?void 0:J.data)==null?void 0:Ee.result)==null||ne.forEach(he=>{var ga,la;((la=(ga=he==null?void 0:he.value)==null?void 0:ga.pageData)==null?void 0:la.name)===(se==null?void 0:se[0])&&(ve=he.id)}),await Nr.updateInsofDataApi({id:ve,value:{pageData:Ae}}))}}},V=(me,N="",se={})=>{for(const[U,Se]of Object.entries(me)){const Le=N?`${N}.${U}`:U;Se!==null&&typeof Se=="object"&&!Array.isArray(Se)&&Object.prototype.toString.call(Se)!=="[object Date]"?V(Se,Le,se):se[Le]=Se}return se},pe=async(me,N,se,U)=>{var Fe,ia,Ba,ee,da,ie,fa,Ee,ne,Ae,We,ua,Ga,L,H,J,ve,he,ga,la,te,ba,Ne,Xe,Aa;let Se=await ue.getItemData(N,sessionStorage.getItem("systemKey"),""),Le=Se==null?void 0:Se.find(Da=>(Da==null?void 0:Da.name)===(se==null?void 0:se[0]));if(Le){if(!(se!=null&&se[1])&&(Le==null?void 0:Le.comp)==="Table"){let Da={},aa=[],$a=(ia=(Fe=Le==null?void 0:Le.compData)==null?void 0:Fe.find(ze=>(ze==null?void 0:ze.key)==="header"))==null?void 0:ia.contents;$a!=null&&$a.every(ze=>Array.isArray(ze))?aa=(ee=ue.getColumnChild((Ba=$a==null?void 0:$a[0])==null?void 0:Ba.filter(ze=>(ze==null?void 0:ze.label)!=="操作")))==null?void 0:ee.map(ze=>ze==null?void 0:ze.prop):aa=$a==null?void 0:$a.map(ze=>ze==null?void 0:ze.label);for(let ze in A.cloneDeep(me))if(A.cloneDeep(me)[ze]!=="loginUser"){let Oe=V(A.cloneDeep(me)[ze]),Me={};for(let ya in Oe)if(aa!=null&&aa.find(xa=>xa===ya))Me[ya]=Oe[ya];else if(aa!=null&&aa.find(xa=>(xa==null?void 0:xa.toUpperCase())===(ya==null?void 0:ya.toUpperCase()))){let xa=aa==null?void 0:aa.find(qe=>(qe==null?void 0:qe.toUpperCase())===(ya==null?void 0:ya.toUpperCase()));Me[xa]=Oe[ya]}Da[ze]=Me}else Da[ze]=((da=b.value)==null?void 0:da.account)||((ie=b.value)==null?void 0:ie.账号);let ke=await Nr.getInsofDataApi({keyLikes:{tableId:Le==null?void 0:Le.id}});if(((Ee=(fa=ke==null?void 0:ke.data)==null?void 0:fa.result)==null?void 0:Ee.length)>0){let ze=(Ae=(ne=ke==null?void 0:ke.data)==null?void 0:ne.result)==null?void 0:Ae.map(Oe=>Oe==null?void 0:Oe.id);(ze==null?void 0:ze.length)>0&&await Nr.batchDeleteInsofDataApi({ids:ze})}let ae=[];if((We=Le==null?void 0:Le.compData)!=null&&We.find(ze=>(ze==null?void 0:ze.key)==="pageColumn")&&((L=(Ga=(ua=Le==null?void 0:Le.compData)==null?void 0:ua.find(ze=>(ze==null?void 0:ze.key)==="pageColumn"))==null?void 0:Ga.contents)!=null&&L.includes("["))){const ze=await Nr.getInsofDataApi({id:Le==null?void 0:Le.tableId});let Oe=((he=(ve=(J=(H=ze==null?void 0:ze.data)==null?void 0:H.result)==null?void 0:J[0])==null?void 0:ve.key)==null?void 0:he.pageKey)??"";(ga=Object.values(Da))==null||ga.forEach(Me=>{ae.push({key:{type:"data",pageKey:Oe,tableId:Le==null?void 0:Le.tableId,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:Me}})})}else(la=Object.values(Da))==null||la.forEach(ze=>{ae.push({key:{type:"data",pageKey:N,tableId:Le==null?void 0:Le.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:ze}})});(ae==null?void 0:ae.length)>0&&await Nr.batchAddInsofDataApi({dataList:ae})}else if(!(se!=null&&se[1])&&(Le==null?void 0:Le.comp)==="Form"){let Da=A.cloneDeep(Le);Da.compData=(ba=(te=A.cloneDeep(Da))==null?void 0:te.compData)==null?void 0:ba.map(ke=>{var ae,ze;return(ke==null?void 0:ke.key)==="formContent"&&(ke.contents=(ze=(ae=A.cloneDeep(ke))==null?void 0:ae.contents)==null?void 0:ze.map(Oe=>{var Me,ya;return(Me=A.cloneDeep(me))!=null&&Me[Oe==null?void 0:Oe.key]&&(Oe.value=(ya=A.cloneDeep(me))==null?void 0:ya[Oe==null?void 0:Oe.key]),Oe})),ke});const aa=await Nr.getInsofDataApi({key:{type:"structure",pageKey:N,systemKey:sessionStorage.getItem("systemKey")}});let $a="";((Ne=aa==null?void 0:aa.data)==null?void 0:Ne.type)==="success"&&((Aa=(Xe=aa==null?void 0:aa.data)==null?void 0:Xe.result)==null||Aa.forEach(ke=>{var ae,ze;((ze=(ae=ke==null?void 0:ke.value)==null?void 0:ae.pageData)==null?void 0:ze.name)===(se==null?void 0:se[0])&&($a=ke.id)}),await Nr.updateInsofDataApi({id:$a,value:{pageData:Da}}))}}},Q=async me=>{var N,se,U,Se,Le,Fe,ia,Ba,ee,da,ie,fa,Ee,ne;c.setImportLoading(!0);try{if(me.api){let Ae=new WeakMap,We=await ue.getItemData((x==null?void 0:x.value)===""?E.value:x==null?void 0:x.value,sessionStorage.getItem("systemKey"),"",!1,"","",Ae),ua="";if(We=We==null?void 0:We.map(la=>{var te,ba,Ne,Xe,Aa,Da,aa,$a,ke,ae,ze,Oe;if((la==null?void 0:la.comp)==="Form")la.compData=(te=la.compData)==null?void 0:te.map(Me=>{var ya;return(Me==null?void 0:Me.key)==="formContent"&&(Me.contents=(ya=Me.contents)==null?void 0:ya.map(xa=>{var qe;if((xa==null?void 0:xa.value)===""&&(xa==null?void 0:xa.type)==="Select"){let Je=ue.judgeContents((qe=A.cloneDeep(xa))==null?void 0:qe.optionUrl,Ae);xa.value=xa.value||Je}return xa})),Me});else if((la==null?void 0:la.comp)==="Table"&&(ba=la.compData)!=null&&ba.find(Me=>(Me==null?void 0:Me.key)==="pageColumn")){let Me=(Xe=(Ne=la.compData)==null?void 0:Ne.find(Je=>(Je==null?void 0:Je.key)==="pageColumn"))==null?void 0:Xe.contents,ya=((Da=(Aa=la.compData)==null?void 0:Aa.find(Je=>(Je==null?void 0:Je.key)==="pageGroup"))==null?void 0:Da.contents)??"",xa=(ke=($a=(aa=Me==null?void 0:Me.split("["))==null?void 0:aa[1])==null?void 0:$a.split("]"))==null?void 0:ke[0];ua=((ae=Me==null?void 0:Me.split("["))==null?void 0:ae[0])+((Oe=(ze=M.value)==null?void 0:ze.find(Je=>(Je==null?void 0:Je.key)===xa))==null?void 0:Oe.value)}return la}),!(ua===""||ua==="")){const la=await ue.getItemData(ua,sessionStorage.getItem("systemKey"),"",!1,"","",Ae);We=We==null?void 0:We.map(te=>{var ba,Ne,Xe,Aa,Da,aa,$a,ke,ae,ze,Oe,Me,ya;if((te==null?void 0:te.comp)==="Table"&&(ba=te.compData)!=null&&ba.find(xa=>(xa==null?void 0:xa.key)==="pageColumn")){let xa=(Xe=(Ne=te.compData)==null?void 0:Ne.find(de=>(de==null?void 0:de.key)==="pageColumn"))==null?void 0:Xe.contents,qe=((Da=(Aa=te.compData)==null?void 0:Aa.find(de=>(de==null?void 0:de.key)==="pageGroup"))==null?void 0:Da.contents)??"",Je=(ke=($a=(aa=xa==null?void 0:xa.split("["))==null?void 0:aa[1])==null?void 0:$a.split("]"))==null?void 0:ke[0],Ue=((ae=xa==null?void 0:xa.split("["))==null?void 0:ae[0])+((Oe=(ze=M.value)==null?void 0:ze.find(de=>(de==null?void 0:de.key)===Je))==null?void 0:Oe.value),_e=(Me=la==null?void 0:la.find(de=>(de==null?void 0:de.name)===(qe===""?t==null?void 0:t.compName:qe)))==null?void 0:Me.compData;te.compData=(ya=te.compData)==null?void 0:ya.map(de=>{var Oa;return(de==null?void 0:de.key)==="tableContents"&&(de.contents=(Oa=_e==null?void 0:_e.find(La=>(La==null?void 0:La.key)==="tableContents"))==null?void 0:Oa.contents),de})}return te})}let Ga={};if(((se=(N=me==null?void 0:me.extraValues)==null?void 0:N.input)==null?void 0:se.length)>0){const la=(Se=(U=me==null?void 0:me.extraValues)==null?void 0:U.input)==null?void 0:Se.map(async te=>{var ba;ce!=null&&ce.find(Ne=>Ne===te)?Ga=await oe(te,We):Ga[Object.keys(te)[0]]=await oe((ba=Object.values(te))==null?void 0:ba[0],We,Ae)});await Promise.all(la)}else Ga=await oe("/",We);let L=!1;(Fe=(Le=me==null?void 0:me.extraValues)==null?void 0:Le.output)==null||Fe.forEach(la=>{var te,ba;(ba=(te=Object.values(la))==null?void 0:te[0])!=null&&ba.includes(".doc")&&(L=!0)});let H;if(L){const la=A.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});H=await Ha.axios.post(me.api,Ga,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{la.close()})}else H=await Ha.axios.post(me.api,Ga,{headers:{"Content-Type":"application/json"}});let J=(da=(ee=(Ba=(ia=A.cloneDeep(me))==null?void 0:ia.extraValues)==null?void 0:Ba.output)==null?void 0:ee.map(la=>{var te,ba,Ne,Xe,Aa,Da,aa,$a,ke,ae,ze,Oe,Me,ya,xa,qe;if(!((ba=(te=Object.values(la))==null?void 0:te[0])!=null&&ba.includes(".doc"))){let Je=(ae=(ke=($a=(Xe=A.cloneDeep((Ne=Object.values(la))==null?void 0:Ne[0]))==null?void 0:Xe.split("["))==null?void 0:$a[((aa=(Da=A.cloneDeep((Aa=Object.values(la))==null?void 0:Aa[0]))==null?void 0:Da.split("["))==null?void 0:aa.length)-1])==null?void 0:ke.split("]"))==null?void 0:ae[0],Ue=Je==null?void 0:Je.split(":"),_e=(Me=A.cloneDeep((ze=Object.values(la))==null?void 0:ze[0]))==null?void 0:Me.substring(0,A.cloneDeep((Oe=Object.values(la))==null?void 0:Oe[0]).lastIndexOf("["));if(_e=(xa=A.cloneDeep(_e))==null?void 0:xa.slice(0,((ya=A.cloneDeep(_e))==null?void 0:ya.length)-1),_e!=null&&_e.includes("[")){let de="";if((qe=ue.contentTransArrayToAll(_e,"/"))==null||qe.forEach(Oa=>{var La,gl,zl,tl,jl,Pa,Il;if(!(Oa!=null&&Oa.includes("[")))de=de===""?de+Oa.replaceAll("/",""):de+"/"+Oa.replaceAll("/","");else{let Vl=A.cloneDeep(Oa).slice(1,((La=A.cloneDeep(Oa))==null?void 0:La.length)-1),Ma=(Pa=(jl=(tl=(zl=(gl=A.cloneDeep(Vl))==null?void 0:gl.split("["))==null?void 0:zl[1])==null?void 0:tl.split("]"))==null?void 0:jl[0])==null?void 0:Pa.split(":"),el="",sl=(Il=We==null?void 0:We.find(ol=>(ol==null?void 0:ol.name)===(Ma==null?void 0:Ma[0])))==null?void 0:Il.compData;sl==null||sl.forEach(ol=>{var Va;(ol==null?void 0:ol.key)==="formContent"&&((Va=ol==null?void 0:ol.contents)==null||Va.forEach(dl=>{(dl==null?void 0:dl.key)===(Ma==null?void 0:Ma[1])&&(el=dl==null?void 0:dl.value)}))}),de=de===""?de+el.replaceAll("/",""):de+"/"+el.replaceAll("/","")}}),_e=de,_e[(_e==null?void 0:_e.length)-1]!=="/")return _e}}}))==null?void 0:da.filter(la=>la);J=[...new Set(A.cloneDeep(J))];let ve=J==null?void 0:J.map(async la=>{let te=await ue.getItemData(la,sessionStorage.getItem("systemKey"),"",!1,"","",Ae);if((te==null?void 0:te.length)===0)return await ue.getParentContents(la)});await Promise.all(ve);let he=[],ga=(Ee=(fa=(ie=A.cloneDeep(me))==null?void 0:ie.extraValues)==null?void 0:fa.output)==null?void 0:Ee.map(async la=>{var $a,ke,ae,ze,Oe,Me,ya,xa,qe,Je,Ue,_e,de,Oa,La,gl,zl,tl,jl,Pa,Il,Vl,Ma,el,sl,ol,Va,dl,rl,X,ra,ea,fe,ka,ha,Ye,ta,va,pl,He,ca,oa,Za,Re,Te,_l,Ll,Wl,Kl,Ql,pr,Rl,fr,$r,Hl,ar,Vr,Tr,Fr,Mr,Sr,Er,yn,Dr,ur,gn,ln,rn,Sn,Tn;if((ke=($a=Object.values(la))==null?void 0:$a[0])!=null&&ke.includes(".doc")){var te=new Blob([H.data],{type:"application/octet-stream;charset=UTF-8"}),ba=H.headers["content-disposition"],Ne=new RegExp("filename=([^;]+\\.[^\\.;]+);*"),Xe=Ne.exec(ba),Aa=Xe==null?void 0:Xe[1],Da=document.createElement("a"),aa=window.URL.createObjectURL(te);v.value=[{name:Aa,blobUrl:aa}],s.value=!0}else{let pn=(Je=(qe=(xa=(ze=A.cloneDeep((ae=Object.values(la))==null?void 0:ae[0]))==null?void 0:ze.split("["))==null?void 0:xa[((ya=(Me=A.cloneDeep((Oe=Object.values(la))==null?void 0:Oe[0]))==null?void 0:Me.split("["))==null?void 0:ya.length)-1])==null?void 0:qe.split("]"))==null?void 0:Je[0],lr=pn==null?void 0:pn.split(":"),Ol=(de=A.cloneDeep((Ue=Object.values(la))==null?void 0:Ue[0]))==null?void 0:de.substring(0,A.cloneDeep((_e=Object.values(la))==null?void 0:_e[0]).lastIndexOf("["));if(Ol!=null&&Ol.includes("[")?Ol=(La=A.cloneDeep(Ol))==null?void 0:La.slice(0,((Oa=A.cloneDeep(Ol))==null?void 0:Oa.length)-1):Ol===""&&(Ol=E.value),Ol=Ol.replaceAll("<","[").replaceAll(">","]"),Ol!=null&&Ol.includes("[")){let cl="";(gl=ue.contentTransArrayToAll(Ol,"/"))==null||gl.forEach((cr,Fl)=>{var _r,Yl,hr,Or,bn,Nn,kn,Un,Ln,xn,An;if(!(cr!=null&&cr.includes("[")))cl=cl===""?cl+cr.replaceAll("/",""):cl+"/"+cr.replaceAll("/","");else{let Rn="",Qr="";(_r=A.cloneDeep(cr))!=null&&_r.includes("]")?(Rn=A.cloneDeep(cr).slice(1,((Yl=A.cloneDeep(cr))==null?void 0:Yl.length)-1),Qr=(kn=(Nn=(bn=(Or=(hr=A.cloneDeep(Rn))==null?void 0:hr.split("["))==null?void 0:Or[1])==null?void 0:bn.split("]"))==null?void 0:Nn[0])==null?void 0:kn.split(":")):(Rn=A.cloneDeep(cr).slice(1,(Un=A.cloneDeep(cr))==null?void 0:Un.length),Qr=(Ln=A.cloneDeep(Rn))==null?void 0:Ln.split("/"));let zn="",qn=(xn=We==null?void 0:We.find(Lr=>(Lr==null?void 0:Lr.name)===(Qr==null?void 0:Qr[0])))==null?void 0:xn.compData;qn==null||qn.forEach(Lr=>{var Wn;(Lr==null?void 0:Lr.key)==="formContent"&&((Wn=Lr==null?void 0:Lr.contents)==null||Wn.forEach(fn=>{(fn==null?void 0:fn.key)===(Qr==null?void 0:Qr[1])&&(zn=fn==null?void 0:fn.value)}))}),((An=ue.contentTransArrayToAll(Ol,"/"))==null?void 0:An.length)-1!==Fl?cl=cl===""?cl+zn.replaceAll("/",""):cl+"/"+zn.replaceAll("/",""):cl=cl+n.value+zn.replaceAll("/","")}}),(zl=E.value)!=null&&zl.includes(cl)?Ol=E.value:Ol=cl}let Ar=A.cloneDeep((tl=Object.keys(la))==null?void 0:tl[0]);if(((jl=H==null?void 0:H.data)==null?void 0:jl.statusCode)===200||((Pa=H==null?void 0:H.data)==null?void 0:Pa.code)===200){if(((Vl=(Il=H==null?void 0:H.data)==null?void 0:Il.data)!=null&&Vl[Ar]||(el=(Ma=H==null?void 0:H.data)==null?void 0:Ma.result)!=null&&el[Ar])&&(lr==null?void 0:lr.length)===1)return await pe(((ol=(sl=H==null?void 0:H.data)==null?void 0:sl.data)==null?void 0:ol[Ar])||((dl=(Va=H==null?void 0:H.data)==null?void 0:Va.result)==null?void 0:dl[Ar]),A.cloneDeep(Ol),lr,ua);if((X=(rl=H==null?void 0:H.data)==null?void 0:rl.data)!=null&&X[Ar]||(ea=(ra=H==null?void 0:H.data)==null?void 0:ra.result)!=null&&ea[Ar]){let cl=await ye(((ka=(fe=H==null?void 0:H.data)==null?void 0:fe.data)==null?void 0:ka[Ar])||((Ye=(ha=H==null?void 0:H.data)==null?void 0:ha.result)==null?void 0:Ye[Ar]),A.cloneDeep(Ol),lr);return cl&&(he=[...he,...cl]),cl}else{if(!((ta=H==null?void 0:H.data)!=null&&ta.data)){let cl=await ue.getItemData(E.value,sessionStorage.getItem("systemKey"),"",!1,"","",Ae);cl=cl==null?void 0:cl.map(Fl=>{var _r;return(Fl==null?void 0:Fl.name)===(lr==null?void 0:lr[0])&&(Fl.compData=(_r=Fl.compData)==null?void 0:_r.map(Yl=>{var hr;return(Yl==null?void 0:Yl.key)==="formContent"&&(Yl.contents=(hr=Yl.contents)==null?void 0:hr.map(Or=>{var bn,Nn;return(Or==null?void 0:Or.key)===(lr==null?void 0:lr[1])&&(Or.value=(Nn=(bn=H==null?void 0:H.data)==null?void 0:bn.result)==null?void 0:Nn[Ar==null?void 0:Ar.replaceAll(":","")]),Or})),Yl})),Fl});let cr=[];(va=cl==null?void 0:cl.filter(Fl=>(Fl==null?void 0:Fl.comp)==="Form"))==null||va.forEach(async Fl=>{let _r={};for(let Yl in Fl)Yl!=="id"&&(_r[Yl]=Fl[Yl]);cr.push({id:Fl==null?void 0:Fl.id,value:{pageData:_r}})}),(cr==null?void 0:cr.length)>0&&await Nr.batchUpdateInsofDataApi({dataList:cr});return}if((lr==null?void 0:lr.length)===1){const cl=(ca=(He=(pl=H==null?void 0:H.data)==null?void 0:pl.data)==null?void 0:He.path)==null?void 0:ca.path;let cr="";(_l=(Te=(Re=(Za=(oa=cl==null?void 0:cl.split("("))==null?void 0:oa[1])==null?void 0:Za.split(")"))==null?void 0:Re[0])==null?void 0:Te.split(":"))==null||_l.forEach(Yl=>{var hr,Or;cr=cr===""?cr+((hr=Yl==null?void 0:Yl.replaceAll("'",""))==null?void 0:hr.trim()):cr+"/"+((Or=Yl==null?void 0:Yl.replaceAll("'",""))==null?void 0:Or.trim())});let Fl=[(pr=(Ql=(Kl=(Wl=(Ll=cl==null?void 0:cl.split("<"))==null?void 0:Ll[1])==null?void 0:Wl.split(">"))==null?void 0:Kl[0])==null?void 0:Ql.replaceAll("'",""))==null?void 0:pr.trim()],_r;return($r=(fr=(Rl=H==null?void 0:H.data)==null?void 0:Rl.data)==null?void 0:fr.data)!=null&&$r[lr==null?void 0:lr[0]]?_r=await pe((Vr=(ar=(Hl=H==null?void 0:H.data)==null?void 0:Hl.data)==null?void 0:ar.data)==null?void 0:Vr[lr==null?void 0:lr[0]],cr,lr,ua):_r=await Ie((Fr=(Tr=H==null?void 0:H.data)==null?void 0:Tr.data)==null?void 0:Fr.data,cr,Fl,Ae),_r}else{const cl=(Er=(Sr=(Mr=H==null?void 0:H.data)==null?void 0:Mr.data)==null?void 0:Sr.path)==null?void 0:Er.path;let cr="";return(ln=(gn=(ur=(Dr=(yn=cl==null?void 0:cl.split("("))==null?void 0:yn[1])==null?void 0:Dr.split(")"))==null?void 0:ur[0])==null?void 0:gn.split(":"))==null||ln.forEach(_r=>{var Yl,hr;cr=cr===""?cr+((Yl=_r==null?void 0:_r.replaceAll("'",""))==null?void 0:Yl.trim()):cr+"/"+((hr=_r==null?void 0:_r.replaceAll("'",""))==null?void 0:hr.trim())}),await ye((Tn=(Sn=(rn=H==null?void 0:H.data)==null?void 0:rn.data)==null?void 0:Sn.data)==null?void 0:Tn[lr==null?void 0:lr[0]],cr,lr)}}}}});if(await Promise.all(ga),(he==null?void 0:he.length)>0){let la=[];he==null||he.forEach(Ne=>{la!=null&&la.find(Xe=>{var Aa,Da,aa,$a;return((Da=(Aa=Xe==null?void 0:Xe.value)==null?void 0:Aa.pageData)==null?void 0:Da.name)===(($a=(aa=Ne==null?void 0:Ne.value)==null?void 0:aa.pageData)==null?void 0:$a.name)})||la.push(Ne)});let te=[];la==null||la.forEach(Ne=>{var Da,aa,$a,ke;let Xe=A.cloneDeep(Ne);Xe.value.pageData.compData=(Da=Xe.value.pageData.compData)==null?void 0:Da.map(ae=>{var ze;return(ae==null?void 0:ae.key)==="formContent"&&(ae.contents=(ze=ae.contents)==null?void 0:ze.map(Oe=>{var ya,xa,qe,Je;let Me=(ya=A.cloneDeep(he))==null?void 0:ya.find(Ue=>(Ue==null?void 0:Ue.keyType)===(Oe==null?void 0:Oe.key));if(Me){let Ue=(Je=(qe=(xa=Me.value.pageData.compData)==null?void 0:xa.find(_e=>(_e==null?void 0:_e.key)==="formContent"))==null?void 0:qe.contents)==null?void 0:Je.find(_e=>(_e==null?void 0:_e.key)===(Oe==null?void 0:Oe.key));Oe.value=Ue==null?void 0:Ue.value}return Oe})),ae}),te.push({id:Xe==null?void 0:Xe.id,value:Xe==null?void 0:Xe.value});let Aa=[];(ke=($a=(aa=Xe==null?void 0:Xe.value)==null?void 0:aa.pageData)==null?void 0:$a.compData)==null||ke.forEach(ae=>{var ze;(ae==null?void 0:ae.key)==="formContent"&&((ze=ae==null?void 0:ae.contents)==null||ze.forEach(Oe=>{var Me,ya,xa,qe,Je,Ue;if((ya=(Me=Oe==null?void 0:Oe.optionUrl)==null?void 0:Me.menuSelect)!=null&&ya.find(_e=>_e==null?void 0:_e.includes("[")))if(Aa!=null&&Aa.find(_e=>{var de,Oa,La;return((de=_e==null?void 0:_e.key)==null?void 0:de.join(","))===((La=(Oa=Oe==null?void 0:Oe.optionUrl)==null?void 0:Oa.menuSelect)==null?void 0:La.join(","))})){let _e=(xa=Aa==null?void 0:Aa.find(de=>{var Oa,La,gl;return((Oa=de==null?void 0:de.key)==null?void 0:Oa.join(","))===((gl=(La=Oe==null?void 0:Oe.optionUrl)==null?void 0:La.menuSelect)==null?void 0:gl.join(","))}))==null?void 0:xa.value;_e.push({key:Oe==null?void 0:Oe.prop,groups:(qe=Oe==null?void 0:Oe.optionUrl)==null?void 0:qe.groupSelect,value:Oe==null?void 0:Oe.value}),Aa=Aa==null?void 0:Aa.map(de=>{var Oa,La,gl;return((Oa=de==null?void 0:de.key)==null?void 0:Oa.join(","))===((gl=(La=Oe==null?void 0:Oe.optionUrl)==null?void 0:La.menuSelect)==null?void 0:gl.join(","))&&(de.value=_e),de})}else Aa.push({key:(Je=Oe==null?void 0:Oe.optionUrl)==null?void 0:Je.menuSelect,value:[{key:Oe==null?void 0:Oe.prop,groups:(Ue=Oe==null?void 0:Oe.optionUrl)==null?void 0:Ue.groupSelect,value:Oe==null?void 0:Oe.value}]})}))}),(Aa==null?void 0:Aa.length)>0&&(Aa=Aa==null?void 0:Aa.map(ae=>{var Oe;let ze="";return(Oe=ae==null?void 0:ae.key)==null||Oe.forEach(Me=>{var ya;if(!(Me!=null&&Me.includes("[")))ze=ze===""?ze+Me:ze+"/"+Me;else{let xa="",qe=(ya=Me==null?void 0:Me.replaceAll("[","").replaceAll("]",""))==null?void 0:ya.split(":");We==null||We.forEach(Je=>{var Ue;(Je==null?void 0:Je.name)===(qe==null?void 0:qe[0])&&((Ue=Je==null?void 0:Je.compData)==null||Ue.forEach(_e=>{var de;(_e==null?void 0:_e.key)==="formContent"&&((de=_e==null?void 0:_e.contents)==null||de.forEach(Oa=>{(Oa==null?void 0:Oa.prop)===(qe==null?void 0:qe[1])&&(xa=Oa==null?void 0:Oa.value)}))}))}),ze=ze+n.value+xa}}),ae.key=ze,ae})),Aa==null||Aa.forEach(ae=>{var ya,xa,qe;let ze=(ya=Ae[ae.key])==null?void 0:ya.find(Je=>{var Ue,_e,de,Oa,La,gl,zl;return((_e=(Ue=Je==null?void 0:Je.value)==null?void 0:Ue.pageData)==null?void 0:_e.name)===((La=(Oa=(de=ae==null?void 0:ae.value)==null?void 0:de[0])==null?void 0:Oa.groups)==null?void 0:La[0])&&((zl=(gl=Je==null?void 0:Je.value)==null?void 0:gl.pageData)==null?void 0:zl.name)!==void 0}),Oe=ze==null?void 0:ze.id,Me=(xa=ze==null?void 0:ze.value)==null?void 0:xa.pageData;Me.compData=(qe=Me.compData)==null?void 0:qe.map(Je=>{var Ue;return(Je==null?void 0:Je.key)==="formContent"&&(Je.contents=(Ue=Je.contents)==null?void 0:Ue.map(_e=>{var Oa;let de=(Oa=ae.value)==null?void 0:Oa.find(La=>(La==null?void 0:La.key)===(_e==null?void 0:_e.prop));return de&&(_e.value=de.value),_e})),Je}),te.push({id:Oe,value:{pageData:Me}})})});let ba=(ne=A.cloneDeep(he))==null?void 0:ne[0];(te==null?void 0:te.length)>0&&await Nr.batchUpdateInsofDataApi({dataList:te})}y.setFreshContent(!0)}c.setImportLoading(!1)}catch{Ha.ElMessage.error("方法执行错误,请查看方法!"),c.setImportLoading(!1)}_.value=!0},ce=["createInsofDataApi"],Be=Bl.debounce(async me=>{Q(me)},100),Ve=async me=>{var Fe,ia,Ba;const N=A.cloneDeep(me);let se,U=new WeakMap;me!=null&&me[0].path&&(se=await(N==null?void 0:N.map(async(ee,da)=>{var Ga,L,H,J,ve,he,ga,la,te,ba,Ne,Xe,Aa,Da,aa,$a;const fa=(Ga=U[ee==null?void 0:ee.path])==null?void 0:Ga.filter(ke=>{var ae;return((ae=ke==null?void 0:ke.key)==null?void 0:ae.type)==="data"});let Ee="";const ne=await ue.getItemData(E.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,U);fa==null||fa.forEach(ke=>{var ae,ze,Oe,Me,ya;((ze=(ae=ke==null?void 0:ke.value)==null?void 0:ae.tableData)==null?void 0:ze.算法名称)===((Oe=N==null?void 0:N[da])==null?void 0:Oe.method)&&(Ee=(ya=(Me=ke==null?void 0:ke.value)==null?void 0:Me.tableData)==null?void 0:ya.算法体)});const Ae=await ue.getItemData(ee==null?void 0:ee.path,sessionStorage.getItem("systemKey"),"",!1,[],!1,U);let We="",ua=(ve=(J=(H=(L=Ae==null?void 0:Ae[0])==null?void 0:L.compData)==null?void 0:H.find(ke=>(ke==null?void 0:ke.key)==="header"))==null?void 0:J.contents)==null?void 0:ve.findIndex(ke=>(ke==null?void 0:ke.prop)==="算法体");return(ga=(he=Ae==null?void 0:Ae[0])==null?void 0:he.compData)==null||ga.forEach(ke=>{var ae;(ke==null?void 0:ke.key)==="tableContents"&&((ae=ke==null?void 0:ke.contents)==null||ae.forEach(ze=>{ze!=null&&ze.find(Oe=>Oe===(ee==null?void 0:ee.method))&&(We=ze[ua])}))}),{buttonName:((la=N==null?void 0:N[da])==null?void 0:la.method)||((Ne=(ba=(te=fa==null?void 0:fa[0])==null?void 0:te.value)==null?void 0:ba.tableData)==null?void 0:Ne.算法名称),api:(Ee===""?(Da=(Aa=(Xe=fa==null?void 0:fa[0])==null?void 0:Xe.value)==null?void 0:Aa.tableData)==null?void 0:Da.算法体:Ee)||We,content:ne==null?void 0:ne.filter(ke=>ke.comp!=="methodButton"),extraContent:(aa=A.cloneDeep(ee.value))==null?void 0:aa.slice(1),methodName:(ee==null?void 0:ee.path)??"",extraValues:($a=N==null?void 0:N[da])==null?void 0:$a.data}})));const Se=N==null?void 0:N.map(async ee=>{var Ae,We,ua,Ga,L,H;const da=(Ae=resAll.data.result)==null?void 0:Ae.filter(J=>{var ve,he,ga;return((ve=J==null?void 0:J.key)==null?void 0:ve.parentTable)===""&&((he=J==null?void 0:J.key)==null?void 0:he.type)==="method"&&((ga=J==null?void 0:J.key)==null?void 0:ga.methodName)===J.method}),ie=da==null?void 0:da[0],fa=(We=resAll.data.result)==null?void 0:We.filter(J=>{var ve,he;return((ve=J==null?void 0:J.key)==null?void 0:ve.type)==="methodData"&&((he=J==null?void 0:J.key)==null?void 0:he.tableId)===(ie==null?void 0:ie.id)}),Ee=await ue.getItemData(E.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,U),ne=fa==null?void 0:fa[0];return{buttonName:(ua=ie==null?void 0:ie.key)==null?void 0:ua.methodKey,api:(L=(Ga=ne==null?void 0:ne.value)==null?void 0:Ga.tableData)==null?void 0:L[0],content:Ee==null?void 0:Ee.filter(J=>J.comp!=="methodButton"),extraContent:(H=A.cloneDeep(ee.value))==null?void 0:H.slice(1),methodName:(ee==null?void 0:ee.method)??""}}),Le=(Fe=me==null?void 0:me[0])!=null&&Fe.path&&((ia=me==null?void 0:me[0])==null?void 0:ia.path)!==""?await Promise.all(se):await Promise.all(Se);l.value=Le==null?void 0:Le.filter(ee=>ee==null?void 0:ee.extraContent),(Ba=l.value)==null||Ba.forEach(ee=>{var da;ee.api===""&&((da=ee.content)==null||da.forEach(ie=>{var fa;ie.comp=="Table"&&y.setExtraContents(ue.methodTableToContent(ie.compData,(fa=ee.extraContent)==null?void 0:fa[0]))}))})};return e.watch(()=>t.itemData,async()=>{k.value=="view"&&!_.value&&await Ve(A.cloneDeep(t.itemData)),_.value=!1},{immediate:!0,deep:!0}),(me,N)=>{var se,U,Se;return e.unref(k)!=="edit"?(e.openBlock(),e.createElementBlock("div",Qh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((se=l.value)==null?void 0:se.filter(Le=>(Le==null?void 0:Le.buttonName)!=="保存"),Le=>{var Fe;return e.openBlock(),e.createElementBlock("div",null,[Le.api!==""?(e.openBlock(),e.createBlock(e.unref(rs._sfc_main),{key:0,disabled:e.unref(R)===e.unref(E)&&!((Fe=Le==null?void 0:Le.buttonName)!=null&&Fe.includes("预览")),class:"calculator-content",modelValue:Le.buttonName,onClickTrigger:ia=>e.unref(Be)(Le),loading:g.value},null,8,["disabled","modelValue","onClickTrigger","loading"])):e.createCommentVNode("",!0)])}),256)),e.createElementVNode("div",null,[e.unref(W)!==""&&((Se=e.unref(E))==null?void 0:Se[((U=e.unref(E))==null?void 0:U.length)-1])!==e.unref(n)?(e.openBlock(),e.createBlock(e.unref(rs._sfc_main),{key:0,class:"calculator-content",onClickTrigger:$,modelValue:"保存"})):e.createCommentVNode("",!0)]),s.value?(e.openBlock(),e.createBlock(ll.ssFilePreview,{key:0,fileDataList:v.value,onDestroy:F},null,8,["fileDataList"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}}},a4=Zl._export_sfc(e4,[["__scopeId","data-v-063aa9af"]]),l4={};function r4(a,l){return" 567 "}const n4=Zl._export_sfc(l4,[["render",r4]]),i4={class:"module content"},o4={class:"module data"},t4={class:"module layout"},s4={class:"form-content"},c4=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const r=a,n=l,t=e.reactive({visible:!1,width:"40%",title:"签名配置"}),s=e.ref("create"),v=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),f=e.ref([{label:"宽度(%):",prop:"signPadWidth",type:"number",value:"30"},{label:"弹窗名称:",prop:"dialogTitle",type:"input",value:""},{label:"弹窗宽度(%):",prop:"dialogWidth",type:"number",value:"30"},{label:"弹窗显示:",prop:"dialogShow",type:"radio",contents:[{label:"显示",value:!0},{label:"隐藏",value:!1}],value:!1,isFormColHidden:!0},{label:"路径:",prop:"url",type:"input",value:"",isFormColHidden:!0}]),d=e.computed(()=>[{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"类型:",prop:"label",type:"select",contents:[{label:"电子签名",value:"电子签名"},{label:"签字版",value:"签字版"},{label:"上传签名",value:"上传签名"}],value:""},{label:"图标",prop:"icon",type:"inputPopover",value:""}]),y=e.ref({}),g=e.ref([]),c=()=>({comp:"Signature",compData:[{key:"signTypeList",contents:g.value},{key:"signConfig",contents:y.value}]}),D=M=>{var R;y.value=A.cloneDeep(M),n("change",(R=c())==null?void 0:R.compData)},I=M=>{var R,j;if((M==null?void 0:M.buttonName)==="确认"){const E=A.cloneDeep(M==null?void 0:M.content);switch(s.value){case"create":g.value.push({...E,index:((R=g.value)==null?void 0:R.length)+1});break}n("change",(j=c())==null?void 0:j.compData),t.visible=!1}else t.visible=!1},k=(M,R)=>{var j,E;switch(M){case"create":(j=d.value)==null||j.forEach(w=>{w.value=""}),s.value="create",t.visible=!0;break;case"update":(E=d.value)==null||E.forEach(w=>{w.value=R[w==null?void 0:w.prop]}),s.value="update",t.visible=!0;break;case"delete":g.value.splice(R,1),s.value="delete";break}},W=()=>{t.visible=!1};return e.watch(()=>r==null?void 0:r.itemContents,M=>{var R,j;M&&(y.value=((R=M==null?void 0:M.find(E=>E.key==="signConfig"))==null?void 0:R.contents)??{},g.value=((j=M==null?void 0:M.find(E=>E.key==="signTypeList"))==null?void 0:j.contents)??[])},{immediate:!0}),(M,R)=>{const j=e.resolveComponent("svg-icon"),E=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",i4,[R[2]||(R[2]=e.createElementVNode("h4",{class:"module-title"},"签名类型",-1)),e.createVNode(E,{class:"module-icon",id:"themeButton",onClick:R[0]||(R[0]=w=>k("create"))},{icon:e.withCtx(()=>[e.createVNode(j,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[R[1]||(R[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",o4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(w,x)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:x},[e.createElementVNode("span",null,e.toDisplayString(w==null?void 0:w.label),1),e.createElementVNode("div",null,[e.createVNode(E,{type:"primary",size:"small",onClick:b=>k("update",{...w,index:x+1})},{default:e.withCtx(()=>R[3]||(R[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(E,{type:"danger",size:"small",onClick:b=>k("delete",x)},{default:e.withCtx(()=>R[4]||(R[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",t4,[e.createVNode(ll.ssForm,{rowContents:f.value,onChange:D},null,8,["rowContents"])])]),e.createVNode(wr.ssDialog,{visible:t.visible,title:t.title,onBeforeDestroy:W,width:t.width},{default:e.withCtx(()=>[e.createElementVNode("div",s4,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:d.value,key:d.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:v.value,onOnButtonClick:I},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),u4=Zl._export_sfc(c4,[["__scopeId","data-v-487e0536"]]),d4=e.defineComponent({__name:"index",props:{stepConfig:{type:Object,default:{}},stepList:{type:Array,default:()=>[]}},emits:["clickStep","clickTrigger","changeTrigger"],setup(a,{emit:l}){const r=a,n=l,t=e.ref(0),s=e.computed(()=>{var c,D;return(c=r==null?void 0:r.stepConfig)!=null&&c.allowTrigger?t.value:(D=r==null?void 0:r.stepConfig)==null?void 0:D.active}),v=(c,D)=>{t.value=D-1,n("clickStep",c,D)};e.onMounted(()=>{var c;n("clickStep",(c=r==null?void 0:r.stepList)==null?void 0:c[0],0)});const f=c=>ll.getComponent(c),d=()=>{var D;const c=(D=r==null?void 0:r.stepList)==null?void 0:D.find((I,k)=>k+1===s.value);return console.log("findStep",c),c?c==null?void 0:c.children:[]},y=c=>{n("clickTrigger",c)},g=c=>{n("changeTrigger",c)};return(c,D)=>{var W,M,R,j,E;const I=e.resolveComponent("el-step"),k=e.resolveComponent("el-steps");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(k,{direction:(W=a.stepConfig)==null?void 0:W.direction,active:s.value,"finish-status":"success",simple:(M=a.stepConfig)==null?void 0:M.simple,"align-center":((R=a.stepConfig)==null?void 0:R.alignCenter)??!0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.stepList,(w,x)=>(e.openBlock(),e.createBlock(I,{key:x,class:"step-item",onClick:b=>v(w,x+1)},{title:e.withCtx(()=>[e.renderSlot(c.$slots,"title",{title:w==null?void 0:w.title},void 0,!0)]),description:e.withCtx(()=>[e.renderSlot(c.$slots,"description",{descriptions:w==null?void 0:w.description},void 0,!0)]),_:2},1032,["onClick"]))),128))]),_:3},8,["direction","active","simple","align-center"]),(j=a.stepConfig)!=null&&j.allowTrigger&&((E=a.stepConfig)!=null&&E.active)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(d(),(w,x)=>(e.openBlock(),e.createElementBlock("div",{key:x,class:"step-cont-wrap"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f(w==null?void 0:w.type)),{modelValue:w.value,"onUpdate:modelValue":b=>w.value=b,onClickTrigger:y,onChangeTrigger:g,content:w==null?void 0:w.content},e.createSlots({_:2},[e.renderList(c.$slots,(b,_)=>({name:_,fn:e.withCtx($=>[e.renderSlot(c.$slots,_,e.mergeProps({ref_for:!0},$||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"]))]))),128)):e.createCommentVNode("",!0)],64)}}}),p4=Zl._export_sfc(d4,[["__scopeId","data-v-fdbd6832"]]),f4=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]}},emits:["clickStep"],setup(a,{emit:l}){const r=a,n=l,t=e.ref({}),s=e.ref([]),v=(f,d)=>{n("clickStep",f,d)};return e.watch(()=>r==null?void 0:r.itemData,f=>{var c,D,I,k;t.value={direction:"horizontal",simple:!1,alignCenter:!0,allowTrigger:!0};let d=((c=f==null?void 0:f.find(W=>(W==null?void 0:W.key)==="stepName"))==null?void 0:c.contents)??[],y=[];(I=(D=f==null?void 0:f.find(W=>(W==null?void 0:W.key)==="header"))==null?void 0:D.contents)==null||I.forEach(W=>{y.push({label:W==null?void 0:W.label,prop:W==null?void 0:W.prop,name:W==null?void 0:W.prop,type:"text",disabled:!0})});let g=((k=f==null?void 0:f.find(W=>(W==null?void 0:W.key)==="tableContents"))==null?void 0:k.contents)??[];d=d==null?void 0:d.map((W,M)=>{let R=y==null?void 0:y.map(j=>{var E;return{...j,value:(E=g==null?void 0:g[M])==null?void 0:E[j==null?void 0:j.prop]}});return{title:W,description:R}}),s.value=d},{immediate:!0,deep:!0}),(f,d)=>{const y=e.resolveComponent("svg-icon");return e.openBlock(),e.createBlock(p4,{stepConfig:t.value,stepList:s.value,onClickStep:v},{icon:e.withCtx(()=>[e.createVNode(y,{name:"import"})]),title:e.withCtx(({title:g})=>[e.createTextVNode(e.toDisplayString(g),1)]),description:e.withCtx(({descriptions:g})=>[e.createVNode(ll.ssForm,{ref:"formRef",rowContents:g,showOperator:!0,isEnableWrap:!1,isEdit:!1},null,8,["rowContents"])]),_:1},8,["stepConfig","stepList"])}}}),h4=e.defineComponent({__name:"index",props:{activities:{type:Array,default:()=>[]},timeLineConfig:{type:Object,default:()=>{}}},setup(a){return(l,r)=>{const n=e.resolveComponent("el-timeline-item"),t=e.resolveComponent("el-timeline");return e.openBlock(),e.createBlock(t,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.activities,(s,v)=>(e.openBlock(),e.createBlock(n,{key:v,timestamp:s.timestamp,placement:a.timeLineConfig.placement,center:a.timeLineConfig.isCenter,"hide-timestamp":!0,type:a.timeLineConfig.type,color:a.timeLineConfig.color,size:a.timeLineConfig.size,icon:a.timeLineConfig.icon,hollow:a.timeLineConfig.isHollow},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"content",{content:s==null?void 0:s.content,timestamp:s==null?void 0:s.timestamp},void 0,!0)]),_:2},1032,["timestamp","placement","center","type","color","size","icon","hollow"]))),128))]),_:3})}}}),v4=Zl._export_sfc(h4,[["__scopeId","data-v-4172a886"]]),m4={class:"line-content"},y4={class:"line-time"},g4=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},setup(a){const l=a,r=e.ref({}),n=e.ref([]);return e.watch(()=>l==null?void 0:l.itemData,t=>{var s,v;n.value=(s=t==null?void 0:t.find(f=>(f==null?void 0:f.key)==="timeLineList"))==null?void 0:s.contents,r.value=(v=t==null?void 0:t.find(f=>(f==null?void 0:f.key)==="timeLineConfig"))==null?void 0:v.contents},{immediate:!0}),(t,s)=>(e.openBlock(),e.createBlock(v4,{activities:n.value,timeLineConfig:r.value},{content:e.withCtx(({content:v,timestamp:f})=>[e.createElementVNode("span",m4,e.toDisplayString(v),1),e.createElementVNode("span",y4,e.toDisplayString(f),1)]),_:1},8,["activities","timeLineConfig"]))}}),b4=Zl._export_sfc(g4,[["__scopeId","data-v-b4d9deed"]]),k4={class:"tabs-content"},x4=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},tabsData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,compNames:{type:String,default:""},cacheNewData:{type:Object},isDevMode:{type:Boolean},allMapContents:{type:Array,default:()=>[]}},emits:["change","contentChange","pageChange","rowClick","routeUrl","clickTrigger","clickMainKey"],setup(a,{emit:l}){const r=a,n=l,t=e.ref();e.watch(()=>r==null?void 0:r.itemData,()=>{t.value=r==null?void 0:r.itemData},{immediate:!0,deep:!0});const s=D=>{n("change",D)},v=(D,I)=>{n("contentChange",D,I)},f=D=>{n("pageChange",D)},d=D=>{n("rowClick",D)},y=(D,I)=>{n("routeUrl",D,I)},g=D=>{n("clickTrigger",D)},c=(D,I)=>{n("clickMainKey",D,I)};return(D,I)=>{var k,W;return e.openBlock(),e.createElementBlock("div",k4,[(k=t.value)!=null&&k.length?(e.openBlock(),e.createBlock(ll.ssTab,{tabsContents:t.value,key:(W=t.value)==null?void 0:W.length},{pane:e.withCtx(({tab:M,index:R})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Gi)(M==null?void 0:M.comp)),{related:M==null?void 0:M.relatedTables,compNames:r==null?void 0:r.compNames,compName:M==null?void 0:M.name,cacheNewData:r==null?void 0:r.cacheNewData,isDevMode:a.isDevMode,itemData:M==null?void 0:M.compData,childItemData:M==null?void 0:M.itemChildData,onChange:s,index:(M==null?void 0:M.id)??R,config:{showIndex:M==null?void 0:M.showIndex,allowMove:M==null?void 0:M.allowMove,viewport:M==null?void 0:M.viewport,status:M==null?void 0:M.status},onContentChange:v,onPageChange:f,onRowClick:d,onRouteUrl:y,parentTableId:M==null?void 0:M.tableId,allMapContents:a.allMapContents,children:M==null?void 0:M.children,level:1,onClickTrigger:g,onClickMainKey:c},null,40,["related","compNames","compName","cacheNewData","isDevMode","itemData","childItemData","index","config","parentTableId","allMapContents","children"]))]),_:1},8,["tabsContents"])):e.createCommentVNode("",!0)])}}}),w4=Zl._export_sfc(x4,[["__scopeId","data-v-1ea318b4"]]),_4={class:"type-select"},S4=["onClick"],E4={class:"list-icon"},C4={__name:"modelSelect",setup(a){const l=Hn(A.pinia),{itemData:r}=A.storeToRefs(l),n=t=>{const s=A.cloneDeep(r.value);s.push({comp:t.comp,name:t.name,compData:[]}),l.setItemData(s)};return(t,s)=>{const v=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",_4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ru),(f,d)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",key:d},[e.createElementVNode("div",{class:"list-content",onClick:y=>n(f)},[e.createElementVNode("div",E4,[e.createVNode(v,{name:f.icon},null,8,["name"])]),e.createElementVNode("div",null,e.toDisplayString(f.name),1)],8,S4)]))),128))])}}},D4=Zl._export_sfc(C4,[["__scopeId","data-v-91799bf8"]]),B4={class:"fill-content"},T4={class:"operate-content"},N4={class:"collapse-title-content"},A4={class:"collapse-title-item"},z4={key:1},M4=["onClick"],I4={class:"icon-content"},O4={key:0,class:"edit-content"},L4=["onClick"],R4={class:"comp-child"},$4={__name:"modelFill",setup(a){const l=Hn(A.pinia),{itemData:r,originalData:n}=A.storeToRefs(l),t=e.ref([]);e.ref([]);const s=e.ref([]),v=e.ref([]),f=I=>{var W;let k=(W=A.cloneDeep(v.value))==null?void 0:W.map((M,R)=>(I===R&&(M.content=!0),M));v.value=k},d=I=>{var W;let k=(W=A.cloneDeep(v.value))==null?void 0:W.map((M,R)=>(I===R&&(M.content=!1),M));v.value=k,t.value=A.cloneDeep(r.value)},y=(I,k)=>{var j;let W=(j=A.cloneDeep(v.value))==null?void 0:j.map((E,w)=>(I===w&&(E.content=!1),E));v.value=W;const M=A.cloneDeep(r.value),R=M==null?void 0:M.filter((E,w)=>(w===I&&(E.name=k),E));l.setOriginalData(R),l.setItemData(R)};e.watch(()=>r.value,()=>{var I,k,W;!r.value||((I=r.value)==null?void 0:I.length)===0?t.value=[]:t.value=(k=A.cloneDeep(r.value))==null?void 0:k.filter(M=>(M==null?void 0:M.comp)!=="methodButton"),s.value=t.value,v.value=(W=A.cloneDeep(s.value))==null?void 0:W.map((M,R)=>({id:R,content:!1}))},{deep:!0,immediate:!0});const g=I=>Ti(I),c=(I,k,W)=>{var R,j;if(!I)return;let M=A.cloneDeep(r.value);M=(R=M==null?void 0:M.map((E,w)=>(w===W&&(E.compData=I),E)))==null?void 0:R.filter(E=>(E==null?void 0:E.comp)!=="methodButton"),v.value=(j=A.cloneDeep(M))==null?void 0:j.map((E,w)=>({id:w,content:!1})),l.setOriginalData(M),l.setItemData(M)},D=I=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const k=A.cloneDeep(r.value),W=k==null?void 0:k.filter((M,R)=>R!==I);l.setOriginalData(W),l.setItemData(W),Ha.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(I,k)=>{const W=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",B4,[k[1]||(k[1]=e.createElementVNode("div",{class:"fill-operate"},e.toDisplayString("操作栏"),-1)),e.createElementVNode("div",T4,[e.createVNode(Js.default,{class:"collapse-content",collapseContents:t.value},{title:e.withCtx(({item:M,index:R})=>{var j,E,w,x,b,_,$,F,Y,oe;return[e.createElementVNode("div",N4,[e.createElementVNode("div",A4,[(E=(j=v.value)==null?void 0:j.find(ye=>ye.id===R))!=null&&E.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"collapse-title",style:e.normalizeStyle({marginRight:M.name&&M.name!==""?"8px":"0px"})},e.toDisplayString(M.name),5)),(x=(w=v.value)==null?void 0:w.find(ye=>ye.id===R))!=null&&x.content?(e.openBlock(),e.createElementBlock("div",z4,[e.createVNode(ll.ssInput,{modelValue:M.name,"onUpdate:modelValue":ye=>M.name=ye,onClick:k[0]||(k[0]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0),(_=(b=v.value)==null?void 0:b.find(ye=>ye.id===R))!=null&&_.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:e.withModifiers(ye=>f(R),["stop"]),class:"icon-content"},[e.createVNode(W,{name:"Edit",style:{width:"16px",height:"16px"}})],8,M4))]),e.createElementVNode("div",I4,[(F=($=v.value)==null?void 0:$.find(ye=>ye.id===R))!=null&&F.content?(e.openBlock(),e.createElementBlock("div",O4,[e.createVNode(W,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:e.withModifiers(ye=>d(R),["stop"])},null,8,["onClick"]),e.createVNode(W,{name:"Save",onClick:e.withModifiers(ye=>y(R,M.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):e.createCommentVNode("",!0),(oe=(Y=v.value)==null?void 0:Y.find(ye=>ye.id===R))!=null&&oe.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:e.withModifiers(ye=>D(R),["stop"]),class:"icon-content"},[e.createVNode(W,{name:"Delete",style:{width:"16px",height:"16px"}})],8,L4))])])]}),content:e.withCtx(({item:M,index:R})=>{var j,E;return[e.createElementVNode("div",R4,[e.createTextVNode(e.toDisplayString(g(M.comp+"Operate"))+" ",1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(g(M.comp+"Operate")),{itemContents:M==null?void 0:M.compData,originalItemContents:(E=(j=s.value)==null?void 0:j.find((w,x)=>x===R))==null?void 0:E.compData,onChange:w=>c(w,M,R)},null,40,["itemContents","originalItemContents","onChange"]))])]}),_:1},8,["collapseContents"])])])}}},V4=Zl._export_sfc($4,[["__scopeId","data-v-a46a44b9"]]),F4={key:0,class:"show-content"},P4={style:{display:"flex"}},j4={__name:"modelShow",setup(a){const l=Hn(A.pinia),{itemData:r}=A.storeToRefs(l),n=e.ref([]);e.watch(()=>r.value,()=>{var s;!r.value||((s=r.value)==null?void 0:s.length)===0?n.value=[]:n.value=A.cloneDeep(r.value)},{deep:!0,immediate:!0});const t=s=>Ti(s);return(s,v)=>{var f;return((f=n.value)==null?void 0:f.length)>0?(e.openBlock(),e.createElementBlock("div",F4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(d,y)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:y},[e.createElementVNode("div",P4,e.toDisplayString(d.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t(d.comp)),{itemData:d==null?void 0:d.compData,childItemData:d==null?void 0:d.itemChildData,key:y},null,8,["itemData","childItemData"]))]))),128))])):e.createCommentVNode("",!0)}}},H4=Zl._export_sfc(j4,[["__scopeId","data-v-3f3e863e"]]),U4={class:"tabs-header"},q4={class:"tabs-list"},W4={class:"tab-name"},K4={class:"tab-actions"},G4=["onClick"],Y4=["onClick"],J4=["onClick"],X4={class:"model-operate"},Z4={class:"model-select",style:{display:"unset"}},Q4={class:"existing-components"},e6={class:"component-list"},a6=["onClick"],l6={class:"component-info"},r6={class:"component-type"},n6={class:"component-name"},i6={class:"model-fill"},o6={__name:"operate",props:{itemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const r=a,n=l,t=e.ref([]),s=e.ref(!1),v=e.ref(""),f=e.ref({title:""}),d=e.ref(-1),y=e.ref(!1),g=e.ref(-1),c=e.ref(new WeakMap),D=e.ref(null),I=Hn(A.pinia),{itemData:k}=A.storeToRefs(I),W=()=>{v.value="新增标签页",f.value.title="",d.value=-1,s.value=!0},M=me=>{v.value="修改标签页",f.value.title=t.value[me].title,d.value=me,s.value=!0},R=me=>{const N=w(me);c.value.delete(N),t.value.splice(me,1),Ve()},j=()=>{if(f.value.title.trim()){if(d.value===-1){const me={title:f.value.title,value:f.value.title,label:f.value.title,children:[],id:E()};t.value.push(me)}else t.value[d.value].title=f.value.title,t.value[d.value].value=f.value.title,t.value[d.value].label=f.value.title;s.value=!1,Ve()}},E=()=>`tab_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,w=me=>{const N=t.value[me];return N.id||(N.id=E()),N.id},x=me=>{var U;g.value=me;const N=w(me);D.value=A.cloneDeep(k.value);let se=c.value.get(N);!se&&((U=t.value[me].children)==null?void 0:U.length)>0&&(se=F(t.value[me].children)),se?I.setItemData(A.cloneDeep(se)):I.setItemData([]),y.value=!0},b=e.computed(()=>{const me=A.useModelComp(A.pinia),N=A.storeToRefs(me).itemData.value;return console.log("可用组件数据",N),!N||!Array.isArray(N)?[]:N.filter(se=>{var U;if(se.comp==="Tabs"&&g.value>=0){const Se=w(g.value);if((U=se.compData)==null?void 0:U.some(Fe=>{var ia;return Fe.key==="stepList"&&((ia=Fe.contents)==null?void 0:ia.some(Ba=>Ba.id===Se))}))return!1}return!0})}),_=me=>({Table:"表格",Form:"表单",Tabs:"标签页",Chart:"图表",Card:"卡片"})[me]||me,$=me=>{var N;try{const se=A.cloneDeep(me);se.id=Date.now()+Math.random(),se.comp==="Tabs"&&((N=se.compData)==null||N.forEach(Se=>{Se.key==="stepList"&&Se.contents&&Se.contents.forEach(Le=>{Le.id=E()})}));const U=A.cloneDeep(k.value);U.push(se),I.setItemData(U)}catch(se){console.error("添加组件失败:",se)}},F=me=>me.map(N=>{var se;switch(N.type){case"form":return{comp:"Form",name:N.value||"表单",compData:Y(N.content)};case"table":return{comp:"Table",name:N.value||"表格",compData:oe(N.content)};default:return{comp:"Unknown",name:N.value||"",compData:((se=N.content)==null?void 0:se.originalData)||[]}}}),Y=me=>{if(!me)return[];const N=[];return me.rowContents&&N.push({key:"formContent",contents:me.rowContents}),me.buttonValue&&N.push({key:"formButton",contents:me.buttonValue}),typeof me.isEnableWrap<"u"&&N.push({key:"enableWrap",contents:me.isEnableWrap}),N},oe=me=>[],ye=()=>{if(g.value>=0&&g.value<t.value.length){const me=w(g.value);c.value.set(me,A.cloneDeep(k.value)),t.value[g.value].children=pe(k.value),console.log("保存后的数据",pe(k.value))}y.value=!1,g.value=-1,D.value=null,Ve()},Ie=()=>{D.value&&I.setItemData(A.cloneDeep(D.value)),y.value=!1,g.value=-1,D.value=null},V=()=>{y.value&&Ie()},pe=me=>{if(!Array.isArray(me))throw new Error("sourceData must be an array");return me.map((N,se)=>{if(!N||typeof N!="object")return N;const{comp:U,name:Se,compData:Le}=N;switch(U){case"Form":return{type:"form",content:Q(Le||[]),value:"表单"};case"Table":return{type:"table",content:ce(Le||[]),value:"表格"};default:return{type:"xxx",content:Be(Le||[]),value:""}}})},Q=me=>{const N={formRules:{},rowContents:[],buttonValue:[],rowValues:[],isEnableWrap:!0,isRowFlex:!0,isButtonRow:!0,isEdit:!0,isStartJustify:!0},se={formContent:"rowContents",enableWrap:"isEnableWrap",formButton:"buttonValue"};return me.forEach((U,Se)=>{if(!U||typeof U!="object"){console.warn(`Invalid config at index ${Se}:`,U);return}const{key:Le,contents:Fe}=U,ia=se[Le];if(!ia){console.warn(`Unknown Form config key: ${Le}`);return}Le==="enableWrap"?N[ia]=!!Fe:N[ia]=Array.isArray(Fe)?Fe:[]}),N},ce=me=>{const N={columns:[],tableData:[],extraButton:[],rowButton:[],currentPage:0,total:0,pageSize:0,isShowPagination:!0,isShowEdit:!0,isMoveColumn:!0,isShowDelete:!0},se={header:"columns",tableContents:"tableData"};return me.forEach((U,Se)=>{if(!U||typeof U!="object"){console.warn(`Invalid config at index ${Se}:`,U);return}const{key:Le,contents:Fe}=U,ia=se[Le];if(!ia){console.warn(`Unknown Table config key: ${Le}`);return}N[ia]=Array.isArray(Fe)?Fe:[]}),N},Be=me=>(console.log("Default conversion logic - to be implemented"),{originalData:me,processed:!1,componentType:"unknown"}),Ve=()=>{const me=[{key:"stepList",contents:t.value}];n("change",me)};return e.watch(()=>r.itemContents,me=>{if(me&&me.length>0){const N=me.find(se=>se.key==="stepList");N&&N.contents&&(t.value=N.contents.map(se=>({title:se.title||"",value:se.value||se.title||"",label:se.label||se.title||"",children:se.children||[],id:se.id||E()})))}},{immediate:!0,deep:!0}),(me,N)=>{const se=e.resolveComponent("svg-icon"),U=e.resolveComponent("el-input"),Se=e.resolveComponent("el-form-item"),Le=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",U4,[N[6]||(N[6]=e.createElementVNode("h4",null,"标签页管理",-1)),e.createElementVNode("button",{onClick:W},[e.createVNode(se,{name:"Plus",style:{width:"14px",height:"14px","margin-right":"4px"}}),N[5]||(N[5]=e.createTextVNode(" 新增标签页 "))])]),e.createElementVNode("div",q4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(Fe,ia)=>(e.openBlock(),e.createElementBlock("div",{class:"tab-item",key:ia},[e.createElementVNode("span",W4,e.toDisplayString(Fe.title),1),e.createElementVNode("div",K4,[e.createElementVNode("button",{onClick:Ba=>M(ia)},"修改标题",8,G4),e.createElementVNode("button",{onClick:Ba=>x(ia)},"布局调整",8,Y4),e.createElementVNode("button",{onClick:Ba=>R(ia)},"删除",8,J4)])]))),128))]),e.createVNode(wr.ssDialog,{modelValue:s.value,"onUpdate:modelValue":N[2]||(N[2]=Fe=>s.value=Fe),title:v.value,onBeforeDestroy:N[3]||(N[3]=Fe=>s.value=!1)},{footer:e.withCtx(()=>[e.createElementVNode("button",{onClick:N[1]||(N[1]=Fe=>s.value=!1)},"取消"),e.createElementVNode("button",{type:"primary",onClick:j},"确定")]),default:e.withCtx(()=>[e.createVNode(Le,{model:f.value,"label-width":"80px"},{default:e.withCtx(()=>[e.createVNode(Se,{label:"标签名称",required:""},{default:e.withCtx(()=>[e.createVNode(U,{modelValue:f.value.title,"onUpdate:modelValue":N[0]||(N[0]=Fe=>f.value.title=Fe),placeholder:"请输入标签页名称"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),e.createVNode(wr.ssDialog,{modelValue:y.value,"onUpdate:modelValue":N[4]||(N[4]=Fe=>y.value=Fe),title:"布局调整",fullScreen:"",onBeforeDestroy:V},{footer:e.withCtx(()=>[e.createElementVNode("button",{onClick:Ie},"取消"),e.createElementVNode("button",{onClick:ye},"确定")]),default:e.withCtx(()=>[e.createElementVNode("div",X4,[e.createElementVNode("div",Z4,[e.createVNode(D4),e.createElementVNode("div",Q4,[N[8]||(N[8]=e.createElementVNode("h5",null,"添加已有组件",-1)),e.createElementVNode("div",e6,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,Fe=>(e.openBlock(),e.createElementBlock("div",{key:Fe.id,class:"component-item",onClick:ia=>$(Fe)},[e.createElementVNode("div",l6,[e.createElementVNode("span",r6,e.toDisplayString(_(Fe.comp)),1),e.createElementVNode("span",n6,e.toDisplayString(Fe.name),1)]),N[7]||(N[7]=e.createElementVNode("button",{class:"add-btn"},"添加",-1))],8,a6))),128))])])]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:me.innerWidth},[e.createVNode(H4)])),e.createElementVNode("div",i6,[e.createVNode(V4)])])]),_:1},8,["modelValue"])])}}},t6=Zl._export_sfc(o6,[["__scopeId","data-v-9096ed0d"]]);function s6(){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 c6(a){return{type:"line",...a}}function u6(){return{title:{text:"",left:"center",top:10,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",data:[]},yAxis:[{type:"value"}],series:[]}}function d6(a){return{type:"bar",barWidth:"60%",...a}}function p6(){return{title:{text:"",left:"center"},tooltip:{trigger:"item"},series:[]}}function f6(a){return{type:"pie",radius:"80%",emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},...a}}const h6=()=>({title:{text:"",left:"center"},tooltip:{trigger:"item"},xAxis:{scale:!0},yAxis:{scale:!0},series:[]}),v6=a=>({type:"scatter",symbolSize:20,...a}),mn={Line:{initBaseoptions:s6,initSeries:c6},Bar:{initBaseoptions:u6,initSeries:d6},Pie:{initBaseoptions:p6,initSeries:f6},Scatter:{initBaseoptions:h6,initSeries:v6}},m6=async({chartBaseConfig:a,chartDataConfig:l,chartDetailConfig:r})=>{const{type:n,title:t}=a||{},s=mn==null?void 0:mn[n];if(!s)return;const{initBaseoptions:v,initSeries:f}=s,d=v();d.title.text=t??"";const y=l==null?void 0:l.map(D=>D==null?void 0:D.prop);let g=[];if(y==null||y.forEach(D=>{var I;g.push((I=r==null?void 0:r[0])==null?void 0:I[D])}),!y||!g)return d;d.xAxis.data=y;const c=f({data:g});return d.series.push(c),d},y6=async({chartBaseConfig:a,chartDataConfig:l,chartDetailConfig:r})=>{const{type:n,title:t}=a||{},s=mn==null?void 0:mn[n];if(!s)return;const{initBaseoptions:v,initSeries:f}=s,d=v();d.title.text=t??"";const y=l==null?void 0:l.map(D=>D==null?void 0:D.prop);let g=[];if(y==null||y.forEach(D=>{var I;g.push((I=r==null?void 0:r[0])==null?void 0:I[D])}),!y||!g)return d;d.xAxis.data=y;const c=f({data:g});return d.series.push(c),d},g6=async({chartBaseConfig:a,chartDataConfig:l,chartDetailConfig:r})=>{const{type:n,title:t}=a||{},s=mn==null?void 0:mn[n];if(!s)return;const{initBaseoptions:v,initSeries:f}=s,d=v();d.title.text=t??"";const y=l==null?void 0:l.map(I=>I==null?void 0:I.prop);let g=[];if(y==null||y.forEach(I=>{var k;g.push((k=r==null?void 0:r[0])==null?void 0:k[I])}),!y||!g)return d;const c=[];for(let I=0;I<y.length;I++){const k=y[I],W=g[I];c.push({name:k,value:W})}const D=f({data:c});return d.series.push(D),d},b6=({chartBaseConfig:a,chartDataConfig:l,chartDetailConfig:r})=>{const{type:n,title:t}=a||{},s=mn==null?void 0:mn[n];if(!s)return;const{initBaseoptions:v,initSeries:f}=s,d=v();d.title.text=t??"";let y=[];const g=l==null?void 0:l.map(I=>I==null?void 0:I.prop);if(y=g==null?void 0:g.map(I=>{var W;let k=[];return k.push(I),k.push((W=r==null?void 0:r[0])==null?void 0:W[I]),k}),!y)return d;const D=f({data:y});return d.series.push(D),d},k6=async(a=[])=>{var v,f,d;const l=((v=a==null?void 0:a.find(y=>y.key==="ChartType"))==null?void 0:v.contents)??{},r=((f=a==null?void 0:a.find(y=>y.key==="header"))==null?void 0:f.contents)??[],n=((d=a==null?void 0:a.find(y=>y.key==="tableContents"))==null?void 0:d.contents)??[];let{type:t}=l,s={};return t==="Line"&&(s=await m6({chartBaseConfig:l,chartDataConfig:r,chartDetailConfig:n})),t==="Bar"&&(s=await y6({chartBaseConfig:l,chartDataConfig:r,chartDetailConfig:n})),t==="Pie"&&(s=await g6({chartBaseConfig:l,chartDataConfig:r,chartDetailConfig:n})),t==="Scatter"&&(s=await b6({chartBaseConfig:l,chartDataConfig:r,chartDetailConfig:n})),s},x6=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}},height:{type:String,default:"300px"}},setup(a){const l=a,r=e.ref({});e.onMounted(async()=>{const t=l==null?void 0:l.itemData;r.value=await k6(t)});const n=e.computed(()=>(l==null?void 0:l.height)||"300px");return(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:"eCharts",style:e.normalizeStyle({height:n.value})},[e.createVNode(zu.ssChart,{optionContents:r.value},null,8,["optionContents"])],4))}}),w6=Zl._export_sfc(x6,[["__scopeId","data-v-d4c081e8"]]),_6={class:"chart-module layout"},S6={class:"chart-module content"},E6={class:"chart-module content"},C6={class:"form-content"},D6={class:"dialog-footer"},B6={class:"form-content"},T6={class:"dialog-footer"},N6={class:"form-content"},A6={class:"dialog-footer"},z6=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const r=a,n=l,t=e.reactive({visible:!1,width:"840",title:"基础配置"}),s=e.ref([]),v=()=>[{label:"类型",prop:"type",type:"select",contents:[{label:"柱状图",value:"bar"},{label:"饼图",value:"pie"},{label:"折线图",value:"line"}],value:""},{label:"标题",prop:"title",type:"input",value:""}],f=e.ref({}),d=()=>{var Ee;s.value=v(),(Ee=s.value)==null||Ee.forEach(ne=>{var We;const Ae=ne==null?void 0:ne.prop;ne.value=(We=f==null?void 0:f.value)==null?void 0:We[Ae]}),t.visible=!0},y=Ee=>{f.value=Ee},g=()=>{var Ee;t.visible=!1,n("change",(Ee=ie())==null?void 0:Ee.compData)},c=e.reactive({visible:!1,width:"840",title:"数据配置"}),D=e.ref([]),I=()=>[{label:"菜单选项",prop:"menu",type:"cascader",contents:[]},{label:"组信息选项",prop:"group",type:"select",contents:[]},{label:"名称列",prop:"nameCol",type:"select",contents:[]},{label:"取值列",prop:"valueCol",type:"select",contents:[]}],k=e.ref({}),W=()=>{const Ee=D.value,ne=A.cloneDeep(Ee);return ne==null||ne.forEach(Ae=>{var ua;const We=Ae==null?void 0:Ae.prop;Ae.value=(ua=k.value)==null?void 0:ua[We]}),ne},M=Ee=>{var Ae;k.value=Ee;const ne=W();D.value=ne,n("change",(Ae=ie())==null?void 0:Ae.compData)},R=async()=>{const Ee=await ue.getMenusContent(),ne=W();ne==null||ne.forEach(Ae=>{(Ae==null?void 0:Ae.prop)==="menu"&&(Ae.contents=Ee)}),D.value=ne,c.visible=!0,await Fe(k.value.menu),await ee(k.value.group)},j=e.reactive({visible:!1,width:"840",title:"详情页配置"}),E=e.ref([]),w=()=>[{label:"详情页主键",prop:"mainKey",type:"select",contents:[]},{label:"使用当前详情页内容",prop:"isSelfDetail",type:"switch"},{label:"组信息选项",prop:"group",type:"select",contents:[]},{label:"名称列",prop:"nameCol",type:"select",contents:[]},{label:"取值列",prop:"valueCol",type:"select",contents:[]}],x=e.ref({}),b=()=>{const Ee=E.value,ne=A.cloneDeep(Ee);return ne==null||ne.forEach(Ae=>{var ua;const We=Ae==null?void 0:Ae.prop;Ae.value=(ua=x.value)==null?void 0:ua[We]}),ne},_=Ee=>{var Ae;x.value=Ee;const ne=b();E.value=ne,n("change",(Ae=ie())==null?void 0:Ae.compData)},$=async()=>{await V();const Ee=A.cloneDeep(F.value),ne=b();ne==null||ne.forEach(Ae=>{var ua;const We=Ae==null?void 0:Ae.prop;Ae.value=(ua=x==null?void 0:x.value)==null?void 0:ua[We],We==="mainKey"&&(Ae.contents=Ee)}),E.value=ne,j.visible=!0},F=e.ref([]),Y=e.ref([]),oe=e.ref({}),ye=e.ref({}),Ie=()=>{const{compData:Ee}=U.value||{},ne=Ee==null?void 0:Ee.find(J=>{const{key:ve}=J;return ve==="header"}),Ae=(ne==null?void 0:ne.contents)||[],We=Ae==null?void 0:Ae.filter((J,ve)=>{const{label:he}=J;return he!=="操作"}),ua=We==null?void 0:We.findIndex((J,ve)=>{const{isMainKey:he}=J;return he});if(ua<0)return[];const Ga=Ee==null?void 0:Ee.find(J=>{const{key:ve}=J;return ve==="tableContents"}),L=(Ga==null?void 0:Ga.contents)||[];return L==null?void 0:L.map(J=>{const ve=J==null?void 0:J[0];let he=ua;Ha.isObject(ve)&&(ve!=null&&ve.id)&&(he=he+1);const ga=J==null?void 0:J[he];return{label:ga,value:ga}})},V=async()=>{const Ee=await Ie();F.value=Ee},pe=async Ee=>{const ne=sessionStorage.getItem("systemKey");return await ue.getItemData(Ee,ne,"")},Q=async Ee=>{const ne=Ee;Y.value=ne==null?void 0:ne.map(Ae=>{const{name:We}=Ae;return oe.value[We]=Ae,{label:We,value:We}})},ce=Ee=>{const{comp:ne,compData:Ae}=ye.value||{};if(ne==="Table"){let We=b();We=We.filter(ua=>{const{prop:Ga}=ua;return Ga!=="formItems"}),ia(We,Ae),E.value=We}},Be=async()=>{var Ae,We;const Ee=(Ae=x==null?void 0:x.value)==null?void 0:Ae.mainKey,ne=(We=k==null?void 0:k.value)==null?void 0:We.menu;if(Ee){const Ga=`${ne==null?void 0:ne.join("/")}^${Ee}`,L=await pe(Ga);await Q(L);const H=b();H==null||H.forEach(J=>{(J==null?void 0:J.prop)==="group"&&(J.contents=Y.value)}),E.value=H}};e.watch(()=>{var Ee;return(Ee=x==null?void 0:x.value)==null?void 0:Ee.mainKey},async(Ee,ne)=>{Ee!=ne&&Ee&&await Be()});const Ve=async Ee=>{const ne=oe.value[Ee];ye.value=ne,await ce()};e.watch(()=>{var Ee;return(Ee=x==null?void 0:x.value)==null?void 0:Ee.group},async(Ee,ne)=>{Ee!=ne&&Ee&&Ve(Ee)});const me=async()=>{var ne;await Be();const Ee=(ne=x.value)==null?void 0:ne.group;await Ve(Ee)},N=e.ref([]),se=e.ref({}),U=e.ref({}),Se=async Ee=>{const ne=Ee==null?void 0:Ee.join("/"),Ae=sessionStorage.getItem("systemKey");return await ue.getItemData(ne,Ae,"")},Le=async Ee=>{const ne=await Se(Ee);N.value=ne==null?void 0:ne.map(Ae=>{const{name:We}=Ae;return se.value[We]=Ae,{label:We,value:We}})},Fe=async(Ee,ne)=>{await Le(Ee);const Ae=W();Ae==null||Ae.forEach(We=>{(We==null?void 0:We.prop)==="group"&&(We.contents=N.value)}),D.value=Ae};e.watch(()=>{var Ee;return(Ee=k==null?void 0:k.value)==null?void 0:Ee.menu},async(Ee,ne)=>{const Ae=Ee==null?void 0:Ee.join("/"),We=ne==null?void 0:ne.join("/");Ae!=We&&await Fe(Ee)});const ia=(Ee,ne)=>{const Ae=ne==null?void 0:ne.find(L=>{const{key:H}=L;return H==="header"}),We=(Ae==null?void 0:Ae.contents)||[],ua=We==null?void 0:We.filter((L,H)=>{const{label:J}=L;return J!=="操作"}),Ga=ua==null?void 0:ua.map((L,H)=>{const{label:J}=L;return{label:J,value:H}});Ee==null||Ee.forEach(L=>{const H=L==null?void 0:L.prop;(H==="nameCol"||H==="valueCol")&&(L.contents=Ga)})},Ba=Ee=>{const{comp:ne,compData:Ae}=U.value||{};if(ne==="Table"){k.value.formItems=[];let We=W();We=We.filter(ua=>{const{prop:Ga}=ua;return Ga!=="formItems"}),ia(We,Ae),D.value=We}},ee=async Ee=>{const ne=se.value[Ee];U.value=ne,await Ba()};e.watch(()=>{var Ee;return(Ee=k==null?void 0:k.value)==null?void 0:Ee.group},async(Ee,ne)=>{Ee!=ne&&ee(Ee)});const da=async()=>{var Ae,We;const Ee=(Ae=k.value)==null?void 0:Ae.menu;await Fe(Ee);const ne=(We=k.value)==null?void 0:We.group;await ee(ne)},ie=()=>({comp:"chart",compData:[{key:"chartBaseConfig",contents:f.value},{key:"chartDataConfig",contents:k.value},{key:"chartDetailConfig",contents:x.value}]}),fa=()=>{t.visible=!1,c.visible=!1,j.visible=!1};return e.onMounted(async()=>{var ne,Ae,We;D.value=I(),E.value=w();const Ee=r==null?void 0:r.itemContents;f.value=((ne=Ee==null?void 0:Ee.find(ua=>ua.key==="chartBaseConfig"))==null?void 0:ne.contents)??{},k.value=((Ae=Ee==null?void 0:Ee.find(ua=>ua.key==="chartDataConfig"))==null?void 0:Ae.contents)??{},await da(),x.value=((We=Ee==null?void 0:Ee.find(ua=>ua.key==="chartDetailConfig"))==null?void 0:We.contents)??{},await me()}),(Ee,ne)=>{const Ae=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",_6,[ne[4]||(ne[4]=e.createElementVNode("div",{class:"module-title"},"基础配置",-1)),e.createVNode(Ae,{id:"themeButton",onClick:ne[0]||(ne[0]=We=>d())},{default:e.withCtx(()=>ne[3]||(ne[3]=[e.createTextVNode(" 修改 ")])),_:1,__:[3]})]),e.createElementVNode("div",S6,[ne[6]||(ne[6]=e.createElementVNode("h4",{class:"module-title"},"数据配置",-1)),e.createVNode(Ae,{id:"themeButton",onClick:ne[1]||(ne[1]=We=>R())},{default:e.withCtx(()=>ne[5]||(ne[5]=[e.createTextVNode(" 修改 ")])),_:1,__:[5]})]),e.createElementVNode("div",E6,[ne[8]||(ne[8]=e.createElementVNode("h4",{class:"module-title"},"详情数据配置",-1)),e.createVNode(Ae,{id:"themeButton",onClick:ne[2]||(ne[2]=We=>$())},{default:e.withCtx(()=>ne[7]||(ne[7]=[e.createTextVNode(" 修改 ")])),_:1,__:[7]})])]),e.createVNode(wr.ssDialog,{visible:t.visible,title:t.title,onBeforeDestroy:fa,width:t.width},{default:e.withCtx(()=>[e.createElementVNode("div",C6,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:s.value,key:s.value,isEnableWrap:!0,onChange:y},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",D6,[e.createVNode(Ae,{class:"cancel-button button",onClick:fa,id:"themeBorderButton"},{default:e.withCtx(()=>ne[9]||(ne[9]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[9]}),e.createVNode(Ae,{class:"ok-button button",onClick:g,id:"themeButton"},{default:e.withCtx(()=>ne[10]||(ne[10]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[10]})])]),_:1},8,["visible","title","width"]),e.createVNode(wr.ssDialog,{visible:c.visible,title:c.title,onBeforeDestroy:fa,width:c.width},{default:e.withCtx(()=>[e.createElementVNode("div",B6,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:D.value,key:D.value,isEnableWrap:!0,onChange:M},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",T6,[e.createVNode(Ae,{class:"cancel-button button",onClick:fa,id:"themeBorderButton"},{default:e.withCtx(()=>ne[11]||(ne[11]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[11]}),e.createVNode(Ae,{class:"ok-button button",onClick:fa,id:"themeButton"},{default:e.withCtx(()=>ne[12]||(ne[12]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible","title","width"]),e.createVNode(wr.ssDialog,{visible:j.visible,title:j.title,onBeforeDestroy:fa,width:j.width},{default:e.withCtx(()=>[e.createElementVNode("div",N6,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:E.value,key:E.value,isEnableWrap:!0,onChange:_},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",A6,[e.createVNode(Ae,{class:"cancel-button button",onClick:fa,id:"themeBorderButton"},{default:e.withCtx(()=>ne[13]||(ne[13]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[13]}),e.createVNode(Ae,{class:"ok-button button",onClick:fa,id:"themeButton"},{default:e.withCtx(()=>ne[14]||(ne[14]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible","title","width"])],64)}}}),M6=Zl._export_sfc(z6,[["__scopeId","data-v-fe119645"]]),I6={class:"layout"},O6=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["rowClick"],setup(a,{emit:l}){const r=l,n=a;e.onMounted(async()=>{});const t=e.computed(()=>A.cloneDeep(n==null?void 0:n.itemData)||[]),s=e.computed(()=>{var g;const y=(g=t==null?void 0:t.value)==null?void 0:g.find(c=>{const{key:D}=c;return D==="baseConfig"});return y==null?void 0:y.contents}),v=e.computed(()=>{var g;const y=(g=t==null?void 0:t.value)==null?void 0:g.find(c=>{const{key:D}=c;return D==="children"});return y==null?void 0:y.contents}),f=e.computed(()=>{let y=A.cloneDeep(v.value)||[];const g=y.length;let c=0;const D=[];if(y=y.map(I=>{const k=I.span;return k?(I.span=Number(k),c=c+I.span):D.push(I),I}),c<24){const I=Math.floor((24-c)/g);D.forEach(k=>{k.span=I})}return y}),d=y=>{r("rowClick",y)};return(y,g)=>{var I;const c=e.resolveComponent("el-col"),D=e.resolveComponent("el-row");return e.openBlock(),e.createElementBlock("div",I6,[e.createVNode(D,{style:e.normalizeStyle({height:(I=s.value)==null?void 0:I.height})},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(k,W)=>(e.openBlock(),e.createBlock(c,{span:k==null?void 0:k.span},{default:e.withCtx(()=>{var M;return[e.unref(Bi)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Gi)(k.comp)),{key:e.unref(jn),compName:k.name,index:(k==null?void 0:k.id)??W,height:(M=s.value)==null?void 0:M.height,itemData:k==null?void 0:k.compData,childItemData:k==null?void 0:k.itemChildData,onChange:e.unref(To),onContentChange:e.unref(No),onPageChange:e.unref(Ao),onRowClick:d},null,40,["compName","index","height","itemData","childItemData","onChange","onContentChange","onPageChange"])):e.createCommentVNode("",!0)]}),_:2},1032,["span"]))),256))]),_:1},8,["style"])])}}}),L6=Zl._export_sfc(O6,[["__scopeId","data-v-ab9a36ed"]]),R6={class:"layout-operate"},$6={class:"layout-module"},V6={class:"collapse-title-item"},F6={class:"collapse-title"},P6={class:"icon-content"},j6=["onClick"],H6={class:"comp-child"},U6=e.defineComponent({__name:"operate",props:{itemContents:{type:Object,default:()=>{}},originalItemContents:{type:Array,default:()=>[]},itemChildData:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const r=a,n=l;e.onMounted(()=>{W()});const t=e.ref({}),s=e.ref({}),v=e.ref([]),f=x=>[{label:"高度",prop:"height",type:"input",value:x==null?void 0:x.height}],d=x=>{s.value=x,n("change",w(),!0)},y=e.ref([]),g=e.ref([]),c=x=>[{label:"占比",prop:"span",type:"input",value:x==null?void 0:x.span}],D=e.computed(()=>{const x=r==null?void 0:r.itemContents;return A.cloneDeep(x)}),I=e.computed(()=>{const x=D==null?void 0:D.value,b=x==null?void 0:x.find(_=>{const{key:$}=_;return $==="baseConfig"});return b==null?void 0:b.contents}),k=e.computed(()=>{const x=D==null?void 0:D.value,b=x==null?void 0:x.find(_=>{const{key:$}=_;return $==="children"});return b==null?void 0:b.contents}),W=()=>{var x;t.value=D.value||{},y.value=(k==null?void 0:k.value)||[],v.value=f(),v.value=(x=v.value)==null?void 0:x.map(b=>{var $;const{prop:_}=b;return b.value=($=I.value)==null?void 0:$[_],b})};e.watch(()=>{var x;return(x=k==null?void 0:k.value)==null?void 0:x.length},()=>{var x;y.value=(k==null?void 0:k.value)||[],g.value=(x=k.value)==null?void 0:x.map(b=>c(b))},{immediate:!0});const M=(x,b)=>{const _=A.cloneDeep(k==null?void 0:k.value);_[b].span=x.span,y.value=_,n("change",w(),!0)},R=x=>Ti(x),j=(x,b,_)=>{if(!x)return;const $=A.cloneDeep(k==null?void 0:k.value);$[_]&&($[_].compData=x,y.value=$,n("change",w(),!0))},E=x=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{let b=A.cloneDeep(k==null?void 0:k.value);b=b==null?void 0:b.filter((_,$)=>x!==$),y.value=b,n("change",w(),!0),Ha.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},w=()=>({compData:[{key:"baseConfig",contents:s.value},{key:"children",contents:y==null?void 0:y.value}]});return(x,b)=>{const _=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",R6,[e.createElementVNode("div",$6,[b[1]||(b[1]=e.createElementVNode("div",{class:"module-title"},"基础配置",-1)),e.createElementVNode("div",null,[e.createVNode(ll.ssForm,{rowContents:v.value,isEnableWrap:!0,onChange:b[0]||(b[0]=$=>d($))},null,8,["rowContents"])])]),e.createVNode(Js.default,{class:"collapse-content",collapseContents:k.value},{title:e.withCtx(({item:$,index:F})=>[e.createElementVNode("div",V6,[e.createElementVNode("div",F6,e.toDisplayString($.name),1),e.createElementVNode("div",P6,[e.createElementVNode("div",{onClick:e.withModifiers(Y=>E(F),["stop"]),class:"icon-content"},[e.createVNode(_,{name:"Delete",style:{width:"16px",height:"16px"}})],8,j6)])])]),content:e.withCtx(({item:$,index:F})=>[e.createElementVNode("div",H6,[e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:g.value[F],key:F,isEnableWrap:!0,onChange:Y=>M(Y,F)},null,8,["rowContents","onChange"]))]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(R($.comp+"Operate")),{itemContents:$==null?void 0:$.compData,originalItemContents:$.compData,onChange:Y=>j(Y,$,F)},null,40,["itemContents","originalItemContents","onChange"]))])]),_:1},8,["collapseContents"])])}}}),q6=Zl._export_sfc(U6,[["__scopeId","data-v-ba05456e"]]),W6=typeof window<"u";var _s;W6&&((_s=window==null?void 0:window.navigator)!=null&&_s.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function cn(a){return a==null}function Rc(){}const K6=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(K6)));function G6(){const a=new Map;return{on(l,r){const n=a.get(l);n!=null&&n.add(r)||a.set(l,new Set([r]))},off(l,r){const n=a.get(l);n&&n.delete(r)},clear(l){const r=a.get(l);r&&r.clear()},clearAll(){a.clear()},emit(l,...r){const n=a.get(l);n&&n.forEach(t=>{t(...r)})}}}function Ss(a,l=16){if(typeof a!="function")return Rc;const r=(...s)=>{a(...s)};if(l<=0)return $c(r);let n=0,t;return function(...s){const v=Date.now(),f=v-n;clearTimeout(t),f>=l?(n=v,r(...s)):t=setTimeout(()=>{n=Date.now(),r(...s)},Math.max(0,l-f))}}function Y6(a,l=100){if(typeof a!="function")return Rc;const r=(...t)=>{a(...t)};if(l<=0)return $c(r);let n;return function(...t){clearTimeout(n),n=setTimeout(()=>{r(...t)},l)}}function $c(a){if(typeof a!="function")return a;let l=!1,r,n;return function(...t){return r=t,l||(l=!0,n=Promise.resolve().then(()=>(l=!1,n=void 0,a(...r)))),n}}const Ui=new Set,Vc=new WeakMap;function J6(){Ui.forEach(a=>{a(...Vc.get(a))}),Ui.clear()}function Yr(a,...l){if(typeof a!="function")return a;Vc.set(a,l),!Ui.has(a)&&(Ui.add(a),Ui.size===1&&Promise.resolve().then(J6))}const Fc=Symbol("LAYOUT_KEY"),Pc=Symbol("EMITTER_KEY");function X6(a){let l=0,r;for(let n=0,t=a.length;n<t;n++)r=a[n].y+a[n].h,r>l&&(l=r);return l}function wt(a){const l=Array(a.length);for(let r=0,n=a.length;r<n;r++)l[r]=Z6(a[r]);return l}function Z6(a){return{...a}}function jc(a,l){return!(a===l||a.x+a.w<=l.x||a.x>=l.x+l.w||a.y+a.h<=l.y||a.y>=l.y+l.h)}function _i(a,l,r){const n=Uc(a),t=qc(a),s=Array(a.length);for(let v=0,f=t.length;v<f;v++){let d=t[v];d.static||(d=Q6(n,d,l,r),n.push(d)),s[a.findIndex(y=>y.i===d.i)]=d,d.moved=!1}return s}function Q6(a,l,r,n){if(r)for(;l.y>0&&!qi(a,l);)l.y--;else if(n){const s=n[l.i].y;for(;l.y>s&&!qi(a,l);)l.y--}let t;for(;t=qi(a,l);)l.y=t.y+t.h;return l}function e1(a,l){const r=Uc(a);for(let n=0,t=a.length;n<t;n++){const s=a[n];if(s.x+s.w>l.cols&&(s.x=l.cols-s.w),s.x<0&&(s.x=0,s.w=l.cols),!s.static)r.push(s);else for(;qi(r,s);)s.y++}return a}function Es(a,l){for(let r=0,n=a.length;r<n;r++)if(a[r].i===l)return a[r]}function qi(a,l){for(let r=0,n=a.length;r<n;r++)if(jc(a[r],l))return a[r]}function Hc(a,l){return a.filter(r=>jc(r,l))}function Uc(a){return a.filter(l=>l.static)}function _t(a,l,r,n,t=!1,s=!1){if(l.static)return a;const v=l.x,f=l.y,d=n&&l.y>n;typeof r=="number"&&(l.x=r),typeof n=="number"&&(l.y=n),l.moved=!0;let y=qc(a);d&&(y=y.reverse());const g=Hc(y,l);if(s&&g.length)return l.x=v,l.y=f,l.moved=!1,a;for(let c=0,D=g.length;c<D;c++){const I=g[c];I.moved||l.y>I.y&&l.y-I.y>I.h/4||(I.static?a=Cs(a,I,l,t):a=Cs(a,l,I,t))}return a}function Cs(a,l,r,n){if(n){const t={x:r.x,y:r.y,w:r.w,h:r.h};if(t.y=Math.max(l.y-r.h,0),!qi(a,t))return _t(a,r,void 0,t.y,!1)}return _t(a,r,void 0,r.y+1,!1)}function a1(a,l,r,n){const t="translate3d("+l+"px,"+a+"px, 0)";return{transform:t,WebkitTransform:t,MozTransform:t,msTransform:t,OTransform:t,width:r+"px",height:n+"px",position:"absolute"}}function l1(a,l,r,n){const t="translate3d("+l*-1+"px,"+a+"px, 0)";return{transform:t,WebkitTransform:t,MozTransform:t,msTransform:t,OTransform:t,width:r+"px",height:n+"px",position:"absolute"}}function r1(a,l,r,n){return{top:a+"px",left:l+"px",width:r+"px",height:n+"px",position:"absolute"}}function n1(a,l,r,n){return{top:a+"px",right:l+"px",width:r+"px",height:n+"px",position:"absolute"}}function qc(a){return Array.from(a).sort(function(l,r){return l.y===r.y&&l.x===r.x?0:l.y>r.y||l.y===r.y&&l.x>r.x?1:-1})}function i1(a,l){l=l||"Layout";const r=["x","y","w","h"],n=[];if(!Array.isArray(a))throw new Error(l+" must be an array!");for(let t=0,s=a.length;t<s;t++){const v=a[t];for(let f=0;f<r.length;f++)if(typeof v[r[f]]!="number")throw new Error("VueGridLayout: "+l+"["+t+"]."+r[f]+" must be a number!");if(v.i===void 0||v.i===null)throw new Error("VueGridLayout: "+l+"["+t+"].i cannot be null!");if(typeof v.i!="number"&&typeof v.i!="string")throw new Error("VueGridLayout: "+l+"["+t+"].i must be a string or number!");if(n.indexOf(v.i)>=0)throw new Error("VueGridLayout: "+l+"["+t+"].i must be unique!");if(n.push(v.i),v.static!==void 0&&typeof v.static!="boolean")throw new Error("VueGridLayout: "+l+"["+t+"].static must be a boolean!")}}function o1(a,l="vgl"){const r=()=>`${l}-${a}`;return{b:r,be:n=>`${r()}__${n}`,bm:n=>`${r()}--${n}`,bem:(n,t)=>`${r()}__${n}--${t}`}}function Ds(a){return s1(a)}function s1(a){var l;const r=((l=a.target)==null?void 0:l.offsetParent)||document.body,n=a.offsetParent===document.body?{left:0,top:0}:r.getBoundingClientRect(),t=a.clientX+r.scrollLeft-n.left,s=a.clientY+r.scrollTop-n.top;return{x:t,y:s}}function Bs(a,l,r,n){return c1(a)?{deltaX:r-a,deltaY:n-l,lastX:a,lastY:l,x:r,y:n}:{deltaX:0,deltaY:0,lastX:r,lastY:n,x:r,y:n}}function c1(a){return typeof a=="number"&&!Number.isNaN(a)}function u1(a,l){const r=Kc(a);let n=r[0];for(let t=1,s=r.length;t<s;t++){const v=r[t];l>a[v]&&(n=v)}return n}function Wc(a,l){if(!l[a])throw new Error("ResponsiveGridLayout: `cols` entry for breakpoint "+a+" is missing!");return l[a]}function d1(a,l,r,n,t,s,v){if(l[n])return wt(l[n]);let f=a;const d=Kc(r),y=d.slice(d.indexOf(n));for(let g=0,c=y.length;g<c;g++){const D=y[g];if(l[D]){f=l[D];break}}return f=wt(f||[]),_i(e1(f,{cols:s}),v)}function Kc(a){return Object.keys(a).sort((l,r)=>a[l]-a[r])}let p1="auto";function f1(){return typeof document<"u"}function Ts(){return f1()?typeof document.dir<"u"?document.dir:document.getElementsByTagName("html")[0].getAttribute("dir"):p1}var ji={exports:{}},h1=ji.exports,Ns;function v1(){return Ns||(Ns=1,function(a,l){(function(r,n){a.exports=n()})(h1,function(){function r(o,i){var p=Object.keys(o);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(o);i&&(m=m.filter(function(S){return Object.getOwnPropertyDescriptor(o,S).enumerable})),p.push.apply(p,m)}return p}function n(o){for(var i=1;i<arguments.length;i++){var p=arguments[i]!=null?arguments[i]:{};i%2?r(Object(p),!0).forEach(function(m){d(o,m,p[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(p)):r(Object(p)).forEach(function(m){Object.defineProperty(o,m,Object.getOwnPropertyDescriptor(p,m))})}return o}function t(o){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},t(o)}function s(o,i){if(!(o instanceof i))throw new TypeError("Cannot call a class as a function")}function v(o,i){for(var p=0;p<i.length;p++){var m=i[p];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(o,W(m.key),m)}}function f(o,i,p){return i&&v(o.prototype,i),Object.defineProperty(o,"prototype",{writable:!1}),o}function d(o,i,p){return(i=W(i))in o?Object.defineProperty(o,i,{value:p,enumerable:!0,configurable:!0,writable:!0}):o[i]=p,o}function y(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(i&&i.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),i&&c(o,i)}function g(o){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},g(o)}function c(o,i){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,m){return p.__proto__=m,p},c(o,i)}function D(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function I(o){var i=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=g(o);if(i){var S=g(this).constructor;p=Reflect.construct(m,arguments,S)}else p=m.apply(this,arguments);return function(O,K){if(K&&(typeof K=="object"||typeof K=="function"))return K;if(K!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return D(O)}(this,p)}}function k(){return k=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(o,i,p){var m=function(O,K){for(;!Object.prototype.hasOwnProperty.call(O,K)&&(O=g(O))!==null;);return O}(o,i);if(m){var S=Object.getOwnPropertyDescriptor(m,i);return S.get?S.get.call(arguments.length<3?o:p):S.value}},k.apply(this,arguments)}function W(o){var i=function(p,m){if(typeof p!="object"||p===null)return p;var S=p[Symbol.toPrimitive];if(S!==void 0){var O=S.call(p,m);if(typeof O!="object")return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(p)}(o,"string");return typeof i=="symbol"?i:i+""}var M=function(o){return!(!o||!o.Window)&&o instanceof o.Window},R=void 0,j=void 0;function E(o){R=o;var i=o.document.createTextNode("");i.ownerDocument!==o.document&&typeof o.wrap=="function"&&o.wrap(i)===i&&(o=o.wrap(o)),j=o}function w(o){return M(o)?o:(o.ownerDocument||o).defaultView||j.window}typeof window<"u"&&window&&E(window);var x=function(o){return!!o&&t(o)==="object"},b=function(o){return typeof o=="function"},_={window:function(o){return o===j||M(o)},docFrag:function(o){return x(o)&&o.nodeType===11},object:x,func:b,number:function(o){return typeof o=="number"},bool:function(o){return typeof o=="boolean"},string:function(o){return typeof o=="string"},element:function(o){if(!o||t(o)!=="object")return!1;var i=w(o)||j;return/object|function/.test(typeof Element>"u"?"undefined":t(Element))?o instanceof Element||o instanceof i.Element:o.nodeType===1&&typeof o.nodeName=="string"},plainObject:function(o){return x(o)&&!!o.constructor&&/function Object\b/.test(o.constructor.toString())},array:function(o){return x(o)&&o.length!==void 0&&b(o.splice)}};function $(o){var i=o.interaction;if(i.prepared.name==="drag"){var p=i.prepared.axis;p==="x"?(i.coords.cur.page.y=i.coords.start.page.y,i.coords.cur.client.y=i.coords.start.client.y,i.coords.velocity.client.y=0,i.coords.velocity.page.y=0):p==="y"&&(i.coords.cur.page.x=i.coords.start.page.x,i.coords.cur.client.x=i.coords.start.client.x,i.coords.velocity.client.x=0,i.coords.velocity.page.x=0)}}function F(o){var i=o.iEvent,p=o.interaction;if(p.prepared.name==="drag"){var m=p.prepared.axis;if(m==="x"||m==="y"){var S=m==="x"?"y":"x";i.page[S]=p.coords.start.page[S],i.client[S]=p.coords.start.client[S],i.delta[S]=0}}}var Y={id:"actions/drag",install:function(o){var i=o.actions,p=o.Interactable,m=o.defaults;p.prototype.draggable=Y.draggable,i.map.drag=Y,i.methodDict.drag="draggable",m.actions.drag=Y.defaults},listeners:{"interactions:before-action-move":$,"interactions:action-resume":$,"interactions:action-move":F,"auto-start:check":function(o){var i=o.interaction,p=o.interactable,m=o.buttons,S=p.options.drag;if(S&&S.enabled&&(!i.pointerIsDown||!/mouse|pointer/.test(i.pointerType)||(m&p.options.drag.mouseButtons)!=0))return o.action={name:"drag",axis:S.lockAxis==="start"?S.startAxis:S.lockAxis},!1}},draggable:function(o){return _.object(o)?(this.options.drag.enabled=o.enabled!==!1,this.setPerAction("drag",o),this.setOnEvents("drag",o),/^(xy|x|y|start)$/.test(o.lockAxis)&&(this.options.drag.lockAxis=o.lockAxis),/^(xy|x|y)$/.test(o.startAxis)&&(this.options.drag.startAxis=o.startAxis),this):_.bool(o)?(this.options.drag.enabled=o,this):this.options.drag},beforeMove:$,move:F,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(o){return o.search("drag")===0}},oe=Y,ye={init:function(o){var i=o;ye.document=i.document,ye.DocumentFragment=i.DocumentFragment||Ie,ye.SVGElement=i.SVGElement||Ie,ye.SVGSVGElement=i.SVGSVGElement||Ie,ye.SVGElementInstance=i.SVGElementInstance||Ie,ye.Element=i.Element||Ie,ye.HTMLElement=i.HTMLElement||ye.Element,ye.Event=i.Event,ye.Touch=i.Touch||Ie,ye.PointerEvent=i.PointerEvent||i.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function Ie(){}var V=ye,pe={init:function(o){var i=V.Element,p=o.navigator||{};pe.supportsTouch="ontouchstart"in o||_.func(o.DocumentTouch)&&V.document instanceof o.DocumentTouch,pe.supportsPointerEvent=p.pointerEnabled!==!1&&!!V.PointerEvent,pe.isIOS=/iP(hone|od|ad)/.test(p.platform),pe.isIOS7=/iP(hone|od|ad)/.test(p.platform)&&/OS 7[^\d]/.test(p.appVersion),pe.isIe9=/MSIE 9/.test(p.userAgent),pe.isOperaMobile=p.appName==="Opera"&&pe.supportsTouch&&/Presto/.test(p.userAgent),pe.prefixedMatchesSelector="matches"in i.prototype?"matches":"webkitMatchesSelector"in i.prototype?"webkitMatchesSelector":"mozMatchesSelector"in i.prototype?"mozMatchesSelector":"oMatchesSelector"in i.prototype?"oMatchesSelector":"msMatchesSelector",pe.pEventTypes=pe.supportsPointerEvent?V.PointerEvent===o.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,pe.wheelEvent=V.document&&"onmousewheel"in V.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},Q=pe;function ce(o,i){if(o.contains)return o.contains(i);for(;i;){if(i===o)return!0;i=i.parentNode}return!1}function Be(o,i){for(;_.element(o);){if(me(o,i))return o;o=Ve(o)}return null}function Ve(o){var i=o.parentNode;if(_.docFrag(i)){for(;(i=i.host)&&_.docFrag(i););return i}return i}function me(o,i){return j!==R&&(i=i.replace(/\/deep\//g," ")),o[Q.prefixedMatchesSelector](i)}var N=function(o){return o.parentNode||o.host};function se(o,i){for(var p,m=[],S=o;(p=N(S))&&S!==i&&p!==S.ownerDocument;)m.unshift(S),S=p;return m}function U(o,i,p){for(;_.element(o);){if(me(o,i))return!0;if((o=Ve(o))===p)return me(o,i)}return!1}function Se(o){return o.correspondingUseElement||o}function Le(o){var i=o instanceof V.SVGElement?o.getBoundingClientRect():o.getClientRects()[0];return i&&{left:i.left,right:i.right,top:i.top,bottom:i.bottom,width:i.width||i.right-i.left,height:i.height||i.bottom-i.top}}function Fe(o){var i,p=Le(o);if(!Q.isIOS7&&p){var m={x:(i=(i=w(o))||j).scrollX||i.document.documentElement.scrollLeft,y:i.scrollY||i.document.documentElement.scrollTop};p.left+=m.x,p.right+=m.x,p.top+=m.y,p.bottom+=m.y}return p}function ia(o){for(var i=[];o;)i.push(o),o=Ve(o);return i}function Ba(o){return!!_.string(o)&&(V.document.querySelector(o),!0)}function ee(o,i){for(var p in i)o[p]=i[p];return o}function da(o,i,p){return o==="parent"?Ve(p):o==="self"?i.getRect(p):Be(p,o)}function ie(o,i,p,m){var S=o;return _.string(S)?S=da(S,i,p):_.func(S)&&(S=S.apply(void 0,m)),_.element(S)&&(S=Fe(S)),S}function fa(o){return o&&{x:"x"in o?o.x:o.left,y:"y"in o?o.y:o.top}}function Ee(o){return!o||"x"in o&&"y"in o||((o=ee({},o)).x=o.left||0,o.y=o.top||0,o.width=o.width||(o.right||0)-o.x,o.height=o.height||(o.bottom||0)-o.y),o}function ne(o,i,p){o.left&&(i.left+=p.x),o.right&&(i.right+=p.x),o.top&&(i.top+=p.y),o.bottom&&(i.bottom+=p.y),i.width=i.right-i.left,i.height=i.bottom-i.top}function Ae(o,i,p){var m=p&&o.options[p];return fa(ie(m&&m.origin||o.options.origin,o,i,[o&&i]))||{x:0,y:0}}function We(o,i){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(be){return!0},m=arguments.length>3?arguments[3]:void 0;if(m=m||{},_.string(o)&&o.search(" ")!==-1&&(o=ua(o)),_.array(o))return o.forEach(function(be){return We(be,i,p,m)}),m;if(_.object(o)&&(i=o,o=""),_.func(i)&&p(o))m[o]=m[o]||[],m[o].push(i);else if(_.array(i))for(var S=0,O=i;S<O.length;S++){var K=O[S];We(o,K,p,m)}else if(_.object(i))for(var Z in i)We(ua(Z).map(function(be){return"".concat(o).concat(be)}),i[Z],p,m);return m}function ua(o){return o.trim().split(/ +/)}var Ga=function(o,i){return Math.sqrt(o*o+i*i)},L=["webkit","moz"];function H(o,i){o.__set||(o.__set={});var p=function(S){if(L.some(function(O){return S.indexOf(O)===0}))return 1;typeof o[S]!="function"&&S!=="__set"&&Object.defineProperty(o,S,{get:function(){return S in o.__set?o.__set[S]:o.__set[S]=i[S]},set:function(O){o.__set[S]=O},configurable:!0})};for(var m in i)p(m);return o}function J(o,i){o.page=o.page||{},o.page.x=i.page.x,o.page.y=i.page.y,o.client=o.client||{},o.client.x=i.client.x,o.client.y=i.client.y,o.timeStamp=i.timeStamp}function ve(o){o.page.x=0,o.page.y=0,o.client.x=0,o.client.y=0}function he(o){return o instanceof V.Event||o instanceof V.Touch}function ga(o,i,p){return o=o||"page",(p=p||{}).x=i[o+"X"],p.y=i[o+"Y"],p}function la(o,i){return i=i||{x:0,y:0},Q.isOperaMobile&&he(o)?(ga("screen",o,i),i.x+=window.scrollX,i.y+=window.scrollY):ga("page",o,i),i}function te(o){return _.number(o.pointerId)?o.pointerId:o.identifier}function ba(o,i,p){var m=i.length>1?Xe(i):i[0];la(m,o.page),function(S,O){O=O||{},Q.isOperaMobile&&he(S)?ga("screen",S,O):ga("client",S,O)}(m,o.client),o.timeStamp=p}function Ne(o){var i=[];return _.array(o)?(i[0]=o[0],i[1]=o[1]):o.type==="touchend"?o.touches.length===1?(i[0]=o.touches[0],i[1]=o.changedTouches[0]):o.touches.length===0&&(i[0]=o.changedTouches[0],i[1]=o.changedTouches[1]):(i[0]=o.touches[0],i[1]=o.touches[1]),i}function Xe(o){for(var i={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},p=0;p<o.length;p++){var m=o[p];for(var S in i)i[S]+=m[S]}for(var O in i)i[O]/=o.length;return i}function Aa(o){if(!o.length)return null;var i=Ne(o),p=Math.min(i[0].pageX,i[1].pageX),m=Math.min(i[0].pageY,i[1].pageY),S=Math.max(i[0].pageX,i[1].pageX),O=Math.max(i[0].pageY,i[1].pageY);return{x:p,y:m,left:p,top:m,right:S,bottom:O,width:S-p,height:O-m}}function Da(o,i){var p=i+"X",m=i+"Y",S=Ne(o),O=S[0][p]-S[1][p],K=S[0][m]-S[1][m];return Ga(O,K)}function aa(o,i){var p=i+"X",m=i+"Y",S=Ne(o),O=S[1][p]-S[0][p],K=S[1][m]-S[0][m];return 180*Math.atan2(K,O)/Math.PI}function $a(o){return _.string(o.pointerType)?o.pointerType:_.number(o.pointerType)?[void 0,void 0,"touch","pen","mouse"][o.pointerType]:/touch/.test(o.type||"")||o instanceof V.Touch?"touch":"mouse"}function ke(o){var i=_.func(o.composedPath)?o.composedPath():o.path;return[Se(i?i[0]:o.target),Se(o.currentTarget)]}var ae=function(){function o(i){s(this,o),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=i}return f(o,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),o}();Object.defineProperty(ae.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var ze=function(o,i){for(var p=0;p<i.length;p++){var m=i[p];o.push(m)}return o},Oe=function(o){return ze([],o)},Me=function(o,i){for(var p=0;p<o.length;p++)if(i(o[p],p,o))return p;return-1},ya=function(o,i){return o[Me(o,i)]},xa=function(o){y(p,o);var i=I(p);function p(m,S,O){var K;s(this,p),(K=i.call(this,S._interaction)).dropzone=void 0,K.dragEvent=void 0,K.relatedTarget=void 0,K.draggable=void 0,K.propagationStopped=!1,K.immediatePropagationStopped=!1;var Z=O==="dragleave"?m.prev:m.cur,be=Z.element,je=Z.dropzone;return K.type=O,K.target=be,K.currentTarget=be,K.dropzone=je,K.dragEvent=S,K.relatedTarget=S.target,K.draggable=S.interactable,K.timeStamp=S.timeStamp,K}return f(p,[{key:"reject",value:function(){var m=this,S=this._interaction.dropState;if(this.type==="dropactivate"||this.dropzone&&S.cur.dropzone===this.dropzone&&S.cur.element===this.target)if(S.prev.dropzone=this.dropzone,S.prev.element=this.target,S.rejected=!0,S.events.enter=null,this.stopImmediatePropagation(),this.type==="dropactivate"){var O=S.activeDrops,K=Me(O,function(be){var je=be.dropzone,De=be.element;return je===m.dropzone&&De===m.target});S.activeDrops.splice(K,1);var Z=new p(S,this.dragEvent,"dropdeactivate");Z.dropzone=this.dropzone,Z.target=this.target,this.dropzone.fire(Z)}else this.dropzone.fire(new p(S,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),p}(ae);function qe(o,i){for(var p=0,m=o.slice();p<m.length;p++){var S=m[p],O=S.dropzone,K=S.element;i.dropzone=O,i.target=K,O.fire(i),i.propagationStopped=i.immediatePropagationStopped=!1}}function Je(o,i){for(var p=function(O,K){for(var Z=[],be=0,je=O.interactables.list;be<je.length;be++){var De=je[be];if(De.options.drop.enabled){var na=De.options.drop.accept;if(!(_.element(na)&&na!==K||_.string(na)&&!me(K,na)||_.func(na)&&!na({dropzone:De,draggableElement:K})))for(var Ta=0,Ya=De.getAllElements();Ta<Ya.length;Ta++){var qa=Ya[Ta];qa!==K&&Z.push({dropzone:De,element:qa,rect:De.getRect(qa)})}}}return Z}(o,i),m=0;m<p.length;m++){var S=p[m];S.rect=S.dropzone.getRect(S.element)}return p}function Ue(o,i,p){for(var m=o.dropState,S=o.interactable,O=o.element,K=[],Z=0,be=m.activeDrops;Z<be.length;Z++){var je=be[Z],De=je.dropzone,na=je.element,Ta=je.rect,Ya=De.dropCheck(i,p,S,O,na,Ta);K.push(Ya?na:null)}var qa=function(Qa){for(var xl,vl,El,Ul=[],Cl=0;Cl<Qa.length;Cl++){var Ml=Qa[Cl],Al=Qa[xl];if(Ml&&Cl!==xl)if(Al){var Hr=N(Ml),rr=N(Al);if(Hr!==Ml.ownerDocument)if(rr!==Ml.ownerDocument)if(Hr!==rr){Ul=Ul.length?Ul:se(Al);var Gr=void 0;if(Al instanceof V.HTMLElement&&Ml instanceof V.SVGElement&&!(Ml instanceof V.SVGSVGElement)){if(Ml===rr)continue;Gr=Ml.ownerSVGElement}else Gr=Ml;for(var on=se(Gr,Al.ownerDocument),wn=0;on[wn]&&on[wn]===Ul[wn];)wn++;var hi=[on[wn-1],on[wn],Ul[wn]];if(hi[0])for(var Qn=hi[0].lastChild;Qn;){if(Qn===hi[1]){xl=Cl,Ul=on;break}if(Qn===hi[2])break;Qn=Qn.previousSibling}}else El=Al,(parseInt(w(vl=Ml).getComputedStyle(vl).zIndex,10)||0)>=(parseInt(w(El).getComputedStyle(El).zIndex,10)||0)&&(xl=Cl);else xl=Cl}else xl=Cl}return xl}(K);return m.activeDrops[qa]||null}function _e(o,i,p){var m=o.dropState,S={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return p.type==="dragstart"&&(S.activate=new xa(m,p,"dropactivate"),S.activate.target=null,S.activate.dropzone=null),p.type==="dragend"&&(S.deactivate=new xa(m,p,"dropdeactivate"),S.deactivate.target=null,S.deactivate.dropzone=null),m.rejected||(m.cur.element!==m.prev.element&&(m.prev.dropzone&&(S.leave=new xa(m,p,"dragleave"),p.dragLeave=S.leave.target=m.prev.element,p.prevDropzone=S.leave.dropzone=m.prev.dropzone),m.cur.dropzone&&(S.enter=new xa(m,p,"dragenter"),p.dragEnter=m.cur.element,p.dropzone=m.cur.dropzone)),p.type==="dragend"&&m.cur.dropzone&&(S.drop=new xa(m,p,"drop"),p.dropzone=m.cur.dropzone,p.relatedTarget=m.cur.element),p.type==="dragmove"&&m.cur.dropzone&&(S.move=new xa(m,p,"dropmove"),p.dropzone=m.cur.dropzone)),S}function de(o,i){var p=o.dropState,m=p.activeDrops,S=p.cur,O=p.prev;i.leave&&O.dropzone.fire(i.leave),i.enter&&S.dropzone.fire(i.enter),i.move&&S.dropzone.fire(i.move),i.drop&&S.dropzone.fire(i.drop),i.deactivate&&qe(m,i.deactivate),p.prev.dropzone=S.dropzone,p.prev.element=S.element}function Oa(o,i){var p=o.interaction,m=o.iEvent,S=o.event;if(m.type==="dragmove"||m.type==="dragend"){var O=p.dropState;i.dynamicDrop&&(O.activeDrops=Je(i,p.element));var K=m,Z=Ue(p,K,S);O.rejected=O.rejected&&!!Z&&Z.dropzone===O.cur.dropzone&&Z.element===O.cur.element,O.cur.dropzone=Z&&Z.dropzone,O.cur.element=Z&&Z.element,O.events=_e(p,0,K)}}var La={id:"actions/drop",install:function(o){var i=o.actions,p=o.interactStatic,m=o.Interactable,S=o.defaults;o.usePlugin(oe),m.prototype.dropzone=function(O){return function(K,Z){if(_.object(Z)){if(K.options.drop.enabled=Z.enabled!==!1,Z.listeners){var be=We(Z.listeners),je=Object.keys(be).reduce(function(na,Ta){return na[/^(enter|leave)/.test(Ta)?"drag".concat(Ta):/^(activate|deactivate|move)/.test(Ta)?"drop".concat(Ta):Ta]=be[Ta],na},{}),De=K.options.drop.listeners;De&&K.off(De),K.on(je),K.options.drop.listeners=je}return _.func(Z.ondrop)&&K.on("drop",Z.ondrop),_.func(Z.ondropactivate)&&K.on("dropactivate",Z.ondropactivate),_.func(Z.ondropdeactivate)&&K.on("dropdeactivate",Z.ondropdeactivate),_.func(Z.ondragenter)&&K.on("dragenter",Z.ondragenter),_.func(Z.ondragleave)&&K.on("dragleave",Z.ondragleave),_.func(Z.ondropmove)&&K.on("dropmove",Z.ondropmove),/^(pointer|center)$/.test(Z.overlap)?K.options.drop.overlap=Z.overlap:_.number(Z.overlap)&&(K.options.drop.overlap=Math.max(Math.min(1,Z.overlap),0)),"accept"in Z&&(K.options.drop.accept=Z.accept),"checker"in Z&&(K.options.drop.checker=Z.checker),K}return _.bool(Z)?(K.options.drop.enabled=Z,K):K.options.drop}(this,O)},m.prototype.dropCheck=function(O,K,Z,be,je,De){return function(na,Ta,Ya,qa,Qa,xl,vl){var El=!1;if(!(vl=vl||na.getRect(xl)))return!!na.options.drop.checker&&na.options.drop.checker(Ta,Ya,El,na,xl,qa,Qa);var Ul=na.options.drop.overlap;if(Ul==="pointer"){var Cl=Ae(qa,Qa,"drag"),Ml=la(Ta);Ml.x+=Cl.x,Ml.y+=Cl.y;var Al=Ml.x>vl.left&&Ml.x<vl.right,Hr=Ml.y>vl.top&&Ml.y<vl.bottom;El=Al&&Hr}var rr=qa.getRect(Qa);if(rr&&Ul==="center"){var Gr=rr.left+rr.width/2,on=rr.top+rr.height/2;El=Gr>=vl.left&&Gr<=vl.right&&on>=vl.top&&on<=vl.bottom}return rr&&_.number(Ul)&&(El=Math.max(0,Math.min(vl.right,rr.right)-Math.max(vl.left,rr.left))*Math.max(0,Math.min(vl.bottom,rr.bottom)-Math.max(vl.top,rr.top))/(rr.width*rr.height)>=Ul),na.options.drop.checker&&(El=na.options.drop.checker(Ta,Ya,El,na,xl,qa,Qa)),El}(this,O,K,Z,be,je,De)},p.dynamicDrop=function(O){return _.bool(O)?(o.dynamicDrop=O,p):o.dynamicDrop},ee(i.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),i.methodDict.drop="dropzone",o.dynamicDrop=!1,S.actions.drop=La.defaults},listeners:{"interactions:before-action-start":function(o){var i=o.interaction;i.prepared.name==="drag"&&(i.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(o,i){var p=o.interaction,m=(o.event,o.iEvent);if(p.prepared.name==="drag"){var S=p.dropState;S.activeDrops=[],S.events={},S.activeDrops=Je(i,p.element),S.events=_e(p,0,m),S.events.activate&&(qe(S.activeDrops,S.events.activate),i.fire("actions/drop:start",{interaction:p,dragEvent:m}))}},"interactions:action-move":Oa,"interactions:after-action-move":function(o,i){var p=o.interaction,m=o.iEvent;if(p.prepared.name==="drag"){var S=p.dropState;de(p,S.events),i.fire("actions/drop:move",{interaction:p,dragEvent:m}),S.events={}}},"interactions:action-end":function(o,i){if(o.interaction.prepared.name==="drag"){var p=o.interaction,m=o.iEvent;Oa(o,i),de(p,p.dropState.events),i.fire("actions/drop:end",{interaction:p,dragEvent:m})}},"interactions:stop":function(o){var i=o.interaction;if(i.prepared.name==="drag"){var p=i.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:Je,getDrop:Ue,getDropEvents:_e,fireDropEvents:de,filterEventType:function(o){return o.search("drag")===0||o.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},gl=La;function zl(o){var i=o.interaction,p=o.iEvent,m=o.phase;if(i.prepared.name==="gesture"){var S=i.pointers.map(function(je){return je.pointer}),O=m==="start",K=m==="end",Z=i.interactable.options.deltaSource;if(p.touches=[S[0],S[1]],O)p.distance=Da(S,Z),p.box=Aa(S),p.scale=1,p.ds=0,p.angle=aa(S,Z),p.da=0,i.gesture.startDistance=p.distance,i.gesture.startAngle=p.angle;else if(K||i.pointers.length<2){var be=i.prevEvent;p.distance=be.distance,p.box=be.box,p.scale=be.scale,p.ds=0,p.angle=be.angle,p.da=0}else p.distance=Da(S,Z),p.box=Aa(S),p.scale=p.distance/i.gesture.startDistance,p.angle=aa(S,Z),p.ds=p.scale-i.gesture.scale,p.da=p.angle-i.gesture.angle;i.gesture.distance=p.distance,i.gesture.angle=p.angle,_.number(p.scale)&&p.scale!==1/0&&!isNaN(p.scale)&&(i.gesture.scale=p.scale)}}var tl={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(o){var i=o.actions,p=o.Interactable,m=o.defaults;p.prototype.gesturable=function(S){return _.object(S)?(this.options.gesture.enabled=S.enabled!==!1,this.setPerAction("gesture",S),this.setOnEvents("gesture",S),this):_.bool(S)?(this.options.gesture.enabled=S,this):this.options.gesture},i.map.gesture=tl,i.methodDict.gesture="gesturable",m.actions.gesture=tl.defaults},listeners:{"interactions:action-start":zl,"interactions:action-move":zl,"interactions:action-end":zl,"interactions:new":function(o){o.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(o){if(!(o.interaction.pointers.length<2)){var i=o.interactable.options.gesture;if(i&&i.enabled)return o.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(o){return o.search("gesture")===0}},jl=tl;function Pa(o,i,p,m,S,O,K){if(!i)return!1;if(i===!0){var Z=_.number(O.width)?O.width:O.right-O.left,be=_.number(O.height)?O.height:O.bottom-O.top;if(K=Math.min(K,Math.abs((o==="left"||o==="right"?Z:be)/2)),Z<0&&(o==="left"?o="right":o==="right"&&(o="left")),be<0&&(o==="top"?o="bottom":o==="bottom"&&(o="top")),o==="left"){var je=Z>=0?O.left:O.right;return p.x<je+K}if(o==="top"){var De=be>=0?O.top:O.bottom;return p.y<De+K}if(o==="right")return p.x>(Z>=0?O.right:O.left)-K;if(o==="bottom")return p.y>(be>=0?O.bottom:O.top)-K}return!!_.element(m)&&(_.element(i)?i===m:U(m,i,S))}function Il(o){var i=o.iEvent,p=o.interaction;if(p.prepared.name==="resize"&&p.resizeAxes){var m=i;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 Vl,Ma,el={id:"actions/resize",before:["actions/drag"],install:function(o){var i=o.actions,p=o.browser,m=o.Interactable,S=o.defaults;el.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),el.defaultMargin=p.supportsTouch||p.supportsPointerEvent?20:10,m.prototype.resizable=function(O){return function(K,Z,be){return _.object(Z)?(K.options.resize.enabled=Z.enabled!==!1,K.setPerAction("resize",Z),K.setOnEvents("resize",Z),_.string(Z.axis)&&/^x$|^y$|^xy$/.test(Z.axis)?K.options.resize.axis=Z.axis:Z.axis===null&&(K.options.resize.axis=be.defaults.actions.resize.axis),_.bool(Z.preserveAspectRatio)?K.options.resize.preserveAspectRatio=Z.preserveAspectRatio:_.bool(Z.square)&&(K.options.resize.square=Z.square),K):_.bool(Z)?(K.options.resize.enabled=Z,K):K.options.resize}(this,O,o)},i.map.resize=el,i.methodDict.resize="resizable",S.actions.resize=el.defaults},listeners:{"interactions:new":function(o){o.interaction.resizeAxes="xy"},"interactions:action-start":function(o){(function(i){var p=i.iEvent,m=i.interaction;if(m.prepared.name==="resize"&&m.prepared.edges){var S=p,O=m.rect;m._rects={start:ee({},O),corrected:ee({},O),previous:ee({},O),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},S.edges=m.prepared.edges,S.rect=m._rects.corrected,S.deltaRect=m._rects.delta}})(o),Il(o)},"interactions:action-move":function(o){(function(i){var p=i.iEvent,m=i.interaction;if(m.prepared.name==="resize"&&m.prepared.edges){var S=p,O=m.interactable.options.resize.invert,K=O==="reposition"||O==="negate",Z=m.rect,be=m._rects,je=be.start,De=be.corrected,na=be.delta,Ta=be.previous;if(ee(Ta,De),K){if(ee(De,Z),O==="reposition"){if(De.top>De.bottom){var Ya=De.top;De.top=De.bottom,De.bottom=Ya}if(De.left>De.right){var qa=De.left;De.left=De.right,De.right=qa}}}else De.top=Math.min(Z.top,je.bottom),De.bottom=Math.max(Z.bottom,je.top),De.left=Math.min(Z.left,je.right),De.right=Math.max(Z.right,je.left);for(var Qa in De.width=De.right-De.left,De.height=De.bottom-De.top,De)na[Qa]=De[Qa]-Ta[Qa];S.edges=m.prepared.edges,S.rect=De,S.deltaRect=na}})(o),Il(o)},"interactions:action-end":function(o){var i=o.iEvent,p=o.interaction;if(p.prepared.name==="resize"&&p.prepared.edges){var m=i;m.edges=p.prepared.edges,m.rect=p._rects.corrected,m.deltaRect=p._rects.delta}},"auto-start:check":function(o){var i=o.interaction,p=o.interactable,m=o.element,S=o.rect,O=o.buttons;if(S){var K=ee({},i.coords.cur.page),Z=p.options.resize;if(Z&&Z.enabled&&(!i.pointerIsDown||!/mouse|pointer/.test(i.pointerType)||(O&Z.mouseButtons)!=0)){if(_.object(Z.edges)){var be={left:!1,right:!1,top:!1,bottom:!1};for(var je in be)be[je]=Pa(je,Z.edges[je],K,i._latestPointer.eventTarget,m,S,Z.margin||el.defaultMargin);be.left=be.left&&!be.right,be.top=be.top&&!be.bottom,(be.left||be.right||be.top||be.bottom)&&(o.action={name:"resize",edges:be})}else{var De=Z.axis!=="y"&&K.x>S.right-el.defaultMargin,na=Z.axis!=="x"&&K.y>S.bottom-el.defaultMargin;(De||na)&&(o.action={name:"resize",axes:(De?"x":"")+(na?"y":"")})}return!o.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(o){var i=o.edges,p=o.axis,m=o.name,S=el.cursors,O=null;if(p)O=S[m+p];else if(i){for(var K="",Z=0,be=["top","bottom","left","right"];Z<be.length;Z++){var je=be[Z];i[je]&&(K+=je)}O=S[K]}return O},filterEventType:function(o){return o.search("resize")===0},defaultMargin:null},sl=el,ol={id:"actions",install:function(o){o.usePlugin(jl),o.usePlugin(sl),o.usePlugin(oe),o.usePlugin(gl)}},Va=0,dl={request:function(o){return Vl(o)},cancel:function(o){return Ma(o)},init:function(o){if(Vl=o.requestAnimationFrame,Ma=o.cancelAnimationFrame,!Vl)for(var i=["ms","moz","webkit","o"],p=0;p<i.length;p++){var m=i[p];Vl=o["".concat(m,"RequestAnimationFrame")],Ma=o["".concat(m,"CancelAnimationFrame")]||o["".concat(m,"CancelRequestAnimationFrame")]}Vl=Vl&&Vl.bind(o),Ma=Ma&&Ma.bind(o),Vl||(Vl=function(S){var O=Date.now(),K=Math.max(0,16-(O-Va)),Z=o.setTimeout(function(){S(O+K)},K);return Va=O+K,Z},Ma=function(S){return clearTimeout(S)})}},rl={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(o){rl.isScrolling=!0,dl.cancel(rl.i),o.autoScroll=rl,rl.interaction=o,rl.prevTime=rl.now(),rl.i=dl.request(rl.scroll)},stop:function(){rl.isScrolling=!1,rl.interaction&&(rl.interaction.autoScroll=null),dl.cancel(rl.i)},scroll:function(){var o=rl.interaction,i=o.interactable,p=o.element,m=o.prepared.name,S=i.options[m].autoScroll,O=X(S.container,i,p),K=rl.now(),Z=(K-rl.prevTime)/1e3,be=S.speed*Z;if(be>=1){var je={x:rl.x*be,y:rl.y*be};if(je.x||je.y){var De=ra(O);_.window(O)?O.scrollBy(je.x,je.y):O&&(O.scrollLeft+=je.x,O.scrollTop+=je.y);var na=ra(O),Ta={x:na.x-De.x,y:na.y-De.y};(Ta.x||Ta.y)&&i.fire({type:"autoscroll",target:p,interactable:i,delta:Ta,interaction:o,container:O})}rl.prevTime=K}rl.isScrolling&&(dl.cancel(rl.i),rl.i=dl.request(rl.scroll))},check:function(o,i){var p;return(p=o.options[i].autoScroll)==null?void 0:p.enabled},onInteractionMove:function(o){var i=o.interaction,p=o.pointer;if(i.interacting()&&rl.check(i.interactable,i.prepared.name))if(i.simulation)rl.x=rl.y=0;else{var m,S,O,K,Z=i.interactable,be=i.element,je=i.prepared.name,De=Z.options[je].autoScroll,na=X(De.container,Z,be);if(_.window(na))K=p.clientX<rl.margin,m=p.clientY<rl.margin,S=p.clientX>na.innerWidth-rl.margin,O=p.clientY>na.innerHeight-rl.margin;else{var Ta=Le(na);K=p.clientX<Ta.left+rl.margin,m=p.clientY<Ta.top+rl.margin,S=p.clientX>Ta.right-rl.margin,O=p.clientY>Ta.bottom-rl.margin}rl.x=S?1:K?-1:0,rl.y=O?1:m?-1:0,rl.isScrolling||(rl.margin=De.margin,rl.speed=De.speed,rl.start(i))}}};function X(o,i,p){return(_.string(o)?da(o,i,p):o)||w(p)}function ra(o){return _.window(o)&&(o=window.document.body),{x:o.scrollLeft,y:o.scrollTop}}var ea={id:"auto-scroll",install:function(o){var i=o.defaults,p=o.actions;o.autoScroll=rl,rl.now=function(){return o.now()},p.phaselessTypes.autoscroll=!0,i.perAction.autoScroll=rl.defaults},listeners:{"interactions:new":function(o){o.interaction.autoScroll=null},"interactions:destroy":function(o){o.interaction.autoScroll=null,rl.stop(),rl.interaction&&(rl.interaction=null)},"interactions:stop":rl.stop,"interactions:action-move":function(o){return rl.onInteractionMove(o)}}},fe=ea;function ka(o,i){var p=!1;return function(){return p||(j.console.warn(i),p=!0),o.apply(this,arguments)}}function ha(o,i){return o.name=i.name,o.axis=i.axis,o.edges=i.edges,o}function Ye(o){return _.bool(o)?(this.options.styleCursor=o,this):o===null?(delete this.options.styleCursor,this):this.options.styleCursor}function ta(o){return _.func(o)?(this.options.actionChecker=o,this):o===null?(delete this.options.actionChecker,this):this.options.actionChecker}var va={id:"auto-start/interactableMethods",install:function(o){var i=o.Interactable;i.prototype.getAction=function(p,m,S,O){var K=function(Z,be,je,De,na){var Ta=Z.getRect(De),Ya=be.buttons||{0:1,1:4,3:8,4:16}[be.button],qa={action:null,interactable:Z,interaction:je,element:De,rect:Ta,buttons:Ya};return na.fire("auto-start:check",qa),qa.action}(this,m,S,O,o);return this.options.actionChecker?this.options.actionChecker(p,m,K,this,O,S):K},i.prototype.ignoreFrom=ka(function(p){return this._backCompatOption("ignoreFrom",p)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),i.prototype.allowFrom=ka(function(p){return this._backCompatOption("allowFrom",p)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),i.prototype.actionChecker=ta,i.prototype.styleCursor=Ye}};function pl(o,i,p,m,S){return i.testIgnoreAllow(i.options[o.name],p,m)&&i.options[o.name].enabled&&Za(i,p,o,S)?o:null}function He(o,i,p,m,S,O,K){for(var Z=0,be=m.length;Z<be;Z++){var je=m[Z],De=S[Z],na=je.getAction(i,p,o,De);if(na){var Ta=pl(na,je,De,O,K);if(Ta)return{action:Ta,interactable:je,element:De}}}return{action:null,interactable:null,element:null}}function ca(o,i,p,m,S){var O=[],K=[],Z=m;function be(De){O.push(De),K.push(Z)}for(;_.element(Z);){O=[],K=[],S.interactables.forEachMatch(Z,be);var je=He(o,i,p,O,K,m,S);if(je.action&&!je.interactable.options[je.action.name].manualStart)return je;Z=Ve(Z)}return{action:null,interactable:null,element:null}}function oa(o,i,p){var m=i.action,S=i.interactable,O=i.element;m=m||{name:null},o.interactable=S,o.element=O,ha(o.prepared,m),o.rect=S&&m.name?S.getRect(O):null,_l(o,p),p.fire("autoStart:prepared",{interaction:o})}function Za(o,i,p,m){var S=o.options,O=S[p.name].max,K=S[p.name].maxPerElement,Z=m.autoStart.maxInteractions,be=0,je=0,De=0;if(!(O&&K&&Z))return!1;for(var na=0,Ta=m.interactions.list;na<Ta.length;na++){var Ya=Ta[na],qa=Ya.prepared.name;if(Ya.interacting()&&(++be>=Z||Ya.interactable===o&&((je+=qa===p.name?1:0)>=O||Ya.element===i&&(De++,qa===p.name&&De>=K))))return!1}return Z>0}function Re(o,i){return _.number(o)?(i.autoStart.maxInteractions=o,this):i.autoStart.maxInteractions}function Te(o,i,p){var m=p.autoStart.cursorElement;m&&m!==o&&(m.style.cursor=""),o.ownerDocument.documentElement.style.cursor=i,o.style.cursor=i,p.autoStart.cursorElement=i?o:null}function _l(o,i){var p=o.interactable,m=o.element,S=o.prepared;if(o.pointerType==="mouse"&&p&&p.options.styleCursor){var O="";if(S.name){var K=p.options[S.name].cursorChecker;O=_.func(K)?K(S,p,m,o._interacting):i.actions.map[S.name].getCursor(S)}Te(o.element,O||"",i)}else i.autoStart.cursorElement&&Te(i.autoStart.cursorElement,"",i)}var Ll={id:"auto-start/base",before:["actions"],install:function(o){var i=o.interactStatic,p=o.defaults;o.usePlugin(va),p.base.actionChecker=null,p.base.styleCursor=!0,ee(p.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),i.maxInteractions=function(m){return Re(m,o)},o.autoStart={maxInteractions:1/0,withinInteractionLimit:Za,cursorElement:null}},listeners:{"interactions:down":function(o,i){var p=o.interaction,m=o.pointer,S=o.event,O=o.eventTarget;p.interacting()||oa(p,ca(p,m,S,O,i),i)},"interactions:move":function(o,i){(function(p,m){var S=p.interaction,O=p.pointer,K=p.event,Z=p.eventTarget;S.pointerType!=="mouse"||S.pointerIsDown||S.interacting()||oa(S,ca(S,O,K,Z,m),m)})(o,i),function(p,m){var S=p.interaction;if(S.pointerIsDown&&!S.interacting()&&S.pointerWasMoved&&S.prepared.name){m.fire("autoStart:before-start",p);var O=S.interactable,K=S.prepared.name;K&&O&&(O.options[K].manualStart||!Za(O,S.element,S.prepared,m)?S.stop():(S.start(S.prepared,O,S.element),_l(S,m)))}}(o,i)},"interactions:stop":function(o,i){var p=o.interaction,m=p.interactable;m&&m.options.styleCursor&&Te(p.element,"",i)}},maxInteractions:Re,withinInteractionLimit:Za,validateAction:pl},Wl=Ll,Kl={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(o,i){var p=o.interaction,m=o.eventTarget,S=o.dx,O=o.dy;if(p.prepared.name==="drag"){var K=Math.abs(S),Z=Math.abs(O),be=p.interactable.options.drag,je=be.startAxis,De=K>Z?"x":K<Z?"y":"xy";if(p.prepared.axis=be.lockAxis==="start"?De[0]:be.lockAxis,De!=="xy"&&je!=="xy"&&je!==De){p.prepared.name=null;for(var na=m,Ta=function(qa){if(qa!==p.interactable){var Qa=p.interactable.options.drag;if(!Qa.manualStart&&qa.testIgnoreAllow(Qa,na,m)){var xl=qa.getAction(p.downPointer,p.downEvent,p,na);if(xl&&xl.name==="drag"&&function(vl,El){if(!El)return!1;var Ul=El.options.drag.startAxis;return vl==="xy"||Ul==="xy"||Ul===vl}(De,qa)&&Wl.validateAction(xl,qa,na,m,i))return qa}}};_.element(na);){var Ya=i.interactables.forEachMatch(na,Ta);if(Ya){p.prepared.name="drag",p.interactable=Ya,p.element=na;break}na=Ve(na)}}}}}};function Ql(o){var i=o.prepared&&o.prepared.name;if(!i)return null;var p=o.interactable.options;return p[i].hold||p[i].delay}var pr={id:"auto-start/hold",install:function(o){var i=o.defaults;o.usePlugin(Wl),i.perAction.hold=0,i.perAction.delay=0},listeners:{"interactions:new":function(o){o.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(o){var i=o.interaction,p=Ql(i);p>0&&(i.autoStartHoldTimer=setTimeout(function(){i.start(i.prepared,i.interactable,i.element)},p))},"interactions:move":function(o){var i=o.interaction,p=o.duplicate;i.autoStartHoldTimer&&i.pointerWasMoved&&!p&&(clearTimeout(i.autoStartHoldTimer),i.autoStartHoldTimer=null)},"autoStart:before-start":function(o){var i=o.interaction;Ql(i)>0&&(i.prepared.name=null)}},getHoldDuration:Ql},Rl=pr,fr={id:"auto-start",install:function(o){o.usePlugin(Wl),o.usePlugin(Rl),o.usePlugin(Kl)}},$r=function(o){return/^(always|never|auto)$/.test(o)?(this.options.preventDefault=o,this):_.bool(o)?(this.options.preventDefault=o?"always":"never",this):this.options.preventDefault};function Hl(o){var i=o.interaction,p=o.event;i.interactable&&i.interactable.checkAndPreventDefault(p)}var ar={id:"core/interactablePreventDefault",install:function(o){var i=o.Interactable;i.prototype.preventDefault=$r,i.prototype.checkAndPreventDefault=function(p){return function(m,S,O){var K=m.options.preventDefault;if(K!=="never")if(K!=="always"){if(S.events.supportsPassive&&/^touch(start|move)$/.test(O.type)){var Z=w(O.target).document,be=S.getDocOptions(Z);if(!be||!be.events||be.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(O.type)||_.element(O.target)&&me(O.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||O.preventDefault()}else O.preventDefault()}(this,o,p)},o.interactions.docEvents.push({type:"dragstart",listener:function(p){for(var m=0,S=o.interactions.list;m<S.length;m++){var O=S[m];if(O.element&&(O.element===p.target||ce(O.element,p.target)))return void O.interactable.checkAndPreventDefault(p)}}})},listeners:["down","move","up","cancel"].reduce(function(o,i){return o["interactions:".concat(i)]=Hl,o},{})};function Vr(o,i){if(i.phaselessTypes[o])return!0;for(var p in i.map)if(o.indexOf(p)===0&&o.substr(p.length)in i.phases)return!0;return!1}function Tr(o){var i={};for(var p in o){var m=o[p];_.plainObject(m)?i[p]=Tr(m):_.array(m)?i[p]=Oe(m):i[p]=m}return i}var Fr=function(){function o(i){s(this,o),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=i,this.result=Mr(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return f(o,[{key:"start",value:function(i,p){var m,S,O=i.phase,K=this.interaction,Z=function(je){var De=je.interactable.options[je.prepared.name],na=De.modifiers;return na&&na.length?na:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(Ta){var Ya=De[Ta];return Ya&&Ya.enabled&&{options:Ya,methods:Ya._methods}}).filter(function(Ta){return!!Ta})}(K);this.prepareStates(Z),this.startEdges=ee({},K.edges),this.edges=ee({},this.startEdges),this.startOffset=(m=K.rect,S=p,m?{left:S.x-m.left,top:S.y-m.top,right:m.right-S.x,bottom:m.bottom-S.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var be=this.fillArg({phase:O,pageCoords:p,preEnd:!1});return this.result=Mr(),this.startAll(be),this.result=this.setAll(be)}},{key:"fillArg",value:function(i){var p=this.interaction;return i.interaction=p,i.interactable=p.interactable,i.element=p.element,i.rect||(i.rect=p.rect),i.edges||(i.edges=this.startEdges),i.startOffset=this.startOffset,i}},{key:"startAll",value:function(i){for(var p=0,m=this.states;p<m.length;p++){var S=m[p];S.methods.start&&(i.state=S,S.methods.start(i))}}},{key:"setAll",value:function(i){var p=i.phase,m=i.preEnd,S=i.skipModifiers,O=i.rect,K=i.edges;i.coords=ee({},i.pageCoords),i.rect=ee({},O),i.edges=ee({},K);for(var Z=S?this.states.slice(S):this.states,be=Mr(i.coords,i.rect),je=0;je<Z.length;je++){var De,na=Z[je],Ta=na.options,Ya=ee({},i.coords),qa=null;(De=na.methods)!=null&&De.set&&this.shouldDo(Ta,m,p)&&(i.state=na,qa=na.methods.set(i),ne(i.edges,i.rect,{x:i.coords.x-Ya.x,y:i.coords.y-Ya.y})),be.eventProps.push(qa)}ee(this.edges,i.edges),be.delta.x=i.coords.x-i.pageCoords.x,be.delta.y=i.coords.y-i.pageCoords.y,be.rectDelta.left=i.rect.left-O.left,be.rectDelta.right=i.rect.right-O.right,be.rectDelta.top=i.rect.top-O.top,be.rectDelta.bottom=i.rect.bottom-O.bottom;var Qa=this.result.coords,xl=this.result.rect;if(Qa&&xl){var vl=be.rect.left!==xl.left||be.rect.right!==xl.right||be.rect.top!==xl.top||be.rect.bottom!==xl.bottom;be.changed=vl||Qa.x!==be.coords.x||Qa.y!==be.coords.y}return be}},{key:"applyToInteraction",value:function(i){var p=this.interaction,m=i.phase,S=p.coords.cur,O=p.coords.start,K=this.result,Z=this.startDelta,be=K.delta;m==="start"&&ee(this.startDelta,K.delta);for(var je=0,De=[[O,Z],[S,be]];je<De.length;je++){var na=De[je],Ta=na[0],Ya=na[1];Ta.page.x+=Ya.x,Ta.page.y+=Ya.y,Ta.client.x+=Ya.x,Ta.client.y+=Ya.y}var qa=this.result.rectDelta,Qa=i.rect||p.rect;Qa.left+=qa.left,Qa.right+=qa.right,Qa.top+=qa.top,Qa.bottom+=qa.bottom,Qa.width=Qa.right-Qa.left,Qa.height=Qa.bottom-Qa.top}},{key:"setAndApply",value:function(i){var p=this.interaction,m=i.phase,S=i.preEnd,O=i.skipModifiers,K=this.setAll(this.fillArg({preEnd:S,phase:m,pageCoords:i.modifiedCoords||p.coords.cur.page}));if(this.result=K,!K.changed&&(!O||O<this.states.length)&&p.interacting())return!1;if(i.modifiedCoords){var Z=p.coords.cur.page,be={x:i.modifiedCoords.x-Z.x,y:i.modifiedCoords.y-Z.y};K.coords.x+=be.x,K.coords.y+=be.y,K.delta.x+=be.x,K.delta.y+=be.y}this.applyToInteraction(i)}},{key:"beforeEnd",value:function(i){var p=i.interaction,m=i.event,S=this.states;if(S&&S.length){for(var O=!1,K=0;K<S.length;K++){var Z=S[K];i.state=Z;var be=Z.options,je=Z.methods,De=je.beforeEnd&&je.beforeEnd(i);if(De)return this.endResult=De,!1;O=O||!O&&this.shouldDo(be,!0,i.phase,!0)}O&&p.move({event:m,preEnd:!0})}}},{key:"stop",value:function(i){var p=i.interaction;if(this.states&&this.states.length){var m=ee({states:this.states,interactable:p.interactable,element:p.element,rect:null},i);this.fillArg(m);for(var S=0,O=this.states;S<O.length;S++){var K=O[S];m.state=K,K.methods.stop&&K.methods.stop(m)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(i){this.states=[];for(var p=0;p<i.length;p++){var m=i[p],S=m.options,O=m.methods,K=m.name;this.states.push({options:S,methods:O,index:p,name:K})}return this.states}},{key:"restoreInteractionCoords",value:function(i){var p=i.interaction,m=p.coords,S=p.rect,O=p.modification;if(O.result){for(var K=O.startDelta,Z=O.result,be=Z.delta,je=Z.rectDelta,De=0,na=[[m.start,K],[m.cur,be]];De<na.length;De++){var Ta=na[De],Ya=Ta[0],qa=Ta[1];Ya.page.x-=qa.x,Ya.page.y-=qa.y,Ya.client.x-=qa.x,Ya.client.y-=qa.y}S.left-=je.left,S.right-=je.right,S.top-=je.top,S.bottom-=je.bottom}}},{key:"shouldDo",value:function(i,p,m,S){return!(!i||i.enabled===!1||S&&!i.endOnly||i.endOnly&&!p||m==="start"&&!i.setStart)}},{key:"copyFrom",value:function(i){this.startOffset=i.startOffset,this.startDelta=i.startDelta,this.startEdges=i.startEdges,this.edges=i.edges,this.states=i.states.map(function(p){return Tr(p)}),this.result=Mr(ee({},i.result.coords),ee({},i.result.rect))}},{key:"destroy",value:function(){for(var i in this)this[i]=null}}]),o}();function Mr(o,i){return{rect:i,coords:o,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function Sr(o,i){var p=o.defaults,m={start:o.start,set:o.set,beforeEnd:o.beforeEnd,stop:o.stop},S=function(O){var K=O||{};for(var Z in K.enabled=K.enabled!==!1,p)Z in K||(K[Z]=p[Z]);var be={options:K,methods:m,name:i,enable:function(){return K.enabled=!0,be},disable:function(){return K.enabled=!1,be}};return be};return i&&typeof i=="string"&&(S._defaults=p,S._methods=m),S}function Er(o){var i=o.iEvent,p=o.interaction.modification.result;p&&(i.modifiers=p.eventProps)}var yn={id:"modifiers/base",before:["actions"],install:function(o){o.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(o){var i=o.interaction;i.modification=new Fr(i)},"interactions:before-action-start":function(o){var i=o.interaction,p=o.interaction.modification;p.start(o,i.coords.start.page),i.edges=p.edges,p.applyToInteraction(o)},"interactions:before-action-move":function(o){var i=o.interaction,p=i.modification,m=p.setAndApply(o);return i.edges=p.edges,m},"interactions:before-action-end":function(o){var i=o.interaction,p=i.modification,m=p.beforeEnd(o);return i.edges=p.startEdges,m},"interactions:action-start":Er,"interactions:action-move":Er,"interactions:action-end":Er,"interactions:after-action-start":function(o){return o.interaction.modification.restoreInteractionCoords(o)},"interactions:after-action-move":function(o){return o.interaction.modification.restoreInteractionCoords(o)},"interactions:stop":function(o){return o.interaction.modification.stop(o)}}},Dr=yn,ur={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},gn=function(o){y(p,o);var i=I(p);function p(m,S,O,K,Z,be,je){var De;s(this,p),(De=i.call(this,m)).relatedTarget=null,De.screenX=void 0,De.screenY=void 0,De.button=void 0,De.buttons=void 0,De.ctrlKey=void 0,De.shiftKey=void 0,De.altKey=void 0,De.metaKey=void 0,De.page=void 0,De.client=void 0,De.delta=void 0,De.rect=void 0,De.x0=void 0,De.y0=void 0,De.t0=void 0,De.dt=void 0,De.duration=void 0,De.clientX0=void 0,De.clientY0=void 0,De.velocity=void 0,De.speed=void 0,De.swipe=void 0,De.axes=void 0,De.preEnd=void 0,Z=Z||m.element;var na=m.interactable,Ta=(na&&na.options||ur).deltaSource,Ya=Ae(na,Z,O),qa=K==="start",Qa=K==="end",xl=qa?D(De):m.prevEvent,vl=qa?m.coords.start:Qa?{page:xl.page,client:xl.client,timeStamp:m.coords.cur.timeStamp}:m.coords.cur;return De.page=ee({},vl.page),De.client=ee({},vl.client),De.rect=ee({},m.rect),De.timeStamp=vl.timeStamp,Qa||(De.page.x-=Ya.x,De.page.y-=Ya.y,De.client.x-=Ya.x,De.client.y-=Ya.y),De.ctrlKey=S.ctrlKey,De.altKey=S.altKey,De.shiftKey=S.shiftKey,De.metaKey=S.metaKey,De.button=S.button,De.buttons=S.buttons,De.target=Z,De.currentTarget=Z,De.preEnd=be,De.type=je||O+(K||""),De.interactable=na,De.t0=qa?m.pointers[m.pointers.length-1].downTime:xl.t0,De.x0=m.coords.start.page.x-Ya.x,De.y0=m.coords.start.page.y-Ya.y,De.clientX0=m.coords.start.client.x-Ya.x,De.clientY0=m.coords.start.client.y-Ya.y,De.delta=qa||Qa?{x:0,y:0}:{x:De[Ta].x-xl[Ta].x,y:De[Ta].y-xl[Ta].y},De.dt=m.coords.delta.timeStamp,De.duration=De.timeStamp-De.t0,De.velocity=ee({},m.coords.velocity[Ta]),De.speed=Ga(De.velocity.x,De.velocity.y),De.swipe=Qa||K==="inertiastart"?De.getSwipe():null,De}return f(p,[{key:"getSwipe",value:function(){var m=this._interaction;if(m.prevEvent.speed<600||this.timeStamp-m.prevEvent.timeStamp>150)return null;var S=180*Math.atan2(m.prevEvent.velocityY,m.prevEvent.velocityX)/Math.PI;S<0&&(S+=360);var O=112.5<=S&&S<247.5,K=202.5<=S&&S<337.5;return{up:K,down:!K&&22.5<=S&&S<157.5,left:O,right:!O&&(292.5<=S||S<67.5),angle:S,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}(ae);Object.defineProperties(gn.prototype,{pageX:{get:function(){return this.page.x},set:function(o){this.page.x=o}},pageY:{get:function(){return this.page.y},set:function(o){this.page.y=o}},clientX:{get:function(){return this.client.x},set:function(o){this.client.x=o}},clientY:{get:function(){return this.client.y},set:function(o){this.client.y=o}},dx:{get:function(){return this.delta.x},set:function(o){this.delta.x=o}},dy:{get:function(){return this.delta.y},set:function(o){this.delta.y=o}},velocityX:{get:function(){return this.velocity.x},set:function(o){this.velocity.x=o}},velocityY:{get:function(){return this.velocity.y},set:function(o){this.velocity.y=o}}});var ln=f(function o(i,p,m,S,O){s(this,o),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=i,this.pointer=p,this.event=m,this.downTime=S,this.downTarget=O}),rn=function(o){return o.interactable="",o.element="",o.prepared="",o.pointerIsDown="",o.pointerWasMoved="",o._proxy="",o}({}),Sn=function(o){return o.start="",o.move="",o.end="",o.stop="",o.interacting="",o}({}),Tn=0,pn=function(){function o(i){var p=this,m=i.pointerType,S=i.scopeFire;s(this,o),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=ka(function(De){this.move(De)},"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=Tn++,this._scopeFire=S,this.pointerType=m;var O=this;this._proxy={};var K=function(De){Object.defineProperty(p._proxy,De,{get:function(){return O[De]}})};for(var Z in rn)K(Z);var be=function(De){Object.defineProperty(p._proxy,De,{value:function(){return O[De].apply(O,arguments)}})};for(var je in Sn)be(je);this._scopeFire("interactions:new",{interaction:this})}return f(o,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(i,p,m){var S=this.updatePointer(i,p,m,!0),O=this.pointers[S];this._scopeFire("interactions:down",{pointer:i,event:p,eventTarget:m,pointerIndex:S,pointerInfo:O,type:"down",interaction:this})}},{key:"start",value:function(i,p,m){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(i.name==="gesture"?2:1)||!p.options[i.name].enabled)&&(ha(this.prepared,i),this.interactable=p,this.element=m,this.rect=p.getRect(m),this.edges=this.prepared.edges?ee({},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(i,p,m){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(i,p,m,!1);var S,O,K=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&&(S=this.coords.cur.client.x-this.coords.start.client.x,O=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=Ga(S,O)>this.pointerMoveTolerance);var Z,be,je,De=this.getPointerIndex(i),na={pointer:i,pointerIndex:De,pointerInfo:this.pointers[De],event:p,type:"move",eventTarget:m,dx:S,dy:O,duplicate:K,interaction:this};K||(Z=this.coords.velocity,be=this.coords.delta,je=Math.max(be.timeStamp/1e3,.001),Z.page.x=be.page.x/je,Z.page.y=be.page.y/je,Z.client.x=be.client.x/je,Z.client.y=be.client.y/je,Z.timeStamp=je),this._scopeFire("interactions:move",na),K||this.simulation||(this.interacting()&&(na.type=null,this.move(na)),this.pointerWasMoved&&J(this.coords.prev,this.coords.cur))}},{key:"move",value:function(i){i&&i.event||ve(this.coords.delta),(i=ee({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},i||{})).phase="move",this._doPhase(i)}},{key:"pointerUp",value:function(i,p,m,S){var O=this.getPointerIndex(i);O===-1&&(O=this.updatePointer(i,p,m,!1));var K=/cancel$/i.test(p.type)?"cancel":"up";this._scopeFire("interactions:".concat(K),{pointer:i,pointerIndex:O,pointerInfo:this.pointers[O],event:p,eventTarget:m,type:K,curEventTarget:S,interaction:this}),this.simulation||this.end(p),this.removePointer(i,p)}},{key:"documentBlur",value:function(i){this.end(i),this._scopeFire("interactions:blur",{event:i,type:"blur",interaction:this})}},{key:"end",value:function(i){var p;this._ending=!0,i=i||this._latestPointer.event,this.interacting()&&(p=this._doPhase({event:i,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(i){var p=te(i);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:Me(this.pointers,function(m){return m.id===p})}},{key:"getPointerInfo",value:function(i){return this.pointers[this.getPointerIndex(i)]}},{key:"updatePointer",value:function(i,p,m,S){var O,K,Z,be=te(i),je=this.getPointerIndex(i),De=this.pointers[je];return S=S!==!1&&(S||/(down|start)$/i.test(p.type)),De?De.pointer=i:(De=new ln(be,i,p,null,null),je=this.pointers.length,this.pointers.push(De)),ba(this.coords.cur,this.pointers.map(function(na){return na.pointer}),this._now()),O=this.coords.delta,K=this.coords.prev,Z=this.coords.cur,O.page.x=Z.page.x-K.page.x,O.page.y=Z.page.y-K.page.y,O.client.x=Z.client.x-K.client.x,O.client.y=Z.client.y-K.client.y,O.timeStamp=Z.timeStamp-K.timeStamp,S&&(this.pointerIsDown=!0,De.downTime=this.coords.cur.timeStamp,De.downTarget=m,H(this.downPointer,i),this.interacting()||(J(this.coords.start,this.coords.cur),J(this.coords.prev,this.coords.cur),this.downEvent=p,this.pointerWasMoved=!1)),this._updateLatestPointer(i,p,m),this._scopeFire("interactions:update-pointer",{pointer:i,event:p,eventTarget:m,down:S,pointerInfo:De,pointerIndex:je,interaction:this}),je}},{key:"removePointer",value:function(i,p){var m=this.getPointerIndex(i);if(m!==-1){var S=this.pointers[m];this._scopeFire("interactions:remove-pointer",{pointer:i,event:p,eventTarget:null,pointerIndex:m,pointerInfo:S,interaction:this}),this.pointers.splice(m,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(i,p,m){this._latestPointer.pointer=i,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(i,p,m,S){return new gn(this,i,this.prepared.name,p,this.element,m,S)}},{key:"_fireEvent",value:function(i){var p;(p=this.interactable)==null||p.fire(i),(!this.prevEvent||i.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=i)}},{key:"_doPhase",value:function(i){var p=i.event,m=i.phase,S=i.preEnd,O=i.type,K=this.rect;if(K&&m==="move"&&(ne(this.edges,K,this.coords.delta[this.interactable.options.deltaSource]),K.width=K.right-K.left,K.height=K.bottom-K.top),this._scopeFire("interactions:before-action-".concat(m),i)===!1)return!1;var Z=i.iEvent=this._createPreparedEvent(p,m,S,O);return this._scopeFire("interactions:action-".concat(m),i),m==="start"&&(this.prevEvent=Z),this._fireEvent(Z),this._scopeFire("interactions:after-action-".concat(m),i),!0}},{key:"_now",value:function(){return Date.now()}}]),o}();function lr(o){Ol(o.interaction)}function Ol(o){if(!function(p){return!(!p.offset.pending.x&&!p.offset.pending.y)}(o))return!1;var i=o.offset.pending;return cl(o.coords.cur,i),cl(o.coords.delta,i),ne(o.edges,o.rect,i),i.x=0,i.y=0,!0}function Ar(o){var i=o.x,p=o.y;this.offset.pending.x+=i,this.offset.pending.y+=p,this.offset.total.x+=i,this.offset.total.y+=p}function cl(o,i){var p=o.page,m=o.client,S=i.x,O=i.y;p.x+=S,p.y+=O,m.x+=S,m.y+=O}Sn.offsetBy="";var cr={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(o){o.Interaction.prototype.offsetBy=Ar},listeners:{"interactions:new":function(o){o.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(o){return function(i){i.pointerIsDown&&(cl(i.coords.cur,i.offset.total),i.offset.pending.x=0,i.offset.pending.y=0)}(o.interaction)},"interactions:before-action-start":lr,"interactions:before-action-move":lr,"interactions:before-action-end":function(o){var i=o.interaction;if(Ol(i))return i.move({offset:!0}),i.end(),!1},"interactions:stop":function(o){var i=o.interaction;i.offset.total.x=0,i.offset.total.y=0,i.offset.pending.x=0,i.offset.pending.y=0}}},Fl=cr,_r=function(){function o(i){s(this,o),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=i}return f(o,[{key:"start",value:function(i){var p=this.interaction,m=Yl(p);if(!m||!m.enabled)return!1;var S=p.coords.velocity.client,O=Ga(S.x,S.y),K=this.modification||(this.modification=new Fr(p));if(K.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=K.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(K.result=K.setAll(this.modifierArg),!K.result.changed)return!1;this.startSmoothEnd()}return p.modification.result.rect=null,p.offsetBy(this.targetOffset),p._doPhase({interaction:p,event:i,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 i=this,p=this.interaction.coords.velocity.client,m=Yl(this.interaction),S=m.resistance,O=-Math.log(m.endSpeed/this.v0)/S;this.targetOffset={x:(p.x-O)/S,y:(p.y-O)/S},this.te=O,this.lambda_v0=S/this.v0,this.one_ve_v0=1-m.endSpeed/this.v0;var K=this.modification,Z=this.modifierArg;Z.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},K.result=K.setAll(Z),K.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+K.result.delta.x,y:this.targetOffset.y+K.result.delta.y}),this.onNextFrame(function(){return i.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var i=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 i.smoothEndTick()})}},{key:"onNextFrame",value:function(i){var p=this;this.timeout=dl.request(function(){p.active&&i()})}},{key:"inertiaTick",value:function(){var i,p,m,S,O,K,Z,be=this,je=this.interaction,De=Yl(je).resistance,na=(je._now()-this.t0)/1e3;if(na<this.te){var Ta,Ya=1-(Math.exp(-De*na)-this.lambda_v0)/this.one_ve_v0;this.isModified?(i=0,p=0,m=this.targetOffset.x,S=this.targetOffset.y,O=this.modifiedOffset.x,K=this.modifiedOffset.y,Ta={x:Or(Z=Ya,i,m,O),y:Or(Z,p,S,K)}):Ta={x:this.targetOffset.x*Ya,y:this.targetOffset.y*Ya};var qa={x:Ta.x-this.currentOffset.x,y:Ta.y-this.currentOffset.y};this.currentOffset.x+=qa.x,this.currentOffset.y+=qa.y,je.offsetBy(qa),je.move(),this.onNextFrame(function(){return be.inertiaTick()})}else je.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var i=this,p=this.interaction,m=p._now()-this.t0,S=Yl(p).smoothEndDuration;if(m<S){var O={x:bn(m,0,this.targetOffset.x,S),y:bn(m,0,this.targetOffset.y,S)},K={x:O.x-this.currentOffset.x,y:O.y-this.currentOffset.y};this.currentOffset.x+=K.x,this.currentOffset.y+=K.y,p.offsetBy(K),p.move({skipModifiers:this.modifierCount}),this.onNextFrame(function(){return i.smoothEndTick()})}else p.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(i){var p=i.pointer,m=i.event,S=i.eventTarget,O=this.interaction;O.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),O.updatePointer(p,m,S,!0),O._doPhase({interaction:O,event:m,phase:"resume"}),J(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,dl.cancel(this.timeout)}}]),o}();function Yl(o){var i=o.interactable,p=o.prepared;return i&&i.options&&p.name&&i.options[p.name].inertia}var hr={id:"inertia",before:["modifiers","actions"],install:function(o){var i=o.defaults;o.usePlugin(Fl),o.usePlugin(Dr),o.actions.phases.inertiastart=!0,o.actions.phases.resume=!0,i.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(o){var i=o.interaction;i.inertia=new _r(i)},"interactions:before-action-end":function(o){var i=o.interaction,p=o.event;return(!i._interacting||i.simulation||!i.inertia.start(p))&&null},"interactions:down":function(o){var i=o.interaction,p=o.eventTarget,m=i.inertia;if(m.active)for(var S=p;_.element(S);){if(S===i.element){m.resume(o);break}S=Ve(S)}},"interactions:stop":function(o){var i=o.interaction.inertia;i.active&&i.stop()},"interactions:before-action-resume":function(o){var i=o.interaction.modification;i.stop(o),i.start(o,o.interaction.coords.cur.page),i.applyToInteraction(o)},"interactions:before-action-inertiastart":function(o){return o.interaction.modification.setAndApply(o)},"interactions:action-resume":Er,"interactions:action-inertiastart":Er,"interactions:after-action-inertiastart":function(o){return o.interaction.modification.restoreInteractionCoords(o)},"interactions:after-action-resume":function(o){return o.interaction.modification.restoreInteractionCoords(o)}}};function Or(o,i,p,m){var S=1-o;return S*S*i+2*S*o*p+o*o*m}function bn(o,i,p,m){return-p*(o/=m)*(o-2)+i}var Nn=hr;function kn(o,i){for(var p=0;p<i.length;p++){var m=i[p];if(o.immediatePropagationStopped)break;m(o)}}var Un=function(){function o(i){s(this,o),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=ee({},i||{})}return f(o,[{key:"fire",value:function(i){var p,m=this.global;(p=this.types[i.type])&&kn(i,p),!i.propagationStopped&&m&&(p=m[i.type])&&kn(i,p)}},{key:"on",value:function(i,p){var m=We(i,p);for(i in m)this.types[i]=ze(this.types[i]||[],m[i])}},{key:"off",value:function(i,p){var m=We(i,p);for(i in m){var S=this.types[i];if(S&&S.length)for(var O=0,K=m[i];O<K.length;O++){var Z=K[O],be=S.indexOf(Z);be!==-1&&S.splice(be,1)}}}},{key:"getRect",value:function(i){return null}}]),o}(),Ln=function(){function o(i){s(this,o),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=i,H(this,i)}return f(o,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),o}();function xn(o){return _.object(o)?{capture:!!o.capture,passive:!!o.passive}:{capture:!!o,passive:!1}}function An(o,i){return o===i||(typeof o=="boolean"?!!i.capture===o&&!i.passive:!!o.capture==!!i.capture&&!!o.passive==!!i.passive)}var Rn={id:"events",install:function(o){var i,p=[],m={},S=[],O={add:K,remove:Z,addDelegate:function(De,na,Ta,Ya,qa){var Qa=xn(qa);if(!m[Ta]){m[Ta]=[];for(var xl=0;xl<S.length;xl++){var vl=S[xl];K(vl,Ta,be),K(vl,Ta,je,!0)}}var El=m[Ta],Ul=ya(El,function(Cl){return Cl.selector===De&&Cl.context===na});Ul||(Ul={selector:De,context:na,listeners:[]},El.push(Ul)),Ul.listeners.push({func:Ya,options:Qa})},removeDelegate:function(De,na,Ta,Ya,qa){var Qa,xl=xn(qa),vl=m[Ta],El=!1;if(vl)for(Qa=vl.length-1;Qa>=0;Qa--){var Ul=vl[Qa];if(Ul.selector===De&&Ul.context===na){for(var Cl=Ul.listeners,Ml=Cl.length-1;Ml>=0;Ml--){var Al=Cl[Ml];if(Al.func===Ya&&An(Al.options,xl)){Cl.splice(Ml,1),Cl.length||(vl.splice(Qa,1),Z(na,Ta,be),Z(na,Ta,je,!0)),El=!0;break}}if(El)break}}},delegateListener:be,delegateUseCapture:je,delegatedEvents:m,documents:S,targets:p,supportsOptions:!1,supportsPassive:!1};function K(De,na,Ta,Ya){if(De.addEventListener){var qa=xn(Ya),Qa=ya(p,function(xl){return xl.eventTarget===De});Qa||(Qa={eventTarget:De,events:{}},p.push(Qa)),Qa.events[na]||(Qa.events[na]=[]),ya(Qa.events[na],function(xl){return xl.func===Ta&&An(xl.options,qa)})||(De.addEventListener(na,Ta,O.supportsOptions?qa:qa.capture),Qa.events[na].push({func:Ta,options:qa}))}}function Z(De,na,Ta,Ya){if(De.addEventListener&&De.removeEventListener){var qa=Me(p,function(Hr){return Hr.eventTarget===De}),Qa=p[qa];if(Qa&&Qa.events)if(na!=="all"){var xl=!1,vl=Qa.events[na];if(vl){if(Ta==="all"){for(var El=vl.length-1;El>=0;El--){var Ul=vl[El];Z(De,na,Ul.func,Ul.options)}return}for(var Cl=xn(Ya),Ml=0;Ml<vl.length;Ml++){var Al=vl[Ml];if(Al.func===Ta&&An(Al.options,Cl)){De.removeEventListener(na,Ta,O.supportsOptions?Cl:Cl.capture),vl.splice(Ml,1),vl.length===0&&(delete Qa.events[na],xl=!0);break}}}xl&&!Object.keys(Qa.events).length&&p.splice(qa,1)}else for(na in Qa.events)Qa.events.hasOwnProperty(na)&&Z(De,na,"all")}}function be(De,na){for(var Ta=xn(na),Ya=new Ln(De),qa=m[De.type],Qa=ke(De)[0],xl=Qa;_.element(xl);){for(var vl=0;vl<qa.length;vl++){var El=qa[vl],Ul=El.selector,Cl=El.context;if(me(xl,Ul)&&ce(Cl,Qa)&&ce(Cl,xl)){var Ml=El.listeners;Ya.currentTarget=xl;for(var Al=0;Al<Ml.length;Al++){var Hr=Ml[Al];An(Hr.options,Ta)&&Hr.func(Ya)}}}xl=Ve(xl)}}function je(De){return be(De,!0)}return(i=o.document)==null||i.createElement("div").addEventListener("test",null,{get capture(){return O.supportsOptions=!0},get passive(){return O.supportsPassive=!0}}),o.events=O,O}},Qr={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(o){for(var i=0,p=Qr.methodOrder;i<p.length;i++){var m=p[i],S=Qr[m](o);if(S)return S}return null},simulationResume:function(o){var i=o.pointerType,p=o.eventType,m=o.eventTarget,S=o.scope;if(!/down|start/i.test(p))return null;for(var O=0,K=S.interactions.list;O<K.length;O++){var Z=K[O],be=m;if(Z.simulation&&Z.simulation.allowResume&&Z.pointerType===i)for(;be;){if(be===Z.element)return Z;be=Ve(be)}}return null},mouseOrPen:function(o){var i,p=o.pointerId,m=o.pointerType,S=o.eventType,O=o.scope;if(m!=="mouse"&&m!=="pen")return null;for(var K=0,Z=O.interactions.list;K<Z.length;K++){var be=Z[K];if(be.pointerType===m){if(be.simulation&&!zn(be,p))continue;if(be.interacting())return be;i||(i=be)}}if(i)return i;for(var je=0,De=O.interactions.list;je<De.length;je++){var na=De[je];if(!(na.pointerType!==m||/down/i.test(S)&&na.simulation))return na}return null},hasPointer:function(o){for(var i=o.pointerId,p=0,m=o.scope.interactions.list;p<m.length;p++){var S=m[p];if(zn(S,i))return S}return null},idle:function(o){for(var i=o.pointerType,p=0,m=o.scope.interactions.list;p<m.length;p++){var S=m[p];if(S.pointers.length===1){var O=S.interactable;if(O&&(!O.options.gesture||!O.options.gesture.enabled))continue}else if(S.pointers.length>=2)continue;if(!S.interacting()&&i===S.pointerType)return S}return null}};function zn(o,i){return o.pointers.some(function(p){return p.id===i})}var qn=Qr,Lr=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Wn(o,i){return function(p){var m=i.interactions.list,S=$a(p),O=ke(p),K=O[0],Z=O[1],be=[];if(/^touch/.test(p.type)){i.prevTouchTime=i.now();for(var je=0,De=p.changedTouches;je<De.length;je++){var na=De[je],Ta={pointer:na,pointerId:te(na),pointerType:S,eventType:p.type,eventTarget:K,curEventTarget:Z,scope:i},Ya=fn(Ta);be.push([Ta.pointer,Ta.eventTarget,Ta.curEventTarget,Ya])}}else{var qa=!1;if(!Q.supportsPointerEvent&&/mouse/.test(p.type)){for(var Qa=0;Qa<m.length&&!qa;Qa++)qa=m[Qa].pointerType!=="mouse"&&m[Qa].pointerIsDown;qa=qa||i.now()-i.prevTouchTime<500||p.timeStamp===0}if(!qa){var xl={pointer:p,pointerId:te(p),pointerType:S,eventType:p.type,curEventTarget:Z,eventTarget:K,scope:i},vl=fn(xl);be.push([xl.pointer,xl.eventTarget,xl.curEventTarget,vl])}}for(var El=0;El<be.length;El++){var Ul=be[El],Cl=Ul[0],Ml=Ul[1],Al=Ul[2];Ul[3][o](Cl,p,Ml,Al)}}}function fn(o){var i=o.pointerType,p=o.scope,m={interaction:qn.search(o),searchDetails:o};return p.fire("interactions:find",m),m.interaction||p.interactions.new({pointerType:i})}function Ni(o,i){var p=o.doc,m=o.scope,S=o.options,O=m.interactions.docEvents,K=m.events,Z=K[i];for(var be in m.browser.isIOS&&!S.events&&(S.events={passive:!1}),K.delegatedEvents)Z(p,be,K.delegateListener),Z(p,be,K.delegateUseCapture,!0);for(var je=S&&S.events,De=0;De<O.length;De++){var na=O[De];Z(p,na.type,na.listener,je)}}var Lo={id:"core/interactions",install:function(o){for(var i={},p=0;p<Lr.length;p++){var m=Lr[p];i[m]=Wn(m,o)}var S,O=Q.pEventTypes;function K(){for(var Z=0,be=o.interactions.list;Z<be.length;Z++){var je=be[Z];if(je.pointerIsDown&&je.pointerType==="touch"&&!je._interacting)for(var De=function(){var Ya=Ta[na];o.documents.some(function(qa){return ce(qa.doc,Ya.downTarget)})||je.removePointer(Ya.pointer,Ya.event)},na=0,Ta=je.pointers;na<Ta.length;na++)De()}}(S=V.PointerEvent?[{type:O.down,listener:K},{type:O.down,listener:i.pointerDown},{type:O.move,listener:i.pointerMove},{type:O.up,listener:i.pointerUp},{type:O.cancel,listener:i.pointerUp}]:[{type:"mousedown",listener:i.pointerDown},{type:"mousemove",listener:i.pointerMove},{type:"mouseup",listener:i.pointerUp},{type:"touchstart",listener:K},{type:"touchstart",listener:i.pointerDown},{type:"touchmove",listener:i.pointerMove},{type:"touchend",listener:i.pointerUp},{type:"touchcancel",listener:i.pointerUp}]).push({type:"blur",listener:function(Z){for(var be=0,je=o.interactions.list;be<je.length;be++)je[be].documentBlur(Z)}}),o.prevTouchTime=0,o.Interaction=function(Z){y(je,Z);var be=I(je);function je(){return s(this,je),be.apply(this,arguments)}return f(je,[{key:"pointerMoveTolerance",get:function(){return o.interactions.pointerMoveTolerance},set:function(De){o.interactions.pointerMoveTolerance=De}},{key:"_now",value:function(){return o.now()}}]),je}(pn),o.interactions={list:[],new:function(Z){Z.scopeFire=function(je,De){return o.fire(je,De)};var be=new o.Interaction(Z);return o.interactions.list.push(be),be},listeners:i,docEvents:S,pointerMoveTolerance:1},o.usePlugin(ar)},listeners:{"scope:add-document":function(o){return Ni(o,"add")},"scope:remove-document":function(o){return Ni(o,"remove")},"interactable:unset":function(o,i){for(var p=o.interactable,m=i.interactions.list.length-1;m>=0;m--){var S=i.interactions.list[m];S.interactable===p&&(S.stop(),i.fire("interactions:destroy",{interaction:S}),S.destroy(),i.interactions.list.length>2&&i.interactions.list.splice(m,1))}}},onDocSignal:Ni,doOnInteractions:Wn,methodNames:Lr},Ro=Lo,En=function(o){return o[o.On=0]="On",o[o.Off=1]="Off",o}(En||{}),$o=function(){function o(i,p,m,S){s(this,o),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new Un,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=p.actions,this.target=i,this._context=p.context||m,this._win=w(Ba(i)?this._context:i),this._doc=this._win.document,this._scopeEvents=S,this.set(p)}return f(o,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(i,p){return _.func(p.onstart)&&this.on("".concat(i,"start"),p.onstart),_.func(p.onmove)&&this.on("".concat(i,"move"),p.onmove),_.func(p.onend)&&this.on("".concat(i,"end"),p.onend),_.func(p.oninertiastart)&&this.on("".concat(i,"inertiastart"),p.oninertiastart),this}},{key:"updatePerActionListeners",value:function(i,p,m){var S,O=this,K=(S=this._actions.map[i])==null?void 0:S.filterEventType,Z=function(be){return(K==null||K(be))&&Vr(be,O._actions)};(_.array(p)||_.object(p))&&this._onOff(En.Off,i,p,void 0,Z),(_.array(m)||_.object(m))&&this._onOff(En.On,i,m,void 0,Z)}},{key:"setPerAction",value:function(i,p){var m=this._defaults;for(var S in p){var O=S,K=this.options[i],Z=p[O];O==="listeners"&&this.updatePerActionListeners(i,K.listeners,Z),_.array(Z)?K[O]=Oe(Z):_.plainObject(Z)?(K[O]=ee(K[O]||{},Tr(Z)),_.object(m.perAction[O])&&"enabled"in m.perAction[O]&&(K[O].enabled=Z.enabled!==!1)):_.bool(Z)&&_.object(m.perAction[O])?K[O].enabled=Z:K[O]=Z}}},{key:"getRect",value:function(i){return i=i||(_.element(this.target)?this.target:null),_.string(this.target)&&(i=i||this._context.querySelector(this.target)),Fe(i)}},{key:"rectChecker",value:function(i){var p=this;return _.func(i)?(this.getRect=function(m){var S=ee({},i.apply(p,m));return"width"in S||(S.width=S.right-S.left,S.height=S.bottom-S.top),S},this):i===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(i,p){if(Ba(p)||_.object(p)){for(var m in this.options[i]=p,this._actions.map)this.options[m][i]=p;return this}return this.options[i]}},{key:"origin",value:function(i){return this._backCompatOption("origin",i)}},{key:"deltaSource",value:function(i){return i==="page"||i==="client"?(this.options.deltaSource=i,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var i=this.target;return _.string(i)?Array.from(this._context.querySelectorAll(i)):_.func(i)&&i.getAllElements?i.getAllElements():_.element(i)?[i]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(i){return this._context===i.ownerDocument||ce(this._context,i)}},{key:"testIgnoreAllow",value:function(i,p,m){return!this.testIgnore(i.ignoreFrom,p,m)&&this.testAllow(i.allowFrom,p,m)}},{key:"testAllow",value:function(i,p,m){return!i||!!_.element(m)&&(_.string(i)?U(m,i,p):!!_.element(i)&&ce(i,m))}},{key:"testIgnore",value:function(i,p,m){return!(!i||!_.element(m))&&(_.string(i)?U(m,i,p):!!_.element(i)&&ce(i,m))}},{key:"fire",value:function(i){return this.events.fire(i),this}},{key:"_onOff",value:function(i,p,m,S,O){_.object(p)&&!_.array(p)&&(S=m,m=null);var K=We(p,m,O);for(var Z in K){Z==="wheel"&&(Z=Q.wheelEvent);for(var be=0,je=K[Z];be<je.length;be++){var De=je[be];Vr(Z,this._actions)?this.events[i===En.On?"on":"off"](Z,De):_.string(this.target)?this._scopeEvents[i===En.On?"addDelegate":"removeDelegate"](this.target,this._context,Z,De,S):this._scopeEvents[i===En.On?"add":"remove"](this.target,Z,De,S)}}return this}},{key:"on",value:function(i,p,m){return this._onOff(En.On,i,p,m)}},{key:"off",value:function(i,p,m){return this._onOff(En.Off,i,p,m)}},{key:"set",value:function(i){var p=this._defaults;for(var m in _.object(i)||(i={}),this.options=Tr(p.base),this._actions.methodDict){var S=m,O=this._actions.methodDict[S];this.options[S]={},this.setPerAction(S,ee(ee({},p.perAction),p.actions[S])),this[O](i[S])}for(var K in i)K!=="getRect"?_.func(this[K])&&this[K](i[K]):this.rectChecker(i.getRect);return this}},{key:"unset",value:function(){if(_.string(this.target))for(var i in this._scopeEvents.delegatedEvents)for(var p=this._scopeEvents.delegatedEvents[i],m=p.length-1;m>=0;m--){var S=p[m],O=S.selector,K=S.context,Z=S.listeners;O===this.target&&K===this._context&&p.splice(m,1);for(var be=Z.length-1;be>=0;be--)this._scopeEvents.removeDelegate(this.target,this._context,i,Z[be][0],Z[be][1])}else this._scopeEvents.remove(this.target,"all")}}]),o}(),Vo=function(){function o(i){var p=this;s(this,o),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=i,i.addListeners({"interactable:unset":function(m){var S=m.interactable,O=S.target,K=_.string(O)?p.selectorMap[O]:O[p.scope.id],Z=Me(K,function(be){return be===S});K.splice(Z,1)}})}return f(o,[{key:"new",value:function(i,p){p=ee(p||{},{actions:this.scope.actions});var m=new this.scope.Interactable(i,p,this.scope.document,this.scope.events);return this.scope.addDocument(m._doc),this.list.push(m),_.string(i)?(this.selectorMap[i]||(this.selectorMap[i]=[]),this.selectorMap[i].push(m)):(m.target[this.scope.id]||Object.defineProperty(i,this.scope.id,{value:[],configurable:!0}),i[this.scope.id].push(m)),this.scope.fire("interactable:new",{target:i,options:p,interactable:m,win:this.scope._win}),m}},{key:"getExisting",value:function(i,p){var m=p&&p.context||this.scope.document,S=_.string(i),O=S?this.selectorMap[i]:i[this.scope.id];if(O)return ya(O,function(K){return K._context===m&&(S||K.inContext(i))})}},{key:"forEachMatch",value:function(i,p){for(var m=0,S=this.list;m<S.length;m++){var O=S[m],K=void 0;if((_.string(O.target)?_.element(i)&&me(i,O.target):i===O.target)&&O.inContext(i)&&(K=p(O)),K!==void 0)return K}}}]),o}(),Fo=function(){function o(){var i=this;s(this,o),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=Q,this.defaults=Tr(ur),this.Eventable=Un,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(m){var S=function O(K,Z){var be=m.interactables.getExisting(K,Z);return be||((be=m.interactables.new(K,Z)).events.global=O.globalEvents),be};return S.getPointerAverage=Xe,S.getTouchBBox=Aa,S.getTouchDistance=Da,S.getTouchAngle=aa,S.getElementRect=Fe,S.getElementClientRect=Le,S.matchesSelector=me,S.closest=Be,S.globalEvents={},S.version="1.10.27",S.scope=m,S.use=function(O,K){return this.scope.usePlugin(O,K),this},S.isSet=function(O,K){return!!this.scope.interactables.get(O,K&&K.context)},S.on=ka(function(O,K,Z){if(_.string(O)&&O.search(" ")!==-1&&(O=O.trim().split(/ +/)),_.array(O)){for(var be=0,je=O;be<je.length;be++){var De=je[be];this.on(De,K,Z)}return this}if(_.object(O)){for(var na in O)this.on(na,O[na],K);return this}return Vr(O,this.scope.actions)?this.globalEvents[O]?this.globalEvents[O].push(K):this.globalEvents[O]=[K]:this.scope.events.add(this.scope.document,O,K,{options:Z}),this},"The interact.on() method is being deprecated"),S.off=ka(function(O,K,Z){if(_.string(O)&&O.search(" ")!==-1&&(O=O.trim().split(/ +/)),_.array(O)){for(var be=0,je=O;be<je.length;be++){var De=je[be];this.off(De,K,Z)}return this}if(_.object(O)){for(var na in O)this.off(na,O[na],K);return this}var Ta;return Vr(O,this.scope.actions)?O in this.globalEvents&&(Ta=this.globalEvents[O].indexOf(K))!==-1&&this.globalEvents[O].splice(Ta,1):this.scope.events.remove(this.scope.document,O,K,Z),this},"The interact.off() method is being deprecated"),S.debug=function(){return this.scope},S.supportsTouch=function(){return Q.supportsTouch},S.supportsPointerEvent=function(){return Q.supportsPointerEvent},S.stop=function(){for(var O=0,K=this.scope.interactions.list;O<K.length;O++)K[O].stop();return this},S.pointerMoveTolerance=function(O){return _.number(O)?(this.scope.interactions.pointerMoveTolerance=O,this):this.scope.interactions.pointerMoveTolerance},S.addDocument=function(O,K){this.scope.addDocument(O,K)},S.removeDocument=function(O){this.scope.removeDocument(O)},S}(this),this.InteractEvent=gn,this.Interactable=void 0,this.interactables=new Vo(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(m){return i.removeDocument(m.target)};var p=this;this.Interactable=function(m){y(O,m);var S=I(O);function O(){return s(this,O),S.apply(this,arguments)}return f(O,[{key:"_defaults",get:function(){return p.defaults}},{key:"set",value:function(K){return k(g(O.prototype),"set",this).call(this,K),p.fire("interactable:set",{options:K,interactable:this}),this}},{key:"unset",value:function(){k(g(O.prototype),"unset",this).call(this);var K=p.interactables.list.indexOf(this);K<0||(p.interactables.list.splice(K,1),p.fire("interactable:unset",{interactable:this}))}}]),O}($o)}return f(o,[{key:"addListeners",value:function(i,p){this.listenerMaps.push({id:p,map:i})}},{key:"fire",value:function(i,p){for(var m=0,S=this.listenerMaps;m<S.length;m++){var O=S[m].map[i];if(O&&O(p,this,i)===!1)return!1}}},{key:"init",value:function(i){return this.isInitialized?this:function(p,m){return p.isInitialized=!0,_.window(m)&&E(m),V.init(m),Q.init(m),dl.init(m),p.window=m,p.document=m.document,p.usePlugin(Ro),p.usePlugin(Rn),p}(this,i)}},{key:"pluginIsInstalled",value:function(i){var p=i.id;return p?!!this._plugins.map[p]:this._plugins.list.indexOf(i)!==-1}},{key:"usePlugin",value:function(i,p){if(!this.isInitialized)return this;if(this.pluginIsInstalled(i))return this;if(i.id&&(this._plugins.map[i.id]=i),this._plugins.list.push(i),i.install&&i.install(this,p),i.listeners&&i.before){for(var m=0,S=this.listenerMaps.length,O=i.before.reduce(function(Z,be){return Z[be]=!0,Z[Ai(be)]=!0,Z},{});m<S;m++){var K=this.listenerMaps[m].id;if(K&&(O[K]||O[Ai(K)]))break}this.listenerMaps.splice(m,0,{id:i.id,map:i.listeners})}else i.listeners&&this.listenerMaps.push({id:i.id,map:i.listeners});return this}},{key:"addDocument",value:function(i,p){if(this.getDocIndex(i)!==-1)return!1;var m=w(i);p=p?ee({},p):{},this.documents.push({doc:i,options:p}),this.events.documents.push(i),i!==this.document&&this.events.add(m,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:i,window:m,scope:this,options:p})}},{key:"removeDocument",value:function(i){var p=this.getDocIndex(i),m=w(i),S=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:i,window:m,scope:this,options:S})}},{key:"getDocIndex",value:function(i){for(var p=0;p<this.documents.length;p++)if(this.documents[p].doc===i)return p;return-1}},{key:"getDocOptions",value:function(i){var p=this.getDocIndex(i);return p===-1?null:this.documents[p].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),o}();function Ai(o){return o&&o.replace(/\/.*$/,"")}var Ji=new Fo,jr=Ji.interactStatic,Po=typeof globalThis<"u"?globalThis:window;Ji.init(Po);var jo=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(o){var i=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(m){var S=m[0],O=m[1];return S in o||O in o}),p=function(m,S){for(var O=o.range,K=o.limits,Z=K===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:K,be=o.offset,je=be===void 0?{x:0,y:0}:be,De={range:O,grid:o,x:null,y:null},na=0;na<i.length;na++){var Ta=i[na],Ya=Ta[0],qa=Ta[1],Qa=Math.round((m-je.x)/o[Ya]),xl=Math.round((S-je.y)/o[qa]);De[Ya]=Math.max(Z.left,Math.min(Z.right,Qa*o[Ya]+je.x)),De[qa]=Math.max(Z.top,Math.min(Z.bottom,xl*o[qa]+je.y))}return De};return p.grid=o,p.coordFields=i,p}}),zi={id:"snappers",install:function(o){var i=o.interactStatic;i.snappers=ee(i.snappers||{},jo),i.createSnapGrid=i.snappers.grid}},Ho=zi,Mi={start:function(o){var i=o.state,p=o.rect,m=o.edges,S=o.pageCoords,O=i.options,K=O.ratio,Z=O.enabled,be=i.options,je=be.equalDelta,De=be.modifiers;K==="preserve"&&(K=p.width/p.height),i.startCoords=ee({},S),i.startRect=ee({},p),i.ratio=K,i.equalDelta=je;var na=i.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(i.xIsPrimaryAxis=!(!m.left&&!m.right),i.equalDelta){var Ta=(na.left?1:-1)*(na.top?1:-1);i.edgeSign={x:Ta,y:Ta}}else i.edgeSign={x:na.left?-1:1,y:na.top?-1:1};if(Z!==!1&&ee(m,na),De!=null&&De.length){var Ya=new Fr(o.interaction);Ya.copyFrom(o.interaction.modification),Ya.prepareStates(De),i.subModification=Ya,Ya.startAll(n({},o))}},set:function(o){var i=o.state,p=o.rect,m=o.coords,S=i.linkedEdges,O=ee({},m),K=i.equalDelta?Xi:Zi;if(ee(o.edges,S),K(i,i.xIsPrimaryAxis,m,p),!i.subModification)return null;var Z=ee({},p);ne(S,Z,{x:m.x-O.x,y:m.y-O.y});var be=i.subModification.setAll(n(n({},o),{},{rect:Z,edges:S,pageCoords:m,prevCoords:m,prevRect:Z})),je=be.delta;return be.changed&&(K(i,Math.abs(je.x)>Math.abs(je.y),be.coords,be.rect),ee(m,be.coords)),be.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function Xi(o,i,p){var m=o.startCoords,S=o.edgeSign;i?p.y=m.y+(p.x-m.x)*S.y:p.x=m.x+(p.y-m.y)*S.x}function Zi(o,i,p,m){var S=o.startRect,O=o.startCoords,K=o.ratio,Z=o.edgeSign;if(i){var be=m.width/K;p.y=O.y+(be-S.height)*Z.y}else{var je=m.height*K;p.x=O.x+(je-S.width)*Z.x}}var Uo=Sr(Mi,"aspectRatio"),Qi=function(){};Qi._defaults={};var ci=Qi;function nn(o,i,p){return _.func(o)?ie(o,i.interactable,i.element,[p.x,p.y,i]):ie(o,i.interactable,i.element)}var Kn={start:function(o){var i=o.rect,p=o.startOffset,m=o.state,S=o.interaction,O=o.pageCoords,K=m.options,Z=K.elementRect,be=ee({left:0,top:0,right:0,bottom:0},K.offset||{});if(i&&Z){var je=nn(K.restriction,S,O);if(je){var De=je.right-je.left-i.width,na=je.bottom-je.top-i.height;De<0&&(be.left+=De,be.right+=De),na<0&&(be.top+=na,be.bottom+=na)}be.left+=p.left-i.width*Z.left,be.top+=p.top-i.height*Z.top,be.right+=p.right-i.width*(1-Z.right),be.bottom+=p.bottom-i.height*(1-Z.bottom)}m.offset=be},set:function(o){var i=o.coords,p=o.interaction,m=o.state,S=m.options,O=m.offset,K=nn(S.restriction,p,i);if(K){var Z=function(be){return!be||"left"in be&&"top"in be||((be=ee({},be)).left=be.x||0,be.top=be.y||0,be.right=be.right||be.left+be.width,be.bottom=be.bottom||be.top+be.height),be}(K);i.x=Math.max(Math.min(Z.right-O.right,i.x),Z.left+O.left),i.y=Math.max(Math.min(Z.bottom-O.bottom,i.y),Z.top+O.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},Ii=Sr(Kn,"restrict"),eo={top:1/0,left:1/0,bottom:-1/0,right:-1/0},ao={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function lo(o,i){for(var p=0,m=["top","left","bottom","right"];p<m.length;p++){var S=m[p];S in o||(o[S]=i[S])}return o}var Gn={noInner:eo,noOuter:ao,start:function(o){var i,p=o.interaction,m=o.startOffset,S=o.state,O=S.options;O&&(i=fa(nn(O.offset,p,p.coords.start.page))),i=i||{x:0,y:0},S.offset={top:i.y+m.top,left:i.x+m.left,bottom:i.y-m.bottom,right:i.x-m.right}},set:function(o){var i=o.coords,p=o.edges,m=o.interaction,S=o.state,O=S.offset,K=S.options;if(p){var Z=ee({},i),be=nn(K.inner,m,Z)||{},je=nn(K.outer,m,Z)||{};lo(be,eo),lo(je,ao),p.top?i.y=Math.min(Math.max(je.top+O.top,Z.y),be.top+O.top):p.bottom&&(i.y=Math.max(Math.min(je.bottom+O.bottom,Z.y),be.bottom+O.bottom)),p.left?i.x=Math.min(Math.max(je.left+O.left,Z.x),be.left+O.left):p.right&&(i.x=Math.max(Math.min(je.right+O.right,Z.x),be.right+O.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},ro=Sr(Gn,"restrictEdges"),Yn=ee({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(o){}},Kn.defaults),no=Sr({start:Kn.start,set:Kn.set,defaults:Yn},"restrictRect"),io={width:-1/0,height:-1/0},Jn={width:1/0,height:1/0},qo=Sr({start:function(o){return Gn.start(o)},set:function(o){var i=o.interaction,p=o.state,m=o.rect,S=o.edges,O=p.options;if(S){var K=Ee(nn(O.min,i,o.coords))||io,Z=Ee(nn(O.max,i,o.coords))||Jn;p.options={endOnly:O.endOnly,inner:ee({},Gn.noInner),outer:ee({},Gn.noOuter)},S.top?(p.options.inner.top=m.bottom-K.height,p.options.outer.top=m.bottom-Z.height):S.bottom&&(p.options.inner.bottom=m.top+K.height,p.options.outer.bottom=m.top+Z.height),S.left?(p.options.inner.left=m.right-K.width,p.options.outer.left=m.right-Z.width):S.right&&(p.options.inner.right=m.left+K.width,p.options.outer.right=m.left+Z.width),Gn.set(o),p.options=O}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),ui={start:function(o){var i,p=o.interaction,m=o.interactable,S=o.element,O=o.rect,K=o.state,Z=o.startOffset,be=K.options,je=be.offsetWithOrigin?function(Ta){var Ya=Ta.interaction.element,qa=fa(ie(Ta.state.options.origin,null,null,[Ya])),Qa=qa||Ae(Ta.interactable,Ya,Ta.interaction.prepared.name);return Qa}(o):{x:0,y:0};if(be.offset==="startCoords")i={x:p.coords.start.page.x,y:p.coords.start.page.y};else{var De=ie(be.offset,m,S,[p]);(i=fa(De)||{x:0,y:0}).x+=je.x,i.y+=je.y}var na=be.relativePoints;K.offsets=O&&na&&na.length?na.map(function(Ta,Ya){return{index:Ya,relativePoint:Ta,x:Z.left-O.width*Ta.x+i.x,y:Z.top-O.height*Ta.y+i.y}}):[{index:0,relativePoint:null,x:i.x,y:i.y}]},set:function(o){var i=o.interaction,p=o.coords,m=o.state,S=m.options,O=m.offsets,K=Ae(i.interactable,i.element,i.prepared.name),Z=ee({},p),be=[];S.offsetWithOrigin||(Z.x-=K.x,Z.y-=K.y);for(var je=0,De=O;je<De.length;je++)for(var na=De[je],Ta=Z.x-na.x,Ya=Z.y-na.y,qa=0,Qa=S.targets.length;qa<Qa;qa++){var xl=S.targets[qa],vl=void 0;(vl=_.func(xl)?xl(Ta,Ya,i._proxy,na,qa):xl)&&be.push({x:(_.number(vl.x)?vl.x:Ta)+na.x,y:(_.number(vl.y)?vl.y:Ya)+na.y,range:_.number(vl.range)?vl.range:S.range,source:xl,index:qa,offset:na})}for(var El={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},Ul=0;Ul<be.length;Ul++){var Cl=be[Ul],Ml=Cl.range,Al=Cl.x-Z.x,Hr=Cl.y-Z.y,rr=Ga(Al,Hr),Gr=rr<=Ml;Ml===1/0&&El.inRange&&El.range!==1/0&&(Gr=!1),El.target&&!(Gr?El.inRange&&Ml!==1/0?rr/Ml<El.distance/El.range:Ml===1/0&&El.range!==1/0||rr<El.distance:!El.inRange&&rr<El.distance)||(El.target=Cl,El.distance=rr,El.range=Ml,El.inRange=Gr,El.delta.x=Al,El.delta.y=Hr)}return El.inRange&&(p.x=El.target.x,p.y=El.target.y),m.closest=El,El},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},Xn=Sr(ui,"snap"),di={start:function(o){var i=o.state,p=o.edges,m=i.options;if(!p)return null;o.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}},i.targetFields=i.targetFields||[["width","height"],["x","y"]],ui.start(o),i.offsets=o.state.offsets,o.state=i},set:function(o){var i=o.interaction,p=o.state,m=o.coords,S=p.options,O=p.offsets,K={x:m.x-O[0].x,y:m.y-O[0].y};p.options=ee({},S),p.options.targets=[];for(var Z=0,be=S.targets||[];Z<be.length;Z++){var je=be[Z],De=void 0;if(De=_.func(je)?je(K.x,K.y,i):je){for(var na=0,Ta=p.targetFields;na<Ta.length;na++){var Ya=Ta[na],qa=Ya[0],Qa=Ya[1];if(qa in De||Qa in De){De.x=De[qa],De.y=De[Qa];break}}p.options.targets.push(De)}}var xl=ui.set(o);return p.options=S,xl},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},Wo=Sr(di,"snapSize"),Oi={aspectRatio:Uo,restrictEdges:ro,restrict:Ii,restrictRect:no,restrictSize:qo,snapEdges:Sr({start:function(o){var i=o.edges;return i?(o.state.targetFields=o.state.targetFields||[[i.left?"left":"right",i.top?"top":"bottom"]],di.start(o)):null},set:di.set,defaults:ee(Tr(di.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:Xn,snapSize:Wo,spring:ci,avoid:ci,transform:ci,rubberband:ci},Ko={id:"modifiers",install:function(o){var i=o.interactStatic;for(var p in o.usePlugin(Dr),o.usePlugin(Ho),i.modifiers=Oi,Oi){var m=Oi[p],S=m._defaults,O=m._methods;S._methods=O,o.defaults.perAction[p]=S}}},Go=Ko,oo=function(o){y(p,o);var i=I(p);function p(m,S,O,K,Z,be){var je;if(s(this,p),H(D(je=i.call(this,Z)),O),O!==S&&H(D(je),S),je.timeStamp=be,je.originalEvent=O,je.type=m,je.pointerId=te(S),je.pointerType=$a(S),je.target=K,je.currentTarget=null,m==="tap"){var De=Z.getPointerIndex(S);je.dt=je.timeStamp-Z.pointers[De].downTime;var na=je.timeStamp-Z.tapTime;je.double=!!Z.prevTap&&Z.prevTap.type!=="doubletap"&&Z.prevTap.target===je.target&&na<500}else m==="doubletap"&&(je.dt=S.timeStamp-Z.tapTime,je.double=!0);return je}return f(p,[{key:"_subtractOrigin",value:function(m){var S=m.x,O=m.y;return this.pageX-=S,this.pageY-=O,this.clientX-=S,this.clientY-=O,this}},{key:"_addOrigin",value:function(m){var S=m.x,O=m.y;return this.pageX+=S,this.pageY+=O,this.clientX+=S,this.clientY+=O,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),p}(ae),Zn={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(o){o.pointerEvents=Zn,o.defaults.actions.pointerEvents=Zn.defaults,ee(o.actions.phaselessTypes,Zn.types)},listeners:{"interactions:new":function(o){var i=o.interaction;i.prevTap=null,i.tapTime=0},"interactions:update-pointer":function(o){var i=o.down,p=o.pointerInfo;!i&&p.hold||(p.hold={duration:1/0,timeout:null})},"interactions:move":function(o,i){var p=o.interaction,m=o.pointer,S=o.event,O=o.eventTarget;o.duplicate||p.pointerIsDown&&!p.pointerWasMoved||(p.pointerIsDown&&Ri(o),Cn({interaction:p,pointer:m,event:S,eventTarget:O,type:"move"},i))},"interactions:down":function(o,i){(function(p,m){for(var S=p.interaction,O=p.pointer,K=p.event,Z=p.eventTarget,be=p.pointerIndex,je=S.pointers[be].hold,De=ia(Z),na={interaction:S,pointer:O,event:K,eventTarget:Z,type:"hold",targets:[],path:De,node:null},Ta=0;Ta<De.length;Ta++){var Ya=De[Ta];na.node=Ya,m.fire("pointerEvents:collect-targets",na)}if(na.targets.length){for(var qa=1/0,Qa=0,xl=na.targets;Qa<xl.length;Qa++){var vl=xl[Qa].eventable.options.holdDuration;vl<qa&&(qa=vl)}je.duration=qa,je.timeout=setTimeout(function(){Cn({interaction:S,eventTarget:Z,pointer:O,event:K,type:"hold"},m)},qa)}})(o,i),Cn(o,i)},"interactions:up":function(o,i){Ri(o),Cn(o,i),function(p,m){var S=p.interaction,O=p.pointer,K=p.event,Z=p.eventTarget;S.pointerWasMoved||Cn({interaction:S,eventTarget:Z,pointer:O,event:K,type:"tap"},m)}(o,i)},"interactions:cancel":function(o,i){Ri(o),Cn(o,i)}},PointerEvent:oo,fire:Cn,collectEventTargets:Li,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 Cn(o,i){var p=o.interaction,m=o.pointer,S=o.event,O=o.eventTarget,K=o.type,Z=o.targets,be=Z===void 0?Li(o,i):Z,je=new oo(K,m,S,O,p,i.now());i.fire("pointerEvents:new",{pointerEvent:je});for(var De={interaction:p,pointer:m,event:S,eventTarget:O,targets:be,type:K,pointerEvent:je},na=0;na<be.length;na++){var Ta=be[na];for(var Ya in Ta.props||{})je[Ya]=Ta.props[Ya];var qa=Ae(Ta.eventable,Ta.node);if(je._subtractOrigin(qa),je.eventable=Ta.eventable,je.currentTarget=Ta.node,Ta.eventable.fire(je),je._addOrigin(qa),je.immediatePropagationStopped||je.propagationStopped&&na+1<be.length&&be[na+1].node!==je.currentTarget)break}if(i.fire("pointerEvents:fired",De),K==="tap"){var Qa=je.double?Cn({interaction:p,pointer:m,event:S,eventTarget:O,type:"doubletap"},i):je;p.prevTap=Qa,p.tapTime=Qa.timeStamp}return je}function Li(o,i){var p=o.interaction,m=o.pointer,S=o.event,O=o.eventTarget,K=o.type,Z=p.getPointerIndex(m),be=p.pointers[Z];if(K==="tap"&&(p.pointerWasMoved||!be||be.downTarget!==O))return[];for(var je=ia(O),De={interaction:p,pointer:m,event:S,eventTarget:O,type:K,path:je,targets:[],node:null},na=0;na<je.length;na++){var Ta=je[na];De.node=Ta,i.fire("pointerEvents:collect-targets",De)}return K==="hold"&&(De.targets=De.targets.filter(function(Ya){var qa,Qa;return Ya.eventable.options.holdDuration===((qa=p.pointers[Z])==null||(Qa=qa.hold)==null?void 0:Qa.duration)})),De.targets}function Ri(o){var i=o.interaction,p=o.pointerIndex,m=i.pointers[p].hold;m&&m.timeout&&(clearTimeout(m.timeout),m.timeout=null)}var Yo=Object.freeze({__proto__:null,default:Zn});function Jo(o){var i=o.interaction;i.holdIntervalHandle&&(clearInterval(i.holdIntervalHandle),i.holdIntervalHandle=null)}var Xo={id:"pointer-events/holdRepeat",install:function(o){o.usePlugin(Zn);var i=o.pointerEvents;i.defaults.holdRepeatInterval=0,i.types.holdrepeat=o.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce(function(o,i){return o["pointerEvents:".concat(i)]=Jo,o},{"pointerEvents:new":function(o){var i=o.pointerEvent;i.type==="hold"&&(i.count=(i.count||0)+1)},"pointerEvents:fired":function(o,i){var p=o.interaction,m=o.pointerEvent,S=o.eventTarget,O=o.targets;if(m.type==="hold"&&O.length){var K=O[0].eventable.options.holdRepeatInterval;K<=0||(p.holdIntervalHandle=setTimeout(function(){i.pointerEvents.fire({interaction:p,eventTarget:S,type:"hold",pointer:m,event:m},i)},K))}}})},pi=Xo,Zo={id:"pointer-events/interactableTargets",install:function(o){var i=o.Interactable;i.prototype.pointerEvents=function(m){return ee(this.events.options,m),this};var p=i.prototype._backCompatOption;i.prototype._backCompatOption=function(m,S){var O=p.call(this,m,S);return O===this&&(this.events.options[m]=S),O}},listeners:{"pointerEvents:collect-targets":function(o,i){var p=o.targets,m=o.node,S=o.type,O=o.eventTarget;i.interactables.forEachMatch(m,function(K){var Z=K.events,be=Z.options;Z.types[S]&&Z.types[S].length&&K.testIgnoreAllow(be,m,O)&&p.push({node:m,eventable:Z,props:{interactable:K}})})},"interactable:new":function(o){var i=o.interactable;i.events.getRect=function(p){return i.getRect(p)}},"interactable:set":function(o,i){var p=o.interactable,m=o.options;ee(p.events.options,i.pointerEvents.defaults),ee(p.events.options,m.pointerEvents||{})}}},Qo=Zo,et={id:"pointer-events",install:function(o){o.usePlugin(Yo),o.usePlugin(pi),o.usePlugin(Qo)}},at=et,to={id:"reflow",install:function(o){var i=o.Interactable;o.actions.phases.reflow=!0,i.prototype.reflow=function(p){return function(m,S,O){for(var K=m.getAllElements(),Z=O.window.Promise,be=Z?[]:null,je=function(){var na=K[De],Ta=m.getRect(na);if(!Ta)return 1;var Ya,qa=ya(O.interactions.list,function(vl){return vl.interacting()&&vl.interactable===m&&vl.element===na&&vl.prepared.name===S.name});if(qa)qa.move(),be&&(Ya=qa._reflowPromise||new Z(function(vl){qa._reflowResolve=vl}));else{var Qa=Ee(Ta),xl=function(vl){return{coords:vl,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:Qa.x,y:Qa.y},client:{x:Qa.x,y:Qa.y},timeStamp:O.now()});Ya=function(vl,El,Ul,Cl,Ml){var Al=vl.interactions.new({pointerType:"reflow"}),Hr={interaction:Al,event:Ml,pointer:Ml,eventTarget:Ul,phase:"reflow"};Al.interactable=El,Al.element=Ul,Al.prevEvent=Ml,Al.updatePointer(Ml,Ml,Ul,!0),ve(Al.coords.delta),ha(Al.prepared,Cl),Al._doPhase(Hr);var rr=vl.window,Gr=rr.Promise,on=Gr?new Gr(function(wn){Al._reflowResolve=wn}):void 0;return Al._reflowPromise=on,Al.start(Cl,El,Ul),Al._interacting?(Al.move(Hr),Al.end(Ml)):(Al.stop(),Al._reflowResolve()),Al.removePointer(Ml,Ml),on}(O,m,na,S,xl)}be&&be.push(Ya)},De=0;De<K.length&&!je();De++);return be&&Z.all(be).then(function(){return m})}(this,p,o)}},listeners:{"interactions:stop":function(o,i){var p=o.interaction;p.pointerType==="reflow"&&(p._reflowResolve&&p._reflowResolve(),function(m,S){m.splice(m.indexOf(S),1)}(i.interactions.list,p))}}},fi=to;if(jr.use(ar),jr.use(Fl),jr.use(at),jr.use(Nn),jr.use(Go),jr.use(fr),jr.use(ol),jr.use(fe),jr.use(fi),jr.default=jr,t(a)==="object"&&a)try{a.exports=jr}catch{}return jr.default=jr,jr})}(ji,ji.exports)),ji.exports}var m1=v1();const As=A.getDefaultExportFromCjs(m1),Mo=e.defineComponent({__name:"grid-item",props:{isDraggable:{type:Boolean,default:void 0},isResizable:{type:Boolean,default:void 0},isBounded:{type:Boolean,default:void 0},static:{type:Boolean,default:!1},minH:{default:1},minW:{default:1},maxH:{default:1/0},maxW:{default:1/0},x:{},y:{},w:{},h:{},i:{},dragIgnoreFrom:{default:"a, button"},dragAllowFrom:{default:void 0},resizeIgnoreFrom:{default:"a, button"},preserveAspectRatio:{type:Boolean,default:!1},dragOption:{default:()=>({})},resizeOption:{default:()=>({})}},emits:["container-resized","resize","resized","move","moved"],setup(a,{expose:l,emit:r}){const n=a,t=r,s=e.inject(Fc),v=e.inject(Pc);if(!s)throw new Error("[grid-layout-plus]: missing layout store, GridItem must under a GridLayout.");const f=e.shallowRef(null),d=e.reactive({cols:1,containerWidth:100,rowHeight:30,margin:[10,10],maxRows:1/0,draggable:void 0,resizable:void 0,bounded:void 0,transformScale:1,useCssTransforms:!0,useStyleCursor:!0,isDragging:!1,dragging:{top:-1,left:-1},isResizing:!1,resizing:{width:-1,height:-1},style:{},rtl:!1});let y=!1,g=!1,c=NaN,D=NaN,I=NaN,k=NaN,W=-1,M=-1,R=-1,j=-1,E=n.x,w=n.y,x=n.w,b=n.h;const _=e.ref(),$=e.reactive({i:e.toRef(n,"i"),state:d,wrapper:_,calcXY:ie});function F(he){We(he)}function Y(){ua()}function oe(he){cn(n.isDraggable)&&(d.draggable=he)}function ye(he){cn(n.isResizable)&&(d.resizable=he)}function Ie(he){cn(n.isBounded)&&(d.bounded=he)}function V(he){d.transformScale=he}function pe(he){d.rowHeight=he}function Q(he){d.maxRows=he}function ce(){d.rtl=Ts()==="rtl",ua()}function Be(he){d.cols=Math.floor(he)}s.increaseItem($),e.onBeforeMount(()=>{d.rtl=Ts()==="rtl"}),e.onMounted(()=>{s.responsive&&s.lastBreakpoint?d.cols=Wc(s.lastBreakpoint,s.cols):d.cols=s.colNum,d.rowHeight=s.rowHeight,d.containerWidth=s.width!==null?s.width:100,d.margin=s.margin!==void 0?s.margin.map(Number):[10,10],d.maxRows=s.maxRows,cn(n.isDraggable)?d.draggable=s.isDraggable:d.draggable=n.isDraggable,cn(n.isResizable)?d.resizable=s.isResizable:d.resizable=n.isResizable,cn(n.isBounded)?d.bounded=s.isBounded:d.bounded=n.isBounded,d.transformScale=s.transformScale,d.useCssTransforms=s.useCssTransforms,d.useStyleCursor=s.useStyleCursor,e.watchEffect(()=>{E=n.x,w=n.y,b=n.h,x=n.w,Yr(Fe)}),v.on("updateWidth",F),v.on("compact",Y),v.on("setDraggable",oe),v.on("setResizable",ye),v.on("setBounded",Ie),v.on("setTransformScale",V),v.on("setRowHeight",pe),v.on("setMaxRows",Q),v.on("directionchange",ce),v.on("setColNum",Be)}),e.onBeforeUnmount(()=>{v.off("updateWidth",F),v.off("compact",Y),v.off("setDraggable",oe),v.off("setResizable",ye),v.off("setBounded",Ie),v.off("setTransformScale",V),v.off("setRowHeight",pe),v.off("setMaxRows",Q),v.off("directionchange",ce),v.off("setColNum",Be),f.value&&(f.value.unset(),f.value=null),s.decreaseItem($)}),l({state:d,wrapper:_});const Ve=typeof navigator<"u"?navigator.userAgent.toLowerCase().includes("android"):!1,me=e.computed(()=>d.resizable&&!n.static),N=e.computed(()=>s.isMirrored?!d.rtl:d.rtl),se=e.computed(()=>(d.draggable||d.resizable)&&!n.static),U=o1("item"),Se=e.computed(()=>({[U.b()]:!0,[U.bm("resizable")]:me.value,[U.bm("static")]:n.static,[U.bm("resizing")]:d.isResizing,[U.bm("dragging")]:d.isDragging,[U.bm("transform")]:d.useCssTransforms,[U.bm("rtl")]:N.value,[U.bm("no-touch")]:Ve&&se.value})),Le=e.computed(()=>[U.be("resizer"),N.value&&U.bem("resizer","rtl")].filter(Boolean));e.watch(()=>n.isDraggable,he=>{d.draggable=he}),e.watch(()=>n.static,()=>{Yr(H),Yr(ve)}),e.watch(()=>d.draggable,()=>{Yr(H)}),e.watch(()=>n.isResizable,he=>{d.resizable=he}),e.watch(()=>n.isBounded,he=>{d.bounded=he}),e.watch(()=>d.resizable,()=>{Yr(ve)}),e.watch(()=>d.rowHeight,()=>{Yr(Fe),Yr(ia)}),e.watch([()=>d.cols,()=>d.containerWidth],()=>{Yr(ve),Yr(Fe),Yr(ia)}),e.watch([()=>n.minH,()=>n.maxH,()=>n.minW,()=>n.maxW],()=>{Yr(ve)}),e.watch(N,()=>{Yr(ve),Yr(Fe)}),e.watch([()=>s.margin,()=>s.margin[0],()=>s.margin[1]],()=>{const he=s.margin;!he||he[0]===d.margin[0]&&he[1]===d.margin[1]||(d.margin=he.map(Number),Yr(Fe),Yr(ia))});function Fe(){n.x+n.w>d.cols?(E=0,x=n.w>d.cols?d.cols:n.w):(E=n.x,x=n.w);const he=da(E,w,x,b);d.isDragging&&(he.top=d.dragging.top,N.value?he.right=d.dragging.left:he.left=d.dragging.left),d.isResizing&&(he.width=d.resizing.width,he.height=d.resizing.height);let ga;d.useCssTransforms?N.value?ga=l1(he.top,he.right,he.width,he.height):ga=a1(he.top,he.left,he.width,he.height):N.value?ga=n1(he.top,he.right,he.width,he.height):ga=r1(he.top,he.left,he.width,he.height),d.style=ga}function ia(){const he={};for(const ga of["width","height"]){const la=d.style[ga].match(/^(\d+)px$/);if(!la)return;he[ga]=la[1]}t("container-resized",n.i,n.h,n.w,he.height,he.width)}function Ba(he){if(n.static)return;const ga=he.type;if(ga==="resizestart"&&d.isResizing||ga!=="resizestart"&&!d.isResizing)return;const la=Ds(he);if(cn(la))return;const{x:te,y:ba}=la,Ne={width:0,height:0};let Xe;switch(ga){case"resizestart":{ve(),W=x,M=b,Xe=da(E,w,x,b),Ne.width=Xe.width,Ne.height=Xe.height,d.resizing=Ne,d.isResizing=!0;break}case"resizemove":{!he.edges.right&&!he.edges.left&&(I=te),!he.edges.top&&!he.edges.bottom&&(k=ba);const Aa=Bs(I,k,te,ba);N.value?Ne.width=d.resizing.width-Aa.deltaX/d.transformScale:Ne.width=d.resizing.width+Aa.deltaX/d.transformScale,Ne.height=d.resizing.height+Aa.deltaY/d.transformScale,d.resizing=Ne;break}case"resizeend":{Xe=da(E,w,x,b),Ne.width=Xe.width,Ne.height=Xe.height,d.resizing={width:-1,height:-1},d.isResizing=!1;break}}Xe=Ae(Ne.height,Ne.width),Xe.w<n.minW&&(Xe.w=n.minW),Xe.w>n.maxW&&(Xe.w=n.maxW),Xe.h<n.minH&&(Xe.h=n.minH),Xe.h>n.maxH&&(Xe.h=n.maxH),Xe.h<1&&(Xe.h=1),Xe.w<1&&(Xe.w=1),I=te,k=ba,(x!==Xe.w||b!==Xe.h)&&t("resize",n.i,Xe.h,Xe.w,Ne.height,Ne.width),he.type==="resizeend"&&(W!==x||M!==b)&&t("resized",n.i,Xe.h,Xe.w,Ne.height,Ne.width),v.emit("resizeEvent",he.type,n.i,E,w,Xe.h,Xe.w)}function ee(he){if(n.static||d.isResizing)return;const ga=he.type;if(ga==="dragstart"&&d.isDragging||ga!=="dragstart"&&!d.isDragging)return;const la=Ds(he);if(cn(la))return;const{x:te,y:ba}=la,Ne=he.target;if(!Ne.offsetParent)return;const Xe={top:0,left:0};switch(ga){case"dragstart":{R=E,j=w;const Da=Ne.offsetParent.getBoundingClientRect(),aa=Ne.getBoundingClientRect(),$a=aa.left/d.transformScale,ke=Da.left/d.transformScale,ae=aa.right/d.transformScale,ze=Da.right/d.transformScale,Oe=aa.top/d.transformScale,Me=Da.top/d.transformScale;N.value?Xe.left=(ae-ze)*-1:Xe.left=$a-ke,Xe.top=Oe-Me,d.dragging=Xe,d.isDragging=!0;break}case"dragmove":{const Da=Bs(c,D,te,ba);if(N.value?Xe.left=d.dragging.left-Da.deltaX/d.transformScale:Xe.left=d.dragging.left+Da.deltaX/d.transformScale,Xe.top=d.dragging.top+Da.deltaY/d.transformScale,d.bounded){const aa=Ne.offsetParent.clientHeight-Ee(n.h,d.rowHeight,d.margin[1]);Xe.top=ne(Xe.top,0,aa);const $a=fa(),ke=d.containerWidth-Ee(n.w,$a,d.margin[0]);Xe.left=ne(Xe.left,0,ke)}d.dragging=Xe;break}case"dragend":{const Da=Ne.offsetParent.getBoundingClientRect(),aa=Ne.getBoundingClientRect(),$a=aa.left/d.transformScale,ke=Da.left/d.transformScale,ae=aa.right/d.transformScale,ze=Da.right/d.transformScale,Oe=aa.top/d.transformScale,Me=Da.top/d.transformScale;N.value?Xe.left=(ae-ze)*-1:Xe.left=$a-ke,Xe.top=Oe-Me,d.dragging={top:-1,left:-1},d.isDragging=!1;break}}let Aa;N.value,Aa=ie(Xe.top,Xe.left),c=te,D=ba,(E!==Aa.x||w!==Aa.y)&&t("move",n.i,Aa.x,Aa.y),he.type==="dragend"&&(R!==E||j!==w)&&t("moved",n.i,Aa.x,Aa.y),v.emit("dragEvent",he.type,n.i,Aa.x,Aa.y,b,x)}function da(he,ga,la,te){const ba=fa();let Ne;return N.value?Ne={right:Math.round(ba*he+(he+1)*d.margin[0]),top:Math.round(d.rowHeight*ga+(ga+1)*d.margin[1]),width:la===1/0?la:Math.round(ba*la+Math.max(0,la-1)*d.margin[0]),height:te===1/0?te:Math.round(d.rowHeight*te+Math.max(0,te-1)*d.margin[1])}:Ne={left:Math.round(ba*he+(he+1)*d.margin[0]),top:Math.round(d.rowHeight*ga+(ga+1)*d.margin[1]),width:la===1/0?la:Math.round(ba*la+Math.max(0,la-1)*d.margin[0]),height:te===1/0?te:Math.round(d.rowHeight*te+Math.max(0,te-1)*d.margin[1])},Ne}function ie(he,ga){const la=fa();let te=Math.round((ga-d.margin[0])/(la+d.margin[0])),ba=Math.round((he-d.margin[1])/(d.rowHeight+d.margin[1]));return te=Math.max(Math.min(te,d.cols-x),0),ba=Math.max(Math.min(ba,d.maxRows-b),0),{x:te,y:ba}}function fa(){return(d.containerWidth-d.margin[0]*(d.cols+1))/d.cols}function Ee(he,ga,la){return Number.isFinite(he)?Math.round(ga*he+Math.max(0,he-1)*la):he}function ne(he,ga,la){return Math.max(Math.min(he,la),ga)}function Ae(he,ga,la=!1){const te=fa();let ba=Math.round((ga+d.margin[0])/(te+d.margin[0])),Ne=0;return la?Ne=Math.ceil((he+d.margin[1])/(d.rowHeight+d.margin[1])):Ne=Math.round((he+d.margin[1])/(d.rowHeight+d.margin[1])),ba=Math.max(Math.min(ba,d.cols-E),0),Ne=Math.max(Math.min(Ne,d.maxRows-w),0),{w:ba,h:Ne}}function We(he,ga){d.containerWidth=he}function ua(){Fe()}function Ga(){!f.value&&_.value&&(f.value=As(_.value),d.useStyleCursor||f.value.styleCursor(!1))}const L=Ss(ee);function H(){if(Ga(),!!f.value)if(d.draggable&&!n.static){const he={ignoreFrom:n.dragIgnoreFrom,allowFrom:n.dragAllowFrom,...n.dragOption};f.value.draggable(he),y||(y=!0,f.value.on("dragstart dragmove dragend",ga=>{ga.type==="dragmove"?L(ga):ee(ga)}))}else f.value.draggable({enabled:!1})}const J=Ss(Ba);function ve(){if(Ga(),!!f.value)if(d.resizable&&!n.static){const he=da(0,0,n.maxW,n.maxH),ga=da(0,0,n.minW,n.minH),la={edges:{left:N.value?`.${Le.value[0]}`:!1,right:N.value?!1:`.${Le.value[0]}`,bottom:`.${Le.value[0]}`,top:!1},ignoreFrom:n.resizeIgnoreFrom,restrictSize:{min:{height:ga.height*d.transformScale,width:ga.width*d.transformScale},max:{height:he.height*d.transformScale,width:he.width*d.transformScale}},...n.resizeOption};n.preserveAspectRatio&&(la.modifiers=[As.modifiers.aspectRatio({ratio:"preserve"})]),f.value.resizable(la),g||(g=!0,f.value.on("resizestart resizemove resizeend",te=>{te.type==="resizemove"?J(te):Ba(te)}))}else f.value.resizable({enabled:!1})}return(he,ga)=>(e.openBlock(),e.createElementBlock("section",{ref_key:"wrapper",ref:_,class:e.normalizeClass(Se.value),style:e.normalizeStyle(d.style)},[e.renderSlot(he.$slots,"default"),me.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(Le.value)},null,2)):e.createCommentVNode("",!0)],6))}}),si=typeof window<"u";var zs;si&&(zs=window==null?void 0:window.navigator)!=null&&zs.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Ms(a){return a!=null}function Is(){}const y1=Object.freeze({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"});Object.freeze(new Set(Object.keys(y1)));const g1=si&&("ontouchstart"in window||k1()>0),b1=g1?"pointerdown":"click";function k1(){return typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)||0}function x1(a,l,r=window.Event){const{type:n,bubbles:t=!1,cancelable:s=!1,...v}=l;if(!Ms(n)||n==="")return!1;let f;return Ms(r)?f=new r(n,{bubbles:t,cancelable:s}):(f=document.createEvent("HTMLEvents"),f.initEvent(n,t,s)),Object.assign(f,v),a.dispatchEvent(f)}const w1="clickoutside",_1=new Set;si&&document.addEventListener(b1,a=>{const l=a.target,r=a.composedPath&&a.composedPath();_1.forEach(n=>{n!==l&&(r?!r.includes(n):!n.contains(l))&&(!n.__transferElement||n.__transferElement!==l&&!n.__transferElement.contains(l))&&x1(n,{type:w1})})},!0);const S1=[["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 wo;if(si){for(const a of S1)if(a[1]in document){wo=a;break}}e.computed(()=>!1);const E1=new Set,C1=new WeakMap;if(si&&wo){const a=wo[2],l=wo[4];document.addEventListener(l,()=>{if(E1.forEach(r=>{r.value=!1}),document[a]){const r=C1.get(document[a]);r&&(r.value=!0)}},!1)}const Gc=new Map;Gc.set("x",0);Gc.set("y",0);var oi=[],D1=function(){return oi.some(function(a){return a.activeTargets.length>0})},B1=function(){return oi.some(function(a){return a.skippedTargets.length>0})},Os="ResizeObserver loop completed with undelivered notifications.",T1=function(){var a;typeof ErrorEvent=="function"?a=new ErrorEvent("error",{message:Os}):(a=document.createEvent("Event"),a.initEvent("error",!1,!1),a.message=Os),window.dispatchEvent(a)},Yi;(function(a){a.BORDER_BOX="border-box",a.CONTENT_BOX="content-box",a.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Yi||(Yi={}));var ti=function(a){return Object.freeze(a)},N1=function(){function a(l,r){this.inlineSize=l,this.blockSize=r,ti(this)}return a}(),Yc=function(){function a(l,r,n,t){return this.x=l,this.y=r,this.width=n,this.height=t,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,ti(this)}return a.prototype.toJSON=function(){var l=this,r=l.x,n=l.y,t=l.top,s=l.right,v=l.bottom,f=l.left,d=l.width,y=l.height;return{x:r,y:n,top:t,right:s,bottom:v,left:f,width:d,height:y}},a.fromRect=function(l){return new a(l.x,l.y,l.width,l.height)},a}(),Bt=function(a){return a instanceof SVGElement&&"getBBox"in a},Jc=function(a){if(Bt(a)){var l=a.getBBox(),r=l.width,n=l.height;return!r&&!n}var t=a,s=t.offsetWidth,v=t.offsetHeight;return!(s||v||a.getClientRects().length)},Ls=function(a){var l;if(a instanceof Element)return!0;var r=(l=a==null?void 0:a.ownerDocument)===null||l===void 0?void 0:l.defaultView;return!!(r&&a instanceof r.Element)},A1=function(a){switch(a.tagName){case"INPUT":if(a.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Wi=typeof window<"u"?window:{},go=new WeakMap,Rs=/auto|scroll/,z1=/^tb|vertical/,M1=/msie|trident/i.test(Wi.navigator&&Wi.navigator.userAgent),Bn=function(a){return parseFloat(a||"0")},Ci=function(a,l,r){return a===void 0&&(a=0),l===void 0&&(l=0),r===void 0&&(r=!1),new N1((r?l:a)||0,(r?a:l)||0)},$s=ti({devicePixelContentBoxSize:Ci(),borderBoxSize:Ci(),contentBoxSize:Ci(),contentRect:new Yc(0,0,0,0)}),Xc=function(a,l){if(l===void 0&&(l=!1),go.has(a)&&!l)return go.get(a);if(Jc(a))return go.set(a,$s),$s;var r=getComputedStyle(a),n=Bt(a)&&a.ownerSVGElement&&a.getBBox(),t=!M1&&r.boxSizing==="border-box",s=z1.test(r.writingMode||""),v=!n&&Rs.test(r.overflowY||""),f=!n&&Rs.test(r.overflowX||""),d=n?0:Bn(r.paddingTop),y=n?0:Bn(r.paddingRight),g=n?0:Bn(r.paddingBottom),c=n?0:Bn(r.paddingLeft),D=n?0:Bn(r.borderTopWidth),I=n?0:Bn(r.borderRightWidth),k=n?0:Bn(r.borderBottomWidth),W=n?0:Bn(r.borderLeftWidth),M=c+y,R=d+g,j=W+I,E=D+k,w=f?a.offsetHeight-E-a.clientHeight:0,x=v?a.offsetWidth-j-a.clientWidth:0,b=t?M+j:0,_=t?R+E:0,$=n?n.width:Bn(r.width)-b-x,F=n?n.height:Bn(r.height)-_-w,Y=$+M+x+j,oe=F+R+w+E,ye=ti({devicePixelContentBoxSize:Ci(Math.round($*devicePixelRatio),Math.round(F*devicePixelRatio),s),borderBoxSize:Ci(Y,oe,s),contentBoxSize:Ci($,F,s),contentRect:new Yc(c,d,$,F)});return go.set(a,ye),ye},Zc=function(a,l,r){var n=Xc(a,r),t=n.borderBoxSize,s=n.contentBoxSize,v=n.devicePixelContentBoxSize;switch(l){case Yi.DEVICE_PIXEL_CONTENT_BOX:return v;case Yi.BORDER_BOX:return t;default:return s}},I1=function(){function a(l){var r=Xc(l);this.target=l,this.contentRect=r.contentRect,this.borderBoxSize=ti([r.borderBoxSize]),this.contentBoxSize=ti([r.contentBoxSize]),this.devicePixelContentBoxSize=ti([r.devicePixelContentBoxSize])}return a}(),Qc=function(a){if(Jc(a))return 1/0;for(var l=0,r=a.parentNode;r;)l+=1,r=r.parentNode;return l},O1=function(){var a=1/0,l=[];oi.forEach(function(s){if(s.activeTargets.length!==0){var v=[];s.activeTargets.forEach(function(f){var d=new I1(f.target),y=Qc(f.target);v.push(d),f.lastReportedSize=Zc(f.target,f.observedBox),y<a&&(a=y)}),l.push(function(){s.callback.call(s.observer,v,s.observer)}),s.activeTargets.splice(0,s.activeTargets.length)}});for(var r=0,n=l;r<n.length;r++){var t=n[r];t()}return a},Vs=function(a){oi.forEach(function(l){l.activeTargets.splice(0,l.activeTargets.length),l.skippedTargets.splice(0,l.skippedTargets.length),l.observationTargets.forEach(function(r){r.isActive()&&(Qc(r.target)>a?l.activeTargets.push(r):l.skippedTargets.push(r))})})},L1=function(){var a=0;for(Vs(a);D1();)a=O1(),Vs(a);return B1()&&T1(),a>0},ut,eu=[],R1=function(){return eu.splice(0).forEach(function(a){return a()})},$1=function(a){if(!ut){var l=0,r=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return R1()}).observe(r,n),ut=function(){r.textContent="".concat(l?l--:l++)}}eu.push(a),ut()},V1=function(a){$1(function(){requestAnimationFrame(a)})},_o=0,F1=function(){return!!_o},P1=250,j1={attributes:!0,characterData:!0,childList:!0,subtree:!0},Fs=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ps=function(a){return a===void 0&&(a=0),Date.now()+a},dt=!1,H1=function(){function a(){var l=this;this.stopped=!0,this.listener=function(){return l.schedule()}}return a.prototype.run=function(l){var r=this;if(l===void 0&&(l=P1),!dt){dt=!0;var n=Ps(l);V1(function(){var t=!1;try{t=L1()}finally{if(dt=!1,l=n-Ps(),!F1())return;t?r.run(1e3):l>0?r.run(l):r.start()}})}},a.prototype.schedule=function(){this.stop(),this.run()},a.prototype.observe=function(){var l=this,r=function(){return l.observer&&l.observer.observe(document.body,j1)};document.body?r():Wi.addEventListener("DOMContentLoaded",r)},a.prototype.start=function(){var l=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Fs.forEach(function(r){return Wi.addEventListener(r,l.listener,!0)}))},a.prototype.stop=function(){var l=this;this.stopped||(this.observer&&this.observer.disconnect(),Fs.forEach(function(r){return Wi.removeEventListener(r,l.listener,!0)}),this.stopped=!0)},a}(),St=new H1,js=function(a){!_o&&a>0&&St.start(),_o+=a,!_o&&St.stop()},U1=function(a){return!Bt(a)&&!A1(a)&&getComputedStyle(a).display==="inline"},q1=function(){function a(l,r){this.target=l,this.observedBox=r||Yi.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return a.prototype.isActive=function(){var l=Zc(this.target,this.observedBox,!0);return U1(this.target)&&(this.lastReportedSize=l),this.lastReportedSize.inlineSize!==l.inlineSize||this.lastReportedSize.blockSize!==l.blockSize},a}(),W1=function(){function a(l,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=l,this.callback=r}return a}(),bo=new WeakMap,Hs=function(a,l){for(var r=0;r<a.length;r+=1)if(a[r].target===l)return r;return-1},ko=function(){function a(){}return a.connect=function(l,r){var n=new W1(l,r);bo.set(l,n)},a.observe=function(l,r,n){var t=bo.get(l),s=t.observationTargets.length===0;Hs(t.observationTargets,r)<0&&(s&&oi.push(t),t.observationTargets.push(new q1(r,n&&n.box)),js(1),St.schedule())},a.unobserve=function(l,r){var n=bo.get(l),t=Hs(n.observationTargets,r),s=n.observationTargets.length===1;t>=0&&(s&&oi.splice(oi.indexOf(n),1),n.observationTargets.splice(t,1),js(-1))},a.disconnect=function(l){var r=this,n=bo.get(l);n.observationTargets.slice().forEach(function(t){return r.unobserve(l,t.target)}),n.activeTargets.splice(0,n.activeTargets.length)},a}(),K1=function(){function a(l){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof l!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");ko.connect(this,l)}return a.prototype.observe=function(l,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ls(l))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ko.observe(this,l,r)},a.prototype.unobserve=function(l){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ls(l))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ko.unobserve(this,l)},a.prototype.disconnect=function(){ko.disconnect(this)},a.toString=function(){return"function ResizeObserver () { [polyfill code] }"},a}();const Io=new WeakMap;function G1(a){var l;for(let r=0,n=a.length;r<n;++r){const t=a[r],s=Io.get(t.target);if(typeof s=="function"){const{inlineSize:v,blockSize:f}=((l=t.borderBoxSize)==null?void 0:l[0])??{},{offsetWidth:d,offsetHeight:y}=t.target;s(Object.assign(t,{offsetWidth:d,offsetHeight:y,width:v??d,height:f??y}))}}}const au=new(si&&window.ResizeObserver||K1)(G1);function Us(a,l){Io.set(a,l),au.observe(a)}function qs(a){Io.has(a)&&(au.unobserve(a),Io.delete(a))}function Y1(a={}){let l=Is;const r=e.watch(()=>e.unref(a.target),t=>{l(),!(!t||typeof a.onResize!="function")&&(Us(t,a.onResize),l=()=>{qs(t),l=Is})},{immediate:!0}),n=()=>{r(),l()};return e.getCurrentScope()&&e.onScopeDispose(n),{observeResize:Us,unobserveResize:qs,unobserve:n}}const J1=e.ref(!1);e.computed(()=>J1.value);const Ws="__theme_style__",pt="__theme_observer__",Ks=e.reactive(new Map),Gs=new Map;e.watch(Ks,()=>{if(!si)return;Gs.clear();const a=document.head.querySelector(`#${Ws}`);a&&document.head.removeChild(a);const l=document.createElement("style");let r=`.${pt} { width: 1px }`,n=1;for(const[t,[s,v]]of Ks.entries())r+=` html.${s} .${pt}, .${v} .${pt} { width: ${++n}px }`,Gs.set(n,t);l.textContent=r,l.id=Ws,document.head.appendChild(l)});const lu=e.defineComponent({__name:"grid-layout",props:{autoSize:{type:Boolean,default:!0},colNum:{default:12},rowHeight:{default:150},maxRows:{default:1/0},margin:{default:()=>[10,10]},isDraggable:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!0},isMirrored:{type:Boolean,default:!1},isBounded:{type:Boolean,default:!1},useCssTransforms:{type:Boolean,default:!0},verticalCompact:{type:Boolean,default:!0},restoreOnDrag:{type:Boolean,default:!1},layout:{},responsive:{type:Boolean,default:!1},responsiveLayouts:{default:()=>({})},transformScale:{default:1},breakpoints:{default:()=>({lg:1200,md:996,sm:768,xs:480,xxs:0})},cols:{default:()=>({lg:12,md:10,sm:6,xs:4,xxs:2})},preventCollision:{type:Boolean,default:!1},useStyleCursor:{type:Boolean,default:!0}},emits:["layout-before-mount","layout-mounted","layout-updated","breakpoint-changed","update:layout","layout-ready"],setup(a,{expose:l,emit:r}){const n=a,t=r,s=e.reactive({width:-1,mergedStyle:{},lastLayoutLength:0,isDragging:!1,placeholder:{x:0,y:0,w:0,h:0,i:""},layouts:{},lastBreakpoint:null,originalLayout:null}),v=new Map,f=e.ref(n.layout),d=e.ref(),{observeResize:y,unobserveResize:g}=Y1(),c=G6();c.on("resizeEvent",D),c.on("dragEvent",I),e.onBeforeMount(()=>{t("layout-before-mount",f.value)}),e.onMounted(()=>{t("layout-mounted",f.value),e.nextTick(()=>{i1(f.value),s.originalLayout=f.value,e.nextTick(()=>{F(),d.value&&y(d.value,Y6(E,16)),_i(f.value,n.verticalCompact),t("layout-updated",f.value),j(),E()})})}),e.onBeforeUnmount(()=>{c.clearAll(),d.value&&g(d.value)});function D(oe,ye,Ie,V,pe,Q){_(oe,ye,Ie,V,pe,Q)}function I(oe,ye,Ie,V,pe,Q){b(oe,ye,Ie,V,pe,Q)}e.watch(()=>s.width,(oe,ye)=>{e.nextTick(()=>{c.emit("updateWidth",oe),ye===-1&&e.nextTick(()=>{t("layout-ready",f.value)}),j()})}),e.watch(()=>[n.layout,n.layout.length],()=>{f.value=n.layout,R()}),e.watch(()=>n.colNum,oe=>{c.emit("setColNum",oe)}),e.watch(()=>n.rowHeight,oe=>{c.emit("setRowHeight",oe)}),e.watch(()=>n.isDraggable,oe=>{c.emit("setDraggable",oe)}),e.watch(()=>n.isResizable,oe=>{c.emit("setResizable",oe)}),e.watch(()=>n.isBounded,oe=>{c.emit("setBounded",oe)}),e.watch(()=>n.transformScale,oe=>{c.emit("setTransformScale",oe)}),e.watch(()=>n.responsive,oe=>{oe||(t("update:layout",s.originalLayout),c.emit("setColNum",n.colNum)),E()}),e.watch(()=>n.maxRows,oe=>{c.emit("setMaxRows",oe)}),e.watch([()=>n.margin,()=>n.margin[1]],j),e.provide(Fc,e.reactive({...e.toRefs(n),...e.toRefs(s),increaseItem:k,decreaseItem:W})),e.provide(Pc,c),l({state:s,getItem:M,resizeEvent:_,dragEvent:b,layoutUpdate:R});function k(oe){v.set(oe.i,oe)}function W(oe){v.delete(oe.i)}function M(oe){return v.get(oe)}function R(){if(!cn(f.value)&&!cn(s.originalLayout)){if(f.value.length!==s.originalLayout.length){const oe=Y(f.value,s.originalLayout);if(oe.length>0)if(f.value.length>s.originalLayout.length)s.originalLayout=s.originalLayout.concat(oe);else{const ye=new Set(oe.map(Ie=>Ie.i));s.originalLayout=s.originalLayout.filter(Ie=>!ye.has(Ie.i))}s.lastLayoutLength=f.value.length,F()}_i(f.value,n.verticalCompact),c.emit("updateWidth",s.width),j(),t("layout-updated",f.value)}}function j(){s.mergedStyle={height:w()}}function E(){d.value&&(s.width=d.value.offsetWidth),c.emit("resizeEvent")}function w(){if(!n.autoSize)return;const oe=parseFloat(n.margin[1]);return X6(f.value)*(n.rowHeight+oe)+oe+"px"}let x;function b(oe,ye,Ie,V,pe,Q){let ce=Es(f.value,ye);cn(ce)&&(ce={h:0,w:0,x:0,y:0,i:""}),oe==="dragstart"&&!n.verticalCompact&&(x=f.value.reduce((Be,{i:Ve,x:me,y:N})=>({...Be,[Ve]:{x:me,y:N}}),{})),oe==="dragmove"||oe==="dragstart"?(s.placeholder.i=ye,s.placeholder.x=ce.x,s.placeholder.y=ce.y,s.placeholder.w=Q,s.placeholder.h=pe,e.nextTick(()=>{s.isDragging=!0}),c.emit("updateWidth",s.width)):e.nextTick(()=>{s.isDragging=!1}),f.value=_t(f.value,ce,Ie,V,!0,n.preventCollision),n.restoreOnDrag?(ce.static=!0,_i(f.value,n.verticalCompact,x),ce.static=!1):_i(f.value,n.verticalCompact),c.emit("compact"),j(),oe==="dragend"&&(x=void 0,t("layout-updated",f.value))}function _(oe,ye,Ie,V,pe,Q){let ce=Es(f.value,ye);cn(ce)&&(ce={h:0,w:0,x:0,y:0,i:""});let Be;if(n.preventCollision){const Ve=Hc(f.value,{...ce,w:Q,h:pe}).filter(me=>me.i!==ce.i);if(Be=Ve.length>0,Be){let me=1/0,N=1/0;Ve.forEach(se=>{se.x>ce.x&&(me=Math.min(me,se.x)),se.y>ce.y&&(N=Math.min(N,se.y))}),Number.isFinite(me)&&(ce.w=me-ce.x),Number.isFinite(N)&&(ce.h=N-ce.y)}}Be||(ce.w=Q,ce.h=pe),oe==="resizestart"||oe==="resizemove"?(s.placeholder.i=ye,s.placeholder.x=Ie,s.placeholder.y=V,s.placeholder.w=ce.w,s.placeholder.h=ce.h,e.nextTick(()=>{s.isDragging=!0}),c.emit("updateWidth",s.width)):oe&&e.nextTick(()=>{s.isDragging=!1}),n.responsive&&$(),_i(f.value,n.verticalCompact),c.emit("compact"),j(),oe==="resizeend"&&t("layout-updated",f.value)}function $(){const oe=u1(n.breakpoints,s.width);if(oe===s.lastBreakpoint)return;const ye=Wc(oe,n.cols);!cn(s.lastBreakpoint)&&!s.layouts[s.lastBreakpoint]&&(s.layouts[s.lastBreakpoint]=wt(f.value));const Ie=d1(s.originalLayout,s.layouts,n.breakpoints,oe,s.lastBreakpoint,ye,n.verticalCompact);s.layouts[oe]=Ie,s.lastBreakpoint!==oe&&t("breakpoint-changed",oe,Ie),f.value=Ie,t("update:layout",Ie),s.lastBreakpoint=oe,c.emit("setColNum",ye)}function F(){s.layouts=Object.assign({},n.responsiveLayouts)}function Y(oe,ye){const Ie=new Set(ye.map(ce=>ce.i)),V=new Set(oe.map(ce=>ce.i)),pe=oe.filter(ce=>!Ie.has(ce.i)),Q=ye.filter(ce=>!V.has(ce.i));return pe.concat(Q)}return(oe,ye)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapper",ref:d,class:"vgl-layout",style:e.normalizeStyle(s.mergedStyle)},[oe.$slots.default?e.renderSlot(oe.$slots,"default",{key:0}):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(f.value,Ie=>(e.openBlock(),e.createBlock(Mo,e.mergeProps({key:Ie.i,ref_for:!0},Ie),{default:e.withCtx(()=>[e.renderSlot(oe.$slots,"item",{item:Ie})]),_:2},1040))),128)),e.withDirectives(e.createVNode(Mo,{class:"vgl-item--placeholder",x:s.placeholder.x,y:s.placeholder.y,w:s.placeholder.w,h:s.placeholder.h,i:s.placeholder.i},null,8,["x","y","w","h","i"]),[[e.vShow,s.isDragging]])],4))}});(function(){try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode('.vgl-layout{--vgl-placeholder-bg: red;--vgl-placeholder-opacity: 20%;--vgl-placeholder-z-index: 2;--vgl-item-resizing-z-index: 3;--vgl-item-resizing-opacity: 60%;--vgl-item-dragging-z-index: 3;--vgl-item-dragging-opacity: 100%;--vgl-resizer-size: 10px;--vgl-resizer-border-color: #444;--vgl-resizer-border-width: 2px;position:relative;box-sizing:border-box;transition:height .2s ease}.vgl-item{position:absolute;box-sizing:border-box;transition:.2s ease;transition-property:left,top,right}.vgl-item--placeholder{z-index:var(--vgl-placeholder-z-index, 2);-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:var(--vgl-placeholder-bg, red);opacity:var(--vgl-placeholder-opacity, 20%);transition-duration:.1s}.vgl-item--no-touch{touch-action:none}.vgl-item--transform{right:auto;left:0;transition-property:transform}.vgl-item--transform.vgl-item--rtl{right:0;left:auto}.vgl-item--resizing{z-index:var(--vgl-item-resizing-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-resizing-opacity, 60%)}.vgl-item--dragging{z-index:var(--vgl-item-dragging-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-dragging-opacity, 100%);transition:none}.vgl-item__resizer{position:absolute;right:0;bottom:0;box-sizing:border-box;width:var(--vgl-resizer-size);height:var(--vgl-resizer-size);cursor:se-resize}.vgl-item__resizer:before{position:absolute;top:0;right:3px;bottom:3px;left:0;content:"";border:0 solid var(--vgl-resizer-border-color);border-right-width:var(--vgl-resizer-border-width);border-bottom-width:var(--vgl-resizer-border-width)}.vgl-item__resizer--rtl{right:auto;left:0;cursor:sw-resize}.vgl-item__resizer--rtl:before{top:0;right:0;bottom:3px;left:3px;border-right-width:0;border-bottom-width:var(--vgl-resizer-border-width);border-left-width:var(--vgl-resizer-border-width)}')),document.head.appendChild(a)}}catch(l){console.error("vite-plugin-css-injected-by-js",l)}})();const X1={key:0,class:"item-view-group"},Z1={key:0,class:"item-view-group"},Q1=e.defineComponent({__name:"index",props:{children:{type:Object,default:()=>{}},level:{type:Number,default:1}},emits:["rowClick","routeUrl","radioChange"],setup(a,{emit:l}){const r=A.useModelComp(A.pinia),{isEdit:n}=A.storeToRefs(r),t=Hn(A.pinia),s=l,v=a,f=e.ref(""),d=e.computed(()=>v==null?void 0:v.children),y=e.computed(()=>{var j,E,w,x;return((j=v==null?void 0:v.children)==null?void 0:j.length)>0&&((E=v==null?void 0:v.children)!=null&&E.every(b=>b==null?void 0:b.layout))?(x=(w=v==null?void 0:v.children)==null?void 0:w[0])==null?void 0:x.layout:"vertical"}),g=j=>{f.value=j,s("radioChange",j)},c=e.computed(()=>{var j,E;return((E=(j=v==null?void 0:v.children)==null?void 0:j[0])==null?void 0:E.isGridLayout)||!1}),D=e.ref((v==null?void 0:v.level)+1),I=e.computed(()=>{if(!(v!=null&&v.children)||!Array.isArray(v.children)||v.children.length<2)return!1;const j=v.children.some(w=>(w==null?void 0:w.name)==="测量系统配置表"&&(w==null?void 0:w.comp)==="ParentItem"),E=v.children.some(w=>(w==null?void 0:w.name)==="测量系统传递表"&&(w==null?void 0:w.comp)==="ParentItem");return j&&E}),k=e.computed(()=>{var E,w,x,b,_,$;let j=(E=v==null?void 0:v.children)==null?void 0:E.filter(F=>F==null?void 0:F.choice);if(t.setSelectTab((w=j==null?void 0:j[0])==null?void 0:w.choiceName),(f==null?void 0:f.value)!=="")return(x=v==null?void 0:v.children)==null?void 0:x.filter(F=>!(F!=null&&F.choiceName)||(F==null?void 0:F.choiceName)===(f==null?void 0:f.value));{let F=(_=(b=v==null?void 0:v.children)==null?void 0:b.find(Y=>Y==null?void 0:Y.choice))==null?void 0:_.choiceName;return($=v==null?void 0:v.children)==null?void 0:$.filter(Y=>!(Y!=null&&Y.choiceName)||(Y==null?void 0:Y.choiceName)===F)}}),W=j=>{const E=(j==null?void 0:j.menuFilter)||[];return Array.isArray(E)&&(E==null?void 0:E.some(w=>{const x=typeof w=="string"?w:JSON.stringify(w);return x==null?void 0:x.includes("HideGroup=Yes")}))};e.watch(()=>v==null?void 0:v.children,()=>{I.value},{deep:!0});const M=j=>{s("rowClick",j)},R=(j,E)=>{s("routeUrl",j,E)};return(j,E)=>c.value?(e.openBlock(),e.createBlock(e.unref(lu),{key:0,layout:d.value,"onUpdate:layout":E[0]||(E[0]=w=>d.value=w),"is-draggable":e.unref(n)==="edit","is-resizable":e.unref(n)==="edit","col-num":24,margin:[8,16]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(w,x)=>(e.openBlock(),e.createBlock(e.unref(Mo),{key:w.i,x:w.x,y:w.y,"min-h":w.minH,"max-h":w.maxH,"min-w":w.minW,w:w.w,h:w.h,i:w.i},{default:e.withCtx(()=>{var b,_,$,F,Y,oe,ye,Ie,V,pe,Q,ce,Be,Ve;return[e.createElementVNode("div",{style:e.normalizeStyle({gap:"16px",display:"flex",flexDirection:"column",paddingBottom:x===((b=v==null?void 0:v.children)==null?void 0:b.length)-1?"0px":"24px"})},[(($=(_=w==null?void 0:w.component)==null?void 0:_.comp)==null?void 0:$.toUpperCase())!=="TABLE"&&((F=w==null?void 0:w.component)!=null&&F.name)?(e.openBlock(),e.createElementBlock("div",X1,[e.createElementVNode("div",{class:"group-name-wrap",style:e.normalizeStyle({paddingLeft:(parseInt(D.value.toString())-1)*12+"px",fontWeight:600-(D.value-1)*100>=400?600-(D.value-1)*100:400,fontSize:17-D.value>=14?17-D.value+"px":"14px"})},e.toDisplayString((Y=w==null?void 0:w.component)==null?void 0:Y.name),5)])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Gi)((oe=w==null?void 0:w.component)==null?void 0:oe.comp)),{pageLayout:y.value,config:{showIndex:(ye=e.unref(tr)[x])==null?void 0:ye.showIndex,allowMove:(Ie=e.unref(tr)[x])==null?void 0:Ie.allowMove,viewport:(V=e.unref(tr)[x])==null?void 0:V.viewport,status:(pe=e.unref(tr)[x])==null?void 0:pe.status},related:w==null?void 0:w.relatedTables,compName:w==null?void 0:w.component.name,compNames:e.unref(wc),itemData:(Q=w==null?void 0:w.component)==null?void 0:Q.compData,childItemData:(ce=w==null?void 0:w.component)==null?void 0:ce.itemChildData,key:e.unref(jn),cacheNewData:e.unref(xc),onChange:e.unref(To),index:(w==null?void 0:w.id)??x,onContentChange:e.unref(No),onPageChange:e.unref(Ao),parentTableId:(Be=w==null?void 0:w.component)==null?void 0:Be.tableId,allMapContents:e.unref(bt),children:(Ve=w==null?void 0:w.component)==null?void 0:Ve.children,level:D.value,onRowClick:M,onRouteUrl:R,onClickTrigger:e.unref(_c),onClickMainKey:e.unref(Sc),onRadioChange:g},null,40,["pageLayout","config","related","compName","compNames","itemData","childItemData","cacheNewData","onChange","index","onContentChange","onPageChange","parentTableId","allMapContents","children","level","onClickTrigger","onClickMainKey"]))],4)]}),_:2},1032,["x","y","min-h","max-h","min-w","w","h","i"]))),128))]),_:1},8,["layout","is-draggable","is-resizable"])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(k.value,(w,x)=>{var b,_;return e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({gap:"16px",display:(w==null?void 0:w.isShow)===!1?"none":"flex",flexDirection:"column",paddingBottom:parseInt(x)===((b=v==null?void 0:v.children)==null?void 0:b.length)-1?"0px":"24px"})},[((_=w==null?void 0:w.comp)==null?void 0:_.toUpperCase())!=="TABLE"&&w.name?(e.openBlock(),e.createElementBlock("div",Z1,[W(w)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"group-name-wrap",style:e.normalizeStyle({paddingLeft:parseInt(D.value.toString())>1?"12px":"0px",fontWeight:600-(D.value-1)*100>=400?600-(D.value-1)*100:400,fontSize:17-D.value>=14?17-D.value+"px":"14px"})},e.toDisplayString(w.name),5))])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Gi)(w.comp)),{compName:w.name,groupNames:w==null?void 0:w.nameContents,config:{showIndex:w==null?void 0:w.showIndex,allowMove:w==null?void 0:w.allowMove,viewport:w==null?void 0:w.viewport,status:w==null?void 0:w.status},itemData:w==null?void 0:w.compData,related:w==null?void 0:w.relatedTables,childItemData:w==null?void 0:w.itemChildData,key:e.unref(jn),onChange:e.unref(To),index:(w==null?void 0:w.id)??x,onContentChange:e.unref(No),onPageChange:e.unref(Ao),parentTableId:w==null?void 0:w.tableId,allMapContents:e.unref(bt),children:w==null?void 0:w.children,level:D.value,onRowClick:M,onRouteUrl:R,onRadioChange:g},null,40,["compName","groupNames","config","itemData","related","childItemData","onChange","index","onContentChange","onPageChange","parentTableId","allMapContents","children","level"]))],4)}),256))}}),ev=Zl._export_sfc(Q1,[["__scopeId","data-v-bafbdd45"]]),av={class:"radio-group-container"},lv=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},emits:["radioChange"],setup(a,{emit:l}){const r=a,n=l,t=e.ref(),s=Hn(A.pinia),{selectTab:v}=A.storeToRefs(s);e.watch(()=>r==null?void 0:r.itemData,()=>{t.value=v.value},{immediate:!0,deep:!0});const f=d=>{t.value=d,n("radioChange",t.value)};return(d,y)=>(e.openBlock(),e.createElementBlock("div",av,[e.createVNode(ll.ssRadio,{modelValue:t.value,"onUpdate:modelValue":y[0]||(y[0]=g=>t.value=g),content:r==null?void 0:r.itemData,onChange:f},null,8,["modelValue","content"])]))}}),rv=Zl._export_sfc(lv,[["__scopeId","data-v-177d64c3"]]),ru=e.ref([{name:"表格",type:"table",comp:"Table",icon:"Table"},{name:"表单",type:"form",comp:"Form",icon:"Form"},{name:"折叠",type:"fold",comp:"Fold",icon:"Fold"},{name:"头像",type:"avatar",comp:"AvatarUpload",icon:"Avatar"},{name:"签名",type:"signature",comp:"Signature",icon:"Signature"},{name:"步骤条",type:"step",comp:"Step",icon:"Step"},{name:"时间线",type:"timeLine",comp:"TimeLine",icon:"TimeLine"},{name:"标签页",type:"tabs",comp:"Tabs",icon:"Tabs"},{name:"图表",type:"chart",comp:"Chart",icon:"chart-new"},{name:"行内布局",type:"layout",comp:"Layout",icon:"ai13"}]),nv={TABLE:Bc,FORM:xs,STATICFORM:Tc,TABLEOPERATE:G2,TABLESTYLE:dh,TABLEEXTEND:fh,TABLEINTERACTION:mh,FORMOPERATE:ws,FOLD:Wh,CALCULATOR:Zh,METHODBUTTON:a4,AVATARUPLOAD:ls.ssAvatar,SIGNATURE:ls.ssSignature,FORMTOP:xs,STEP:f4,STEPOPERATE:Rh,TIMELINE:b4,TIMELINEOPERATE:Hh,FORMTOPOPERATE:ws,SIGNATUREOPERATE:u4,AVATARUPLOADOPERATE:n4,TABS:w4,TABSOPERATE:t6,CHART:w6,CHARTOPERATE:M6,LAYOUT:L6,LAYOUTOPERATE:q6,PARENTITEM:ev,RADIO:rv};function Ti(a){return nv[a==null?void 0:a.toUpperCase()]||null}exports.De=lu;exports.activeStepInfo=Si;exports.addContents=Ki;exports.addVisibleDialog=Dt;exports.affixItems=_0;exports.allMapContents=bt;exports.analyzeMenu=ac;exports.cacheNewData=xc;exports.clickMainKey=Sc;exports.clickSavePage=w0;exports.clickStep=Cc;exports.clickTrigger=_c;exports.compId=jn;exports.compNames=wc;exports.compShow=Bi;exports.existLayouts=A0;exports.fixChangeValue=Et;exports.generateLayouts=th;exports.getComponent=Ti;exports.getComponents=Gi;exports.getPageConstruct=Gd;exports.getPageData=Kr;exports.getSliceContLength=R0;exports.gridRowHeight=lh;exports.gridRowHeightHmPg=ah;exports.isStepLayout=Dc;exports.onBack=k0;exports.onButtonChange=D0;exports.onChange=To;exports.onClick=x0;exports.onClickStep=z0;exports.onContentChange=No;exports.onExtendTaskEnd=N0;exports.onOk=B0;exports.onPageBack=I0;exports.onPageChange=Ao;exports.onSelectFixContent=b0;exports.renderShowItems=bc;exports.showItems=tr;exports.sliceTableLength=kc;exports.slotContent=ru;exports.ssTable=Bc;exports.st=Mo;exports.stepItems=$0;exports.tabChange=M0;exports.toolBar=T0;exports.useFormComp=Ct;exports.useModelLoader=xf;exports.verifyButton=O0;