ss-component-new 1.3.253 → 1.3.255

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 (106) hide show
  1. package/dist/{MTLLoader-DhkbjDn5.cjs → MTLLoader-BbkyASan.cjs} +1 -1
  2. package/dist/{MTLLoader-kSybMwCv.js → MTLLoader-CxB65QQq.js} +1 -1
  3. package/dist/{OrbitControls-XEy6yLM5.cjs → OrbitControls-Bfvb5pv-.cjs} +1 -1
  4. package/dist/{OrbitControls-DWkGT_jN.js → OrbitControls-CgDI9Dzj.js} +1 -1
  5. package/dist/{URDFLoader-DWfsFwAW.js → URDFLoader-B18rFuGQ.js} +2 -2
  6. package/dist/{URDFLoader-DhIlh9SZ.cjs → URDFLoader-BqTfjAvX.cjs} +1 -1
  7. package/dist/{animationData-EX8ALJ90.js → animationData-BeC7Ksan.js} +3 -3
  8. package/dist/{animationData-CNTkCldk.cjs → animationData-gmN8vwXr.cjs} +1 -1
  9. package/dist/{array-DK9t-RZ5.cjs → array-B3bl5bn0.cjs} +1 -1
  10. package/dist/{array-BDy1Ncle.js → array-B_7zpz6-.js} +49 -49
  11. package/dist/{iconfont-D-Fv-qGO.js → iconfont-BDyitR5V.js} +2 -2
  12. package/dist/{iconfont-DxOyAp3D.cjs → iconfont-BFTB_6By.cjs} +1 -1
  13. package/dist/{index-2M-IP1bA.cjs → index-2gZmwL3z.cjs} +1 -1
  14. package/dist/{index-COYH6Dsm.js → index-B-jXswxK.js} +6 -6
  15. package/dist/{index-DGVfotFX.cjs → index-B6zxXi7b.cjs} +1 -1
  16. package/dist/{index-DcmpIuyR.cjs → index-B74OQdfz.cjs} +1 -1
  17. package/dist/{index-Dt2q9_xX.cjs → index-B91fpH7E.cjs} +1 -1
  18. package/dist/{index-Coq7X7y8.cjs → index-BApaBsV6.cjs} +1 -1
  19. package/dist/index-BH1QeTrv.cjs +1 -0
  20. package/dist/{index-kylznSf-.js → index-BH9-Hsyp.js} +2 -2
  21. package/dist/{index-CpxOzwA-.cjs → index-BJH237uR.cjs} +1 -1
  22. package/dist/{index-C1Dc_mjt.cjs → index-BLvDoVkw.cjs} +1 -1
  23. package/dist/{index-BeRCQCdi.js → index-BRMBKwzE.js} +3 -3
  24. package/dist/{index-3sGayDdt.cjs → index-BRlrWa15.cjs} +1 -1
  25. package/dist/{index-DdFWw0IN.js → index-BXhJyiwp.js} +8 -8
  26. package/dist/{index-C8p1jD8G.cjs → index-Bnmzd5N2.cjs} +1 -1
  27. package/dist/{index-DBb0okvF.js → index-ByM9ae-R.js} +4 -4
  28. package/dist/{index-BYEED-kW.js → index-Bzl8VR0c.js} +1 -1
  29. package/dist/{index-BM2WGfYi.js → index-C39FYBsm.js} +1 -1
  30. package/dist/{index-LncjUMsU.cjs → index-C3JTaW7V.cjs} +1 -1
  31. package/dist/{index-D2Njli4E.js → index-C3m4WIgZ.js} +2 -2
  32. package/dist/index-C5C5PAT9.cjs +25 -0
  33. package/dist/{index-nwtQ-O1L.js → index-C6CIqdD6.js} +1 -1
  34. package/dist/{index-DnvhrR1b.js → index-C7-7DQ8H.js} +2 -2
  35. package/dist/{index-DcyVuH_R.js → index-CJzLKi9Z.js} +487 -500
  36. package/dist/{index-CSj2fJ4e.cjs → index-CVHrgtSc.cjs} +1 -1
  37. package/dist/{index-DcCZWQJ_.cjs → index-CaSVfO-G.cjs} +1 -1
  38. package/dist/{index-Be8WkE9-.cjs → index-CdCCxGXJ.cjs} +1 -1
  39. package/dist/{index-BDZtQ4N8.cjs → index-Cie1OJYf.cjs} +1 -1
  40. package/dist/{index-DGYepoGt.cjs → index-CnC7rI16.cjs} +1 -1
  41. package/dist/{index-BJGOMZS3.js → index-CnsAVNcF.js} +8 -8
  42. package/dist/{index-GUB8vyLB.cjs → index-CpHrJbzU.cjs} +12 -12
  43. package/dist/{index-BnVCc6o9.js → index-CymLx2yV.js} +2 -2
  44. package/dist/{index-CmTRhztd.cjs → index-CzFGWnnh.cjs} +1 -1
  45. package/dist/{index-89JD0Pir.cjs → index-D2E3Xa62.cjs} +1 -1
  46. package/dist/{index-CrIGzoIr.js → index-D5xR-9jl.js} +1 -1
  47. package/dist/{index-CMPrUwf8.js → index-D653Ji8G.js} +5 -5
  48. package/dist/{index-DMMoAxR-.js → index-D6tHtGNW.js} +3 -3
  49. package/dist/{index-Cj1LFMSA.cjs → index-D9pE21Gn.cjs} +1 -1
  50. package/dist/{index-C5bjM7FA.cjs → index-DBANew_v.cjs} +1 -1
  51. package/dist/{index-CLvFKdVq.js → index-DEUR6Zpv.js} +2081 -2169
  52. package/dist/{index-le2Rca0l.cjs → index-DGmrINxj.cjs} +1 -1
  53. package/dist/{index-2lGKiZFJ.js → index-DHXgFlyQ.js} +1 -1
  54. package/dist/{index-DW_nJVg2.cjs → index-DI5_eNwC.cjs} +1 -1
  55. package/dist/{index-BEapybFg.js → index-DJ_OL_C0.js} +46 -46
  56. package/dist/{index-CyQpi2tP.js → index-DTr9CURw.js} +4786 -4262
  57. package/dist/{index-CIMZWqaV.cjs → index-D_8L21gF.cjs} +1 -1
  58. package/dist/{index-D4fO0WEV.js → index-DgUG27vK.js} +1 -1
  59. package/dist/{index-OFkIV22_.js → index-DjdKTqAw.js} +8 -8
  60. package/dist/{index-CpVaoLky.js → index-JXxkyOQY.js} +3965 -3935
  61. package/dist/{index-xqHfzzQD.cjs → index-LhirSlbf.cjs} +1 -1
  62. package/dist/{index-DUtmk1bj.cjs → index-OAw89GlW.cjs} +1 -1
  63. package/dist/{index-B3TCH363.cjs → index-TlpsYQOO.cjs} +7 -6
  64. package/dist/{index-CNwliXjU.js → index-p1BJpeCx.js} +5 -5
  65. package/dist/{index-CA8t9-gv.js → index-qgYEDwXG.js} +2 -2
  66. package/dist/{index-BGbxImVv.js → index-vd4vRJW2.js} +13 -13
  67. package/dist/{index-CkLgyT6u.cjs → index-wKWv56Bw.cjs} +1 -1
  68. package/dist/{index-Bfi1UoGP.js → index-yIdddQuP.js} +2 -2
  69. package/dist/{index-XFkwHh-P.js → index-yQLmOtsY.js} +2 -2
  70. package/dist/{index-BGwuI_x4.js → index-zrTuHtuS.js} +1 -1
  71. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CRAl9Y7G.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BDAZDHvN.cjs} +68 -68
  72. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-ucfC0PVu.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-tLv4FsgZ.js} +2486 -2481
  73. package/dist/{main-C8097bU2.cjs → main-BnxMggPl.cjs} +1 -1
  74. package/dist/{main-DbTUPiOc.js → main-DDaIzcjA.js} +4 -4
  75. package/dist/menuIndex-CD_6J90j.cjs +1 -0
  76. package/dist/menuIndex-dHBsUkqd.js +83 -0
  77. package/dist/obj/model.mtl +42 -0
  78. package/dist/obj/model.obj +26110 -0
  79. package/dist/ss-component.cjs +1 -1
  80. package/dist/ss-component.css +2 -2
  81. package/dist/ss-component.js +11 -11
  82. package/dist/ss-component2.cjs +1 -1
  83. package/dist/ss-component2.js +13 -13
  84. package/dist/{threeModel-De-7T9uY.cjs → threeModel-BN6c75D5.cjs} +1 -1
  85. package/dist/{threeModel-BJchxIwW.js → threeModel-CDIFaejZ.js} +76 -76
  86. package/dist/{threePreview-DvYgRY2j.js → threePreview-BtIIDlh-.js} +5 -5
  87. package/dist/{threePreview-JLq5yZic.cjs → threePreview-DwWlg7lI.cjs} +1 -1
  88. package/dist/{threeSceneView-CygIbwt0.cjs → threeSceneView-C-yzvZdv.cjs} +1 -1
  89. package/dist/{threeSceneView-CUJzhEK6.js → threeSceneView-CvuMlo8L.js} +11 -11
  90. package/dist/{threeSceneViewForCPMPIP-DW7gUluU.cjs → threeSceneViewForCPMPIP-BvcImuS8.cjs} +1 -1
  91. package/dist/{threeSceneViewForCPMPIP-FGl_ZFFr.js → threeSceneViewForCPMPIP-DhZWA7GU.js} +9 -9
  92. package/dist/{threeTrackPathView-CJeLq_TJ.cjs → threeTrackPathView-DTXw71Wd.cjs} +1 -1
  93. package/dist/{threeTrackPathView-COd-EfJg.js → threeTrackPathView-DX1p8Ie-.js} +4 -4
  94. package/dist/{threeViewerHost-UYIlXdwN.js → threeViewerHost-C7qflIpN.js} +3 -3
  95. package/dist/{threeViewerHost-NEd9wdRM.cjs → threeViewerHost-CBGXmZgT.cjs} +1 -1
  96. package/dist/{urdfTree-D_szdiKY.cjs → urdfTree-CN3JKSRs.cjs} +1 -1
  97. package/dist/{urdfTree-xl8HRmIY.js → urdfTree-CR3g-bil.js} +1 -1
  98. package/dist/{workpieceTreePanel-Cpiuo7hc.js → workpieceTreePanel-CmQM28rE.js} +4 -4
  99. package/dist/{workpieceTreePanel-CTJjkLo9.cjs → workpieceTreePanel-DBHiE5Se.cjs} +1 -1
  100. package/package.json +1 -1
  101. package/public/obj/model.mtl +42 -0
  102. package/public/obj/model.obj +26110 -0
  103. package/dist/index-Blu30Md_.cjs +0 -25
  104. package/dist/index-ltYEl6x9.cjs +0 -1
  105. package/dist/menuIndex-COeE6K1p.cjs +0 -1
  106. package/dist/menuIndex-OsQ53sC9.js +0 -55
@@ -1,25 +0,0 @@
1
- "use strict";var iu=Object.defineProperty;var su=(l,n,r)=>n in l?iu(l,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):l[n]=r;var Mr=(l,n,r)=>su(l,typeof n!="symbol"?n+"":n,r);const a=require("vue"),Wa=require("./request-BBDPqFah.cjs"),L=require("./index-B3TCH363.cjs"),rl=require("./index-GUB8vyLB.cjs"),Aa=require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CRAl9Y7G.cjs"),Fl=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),sr=require("./index-BmlrF4d1.cjs"),mo=require("./threeViewerHost-NEd9wdRM.cjs"),sa=require("./index-xqHfzzQD.cjs"),hr=require("./index-CDIharql.cjs"),qi=require("./index-CkLgyT6u.cjs");require("./index-BDZtQ4N8.cjs");const Rs=require("./index-Be8WkE9-.cjs");;/* empty css */const yo=require("./isString-Jc6FCt92.cjs"),Wi=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),Ps=require("./index-BVaHwt5f.cjs"),cu=require("./index-Coq7X7y8.cjs"),En=require("./MTLLoader-DhkbjDn5.cjs"),uu=require("./URDFLoader-DhIlh9SZ.cjs");var du=/\s/;function pu(l){for(var n=l.length;n--&&du.test(l.charAt(n)););return n}var fu=/^\s+/;function hu(l){return l&&l.slice(0,pu(l)+1).replace(fu,"")}var Ki=NaN,vu=/^[-+]0x[0-9a-f]+$/i,mu=/^0b[01]+$/i,yu=/^0o[0-7]+$/i,gu=parseInt;function Yi(l){if(typeof l=="number")return l;if(Wa.isSymbol(l))return Ki;if(Wa.isObject(l)){var n=typeof l.valueOf=="function"?l.valueOf():l;l=Wa.isObject(n)?n+"":n}if(typeof l!="string")return l===0?l:+l;l=hu(l);var r=mu.test(l);return r||yu.test(l)?gu(l.slice(2),r?2:8):vu.test(l)?Ki:+l}var Jo=function(){return Wa.root.Date.now()},bu="Expected a function",ku=Math.max,xu=Math.min;function mi(l,n,r){var t,s,u,k,f,v,y=0,c=!1,E=!1,N=!0;if(typeof l!="function")throw new TypeError(bu);n=Yi(n)||0,Wa.isObject(r)&&(c=!!r.leading,E="maxWait"in r,u=E?ku(Yi(r.maxWait)||0,n):u,N="trailing"in r?!!r.trailing:N);function O(x){var g=t,H=s;return t=s=void 0,y=x,k=l.apply(H,g),k}function w(x){return y=x,f=setTimeout(A,n),c?O(x):k}function Y(x){var g=x-v,H=x-y,W=n-g;return E?xu(W,u-H):W}function _(x){var g=x-v,H=x-y;return v===void 0||g>=n||g<0||E&&H>=u}function A(){var x=Jo();if(_(x))return Z(x);f=setTimeout(A,Y(x))}function Z(x){return f=void 0,N&&t?O(x):(t=s=void 0,k)}function S(){f!==void 0&&clearTimeout(f),y=0,t=v=s=f=void 0}function $(){return f===void 0?k:Z(Jo())}function T(){var x=Jo(),g=_(x);if(t=arguments,s=this,v=x,g){if(f===void 0)return w(v);if(E)return clearTimeout(f),f=setTimeout(A,n),O(v)}return f===void 0&&(f=setTimeout(A,n)),k}return T.cancel=S,T.flush=$,T}var wu="[object Boolean]";function Fs(l){return l===!0||l===!1||Wa.isObjectLike(l)&&Wa.baseGetTag(l)==wu}function _u(l){return l===void 0}const Cu=l=>l.match(/\((.*)\)/)[1],Eu={__name:"index",props:{isVisible:{type:Boolean,default:!1},title:{type:String,default:""},placement:{type:String,default:"bottom"},width:{type:Number,default:200},trigger:{type:String,default:"click"}},setup(l){const n=l,r=a.ref(null),t=a.ref(!1),s=a.ref(null);return a.watch(()=>n==null?void 0:n.isVisible,()=>{t.value=n==null?void 0:n.isVisible},{deep:!0,immediate:!0}),a.watch(()=>s.value,()=>{a.nextTick(()=>{var u,k;(k=(u=r.value)==null?void 0:u.updatePopper)==null||k.call(u)})},{deep:!0,immediate:!0}),(u,k)=>{const f=a.resolveComponent("el-popover");return a.openBlock(),a.createBlock(f,{visible:t.value,"onUpdate:visible":k[0]||(k[0]=v=>t.value=v),trigger:n.trigger,title:n==null?void 0:n.title,placement:n==null?void 0:n.placement,width:n==null?void 0:n.width,ref_key:"popOverRef",ref:r,"trigger-keys":"[]"},{reference:a.withCtx(()=>[a.createElementVNode("div",null,[a.renderSlot(u.$slots,"reference",{ref_key:"referenceRef",ref:s})])]),default:a.withCtx(()=>[a.createElementVNode("div",null,[a.renderSlot(u.$slots,"content")])]),_:3},8,["visible","trigger","title","placement","width"])}}};function Su(l,n,r,t={}){if(!l||!n||!r||r.length!==4)return;const s=l.getContext("2d");if(!s)return;const{color:u="rgba(255, 235, 59, 0.3)",strokeWidth:k=2,fillOpacity:f=.2}=t,v=l.getBoundingClientRect(),y=n.getBoundingClientRect(),c=n.naturalWidth,E=n.naturalHeight,N=y.width/c,O=y.height/E,w=Math.min(N,O),Y=c*w,_=E*w,A=(v.width-Y)/2,Z=(v.height-_)/2,S=r.map(([T,x])=>{const g=A+T*Y,H=Z+x*_;return{x:g,y:H}});s.clearRect(0,0,l.width,l.height),s.beginPath(),s.moveTo(S[0].x,S[0].y);for(let T=1;T<S.length;T++)s.lineTo(S[T].x,S[T].y);s.closePath();const $=u.replace(/[\d.]+\)$/,`${f})`);s.fillStyle=$,s.fill(),s.strokeStyle=u.replace(/[\d.]+\)$/,"1)"),s.lineWidth=k,s.stroke()}function yt(l){if(!l)return;const n=l.getContext("2d");n&&n.clearRect(0,0,l.width,l.height)}function Gi(l,n){if(!l||!n)return null;const r=l[n];return!r||!r.bboxNorm||!Array.isArray(r.bboxNorm)||r.bboxNorm.length!==4?null:{bboxNorm:r.bboxNorm,imageName:r.imageName||""}}const Du={key:0,class:"ocr-img-preview-root"},Bu={class:"ocr-img-preview-window"},Nu={key:0,class:"img-preview-body"},Tu={class:"img-preview-header"},Au={class:"img-header-left"},Mu={class:"img-name"},zu={key:0,class:"img-header-right"},Ou={class:"img-index"},Iu={key:0,class:"img-thumb-list"},Lu=["onClick"],Vu={key:1,class:"thumb-placeholder"},$u={class:"thumb-name"},Ru={class:"img-preview-container"},Pu={key:0,class:"img-placeholder"},Fu={key:2,class:"img-placeholder"},ju={key:0},Hu={key:1},Uu={key:1,class:"img-placeholder"},qu=a.defineComponent({__name:"imgPreview",props:{visible:{type:Boolean,default:!1},images:{type:Array,default:()=>[]},defaultImageName:{type:String,default:""},fieldMeta:{type:Object,default:()=>({})},focusedFieldName:{type:String,default:""}},emits:["update:visible","close"],setup(l,{emit:n}){const r=l,t=n,s=a.computed({get:()=>r.visible,set:D=>t("update:visible",D)});let u=!1,k="",f=0,v=0,y=0,c=0,E=0,N=0,O=null;const w=D=>{var ve,se;const ne=(se=(ve=D==null?void 0:D.target)==null?void 0:ve.closest)==null?void 0:se.call(ve,".ocr-img-preview-window");return ne||document.querySelector(".ocr-img-preview-window")},Y=D=>{if(!D||D==="none")return{tx:0,ty:0};let ne=D.match(/matrix\(([^)]+)\)/);if(ne){const ve=ne[1].split(",").map(se=>Number(se.trim()));return{tx:(ve==null?void 0:ve[4])||0,ty:(ve==null?void 0:ve[5])||0}}if(ne=D.match(/matrix3d\(([^)]+)\)/),ne){const ve=ne[1].split(",").map(se=>Number(se.trim()));return{tx:(ve==null?void 0:ve[12])||0,ty:(ve==null?void 0:ve[13])||0}}return ne=D.match(/translate\(\s*([-\d.]+)px\s*,\s*([-\d.]+)px\s*\)/),ne?{tx:Number(ne[1])||0,ty:Number(ne[2])||0}:{tx:0,ty:0}},_=(D,ne,ve)=>{D.style.transform=`translate(${ne}px, ${ve}px)`},A=D=>{const ne=w(D);if(!ne)return;u=!0,O=ne,k="move",f=D.clientX,v=D.clientY;const ve=window.getComputedStyle(ne),{tx:se,ty:xe}=Y(ve.transform);E=se,N=xe,document.addEventListener("mousemove",S),document.addEventListener("mouseup",$)},Z=(D,ne)=>{const ve=w(D);if(!ve)return;u=!0,O=ve,k=ne,f=D.clientX,v=D.clientY;const se=ve.getBoundingClientRect();y=se.width,c=se.height;const xe=window.getComputedStyle(ve),{tx:ta,ty:wa}=Y(xe.transform);E=ta,N=wa,document.addEventListener("mousemove",S),document.addEventListener("mouseup",$)},S=D=>{if(!u||!O)return;const ne=D.clientX-f,ve=D.clientY-v,se=360,xe=420;let ta=y,wa=c,Ia=E,le=N;if(k==="move"){Ia=E+ne,le=N+ve,_(O,Ia,le);return}if(k.includes("right")&&(ta=Math.max(se,y+ne)),k.includes("bottom")&&(wa=Math.max(xe,c+ve)),k.includes("left")){const ra=y-ne;ra<se?(ta=se,Ia=E+(y-se)):(ta=ra,Ia=E+ne)}if(k.includes("top")){const ra=c-ve;ra<xe?(wa=xe,le=N+(c-xe)):(wa=ra,le=N+ve)}O.style.width=`${ta}px`,O.style.height=`${wa}px`,_(O,Ia,le)},$=()=>{u=!1,k="",O=null,document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",$)},T=a.ref([]),x=a.ref(!1);a.watch(()=>r.images,async D=>{if(!Array.isArray(D)||D.length===0){T.value=[];return}x.value=!0;const ne=[];for(const ve of D)if(ve.url&&!ve.url.startsWith("blob:")&&!ve.url.startsWith("http"))try{const se=await Aa.downloadFile(ve.url),xe=URL.createObjectURL(se);ne.push({...ve,blobUrl:xe})}catch(se){console.error(`Failed to load image for preview: ${ve.url}`,se),ne.push({...ve,blobUrl:""})}else ne.push({...ve,blobUrl:ve.url});T.value=ne,x.value=!1},{deep:!0,immediate:!0});const g=a.ref(0),H=a.ref(null),W=a.ref(null),ae=a.computed(()=>T.value[g.value]||null),ge=()=>{if(!T.value.length){g.value=0;return}if(r.defaultImageName){const D=T.value.findIndex(ne=>(ne==null?void 0:ne.name)===r.defaultImageName);g.value=D>=0?D:0}else g.value=0},Oe=D=>{if(!T.value.length)return;const ne=Math.max(0,Math.min(D,T.value.length-1));g.value=ne},we=()=>Oe(g.value-1),te=()=>Oe(g.value+1),me=D=>{if(!D)return;const ne=T.value.findIndex(ve=>(ve==null?void 0:ve.name)===D);ne>=0&&(g.value=ne)},J=()=>{if(!W.value)return;const D=W.value.parentElement;if(!D)return;const ne=D.getBoundingClientRect();W.value.width=ne.width,W.value.height=ne.height},ue=()=>{var se,xe;if(!W.value||!H.value||!r.focusedFieldName){W.value&&yt(W.value);return}const D=(se=H.value.$el)==null?void 0:se.querySelector("img");if(!D)return;if(!D.complete||D.naturalWidth===0){D.onload=()=>{a.nextTick(()=>{ue()})};return}const ne=((xe=ae.value)==null?void 0:xe.name)||"",ve=Gi(r.fieldMeta,r.focusedFieldName);if(!ve){yt(W.value);return}if(ve.imageName!==ne){yt(W.value);return}J(),Su(W.value,D,ve.bboxNorm)},Ye=()=>{a.nextTick(()=>{J(),ue()})};a.watch(()=>r.focusedFieldName,()=>{if(!s.value)return;const D=Gi(r.fieldMeta,r.focusedFieldName);D!=null&&D.imageName&&me(D.imageName),a.nextTick(()=>{ue()})}),a.watch(()=>{var D;return(D=ae.value)==null?void 0:D.name},()=>{s.value&&a.nextTick(()=>{W.value&&yt(W.value),ue()})}),a.watch(()=>r.visible,D=>{D?(ge(),a.nextTick(()=>{J(),ue()})):W.value&&yt(W.value)}),a.watch(()=>r.defaultImageName,()=>{s.value&&ge()});let Sa=null;a.onMounted(()=>{var D;typeof ResizeObserver<"u"&&(Sa=new ResizeObserver(()=>{J(),a.nextTick(()=>{ue()})}),(D=W.value)!=null&&D.parentElement&&Sa.observe(W.value.parentElement))}),a.onUnmounted(()=>{Sa&&(Sa.disconnect(),Sa=null),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",$)});const oe=()=>{W.value&&yt(W.value),t("update:visible",!1),t("close")};return(D,ne)=>{var wa,Ia;const ve=a.resolveComponent("el-button"),se=a.resolveComponent("el-image"),xe=a.resolveComponent("Loading"),ta=a.resolveComponent("el-icon");return s.value?(a.openBlock(),a.createElementBlock("div",Du,[ne[12]||(ne[12]=a.createElementVNode("div",{class:"ocr-img-preview-backdrop"},null,-1)),a.createElementVNode("div",Bu,[a.createElementVNode("div",{class:"ocr-img-preview-header",onMousedown:a.withModifiers(A,["stop"])},[ne[8]||(ne[8]=a.createElementVNode("span",{class:"ocr-img-preview-title"},"文件预览",-1)),a.createElementVNode("button",{type:"button",class:"ocr-img-preview-close",onClick:oe},"×")],32),a.createElementVNode("div",{class:"resizable-handle top",onMousedown:ne[0]||(ne[0]=a.withModifiers(le=>Z(le,"top"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle right",onMousedown:ne[1]||(ne[1]=a.withModifiers(le=>Z(le,"right"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom",onMousedown:ne[2]||(ne[2]=a.withModifiers(le=>Z(le,"bottom"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle left",onMousedown:ne[3]||(ne[3]=a.withModifiers(le=>Z(le,"left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle top-left",onMousedown:ne[4]||(ne[4]=a.withModifiers(le=>Z(le,"top-left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle top-right",onMousedown:ne[5]||(ne[5]=a.withModifiers(le=>Z(le,"top-right"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom-left",onMousedown:ne[6]||(ne[6]=a.withModifiers(le=>Z(le,"bottom-left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom-right",onMousedown:ne[7]||(ne[7]=a.withModifiers(le=>Z(le,"bottom-right"),["stop"]))},null,32),ae.value?(a.openBlock(),a.createElementBlock("div",Nu,[a.createElementVNode("div",Tu,[a.createElementVNode("div",Au,[a.createElementVNode("span",Mu,a.toDisplayString(ae.value.name?ae.value.name+(ae.value.url&&ae.value.url.lastIndexOf(".")!==-1?ae.value.url.substring(ae.value.url.lastIndexOf(".")):""):""),1)]),T.value.length>1?(a.openBlock(),a.createElementBlock("div",zu,[a.createVNode(ve,{size:"small",disabled:g.value===0,onClick:we},{default:a.withCtx(()=>ne[9]||(ne[9]=[a.createTextVNode("上一张")])),_:1,__:[9]},8,["disabled"]),a.createElementVNode("span",Ou,a.toDisplayString(g.value+1)+" / "+a.toDisplayString(T.value.length),1),a.createVNode(ve,{size:"small",disabled:g.value===T.value.length-1,onClick:te},{default:a.withCtx(()=>ne[10]||(ne[10]=[a.createTextVNode("下一张")])),_:1,__:[10]},8,["disabled"])])):a.createCommentVNode("",!0)]),T.value.length>1?(a.openBlock(),a.createElementBlock("div",Iu,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(T.value,(le,ra)=>(a.openBlock(),a.createElementBlock("div",{key:(le.name||"")+"-"+ra,class:a.normalizeClass(["img-thumb-item",{active:ra===g.value}]),onClick:Ve=>Oe(ra)},[le!=null&&le.blobUrl?(a.openBlock(),a.createBlock(se,{key:0,src:le.blobUrl,fit:"cover",class:"thumb-image","preview-src-list":[le.blobUrl],"initial-index":0},null,8,["src","preview-src-list"])):(a.openBlock(),a.createElementBlock("div",Vu,"加载失败")),a.createElementVNode("div",$u,a.toDisplayString(le.name||"-"),1)],10,Lu))),128))])):a.createCommentVNode("",!0),a.createElementVNode("div",Ru,[x.value?(a.openBlock(),a.createElementBlock("div",Pu,[a.createVNode(ta,{class:"is-loading"},{default:a.withCtx(()=>[a.createVNode(xe)]),_:1}),ne[11]||(ne[11]=a.createElementVNode("span",null,"图片加载中...",-1))])):(wa=ae.value)!=null&&wa.blobUrl?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createVNode(se,{ref_key:"imageRef",ref:H,src:ae.value.blobUrl,fit:"contain",class:"preview-image","preview-src-list":[ae.value.blobUrl],onLoad:Ye},null,8,["src","preview-src-list"]),a.createElementVNode("canvas",{ref_key:"canvasRef",ref:W,class:"highlight-canvas"},null,512)],64)):(a.openBlock(),a.createElementBlock("div",Fu,[(Ia=ae.value)!=null&&Ia.url?(a.openBlock(),a.createElementBlock("span",ju,"图片加载失败")):(a.openBlock(),a.createElementBlock("span",Hu,"暂无图片"))]))])])):(a.openBlock(),a.createElementBlock("div",Uu,"暂无图片"))])])):a.createCommentVNode("",!0)}}}),Wu=Fl._export_sfc(qu,[["__scopeId","data-v-48a4ecb1"]]),Ku={class:"cert-preview-body"},Yu={key:0,class:"pdf-preview-container"},Gu={class:"thumbs"},Xu=["onClick"],Ju={class:"thumb-img"},Zu=["src"],Qu={key:1,class:"thumb-loading"},ed={class:"thumb-title"},ad={class:"viewer"},ld={key:0,class:"viewer-img-wrap"},rd=["src"],nd={key:1,class:"viewer-loading"},td=a.defineComponent({__name:"CertificatePreview",props:{visible:{type:Boolean},versions:{}},emits:["update:visible"],setup(l,{emit:n}){const r=l,t=n,s=a.ref(""),u=a.ref(""),k=a.computed(()=>(r.versions||[]).find(w=>String(w.versionId)===String(s.value))),f=a.ref({}),v=a.ref(""),y=a.ref("证书附件.pdf"),c=()=>{try{Object.values(f.value||{}).forEach(w=>{w&&URL.revokeObjectURL(w)}),v.value&&URL.revokeObjectURL(v.value)}catch{}f.value={},v.value=""},E=async w=>{if(!w||w.fileType==="pdf")return;const Y=Array.isArray(w.images)?w.images:[];for(const _ of Y){const A=_==null?void 0:_.url;if(!(!A||f.value[A]))try{const Z=await L.downloadAvatarApi({url:A}),S=URL.createObjectURL(Z.data);f.value={...f.value,[A]:S}}catch{}}},N=async w=>{var _;if(!w||w.fileType!=="pdf"){v.value="";return}const Y=w.sourceUrl||"";if(!Y){v.value="";return}if(v.value){try{URL.revokeObjectURL(v.value)}catch{}v.value=""}try{console.log("[CertificatePreview] 下载PDF附件:",{url:Y,versionId:w==null?void 0:w.versionId,certNo:w==null?void 0:w.certNo});const A=await L.downloadAvatarApi({url:Y});console.log("[CertificatePreview] PDF响应:",{url:Y,status:A==null?void 0:A.status,size:(_=A==null?void 0:A.data)==null?void 0:_.size});const Z=URL.createObjectURL(A.data);v.value=Z;const S=w.certNo?String(w.certNo):"";y.value=S?`${S}.pdf`:"证书附件.pdf"}catch(A){console.error("[CertificatePreview] PDF加载失败:",{url:Y,error:A}),v.value=""}};a.watch(()=>r.visible,async w=>{var _;if(!w){c();return}const Y=(_=r.versions)==null?void 0:_[0];s.value=(Y==null?void 0:Y.versionId)||"",await E(Y),await N(Y)},{immediate:!0}),a.watch(()=>s.value,async()=>{var Y,_;const w=k.value;if(!w){u.value="",v.value="";return}if(w.fileType==="pdf"){u.value="",await N(w);return}v.value="",u.value=((_=(Y=w.images)==null?void 0:Y[0])==null?void 0:_.url)||"",await E(w)},{immediate:!0});const O=()=>{t("update:visible",!1),c()};return a.onBeforeUnmount(()=>{c()}),(w,Y)=>{const _=a.resolveComponent("el-empty"),A=a.resolveComponent("el-tab-pane"),Z=a.resolveComponent("el-tabs"),S=a.resolveComponent("el-button"),$=a.resolveComponent("el-dialog");return a.openBlock(),a.createBlock($,{"model-value":w.visible,title:"证书附件预览",width:"1100px","close-on-click-modal":!1,onClose:O},{footer:a.withCtx(()=>[a.createVNode(S,{id:"themeBorderButton",onClick:O},{default:a.withCtx(()=>Y[1]||(Y[1]=[a.createTextVNode("关闭")])),_:1,__:[1]})]),default:a.withCtx(()=>[w.versions&&w.versions.length>0?(a.openBlock(),a.createBlock(Z,{key:0,modelValue:s.value,"onUpdate:modelValue":Y[0]||(Y[0]=T=>s.value=T),type:"card",class:"cert-version-tabs"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(w.versions,T=>(a.openBlock(),a.createBlock(A,{key:T.versionId,name:T.versionId,label:T.label},{default:a.withCtx(()=>[a.createElementVNode("div",Ku,[T.fileType==="pdf"?(a.openBlock(),a.createElementBlock("div",Yu,[v.value?(a.openBlock(),a.createBlock(rl.SsFilePreview,{key:1,fileName:y.value,blobUrl:v.value},null,8,["fileName","blobUrl"])):(a.openBlock(),a.createBlock(_,{key:0,description:"加载中"}))])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",Gu,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(T.images||[],x=>(a.openBlock(),a.createElementBlock("div",{key:x.url,class:a.normalizeClass(["thumb",{active:x.url===u.value}]),onClick:g=>u.value=x.url},[a.createElementVNode("div",Ju,[f.value[x.url]?(a.openBlock(),a.createElementBlock("img",{key:0,src:f.value[x.url]},null,8,Zu)):(a.openBlock(),a.createElementBlock("div",Qu,"加载中"))]),a.createElementVNode("div",ed,a.toDisplayString(x.name),1)],10,Xu))),128))]),a.createElementVNode("div",ad,[u.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[f.value[u.value]?(a.openBlock(),a.createElementBlock("div",ld,[a.createElementVNode("img",{class:"viewer-img",src:f.value[u.value]},null,8,rd)])):(a.openBlock(),a.createElementBlock("div",nd,"加载中"))],64)):(a.openBlock(),a.createBlock(_,{key:0,description:"暂无图片"}))])],64))])]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])):(a.openBlock(),a.createBlock(_,{key:1,description:"暂无可预览的证书附件"}))]),_:1},8,["model-value"])}}}),od=Fl._export_sfc(td,[["__scopeId","data-v-a53c8183"]]),id={class:"ocr-candidate-wrap"},sd={class:"ocr-candidate-left"},cd={key:1},ud={key:0},dd={key:1},pd={key:2},fd={key:3},hd={key:0,class:"ocr-candidate-right"},vd={class:"ocr-candidate-actions"},md={key:1},yd={class:"dialog-footer"},gd={__name:"OCRCandidateDialog",props:{visible:{type:Boolean,default:!1},candidates:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},nameProp:{type:String,default:""},mfrProp:{type:String,default:""}},emits:["update:visible","submit","preview-file"],setup(l,{emit:n}){const r=(g=[])=>{const H=[],W=ae=>{(ae||[]).forEach(ge=>{if(!ge)return;const Oe=ge.children||ge.childrens||ge.columns;Array.isArray(Oe)&&Oe.length>0?W(Oe):H.push(ge)})};return W(g),H},t=l,s=n,u=a.computed(()=>{var g;return((g=N.value)==null?void 0:g.allowAdd)!==!1}),k=a.computed(()=>{var g;return((g=N.value)==null?void 0:g.allowReplace)!==!1}),f=g=>{if(!g)return[];if(Array.isArray(g))return g;if(typeof g=="string")try{const H=JSON.parse(g);return Array.isArray(H)?H:[]}catch{return[]}return[]},v=g=>{s("preview-file",g)},y=a.ref([]),c=a.ref(0),E=a.ref("");a.watch(()=>t.candidates,g=>{var H,W;y.value=(g||[]).map(ae=>({...ae,...(ae==null?void 0:ae.ocrRow)||{},selectedTargetId:(ae==null?void 0:ae.selectedTargetId)||"",__decision:ae==null?void 0:ae.__decision})),c.value=0,E.value=((W=(H=y.value)==null?void 0:H[0])==null?void 0:W.selectedTargetId)||""},{immediate:!0,deep:!0}),a.watch(()=>t.visible,g=>{var H,W;g&&(c.value=0,E.value=((W=(H=y.value)==null?void 0:H[0])==null?void 0:W.selectedTargetId)||"")});const N=a.computed(()=>{var H;const g=Number(c.value||0);return((H=y.value||[])==null?void 0:H[g])||null}),O=a.computed(()=>(r(t.columns||[])||[]).filter(W=>W&&W.prop).filter(W=>W.type!=="operate"&&W.label!=="操作"&&W.prop!=="operate")),w=a.computed(()=>O.value.filter(g=>g.label!=="证书附件"&&g.prop!=="证书附件")),Y=g=>{if(!g)return;const H=(y.value||[]).findIndex(W=>(W==null?void 0:W.idx)===(g==null?void 0:g.idx));H>-1&&(c.value=H,E.value=(g==null?void 0:g.selectedTargetId)||"")},_=g=>{if(!g){E.value="";return}E.value=String((g==null?void 0:g.id)??"")},A=(g,H="")=>{const W=Number(c.value||0),ae=y.value||[],ge=ae[W];ge&&(ge.__decision=g,ge.selectedTargetId=H,E.value=H,y.value=[...ae])},Z=()=>A("skip",""),S=()=>A("add",""),$=()=>{if(!E.value){Wa.ElMessage.warning("请先选择要替换的目标记录");return}A("replace",E.value)},T=()=>{s("update:visible",!1)},x=()=>{const g=y.value||[];if(g.find(W=>(W==null?void 0:W.__decision)==="replace"&&!(W!=null&&W.selectedTargetId))){Wa.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}s("submit",g),s("update:visible",!1)};return(g,H)=>{const W=a.resolveComponent("el-table-column"),ae=a.resolveComponent("svg-icon"),ge=a.resolveComponent("el-table"),Oe=a.resolveComponent("el-button"),we=a.resolveComponent("el-alert");return a.openBlock(),a.createBlock(sr.ssDialog,{title:"OCR候选匹配",visible:l.visible,"close-on-click-modal":!1,width:"90%",style:{maxWidth:"1200px"},onBeforeDestroy:T},{default:a.withCtx(()=>{var te,me;return[a.createElementVNode("div",id,[a.createElementVNode("div",sd,[H[0]||(H[0]=a.createElementVNode("div",{class:"ocr-candidate-title"},"待处理OCR行(可跳过)",-1)),a.createVNode(ge,{data:y.value,border:"",stripe:"","max-height":"300",style:{width:"100%"},"highlight-current-row":"",onCurrentChange:Y},{default:a.withCtx(()=>[a.createVNode(W,{type:"index",label:"序号",width:"60"}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(w.value,J=>(a.openBlock(),a.createBlock(W,{key:J.prop,label:J.label,prop:J.prop,"min-width":J.minWidth||160},{default:a.withCtx(({row:ue})=>[J.label==="证书附件"||J.prop==="证书附件"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[f(ue==null?void 0:ue[J.prop]).length>0?(a.openBlock(),a.createBlock(ae,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:a.withModifiers(Ye=>v({row:ue,prop:J.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(a.openBlock(),a.createElementBlock("span",cd,"-"))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString((ue==null?void 0:ue[J.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128)),a.createVNode(W,{label:"候选数",width:"90",fixed:"right"},{default:a.withCtx(({row:J})=>[a.createTextVNode(a.toDisplayString(((J==null?void 0:J.candidates)||[]).length),1)]),_:1}),a.createVNode(W,{label:"处理状态",width:"120",fixed:"right"},{default:a.withCtx(({row:J})=>[(J==null?void 0:J.__decision)==="replace"?(a.openBlock(),a.createElementBlock("span",ud,"替换")):(J==null?void 0:J.__decision)==="add"?(a.openBlock(),a.createElementBlock("span",dd,"新增")):(J==null?void 0:J.__decision)==="skip"?(a.openBlock(),a.createElementBlock("span",pd,"跳过")):(a.openBlock(),a.createElementBlock("span",fd,"未处理"))]),_:1})]),_:1},8,["data"])]),y.value&&y.value.length>0?(a.openBlock(),a.createElementBlock("div",hd,[H[4]||(H[4]=a.createElementVNode("div",{class:"ocr-candidate-title"},"当前行候选记录(同编号)",-1)),a.createElementVNode("div",vd,[a.createVNode(Oe,{id:"themeBorderButton",onClick:Z},{default:a.withCtx(()=>H[1]||(H[1]=[a.createTextVNode("跳过本行")])),_:1,__:[1]}),a.createVNode(Oe,{id:"themeBorderButton",onClick:S,disabled:!u.value},{default:a.withCtx(()=>H[2]||(H[2]=[a.createTextVNode("新增本行")])),_:1,__:[2]},8,["disabled"]),a.createVNode(Oe,{class:"ok-button",id:"themeButton",onClick:$,disabled:!k.value||!E.value},{default:a.withCtx(()=>H[3]||(H[3]=[a.createTextVNode("替换选中记录")])),_:1,__:[3]},8,["disabled"])]),(((te=N.value)==null?void 0:te.candidates)||[]).length===0?(a.openBlock(),a.createBlock(we,{key:0,title:"该编号暂无候选记录,可选择“新增本行”或“跳过本行”。",type:"info",closable:!1,"show-icon":"",style:{margin:"8px 0"}})):a.createCommentVNode("",!0),a.createVNode(ge,{data:((me=N.value)==null?void 0:me.candidates)||[],border:"",stripe:"","max-height":"300",style:{width:"100%"},onCurrentChange:_,"highlight-current-row":""},{default:a.withCtx(()=>[a.createVNode(W,{type:"index",label:"序号",width:"60"}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(O.value,J=>(a.openBlock(),a.createBlock(W,{key:J.prop,label:J.label,prop:J.prop,"min-width":J.minWidth||160},{default:a.withCtx(({row:ue})=>[J.label==="证书附件"||J.prop==="证书附件"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[f(ue==null?void 0:ue[J.prop]).length>0?(a.openBlock(),a.createBlock(ae,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:a.withModifiers(Ye=>v({row:ue,prop:J.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(a.openBlock(),a.createElementBlock("span",md,"-"))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString((ue==null?void 0:ue[J.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128))]),_:1},8,["data"])])):a.createCommentVNode("",!0)])]}),footer:a.withCtx(()=>[a.createElementVNode("div",yd,[a.createVNode(Oe,{id:"themeBorderButton",onClick:T},{default:a.withCtx(()=>H[5]||(H[5]=[a.createTextVNode("取消")])),_:1,__:[5]}),a.createVNode(Oe,{class:"ok-button",id:"themeButton",onClick:x},{default:a.withCtx(()=>H[6]||(H[6]=[a.createTextVNode("提交已处理")])),_:1,__:[6]})])]),_:1},8,["visible"])}}},bd=Fl._export_sfc(gd,[["__scopeId","data-v-89e0489c"]]),kd={class:"ocr-preview-content"},xd={class:"ocr-preview-tip"},wd={class:"ocr-preview-table"},_d={style:{display:"flex","align-items":"center",gap:"8px"}},Cd={class:"dialog-footer"},Ed={__name:"OCRResultPreviewDialog",props:{visible:{type:Boolean,default:!1},ocrPreviewData:{type:Array,default:()=>[]},ocrPreviewColumns:{type:Array,default:()=>[]},ocrSelectedFields:{type:Array,default:()=>[]}},emits:["update:visible","update:ocrPreviewData","update:ocrSelectedFields","confirm","fieldChange"],setup(l,{emit:n}){const r=l,t=n,s=a.ref([]),u=a.ref([]),k=a.ref([]);a.watch(()=>r.visible,O=>{O&&(s.value=JSON.parse(JSON.stringify(r.ocrPreviewData)),u.value=JSON.parse(JSON.stringify(r.ocrPreviewColumns)),k.value=[...r.ocrSelectedFields])});const f=(O,w)=>{const Y=[...k.value];if(w)Y.includes(O)||Y.push(O);else{const _=Y.indexOf(O);_>-1&&Y.splice(_,1)}k.value=Y,t("update:ocrSelectedFields",Y)},v=(O,w,Y)=>{t("fieldChange",{rowIndex:O,prop:w,value:Y})},y=()=>{t("update:ocrPreviewData",s.value),t("confirm",s.value),t("update:visible",!1)},c=()=>{t("update:visible",!1)},E=O=>typeof O!="number"?"-":`${(O*100).toFixed(1)}%`,N=O=>typeof O!="number"?"#606266":O>=.9?"#67c23a":O>=.7?"#e6a23c":"#f56c6c";return(O,w)=>{const Y=a.resolveComponent("el-alert"),_=a.resolveComponent("el-table-column"),A=a.resolveComponent("el-checkbox"),Z=a.resolveComponent("el-input"),S=a.resolveComponent("el-table"),$=a.resolveComponent("el-button");return a.openBlock(),a.createBlock(sr.ssDialog,{title:"OCR识别结果预览",visible:l.visible,onBeforeDestroy:c,width:"90%",style:{maxWidth:"1200px"}},{default:a.withCtx(()=>[a.createElementVNode("div",kd,[a.createElementVNode("div",xd,[a.createVNode(Y,{title:"请核对识别结果。系统将按 编号+名称+制造厂 规则匹配并替换;未唯一命中但有编号的,将进入候选选择;无编号则直接新增。",type:"info",closable:!1,"show-icon":""})]),a.createElementVNode("div",wd,[a.createVNode(S,{data:s.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:a.withCtx(()=>[a.createVNode(_,{type:"index",label:"序号",width:"60",fixed:""}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(u.value,T=>(a.openBlock(),a.createBlock(_,{key:T.prop,prop:T.prop,"min-width":T.minWidth||230,"class-name":T.isAccuracy?"accuracy-column":""},{header:a.withCtx(()=>[a.createElementVNode("div",_d,[T.isAccuracy?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(A,{key:0,"model-value":k.value.includes(T.prop),onChange:x=>f(T.prop,x),onClick:w[0]||(w[0]=a.withModifiers(()=>{},["stop"]))},null,8,["model-value","onChange"])),a.createElementVNode("span",null,a.toDisplayString(T.label),1)])]),default:a.withCtx(({row:x,$index:g})=>[T.isAccuracy?(a.openBlock(),a.createElementBlock("span",{key:0,class:"accuracy-value",style:a.normalizeStyle({color:N(x[T.prop]),fontWeight:500})},a.toDisplayString(E(x[T.prop])),5)):(a.openBlock(),a.createBlock(Z,{key:1,modelValue:x[T.prop],"onUpdate:modelValue":H=>x[T.prop]=H,size:"small",placeholder:"请输入"+T.label,onChange:H=>v(g,T.prop,H)},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"]))]),_:2},1032,["prop","min-width","class-name"]))),128))]),_:1},8,["data"])])])]),footer:a.withCtx(()=>[a.createElementVNode("div",Cd,[a.createVNode($,{onClick:c,id:"themeBorderButton"},{default:a.withCtx(()=>w[1]||(w[1]=[a.createTextVNode("取消")])),_:1,__:[1]}),a.createVNode($,{class:"ok-button",onClick:y,id:"themeButton"},{default:a.withCtx(()=>w[2]||(w[2]=[a.createTextVNode("确认")])),_:1,__:[2]})])]),_:1},8,["visible"])}}},Sd=Fl._export_sfc(Ed,[["__scopeId","data-v-df66eb1f"]]),xt=l=>{var t;let n=l;(n==null?void 0:n[0])==="("&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1));let r=(t=Aa.analyzeSplitToContent(n,","))==null?void 0:t.map(s=>((s==null?void 0:s[(s==null?void 0:s.length)-1])===","&&(s=s==null?void 0:s.slice(0,(s==null?void 0:s.length)-1)),ri(s)));return r=r==null?void 0:r.join(","),r};let Va="$R",js="[Any]";const Dd=l=>{var k,f;let n={},r=l==null?void 0:l[0],t=(f=(k=r==null?void 0:r.replace("{",Va))==null?void 0:k.split(Va))==null?void 0:f[0];(t==null?void 0:t[0])==="*"&&(t=t==null?void 0:t.slice(1,t==null?void 0:t.length)),t=t==null?void 0:t.split(":"),n.group=t;let s=l==null?void 0:l[1],u=s==null?void 0:s.replaceAll(js,"");return(u==null?void 0:u[0])==="$"&&(u=u==null?void 0:u.slice(1,u==null?void 0:u.length)),n.filter=u,n},Bd=l=>{var c,E,N,O,w,Y,_;let n=[],r=[],t=l==null?void 0:l.map(A=>{var S;let Z=(S=Aa.analyzeSplitToContent(A,"@"))==null?void 0:S[0];return(Z==null?void 0:Z[(Z==null?void 0:Z.length)-1])==="@"&&(Z=Z==null?void 0:Z.slice(0,(Z==null?void 0:Z.length)-1)),Z}),s="",u=Aa.analyzeSplitToContent(t==null?void 0:t[0],":");r=(c=u==null?void 0:u.filter(A=>!(A!=null&&A.includes("{"))&&!(A!=null&&A.includes("["))))==null?void 0:c.join(""),(r==null?void 0:r[(r==null?void 0:r.length)-1])===":"&&(r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1)),(r==null?void 0:r[0])==="*"&&(r=r==null?void 0:r.slice(1,r==null?void 0:r.length)),r=r==null?void 0:r.split(":");let k=u==null?void 0:u.filter(A=>(A==null?void 0:A.includes("{"))||(A==null?void 0:A.includes("["))),f=(N=k==null?void 0:k[0])==null?void 0:N.slice(1,((E=k==null?void 0:k[0])==null?void 0:E.length)-1);f=(O=Aa.analyzeSplitToContent(f,","))==null?void 0:O.map(A=>((A==null?void 0:A[(A==null?void 0:A.length)-1])===","&&(A=A==null?void 0:A.slice(0,(A==null?void 0:A.length)-1)),A));let v="@"+((w=Aa.analyzeSplitToContent(l==null?void 0:l[0],"@"))==null?void 0:w[1]);((Y=Aa.analyzeSplitToContent(v,":"))==null?void 0:Y.length)>1&&(n=Ct((_=Aa.analyzeSplitToContent(v,":"))==null?void 0:_[1]),n=[n]);let y=[];return f==null||f.forEach((A,Z)=>{var Oe,we,te,me,J,ue,Ye,Sa,oe,D,ne,ve,se,xe,ta,wa,Ia,le,ra,Ve,_a,Fe,_e,ze,Ge,Ba,Ja,R,j,G,V,K,Ne,Q,ke,pe,je,Pe,ca,ka,Ie,fa,Re,Ca,Ue,ba,ce;let S=(Oe=A==null?void 0:A.split("=="))==null?void 0:Oe[0],$=(we=A==null?void 0:A.split("=="))==null?void 0:we[1],T=[],x=[],g=[],H=[],W="Input",ae=[],ge=[];if((A==null?void 0:A[0])!=="{"){if(($==null?void 0:$[0])==="$")$=$==null?void 0:$.slice(1,$==null?void 0:$.length),T=(me=(te=$==null?void 0:$.split("*"))==null?void 0:te[0])==null?void 0:me.split(":"),x=(D=(oe=(Sa=(Ye=(ue=(J=$==null?void 0:$.split("*"))==null?void 0:J[1])==null?void 0:ue.replace("{",Va))==null?void 0:Ye.split(Va))==null?void 0:Sa[0])==null?void 0:oe.split(":"))==null?void 0:D.filter(xa=>xa!==""),g=(ve=(ne=$==null?void 0:$.replace("{",Va))==null?void 0:ne.split(Va))==null?void 0:ve[1],g=g==null?void 0:g.replaceAll("}",""),g=g==null?void 0:g.split(":"),W="Select";else if(((se=Aa.analyzeSplitToContent(A,"="))==null?void 0:se.length)>1){let xa=(xe=S==null?void 0:S.split("="))==null?void 0:xe[1];if(S=(ta=S==null?void 0:S.split("="))==null?void 0:ta[0],W="Select",!(A!=null&&A.includes("||")))xa=(wa=xa==null?void 0:xa.split("/"))==null?void 0:wa.map(ye=>((ye==null?void 0:ye[(ye==null?void 0:ye.length)-1])==="/"&&(ye=ye==null?void 0:ye.slice(0,(ye==null?void 0:ye.length)-1)),ye)),H=xa==null?void 0:xa.map(ye=>({label:ye==null?void 0:ye.replaceAll("'",""),value:ye==null?void 0:ye.replaceAll("'","")}));else{let ye=[];(Ve=(ra=(le=(Ia=A==null?void 0:A.replace("=",Va))==null?void 0:Ia.split(Va))==null?void 0:le[1])==null?void 0:ra.split("||"))==null||Ve.forEach(Da=>{var Ze,Je,Ee;ae.push((Je=(Ze=Da==null?void 0:Da.split("@Filter"))==null?void 0:Ze[0])==null?void 0:Je.split("/")),ye.push((Ee=Da==null?void 0:Da.split("@Filter"))==null?void 0:Ee[1])}),ge=ye==null?void 0:ye.map(Da=>(Da=Da==null?void 0:Da.slice(1,(Da==null?void 0:Da.length)-1),Da))}}else if(A!=null&&A.includes("@")&&!(A!=null&&A.includes("||"))){S=(Ge=(ze=(_e=(Fe=(_a=S==null?void 0:S.replace("(@",Va))==null?void 0:_a.split(Va))==null?void 0:Fe[0])==null?void 0:_e.replace("@",Va))==null?void 0:ze.split(Va))==null?void 0:Ge[0];let xa=A!=null&&A.includes("(@")?"(@"+((Ja=(Ba=A==null?void 0:A.replace("(@",Va))==null?void 0:Ba.split(Va))==null?void 0:Ja[1]):"@"+((j=(R=A==null?void 0:A.replace("@",Va))==null?void 0:R.split(Va))==null?void 0:j[1]);if(xa=(G=xt(xa))==null?void 0:G.split(","),xa!=null&&xa.find(ye=>ye==null?void 0:ye.includes("@Type"))){let ye=(V=xa==null?void 0:xa.find(Da=>Da==null?void 0:Da.includes("@Type")))==null?void 0:V.split("=");ye!=null&&ye.includes("File")&&(W="Upload"),ye!=null&&ye.includes("Date")&&(W="Date"),ye!=null&&ye.includes("DateTime")&&(W="DateTime"),ye!=null&&ye.includes("Time")&&(W="Time")}}y.push({prop:S,label:S,value:"",menuPath:T,groups:x,columns:g,width:f==null?void 0:f.length,options:H,type:W,allContents:ae,filterContents:ge})}else{s=s+"@"+((K=Aa.analyzeSplitToContent(A,"@"))==null?void 0:K[1]);let xa=(Ne=Aa.analyzeSplitToContent(A,"@"))==null?void 0:Ne[0];(xa==null?void 0:xa[(xa==null?void 0:xa.length)-1])==="@"&&(xa=xa==null?void 0:xa.slice(0,(xa==null?void 0:xa.length)-1));let ye=(Q=xa==null?void 0:xa.split("=="))==null?void 0:Q[0],Da=(ke=xa==null?void 0:xa.split("=="))==null?void 0:ke[1],Ze=(je=(pe=Da==null?void 0:Da.split("*"))==null?void 0:pe[0])==null?void 0:je.replace(js,"");(Ze==null?void 0:Ze[0])==="$"&&(Ze=Ze==null?void 0:Ze.slice(1,Ze==null?void 0:Ze.length)),Ze=Aa.analyzeSplitToContent(Ze,"$"),Ze=(Pe=Ze==null?void 0:Ze.map((Je,Ee)=>{var be;return Ee===0&&(Ze==null?void 0:Ze.length)>1&&(Je=(be=Je==null?void 0:Je.split(":"))==null?void 0:be[0]),(Ze==null?void 0:Ze.length)>1&&Ee===(Ze==null?void 0:Ze.length)-1&&(Je=Je+":"),Je}))==null?void 0:Pe.join(":"),T=Ze==null?void 0:Ze.split(":"),x=(Ca=(Re=(fa=(Ie=(ka=(ca=Da==null?void 0:Da.split("*"))==null?void 0:ca[1])==null?void 0:ka.replace("{",Va))==null?void 0:Ie.split(Va))==null?void 0:fa[0])==null?void 0:Re.split(":"))==null?void 0:Ca.filter(Je=>Je!==""),g=(ba=(Ue=Da==null?void 0:Da.replace("{",Va))==null?void 0:Ue.split(Va))==null?void 0:ba[1],g=g==null?void 0:g.replaceAll("}",""),ye=ye==null?void 0:ye.slice(1,(ye==null?void 0:ye.length)-1),g=g==null?void 0:g.split(","),W="Select",(ce=ye==null?void 0:ye.split(","))==null||ce.forEach((Je,Ee)=>{var be,Se;y.push({prop:Je,label:Je,value:"",menuPath:T,groups:x,columns:(be=g==null?void 0:g[Ee])==null?void 0:be.split(":"),width:(Se=ye==null?void 0:ye.split(","))==null?void 0:Se.length,type:W})})}}),{groupName:r,formContents:y,contents:n,filter:s}},Ct=l=>{var t,s;let n=[],r=l.slice(1,(l==null?void 0:l.length)-1);if((r==null?void 0:r[0])!=="[")(t=Aa.analyzeSplitToContent(r,","))==null||t.forEach(u=>{(u==null?void 0:u[(u==null?void 0:u.length)-1])===","&&(u=u.slice(0,(u==null?void 0:u.length)-1)),n.push(u??"")});else{let u=[];(s=Aa.analyzeSplitToContent(r,","))==null||s.forEach(k=>{(k==null?void 0:k[(k==null?void 0:k.length)-1])===","&&(k=k==null?void 0:k.slice(0,(k==null?void 0:k.length)-1)),u.push(Ct(k))}),n=u}return n},li=(l,n)=>{var Y,_,A,Z,S,$,T,x,g,H,W,ae,ge,Oe,we,te,me,J,ue,Ye,Sa,oe,D,ne,ve,se,xe,ta,wa,Ia,le,ra,Ve,_a,Fe,_e,ze,Ge,Ba,Ja,R,j,G,V,K,Ne,Q,ke,pe,je,Pe,ca,ka,Ie,fa,Re,Ca,Ue,ba,ce,xa,ye,Da,Ze,Je;let r,t=[],s=[],u=[],k=[],f=[],v=[],y="Input",c,E="",N="",O=[],w="";if(l!=null&&l.includes("@Pam")||l!=null&&l.includes("==")||l!=null&&l.includes("="))if(l!=null&&l.includes("@Pam")){let Ee=Aa.analyzeSplitToContent(l,"=");if((Ee==null?void 0:Ee.length)>1){l=Ee==null?void 0:Ee[0],l=l==null?void 0:l.slice(0,(l==null?void 0:l.length)-1);let ha=Ee==null?void 0:Ee[(Ee==null?void 0:Ee.length)-1];(ha==null?void 0:ha[0])==="&"&&(ha=ha==null?void 0:ha.slice(1,ha==null?void 0:ha.length)),N=(_=(Y=ha==null?void 0:ha.replace("(",Va))==null?void 0:Y.split(Va))==null?void 0:_[0];let oa=(Z=(A=ha==null?void 0:ha.replace(")",Va))==null?void 0:A.split(Va))==null?void 0:Z[0];oa=($=(S=oa==null?void 0:oa.replace("(",Va))==null?void 0:S.split(Va))==null?void 0:$[1],(oa==null?void 0:oa[0])==="{"&&(oa=oa==null?void 0:oa.slice(1,oa==null?void 0:oa.length)),(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)),O=oa==null?void 0:oa.split(",");let Qa=(x=(T=ha==null?void 0:ha.replace(")",Va))==null?void 0:T.split(Va))==null?void 0:x[1];Qa&&Qa!==""&&(w=xt(Qa))}r=(H=(g=l==null?void 0:l.replace("@Pam",Va))==null?void 0:g.split(Va))==null?void 0:H[0];let be=(ae=(W=l==null?void 0:l.replace("@Pam",Va))==null?void 0:W.split(Va))==null?void 0:ae[1];be=be==null?void 0:be.slice(1,(be==null?void 0:be.length)-1),be=(ge=Aa.analyzeSplitToContent(be,","))==null?void 0:ge.map(ha=>(ha="@"+ha,ha));let Se=be==null?void 0:be.find(ha=>ha==null?void 0:ha.includes("@Type"));Se!=null&&Se.includes("File")&&(y="Upload"),Se!=null&&Se.includes("Date")&&(y="Date"),Se!=null&&Se.includes("DateTime")&&(y="DateTime"),Se!=null&&Se.includes("Time")&&(y="Time"),c=be==null?void 0:be.find(ha=>ha==null?void 0:ha.includes("@IdentName")),c=c?(we=(Oe=c==null?void 0:c.replace("=",Va))==null?void 0:Oe.split(Va))==null?void 0:we[1]:r}else{if(r=(te=l==null?void 0:l.split("=="))==null?void 0:te[0],c=(me=l==null?void 0:l.split("=="))==null?void 0:me[0],l!=null&&l.includes("=")&&!(l!=null&&l.includes("=="))&&!((Ye=(ue=(J=l==null?void 0:l.replace("=",Va))==null?void 0:J.split(Va))==null?void 0:ue[1])!=null&&Ye.includes("||")))if(r=(Sa=l==null?void 0:l.split("="))==null?void 0:Sa[0],c=r,l!=null&&l.includes("(@")||l!=null&&l.includes("@")){if(l!=null&&l.includes("(@")){let be=(oe=l==null?void 0:l.split("(@"))==null?void 0:oe[1];be=be==null?void 0:be.slice(0,(be==null?void 0:be.length)-1),be=(ne=(D=be==null?void 0:be.replace("(",Va))==null?void 0:D.split(Va))==null?void 0:ne[1],be=be==null?void 0:be.slice(0,(be==null?void 0:be.length)-1),u==null||u.push(be),l=(ve=l==null?void 0:l.split("(@"))==null?void 0:ve[0]}else{let be=(se=l==null?void 0:l.split("@"))==null?void 0:se[1];be=be==null?void 0:be.slice(0,(be==null?void 0:be.length)-1),be=(ta=(xe=be==null?void 0:be.replace("(",Va))==null?void 0:xe.split(Va))==null?void 0:ta[1],be=be==null?void 0:be.slice(0,(be==null?void 0:be.length)-1),u==null||u.push(be),l=(wa=l==null?void 0:l.split("@"))==null?void 0:wa[0]}let Ee=(le=(Ia=l==null?void 0:l.split("="))==null?void 0:Ia[1])==null?void 0:le.split("/");s.push(Ee)}else t=(Ve=Aa.analyzeSplitToContent((ra=l==null?void 0:l.split("="))==null?void 0:ra[1],"/"))==null?void 0:Ve.map(Ee=>((Ee==null?void 0:Ee[(Ee==null?void 0:Ee.length)-1])==="/"&&(Ee=Ee==null?void 0:Ee.slice(0,(Ee==null?void 0:Ee.length)-1)),Ee)),t=t==null?void 0:t.map(Ee=>({label:Ee==null?void 0:Ee.replaceAll("'",""),value:Ee==null?void 0:Ee.replaceAll("'","")}));else if((_e=(Fe=(_a=l==null?void 0:l.replace("=",Va))==null?void 0:_a.split(Va))==null?void 0:Fe[1])!=null&&_e.includes("||")){r=(ze=l==null?void 0:l.split("="))==null?void 0:ze[0],c=(Ge=l==null?void 0:l.split("="))==null?void 0:Ge[0];let Ee=[];(j=(R=(Ja=(Ba=l==null?void 0:l.replace("=",Va))==null?void 0:Ba.split(Va))==null?void 0:Ja[1])==null?void 0:R.split("||"))==null||j.forEach(be=>{var Se,ha,oa;s.push((ha=(Se=be==null?void 0:be.split("@Filter"))==null?void 0:Se[0])==null?void 0:ha.split("/")),Ee.push((oa=be==null?void 0:be.split("@Filter"))==null?void 0:oa[1])}),u=Ee==null?void 0:Ee.map(be=>(be=be==null?void 0:be.slice(1,(be==null?void 0:be.length)-1),be))}else{let Ee=l==null?void 0:l.split("=="),be=(G=Ee==null?void 0:Ee.filter(Se=>(Se==null?void 0:Se[0])==="$"))==null?void 0:G[0];if(!(be!=null&&be.includes("&"))){let Se=(V=be==null?void 0:be.replace("*",Va))==null?void 0:V.split(Va),ha=(Se==null?void 0:Se[0])===""?n==null?void 0:n.value:Se==null?void 0:Se[0];ha=ha==null?void 0:ha.replaceAll("[Any]",""),(ha==null?void 0:ha[0])==="$"&&(ha=(K=ha==null?void 0:ha.slice(1,ha==null?void 0:ha.length))==null?void 0:K.replaceAll(":","/")),k=ha==null?void 0:ha.split("/");let oa=(Q=(Ne=Se==null?void 0:Se[1])==null?void 0:Ne.replace("{",Va))==null?void 0:Q.split(Va),Qa=oa==null?void 0:oa[0];(Qa==null?void 0:Qa[(Qa==null?void 0:Qa.length)-1])===":"&&(Qa=Qa==null?void 0:Qa.slice(0,(Qa==null?void 0:Qa.length)-1)),f=Qa==null?void 0:Qa.split(":"),v=(Pe=(je=(pe=(ke=oa==null?void 0:oa[1])==null?void 0:ke.replace("}",Va))==null?void 0:pe.split(Va))==null?void 0:je[0])==null?void 0:Pe.split(":");let Dl=(Ie=(ka=(ca=oa==null?void 0:oa[(oa==null?void 0:oa.length)-1])==null?void 0:ca.replace("}",Va))==null?void 0:ka.split(Va))==null?void 0:Ie[1];Dl&&Dl!==""&&(E=xt(Dl))}if(Ee!=null&&Ee.some(Se=>(Se==null?void 0:Se[0])==="&")){let Se=(fa=Ee==null?void 0:Ee.filter(Qa=>(Qa==null?void 0:Qa[0])==="&"))==null?void 0:fa[0];(Se==null?void 0:Se[0])==="&"&&(Se=Se==null?void 0:Se.slice(1,Se==null?void 0:Se.length)),N=(Ca=(Re=Se==null?void 0:Se.replace("(",Va))==null?void 0:Re.split(Va))==null?void 0:Ca[0];let ha=(ba=(Ue=Se==null?void 0:Se.replace(")",Va))==null?void 0:Ue.split(Va))==null?void 0:ba[0];ha=(xa=(ce=ha==null?void 0:ha.replace("(",Va))==null?void 0:ce.split(Va))==null?void 0:xa[1],(ha==null?void 0:ha[0])==="{"&&(ha=ha==null?void 0:ha.slice(1,ha==null?void 0:ha.length)),(ha==null?void 0:ha[(ha==null?void 0:ha.length)-1])==="}"&&(ha=ha==null?void 0:ha.slice(0,(ha==null?void 0:ha.length)-1)),O=ha==null?void 0:ha.split(",");let oa=(Da=(ye=Se==null?void 0:Se.replace(")",Va))==null?void 0:ye.split(Va))==null?void 0:Da[1];oa&&oa!==""&&(w=xt(oa))}}y="Select"}else r=l,c=l;return r!=null&&r.includes("@Pam")&&(r=(Je=(Ze=l==null?void 0:l.replace("@Pam",Va))==null?void 0:Ze.split(Va))==null?void 0:Je[0],c=r),{label:r,prop:c,options:t,allContents:s,filterContents:u,menus:k,groups:f,words:v,align:"center",formType:y,filter:E,functionName:N,functionRelatedWords:O,calculatorFilter:w}},go=(l,n)=>{var t,s,u,k,f,v,y,c,E,N,O,w,Y,_,A,Z,S,$,T,x,g,H,W,ae,ge,Oe,we,te,me;let r=[];if((l==null?void 0:l[0])==="{"&&(l==null?void 0:l[(l==null?void 0:l.length)-1])==="}"&&!((k=(u=(s=(t=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1))==null?void 0:t.replace(":",Va))==null?void 0:s.split(Va))==null?void 0:u[0])!=null&&k.includes(","))){let J=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1),ue=(f=J==null?void 0:J.replace(":",Va))==null?void 0:f.split(Va);if(((v=Aa.analyzeSplitToContent(ue==null?void 0:ue[1],"="))==null?void 0:v.length)===1){let Ye=ue==null?void 0:ue[0],Sa=[];(E=Aa.analyzeSplitToContent((c=ue==null?void 0:ue[1])==null?void 0:c.slice(1,((y=ue==null?void 0:ue[1])==null?void 0:y.length)-1),","))==null||E.forEach(oe=>{var D,ne;(oe==null?void 0:oe[0])!=="{"?((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)),Sa.push((D=go(oe,n))==null?void 0:D[0])):((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)),Sa.push((ne=go(oe,n))==null?void 0:ne[0]))}),r==null||r.push({label:Ye,prop:Ye,children:Sa,align:"center"})}else{let Ye=[];if(((N=Aa.analyzeSplitToContent(J,"="))==null?void 0:N.length)>=2){let oe=(O=Aa.analyzeSplitToContent(J,"="))==null?void 0:O[1],D=(w=Aa.analyzeSplitToContent(oe,"/"))==null?void 0:w.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));Ye=D==null?void 0:D.map(ne=>(ne=Ct(ne),ne))}let Sa=($=(S=(Z=(A=(_=(Y=J==null?void 0:J.replace("{",Va))==null?void 0:Y.split(Va))==null?void 0:_[1])==null?void 0:A.replace("}",Va))==null?void 0:Z.split(Va))==null?void 0:S[0])==null?void 0:$.split(",");Sa==null||Sa.forEach((oe,D)=>{(Ye==null?void 0:Ye.length)>0&&D===0?r==null||r.push({label:oe,prop:oe,align:"center",formType:"Select",relatedContents:Ye==null?void 0:Ye.map(ne=>{let ve={};return Sa==null||Sa.forEach((se,xe)=>{ve[se]=ne==null?void 0:ne[xe]}),ve}),options:Ye==null?void 0:Ye.map(ne=>({label:ne==null?void 0:ne[0],value:ne==null?void 0:ne[0]})),mainKey:!0}):r==null||r.push({label:oe,prop:oe,align:"center"})})}}else if((l==null?void 0:l[0])==="{")if(((T=Aa.analyzeSplitToContent(l,"="))==null?void 0:T.length)===2&&((g=(x=Aa.analyzeSplitToContent(l,"="))==null?void 0:x[1])==null?void 0:g[0])==="["){let J=[];if(((H=Aa.analyzeSplitToContent(l,"="))==null?void 0:H.length)>=2){let Ye=(W=Aa.analyzeSplitToContent(l,"="))==null?void 0:W[1],Sa=(ae=Aa.analyzeSplitToContent(Ye,"/"))==null?void 0:ae.map(oe=>((oe==null?void 0:oe[(oe==null?void 0:oe.length)-1])==="/"&&(oe=oe==null?void 0:oe.slice(0,(oe==null?void 0:oe.length)-1)),oe));J=Sa==null?void 0:Sa.map(oe=>(oe=Ct(oe),oe))}let ue=(Oe=(ge=l==null?void 0:l.replace("}",Va))==null?void 0:ge.split(Va))==null?void 0:Oe[0];ue=(we=ue==null?void 0:ue.slice(1,ue==null?void 0:ue.length))==null?void 0:we.split(","),ue==null||ue.forEach((Ye,Sa)=>{(J==null?void 0:J.length)>0&&Sa===0?r==null||r.push({label:Ye,prop:Ye,align:"center",formType:"Select",relatedContents:J==null?void 0:J.map(oe=>{let D={};return ue==null||ue.forEach((ne,ve)=>{D[ne]=oe==null?void 0:oe[ve]}),D}),options:J==null?void 0:J.map(oe=>({label:oe==null?void 0:oe[0],value:oe==null?void 0:oe[0]})),mainKey:!0}):r==null||r.push({label:Ye,prop:Ye,align:"center"})})}else(te=Aa.analyzeSplitToContent(l,","))==null||te.forEach(J=>{var ue,Ye,Sa,oe,D,ne,ve,se,xe,ta,wa,Ia,le,ra,Ve,_a,Fe,_e,ze,Ge,Ba,Ja,R,j,G,V,K,Ne,Q,ke,pe,je,Pe,ca,ka,Ie,fa,Re,Ca,Ue,ba;if((J==null?void 0:J[(J==null?void 0:J.length)-1])===","&&(J=J==null?void 0:J.slice(0,(J==null?void 0:J.length)-1)),(J==null?void 0:J[0])==="{"){let ce=Aa.analyzeSplitToContent(J,"="),xa=ce==null?void 0:ce[(ce==null?void 0:ce.length)-1],ye=[],Da=[],Ze=[],Je=[],Ee=[],be=(ue=xa==null?void 0:xa.replace("*",Va))==null?void 0:ue.split(Va),Se=(be==null?void 0:be[0])===""?n==null?void 0:n.value:be==null?void 0:be[0];if(Se=Se==null?void 0:Se.replaceAll("[Any]",""),(Se==null?void 0:Se[(Se==null?void 0:Se.length)-1])===":"&&(Se=Se!=null&&Se.includes("(@")?((Ye=Se==null?void 0:Se.split("(@"))==null?void 0:Ye[0])+":":((Sa=Se==null?void 0:Se.split("@"))==null?void 0:Sa[0])+":"),(Se==null?void 0:Se[0])==="$"&&(Se=(oe=Se==null?void 0:Se.slice(1,Se==null?void 0:Se.length))==null?void 0:oe.replaceAll(":","/")),Se!=null&&Se.includes("$")){let Za=(D=Se==null?void 0:Se.split("$"))==null?void 0:D[0];Za=(ne=Za==null?void 0:Za.split("/"))==null?void 0:ne[0],Se=Za+"/"+((ve=Se==null?void 0:Se.split("$"))==null?void 0:ve[1])+"/"}(Se==null?void 0:Se[(Se==null?void 0:Se.length)-1])==="/"&&(Se==null?void 0:Se[(Se==null?void 0:Se.length)-2])==="/"&&(Se=Se==null?void 0:Se.slice(0,(Se==null?void 0:Se.length)-1)),ye=Se==null?void 0:Se.split("/");let ha=(xe=(se=be==null?void 0:be[1])==null?void 0:se.replace("{",Va))==null?void 0:xe.split(Va);if((Ia=(wa=(ta=be==null?void 0:be[1])==null?void 0:ta.split("(@"))==null?void 0:wa[0])!=null&&Ia.includes("&&")||(Ve=(ra=(le=be==null?void 0:be[1])==null?void 0:le.split("@"))==null?void 0:ra[0])!=null&&Ve.includes("&&")){let Za=(_a=be==null?void 0:be[1])!=null&&_a.includes("(@")?(ze=(_e=(Fe=be==null?void 0:be[1])==null?void 0:Fe.split("(@"))==null?void 0:_e[0])==null?void 0:ze.split("&&"):(Ja=(Ba=(Ge=be==null?void 0:be[1])==null?void 0:Ge.split("@"))==null?void 0:Ba[0])==null?void 0:Ja.split("&&");Je=Za==null?void 0:Za.map($e=>{var ua,Qe;return($e==null?void 0:$e[0])==="*"&&($e=$e==null?void 0:$e.slice(1,$e==null?void 0:$e.length)),$e=(Qe=(ua=$e==null?void 0:$e.replace("{",Va))==null?void 0:ua.split(Va))==null?void 0:Qe[0],($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=$e==null?void 0:$e.split(":"),$e});let qe=[];Za==null||Za.forEach(($e,ua)=>{var Qe,Ta;($e==null?void 0:$e[0])==="*"&&($e=$e==null?void 0:$e.slice(1,$e==null?void 0:$e.length)),$e=(Ta=(Qe=$e==null?void 0:$e.replace("{",Va))==null?void 0:Qe.split(Va))==null?void 0:Ta[1],($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=$e==null?void 0:$e.split(","),qe.push(ua===0?($e==null?void 0:$e.length)-1:$e==null?void 0:$e.length),Ee=[...Ee,...$e]}),qe=(R=Aa.prefixSum(qe))==null?void 0:R.map($e=>$e==null?void 0:$e.total),Je=Je==null?void 0:Je.map(($e,ua)=>({number:qe==null?void 0:qe[ua],contents:$e}))}let oa=ha==null?void 0:ha[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)),Da=oa==null?void 0:oa.split(":"),Ze=(K=(V=(G=(j=ha==null?void 0:ha[1])==null?void 0:j.replace("}",Va))==null?void 0:G.split(Va))==null?void 0:V[0])==null?void 0:K.split(",");let Qa=(Q=ce==null?void 0:ce[0])==null?void 0:Q.slice(1,((Ne=ce==null?void 0:ce[0])==null?void 0:Ne.length)-2),Dl="",Ol="";if((ke=ce==null?void 0:ce[(ce==null?void 0:ce.length)-1])!=null&&ke.includes("(@")?(Ol=(Pe=(je=(pe=ce==null?void 0:ce[(ce==null?void 0:ce.length)-1])==null?void 0:pe.replace("(@",Va))==null?void 0:je.split(Va))==null?void 0:Pe[1],Ol="(@"+Ol):(ca=ce==null?void 0:ce[(ce==null?void 0:ce.length)-1])!=null&&ca.includes("@")&&(Ol=(fa=(Ie=(ka=ce==null?void 0:ce[(ce==null?void 0:ce.length)-1])==null?void 0:ka.replace("@",Va))==null?void 0:Ie.split(Va))==null?void 0:fa[1],Ol="@"+Ol),((Re=Aa.analyzeSplitToContent(Ol,"&"))==null?void 0:Re.length)>1){let Za=(Ue=(Ca=Aa.analyzeSplitToContent(Ol,"}"))==null?void 0:Ca.map(qe=>{var $e;return qe!=null&&qe.includes("@")||(qe=""),qe!=null&&qe.includes("@")&&(qe=($e=Aa.analyzeSplitToContent(qe,":"))==null?void 0:$e[0],(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?void 0:qe[0])==="("&&(qe=qe==null?void 0:qe.slice(1,(qe==null?void 0:qe.length)-1))),qe}))==null?void 0:Ue.filter(qe=>qe!=="");Ol=(Ol==null?void 0:Ol.length)===1?Za:"("+(Za==null?void 0:Za.join(","))+")"}Ol&&Ol!==""&&(Dl=xt(Ol)),(ba=Qa==null?void 0:Qa.split(","))==null||ba.forEach((Za,qe)=>{var $e,ua,Qe;r.push({label:Za,prop:Za,align:"center",menus:ye,groups:(Je==null?void 0:Je.length)===0?Da:($e=Je==null?void 0:Je.find(Ta=>(Ta==null?void 0:Ta.number)>=qe))==null?void 0:$e.contents,words:(Ee==null?void 0:Ee.length)===0?(ua=Ze==null?void 0:Ze[qe])==null?void 0:ua.split(":"):(Qe=Ee==null?void 0:Ee[qe])==null?void 0:Qe.split(":"),formType:(ye==null?void 0:ye.length)>0?"Select":"Input",mainKey:qe===0,filter:Dl,isMainPath:(Je==null?void 0:Je.findIndex(Ta=>(Ta==null?void 0:Ta.number)>=qe))===0})})}else r.push({label:J,prop:J,align:"center"})});else{let J=(me=Aa.analyzeSplitToContent(l,","))==null?void 0:me.map(ue=>((ue==null?void 0:ue[(ue==null?void 0:ue.length)-1])===","&&(ue=ue==null?void 0:ue.slice(0,(ue==null?void 0:ue.length)-1)),ue));J==null||J.forEach(ue=>{r.push(li(ue,n))})}return r},Nd=(l,n)=>{var k,f,v,y,c;let r=l;if(!l)return;let t="";((k=Aa.analyzeSplitToContent(l,"}"))==null?void 0:k.length)>1&&(r=(f=Aa.analyzeSplitToContent(l,"}"))==null?void 0:f[0],t=(v=Aa.analyzeSplitToContent(l,"}"))==null?void 0:v[1]),(l==null?void 0:l[0])==="{"&&(l==null?void 0:l[(l==null?void 0:l.length)-1])==="}"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1));let s=[],u=[];return s.push({label:"排序",prop:"sort"}),(y=Aa.analyzeSplitToContent(r,","))==null||y.forEach(E=>{var 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)),(E==null?void 0:E[0])==="{"?(N=go(E,n))==null||N.forEach(O=>{s.push(O)}):s.push(li(E,n))}),t!==""&&((t==null?void 0:t[0])=="{"&&(t=t==null?void 0:t.slice(1,(t==null?void 0:t.length)-1)),(c=Aa.analyzeSplitToContent(t,","))==null||c.forEach(E=>{var 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)),(E==null?void 0:E[0])==="{"?(N=go(E,n))==null||N.forEach(O=>{u.push(O)}):u.push(li(E,n))})),{columns:s,secondColumns:u}},ri=l=>{var n,r,t;if(l!=null&&l.includes("@Filter")||l!=null&&l.includes("@Condition"))return l;{let s=(r=(n=l==null?void 0:l.replace("(",Va))==null?void 0:n.split(Va))==null?void 0:r[1];return s=s==null?void 0:s.slice(0,(s==null?void 0:s.length)-1),s=(t=Aa.analyzeSplitToContent(s,","))==null?void 0:t.map(u=>((u==null?void 0:u[(u==null?void 0:u.length)-1])===","&&(u=u==null?void 0:u.slice(0,(u==null?void 0:u.length)-1)),"@"+u)),s=s==null?void 0:s.join(","),l!=null&&l.includes("@Quote")&&(s!=null&&s.includes("@Type")||(s=s===""?s+"@Type=Manual":s+",@Type=Manual"),s!=null&&s.includes("@SonSync")||(s=s===""?s+"@SonSync=No":s+",@SonSync=No"),s!=null&&s.includes("@FatherSync")||(s=s===""?s+"@FatherSync=Yes":s+",@FatherSync=Yes")),s}},Xi=l=>{let n=l==null?void 0:l.map(r=>{var t,s;return{menus:r==null?void 0:r.menus,content:((t=r==null?void 0:r.menus)==null?void 0:t.join("/"))+Va+((s=r==null?void 0:r.groups)==null?void 0:s.join("/"))}});return n=n==null?void 0:n.filter(r=>{var t;return(r==null?void 0:r.menus)&&((t=r==null?void 0:r.menus)==null?void 0:t.length)>0}),n=n==null?void 0:n.map(r=>r==null?void 0:r.content),n=[...new Set(n)],n=n==null?void 0:n.map(r=>{var t,s;return{menus:(t=r==null?void 0:r.split(Va))==null?void 0:t[0],groups:((s=r==null?void 0:r.split(Va))==null?void 0:s[1])??[]}}),n},Td=(l,n,r="")=>{var A,Z,S,$,T,x,g,H,W,ae,ge,Oe,we,te,me,J,ue,Ye,Sa,oe,D,ne,ve,se,xe,ta,wa,Ia,le,ra,Ve,_a,Fe,_e,ze,Ge,Ba,Ja,R,j,G;let t=[];if(((A=l==null?void 0:l[0])==null?void 0:A[0])!=="*"&&((Z=l==null?void 0:l[0])==null?void 0:Z[0])!=="$")return;let s=Aa.analyzeSplitToContent(l==null?void 0:l[0],":"),u=s==null?void 0:s.filter(V=>!((V==null?void 0:V[0])!=="{"&&(V==null?void 0:V[0])!=="["));t=(S=s==null?void 0:s.filter(V=>(V==null?void 0:V[0])!=="{"&&(V==null?void 0:V[0])!=="["))==null?void 0:S.join("");let k="",f="";if((t==null?void 0:t[(t==null?void 0:t.length)-1])===":"&&(t=t==null?void 0:t.slice(0,(t==null?void 0:t.length)-1)),t!=null&&t.includes("(@")&&(t==null?void 0:t[0])==="*"&&(k="(@"+(($=t==null?void 0:t.split("(@"))==null?void 0:$[1]),t=(T=t==null?void 0:t.split("(@"))==null?void 0:T[0]),t!=null&&t.includes("@")&&(t==null?void 0:t[0])==="*"&&(k="@"+((g=(x=t==null?void 0:t.replace("@",Va))==null?void 0:x.split(Va))==null?void 0:g[1]),t=(W=(H=t==null?void 0:t.replace("@",Va))==null?void 0:H.split(Va))==null?void 0:W[0]),(t==null?void 0:t[0])==="*"?(t=t==null?void 0:t.slice(1,t==null?void 0:t.length),t=t==null?void 0:t.split(":")):(f=L.cloneDeep(t)+":",t=[]),f=f+((u==null?void 0:u[0])??""),(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)),k!==""&&f!=="")if((f==null?void 0:f[(f==null?void 0:f.length)-1])===")")if(f!=null&&f.includes("(@")){let V=(ae=f==null?void 0:f.split("(@"))==null?void 0:ae[0],K=(ge=f==null?void 0:f.split("(@"))==null?void 0:ge[1];K="(@"+(K==null?void 0:K.slice(0,(K==null?void 0:K.length)-1))+k,f=V+K}else{let V=(we=(Oe=f==null?void 0:f.replace("@",Va))==null?void 0:Oe.split(Va))==null?void 0:we[0],K=(me=(te=f==null?void 0:f.replace("@",Va))==null?void 0:te.split(Va))==null?void 0:me[1];K="(@"+K+k,f=V+K}else f=f+k;let v=u==null?void 0:u[1];(f==null?void 0:f[0])==="["&&(v=L.cloneDeep(f)+(v??""),f="");let y=v?Ct(v):[];!(y!=null&&y.every(V=>Array.isArray(V)))&&(y==null?void 0:y.length)>0&&(y=[y]);let c=(J=Aa.analyzeSplitToContent(f,"@"))!=null&&J[1]?"@"+((ue=Aa.analyzeSplitToContent(f,"@"))==null?void 0:ue[1]):"";if(f=(Ye=Aa.analyzeSplitToContent(f,"@"))==null?void 0:Ye[0],(f==null?void 0:f[0])==="$"&&(c=L.cloneDeep(f)+(c??""),f=""),r!==""&&(k!==""?c=(r==null?void 0:r[(r==null?void 0:r.length)-1])!==")"?r+k:(r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1))+","+k:c=r),c!==""){(c==null?void 0:c[0])==="$"&&(c=c==null?void 0:c.slice(1,c==null?void 0:c.length)),(c==null?void 0:c[(c==null?void 0:c.length)-1])===":"&&(c=c==null?void 0:c.slice(0,(c==null?void 0:c.length)-1));let V="";if(c!=null&&c.includes("(@")){V=(oe=(Sa=c==null?void 0:c.replace("(@",Va))==null?void 0:Sa.split(Va))==null?void 0:oe[0];let K=(ne=(D=c==null?void 0:c.replace("(@",Va))==null?void 0:D.split(Va))==null?void 0:ne[1];K="@"+(K==null?void 0:K.slice(0,(K==null?void 0:K.length)-1));let Ne=(ve=Aa.analyzeSplitToContent(K,","))==null?void 0:ve.map(Q=>((Q==null?void 0:Q[(Q==null?void 0:Q.length)-1])===","&&(Q=Q==null?void 0:Q.slice(0,(Q==null?void 0:Q.length)-1)),(Q==null?void 0:Q[(Q==null?void 0:Q.length)-1])!==")"&&(Q=Q+")"),ri(Q)));c=V+"("+(Ne==null?void 0:Ne.join(","))+")"}else{V=(xe=(se=c==null?void 0:c.replace("@",Va))==null?void 0:se.split(Va))==null?void 0:xe[0];let K=(wa=(ta=c==null?void 0:c.replace("@",Va))==null?void 0:ta.split(Va))==null?void 0:wa[1];if(K){K="@"+K;let Ne=(Ia=Aa.analyzeSplitToContent(K,","))==null?void 0:Ia.map(Q=>((Q==null?void 0:Q[(Q==null?void 0:Q.length)-1])!==")"&&(Q=Q+")"),ri(Q)));c=V+"("+(Ne==null?void 0:Ne.join(","))+")"}else c=V}}(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));let E=Nd(f,n),N=f===""?[]:(E==null?void 0:E.columns)??[],O=sa.getColumnChild(N),w=O;w=w==null?void 0:w.filter(V=>{var K,Ne;return(V==null?void 0:V.filter)&&(V==null?void 0:V.filter)!==""&&(((K=V==null?void 0:V.filter)==null?void 0:K.includes("@SonSync"))||((Ne=V==null?void 0:V.filter)==null?void 0:Ne.includes("@FatherSync")))});let Y=w==null?void 0:w.filter(V=>{var K,Ne,Q;return((K=V==null?void 0:V.filter)==null?void 0:K.includes("@SonSync"))&&((Q=(Ne=V==null?void 0:V.filter)==null?void 0:Ne.split(","))==null?void 0:Q.find(ke=>(ke==null?void 0:ke.includes("@SonSync"))&&(ke==null?void 0:ke.includes("Yes"))))}),_=w==null?void 0:w.filter(V=>{var K,Ne,Q;return((K=V==null?void 0:V.filter)==null?void 0:K.includes("@FatherSync"))&&((Q=(Ne=V==null?void 0:V.filter)==null?void 0:Ne.split(","))==null?void 0:Q.find(ke=>(ke==null?void 0:ke.includes("@FatherSync"))&&(ke==null?void 0:ke.includes("Yes"))))});if(O=O==null?void 0:O.map(V=>{var K,Ne;return{menus:V==null?void 0:V.menus,content:((K=V==null?void 0:V.menus)==null?void 0:K.join("/"))+Va+((Ne=V==null?void 0:V.groups)==null?void 0:Ne.join("/"))}}),_=Xi(_),Y=Xi(Y),O=O==null?void 0:O.filter(V=>{var K;return(V==null?void 0:V.menus)&&((K=V==null?void 0:V.menus)==null?void 0:K.length)>0}),O=O==null?void 0:O.map(V=>V==null?void 0:V.content),O=[...new Set(O)],O=O==null?void 0:O.map(V=>{var K,Ne;return{menus:(K=V==null?void 0:V.split(Va))==null?void 0:K[0],groups:((Ne=V==null?void 0:V.split(Va))==null?void 0:Ne[1])??[]}}),N!=null&&N.some(V=>{var K;return Array.isArray(V==null?void 0:V.children)&&((K=V==null?void 0:V.children)==null?void 0:K.length)>0})&&(N=[N]),(y==null?void 0:y.length)>0&&(Array.isArray(y==null?void 0:y[0])&&((le=y==null?void 0:y[0])!=null&&le.every(V=>Array.isArray(V)))?y=y==null?void 0:y.map((V,K)=>(V=V.map((Ne,Q)=>(Ne.unshift((Q+1).toString()),Ne)),V)):y=y==null?void 0:y.map((V,K)=>(V.unshift((K+1).toString()),V))),E!=null&&E.secondColumns&&((ra=E==null?void 0:E.secondColumns)==null?void 0:ra.length)>0&&((y==null?void 0:y.length)>0?y=y==null?void 0:y.map((V,K)=>{var Ne,Q;return Array.isArray(V==null?void 0:V[0])?V=V==null?void 0:V.map((ke,pe)=>{var je,Pe;return ke.unshift((Pe=(je=E==null?void 0:E.secondColumns)==null?void 0:je[pe])==null?void 0:Pe.prop),ke}):V.unshift((Q=(Ne=E==null?void 0:E.secondColumns)==null?void 0:Ne[K])==null?void 0:Q.prop),V}):y=(Ve=E==null?void 0:E.secondColumns)==null?void 0:Ve.map((V,K)=>(V=[V==null?void 0:V.label],V.push(K),V)),N.unshift({label:"",prop:"disabled",sortable:!1})),(N==null?void 0:N.length)>0){let V=L.cloneDeep(N);Array.isArray(V==null?void 0:V[0])&&(V=V==null?void 0:V[0]);let K=sa.getColumnChild(V);K=K==null?void 0:K.map(Ne=>Ne==null?void 0:Ne.filter),K=K==null?void 0:K.filter(Ne=>Ne&&Ne!==""),K=[...new Set(K)],(K==null?void 0:K.length)>0&&(c=Va+(c==null?void 0:c.slice(1,(c==null?void 0:c.length)-1))+(c!=null&&c.slice(1,(c==null?void 0:c.length)-1)?",":"")+((_a=L.cloneDeep(K))==null?void 0:_a.join(";")))}if((c==null?void 0:c[0])!=="("&&(c!=null&&c.includes("(@"))){let V=(_e=(Fe=c==null?void 0:c.replace("(",Va))==null?void 0:Fe.split(Va))==null?void 0:_e[0],K=[{menus:(Ge=(ze=V==null?void 0:V.split("*"))==null?void 0:ze[0])==null?void 0:Ge.replaceAll(":","/"),groups:(Ba=V==null?void 0:V.split("*"))==null?void 0:Ba[1]}],Ne=(R=(Ja=c==null?void 0:c.replace("(",Va))==null?void 0:Ja.split(Va))==null?void 0:R[1];(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=Aa.analyzeSplitToContent(Ne,","),(j=Ne==null?void 0:Ne.find(Q=>Q==null?void 0:Q.includes("@FatherSync")))!=null&&j.includes("Yes")&&(_=[..._,...K]),(G=Ne==null?void 0:Ne.find(Q=>Q==null?void 0:Q.includes("@SonSync")))!=null&&G.includes("Yes")&&(Y=[...Y,...K])}return{groupName:t,tableColumns:N,tableFilter:c,tableContents:y,columns:(E==null?void 0:E.secondColumns)??[],relatedQuotes:O,fatherSyncContents:_,sonSyncContents:Y}},Hs=(l,n)=>(l=l==null?void 0:l.map((r,t)=>{var s,u,k,f;if(Array.isArray(r))r=r==null?void 0:r.map(v=>{var y,c,E,N;return v!=null&&v.isMainPath||(((y=v==null?void 0:v.children)==null?void 0:y.length)>0?v.children=Hs(v.children,n):((c=v==null?void 0:v.menus)==null?void 0:c.length)>0&&!((E=r==null?void 0:r[0])!=null&&E.isMainPath)&&(v.menus=(N=v.menus)==null?void 0:N.map((O,w)=>{var Y,_;return((Y=v.menus)==null?void 0:Y.length)-1===w&&O===""&&(n==null?void 0:n.parentContent)+"/"!==((_=v.menus)==null?void 0:_.join("/"))&&(O=n==null?void 0:n.value),v}),v.bindMenus=v.menus)),v});else{if(t===0&&((s=r.menus)==null?void 0:s.length)>0&&(r.mainKey=!0),r!=null&&r.isMainPath)return r;((u=r.menus)==null?void 0:u.length)>0&&!((k=l==null?void 0:l[0])!=null&&k.isMainPath)&&(r.menus=(f=r.menus)==null?void 0:f.map((v,y)=>{var c,E;return((c=r.menus)==null?void 0:c.length)-1===y&&v===""&&(n==null?void 0:n.parentContent)+"/"!==((E=r.menus)==null?void 0:E.join("/"))&&(v=n==null?void 0:n.value),v}),r.bindMenus=r.menus)}return r}),l),Ad=(l,n)=>(l=l==null?void 0:l.map(r=>((r==null?void 0:r.key)==="header"&&(r.contents=Hs(r.contents,n)),r)),l),ni=(l,n)=>{let r=l;return Array.isArray(r==null?void 0:r[0])?r=r==null?void 0:r.map(t=>(t=ni(t,n),t)):r=r==null?void 0:r.map(t=>{var s,u;return t!=null&&t.children&&((s=t==null?void 0:t.children)==null?void 0:s.length)>0?t.children=ni(t==null?void 0:t.children,n):t!=null&&t.words&&((u=t==null?void 0:t.words)==null?void 0:u.length)>0&&(n!=null&&n.find(k=>{var f,v,y,c;return((c=(f=t==null?void 0:t.prop)==null?void 0:f.split("."))==null?void 0:c[((y=(v=t==null?void 0:t.prop)==null?void 0:v.split("."))==null?void 0:y.length)-1])===k}))&&(t.mainKey=!0),t}),r};let Jl="$R";const Md=L.useUnit(L.pinia),{selectTitle:an}=L.storeToRefs(Md),ln=[{key:"@MaxRow",value:"onNumSlice",order:1},{key:"@Type",value:"onRandomContents",order:2},{key:"@Filter",value:"onConditionContents",order:4},{key:"@FatherSync",value:"onFatherPaceContents",order:1},{key:"@SonSync",value:"onPaceContents",order:1},{key:"@MainPam",value:"onMainTagContents",order:3},{key:"@TopButton",value:"onButtonContents",order:1},{key:"@ColumnButton",value:"onPamButtonContents",order:1},{key:"@RowButton",value:"onRowButtonContents",order:1},{key:"@BottomButton",value:"onBottomButtonContents",order:1},{key:"@Related",value:"onRelated",order:1},{key:"@RowNum",value:"onRowNum",order:1},{key:"@FixRow",value:"onFixRow",order:1},{key:"@ReqItem",value:"onReqItem",order:1},{key:"@Condition",value:"onConditionContent",order:1},{key:"@Tab",value:"onTabs",order:1},{key:"@SinChoice",value:"onSinChoice",order:1}];var at=(l=>(l[l.ORDINARY=1]="ORDINARY",l[l.BLOCK=2]="BLOCK",l[l.TEXT=3]="TEXT",l))(at||{});const zd=l=>{var r;return(l==null?void 0:l.filter.toUpperCase())==="ALL"||(l==null?void 0:l.filter.toUpperCase())==="NONE"?l==null?void 0:l.contents:(r=l==null?void 0:l.contents)==null?void 0:r.map(t=>{var s;return(t==null?void 0:t.key)==="tableContents"&&(t.contents=(s=t.contents)==null?void 0:s.slice(0,parseInt(l==null?void 0:l.filter))),t})},Od=async l=>{var n,r,t,s,u,k,f,v,y,c,E,N,O,w,Y,_,A,Z,S,$,T,x,g,H,W,ae,ge,Oe,we,te;if((l==null?void 0:l.filter)==="Random")return(n=l==null?void 0:l.contents)==null?void 0:n.map(J=>((J==null?void 0:J.key)==="tableContents"&&(J.contents=Aa.shuffle(J.contents)),J));if((l==null?void 0:l.filter)==="Ordin"&&(l==null?void 0:l.contents).push({key:"enableWrap",contents:1}),(l==null?void 0:l.filter)==="Block"&&(l==null?void 0:l.contents).push({key:"enableWrap",contents:2}),(l==null?void 0:l.filter)==="Auto"){let me=(t=(r=l==null?void 0:l.contents)==null?void 0:r.find(se=>(se==null?void 0:se.key)==="header"))==null?void 0:t.contents;Array.isArray(me==null?void 0:me[0])&&(me=me==null?void 0:me[0]),me=sa.getColumnChild(me);let J=me==null?void 0:me.filter(se=>(se==null?void 0:se.filter)&&(se==null?void 0:se.filter)!==""),ue=new Map,Ye=[];J==null||J.forEach(se=>{var xe,ta;ue.get((xe=se==null?void 0:se.menus)==null?void 0:xe.join("/"))||(ue.set((ta=se==null?void 0:se.menus)==null?void 0:ta.join("/"),se),Ye.push(se))});let Sa=(u=(s=an==null?void 0:an.value)==null?void 0:s.find(se=>(se==null?void 0:se.condition)==="child"))==null?void 0:u.value,oe=Ye==null?void 0:Ye.map(se=>{var xe,ta,wa;return se=(xe=se==null?void 0:se.menus)==null?void 0:xe.join("/"),(se==null?void 0:se[(se==null?void 0:se.length)-1])==="/"&&((wa=(ta=an==null?void 0:an.value)==null?void 0:ta.find(Ia=>(Ia==null?void 0:Ia.condition)==="child"))==null?void 0:wa.parentContent)+"/"!==se?se=se+Sa:(se==null?void 0:se[(se==null?void 0:se.length)-1])==="/"&&(se=se==null?void 0:se.slice(0,(se==null?void 0:se.length)-1)),se}),D=Ye==null?void 0:Ye.map(se=>se==null?void 0:se.groups),ne=oe==null?void 0:oe.map(async se=>{let xe=await jr(se,!1);return{path:se,contents:xe}});ne=await Promise.all(ne);let ve=ne==null?void 0:ne.map((se,xe)=>{var wa,Ia,le,ra,Ve,_a,Fe;let ta=(wa=se==null?void 0:se.contents)==null?void 0:wa.filter(_e=>{var ze,Ge;return(_e==null?void 0:_e.name)===((Ge=D==null?void 0:D[xe])==null?void 0:Ge[((ze=D==null?void 0:D[xe])==null?void 0:ze.length)-1])});return ta=(ra=(le=(Ia=ta==null?void 0:ta[0])==null?void 0:Ia.compData)==null?void 0:le.find(_e=>(_e==null?void 0:_e.key)==="tableContents"))==null?void 0:ra.contents,(se==null?void 0:se.path)===((_a=(Ve=an==null?void 0:an.value)==null?void 0:Ve.find(_e=>(_e==null?void 0:_e.condition)==="child"))==null?void 0:_a.parentContent)&&(ta=((Fe=ta==null?void 0:ta.map(_e=>{for(let ze in _e)if(_e[ze]===Sa)return _e}))==null?void 0:Fe.filter(_e=>_e))??[]),ta??[]});if(ve=ve==null?void 0:ve.map(se=>(se=se==null?void 0:se.map(xe=>{var wa;let ta={};for(let Ia in xe)if(J!=null&&J.find(le=>{var ra,Ve;return((Ve=(ra=le==null?void 0:le.words)==null?void 0:ra[0])==null?void 0:Ve.replaceAll("'",""))===Ia})){let le=(wa=J==null?void 0:J.find(ra=>{var Ve,_a;return((_a=(Ve=ra==null?void 0:ra.words)==null?void 0:Ve[0])==null?void 0:_a.replaceAll("'",""))===Ia}))==null?void 0:wa.prop;ta[le]=xe==null?void 0:xe[Ia]}return ta}),se)),ve=Aa.cartesianProduct(ve),Array.isArray(ve==null?void 0:ve[0])&&(ve=ve==null?void 0:ve[0]),(ve==null?void 0:ve.length)>0&&((E=(f=(k=J==null?void 0:J[0])==null?void 0:k.menus)==null?void 0:f.join("/"))==null?void 0:E[((c=(y=(v=J==null?void 0:J[0])==null?void 0:v.menus)==null?void 0:y.join("/"))==null?void 0:c.length)-1])==="/")return(N=l==null?void 0:l.contents)==null?void 0:N.map(xe=>{var ta;return(xe==null?void 0:xe.key)==="tableContents"&&(ve==null?void 0:ve.length)>0&&(xe.contents=((ta=xe.contents)==null?void 0:ta.length)>0?xe.contents:ve),xe})}if((l==null?void 0:l.filter)==="Text"&&(l==null?void 0:l.contents).push({key:"enableWrap",contents:3}),(l==null?void 0:l.filter)==="Manual"){let me=[],J=[],ue=(w=(O=l==null?void 0:l.contents)==null?void 0:O.find(D=>(D==null?void 0:D.key)==="filter"))==null?void 0:w.contents;(ue==null?void 0:ue[(ue==null?void 0:ue.length)-1])===")"?ue=(_=(Y=ue==null?void 0:ue.replace("(",Jl))==null?void 0:Y.split(Jl))==null?void 0:_[0]:ue="",ue!==""&&(me=((Z=(A=ue==null?void 0:ue.split("*"))==null?void 0:A[0])==null?void 0:Z.split(":"))??[],J=((g=(x=(T=($=(S=ue==null?void 0:ue.split("*"))==null?void 0:S[1])==null?void 0:$.replace("{",Jl))==null?void 0:T.split(Jl))==null?void 0:x[0])==null?void 0:g.split(":"))??[]);let Ye=(W=(H=l==null?void 0:l.contents)==null?void 0:H.find(D=>(D==null?void 0:D.key)==="filter"))==null?void 0:W.contents;Ye=(ge=(ae=Ye==null?void 0:Ye.replace("(",Jl))==null?void 0:ae.split(Jl))==null?void 0:ge[1],Ye=Ye==null?void 0:Ye.slice(0,(Ye==null?void 0:Ye.length)-1);let Sa=(Oe=l==null?void 0:l.contents)==null?void 0:Oe.map(D=>{var ne,ve,se,xe,ta,wa,Ia,le,ra;return(D==null?void 0:D.key)==="header"&&((ne=D==null?void 0:D.contents)!=null&&ne.every(Ve=>(Ve==null?void 0:Ve.mainKey)!==!0)&&Array.isArray(D==null?void 0:D.contents)&&!Array.isArray((ve=D==null?void 0:D.contents)==null?void 0:ve[0])?D.contents=(se=D==null?void 0:D.contents)==null?void 0:se.map((Ve,_a)=>{var Fe,_e,ze;return Ve!=null&&Ve.isMainPath||(_a===0?(Ve.mainKey=!0,Ve.formType="Select",Ve.bindMenus=me,Ve.groups=((Fe=Ve.groups)==null?void 0:Fe.length)===0?J:Ve.groups,Ve.words=((_e=Ve.words)==null?void 0:_e.length)===0?[Ve==null?void 0:Ve.prop]:Ve.words,Ve.filter=Ye,(!(Ve!=null&&Ve.menus)||((ze=Ve==null?void 0:Ve.menus)==null?void 0:ze.length)===0)&&(Ve.menus=me)):(Ve.mainKey=!1,Ve.bindMenus=me)),Ve}):Array.isArray((xe=D==null?void 0:D.contents)==null?void 0:xe[0])&&((Ia=(wa=(ta=D==null?void 0:D.contents)==null?void 0:ta[0])==null?void 0:wa.filter(()=>(me==null?void 0:me.length)>0))==null?void 0:Ia.length)>0&&(D.contents[0]=(ra=(le=D==null?void 0:D.contents)==null?void 0:le[0])==null?void 0:ra.map((Ve,_a)=>{var Fe,_e,ze;return Ve!=null&&Ve.isMainPath||(_a===0?(Ve.mainKey=!0,Ve.formType="Select",Ve.bindMenus=me,Ve.groups=((Fe=Ve.groups)==null?void 0:Fe.length)===0?J:Ve.groups,Ve.words=((_e=Ve.words)==null?void 0:_e.length)===0?[Ve==null?void 0:Ve.prop]:Ve.words,Ve.filter=Ye,(!(Ve!=null&&Ve.menus)||Array.isArray(Ve==null?void 0:Ve.menus)&&((ze=Ve==null?void 0:Ve.menus)==null?void 0:ze.length)===0)&&(me==null?void 0:me.length)>0&&(Ve.menus=me)):(Ve.mainKey=!1,Ve.bindMenus=me)),Ve}))),D}),oe=(we=Sa==null?void 0:Sa.find(D=>(D==null?void 0:D.key)==="header"))==null?void 0:we.contents;if(Array.isArray(oe==null?void 0:oe[0])&&(oe=oe==null?void 0:oe[0]),oe=sa.getColumnChild(oe),oe!=null&&oe.some(D=>{var ne,ve;return((ve=D==null?void 0:D.menus)==null?void 0:ve[((ne=D==null?void 0:D.menus)==null?void 0:ne.length)-1])===""})){let D=(te=an==null?void 0:an.value)==null?void 0:te.find(ne=>(ne==null?void 0:ne.condition)==="child");Sa=Ad(Sa,D)}return Sa}return l==null?void 0:l.contents},Id=l=>{var t,s,u,k;let n=l==null?void 0:l.filter;if(n!=null&&n.includes("*")&&(n="({"+((s=(t=n==null?void 0:n.replace("{",Jl))==null?void 0:t.split(Jl))==null?void 0:s[1])),n=(u=n==null?void 0:n.replaceAll("{",""))==null?void 0:u.replaceAll("}",""),(n==null?void 0:n[0])!=="("&&(n="("+n+")"),n.slice(1,(n==null?void 0:n.length)-1)==="undefined")return l==null?void 0:l.contents;let r=sa.calculatorAndToOr(n);if((r==null?void 0:r.length)>0){let f=[];return r==null||r.forEach(y=>{let c={};for(let E in y){let N=E;N!=null&&N.includes("[")||(c[N]=y[E])}f.push(c)}),(k=l==null?void 0:l.contents)==null?void 0:k.map(y=>{var E,N,O;let c=(N=(E=l==null?void 0:l.contents)==null?void 0:E.find(w=>(w==null?void 0:w.key)==="header"))==null?void 0:N.contents;if(c=(O=sa.getEqualChild(c))==null?void 0:O.filter(w=>(w==null?void 0:w.label)!=="操作"),(y==null?void 0:y.key)==="tableContents"){let Y=sa.tableToForm(y==null?void 0:y.contents,c);f==null||f.forEach(_=>{var A,Z;for(let S in _)!((A=Y==null?void 0:Y[0])!=null&&A.find($=>{var T;return($==null?void 0:$.key)===S||((T=$==null?void 0:$.key)==null?void 0:T.includes(S))}))&&!(Y!=null&&Y.find($=>{var T;return($==null?void 0:$.key)===S||((T=$==null?void 0:$.key)==null?void 0:T.includes(S))}))||(((Z=_[S])==null?void 0:Z[0])!=="!"?Y=Y==null?void 0:Y.filter($=>{var T,x;return((T=$==null?void 0:$.find(g=>{var H;return(g==null?void 0:g.key)===S||((H=g==null?void 0:g.key)==null?void 0:H.includes(S))}))==null?void 0:T.value)===_[S]||Array.isArray(_==null?void 0:_[S])&&((x=_==null?void 0:_[S])==null?void 0:x.find(g=>{var H;return((H=$==null?void 0:$.find(W=>{var ae;return(W==null?void 0:W.key)===S||((ae=W==null?void 0:W.key)==null?void 0:ae.includes(S))}))==null?void 0:H.value)===g}))}):Y=Y==null?void 0:Y.filter($=>{var T;return((T=$==null?void 0:$.find(x=>{var g;return(x==null?void 0:x.key)===S||((g=x==null?void 0:x.key)==null?void 0:g.includes(S))}))==null?void 0:T.value)!==_[S]}))}),(Y==null?void 0:Y.length)===0?y.contents=[]:y.contents=Y==null?void 0:Y.map(_=>{let A={};return _==null||_.forEach(Z=>{A[Z==null?void 0:Z.key]=Z==null?void 0:Z.value}),A})}return y})}return l==null?void 0:l.contents},Ld=l=>l==null?void 0:l.contents,Vd=l=>l==null?void 0:l.contents,$d=l=>{var n,r,t,s;if((l==null?void 0:l.filter)!==""&&(l!=null&&l.filter)){let u=(t=(r=l==null?void 0:l.filter)==null?void 0:r.slice(1,((n=l==null?void 0:l.filter)==null?void 0:n.length)-1))==null?void 0:t.split(",");return(s=l==null?void 0:l.contents)==null?void 0:s.map(f=>((f==null?void 0:f.key)==="header"&&(f.contents=ni(f.contents,u)),f))}return l==null?void 0:l.contents},Rd=l=>{var r;let n=(l==null?void 0:l.filter)??"";return(n==null?void 0:n[0])==="{"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n!==""?(r=l==null?void 0:l.contents)==null?void 0:r.map(s=>{var u;return(s==null?void 0:s.key)==="extraButton"&&(s.contents=(u=n==null?void 0:n.split(","))==null?void 0:u.map(k=>({label:k,prop:k}))),s}):l==null?void 0:l.contents},Pd=l=>l==null?void 0:l.contents,Fd=l=>{var r;let n=(l==null?void 0:l.filter)??"";return(n==null?void 0:n[0])==="{"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n!==""?(r=l==null?void 0:l.contents)==null?void 0:r.map(s=>{var u;return(s==null?void 0:s.key)==="rowButton"&&(s.contents=(u=n==null?void 0:n.split(","))==null?void 0:u.map(k=>({label:k,prop:k}))),s}):l==null?void 0:l.contents},jd=l=>{var r;let n=(l==null?void 0:l.filter)??"";if((n==null?void 0:n[0])==="{"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n!==""){let t=l==null?void 0:l.contents,s=(r=n==null?void 0:n.split(","))==null?void 0:r.map(u=>({label:u,prop:u}));return t.push({key:"bottomButton",contents:s}),t}return l==null?void 0:l.contents},Hd=l=>{var n,r,t,s;if(((n=l==null?void 0:l.filter)==null?void 0:n[0])!=="["){const u=parseInt(l==null?void 0:l.filter);return!u||Number.isNaN(u)?l==null?void 0:l.contents:(r=l==null?void 0:l.contents)==null?void 0:r.map(f=>{var v;return(f==null?void 0:f.key)==="formContent"&&(f.contents=(v=f.contents)==null?void 0:v.map(y=>(y.width=u,y))),f})}if(((t=l==null?void 0:l.filter)==null?void 0:t[0])==="["){let u=Ct(l==null?void 0:l.filter),k=Array.isArray(u)?u.map(v=>parseInt(v)).filter(v=>!!v&&!Number.isNaN(v)):[];return k.length?(s=l==null?void 0:l.contents)==null?void 0:s.map(v=>{if((v==null?void 0:v.key)==="formContent"){const y=v.contents??[];v.contents=y.map((c,E)=>{const N=E+1;let O=0,w=0;for(let _=0;_<k.length;_++){if(w+=k[_],N<=w){O=_;break}_===k.length-1&&(O=k.length-1)}const Y=k[O]||k[k.length-1]||1;return c.width=Y,c})}return v}):l==null?void 0:l.contents}return l==null?void 0:l.contents},Ud=l=>{var n;if((l==null?void 0:l.filter)!==""){let r=l==null?void 0:l.filter;return(r==null?void 0:r[0])==="{"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),r=r==null?void 0:r.split(","),(n=l==null?void 0:l.contents)==null?void 0:n.map(s=>{var u,k,f;return(s==null?void 0:s.key)==="header"&&(Array.isArray((u=s==null?void 0:s.contents)==null?void 0:u[0])?s.contents[0]=(f=s.contents[0])==null?void 0:f.map(v=>(r!=null&&r.find(y=>y===(v==null?void 0:v.prop))&&(v.fixed="left"),v)):s.contents=(k=s.contents)==null?void 0:k.map(v=>(r!=null&&r.find(y=>y===(v==null?void 0:v.prop))&&(v.fixed="left"),v))),s})}return l==null?void 0:l.contents},qd=l=>{var n;if((l==null?void 0:l.filter)!==""){let r=l==null?void 0:l.filter;(r==null?void 0:r[0])==="{"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),r=r==null?void 0:r.split(",");const t=u=>(r!=null&&r.find(k=>k===(u==null?void 0:u.prop))&&(u.required=!0),u!=null&&u.children&&Array.isArray(u.children)&&(u.children=u.children.map(k=>t(k))),u);return(n=l==null?void 0:l.contents)==null?void 0:n.map(u=>{var k,f,v;return(u==null?void 0:u.key)==="header"&&(Array.isArray((k=u==null?void 0:u.contents)==null?void 0:k[0])?u.contents[0]=(v=u.contents[0])==null?void 0:v.map(y=>t(y)):u.contents=(f=u.contents)==null?void 0:f.map(y=>t(y))),u})}return l==null?void 0:l.contents},Wd=async l=>{var t,s,u,k,f,v,y,c,E,N,O,w,Y,_,A,Z,S;const n=L.useUnit(L.pinia),{chooseTitle:r}=L.storeToRefs(n);if((l==null?void 0:l.filter)==="true"){let $=await jr(((s=(t=r==null?void 0:r.value)==null?void 0:t[0])==null?void 0:s.parentContent)??((k=(u=r==null?void 0:r.value)==null?void 0:u[0])==null?void 0:k.relatedContent),!1),T=(v=(f=r==null?void 0:r.value)==null?void 0:f[0])==null?void 0:v.value;(c=(y=$==null?void 0:$[0])==null?void 0:y.compData)!=null&&c.find(W=>(W==null?void 0:W.key)==="header")?$=(E=$==null?void 0:$[0])==null?void 0:E.compData:$=(O=(N=$==null?void 0:$.filter(W=>{var ae;return(ae=W==null?void 0:W.compData)==null?void 0:ae.find(ge=>(ge==null?void 0:ge.key)==="header")}))==null?void 0:N[0])==null?void 0:O.compData;let x=(w=$==null?void 0:$.find(W=>(W==null?void 0:W.key)==="header"))==null?void 0:w.contents;Array.isArray(x==null?void 0:x[0])&&(x=x==null?void 0:x[0]),x=((Y=x==null?void 0:x.find(W=>W==null?void 0:W.isMainKey))==null?void 0:Y.prop)??((_=x==null?void 0:x[0])==null?void 0:_.prop);let g=(Z=(A=$==null?void 0:$.find(W=>(W==null?void 0:W.key)==="tableContents"))==null?void 0:A.contents)==null?void 0:Z.find(W=>(W==null?void 0:W[x])===T);return(S=l==null?void 0:l.contents)==null?void 0:S.map(W=>{var ae;return(W==null?void 0:W.key)==="formContent"&&(W.contents=(ae=W.contents)==null?void 0:ae.map(ge=>(ge.value=g==null?void 0:g[ge==null?void 0:ge.prop],ge))),W})}return l==null?void 0:l.contents},Kd=l=>{var n,r,t,s,u;if((n=l==null?void 0:l.extra)!=null&&n.row){let k=l==null?void 0:l.filter;if(k!=null&&k.includes("*")&&(k="({"+((t=(r=k==null?void 0:k.replace("{",Jl))==null?void 0:r.split(Jl))==null?void 0:t[1])),k=(s=k==null?void 0:k.replaceAll("{",""))==null?void 0:s.replaceAll("}",""),(k==null?void 0:k[0])!=="("&&(k="("+k+")"),k.slice(1,(k==null?void 0:k.length)-1)==="undefined")return l==null?void 0:l.contents;let f=sa.calculatorAndToOr(k),v=f==null?void 0:f[0],y=(u=l==null?void 0:l.extra)==null?void 0:u.row,c=[];for(let E in v)(v==null?void 0:v[E])===(y==null?void 0:y[E])?c.push(!0):c.push(!1);return c!=null&&c.every(E=>E===!0)?l==null?void 0:l.contents:[]}else return l==null?void 0:l.contents},Yd=l=>{if(l!=null&&l.filter){let n=l==null?void 0:l.contents;return n.push({key:"tab",contents:l==null?void 0:l.filter}),n}return l==null?void 0:l.contents},Gd=l=>{if(l!=null&&l.filter){let n=l==null?void 0:l.contents;return n.push({key:"choice",contents:l==null?void 0:l.filter}),n}return l==null?void 0:l.contents},Us={onNumSlice:zd,onRandomContents:Od,onConditionContents:Id,onFatherPaceContents:Ld,onPaceContents:Vd,onMainTagContents:$d,onButtonContents:Rd,onPamButtonContents:Pd,onRowButtonContents:Fd,onRelated:Wd,onRowNum:Hd,onFixRow:Ud,onReqItem:qd,onBottomButtonContents:jd,onConditionContent:Kd,onTabs:Yd,onSinChoice:Gd},Xd=async(l,n)=>{var u,k,f,v,y,c,E,N,O,w,Y,_,A,Z,S,$,T,x,g;let r="";if(((u=l==null?void 0:l.find(H=>(H==null?void 0:H.key)==="filter"))==null?void 0:u.contents)!==""&&(r=(k=l==null?void 0:l.find(H=>(H==null?void 0:H.key)==="filter"))==null?void 0:k.contents),r===""||!r)return l;(r==null?void 0:r[0])==="("?r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1):(r=(v=(f=r==null?void 0:r.replace("(",Jl))==null?void 0:f.split(Jl))==null?void 0:v[1],r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1));let t=(y=Aa.analyzeSplitToContent(r,","))==null?void 0:y.map(H=>((H==null?void 0:H[(H==null?void 0:H.length)-1])===","&&(H=H==null?void 0:H.slice(0,(H==null?void 0:H.length)-1)),H!=null&&H.includes("(")||(H=H==null?void 0:H.replaceAll(":","=")),H)),s=l;for(let H in t){let W,ae="";(c=t==null?void 0:t[H])!=null&&c.includes("(")?(W=(O=(N=(E=t==null?void 0:t[H])==null?void 0:E.replace("(",Jl))==null?void 0:N.split(Jl))==null?void 0:O[0],ae="("+((_=(Y=(w=t==null?void 0:t[H])==null?void 0:w.replace("(",Jl))==null?void 0:Y.split(Jl))==null?void 0:_[1])):(W=(S=(Z=(A=t==null?void 0:t[H])==null?void 0:A.replace("=",Jl))==null?void 0:Z.split(Jl))==null?void 0:S[0],ae=(x=(T=($=t==null?void 0:t[H])==null?void 0:$.replace("=",Jl))==null?void 0:T.split(Jl))==null?void 0:x[1]);let ge=(g=ln==null?void 0:ln.find(Oe=>(Oe==null?void 0:Oe.key)===W))==null?void 0:g.value;if(ge){const Oe=Us[ge];s=await Oe({contents:s,filter:ae})}}return s},ti=async(l,n)=>{var k,f,v,y,c,E,N,O,w,Y,_,A,Z,S,$,T,x,g,H,W;let r="";if(((k=l==null?void 0:l.find(ae=>(ae==null?void 0:ae.key)==="filter"))==null?void 0:k.contents)!==""&&(r=(f=l==null?void 0:l.find(ae=>(ae==null?void 0:ae.key)==="filter"))==null?void 0:f.contents),r===""||!r)return l;(r==null?void 0:r[0])===","&&(r=r==null?void 0:r.slice(1,r==null?void 0:r.length)),(r==null?void 0:r[0])==="("?r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1):(r==null?void 0:r[0])==="@"||(r=(y=(v=r==null?void 0:r.replace("(",Jl))==null?void 0:v.split(Jl))==null?void 0:y[1],r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1));let t=(c=Aa.analyzeSplitToContent(r,","))==null?void 0:c.map(ae=>((ae==null?void 0:ae[(ae==null?void 0:ae.length)-1])===","&&(ae=ae==null?void 0:ae.slice(0,(ae==null?void 0:ae.length)-1)),ae!=null&&ae.includes("(")||(ae=ae==null?void 0:ae.replaceAll(":","=")),ae)),s=l,u=new Map;t==null||t.forEach(ae=>{var Oe,we,te;let ge=(Oe=ae==null?void 0:ae.split("="))==null?void 0:Oe[0];if(ge==="@MainPam"&&u.get(ge)){let me=u.get(ge);me=me==null?void 0:me.slice(0,(me==null?void 0:me.length)-1);let J=(te=(we=ae==null?void 0:ae.replace("{",Jl))==null?void 0:we.split(Jl))==null?void 0:te[1];J=me+","+J,u.set(ge,J)}else u.set(ge,ae)}),t=Array.from(u.values()),t=t==null?void 0:t.sort((ae,ge)=>{var Oe,we;return((Oe=ln==null?void 0:ln.find(te=>ge==null?void 0:ge.includes(te==null?void 0:te.key)))==null?void 0:Oe.order)-((we=ln==null?void 0:ln.find(te=>ae==null?void 0:ae.includes(te==null?void 0:te.key)))==null?void 0:we.order)});for(let ae in t){let ge,Oe="";(E=t==null?void 0:t[ae])!=null&&E.includes("(")&&((N=t==null?void 0:t[ae])!=null&&N.includes("@Filter"))?(ge=(Y=(w=(O=t==null?void 0:t[ae])==null?void 0:O.replace("(",Jl))==null?void 0:w.split(Jl))==null?void 0:Y[0],Oe="("+((Z=(A=(_=t==null?void 0:t[ae])==null?void 0:_.replace("(",Jl))==null?void 0:A.split(Jl))==null?void 0:Z[1])):(ge=(T=($=(S=t==null?void 0:t[ae])==null?void 0:S.replace("=",Jl))==null?void 0:$.split(Jl))==null?void 0:T[0],Oe=(H=(g=(x=t==null?void 0:t[ae])==null?void 0:x.replace("=",Jl))==null?void 0:g.split(Jl))==null?void 0:H[1]);let we=(W=ln==null?void 0:ln.find(te=>(te==null?void 0:te.key)===ge))==null?void 0:W.value;if(we){const te=Us[we];s=await te({contents:s,filter:Oe,extra:n})}}return s};let ro="$R";const Jd=L.useUnit(L.pinia),{selectTitle:Zd}=L.storeToRefs(Jd);let Qd=[{label:"新增",prop:"新增"},{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],ep=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"},{label:"复制新增",prop:"复制新增"},{label:"删除",prop:"删除"}],ap=[{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],lp=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"}];const Ji=async(l,n)=>{let r=[],t=l==null?void 0:l.map(async s=>{var c,E,N,O,w,Y,_,A,Z,S,$,T,x,g,H,W,ae,ge,Oe,we,te,me,J,ue,Ye,Sa,oe,D,ne,ve,se,xe,ta,wa,Ia,le,ra,Ve,_a,Fe,_e,ze,Ge,Ba,Ja,R,j,G,V,K,Ne,Q,ke,pe,je,Pe,ca,ka,Ie,fa,Re,Ca,Ue,ba,ce,xa;let u=(O=(N=(E=(c=s==null?void 0:s.contents)==null?void 0:c.find(ye=>{var Da;return(Da=ye==null?void 0:ye.key)==null?void 0:Da.includes("struct")}))==null?void 0:E.value)==null?void 0:N[0])==null?void 0:O.类型,k=Object.values(s==null?void 0:s.name);k=k==null?void 0:k.reverse();let f=(w=s==null?void 0:s.contents)==null?void 0:w.map(ye=>ye==null?void 0:ye.key),v={comp:u,isShow:s==null?void 0:s.is_show,name:k==null?void 0:k[0],id:s==null?void 0:s.object_id,relatedTables:f,menuFilter:(Y=s==null?void 0:s.filter)==null?void 0:Y.menuFilter,status:s==null?void 0:s.status,fatherSyncContents:(_=s==null?void 0:s.filter)==null?void 0:_.fatherSyncs,relatedQuotes:(A=s==null?void 0:s.filter)==null?void 0:A.quotes,sonSyncContents:(Z=s==null?void 0:s.filter)==null?void 0:Z.sonSyncs};for(let ye in k)parseInt(ye)>=1&&(v[`name${parseInt(ye)-1}`]=k[ye]);let y=($=(S=s==null?void 0:s.filter)==null?void 0:S.menuFilter)==null?void 0:$.split(",");if(((T=y==null?void 0:y.filter(ye=>ye==null?void 0:ye.includes("@Filter")))==null?void 0:T.length)>0){let ye=y==null?void 0:y.filter(Se=>Se==null?void 0:Se.includes("@Filter"));ye=ye==null?void 0:ye[0],ye=(g=(x=ye==null?void 0:ye.replace("(",ro))==null?void 0:x.split(ro))==null?void 0:g[1],ye=ye==null?void 0:ye.slice(0,(ye==null?void 0:ye.length)-1),ye!=null&&ye.includes("*")&&(ye=(W=(H=ye==null?void 0:ye.replace("{",ro))==null?void 0:H.split(ro))==null?void 0:W[1],ye=ye==null?void 0:ye.replace("}","")),ye=sa.calculatorAndToOr(ye);let Da=(n==null?void 0:n.originPath)??"";(Da==null?void 0:Da[(Da==null?void 0:Da.length)-1])==="/"&&(Da=Da==null?void 0:Da.slice(0,(Da==null?void 0:Da.length)-1));let Ze=await jr(Da,!1),Je=(ae=Ze==null?void 0:Ze.filter(Se=>(Se==null?void 0:Se.comp)==="Table"))==null?void 0:ae[0];Je=(Oe=(ge=Je==null?void 0:Je.compData)==null?void 0:ge.find(Se=>(Se==null?void 0:Se.key)==="tableContents"))==null?void 0:Oe.contents;let Ee=(te=(we=Zd.value)==null?void 0:we.find(Se=>(Se==null?void 0:Se.condition)==="child"))==null?void 0:te.value;Je=(me=Je==null?void 0:Je.map(Se=>{for(let ha in Se)if((Se==null?void 0:Se[ha])===Ee)return Se}))==null?void 0:me.filter(Se=>Se),Je=Je==null?void 0:Je[0],ye=ye==null?void 0:ye[0];let be=[];for(let Se in ye){let ha="";Wa.isObject(Je)&&(ha=(ue=(J=Object.keys(Je))==null?void 0:J.filter(oa=>oa==null?void 0:oa.includes("."+Se)))==null?void 0:ue[0]),ha!==""&&(Je!=null&&Je[ha])&&(ye==null?void 0:ye[Se])===(Je==null?void 0:Je[ha])||Je!=null&&Je[Se]&&(ye==null?void 0:ye[Se])===(Je==null?void 0:Je[Se])?be.push(!0):be.push(!1)}if(be!=null&&be.some(Se=>Se===!1)&&((Sa=n==null?void 0:n.originPath)==null?void 0:Sa[((Ye=n==null?void 0:n.originPath)==null?void 0:Ye.length)-1])!=="/")return}if(u==="Table"||u==="Method"){let ye=(oe=s==null?void 0:s.contents)==null?void 0:oe.find(oa=>{var Qa;return(Qa=oa==null?void 0:oa.key)==null?void 0:Qa.includes("content")}),Da=[];v.comp="Table",ye.value=(D=ye==null?void 0:ye.value)==null?void 0:D.sort((oa,Qa)=>parseInt(oa==null?void 0:oa.id)-parseInt(Qa==null?void 0:Qa.id)),ye.value=(ne=ye==null?void 0:ye.value)==null?void 0:ne.map(oa=>{let Qa={};for(let Dl in oa)JSON.stringify(oa==null?void 0:oa[Dl])==="{}"?Qa[Dl]="":Qa[Dl]=oa==null?void 0:oa[Dl];return Qa}),Da.push({key:"tableContents",contents:ye==null?void 0:ye.value});let Ze=(wa=(ta=(xe=(se=(ve=s==null?void 0:s.contents)==null?void 0:ve.find(oa=>{var Qa;return(Qa=oa==null?void 0:oa.key)==null?void 0:Qa.includes("struct")}))==null?void 0:se.value)==null?void 0:xe[0])==null?void 0:ta.结构)==null?void 0:wa.contents;Array.isArray(Ze==null?void 0:Ze[0])?Ze[0]=(Ia=Ze==null?void 0:Ze[0])==null?void 0:Ia.filter(oa=>(oa==null?void 0:oa.prop)!=="sort"):Ze=Ze==null?void 0:Ze.filter(oa=>(oa==null?void 0:oa.prop)!=="sort"),Da.push({key:"header",contents:Ze}),Da.push({key:"filter",contents:(Fe=(_a=(Ve=(ra=(le=s==null?void 0:s.contents)==null?void 0:le.find(oa=>{var Qa;return(Qa=oa==null?void 0:oa.key)==null?void 0:Qa.includes("struct")}))==null?void 0:ra.value)==null?void 0:Ve[0])==null?void 0:_a.引用)==null?void 0:Fe.contents});let Je=Qd,Ee=L.cloneDeep(ep);u==="Method"&&Ee.push({label:"生成方法",prop:"生成方法"}),!Array.isArray(Ze==null?void 0:Ze[0])&&((_e=Ze==null?void 0:Ze[0])==null?void 0:_e.prop)==="disabled"&&(Je=ap,Ee=lp);const be=["推力","真空","压力","温度","流量"],Se=v.name;Se&&be.includes(Se)&&(Je=[...Je],Je.push({label:"导出paraform",prop:"导出paraform",type:"methodButton"}));let ha=[];if(!Array.isArray(Ze==null?void 0:Ze[0])&&(Ze!=null&&Ze.some(oa=>{var Qa;return(oa==null?void 0:oa.calculatorFilter)&&((Qa=oa==null?void 0:oa.calculatorFilter)==null?void 0:Qa.includes("Manual"))}))){let oa=(ze=Ze==null?void 0:Ze.map(Qa=>Qa==null?void 0:Qa.calculatorFilter))==null?void 0:ze.filter(Qa=>Qa&&(Qa==null?void 0:Qa.includes("Manual")));oa==null||oa.forEach(Qa=>{var Ol;let Dl=Aa.analyzeSplitToContent(Qa,",");if(Dl=Dl==null?void 0:Dl.map(Za=>((Za==null?void 0:Za[(Za==null?void 0:Za.length)-1])===","&&(Za=Za==null?void 0:Za.slice(0,(Za==null?void 0:Za.length)-1)),Za)),Dl!=null&&Dl.find(Za=>(Za==null?void 0:Za.includes("Extent"))&&(Za==null?void 0:Za.includes("Row")))&&(Dl!=null&&Dl.find(Za=>(Za==null?void 0:Za.includes("Button"))&&(Za==null?void 0:Za.includes(","))))){let Za=Dl==null?void 0:Dl.find(qe=>qe==null?void 0:qe.includes("@Button"));Za=(Ol=Za==null?void 0:Za.split("="))==null?void 0:Ol[1],Za=Za==null?void 0:Za.slice(1,(Za==null?void 0:Za.length)-1),Za=Za==null?void 0:Za.split(","),Za=Za==null?void 0:Za[(Za==null?void 0:Za.length)-1],ha.push(Za)}}),ha=[...new Set(ha)],ha=ha==null?void 0:ha.map(Qa=>({label:Qa,prop:Qa,type:"methodButton"}))}Da.push({key:"extraButton",contents:Je}),Da.push({key:"rowButton",contents:[...Ee,...ha]}),v.compData=await ti(Da,n),(Ge=v.compData)!=null&&Ge.find(oa=>(oa==null?void 0:oa.key)==="tab")&&(v.tab=(Ja=(Ba=v.compData)==null?void 0:Ba.find(oa=>(oa==null?void 0:oa.key)==="tab"))==null?void 0:Ja.contents),(R=v.compData)!=null&&R.find(oa=>(oa==null?void 0:oa.key)==="choice")&&(v.choice=(G=(j=v.compData)==null?void 0:j.find(oa=>(oa==null?void 0:oa.key)==="choice"))==null?void 0:G.contents)}else if(u==="Form"){let ye=[],Da=(Ne=(K=(V=s==null?void 0:s.contents)==null?void 0:V.find(Je=>{var Ee;return(Ee=Je==null?void 0:Je.key)==null?void 0:Ee.includes("content")}))==null?void 0:K.value)==null?void 0:Ne[0],Ze=(ka=(ca=(Pe=(je=(pe=(ke=(Q=s==null?void 0:s.contents)==null?void 0:Q.find(Je=>{var Ee;return(Ee=Je==null?void 0:Je.key)==null?void 0:Ee.includes("struct")}))==null?void 0:ke.value)==null?void 0:pe[0])==null?void 0:je.结构)==null?void 0:Pe.contents)==null?void 0:ca.map(Je=>(Je.value=Da==null?void 0:Da[Je==null?void 0:Je.prop],Je)))==null?void 0:ka.filter(Je=>(Je==null?void 0:Je.prop)!=="sort");ye.push({key:"filter",contents:(Ue=(Ca=(Re=(fa=(Ie=s==null?void 0:s.contents)==null?void 0:Ie.find(Je=>{var Ee;return(Ee=Je==null?void 0:Je.key)==null?void 0:Ee.includes("struct")}))==null?void 0:fa.value)==null?void 0:Re[0])==null?void 0:Ca.引用)==null?void 0:Ue.contents}),ye.push({key:"formContent",contents:Ze}),v.compData=await Xd(ye),(ba=v.compData)!=null&&ba.find(Je=>(Je==null?void 0:Je.key)==="tab")&&(v.tab=(xa=(ce=v.compData)==null?void 0:ce.find(Je=>(Je==null?void 0:Je.key)==="tab"))==null?void 0:xa.contents)}return v});return r=await Promise.all(t),r},rp=L.useLoginState(L.pinia),{loginUserInfo:gt}=L.storeToRefs(rp),oi=async(l,n,r="Manual",t=[])=>{var v;let s=l,u;Array.isArray(n==null?void 0:n[0])?u=sa.getColumnChild(n==null?void 0:n[0]):u=n;let k=(v=u==null?void 0:u.filter(y=>{var c;return(y==null?void 0:y.calculatorFilter)&&((c=y==null?void 0:y.calculatorFilter)==null?void 0:c.includes(r))||(y==null?void 0:y.calculatorFilter)===""&&(y==null?void 0:y.functionName)}))==null?void 0:v.map(y=>({prop:y==null?void 0:y.prop,label:y==null?void 0:y.label,methods:y==null?void 0:y.calculatorFilter,functionName:y==null?void 0:y.functionName,functionRelatedWords:y==null?void 0:y.functionRelatedWords})),f=s==null?void 0:s.map(async y=>(y=await cp(y,k,u,r,s,t),y));return f=await Promise.all(f),f},np=l=>{let n=l==null?void 0:l.contents,r=l==null?void 0:l.valueString,t=l==null?void 0:l.prop,s=l==null?void 0:l.headers,u;return Array.isArray(n)&&(n==null?void 0:n.length)!==1&&(n=sa.getValueToObjectValue(n,sa.getColumnContents(s))),r==null||r.forEach(k=>{var f;if(n!=null&&n[k]){let v=n==null?void 0:n[k];u=u?v?Aa.isEqual(v.toString(),u.toString()):void 0:v}else{let v=(f=s==null?void 0:s.find(c=>(c==null?void 0:c.label)===k))==null?void 0:f.prop,y=(n==null?void 0:n[v])??0;u=u?y?Aa.isEqual(y.toString(),u.toString()):void 0:y}}),n[t]=u===void 0?void 0:u?1:0,n},ir=l=>{const[n,r,t]=L.cloneDeep(l).split(":").map(Number);let s=+l;return!l||!(l!=null&&l.includes(":"))?s:(n??0)*3600+(r??0)*60+(t??0)},Fn=l=>{const n=u=>u.toString().padStart(2,"0"),r=Math.floor(l/3600),t=Math.floor(l%3600/60),s=l%60;return`${n(r)}:${n(t)}:${parseInt(n(s))}`},tp=l=>{let n=l==null?void 0:l.contents,r=l==null?void 0:l.valueString,t=l==null?void 0:l.prop,s=l==null?void 0:l.headers,u=l==null?void 0:l.typeString,k=l==null?void 0:l.allContents,f=0;if(Array.isArray(n)&&(n==null?void 0:n.length)!==1&&(n=sa.getValueToObjectValue(n,sa.getColumnContents(s))),r==null||r.forEach(v=>{var y,c,E,N,O,w,Y,_,A;if(n!=null&&n[v]){if(u==="Row")if(!((c=((y=n==null?void 0:n[v])==null?void 0:y.toString())??"")!=null&&c.includes(":"))&&!((E=f==null?void 0:f.toString())!=null&&E.includes(":"))){let Z=+(n==null?void 0:n[v]);f=f+Z}else f=ir(f.toString())+ir((N=n==null?void 0:n[v])==null?void 0:N.toString()),f=Fn(f)}else if(u==="Row"){let Z=(O=s==null?void 0:s.find(S=>(S==null?void 0:S.label)===v))==null?void 0:O.prop;if(!((Y=Number.isNaN(n==null?void 0:n[Z])?"":(w=n==null?void 0:n[Z])==null?void 0:w.toString())!=null&&Y.includes(":"))&&!((_=f==null?void 0:f.toString())!=null&&_.includes(":"))){let S=+((n==null?void 0:n[Z])??0);f=f+S}else f=ir(f==null?void 0:f.toString())+ir((A=(n==null?void 0:n[Z])??0)==null?void 0:A.toString()),f=Fn(f)}}),u==="Column"){let v=[];r==null||r.forEach(y=>{let c=k==null?void 0:k.map(E=>{var N;return(E==null?void 0:E[y])??(E==null?void 0:E[(N=s==null?void 0:s.find(O=>(O==null?void 0:O.label)===y))==null?void 0:N.prop])});v=[...v,...c]}),f=v.reduce((y,c)=>{let E=0;Number.isNaN(y)||(E=+y);let N=0;return Number.isNaN(c)||(N=+c),E+N},0)}return n[t]=f,n},op=l=>{let n=l==null?void 0:l.contents,r=l==null?void 0:l.valueString,t=l==null?void 0:l.prop,s=l==null?void 0:l.headers,u=l==null?void 0:l.typeString,k=l==null?void 0:l.allContents,f=0;if(Array.isArray(n)&&(n==null?void 0:n.length)!==1&&(n=sa.getValueToObjectValue(n,sa.getColumnContents(s))),r==null||r.forEach(v=>{var y,c,E,N,O,w,Y;if(n!=null&&n[v]){if(u==="Row")if(!((c=(y=n==null?void 0:n[v])==null?void 0:y.toString())!=null&&c.includes(":"))&&!((E=f==null?void 0:f.toString())!=null&&E.includes(":"))){let _=+(n==null?void 0:n[v]);f=f===0?f+_:f-_}else f=f===0?ir(f.toString())+ir(n==null?void 0:n[v].toString()):ir(f.toString())-ir(n==null?void 0:n[v].toString()),f=Fn(f)}else if(u==="Row"){let _=(N=s==null?void 0:s.find(A=>(A==null?void 0:A.label)===v))==null?void 0:N.prop;if(!((w=Number.isNaN(n==null?void 0:n[_])?"":(O=n==null?void 0:n[_])==null?void 0:O.toString())!=null&&w.includes(":"))&&!((Y=f==null?void 0:f.toString())!=null&&Y.includes(":"))){let A=+((n==null?void 0:n[_])??0);f=f===0?f+A:f-A}else f=f===0?ir(f.toString())+ir(((n==null?void 0:n[_])??0).toString()):ir(f.toString())-ir(((n==null?void 0:n[_])??0).toString()),f=Fn(f)}}),u==="Column"){let v=[];r==null||r.forEach(y=>{let c=k==null?void 0:k.map(E=>{var N;return(E==null?void 0:E[y])??(E==null?void 0:E[(N=s==null?void 0:s.find(O=>(O==null?void 0:O.label)===y))==null?void 0:N.prop])});v=[...v,...c]}),f=v.reduce((y,c)=>{let E=0;Number.isNaN(y)||(E=+y);let N=0;return Number.isNaN(c)||(N=+c),E-N},0)}return n[t]=f,n},ip=l=>{let n=l==null?void 0:l.contents,r=l==null?void 0:l.valueString,t=l==null?void 0:l.prop,s=l==null?void 0:l.headers,u=l==null?void 0:l.typeString,k=l==null?void 0:l.allContents,f=0;if(Array.isArray(n)&&(n==null?void 0:n.length)!==1&&(n=sa.getValueToObjectValue(n,sa.getColumnContents(s))),r==null||r.forEach(v=>{var y,c,E,N,O,w,Y;if(n!=null&&n[v]){if(u==="Row")if(!((c=(y=n==null?void 0:n[v])==null?void 0:y.toString())!=null&&c.includes(":"))&&!((E=f==null?void 0:f.toString())!=null&&E.includes(":"))){let _=+(n==null?void 0:n[v]);f=f===0?f+_:f*_}else f=f===0?ir(f.toString())+ir(n==null?void 0:n[v].toString()):ir(f.toString())*ir(n==null?void 0:n[v].toString()),f=Fn(f)}else if(u==="Row"){let _=(N=s==null?void 0:s.find(A=>(A==null?void 0:A.label)===v))==null?void 0:N.prop;if(!(n!=null&&n[_]))f=void 0;else if(!((w=Number.isNaN(n==null?void 0:n[_])?"":(O=n==null?void 0:n[_])==null?void 0:O.toString())!=null&&w.includes(":"))&&!((Y=f==null?void 0:f.toString())!=null&&Y.includes(":"))){let A=+((n==null?void 0:n[_])??0);f=f===0?f+A:f*A}else f=f===0?ir(f.toString())+ir(((n==null?void 0:n[_])??0).toString()):ir(f.toString())*ir(((n==null?void 0:n[_])??0).toString()),f=Fn(f)}}),u==="Column"){let v=[];r==null||r.forEach(y=>{let c=k==null?void 0:k.map(E=>{var N;return(E==null?void 0:E[y])??(E==null?void 0:E[(N=s==null?void 0:s.find(O=>(O==null?void 0:O.label)===y))==null?void 0:N.prop])});v=[...v,...c]}),f=v.reduce((y,c)=>{let E=0;Number.isNaN(y)||(E=+y);let N=0;return Number.isNaN(c)||(N=+c),E*N},0)}return n[t]=f,n},sp=l=>{let n=l==null?void 0:l.contents,r=l==null?void 0:l.valueString,t=l==null?void 0:l.prop,s=l==null?void 0:l.headers,u=l==null?void 0:l.typeString,k=l==null?void 0:l.allContents,f=0;if(Array.isArray(n)&&(n==null?void 0:n.length)!==1&&(n=sa.getValueToObjectValue(n,sa.getColumnContents(s))),r==null||r.forEach(v=>{var y,c,E,N,O,w,Y;if(n!=null&&n[v]){if(u==="Row")if(!((c=(y=n==null?void 0:n[v])==null?void 0:y.toString())!=null&&c.includes(":"))&&!((E=f==null?void 0:f.toString())!=null&&E.includes(":"))){let _=+(n==null?void 0:n[v]);f=f===0?f+_:f/_}else f=f===0?ir(f.toString())+ir(n==null?void 0:n[v].toString()):ir(f.toString())/ir(n==null?void 0:n[v].toString()),f=Fn(f)}else if(u==="Row"){let _=(N=s==null?void 0:s.find(A=>(A==null?void 0:A.label)===v))==null?void 0:N.prop;if(!((w=Number.isNaN(n==null?void 0:n[_])?"":(O=n==null?void 0:n[_])==null?void 0:O.toString())!=null&&w.includes(":"))&&!((Y=f==null?void 0:f.toString())!=null&&Y.includes(":"))){let A=+((n==null?void 0:n[_])??0);f=f===0?f+A:f/A}else f=f===0?ir(f.toString())+ir(((n==null?void 0:n[_])??0).toString()):ir(f.toString())/ir(((n==null?void 0:n[_])??0).toString()),f=Fn(f)}}),u==="Column"){let v=[];r==null||r.forEach(y=>{let c=k==null?void 0:k.map(E=>{var N;return(E==null?void 0:E[y])??(E==null?void 0:E[(N=s==null?void 0:s.find(O=>(O==null?void 0:O.label)===y))==null?void 0:N.prop])});v=[...v,...c]}),f=v.reduce((y,c)=>{let E=0;Number.isNaN(y)||(E=+y);let N=0;return Number.isNaN(c)||(N=+c),E/N},0)}return n[t]=f.toFixed(2),n},no={Sum:tp,Substract:op,Multiple:ip,Divide:sp,Compare:np},cp=async(l,n,r,t="Auto",s,u=[])=>{var c,E,N,O,w,Y,_,A,Z,S,$,T,x,g,H,W,ae,ge,Oe,we,te;let k=l,f=[],v=await L.getPageDataApi({platId:parseInt((c=gt==null?void 0:gt.value)==null?void 0:c.plat_id),pageName:"menu"});v=(O=(N=(E=v==null?void 0:v.data)==null?void 0:E.result)==null?void 0:N.filter(me=>(me==null?void 0:me.property_name)===""))==null?void 0:O[0];let y=[];if(v!=null&&v.object_name){v=v==null?void 0:v.object_name;let me=await L.getPageDataApi({platId:parseInt((w=gt==null?void 0:gt.value)==null?void 0:w.plat_id),pageName:v});me=(S=(Z=(A=(_=(Y=me==null?void 0:me.data)==null?void 0:Y.result)==null?void 0:_[0])==null?void 0:A.contents)==null?void 0:Z.find(J=>{var ue;return(ue=J==null?void 0:J.key)==null?void 0:ue.includes("content")}))==null?void 0:S.value,f=($=me==null?void 0:me.map(J=>({functionName:J==null?void 0:J.函数名称,functionContent:J==null?void 0:J.输出值})))==null?void 0:$.filter(J=>(J==null?void 0:J.functionContent)!==""),f==null||f.forEach(J=>{y.push(J.functionName),no[J.functionName]=new Function("return "+J.functionContent)()})}if((n==null?void 0:n.length)===0)return k;for(let me in n){let J=(T=n==null?void 0:n[me])==null?void 0:T.functionName;const ue=no==null?void 0:no[J];let Ye=(x=n==null?void 0:n[me])==null?void 0:x.methods;if(Ye=Aa.analyzeSplitToContent(Ye,","),(g=Ye==null?void 0:Ye.find(Sa=>Sa==null?void 0:Sa.includes("@Type")))!=null&&g.includes(t)||(Ye==null?void 0:Ye.length)===0){let Sa=((ae=(W=(H=Ye==null?void 0:Ye.find(oe=>oe==null?void 0:oe.includes("@Extent")))==null?void 0:H.replace(":","="))==null?void 0:W.split("="))==null?void 0:ae[1])??[];if(await new Function("return ")(),(y==null?void 0:y.length)>0&&y.find(oe=>oe===J)){let oe="";try{let ne=(ge=n==null?void 0:n[me])==null?void 0:ge.functionRelatedWords,ve=u==null?void 0:u.map(xe=>{var ta;return xe==null?void 0:xe[(ta=n==null?void 0:n[me])==null?void 0:ta.prop]});ve=ve==null?void 0:ve.map(xe=>xe==null?void 0:xe.slice((xe==null?void 0:xe.length)-5,xe==null?void 0:xe.length)),ve=ve==null?void 0:ve.map(xe=>Aa.isNumber(parseInt(xe))&&parseInt(xe)?parseInt(xe):0);let se=Math.max(...ve);ne=ne==null?void 0:ne.map(xe=>{if(xe!=null&&xe.includes("'"))return xe==null?void 0:xe.replaceAll("'","");if(xe!=null&&xe.includes("@"))return se+1;{let ta=Object.keys(k);return xe=(k==null?void 0:k[xe])??(k==null?void 0:k[ta==null?void 0:ta.find(wa=>wa==null?void 0:wa.includes("."+xe))]),xe}}),oe=ue(...ne)}catch(ne){Wa.ElMessage.warning("关联数据出现错误,"+ne.message)}let D=(Oe=n==null?void 0:n[me])==null?void 0:Oe.prop;k[D]=oe}else k=ue({contents:k,valueString:(we=n==null?void 0:n[me])==null?void 0:we.functionRelatedWords,prop:(te=n==null?void 0:n[me])==null?void 0:te.prop,headers:r,typeString:Sa,allContents:s})}}return k},up=L.useLoginState(L.pinia),{loginUserInfo:Fr}=L.storeToRefs(up),dp=L.useMenuState(L.pinia),{activeMenuPath:Zi,currentMenuPath:to}=L.storeToRefs(dp),qs=L.useUnit(L.pinia);let Qi="$R";const{selectTitle:wt}=L.storeToRefs(qs),pp=async(l,n)=>{var k,f,v,y,c,E,N,O,w,Y,_,A,Z;let r=Zi.value,t="",s=((k=wt==null?void 0:wt.value)==null?void 0:k.find(S=>(S==null?void 0:S.condition)==="child"&&!(S!=null&&S.relatedContent)))??void 0;(l==null?void 0:l.length)===0||(r=n?r:(f=l==null?void 0:l[0])==null?void 0:f.object_name,t=(v=l==null?void 0:l[0])==null?void 0:v.father_name);let u=[];if(t!==""){let S=t;(S==null?void 0:S[(S==null?void 0:S.length)-1])==="/"&&(S=S==null?void 0:S.slice(0,(S==null?void 0:S.length)-1));let $=await jr(S,!1);$=(y=$==null?void 0:$[0])==null?void 0:y.compData;let T=(c=$==null?void 0:$.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:c.contents;T=((E=T==null?void 0:T.find(g=>g==null?void 0:g.isMainKey))==null?void 0:E.prop)??((N=T==null?void 0:T[0])==null?void 0:N.prop);let x=(w=(O=$==null?void 0:$.find(g=>(g==null?void 0:g.key)==="tableContents"))==null?void 0:O.contents)==null?void 0:w.map(g=>({label:g==null?void 0:g[T],value:g==null?void 0:g[T]}));u=(Y=t==null?void 0:t.split("/"))==null?void 0:Y.map(g=>(g===""?s?(s.isShow=!0,g=s):g={value:g,condition:"child",options:x,parentContent:(t==null?void 0:t[(t==null?void 0:t.length)-1])==="/"?t==null?void 0:t.slice(0,(t==null?void 0:t.length)-1):t,isShow:!0}:g={condition:"parent",value:g.trim(),isShow:!0},g))}if(r!==""){let S=(_=r==null?void 0:r.split("/"))==null?void 0:_.map($=>($={condition:"normal",value:$.trim(),isShow:!0},$));((A=S==null?void 0:S[0])==null?void 0:A.value)===((Z=u==null?void 0:u[0])==null?void 0:Z.value)&&(S=S==null?void 0:S.filter(($,T)=>T!==0)),u=[...u,...S??[]]}t===""&&s&&((s==null?void 0:s.parentContent)!==Zi.value&&(s.isShow=!1),(s==null?void 0:s.value)!==""&&u.push(s)),qs.setSelectTitle(u)},fp=async l=>{var u,k,f,v,y,c,E,N,O;let n=await L.getPageDataApi({platId:parseInt((u=Fr==null?void 0:Fr.value)==null?void 0:u.plat_id),pageName:"menu"}),r=(k=n==null?void 0:n.data)==null?void 0:k.result,t=(c=(y=(v=(f=l==null?void 0:l.filter(w=>(w==null?void 0:w.comp)==="Table"))==null?void 0:f[0])==null?void 0:v.compData)==null?void 0:y.find(w=>(w==null?void 0:w.key)==="filter"))==null?void 0:c.contents;t=(O=(N=(E=t==null?void 0:t.replace("(",Qi))==null?void 0:E.split(Qi))==null?void 0:N[0])==null?void 0:O.replaceAll(":","/");let s=r==null?void 0:r.filter(w=>{var Y;return(w==null?void 0:w.object_name)===to.value+"/"||((Y=to.value)==null?void 0:Y.includes(t))&&t+"/"===(w==null?void 0:w.object_name)});return(s==null?void 0:s.length)>0&&(l=l==null?void 0:l.map(w=>{var Y;return(w==null?void 0:w.comp)==="Table"&&(w.compData=(Y=w==null?void 0:w.compData)==null?void 0:Y.map(_=>{var A,Z,S;return(_==null?void 0:_.key)==="header"&&(Array.isArray((A=_.contents)==null?void 0:A[0])?_.contents[0]=(S=_.contents[0])==null?void 0:S.map(($,T)=>{var x;return T===0&&($.isExistChild=!0,(x=to.value)!=null&&x.includes(t)&&($.fatherPath=t)),$}):_.contents=(Z=_.contents)==null?void 0:Z.map(($,T)=>{var x;return T===0&&($.isExistChild=!0,(x=to.value)!=null&&x.includes(t)&&($.fatherPath=t)),$})),_})),w})),l},jr=async(l,n,r={})=>{var k,f,v,y,c,E,N,O,w,Y,_,A;let t=await L.getPageDataApi({platId:parseInt((k=Fr==null?void 0:Fr.value)==null?void 0:k.plat_id),pageName:l}),s=(f=t==null?void 0:t.data)==null?void 0:f.result;if((s==null?void 0:s.length)===0&&(r!=null&&r.originPath)&&(r==null?void 0:r.originPath)!==l){let Z=await L.getPageDataApi({platId:parseInt((v=Fr==null?void 0:Fr.value)==null?void 0:v.plat_id),pageName:r==null?void 0:r.originPath});if(((c=(y=Z==null?void 0:Z.data)==null?void 0:y.result)==null?void 0:c.length)>0){let S=await Ji((E=Z==null?void 0:Z.data)==null?void 0:E.result,r);S=S==null?void 0:S.map(async x=>{var W,ae,ge,Oe,we,te,me,J,ue,Ye,Sa,oe,D,ne,ve,se,xe,ta,wa,Ia,le,ra,Ve,_a,Fe,_e,ze,Ge,Ba,Ja;let g=[],H=(W=Object.keys(x))==null?void 0:W.filter(R=>R==null?void 0:R.includes("name"));for(let R in x)H!=null&&H.find(j=>j===R)&&g.push(x==null?void 0:x[R]);if(g=g.reverse(),(x==null?void 0:x.comp)==="Table"){let R=(Oe=(ge=(ae=x==null?void 0:x.compData)==null?void 0:ae.find(G=>(G==null?void 0:G.key)==="tableContents"))==null?void 0:ge.contents)==null?void 0:Oe.map(G=>{let V={};for(let K in G)K!=="id"&&K!=="create_time"&&K!=="update_time"&&K!=="sort"&&K!=="create_user_id"&&K!=="update_user_id"&&K!=="department_id"&&(V[K]=G==null?void 0:G[K]);return G=Object.values(V),G}),j=(te=(we=x==null?void 0:x.compData)==null?void 0:we.find(G=>(G==null?void 0:G.key)==="header"))==null?void 0:te.contents;if(Array.isArray(j==null?void 0:j[0])?(j[0].push({label:"排序",prop:"sort"}),(me=j[0])!=null&&me.find(G=>(G==null?void 0:G.prop)==="disabled")&&(j[0]=(J=j[0])==null?void 0:J.filter(G=>(G==null?void 0:G.prop)!=="disabled"),j[0].unshift({label:"",prop:"disabled",sortable:!1}))):(j.push({label:"排序",prop:"sort"}),j!=null&&j.find(G=>(G==null?void 0:G.prop)==="disabled")&&(j=j==null?void 0:j.filter(G=>(G==null?void 0:G.prop)!=="disabled"),j.unshift({label:"",prop:"disabled",sortable:!1}))),j!=null&&j.some(G=>{var V;return(G==null?void 0:G.calculatorFilter)&&((V=G==null?void 0:G.calculatorFilter)==null?void 0:V.includes("Auto"))})&&(R=await oi(R,j,"Auto"),R=R==null?void 0:R.map(G=>Object.values(G))),x!=null&&x.fatherSyncContents){Array.isArray((ue=x==null?void 0:x.fatherSyncContents)==null?void 0:ue[0])&&(x.fatherSyncContents=(Ye=x==null?void 0:x.fatherSyncContents)==null?void 0:Ye[0]);let G=(Sa=wt.value)==null?void 0:Sa.find(V=>(V==null?void 0:V.condition)==="child");x.fatherSyncContents=(oe=x==null?void 0:x.fatherSyncContents)==null?void 0:oe.map(V=>{var K,Ne,Q,ke,pe,je;return((Ne=V==null?void 0:V.menus)==null?void 0:Ne[((K=V==null?void 0:V.menus)==null?void 0:K.length)-1])==="/"&&(G==null?void 0:G.parentContent)+"/"!==(V==null?void 0:V.menus)?V.menus=(V==null?void 0:V.menus)+(G==null?void 0:G.value):((ke=V==null?void 0:V.menus)==null?void 0:ke[((Q=V==null?void 0:V.menus)==null?void 0:Q.length)-1])==="/"&&(G==null?void 0:G.parentContent)+"/"===(V==null?void 0:V.menus)&&(V.menus=(je=V.menus)==null?void 0:je.slice(0,((pe=V.menus)==null?void 0:pe.length)-1)),V})}if(x!=null&&x.sonSyncContents){Array.isArray((D=x==null?void 0:x.sonSyncContents)==null?void 0:D[0])&&(x.sonSyncContents=(ne=x==null?void 0:x.sonSyncContents)==null?void 0:ne[0]);let G=(ve=wt.value)==null?void 0:ve.find(V=>(V==null?void 0:V.condition)==="child");x.sonSyncContents=(se=x==null?void 0:x.sonSyncContents)==null?void 0:se.map(V=>{var K,Ne,Q,ke,pe,je;return((Ne=V==null?void 0:V.menus)==null?void 0:Ne[((K=V==null?void 0:V.menus)==null?void 0:K.length)-1])==="/"&&(G==null?void 0:G.parentContent)+"/"!==(V==null?void 0:V.menus)?V.menus=(V==null?void 0:V.menus)+(G==null?void 0:G.value):((ke=V==null?void 0:V.menus)==null?void 0:ke[((Q=V==null?void 0:V.menus)==null?void 0:Q.length)-1])==="/"&&(G==null?void 0:G.parentContent)+"/"===(V==null?void 0:V.menus)&&(V.menus=(je=V.menus)==null?void 0:je.slice(0,((pe=V.menus)==null?void 0:pe.length)-1)),V})}if(x!=null&&x.relatedQuotes){Array.isArray((xe=x==null?void 0:x.relatedQuotes)==null?void 0:xe[0])&&(x.relatedQuotes=(ta=x==null?void 0:x.relatedQuotes)==null?void 0:ta[0]);let G=(wa=wt.value)==null?void 0:wa.find(V=>(V==null?void 0:V.condition)==="child");x.relatedQuotes=(Ia=x==null?void 0:x.relatedQuotes)==null?void 0:Ia.map(V=>{var K,Ne,Q,ke,pe,je;return((Ne=V==null?void 0:V.menus)==null?void 0:Ne[((K=V==null?void 0:V.menus)==null?void 0:K.length)-1])==="/"&&(G==null?void 0:G.parentContent)+"/"!==(V==null?void 0:V.menus)?V.menus=(V==null?void 0:V.menus)+(G==null?void 0:G.value):((ke=V==null?void 0:V.menus)==null?void 0:ke[((Q=V==null?void 0:V.menus)==null?void 0:Q.length)-1])==="/"&&(G==null?void 0:G.parentContent)+"/"===(V==null?void 0:V.menus)&&(V.menus=(je=V.menus)==null?void 0:je.slice(0,((pe=V.menus)==null?void 0:pe.length)-1)),V})}x={filter:(ra=(le=x==null?void 0:x.compData)==null?void 0:le.find(G=>(G==null?void 0:G.key)==="filter"))==null?void 0:ra.contents,key:x==null?void 0:x.comp,name:g,tableColumns:j,tableContents:R,menuFilter:x==null?void 0:x.menuFilter,fatherSyncContents:x==null?void 0:x.fatherSyncContents,relatedQuotes:x==null?void 0:x.relatedQuotes,sonSyncContents:x==null?void 0:x.sonSyncContents}}else{let R=(Fe=(_a=(Ve=x==null?void 0:x.compData)==null?void 0:Ve.find(G=>(G==null?void 0:G.key)==="formContent"))==null?void 0:_a.contents)==null?void 0:Fe.map(G=>(G==null?void 0:G.value)??"");R=[R];let j=(Ge=(ze=(_e=x==null?void 0:x.compData)==null?void 0:_e.find(G=>(G==null?void 0:G.key)==="formContent"))==null?void 0:ze.contents)==null?void 0:Ge.map(G=>(G.value="",G));x={contents:R,filter:(Ja=(Ba=x==null?void 0:x.compData)==null?void 0:Ba.find(G=>(G==null?void 0:G.key)==="filter"))==null?void 0:Ja.contents,key:x==null?void 0:x.comp,name:g,value:j,fatherSyncContents:x==null?void 0:x.fatherSyncContents,relatedQuotes:x==null?void 0:x.relatedQuotes,sonSyncContents:x==null?void 0:x.sonSyncContents}}return x.isShow=!1,x}),S=await Promise.all(S);let $=[{key:"menuPath",contents:[{path:l,fatherPath:(w=(O=(N=Z==null?void 0:Z.data)==null?void 0:N.result)==null?void 0:O[0])==null?void 0:w.father_name,isShow:!1}]},{key:l,contents:S}];await L.createPlatFormDataApi({platId:parseInt((Y=Fr==null?void 0:Fr.value)==null?void 0:Y.plat_id),changeData:$});let T=await L.getPageDataApi({platId:parseInt((_=Fr==null?void 0:Fr.value)==null?void 0:_.plat_id),pageName:l});s=(A=T==null?void 0:T.data)==null?void 0:A.result}}n&&await pp(s,!!(r!=null&&r.originPath));let u=await Ji(s,r);return n&&(u=await fp(u)),u},es=async l=>{var t,s,u,k,f,v,y,c,E,N,O;let n=(t=l==null?void 0:l.menus)==null?void 0:t.join("/");l!=null&&l.endChildMenu&&(l==null?void 0:l.endChildMenu)!==""&&(n==null?void 0:n[(n==null?void 0:n.length)-1])==="/"&&(n=n+(l==null?void 0:l.endChildMenu)),(n==null?void 0:n[(n==null?void 0:n.length)-1])==="/"&&(n=n+((u=(s=l.value)==null?void 0:s.split(" "))==null?void 0:u[0]));let r=await jr(n,!1);if(r=(k=r==null?void 0:r.filter(w=>{var Y,_;return(w==null?void 0:w.name)===((_=l==null?void 0:l.groups)==null?void 0:_[((Y=l==null?void 0:l.groups)==null?void 0:Y.length)-1])}))==null?void 0:k[0],(v=(f=r==null?void 0:r.compData)==null?void 0:f.find(w=>(w==null?void 0:w.key)==="tableContents"))!=null&&v.contents){r=(c=(y=r==null?void 0:r.compData)==null?void 0:y.find(Y=>(Y==null?void 0:Y.key)==="tableContents"))==null?void 0:c.contents;let w=((E=l==null?void 0:l.words)==null?void 0:E[0])??(l==null?void 0:l.prop);return r=r==null?void 0:r.filter(Y=>{var _,A,Z;return(Y==null?void 0:Y[l!=null&&l.endChildMenu?w:l==null?void 0:l.prop])===(l!=null&&l.relatedWords&&((_=l==null?void 0:l.relatedWords)==null?void 0:_.length)>0?(Z=(A=l.value)==null?void 0:A.split(" "))==null?void 0:Z[0]:l.value)}),r==null?void 0:r[0]}else{let w=(O=(N=r==null?void 0:r.compData)==null?void 0:N.find(_=>(_==null?void 0:_.key)==="formContent"))==null?void 0:O.contents,Y={};return w==null||w.forEach(_=>{Y[_.prop]=_.value}),Y}},hp={key:0,class:"extra-button-content"},vp={class:"table-operator-wrap"},mp={key:0,class:"extra-button-filter"},yp={key:1,class:"extra-header"},gp=["onClick"],bp={class:"table-op-text"},kp={class:"table-op-text"},xp={class:"drop-menu",style:{width:"120px"}},wp=["onClick"],_p={key:0},Cp={key:1},Ep=["onClick"],Sp={class:"table-op-text"},Dp={key:1,class:"extra-button-content tabs-button-wrapper"},Bp={class:"table-operator-wrap"},Np={class:"extra-button-filter"},Tp={key:0,class:"extra-header"},Ap={class:"table-op-action"},Mp={class:"table-op-text"},zp={class:"drop-menu",style:{width:"120px"}},Op={key:0},Ip={key:1},Lp=["onClick"],Vp={class:"table-op-text"},$p={__name:"header",props:{pageLayout:{type:String,default:"vertical"},lockingPage:Boolean,level:{type:Number,default:1},compName:{type:String,default:"表格名称",required:!1},filterShow:{type:Boolean,default:!1},isDevMode:Boolean,selectNums:Number,dataNums:Number,filterValues:Array,buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]}},emits:["buttonClick","filter","getImportData"],setup(l,{emit:n}){const r=n,t=l,s=a.ref(""),u=a.ref(!1),k=a.ref([]),f=a.ref([{label:"清空",background:"#999999"},{label:"确认"}]),v=[{label:"新增",icon:"new"},{label:"导入",icon:"import_101"},{label:"导出",icon:"export_101"},{label:"导出paraform",icon:"export_101"},{label:"OCR识别",icon:"OCR识别"},{label:"切换视图",icon:"cardViewport_101"}];function y(x,g){return x.map(H=>{const W={...H};return g.forEach(ae=>{delete W[ae]}),W})}function c(x){if(!x||x.t!=="n")return(x==null?void 0:x.v)??"";const g=x.v;if(x.z){const H=String(x.z).toLowerCase(),W=["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 Oe of W)if(H.includes(Oe))return E(g);const ae=/[ymdhms]/.test(H),ge=/^[0#\.\,\s]+$/.test(H.replace(/[\\\/\-:]/g,""));if(ae&&!ge)return E(g)}if(g>=1&&g<=73050){if(g<5e3)return g;if(g>=5e3&&g<4e4){const H=Math.floor((g-25569)/365.25)+1970;return H>=1970&&H<=2e3&&x.z&&/[ymd]/.test(String(x.z).toLowerCase())?E(g):g}if(g>=4e4)return E(g)}return g}function E(x){if(typeof x!="number")return x;try{const g=new Date((x-25569)*86400*1e3);if(isNaN(g.getTime()))return x;const H=g.getFullYear(),W=String(g.getMonth()+1).padStart(2,"0"),ae=String(g.getDate()).padStart(2,"0");return`${H}-${W}-${ae}`}catch{return x}}const N=x=>{const g=x.raw;if(!g)return;const H=new FileReader;H.onload=W=>{try{const ae=new Uint8Array(W.target.result),ge=Aa.readSync(ae,{type:"array"}),Oe=ge.SheetNames[0],we=ge.Sheets[Oe],me=Aa.utils.decode_range(we["!ref"]).e.c+1,J=new Array(me).fill(""),ue=[];for(const ne in we){if(ne[0]==="!")continue;const{r:ve,c:se}=Aa.utils.decode_cell(ne),xe=we[ne];let ta=c(xe);if((ta==null||ta==="")&&(ta=""),ve===0)J[se]=ta;else{if(!ue[ve-1]){ue[ve-1]={};for(let wa=0;wa<me;wa++)ue[ve-1][`col_${wa}`]=""}ue[ve-1][`col_${se}`]=ta}}for(let ne=0;ne<me;ne++)J[ne]===void 0&&(J[ne]="");const Ye=[];for(let ne=0;ne<J.length;ne++)(!J[ne]||J[ne].toString().trim()==="")&&Ye.push(ne);let Sa,oe;(Ye==null?void 0:Ye.length)>0?(Wa.ElMessage.warning("存在键为空的列,已自动过滤,请检查补充"),Sa=J.filter((ne,ve)=>!Ye.includes(ve)),oe=y(ue,Ye==null?void 0:Ye.map(ne=>`col_${ne}`))):(Sa=J,oe=ue);const D=ue==null?void 0:ue[0];if(!(D!=null&&D.hasOwnProperty("col_0")))return Wa.ElMessage.error("导入的数据列不匹配,请检查是否错位");r("getImportData",Sa,oe)}catch(ae){throw Wa.ElMessage.error(ae.message),new Error(ae.message)}},H.readAsArrayBuffer(g)},O=x=>{var H;const g=(H=k.value)==null?void 0:H.reduce((W,ae,ge)=>(ge===0?W[ae.label]=x:W[ae.label]=ae==null?void 0:ae.value,W),{});r("filter",g,x,!0)},w=(x,g={})=>{r("buttonClick",x,"",g)},Y=x=>{var g,H;k.value=(H=(g=sa.getColumnChild(L.cloneDeep(x)))==null?void 0:g.filter(W=>(W==null?void 0:W.label)!==""&&(W==null?void 0:W.label)!=="操作"))==null?void 0:H.map(W=>({label:(W==null?void 0:W.label)??"",value:"",name:(W==null?void 0:W.prop)??"",isFormColHidden:W==null?void 0:W.isTableColHidden,width:2,prop:(W==null?void 0:W.prop)??""}))},_=a.ref(!1),A=x=>{var g;if((x==null?void 0:x.buttonName)==="确认"&&(r("filter",x==null?void 0:x.content),_.value=(x==null?void 0:x.content)&&Object.values(x==null?void 0:x.content).length>0),(x==null?void 0:x.buttonName)==="清空"){const H=L.cloneDeep(x==null?void 0:x.content);for(const W in H)H[W]="";k.value=(g=k.value)==null?void 0:g.map(W=>({...W,value:""})),r("filter",H),_.value=!1}u.value=!1},Z=()=>{u.value=!u.value},S=()=>{var g,H;k.value=(g=k.value)==null?void 0:g.map(W=>({...W,value:""}));const x=(H=k.value)==null?void 0:H.reduce((W,ae)=>(W[ae.label]=ae.value,W),{});r("filter",x)},$=a.ref(null);let T;return T=x=>{var ae;if(!u.value)return;const g=(ae=$==null?void 0:$.value)==null?void 0:ae.$el,H=g==null?void 0:g.contains(x.target);let W=!1;document.querySelectorAll(".el-popover, .el-popper").forEach(ge=>{ge.contains(x.target)&&(W=!0)}),!H&&!W&&(u.value=!1)},a.onMounted(()=>{document.addEventListener("click",T),Y(t.columns)}),a.onBeforeUnmount(()=>{document.removeEventListener("click",T)}),a.watch(()=>t.columns,()=>{Y(t.columns)},{deep:!0,immediate:!0}),(x,g)=>{var we,te,me,J,ue,Ye,Sa,oe;const H=a.resolveComponent("el-icon"),W=a.resolveComponent("svg-icon"),ae=a.resolveComponent("el-input"),ge=a.resolveComponent("el-upload"),Oe=a.resolveComponent("el-button");return l.pageLayout==="vertical"?(a.openBlock(),a.createElementBlock("div",hp,[a.createElementVNode("div",{class:a.normalizeClass(l.compName?"table-name-wrap":""),style:a.normalizeStyle({background:(t==null?void 0:t.level)>1?"transparent":"var(--ssgroup-background)",paddingLeft:((t==null?void 0:t.level)-1)*12+"px",fontWeight:600-((t==null?void 0:t.level)-1)*100>=400?600-((t==null?void 0:t.level)-1)*100:400,fontSize:17-(t==null?void 0:t.level)>=14?17-(t==null?void 0:t.level)+"px":"14px"})},a.toDisplayString(l.compName),7),a.createElementVNode("div",vp,[t!=null&&t.filterShow?(a.openBlock(),a.createElementBlock("div",mp,[a.createVNode(Eu,{trigger:"contextmenu",ref_key:"popOverRef",ref:$,title:"",width:800,placement:"bottom-start",isVisible:u.value,"onUpdate:isVisible":g[4]||(g[4]=D=>u.value=D)},{reference:a.withCtx(()=>{var D,ne,ve,se;return[a.createVNode(ae,{modelValue:s.value,"onUpdate:modelValue":g[0]||(g[0]=xe=>s.value=xe),style:{"min-width":"80px"},placeholder:_.value?(ve=(ne=(D=l.filterValues)==null?void 0:D.filter(xe=>xe))==null?void 0:ne.slice(0,3))==null?void 0:ve.join("/"):"搜索","prefix-icon":a.unref(Wa.search_default),clearable:"",onInput:O,disabled:((se=k.value)==null?void 0:se.length)===0},{suffix:a.withCtx(()=>{var xe,ta;return[!s.value&&((ta=(xe=l.filterValues)==null?void 0:xe.filter(wa=>wa))!=null&&ta.join("/"))?(a.openBlock(),a.createBlock(H,{key:0,style:{cursor:"pointer"},onClick:S},{default:a.withCtx(()=>[a.createVNode(a.unref(Wa.circle_close_default))]),_:1})):a.createCommentVNode("",!0)]}),append:a.withCtx(()=>[a.createElementVNode("span",{title:"条件查询",onClick:a.withModifiers(Z,["stop"])},[a.createVNode(W,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:a.withCtx(()=>[a.createElementVNode("div",{class:"form-content-value",onKeydown:g[1]||(g[1]=a.withModifiers(()=>{},["stop"])),onKeyup:g[2]||(g[2]=a.withModifiers(()=>{},["stop"])),onKeypress:g[3]||(g[3]=a.withModifiers(()=>{},["stop"]))},[(a.openBlock(),a.createBlock(rl.ssForm,{rowContents:k.value,buttonValue:f.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:f.value,isStartJustify:!1,onOnButtonClick:A},null,8,["rowContents","buttonValue"]))],32)]),_:1},8,["isVisible"])])):a.createCommentVNode("",!0),l.buttons&&((we=l.buttons)==null?void 0:we.length)>0?(a.openBlock(),a.createElementBlock("div",yp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((te=l.buttons)==null?void 0:te.filter(D=>l.isDevMode||(D==null?void 0:D.label)!=="修改模板"),(D,ne)=>{var ve;return a.openBlock(),a.createElementBlock("div",{class:"extra-contents",key:ne},[(D==null?void 0:D.type)==="upload"?(a.openBlock(),a.createBlock(ge,{key:0,class:"upload-button-wrap","on-change":N,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1,disabled:!!l.lockingPage},{default:a.withCtx(()=>{var se;return[a.createElementVNode("div",{class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}]),onClick:xe=>w(D==null?void 0:D.label)},[a.createVNode(W,{class:"table-op-icon",name:(se=v==null?void 0:v.find(xe=>(xe==null?void 0:xe.label)===(D==null?void 0:D.label)))==null?void 0:se.icon},null,8,["name"]),a.createElementVNode("span",bp,a.toDisplayString(D==null?void 0:D.label),1)],10,gp)]}),_:2},1032,["disabled"])):a.createCommentVNode("",!0),(D==null?void 0:D.type)==="popover"?(a.openBlock(),a.createBlock(rl._sfc_main,{key:1},{dropTitle:a.withCtx(()=>{var se;return[a.createElementVNode("div",{class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}])},[a.createVNode(W,{class:"table-op-icon",name:(se=v==null?void 0:v.find(xe=>(xe==null?void 0:xe.label)===(D==null?void 0:D.label)))==null?void 0:se.icon},null,8,["name"]),a.createElementVNode("span",kp,a.toDisplayString(D==null?void 0:D.label),1)],2)]}),dropMenu:a.withCtx(()=>[a.createElementVNode("div",xp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(D==null?void 0:D.contents,se=>{var xe,ta;return a.openBlock(),a.createElementBlock("div",{key:se==null?void 0:se.label,class:a.normalizeClass(["table-op-drop-item",{"is-disabled":!!l.lockingPage}]),onClick:wa=>!l.lockingPage&&w(se==null?void 0:se.label)},[a.createTextVNode(a.toDisplayString(se==null?void 0:se.label),1),(xe=se==null?void 0:se.label)!=null&&xe.includes("选中")?(a.openBlock(),a.createElementBlock("span",_p,"("+a.toDisplayString(l.selectNums)+")",1)):a.createCommentVNode("",!0),(ta=se==null?void 0:se.label)!=null&&ta.includes("全部")?(a.openBlock(),a.createElementBlock("span",Cp,"("+a.toDisplayString(l.dataNums)+")",1)):a.createCommentVNode("",!0)],10,wp)}),128))])]),_:2},1024)):a.createCommentVNode("",!0),!(D!=null&&D.type)||(D==null?void 0:D.type)==="methodButton"?(a.openBlock(),a.createElementBlock("div",{key:2,id:"themeButton",class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}]),onClick:se=>!l.lockingPage&&w(D==null?void 0:D.label,D)},[a.createVNode(W,{class:"table-op-icon",name:(ve=v==null?void 0:v.find(se=>(se==null?void 0:se.label)===(D==null?void 0:D.label)))==null?void 0:ve.icon},null,8,["name"]),a.createElementVNode("span",Sp,a.toDisplayString(D==null?void 0:D.label),1)],10,Ep)):a.createCommentVNode("",!0)])}),128))])):a.createCommentVNode("",!0)])])):(a.openBlock(),a.createElementBlock("div",Dp,[a.createElementVNode("div",Bp,[a.createElementVNode("div",Np,[a.createVNode(ae,{modelValue:s.value,"onUpdate:modelValue":g[5]||(g[5]=D=>s.value=D),style:{"min-width":"80px"},placeholder:_.value?(ue=(J=(me=l.filterValues)==null?void 0:me.filter(D=>D))==null?void 0:J.slice(0,3))==null?void 0:ue.join("/"):"搜索","prefix-icon":a.unref(Wa.search_default),clearable:"",onInput:O,disabled:((Ye=k.value)==null?void 0:Ye.length)===0},{suffix:a.withCtx(()=>{var D,ne;return[!s.value&&((ne=(D=l.filterValues)==null?void 0:D.filter(ve=>ve))!=null&&ne.join("/"))?(a.openBlock(),a.createBlock(H,{key:0,style:{cursor:"pointer"},onClick:S},{default:a.withCtx(()=>[a.createVNode(a.unref(Wa.circle_close_default))]),_:1})):a.createCommentVNode("",!0)]}),append:a.withCtx(()=>[a.createElementVNode("span",{title:"条件查询",onClick:a.withModifiers(Z,["stop"])},[a.createVNode(W,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]),l.buttons&&((Sa=l.buttons)==null?void 0:Sa.length)>0?(a.openBlock(),a.createElementBlock("div",Tp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((oe=l.buttons)==null?void 0:oe.filter(D=>l.isDevMode||(D==null?void 0:D.label)!=="修改模板"),(D,ne)=>{var ve;return a.openBlock(),a.createElementBlock("div",{class:"extra-contents",key:ne},[(D==null?void 0:D.type)==="upload"?(a.openBlock(),a.createBlock(ge,{key:0,class:"upload-button-wrap","on-change":N,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1},{default:a.withCtx(()=>{var se;return[a.createElementVNode("div",Ap,[a.createVNode(W,{class:"table-op-icon",name:(se=v==null?void 0:v.find(xe=>(xe==null?void 0:xe.label)===(D==null?void 0:D.label)))==null?void 0:se.icon},null,8,["name"]),a.createElementVNode("span",Mp,a.toDisplayString(D==null?void 0:D.label),1)])]}),_:2},1024)):a.createCommentVNode("",!0),(D==null?void 0:D.type)==="popover"?(a.openBlock(),a.createBlock(rl._sfc_main,{key:1},{dropTitle:a.withCtx(()=>[(D==null?void 0:D.type)==="popover"?(a.openBlock(),a.createBlock(Oe,{key:0,style:{background:"transparent",color:"#000000"}},{icon:a.withCtx(()=>{var se;return[a.createVNode(W,{class:"table-op-icon",name:(se=v==null?void 0:v.find(xe=>(xe==null?void 0:xe.label)===(D==null?void 0:D.label)))==null?void 0:se.icon},null,8,["name"])]}),default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(D==null?void 0:D.label),1)]),_:2},1024)):a.createCommentVNode("",!0)]),dropMenu:a.withCtx(()=>[a.createElementVNode("div",zp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(D==null?void 0:D.contents,se=>(a.openBlock(),a.createBlock(Oe,{key:se==null?void 0:se.label,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:xe=>w(se==null?void 0:se.label)},{default:a.withCtx(()=>{var xe,ta;return[a.createTextVNode(a.toDisplayString(se==null?void 0:se.label),1),(xe=se==null?void 0:se.label)!=null&&xe.includes("选中")?(a.openBlock(),a.createElementBlock("span",Op,"("+a.toDisplayString(l.selectNums)+")",1)):a.createCommentVNode("",!0),(ta=se==null?void 0:se.label)!=null&&ta.includes("全部")?(a.openBlock(),a.createElementBlock("span",Ip,"("+a.toDisplayString(l.dataNums)+")",1)):a.createCommentVNode("",!0)]}),_:2},1032,["onClick"]))),128))])]),_:2},1024)):a.createCommentVNode("",!0),!(D!=null&&D.type)||(D==null?void 0:D.type)==="methodButton"?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}]),id:"themeButton",onClick:se=>!l.lockingPage&&w(D==null?void 0:D.label,D)},[a.createVNode(W,{class:"table-op-icon",name:(ve=v==null?void 0:v.find(se=>(se==null?void 0:se.label)===(D==null?void 0:D.label)))==null?void 0:ve.icon},null,8,["name"]),a.createElementVNode("span",Vp,a.toDisplayString(D==null?void 0:D.label),1)],10,Lp)):a.createCommentVNode("",!0)])}),128))])):a.createCommentVNode("",!0)])]))}}},Rp=Fl._export_sfc($p,[["__scopeId","data-v-3a44c010"]]),Pp={__name:"index",props:{columns:Array,tableData:Array},setup(l){return(n,r)=>{const t=a.resolveComponent("el-table-column"),s=a.resolveComponent("el-table");return a.openBlock(),a.createBlock(s,{data:l.tableData,style:{width:"100%"},stripe:"","max-height":"500"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.columns,u=>{var k;return a.openBlock(),a.createBlock(t,{key:u==null?void 0:u.prop,label:u==null?void 0:u.label,prop:u==null?void 0:u.prop,fixed:(u==null?void 0:u.prop)==="operate"?"right":u==null?void 0:u.fixed,align:(u==null?void 0:u.align)??"left","show-overflow-tooltip":(u==null?void 0:u.showOverflowTooltip)??!0,width:u==null?void 0:u.width,"min-width":(u==null?void 0:u.minWidth)||((u==null?void 0:u.prop)==="operate"?80:(((k=u==null?void 0:u.label)==null?void 0:k.length)*2||4)*27)},{default:a.withCtx(f=>[a.renderSlot(n.$slots,"content",{row:f.row,column:f.column,$index:f.$index,scope:f}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(u.children,(v,y)=>(a.openBlock(),a.createBlock(rl._sfc_main$2,{key:y,column:v,tableData:l.tableData},a.createSlots({_:2},[a.renderList(n.$slots,(c,E)=>({name:E,fn:a.withCtx(({row:N,slotData:O,item:w,column:Y})=>[a.renderSlot(n.$slots,E,a.mergeProps({ref_for:!0},O??N,{item:w??v,slotData:O??N,row:N,column:Y,columnProp:v}))])}))]),1032,["column","tableData"]))),128))]),_:2},1032,["label","prop","fixed","align","show-overflow-tooltip","width","min-width"])}),128))]),_:3},8,["data"])}}};class Fp extends Aa.Loader{constructor(n){super(n),this.littleEndian=!0}load(n,r,t,s){const u=this,k=new Aa.FileLoader(u.manager);k.setPath(u.path),k.setResponseType("arraybuffer"),k.setRequestHeader(u.requestHeader),k.setWithCredentials(u.withCredentials),k.load(n,function(f){try{r(u.parse(f))}catch(v){s?s(v):console.error(v),u.manager.itemError(n)}},t,s)}_getDataView(n,r,t,s){switch(t){case"F":return s===8?n.getFloat64(r,this.littleEndian):n.getFloat32(r,this.littleEndian);case"I":return s===1?n.getInt8(r):s===2?n.getInt16(r,this.littleEndian):n.getInt32(r,this.littleEndian);case"U":return s===1?n.getUint8(r):s===2?n.getUint16(r,this.littleEndian):n.getUint32(r,this.littleEndian)}}parse(n){function r(O,w){const Y=O.length,_=new Uint8Array(w);let A=0,Z=0,S,$,T;do if(S=O[A++],S<32){if(S++,Z+S>w)throw new Error("Output buffer is not large enough");if(A+S>Y)throw new Error("Invalid compressed data");do _[Z++]=O[A++];while(--S)}else{if($=S>>5,T=Z-((S&31)<<8)-1,A>=Y)throw new Error("Invalid compressed data");if($===7&&($+=O[A++],A>=Y))throw new Error("Invalid compressed data");if(T-=O[A++],Z+$+2>w)throw new Error("Output buffer is not large enough");if(T<0)throw new Error("Invalid compressed data");if(T>=Z)throw new Error("Invalid compressed data");do _[Z++]=_[T++];while(--$+2)}while(A<Y);return _}function t(O){const w={},Y=new Uint8Array(O);let _="",A="",Z=0,S=!1;const $=Y.length;for(;Z<$&&S===!1;){const H=String.fromCharCode(Y[Z++]);H===`
2
- `||H==="\r"?(A.trim().toLowerCase().startsWith("data")&&(S=!0),A=""):A+=H,_+=H}const T=_.search(/[\r\n]DATA\s(\S*)\s/i),x=/[\r\n]DATA\s(\S*)\s/i.exec(_.slice(T-1));if(w.data=x[1],w.headerLen=x[0].length+T,w.str=_.slice(0,w.headerLen),w.str=w.str.replace(/#.*/gi,""),w.version=/^VERSION (.*)/im.exec(w.str),w.fields=/^FIELDS (.*)/im.exec(w.str),w.size=/^SIZE (.*)/im.exec(w.str),w.type=/^TYPE (.*)/im.exec(w.str),w.count=/^COUNT (.*)/im.exec(w.str),w.width=/^WIDTH (.*)/im.exec(w.str),w.height=/^HEIGHT (.*)/im.exec(w.str),w.viewpoint=/^VIEWPOINT (.*)/im.exec(w.str),w.points=/^POINTS (.*)/im.exec(w.str),w.version!==null&&(w.version=parseFloat(w.version[1])),w.fields=w.fields!==null?w.fields[1].split(" "):[],w.type!==null&&(w.type=w.type[1].split(" ")),w.width!==null&&(w.width=parseInt(w.width[1])),w.height!==null&&(w.height=parseInt(w.height[1])),w.viewpoint!==null&&(w.viewpoint=w.viewpoint[1]),w.points!==null&&(w.points=parseInt(w.points[1],10)),w.points===null&&(w.points=w.width*w.height),w.size!==null&&(w.size=w.size[1].split(" ").map(function(H){return parseInt(H,10)})),w.count!==null)w.count=w.count[1].split(" ").map(function(H){return parseInt(H,10)});else{w.count=[];for(let H=0,W=w.fields.length;H<W;H++)w.count.push(1)}w.offset={};let g=0;for(let H=0,W=w.fields.length;H<W;H++)w.data==="ascii"?w.offset[w.fields[H]]=H:(w.offset[w.fields[H]]=g,g+=w.size[H]*w.count[H]);return w.rowSize=g,w}const s=t(n),u=[],k=[],f=[],v=[],y=[],c=new Aa.Color;if(s.data==="ascii"){const O=s.offset,_=new TextDecoder().decode(n).slice(s.headerLen).split(`
3
- `);for(let A=0,Z=_.length;A<Z;A++){if(_[A]==="")continue;const S=_[A].split(" ");if(O.x!==void 0&&(u.push(parseFloat(S[O.x])),u.push(parseFloat(S[O.y])),u.push(parseFloat(S[O.z]))),O.rgb!==void 0){const $=s.fields.findIndex(ge=>ge==="rgb"),T=s.type[$],x=parseFloat(S[O.rgb]);let g=x;if(T==="F"){const ge=new Float32Array(1);ge[0]=x,g=new Int32Array(ge.buffer)[0]}const H=(g>>16&255)/255,W=(g>>8&255)/255,ae=(g>>0&255)/255;c.setRGB(H,W,ae,Aa.SRGBColorSpace),f.push(c.r,c.g,c.b)}O.normal_x!==void 0&&(k.push(parseFloat(S[O.normal_x])),k.push(parseFloat(S[O.normal_y])),k.push(parseFloat(S[O.normal_z]))),O.intensity!==void 0&&v.push(parseFloat(S[O.intensity])),O.label!==void 0&&y.push(parseInt(S[O.label]))}}if(s.data==="binary_compressed"){const O=new Uint32Array(n.slice(s.headerLen,s.headerLen+8)),w=O[0],Y=O[1],_=r(new Uint8Array(n,s.headerLen+8,w),Y),A=new DataView(_.buffer),Z=s.offset;for(let S=0;S<s.points;S++){if(Z.x!==void 0){const $=s.fields.indexOf("x"),T=s.fields.indexOf("y"),x=s.fields.indexOf("z");u.push(this._getDataView(A,s.points*Z.x+s.size[$]*S,s.type[$],s.size[$])),u.push(this._getDataView(A,s.points*Z.y+s.size[T]*S,s.type[T],s.size[T])),u.push(this._getDataView(A,s.points*Z.z+s.size[x]*S,s.type[x],s.size[x]))}if(Z.rgb!==void 0){const $=s.fields.indexOf("rgb"),T=A.getUint8(s.points*Z.rgb+s.size[$]*S+2)/255,x=A.getUint8(s.points*Z.rgb+s.size[$]*S+1)/255,g=A.getUint8(s.points*Z.rgb+s.size[$]*S+0)/255;c.setRGB(T,x,g,Aa.SRGBColorSpace),f.push(c.r,c.g,c.b)}if(Z.normal_x!==void 0){const $=s.fields.indexOf("normal_x"),T=s.fields.indexOf("normal_y"),x=s.fields.indexOf("normal_z");k.push(this._getDataView(A,s.points*Z.normal_x+s.size[$]*S,s.type[$],s.size[$])),k.push(this._getDataView(A,s.points*Z.normal_y+s.size[T]*S,s.type[T],s.size[T])),k.push(this._getDataView(A,s.points*Z.normal_z+s.size[x]*S,s.type[x],s.size[x]))}if(Z.intensity!==void 0){const $=s.fields.indexOf("intensity");v.push(this._getDataView(A,s.points*Z.intensity+s.size[$]*S,s.type[$],s.size[$]))}if(Z.label!==void 0){const $=s.fields.indexOf("label");y.push(A.getInt32(s.points*Z.label+s.size[$]*S,this.littleEndian))}}}if(s.data==="binary"){const O=new DataView(n,s.headerLen),w=s.offset;for(let Y=0,_=0;Y<s.points;Y++,_+=s.rowSize){if(w.x!==void 0){const A=s.fields.indexOf("x"),Z=s.fields.indexOf("y"),S=s.fields.indexOf("z");u.push(this._getDataView(O,_+w.x,s.type[A],s.size[A])),u.push(this._getDataView(O,_+w.y,s.type[Z],s.size[Z])),u.push(this._getDataView(O,_+w.z,s.type[S],s.size[S]))}if(w.rgb!==void 0){const A=O.getUint8(_+w.rgb+2)/255,Z=O.getUint8(_+w.rgb+1)/255,S=O.getUint8(_+w.rgb+0)/255;c.setRGB(A,Z,S,Aa.SRGBColorSpace),f.push(c.r,c.g,c.b)}if(w.normal_x!==void 0){const A=s.fields.indexOf("normal_x"),Z=s.fields.indexOf("normal_y"),S=s.fields.indexOf("normal_z");k.push(this._getDataView(O,_+w.normal_x,s.type[A],s.size[A])),k.push(this._getDataView(O,_+w.normal_y,s.type[Z],s.size[Z])),k.push(this._getDataView(O,_+w.normal_z,s.type[S],s.size[S]))}if(w.intensity!==void 0){const A=s.fields.indexOf("intensity");v.push(this._getDataView(O,_+w.intensity,s.type[A],s.size[A]))}w.label!==void 0&&y.push(O.getInt32(_+w.label,this.littleEndian))}}const E=new Aa.BufferGeometry;u.length>0&&E.setAttribute("position",new Aa.Float32BufferAttribute(u,3)),k.length>0&&E.setAttribute("normal",new Aa.Float32BufferAttribute(k,3)),f.length>0&&E.setAttribute("color",new Aa.Float32BufferAttribute(f,3)),v.length>0&&E.setAttribute("intensity",new Aa.Float32BufferAttribute(v,1)),y.length>0&&E.setAttribute("label",new Aa.Int32BufferAttribute(y,1)),E.computeBoundingSphere();const N=new Aa.PointsMaterial({size:.005});return f.length>0&&(N.vertexColors=!0),new Aa.Points(E,N)}}const jp=L.useModelComp(L.pinia),{systemPath:as}=L.storeToRefs(jp),oo=a.ref(),ls=new WeakMap;function Hp(l,n,r,t,s){const u=async N=>{try{const O=await L.downloadAvatarApi({url:N});if(O.status!==200)throw new Error(`下载失败: ${O.status}`);return O.data}catch(O){throw console.error("addModelFromUrl失败:",O),O}},k=N=>new Promise((O,w)=>{const Y=new FileReader;Y.onload=_=>{try{const A=_.target.result,S=new En.MTLLoader().parse(A);S.preload(),O(S)}catch(A){w(A)}},Y.onerror=()=>{w(new Error("MTL文件读取失败"))},Y.readAsText(N)}),f=async N=>{const O={materials:{},create:function(w){return this.materials[w]?this.materials[w]:(console.warn(`Material '${w}' not found, using default material`),new Aa.MeshPhongMaterial({color:8947848,side:Aa.DoubleSide}))},getAsArray:function(){const w=[];for(const Y in this.materials)w.push(this.materials[Y]);return w},preload:function(){for(const w in this.materials)this.materials[w].map&&(this.materials[w].map.needsUpdate=!0)}};for(const w of N){const Y=await k(w);Object.assign(O.materials,Y.materials)}return O.preload(),O},v=async(N,O=[])=>new Promise((w,Y)=>{const _=new FileReader;_.onload=async A=>{try{const Z=A.target.result;let S=null;O&&O.length>0&&(O.length===1?S=await k(O[0]):S=await f(O));const $=new En.OBJLoader;S&&$.setMaterials(S);const T=$.parse(Z);S||T.traverse(x=>{x.isMesh&&(x.material=new Aa.MeshPhongMaterial({color:8947848,side:Aa.DoubleSide}))}),w(T)}catch(Z){Y(Z)}},_.onerror=()=>{Y(new Error("OBJ文件读取失败"))},_.readAsText(N)}),y=async N=>{var O;try{r.value=!0;const{scene:w}=l();if(!w)throw new Error("Scene not initialized");s();const Y=[];for(let _=0;_<N.length;_++){const A=N[_];t.value=`正在加载模型 ${_+1}/${N.length}...`;const Z=await u(A.objUrl),S=((O=A.objUrl)==null?void 0:O.split("/").pop())||`model_${_}.obj`,$=new File([Z],S,{type:Z.type});let T=[];if(A.mtlUrls){const g=Array.isArray(A.mtlUrls)?A.mtlUrls:[A.mtlUrls];for(let H=0;H<g.length;H++){const W=g[H],ae=await u(W),ge=(W==null?void 0:W.split("/").pop())||`material_${_}_${H}.mtl`,Oe=new File([ae],ge,{type:ae.type});T.push(Oe)}}const x=await v($,T);w.add(x),n.value.push(x),Y.push(x)}return r.value=!1,Y}catch(w){throw console.error("加载模型失败:",w),r.value=!1,w}},c=async(N,O,w=[],Y=[])=>{let _;const A=N.toLowerCase();switch(A){case".txt":case".cpt":case".obj":const Z=await O.text();if(A===".txt"||A===".cpt"){const le=/^(?!.*\bf\b)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?$/gm,Ve=[...Z.matchAll(le)].map(_e=>({x:parseFloat(_e[1]),y:parseFloat(_e[2]),z:parseFloat(_e[3])})),_a=new Aa.BufferGeometry,Fe=Ve.flatMap(_e=>[_e.x,_e.y,_e.z]);if(_a.setAttribute("position",new Aa.Float32BufferAttribute(Fe,3)),A===".txt"){const _e=new Aa.PointsMaterial({color:"#5B5C99",size:1,sizeAttenuation:!1});_=new Aa.Points(_a,_e)}else if(A===".cpt"){const _e=new Aa.LineBasicMaterial({color:"#5B5C99",linewidth:100});_=new Aa.Line(_a,_e)}}else if(A===".obj"){const le=new En.OBJLoader;if(w&&w.length>0){const ra=new En.MTLLoader;for(const Ve of w){const _a=await Ve.text(),Fe=ra.parse(_a);Fe.preload(),le.setMaterials(Fe);break}}_=le.parse(Z),(!w||w.length===0)&&_.traverse(ra=>{ra.isMesh&&(ra.material=new Aa.MeshPhongMaterial({color:"#B3B3D4"})),ra instanceof Aa.Mesh&&(ra.material.side=Aa.DoubleSide)})}break;case".stl":const S=await O.arrayBuffer(),T=new En.STLLoader().parse(S),x=new Aa.MeshPhongMaterial({color:"#B3B3D4",side:Aa.DoubleSide});_=new Aa.Mesh(T,x);break;case".nc":const g=["Mach_B_Axis_0.STL","Mach_C_Axis_0.STL","Mach_X_Axis_0.STL","Mach_Y_Axis_0.STL","Mach_Z_Axis_0.STL","Mach_Spindle_0.STL"],H={"Mach_Y_Axis_0.STL":"rgb(128,118,152)","Mach_B_Axis_0.STL":"rgb(204,143,89)","Mach_C_Axis_0.STL":"rgb(145,245,251)","Mach_X_Axis_0.STL":"rgb(125,158,192)","Mach_Z_Axis_0.STL":"rgb(248,228,118)","Mach_Spindle_0.STL":"rgb(145,145,145)"},W=new Aa.Group,ae=g.map(le=>new Promise((ra,Ve)=>{new En.STLLoader().load(as.value===""?`/model/${le}`:`${as.value}\\${le}`,Fe=>{const _e=new Aa.MeshPhongMaterial({color:H[le]||"#B3B3D4",side:Aa.DoubleSide}),ze=new Aa.Mesh(Fe,_e);ra(ze)},void 0,Ve)}));try{(await Promise.all(ae)).forEach(ra=>W.add(ra)),_=W}catch(le){throw console.error("加载NC文件对应的STL文件失败:",le),new Error("无法加载.NC文件对应的STL文件")}break;case".pcd":const ge=new Fp,Oe=new Aa.Group;try{const le=await Wa.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/target.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),ra=new Blob([le.data],{type:"application/octet-stream;charset=UTF-8"}),Ve=await Wa.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/final.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),_a=new Blob([Ve.data],{type:"application/octet-stream;charset=UTF-8"}),Fe=await new Promise((ze,Ge)=>{const Ba=URL.createObjectURL(ra);ge.load(Ba,Ja=>{const R=new Float32Array(Ja.geometry.attributes.position.count*3);for(let j=0;j<Ja.geometry.attributes.position.count;j++)R[j*3]=1,R[j*3+1]=0,R[j*3+2]=0;Ja.geometry.setAttribute("color",new Aa.BufferAttribute(R,3)),Ja.material.vertexColors=!0,Ja.scale.set(.3,.3,.3),URL.revokeObjectURL(Ba),ze(Ja)},void 0,Ge)}),_e=await new Promise((ze,Ge)=>{const Ba=URL.createObjectURL(_a);ge.load(Ba,Ja=>{const R=new Float32Array(Ja.geometry.attributes.position.count*3);for(let j=0;j<Ja.geometry.attributes.position.count;j++)R[j*3]=0,R[j*3+1]=1,R[j*3+2]=0;Ja.geometry.setAttribute("color",new Aa.BufferAttribute(R,3)),Ja.material.vertexColors=!0,Ja.scale.set(.3,.3,.3),URL.revokeObjectURL(Ba),ze(Ja)},void 0,Ge)});Oe.add(Fe),Oe.add(_e),_=Oe}catch(le){throw console.error("PCD文件加载失败:",le),new Error("无法加载PCD文件")}break;case".urdf":const we=URL.createObjectURL(O),te=new uu.URDFLoader,me="http://139.196.154.85:20026/chfs/shared/机器人/urdf/SmallBender_R-2000iC-165F/meshes",J={maxConcurrentLoads:4,enableCache:!0,enableLOD:!0,simplifyGeometry:!0,shareMaterials:!0,enableInstancing:!0},ue=new WeakMap,Ye=new WeakMap,Sa=new WeakMap,oe=async le=>{if(ue.has(le))return console.log(`从缓存加载: ${le}`),ue.get(le);try{const ra=await Wa.axios.get(`${me}/${le}`,{responseType:"blob",headers:{"Content-Type":"application/json"},timeout:6e5}),Ve=new Blob([ra.data],{type:"application/octet-stream;charset=UTF-8"});return J.enableCache&&ue.set(le,Ve),Ve}catch(ra){throw console.error(`加载文件失败: ${le}`,ra),new Error(`无法加载文件: ${le}`)}},D=(le="default")=>{if(Ye.has(le))return Ye.get(le);const ra=new Aa.MeshPhongMaterial({color:12303291,shininess:30,transparent:!1,alphaTest:.1,side:Aa.FrontSide});return Ye.set(le,ra),ra},ne=le=>{try{le.isBufferGeometry&&le.mergeVertices&&le.mergeVertices(),le.computeVertexNormals&&le.computeVertexNormals(),le.computeBoundingSphere&&le.computeBoundingSphere(),le.deleteAttribute&&le.deleteAttribute("uv2")}catch(ra){console.warn("几何体优化失败,使用原始几何体:",ra)}return le},ve=async(le,ra,Ve)=>{const _a=`stl_${ra}`;if(Sa.has(_a)){const Ge=Sa.get(_a);return new Aa.Mesh(Ge,D())}const Fe=await le.arrayBuffer();let ze=new En.STLLoader(Ve).parse(Fe);return ze=ne(ze),Sa.set(_a,ze),new Aa.Mesh(ze,D())},se=async(le,ra,Ve)=>{const _a=`obj_${ra}`;if(ue.has(_a))return ue.get(_a).clone();const Fe=await le.text(),_e=new En.OBJLoader(Ve),ze=ra.replace(".obj",".mtl");try{const Ja=await(await oe(ze)).text(),j=new En.MTLLoader(Ve).parse(Ja);j.preload(),_e.setMaterials(j)}catch{console.warn(`MTL文件加载失败,使用默认材质: ${ze}`)}const Ge=_e.parse(Fe);return Ge.traverse(Ba=>{Ba.isMesh&&(Ba.geometry=ne(Ba.geometry),Ba.castShadow=!0,Ba.receiveShadow=!0,Ba.renderOrder=1)}),ue.set(_a,Ge),Ge},xe=(le,ra)=>{const Ve=new Aa.LOD;if(Ve.addLevel(le,0),le.geometry){const _a=le.geometry.clone(),Fe=new Aa.Mesh(_a,le.material);Ve.addLevel(Fe,50)}return Ve};let ta=0,wa=0;const Ia=[];te.loadMeshCb=async(le,ra,Ve,_a,Fe)=>{const _e=le.split("/").pop(),ze=Ve||(()=>{});ta++;const Ge=new Promise(async(Ba,Ja)=>{try{const R=await oe(_e);if(!R||R.size===0)throw new Error(`文件为空: ${_e}`);const j=_e.split(".").pop().toLowerCase();let G;switch(j){case"stl":G=await ve(R,_e,ra);break;case"obj":G=await se(R,_e,ra);break;default:throw new Error(`不支持的文件格式: ${j}`)}J.enableLOD&&G.isMesh&&(G=xe(G,_e)),ze(G),wa++,_a&&_a({loaded:wa,total:ta,progress:wa/ta}),Ba(G)}catch(R){console.error(`mesh文件加载失败: ${_e}`,R);const j=new Aa.Group;ze(j),Ba(j);const G=new Aa.BoxGeometry(.1,.1,.1),V=new Aa.MeshStandardMaterial({color:16711680,wireframe:!0});return new Aa.Mesh(G,V)}});Ia.push(Ge)};try{if(!we){oo.value=void 0;break}if(_=await te.loadAsync(we),console.log(`URDF文件加载完成,等待${ta}个mesh文件加载...`),Ia.length>0)try{await Promise.allSettled(Ia),console.log(`所有mesh文件处理完成,成功加载: ${wa}/${ta}`)}catch(Ve){console.warn("部分mesh文件加载失败,但继续显示模型",Ve)}_.traverse(Ve=>{Ve.isMesh&&(Ve.castShadow=!0,Ve.receiveShadow=!0,Ve.renderOrder=1,Ve.material&&(Ve.material.needsUpdate=!0))}),console.time("计算包围盒");const le=new Aa.Box3;le.expandByObject(_);const ra=`urdf_${Date.now()}`;_.userData.boundingBox=le.clone(),_.userData.modelId=ra,ls.set(ra,{box:le.clone(),center:le.getCenter(new Aa.Vector3),size:le.getSize(new Aa.Vector3),maxSize:Math.max(...le.getSize(new Aa.Vector3).toArray())}),oo.value=_,console.log("URDF模型加载完成并优化")}catch(le){console.error("URDF加载失败:",le),oo.value=void 0}finally{we&&URL.revokeObjectURL(we)}break;default:throw new Error(`不支持的文件格式: ${N}`)}return _};return{addModelsFromUrls:y,loadModelByDefaultPath:async N=>{console.log(N);try{r.value=!0,t.value="正在加载模型...";const{scene:O}=l();if(!O)throw new Error("Scene not initialized");s(),await new Promise(Y=>setTimeout(Y,100));const w=[];for(let Y=0;Y<N.length;Y++){const _=N[Y],A=await c(_.suffix,_.blob,_.mtlBlobs||[],_.meshFiles||[]);A&&(O.add(A),n.value.push(A),w.push(A))}return r.value=!1,t.value="",w}catch(O){throw console.error("加载模型失败:",O),r.value=!1,t.value="",O}},urdfModel:oo,modelBoundingBoxes:ls}}window._iconfont_svg_string_4827314='<svg><symbol id="icon-chart-new" viewBox="0 0 1024 1024"><path d="M960 768V448h-64v320h-64v64H192v-64h-64V256h64v-64h256v-64H192V64H0v192h64v512H0v192h192v-64h640v64h192V768h-64zM64 128h64v64H64v-64z m0 768v-64h64v64H64z m896 0h-64v-64h64v64zM256 768V256h128v512H256z m192-320h128v320H448V448z m192 192h128v128H640V640zM512 288c0-17.664 14.336-32 32-32h160V96c0-17.664 14.336-32 32-32s32 14.336 32 32v160h160c17.664 0 32 14.336 32 32s-14.336 32-32 32H768v160c0 17.664-14.336 32-32 32s-32-14.336-32-32V320H544c-17.664 0-32-14.336-32-32z" ></path></symbol><symbol id="icon-ai13" viewBox="0 0 1024 1024"><path d="M863.719038 159.366637l-705.295378 0c-48.443315 0-88.129176 39.690978-88.129176 88.161922l0 528.943904c0 48.474015 39.685861 88.161922 88.129176 88.161922l705.295378 0c48.443315 0 88.134293-39.687908 88.134293-88.161922l0-528.943904C951.853331 199.056592 912.162354 159.366637 863.719038 159.366637M643.272277 776.472464l-484.84964 0 0-176.324868 484.84964 0L643.272277 776.472464zM643.272277 556.053332l-484.84964 0 0-176.296215 484.84964 0L643.272277 556.053332zM863.719038 776.472464 687.394171 776.472464l0-396.659065 176.324868 0L863.719038 776.472464z" ></path></symbol><symbol id="icon-qiehuanwenjianjia" viewBox="0 0 1024 1024"><path d="M409.6 102.4L512 204.8h307.2a102.4 102.4 0 0 1 102.144 94.72l0.256 7.68v512a102.4 102.4 0 0 1-94.72 102.144l-7.68 0.256H512v-76.8h281.6a51.2 51.2 0 0 0 50.842-45.21l0.358-5.99V332.8a51.2 51.2 0 0 0-45.21-50.842l-5.99-0.358H486.4L384 179.2H230.4a51.2 51.2 0 0 0-50.842 45.21l-0.358 5.99v179.2h-76.8V204.8a102.4 102.4 0 0 1 94.72-102.144l7.68-0.256h204.8z m217.6 588.8a38.4 38.4 0 1 1 0 76.8H358.4v99.584a25.6 25.6 0 0 1-41.83 19.814L132.3 736.614a25.6 25.6 0 0 1 16.231-45.414zM447.59 389.99l3.84 2.612L635.7 543.386a25.6 25.6 0 0 1-11.623 45.004l-4.608 0.41H140.8a38.4 38.4 0 0 1-5.222-76.442L140.8 512h268.8v-99.584a25.6 25.6 0 0 1 37.99-22.426z" ></path></symbol><symbol id="icon-baogao" viewBox="0 0 1104 1024"><path d="M265.401 1024a174.066 174.066 0 0 1-173.56-173.56V315.3a4.194 4.194 0 0 0-4.338-4.34H41.22A39.63 39.63 0 0 1 0 273.356V123.66C0 55.684 59.3 0 132.339 0h648.678a132.411 132.411 0 0 1 132.339 132.339v553.22a4.194 4.194 0 0 0 4.339 4.34h146.079a40.714 40.714 0 0 1 41.22 41.22v159.819a132.411 132.411 0 0 1-132.339 132.339l-707.254 0.723z m653.017-260.339A4.194 4.194 0 0 0 914.08 768v123.661a59.3 59.3 0 0 0 118.599 0V768a4.194 4.194 0 0 0-4.339-4.339z m-749.198-452.7a4.194 4.194 0 0 0-4.339 4.338v534.419a100.737 100.737 0 0 0 100.52 100.52h582.147a3.977 3.977 0 0 0 3.616-2.17 4.628 4.628 0 0 0 0-4.34 132.7 132.7 0 0 1-10.848-52.79V133.062a59.3 59.3 0 0 0-118.598 0v140.294a39.195 39.195 0 0 1-41.22 37.604zM132.34 73.762c-32.542 0-59.3 22.418-59.3 49.898v109.92a4.194 4.194 0 0 0 4.34 4.34h566.237a4.194 4.194 0 0 0 4.339-4.34V133.063a132.7 132.7 0 0 1 10.847-52.79c0.723-1.447 0-2.893 0-4.34a3.977 3.977 0 0 0-3.616-2.17z m169.22 692.068a36.881 36.881 0 0 1 0-73.763h402.08a36.881 36.881 0 0 1 0 73.763z m0-196.701a36.881 36.881 0 1 1 0-73.763h402.08a36.881 36.881 0 1 1 0 73.763z" ></path></symbol><symbol id="icon-xinghao" viewBox="0 0 1024 1024"><path d="M580.583 425.004c52.988-24.574 104.44-49.276 152.82-73.594 48.381-24.703 87.034-42.877 115.704-54.268 28.67-11.136 51.58-17.023 69.115-17.023a104.952 104.952 0 0 1 74.235 28.798 93.177 93.177 0 0 1 31.485 71.802c0 16.383-5.12 33.534-15.358 51.069-10.24 17.534-21.247 28.926-32.638 33.79-105.976 41.468-222.832 72.058-350.054 90.872 23.038 20.99 51.452 49.405 85.113 84.474 33.79 35.582 51.453 54.268 52.86 56.7 12.416 17.023 29.566 38.397 51.837 63.74 22.142 25.597 37.501 45.18 46.076 59.643a99.833 99.833 0 0 1 13.055 52.092 93.817 93.817 0 0 1-29.693 68.731 103.16 103.16 0 0 1-76.41 29.694c-31.23 0-66.172-24.318-105.337-72.443-39.037-48.124-89.465-135.158-151.029-260.46A12540.003 12540.003 0 0 1 386.677 862.22a387.3 387.3 0 0 1-61.563 81.53 96.889 96.889 0 0 1-67.835 27.774 101.625 101.625 0 0 1-76.026-31.358c-19.711-20.862-30.078-43.517-30.078-66.939 0-22.142 4.095-38.909 12.287-50.172 75.514-102.393 154.356-191.602 236.782-266.605a2401.103 2401.103 0 0 1-184.818-35.709 1163.818 1163.818 0 0 1-172.531-57.724c-9.984-5.12-19.583-16.382-29.054-33.917A104.696 104.696 0 0 1 0.018 380.72a93.433 93.433 0 0 1 31.358-71.675 102.648 102.648 0 0 1 72.186-28.926c19.839 0 44.285 5.887 73.979 17.79 29.438 11.904 67.067 29.054 112.632 51.453 45.564 22.526 97.656 47.74 155.892 75.514a1833.849 1833.849 0 0 1-26.494-177.267 1574.54 1574.54 0 0 1-10.367-137.078c0-30.205 9.599-56.06 28.798-78.074A95.481 95.481 0 0 1 512.62 0.076c29.822 0 54.012 10.75 73.339 32.51 19.454 21.886 29.054 50.683 29.054 86.649 0 9.855-1.664 29.182-4.48 58.491-2.56 29.182-7.04 64.252-12.16 105.465-5.375 41.34-11.39 88.697-17.79 141.813z" fill="#FF4444" ></path></symbol><symbol id="icon-mima" viewBox="0 0 1024 1024"><path d="M776.86 376.04c-22.05 0-40.16-16.24-43.91-37.98-18.08-104.98-109.79-185.1-219.84-185.1s-201.76 80.13-219.84 185.1c-3.74 21.73-21.85 37.98-43.91 37.98-27.05 0-48.82-24.04-44.44-50.73 24.3-148.16 153.25-261.58 308.19-261.58S796.99 177.15 821.3 325.31c4.38 26.69-17.39 50.73-44.44 50.73zM850.18 418.32H180.33c-37.98 0-68.76 30.79-68.76 68.76v403.71c0 37.98 30.79 68.76 68.76 68.76h665.36c37.97 0 68.75-30.77 68.77-68.74l0.19-408c0.02-35.61-28.85-64.49-64.47-64.49zM557.73 762.56c0 24.64-19.97 44.62-44.62 44.62-24.64 0-44.62-19.97-44.62-44.62v-89.23c0-24.64 19.97-44.62 44.62-44.62 24.64 0 44.62 19.98 44.62 44.62v89.23z" ></path></symbol><symbol id="icon-zhanghao" viewBox="0 0 1024 1024"><path d="M407.61 578.87c-174.46 0-304.73 113.04-304.73 277.2v17.69c0 85.81 139.6 85.81 316.37 85.81h187.73c169.75 0 316.37 0 316.37-85.81v-17.69c0-164.16-130.28-277.2-304.73-277.2H407.61zM503.71 535.67c138.19 0 250.63-105.81 250.63-235.94 0-130.06-112.44-235.86-250.63-235.86-138.11 0-250.56 105.81-250.56 235.86 0 130.13 112.45 235.94 250.56 235.94z" ></path></symbol><symbol id="icon-xiangqingye-37" viewBox="0 0 1024 1024"><path d="M368.64 34.133333H112.64C68.266667 34.133333 34.133333 68.266667 34.133333 112.64v256c0 23.893333 17.066667 40.96 40.96 40.96s40.96-17.066667 40.96-40.96V116.053333h252.586667c23.893333 0 40.96-17.066667 40.96-40.96S389.12 34.133333 368.64 34.133333zM911.36 34.133333h-256c-23.893333 0-40.96 17.066667-40.96 40.96s17.066667 40.96 40.96 40.96h252.586667v252.586667c0 23.893333 17.066667 40.96 40.96 40.96s40.96-17.066667 40.96-40.96V112.64C989.866667 68.266667 955.733333 34.133333 911.36 34.133333zM368.64 907.946667H116.053333v-252.586667c0-23.893333-17.066667-40.96-40.96-40.96S34.133333 634.88 34.133333 655.36v256C34.133333 955.733333 68.266667 989.866667 112.64 989.866667h256c23.893333 0 40.96-17.066667 40.96-40.96s-20.48-40.96-40.96-40.96zM948.906667 617.813333c-23.893333 0-40.96 17.066667-40.96 40.96v252.586667h-252.586667c-23.893333 0-40.96 17.066667-40.96 40.96s17.066667 40.96 40.96 40.96h256c40.96 0 78.506667-34.133333 78.506667-78.506667v-256c0-23.893333-17.066667-40.96-40.96-40.96z" fill="#3366CC" ></path><path d="M416.426667 488.106667L307.2 344.746667c-13.653333-17.066667-34.133333-20.48-51.2-6.826667-17.066667 13.653333-20.48 34.133333-6.826667 51.2L337.92 512l-95.573333 126.293333c-13.653333 17.066667-10.24 37.546667 6.826666 51.2 6.826667 3.413333 13.653333 6.826667 20.48 6.826667 10.24 0 23.893333-6.826667 30.72-13.653333l112.64-146.773334c10.24-17.066667 10.24-34.133333 3.413334-47.786666z" fill="#F4A914" ></path><path d="M597.333333 488.106667L488.106667 341.333333c-13.653333-17.066667-34.133333-20.48-51.2-6.826666-17.066667 13.653333-20.48 34.133333-6.826667 51.2l92.16 122.88-95.573333 126.293333c-13.653333 17.066667-10.24 37.546667 6.826666 51.2 6.826667 3.413333 13.653333 6.826667 20.48 6.826667 10.24 0 23.893333-6.826667 30.72-13.653334l112.64-146.773333c10.24-13.653333 10.24-30.72 0-44.373333z" fill="#F4A914" ></path><path d="M778.24 488.106667L669.013333 341.333333c-13.653333-17.066667-34.133333-20.48-51.2-6.826666-17.066667 13.653333-20.48 34.133333-6.826666 51.2l92.16 122.88-95.573334 126.293333c-6.826667 6.826667-6.826667 17.066667-6.826666 27.306667 0 10.24 6.826667 17.066667 13.653333 23.893333 6.826667 3.413333 13.653333 6.826667 23.893333 6.826667 10.24 0 23.893333-6.826667 30.72-13.653334l112.64-146.773333c6.826667-13.653333 6.826667-30.72-3.413333-44.373333z" fill="#F4A914" ></path></symbol><symbol id="icon-gongzhuangmoju" viewBox="0 0 1024 1024"><path d="M192 170.666667A106.965333 106.965333 0 0 0 85.333333 277.333333V426.666667h256l42.666667 85.333333h256l42.666667-85.333333h256V277.333333A106.965333 106.965333 0 0 0 832 170.666667z" fill="#3B709C" ></path><path d="M384 512l-42.666667-85.333333h341.333334l-42.666667 85.333333z m-298.666667-85.333333V256a85.333333 85.333333 0 0 1 85.333334-85.333333h682.666666a85.333333 85.333333 0 0 1 85.333334 85.333333v170.666667zM853.333333 853.333333H170.666667a85.333333 85.333333 0 0 1-85.333334-85.333333v-256h213.333334l42.666666 85.333333h341.333334l42.666666-85.333333h213.333334v256a85.333333 85.333333 0 0 1-85.333334 85.333333z" fill="#2C6798" ></path></symbol><symbol id="icon-jiagongguochengxinxi" viewBox="0 0 1024 1024"><path d="M345.216 664.192a315.84 315.84 0 0 1 93.12-224.64 315.84 315.84 0 0 1 100.992-68.16 315.392 315.392 0 0 1 123.648-24.96 315.392 315.392 0 0 1 158.72 42.368v-264a24.768 24.768 0 0 0-24.768-24.768H559.296a32.64 32.64 0 0 1 0.704 6.976v133.184c0 19.2-15.616 34.816-34.816 34.816H395.072a34.816 34.816 0 0 1-34.752-34.816v-133.12a32.64 32.64 0 0 1 0.64-6.976H123.456a24.768 24.768 0 0 0-24.768 24.832v676.544c0 13.76 11.072 24.832 24.768 24.832h266.24a316.224 316.224 0 0 1-44.416-162.112zM662.976 406.4a257.792 257.792 0 1 0 0 515.52 257.792 257.792 0 0 0 0-515.52z m112.256 293.376a104.704 104.704 0 0 1-107.328 25.216l-68.48 68.48a46.528 46.528 0 0 1-65.728-65.664l68.48-68.48a104.512 104.512 0 0 1 140.8-129.28l-67.072 67.072 10.88 42.88 43.328 11.328 67.072-67.136c16.64 38.336 9.216 84.416-21.952 115.584z m-220.16 51.456a20.928 20.928 0 1 0 41.856 0 20.928 20.928 0 0 0-41.856 0z" ></path></symbol><symbol id="icon-pingtaiguanli" viewBox="0 0 1024 1024"><path d="M1024 806.4V25.6c0-12.8-12.8-25.6-25.6-25.6H25.6C12.8 0 0 12.8 0 25.6v780.8h435.2v166.4H236.8v51.2h556.8v-51.2H588.8v-166.4H1024zM320 281.6c-12.8-12.8-19.2-25.6-32-32l44.8-76.8c44.8 25.6 96 12.8 121.6-32 12.8-12.8 12.8-32 12.8-44.8h89.6c0 51.2 38.4 83.2 89.6 83.2 12.8 0 32-6.4 44.8-12.8l44.8 76.8c-44.8 25.6-57.6 76.8-32 115.2 12.8 12.8 19.2 25.6 32 32l-44.8 76.8c-44.8-19.2-96-6.4-121.6 38.4-12.8 12.8-12.8 25.6-12.8 44.8H467.2c0-44.8-38.4-83.2-89.6-83.2-12.8 0-32 6.4-44.8 12.8l-44.8-83.2c38.4-25.6 51.2-76.8 32-115.2zM102.4 704v-51.2h825.6v51.2H102.4zM512 416c51.2 0 96-38.4 96-89.6S569.6 236.8 512 236.8c-51.2 0-96 38.4-96 89.6 0 51.2 44.8 89.6 96 89.6z" ></path></symbol><symbol id="icon-zhucaidanguanli" viewBox="0 0 1169 1024"><path d="M787.333831 588.946093a75.189984 75.189984 0 0 0-75.093984 75.092984 75.189984 75.189984 0 0 0 75.093984 75.093984 75.165984 75.165984 0 0 0 75.067984-75.093984 75.165984 75.165984 0 0 0-75.067984-75.092984m0 222.841953a147.919968 147.919968 0 0 1-147.748968-147.748969c0-81.455982 66.291986-147.747968 147.748968-147.747968 81.431983 0 147.747968 66.291986 147.747968 147.747968 0 81.480982-66.315986 147.748968-147.747968 147.748969m89.452981 102.106978c0.342 0.244 1.317 0.585 2.315999 0.585h0.122l71.484985-39.496992c-1.706-4.022999-9.605998-23.478995-9.605998-43.739991a113.858976 113.858976 0 0 1 107.739977-113.613975c0.853-4.729999 5.557999-31.524993 5.557998-51.639989s-4.704999-46.88399-5.558998-51.637989a113.858976 113.858976 0 0 1-107.738977-113.565976c0-20.357996 7.923998-39.813991 9.605998-43.81299l-70.313985-39.057992-0.293-0.025a5.339999 5.339999 0 0 0-2.706 0.732 196.753958 196.753958 0 0 1-26.014994 21.819995c-21.698995 15.238997-42.153991 22.967995-60.951987 22.967995-18.919996 0-39.594991-7.874998-61.390987-23.405995a194.705958 194.705958 0 0 1-26.160994-22.283995 5.777999 5.777999 0 0 0-2.729999-0.707h-0.245l-72.824985 40.032992c1.706 4.046999 9.580998 23.479995 9.580998 43.73999A113.858976 113.858976 0 0 1 528.895886 614.350088c-0.854 4.729999-5.509999 31.524993-5.509998 51.638989s4.655999 46.90899 5.533998 51.662989a113.858976 113.858976 0 0 1 107.763977 113.589975c0 20.334996-7.972998 39.863991-9.679998 43.788991l68.973985 38.545992h0.146c1.024 0 1.95-0.365 2.317-0.585a200.849957 200.849957 0 0 1 26.428994-23.161995c22.088995-16.188997 43.079991-24.429995 62.414987-24.429995 19.552996 0 40.715991 8.387998 62.950986 24.917995 14.920997 11.068998 25.258995 22.185995 26.550995 23.575995m22.673995 108.397976c-13.774997-0.025-27.135994-5.704999-35.765993-15.213996-11.775997-12.896997-49.005989-46.44599-79.530982-46.44599-30.280993 0-68.119985 33.767993-78.993984 45.54399-8.606998 9.386998-21.869995 14.969997-35.498992 14.969997-6.484999 0-12.604997-1.243-18.187996-3.706l-0.975-0.414-92.69698-51.833988-0.926-0.683a44.46999 44.46999 0 0 1-14.920996-53.735989c0.049-0.146 8.532998-19.699996 8.532998-37.594992a98.376979 98.376979 0 0 0-98.254979-98.254978h-3.900999c-15.505997 0-28.159994-13.799997-32.182993-35.108993-0.341-1.706-7.923998-42.178991-7.923999-74.044984 0-31.913993 7.557998-72.361984 7.899999-74.117984 4.119999-21.576995 16.992996-35.449992 32.816993-35.083993h3.266999a98.400979 98.400979 0 0 0 98.279979-98.303978c0-17.846996-8.484998-37.399992-8.558998-37.619992a44.34899 44.34899 0 0 1 15.067996-53.661989l0.95-0.658 97.840979-53.759988 1.024-0.415c5.485999-2.364999 11.507998-3.534999 17.895996-3.534999 13.604997 0 26.891994 5.436999 35.595992 14.628997 11.580998 12.116997 48.17699 43.641991 77.774984 43.64199 29.354994 0 65.755986-30.914993 77.287983-42.812991 8.654998-8.996998 21.844995-14.335997 35.302992-14.335997 6.509999 0 12.653997 1.219 18.285997 3.657l0.974999 0.414 94.47698 52.516988 0.95 0.658c16.895996 11.751997 23.332995 34.889993 14.945997 53.735989-0.049 0.146-8.532998 19.699996-8.532999 37.545992a98.400979 98.400979 0 0 0 98.254979 98.279978h3.291c15.774997-0.341 28.719994 13.506997 32.816993 35.107993 0.317 1.707 7.899998 42.203991 7.899998 74.069984 0 31.889993-7.582998 72.410984-7.948998 74.117984-4.046999 21.551995-16.992996 35.424992-32.767993 35.059993h-3.291a98.400979 98.400979 0 0 0-98.254979 98.278978c0 17.846996 8.483998 37.449992 8.556999 37.619992a44.42199 44.42199 0 0 1-15.017997 53.710989l-0.927 0.683-96.133979 53.100988-0.975 0.415a44.88499 44.88499 0 0 1-17.846996 3.583999z m222.061952-705.339848a48.76199 48.76199 0 1 1-97.523979 0V121.977194c0-13.457997-10.873998-24.453995-24.307995-24.453995h-877.859811c-13.262997 0-24.306995 10.970998-24.306995 24.453995v584.995874c0 13.457997 10.873998 24.453995 24.307995 24.453995h219.500953a48.76199 48.76199 0 1 1 0 97.523979H48.907989A48.76199 48.76199 0 0 1 0 780.190052V48.76221C0 21.822215 21.893995 0.00022 48.907989 0.00022h1023.706781a48.76199 48.76199 0 0 1 48.907989 48.76199v268.189942zM219.427953 975.23701c0-26.940994 21.991995-48.76199 48.981989-48.761989h194.607959a48.76199 48.76199 0 1 1 0 97.523979H268.433942a48.76199 48.76199 0 0 1-49.005989-48.76199z" ></path></symbol><symbol id="icon-caidanguanli" viewBox="0 0 1024 1024"><path d="M414.2 78H158.6c-41.5 0-75.3 33.8-75.3 75.3v255.5c0 41.5 33.8 75.3 75.3 75.3h255.5c41.5 0 75.3-33.8 75.3-75.3V153.3c0-41.5-33.7-75.3-75.2-75.3z m5.2 330.8c0 2.9-2.4 5.3-5.3 5.3H158.6c-2.9 0-5.3-2.4-5.3-5.3V153.3c0-2.9 2.4-5.3 5.3-5.3h255.5c2.9 0 5.3 2.4 5.3 5.3v255.5zM414.2 544.8H158.6c-41.5 0-75.3 33.8-75.3 75.3v255.5c0 41.5 33.8 75.3 75.3 75.3h255.5c41.5 0 75.3-33.8 75.3-75.3V620.1c0-41.5-33.7-75.3-75.2-75.3z m5.2 330.8c0 2.9-2.4 5.3-5.3 5.3H158.6c-2.9 0-5.3-2.4-5.3-5.3V620.1c0-2.9 2.4-5.3 5.3-5.3h255.5c2.9 0 5.3 2.4 5.3 5.3v255.5zM908.8 119.3H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 343.8H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 568.3H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 792.8H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35z" ></path></symbol><symbol id="icon-jueseguanli" viewBox="0 0 1024 1024"><path d="M874.9 577.3c-26.1-27.2-56.8-48.9-90.3-64.1 5.4-4.6 10.6-9.6 15.5-14.8 32.3-34.7 50.1-79.8 50.1-127.2 0-102.9-83.7-186.7-186.7-186.7-11 0-21.8 0.9-32.5 2.8-7.1-9.6-14.9-18.7-23.4-27.2-44.6-44.6-103.9-69.2-167-69.2s-122.4 24.6-167 69.2-69.2 103.9-69.2 167 24.6 122.4 69.2 167c10.8 10.8 22.4 20.4 34.8 28.7-4.9 1.8-9.7 3.8-14.5 5.8-44.9 19-85.2 46.2-119.9 80.8-34.6 34.6-61.8 75-80.8 119.9-19.7 46.5-29.6 95.9-29.6 146.8 0 17.7 1.2 35.5 3.7 52.9l69.3-9.7c-2-14.2-3-28.7-3-43.1 0-169.4 137.8-307.1 307.1-307.1s307.1 137.8 307.1 307.1c0 14.4-1 28.9-3 43.1l69.3 9.7c2.4-17.4 3.7-35.2 3.7-52.9 0-50.9-10-100.3-29.6-146.8-19-44.9-46.2-85.2-80.8-119.9-34.6-34.6-74.9-61.8-119.9-80.8-4.8-2-9.7-4-14.6-5.8 12.3-8.4 24-18 34.8-28.7 44.6-44.6 69.2-103.9 69.2-167 0-25-3.9-49.4-11.3-72.6 63.4 1.1 114.7 53 114.7 116.6 0 45.5-26.6 85.6-65.3 104.7-16.3 8.1-26.8 24.4-26.8 42.6v1c0 21.2 14.1 40 34.6 45.5 94.9 25.8 163.8 112.4 163.8 215 0 10.5-0.7 21-2.2 31.3l69.3 9.7c1.9-13.5 2.9-27.3 2.9-41-0.1-75.8-29.1-147.8-81.7-202.6z m-434.3-84c-91.6 0-166.2-74.6-166.2-166.2S349 160.9 440.6 160.9s166.2 74.6 166.2 166.2-74.5 166.2-166.2 166.2z" ></path></symbol><symbol id="icon-zhiweiguanli" viewBox="0 0 1024 1024"><path d="M878.4 243.5h-91.2v-41.2c0-58.6-47.7-106.2-106.2-106.2H354.2c-58.6 0-106.2 47.7-106.2 106.2v41.2h-91.2c-43.2 0-78.4 35.1-78.4 78.4V856c0 43.2 35.1 78.4 78.4 78.4h721.5c43.2 0 78.4-35.1 78.4-78.4V321.8c0-43.2-35.1-78.3-78.3-78.3zM318 202.3c0-20 16.2-36.2 36.2-36.2H681c20 0 36.2 16.3 36.2 36.2v41.2H318v-41.2zM156.8 313.5h721.5c4.6 0 8.4 3.7 8.4 8.4V554H692.4c-14.8-45.3-57.4-78.2-107.6-78.2H450.4c-50.2 0-92.9 32.9-107.6 78.2H148.5V321.8c0-4.6 3.7-8.3 8.3-8.3zM628 588.9c0 23.8-19.4 43.2-43.2 43.2H450.4c-23.8 0-43.2-19.4-43.2-43.2 0-23.8 19.4-43.2 43.2-43.2h134.3c23.9 0 43.3 19.4 43.3 43.2z m250.4 275.5H156.8c-4.6 0-8.4-3.7-8.4-8.4V623.9h194.3c14.8 45.3 57.4 78.2 107.6 78.2h134.3c50.2 0 92.9-32.9 107.6-78.2h194.3V856c0.2 4.6-3.5 8.4-8.1 8.4z" ></path></symbol><symbol id="icon-bumenguanli" viewBox="0 0 1024 1024"><path d="M322.5 62h384.6v70H322.5z" ></path><path d="M870.2 62h-59.3v70h59.3c7.2 0 13 5.8 13 13v733.9c0 7.2-5.8 13-13 13h-720c-7.2 0-13-5.8-13-13V145c0-7.2 5.8-13 13-13h68.6V62h-68.6c-45.8 0-83 37.2-83 83v733.9c0 45.8 37.2 83 83 83h720c45.8 0 83-37.2 83-83V145c0-45.8-37.3-83-83-83z" ></path><path d="M295 806.2c-0.5-5.7-0.7-11.6-0.7-17.3 0-119 96.8-215.8 215.8-215.8S726 669.8 726 788.8c0 5.8-0.2 11.6-0.7 17.3l69.8 5.6c0.6-7.6 0.9-15.3 0.9-22.9 0-76.4-29.7-148.1-83.7-202.1-29.7-29.8-64.9-52.1-103.3-66.2 45.6-31.5 75.5-84.1 75.5-143.5 0-96.1-78.2-174.4-174.4-174.4-96.1 0-174.4 78.2-174.4 174.4 0 59.5 29.9 112 75.5 143.5C373 534.6 337.8 557 308 586.7c-54 54-83.7 125.8-83.7 202.1 0 7.6 0.3 15.3 0.9 22.9l69.8-5.5z m215.2-533.6c57.5 0 104.4 46.8 104.4 104.4 0 57.5-46.8 104.4-104.4 104.4-57.5 0-104.4-46.8-104.4-104.4 0-57.6 46.8-104.4 104.4-104.4z" ></path></symbol><symbol id="icon-gerenzhongxin" viewBox="0 0 1024 1024"><path d="M930.4 337.3c-22.7-53.7-55.2-101.9-96.6-143.3-41.4-41.4-89.6-73.9-143.3-96.6C634.9 73.9 575.9 62 515.1 62c-60.8 0-119.9 11.9-175.5 35.4-53.7 22.7-101.9 55.2-143.3 96.6-41.4 41.4-73.9 89.6-96.6 143.3-23.5 55.6-35.4 114.6-35.4 175.5 0 50.5 8.3 100.1 24.7 147.4l66.1-22.9c-13.8-39.9-20.8-81.8-20.8-124.5 0-209.9 170.8-380.7 380.7-380.7 209.9 0 380.8 170.8 380.8 380.7 0 41.6-6.7 82.5-19.8 121.5l66.3 22.3c15.6-46.2 23.5-94.7 23.5-143.9 0-60.8-11.9-119.8-35.4-175.4z" ></path><path d="M656.9 422.2c0-76.9-62.6-139.5-139.5-139.5s-139.5 62.6-139.5 139.5 62.6 139.5 139.5 139.5 139.5-62.6 139.5-139.5z m-209 0c0-38.3 31.2-69.5 69.5-69.5s69.5 31.2 69.5 69.5-31.2 69.5-69.5 69.5-69.5-31.2-69.5-69.5zM713.8 627.8c-62-27.2-128.1-40.9-196.4-40.9-69 0-135.7 14-198.2 41.7-60.4 26.7-114.1 64.9-159.5 113.3l-20.3 21.7 18.1 23.6c41.2 53.6 94.8 98 155 128.3 63.2 31.8 131.3 48 202.6 48 71.9 0 140.6-16.4 204.2-48.8 60.7-30.9 114.5-76 155.6-130.4l17.9-23.7-20.5-21.6c-45.3-47.6-98.6-85-158.5-111.2zM515.1 893.5c-109 0-210.3-45.3-282.5-125.4 77.7-71.9 177.7-111.2 284.8-111.2 105.8 0 204.9 38.4 282.2 108.8-72.2 81.6-174.3 127.8-284.5 127.8z" ></path></symbol><symbol id="icon-yonghuguanli" viewBox="0 0 1024 1024"><path d="M751.4 553.2c-42.5-38.5-92.1-67.1-145.5-84.6 53.2-38.9 87.8-101.8 87.8-172.7C693.7 178 597.7 82 479.8 82c-57.1 0-110.8 22.2-151.2 62.6C288.2 185 266 238.7 266 295.8s22.2 110.8 62.6 151.2c7.8 7.8 16.2 15 25 21.4-10.5 3.5-20.9 7.3-31.2 11.7-48.2 20.4-91.4 49.5-128.5 86.7s-66.3 80.4-86.7 128.5c-21.1 49.9-31.8 102.9-31.8 157.4 0 24.8 2.3 49.7 6.8 73.9l68.8-12.7c-3.7-20-5.6-40.6-5.6-61.2 0-184.4 150-334.4 334.4-334.4 83.2 0 163 30.8 224.5 86.6l47.1-51.7zM479.8 152c79.3 0 143.9 64.5 143.9 143.9s-64.5 143.9-143.9 143.9S336 375.2 336 295.9 400.5 152 479.8 152zM726.3 665.3h213.8v70H726.3zM503 831.6h437.1v70H503z" ></path></symbol><symbol id="icon-app" viewBox="0 0 1024 1024"><path d="M363.485867 865.117867h305.5616c21.6576 0 39.2192-17.194667 39.2192-38.4s-17.5616-38.4-39.2192-38.4H363.485867c-21.6576 0-39.2192 17.194667-39.2192 38.4s17.5616 38.4 39.2192 38.4z" fill="#A6ADB4" ></path><path d="M945.288533 699.835733a40.448 40.448 0 0 0-43.195733 43.1872v147.037867a46.865067 46.865067 0 0 1-45.960533 48.708267H166.766933a46.882133 46.882133 0 0 1-45.038933-48.708267v-147.029333a40.439467 40.439467 0 1 0-80.887467 0v147.029333a125.883733 125.883733 0 0 0 125.9264 128.657067h693.0432c70.203733-1.006933 126.4384-58.461867 125.9264-128.657067v-147.029333a40.430933 40.430933 0 0 0-40.448-43.195734zM40.840533 127.735467v147.959466a39.517867 39.517867 0 0 0 79.044267 0V127.735467a45.943467 45.943467 0 0 1 46.882133-47.786667h693.0432a46.882133 46.882133 0 0 1 45.960534 47.786667v147.959466a39.509333 39.509333 0 0 0 39.517866 39.509334 40.448 40.448 0 0 0 40.448-39.509334V127.735467C986.248533 58.052267 930.423467 1.024 860.7232 0H166.775467A125.934933 125.934933 0 0 0 40.840533 127.744z m168.4992 427.972266H326.229333L357.316267 640H418.133333L295.150933 315.733333h-52.701866L119.466667 640h60.817066l29.056-84.292267zM269.124267 392.533333L307.2 503.466667h-76.8l38.724267-110.933334z m231.552 131.959467h32.631466a123.246933 123.246933 0 0 0 88.192-28.535467c23.389867-19.959467 36.394667-49.134933 35.413334-79.488 1.6384-28.245333-9.838933-55.722667-31.249067-74.743466a127.573333 127.573333 0 0 0-84.0192-25.813334H443.733333V640h56.942934V524.4928zM503.466667 366.933333h32.136533c42.180267 0 61.602133 17.493333 61.602133 53.162667 1.092267 16.0256-4.8128 31.701333-16.068266 42.666667a71.364267 71.364267 0 0 1-51.5584 14.677333H503.466667V366.933333z m286.293333-51.0976H691.2V640h57.3184V524.4672h32.853333c31.837867 1.928533 63.189333-8.311467 87.381334-28.544 23.543467-19.959467 36.625067-49.152 35.643733-79.505067 1.536-28.100267-9.710933-55.441067-30.754133-74.752a131.84 131.84 0 0 0-83.882667-25.8304z m39.4752 147.131734a73.813333 73.813333 0 0 1-49.527467 14.72H750.933333V366.933333h32.119467c42.1632 0 61.576533 17.527467 61.576533 53.2736 1.262933 15.957333-4.394667 31.650133-15.394133 42.752z" fill="#A6ADB4" ></path></symbol><symbol id="icon-yepian" viewBox="0 0 1024 1024"><path d="M807.936 99.328c-17.408 0-32.256 9.216-40.448 23.552h-348.16L284.672 355.84l35.84 35.84 126.976-219.648h321.536c8.192 12.8 22.528 20.992 38.912 20.992 25.6 0 46.592-20.992 46.592-46.592s-20.992-47.104-46.592-47.104z" ></path><path d="M301.056 50.688c-8.704 14.848-7.68 32.768 0 46.592L127.488 399.36l134.656 232.448 48.64-13.312L183.808 399.36l160.256-279.04c15.36-1.024 29.696-9.216 37.888-23.04 12.8-22.528 5.12-50.688-17.408-63.488s-50.688-5.632-63.488 16.896z" ></path><path d="M15.872 467.456c8.704 14.848 24.064 23.552 40.448 23.552L228.352 793.6l268.8 1.536 13.312-48.64-253.44-1.536-159.232-279.552c6.656-13.312 7.168-30.208-1.024-44.032-12.8-22.528-40.96-30.208-63.488-17.408-22.528 12.8-30.208 40.96-17.408 63.488z" ></path><path d="M216.064 924.672c17.408 0 32.256-9.216 40.448-23.552h348.16l134.144-232.448-35.84-35.84-126.976 219.648H254.976c-8.192-12.8-22.528-20.992-38.912-20.992-25.6 0-46.592 20.992-46.592 46.592s20.992 46.592 46.592 46.592z" ></path><path d="M722.944 973.312c8.704-14.848 7.68-32.768 0-46.592l173.568-302.08-134.656-232.448-48.64 13.312 127.488 219.136-160.256 279.04c-15.36 1.024-29.696 9.216-37.888 23.04-12.8 22.528-5.12 50.688 17.408 63.488 22.016 13.312 50.176 5.632 62.976-16.896z" ></path><path d="M1008.128 556.544c-8.704-14.848-24.064-23.552-40.448-23.552L795.648 230.4l-268.8-1.536-13.312 48.64 253.44 1.536 159.232 279.552c-6.656 13.312-7.168 30.208 1.024 44.032 12.8 22.528 40.96 30.208 63.488 17.408 22.528-12.8 30.208-40.96 17.408-63.488zM512 391.168C445.44 391.168 391.168 445.44 391.168 512S445.44 632.832 512 632.832s120.832-54.272 120.832-120.832S578.56 391.168 512 391.168z m0 196.096c-41.472 0-75.264-33.792-75.264-75.264s33.792-75.264 75.264-75.264 75.264 33.792 75.264 75.264-33.792 75.264-75.264 75.264z" ></path></symbol><symbol id="icon-left-circle-fill" viewBox="0 0 1024 1024"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m104 316.9c0 10.2-4.9 19.9-13.2 25.9L457.4 512l145.4 105.2c8.3 6 13.2 15.6 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.5l-246-178c-4.4-3.2-4.4-9.7 0-12.9l246-178c5.3-3.8 12.7-0.1 12.7 6.5v46.8z" ></path></symbol><symbol id="icon-right-circle-fill" viewBox="0 0 1024 1024"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m154.7 454.5l-246 178c-5.3 3.8-12.7 0-12.7-6.5v-46.9c0-10.2 4.9-19.9 13.2-25.9L566.6 512 421.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.8 0 13z" ></path></symbol><symbol id="icon-xitongguanli" viewBox="0 0 1026 1024"><path d="M400.896 67.072H140.8c-24.064 0-46.592 11.264-59.392 29.696-9.216 12.8-14.848 27.648-14.848 44.544v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24V141.312c0.512-40.96-33.28-74.24-73.728-74.24z m0 361.984v9.216-9.216z m335.872 83.456c18.432 0 35.328-7.168 48.128-20.48L939.008 337.92c12.8-12.8 20.48-29.696 20.48-48.128s-7.168-35.328-20.48-48.128l-154.112-155.648c-26.112-26.112-70.656-26.112-96.256 0l-154.112 154.112c-12.8 12.8-20.48 29.696-20.48 48.128 0 18.432 7.168 35.328 20.48 48.128l154.112 154.112c12.8 14.336 29.184 22.016 48.128 22.016z m0-369.152l146.432 146.432-146.432 146.432-144.896-146.432L736.768 143.36z m-335.872 406.016H140.8c-40.96 0-74.24 33.28-74.24 74.24v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24v-259.584c0.512-40.448-33.28-74.24-73.728-74.24z m0 352.768v18.432-18.432z m484.352-352.768h-259.584c-40.96 0-74.24 33.28-74.24 74.24v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24v-259.584c0-40.448-33.792-74.24-74.24-74.24z" ></path></symbol><symbol id="icon-gongjianku" viewBox="0 0 1024 1024"><path d="M798.72 320v446.976H223.232V320H63.488v532.48c0 41.472 33.792 75.264 75.264 75.264h745.472c41.472 0 75.264-33.792 75.264-75.264v-532.48H798.72z" ></path><path d="M608.256 494.592z m-10.24-4.608z" ></path><path d="M819.2 96.256H203.776c-41.472 0-75.264 33.792-75.264 75.264V286.72h128v448h510.464V286.72h128V171.008c-0.512-41.472-34.304-74.752-75.776-74.752z m-154.112 493.056l-12.8 12.8c-12.8 12.8-33.28 12.8-46.08 0L477.184 473.088c-33.792 11.776-72.704 4.608-99.328-22.528-27.136-27.136-34.304-66.048-22.528-99.84l38.4 38.4c12.8 12.8 33.28 12.8 46.08 0l12.8-12.8c12.8-12.8 12.8-33.28 0-46.08L414.208 291.84c33.792-11.776 72.704-4.096 99.84 22.528 27.136 27.136 34.304 66.048 22.528 99.84l128.512 128.512c12.288 13.312 12.288 33.792 0 46.592z" ></path></symbol><symbol id="icon-fangfaku" viewBox="0 0 1024 1024"><path d="M256 170.496v170.496h512V170.496h85.504c23.552 0 42.496 18.944 42.496 42.496V896c0 23.552-18.944 42.496-42.496 42.496H170.496c-23.552 0-42.496-18.944-42.496-42.496V212.992c0-23.552 18.944-42.496 42.496-42.496H256z m256 513.024H256v83.456h256v-83.456zM768 491.52H256v83.456h512V491.52zM341.504 85.504h341.504V256H341.504V85.504z" ></path></symbol><symbol id="icon-shebeiku" viewBox="0 0 1024 1024"><path d="M960 491.52v380.416c0 26.112-23.04 47.616-52.224 47.616H116.224c-29.184 0-52.224-21.504-52.224-47.616V491.52c0-26.112 23.04-47.616 52.224-47.616h791.552c28.672 0 52.224 21.504 52.224 47.616z m-149.504 156.16H213.504V783.36h596.992v-135.68z m149.504-500.736v186.88c0 23.04-20.992 42.496-46.592 42.496H110.592c-25.6 0-46.592-18.944-46.592-42.496V146.944c0-23.04 20.992-42.496 46.592-42.496h802.304c26.112 0 47.104 18.944 47.104 42.496z m-671.744 25.6c-41.472 0-74.752 30.208-74.752 68.096s33.792 68.096 74.752 68.096S363.008 278.528 363.008 240.64s-33.792-68.096-74.752-68.096z m224.256 0c-41.472 0-74.752 30.208-74.752 68.096s33.792 68.096 74.752 68.096 74.752-30.208 74.752-68.096-33.792-68.096-74.752-68.096z" ></path></symbol><symbol id="icon-wenjian" viewBox="0 0 1024 1024"><path d="M273.54647 325.996013h476.395357c19.444708-2.046811 36.842605 11.769166 39.40112 30.702171 2.046811 19.444708-11.769166 36.330903-31.213874 38.377714-2.558514 0.511703-5.117029 0.511703-7.675543 0H273.54647c-10.234057-0.511703-19.956411-4.605326-26.608548-11.257463-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737 0.511703-19.956411 17.397897-35.307497 37.866011-34.284091v1.023406z m0 209.286467h476.395357c19.444708-2.046811 36.842605 11.769166 39.40112 30.702171 2.046811 19.444708-11.769166 36.330903-31.213874 38.377714-2.558514 0.511703-5.117029 0.511703-7.675543 0H273.54647c-9.722354 0-19.444708-3.58192-26.608548-10.234057-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737 0.511703-19.444708 17.397897-35.307497 37.354308-34.284091z m0 185.748136h324.931312c19.444708 0 35.307497 15.862788 35.307497 34.795794 0 19.444708-15.862788 34.795794-35.307497 34.795794H273.54647c-9.722354-0.511703-19.444708-4.093623-26.608548-10.74576-6.652137-6.140434-10.74576-14.839383-10.74576-24.050034 0.511703-19.444708 17.397897-35.307497 37.354308-34.795794zM135.898402 0.041294h96.71184c17.397897-0.511703 33.772388 8.187246 43.494742 22.514926l53.217097 82.38416c4.605326 7.16384 12.792571 11.769166 20.979817 11.257462h322.884501c8.698949 0 16.886194-4.093623 21.49152-11.257462l53.217097-82.38416c9.722354-14.32768 26.096846-23.026628 43.494742-22.514926h97.223543c53.7288-1.535109 98.246948 39.912823 100.293759 93.12992v837.657572c-2.046811 52.705394-46.56496 94.153325-100.293759 93.12992h-752.203196c-53.7288 1.535109-98.758651-39.912823-100.293759-92.618217V93.171214C37.139751 39.954117 82.169603-1.493814 135.898402 0.041294z m82.895863 70.103291H135.898402c-6.652137 0-13.304274 2.558514-18.421303 6.652138-4.605326 4.093623-7.16384 10.234057-7.16384 16.374491v837.657572c0.511703 13.304274 11.769166 23.538331 25.07344 23.026629h752.203196c6.652137 0 13.304274-2.558514 18.421303-6.652138 4.605326-4.093623 7.16384-10.234057 7.16384-16.374491V93.171214c0.511703-6.140434-2.046811-12.280868-7.16384-16.374491-5.117029-4.605326-11.257463-6.652137-18.421303-6.652138h-82.895862l-46.053257 70.614994c-18.933006 28.65536-51.681988 45.541554-86.477783 45.029851H350.813601c-34.795794 0.511703-67.544777-16.374491-86.477782-45.029851l-45.541554-70.614994zM399.425372 0.041294h225.149256c19.956411-0.511703 36.842605 15.351086 37.866011 34.795795-0.511703 19.956411-17.397897 35.307497-37.866011 34.795794H399.425372c-10.234057-0.511703-19.956411-4.093623-27.120251-10.74576-6.652137-6.140434-10.74576-15.351086-10.234057-24.050034C362.582767 15.39238 378.957258-0.470408 399.425372 0.041294z" ></path></symbol><symbol id="icon-bianjimoban" viewBox="0 0 1025 1024"><path d="M127.110228 701.648461q0 26.438928 18.812314 45.251241t46.268123 18.812314l253.203575 0 0 128.12711-318.284012 0q-26.438928 0-49.82721-9.660377t-40.675273-26.947368-26.947368-40.675273-9.660377-50.844091l0-637.584906q0-26.438928 9.660377-49.82721t26.947368-40.675273 40.675273-27.455809 49.82721-10.168818l766.728898 0q26.438928 0 49.82721 10.168818t40.675273 27.455809 27.455809 40.675273 10.168818 49.82721l0 187.106256-128.12711 1.016882q-2.033764-25.422046-19.829196-43.217478t-44.234359-17.795432l-637.584906 0q-27.455809 0-46.268123 18.812314t-18.812314 45.251241l0 382.347567zM1016.881827 501.322741q6.101291 9.151936 7.626614 23.388282t-10.677259 28.472691q-11.1857 14.236346-18.303873 21.354518l-8.135055 8.135055-105.75571-95.586892q5.084409-6.101291 14.236346-14.744786t14.236346-13.727905q14.236346-14.236346 30.506455-12.711023t27.455809 6.609732q12.202582 5.084409 26.438928 18.812314t22.3714 29.998014zM613.179742 789.100298q3.050645-3.050645 14.236346-16.270109t27.96425-32.540218 37.116187-42.200596 40.675273-46.268123q48.810328-54.911619 108.806356-122.025819l107.789474 95.586892q-59.996028 68.131082-108.806356 123.042701-20.337637 23.388282-40.675273 46.268123t-37.116187 41.183714-27.455809 29.998014-12.711023 13.727905q-9.151936 12.202582-25.422046 20.337637-7.118173 5.084409-21.354518 11.1857t-29.998014 12.202582-29.489573 10.677259-20.846077 5.59285q-26.438928 5.084409-23.388282-22.3714 1.016882-7.118173 4.067527-21.862959t6.609732-30.506455 7.118173-28.981132 5.59285-18.303873q5.084409-13.219464 17.286991-28.472691z" ></path></symbol><symbol id="icon-shanchu1" viewBox="0 0 1024 1024"><path d="M78.768011 168.230165c0-30.999918 24.230644-56.076722 54.15419-56.076722L403.692131 112.153443 403.692131 56.076722c0-30.999918 24.230644-56.076722 54.15419-56.076722l108.306335 0c29.923546 0 54.155214 25.076803 54.155214 56.076722l0 56.077745 270.768906 0c29.923546 0 54.15419 25.076803 54.15419 56.076722l0 56.076722L78.768011 224.307909 78.768011 168.230165zM891.076776 336.461352l0 112.153443 0 519.30746c0 30.923181-24.231667 56.077745-54.153167 56.077745L187.076392 1024c-29.923546 0-54.15419-25.154564-54.15419-56.077745L132.922201 448.614796 132.922201 336.461352l0-56.077745 758.154574 0L891.076776 336.461352zM349.53794 448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523 0-54.153167 25.153541-54.153167 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.153167 56.077745 29.923546 0 54.15419-25.154564 54.15419-56.077745L349.53794 448.614796zM566.153679 448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523 0-54.153167 25.153541-54.153167 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.153167 56.077745 29.923546 0 54.15419-25.154564 54.15419-56.077745L566.153679 448.614796zM782.770441 448.614796c0-30.923181-24.231667-56.076722-54.155214-56.076722s-54.15419 25.153541-54.15419 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.15419 56.077745s54.155214-25.154564 54.155214-56.077745L782.770441 448.614796z" ></path></symbol><symbol id="icon-edit" viewBox="0 0 1024 1024"><path d="M923.9 335.8c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.8-35.2-174.3-35.2S392.2 74.1 337 97.5c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3C75.3 391 63.5 449.7 63.5 510.1c0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c35.9-15.2 69.3-34.8 99.8-58.5l-0.1-0.1c9.1-7.4 14.8-18.6 14.8-31.2 0-22.3-18-40.3-40.3-40.3-9.2 0-17.7 3.1-24.5 8.3l-0.2-0.3c-62 47.9-139.7 76.4-223.9 76.4-202.3 0-366.9-164.6-366.9-366.9s164.7-366.9 367-366.9 366.9 164.6 366.9 366.9c0 66.2-17.6 128.3-48.4 182l0.4 0.2c-4.4 6.5-7 14.2-7 22.6 0 22.3 18 40.3 40.3 40.3 16 0 29.8-9.3 36.3-22.8l0.2 0.1c8.9-15.5 16.8-31.5 23.8-48.1 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.7-119.1-35.1-174.3z" ></path><path d="M693.7 626.5H507.6l-57.1 66.1h243.2zM663.2 411.4c7.5-7.6 7.5-23.5 0-31.3l-45.4-46.8c-7.7-7.6-22.9-7.6-30.4 0l-45.7 46.8 76.1 78.1 45.4-46.8zM328.8 614.5v78.1h76.1l197.5-218.7-76-77.9z" ></path></symbol><symbol id="icon-new" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M695.7 469.2h-139v-139c0-23.6-19.3-43-43-43-23.6 0-43 19.3-43 43v139h-139c-23.6 0-43 19.3-43 43s19.3 43 43 43h139v139c0 23.7 19.3 43 43 43 23.6 0 43-19.3 43-43v-139h139c23.6 0 43-19.3 43-43s-19.4-43-43-43z" ></path></symbol><symbol id="icon-biaoqianye1" viewBox="0 0 1024 1024"><path d="M345.557333 128l110.677334 168.405333H938.666667V896H85.333333V128h260.224zM299.52 213.333333H170.666667v597.333334h682.666666V381.738667H410.197333L299.52 213.333333z" fill="#222222" ></path><path d="M597.333333 136.533333c0-4.693333 3.541333-8.533333 7.893334-8.533333h325.546666c4.352 0 7.893333 3.84 7.893334 8.533333v68.266667c0 4.693333-3.541333 8.533333-7.893334 8.533333h-325.546666C600.874667 213.333333 597.333333 209.493333 597.333333 204.8V136.533333z" fill="#222222" ></path></symbol><symbol id="icon-biaoqianye" viewBox="0 0 1024 1024"><path d="M376.6 494.8c5.1 4.8 7.9 11.7 7.6 18.7 0.4 7.1-2.5 14-7.6 18.7-5.3 4.7-12.3 7.2-19.3 6.9h-69.6v235.1c0.2 7.4-2.9 14.4-8.4 19.1-5.5 5.4-12.9 8.3-20.5 8.1-7.6 0.3-15.1-2.7-20.5-8.1-5.3-4.9-8.2-11.9-8.1-19.1v-235H161c-7.2 0.3-14.2-2.3-19.3-7.3-5.2-4.8-8-11.7-7.6-18.7-0.3-7 2.5-13.7 7.6-18.3 5.3-4.8 12.2-7.3 19.3-7h198.4c6.3 0 12.4 2.5 17.2 6.9z m215.7 70.1c5.2 5.1 8 12.2 7.7 19.6v189.9c0.3 7.2-2.5 14.2-7.7 19.1-4.8 5.3-11.7 8.3-18.9 8.1-7.1 0.1-13.9-2.7-18.9-7.7-4.8-5.2-7.6-12-7.6-19.1-18 19.5-42.9 30.8-69.2 31.4-19.7 0.3-38.9-5.3-55.5-15.9-17.2-10.7-31.2-26.1-40.3-44.4-19.3-40.4-19.3-87.6 0-128 8.9-18.4 22.9-33.8 40.3-44.4 16-10.5 34.8-16.1 53.9-15.9 26.3-0.1 51.8 9.8 71.2 27.7-0.2-7.3 2.6-14.4 7.7-19.6 10.6-10.2 27.2-10.2 37.8 0l-0.5-0.8z m-61.2 168.7c24.1-31.6 24.1-75.6 0-107.2-11.5-14.3-28.9-22.3-47.1-21.6-17.9-0.5-35.1 7.4-46.3 21.6-12.1 15-18.5 34-18.1 53.4-0.6 19.5 5.7 38.6 17.7 53.8 11.6 13.9 28.8 21.7 46.7 21.2 18.1 0.4 35.3-7.4 47.1-21.2zM835.4 573c17.1 10.7 31 25.9 40.3 44 9.9 19.8 14.9 41.8 14.5 64 0.4 22.3-4.6 44.4-14.5 64.4-9 18.3-23 33.7-40.3 44.4-16 10.6-34.8 16.1-53.9 15.9-13.9 0.2-27.7-2.9-40.3-9-11.6-5-22.1-12.2-31-21.2v2.8c0.2 7.2-2.5 14.2-7.5 19.4-5 5.1-11.9 8-19.1 7.9-7.1 0.3-14-2.5-18.9-7.7-5.2-5.1-8-12.2-7.6-19.6V497.2c-0.2-7.3 2.5-14.4 7.6-19.6 10.6-10.3 27.2-10.3 37.8 0 5.1 5.2 7.9 12.2 7.6 19.6v93.3c8-9.8 18-17.7 29.4-23.2 12.4-6.8 26.2-10.3 40.3-10.2 19.7-0.2 39 5.3 55.6 15.9z m-15.7 163c12.2-15.1 18.6-34.3 18.1-53.8 0.6-19.4-5.7-38.3-17.7-53.4-12-13.4-29-21.1-46.9-21.1s-34.9 7.7-46.9 21.1c-24.1 31.6-24.1 75.6 0 107.2 11.6 14.1 29 22.1 47.1 21.6 18.3-0.2 35.4-9.1 46.3-24v2.4zM708.1 253.5c-15.5 0-28-12.5-28-28V113.4c-0.1-8 0-15.9 0-23.8V77.9c0-15.5 12.5-28 28-28H886c17 0 32.9 6.6 45 18.6 11.3 11.3 17.8 26 18.6 41.8 0.1 0.7 0.1 1.4 0.1 2.1v113.2c0 15.5-12.5 28-28 28H708.1z m28-56h157.4v-84.1c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.4-2.2-5.4-2.2H736.1v91.7zM371.9 254.6c-15.5 0-28-12.5-28-28V78.9c0-15.4 12.5-27.9 27.9-28l213.4-1.1h0.1c17 0 32.9 6.6 45 18.6 12 12.1 18.6 28 18.6 45v113.2c0 15.5-12.5 28-28 28h-249z m28-56.1h193v-85.2c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.3-2.2-5.3-2.2l-185.5 0.9v91.9z" fill="#595959" ></path><path d="M72.4 974.2c-17.3 0-33.5-6.7-45.7-18.7-12.2-12.1-18.9-28.1-18.9-45.1V113.6c0-35.2 29-63.8 64.6-63.8h169c17.3 0 33.5 6.6 45.7 18.7 12.2 12 18.9 28.1 18.9 45.1V283c0 2 0.8 3.9 2.3 5.4 1.5 1.4 3.4 2.2 5.4 2.2h637.9c17.3 0 33.5 6.6 45.7 18.7 12.2 12 18.9 28 18.9 45.1v556c0 17.1-6.7 33.1-18.9 45.1s-28.4 18.7-45.7 18.7H72.4z m7.7-860.6c-4.3 0-7.7 3.4-7.7 7.6v788.7c0 2 0.8 4 2.3 5.4 1.4 1.4 3.4 2.2 5.4 2.2h871.5c2.1 0 4-0.8 5.4-2.2 1.5-1.4 2.3-3.3 2.3-5.4V350.6c0-2-0.8-3.9-2.2-5.3-1.5-1.5-3.4-2.3-5.4-2.3h-638c-17.3 0-33.5-6.7-45.7-18.7-12.2-12-18.9-28.1-18.9-45.1V121.1c0-2-0.8-3.9-2.3-5.4-1.4-1.4-3.4-2.2-5.4-2.2H80.1z" fill="#595959" ></path></symbol><symbol id="icon-buzhou" viewBox="0 0 1024 1024"><path d="M488.106667 792.462222h257.137777a28.444444 28.444444 0 0 0 28.444445-28.444444 28.444444 28.444444 0 0 0-28.444445-28.444445H488.106667a28.444444 28.444444 0 0 0-28.444445 28.444445 28.444444 28.444444 0 0 0 28.444445 28.444444zM242.346667 764.017778A80.782222 80.782222 0 1 0 341.333333 686.08v-96.142222a80.213333 80.213333 0 0 0 0-155.875556V337.92a80.782222 80.782222 0 1 0-39.822222 0v96.142222a80.213333 80.213333 0 0 0 0 155.875556v96.142222a80.782222 80.782222 0 0 0-59.164444 77.937778zM284.444444 259.982222a40.96 40.96 0 0 1 81.92 0 40.391111 40.391111 0 0 1-40.391111 40.96 40.391111 40.391111 0 0 1-41.528889-40.96zM284.444444 512a40.96 40.96 0 1 1 40.96 40.96A40.96 40.96 0 0 1 284.444444 512z m40.391112 211.057778a40.391111 40.391111 0 0 1 40.391111 40.96 40.96 40.96 0 0 1-81.92 0 40.391111 40.391111 0 0 1 39.253333-40.96zM488.106667 540.444444h257.137777a28.444444 28.444444 0 1 0 0-56.888888H488.106667a28.444444 28.444444 0 1 0 0 56.888888zM488.106667 288.426667h257.137777a28.444444 28.444444 0 0 0 28.444445-28.444445 28.444444 28.444444 0 0 0-28.444445-28.444444H488.106667a28.444444 28.444444 0 0 0-28.444445 28.444444 28.444444 28.444444 0 0 0 28.444445 28.444445z" fill="#151515" ></path><path d="M859.022222 79.644444H164.977778a22.755556 22.755556 0 0 0-22.755556 22.755556v819.2a22.755556 22.755556 0 0 0 22.755556 22.755556h694.044444a22.755556 22.755556 0 0 0 22.755556-22.755556V102.4a22.755556 22.755556 0 0 0-22.755556-22.755556z m-22.755555 819.2H187.733333V125.155556h648.533334z" fill="#151515" ></path></symbol><symbol id="icon-ok" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M715.6 371.6c-15.7-15.7-41.4-15.7-57 0l-196 196-95.9-95.9c-15.7-15.7-41.4-15.7-57 0-15.7 15.7-15.7 41.4 0 57l124.5 124.5c15.7 15.7 41.4 15.7 57 0l224.5-224.5c15.6-15.7 15.6-41.4-0.1-57.1z" ></path></symbol><symbol id="icon-cancel" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M697.9 329.1c-15.6-15.6-41-15.6-56.6 0L513 457.4 384.7 329.1c-15.6-15.6-41-15.6-56.6 0-15.6 15.6-15.6 41 0 56.6L456.4 514 328.1 642.3c-15.6 15.6-15.6 41 0 56.6 15.6 15.6 41 15.6 56.6 0L513 570.6l128.3 128.3c15.6 15.6 41 15.6 56.6 0 15.6-15.6 15.6-41 0-56.6L569.6 514l128.3-128.3c15.6-15.6 15.6-41.1 0-56.6z" ></path></symbol><symbol id="icon-savebaocun" viewBox="0 0 1024 1024"><path d="M778.7 97.2H247.3C165 97.2 98 164.3 98 246.7v532.2c0 82.4 67 149.4 149.3 149.4h531.5c82.3 0 149.3-67 149.3-149.4V246.7C928 164.3 861 97.2 778.7 97.2z m-452.2 79.9h373.1v83.7H331.9c-2.9 0-5.5-2.6-5.5-5.5v-78.2z m373 671.3h-373v-225h373.1v225z m148.7-69.6c0 38.1-30.8 69.2-68.8 69.5V612.9c0-38.3-31.1-69.4-69.3-69.4H316c-38.2 0-69.3 31.1-69.3 69.4v235.4c-38-0.3-68.8-31.4-68.8-69.5V246.7c0-38.1 30.8-69.2 68.8-69.5v78.2c0 47.1 38.3 85.4 85.3 85.4h378c38.2 0 69.3-31.1 69.3-69.4v-94.2c38 0.3 68.8 31.4 68.8 69.5v532.1z" ></path></symbol><symbol id="icon-shijianxian2" viewBox="0 0 1024 1024"><path d="M171.52 924.16v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z m0-322.56v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z m0-394.24v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z" ></path><path d="M350.72 350.72c0 79.36-64 143.36-143.36 143.36s-143.36-64-143.36-143.36 64-143.36 143.36-143.36 143.36 64 143.36 143.36z m-143.36-71.68c-39.424 0-71.68 32.256-71.68 71.68s32.256 71.68 71.68 71.68 71.68-32.256 71.68-71.68-32.256-71.68-71.68-71.68z m143.36 430.08c0 79.36-64 143.36-143.36 143.36s-143.36-64-143.36-143.36 64-143.36 143.36-143.36 143.36 64 143.36 143.36z m-143.36-71.68c-39.424 0-71.68 32.256-71.68 71.68s32.256 71.68 71.68 71.68 71.68-32.256 71.68-71.68-32.256-71.68-71.68-71.68z m716.8-286.72h-501.76c-19.968 0-35.84-15.872-35.84-35.84s15.872-35.84 35.84-35.84h501.76c19.968 0 35.84 15.872 35.84 35.84s-15.872 35.84-35.84 35.84z m-284.672 107.52H420.352c-18.432 0-33.792-15.36-33.792-33.792v-4.096c0-18.432 15.36-33.792 33.792-33.792h219.136c18.432 0 33.792 15.36 33.792 33.792v4.096c0 18.432-15.36 33.792-33.792 33.792z m284.672 250.88h-501.76c-19.968 0-35.84-15.872-35.84-35.84s15.872-35.84 35.84-35.84h501.76c19.968 0 35.84 15.872 35.84 35.84s-15.872 35.84-35.84 35.84z m-284.672 107.52H420.352c-18.432 0-33.792-15.36-33.792-33.792v-4.096c0-18.432 15.36-33.792 33.792-33.792h219.136c18.432 0 33.792 15.36 33.792 33.792v4.096c0 18.432-15.36 33.792-33.792 33.792z" ></path></symbol><symbol id="icon-buzhoutiao" viewBox="0 0 1024 1024"><path d="M0 0h1024v1024H0z" fill="#FFFFFF" fill-opacity="0" ></path><path d="M204 372c66.31 0 121.852 46.1 136.326 108h137.53c12.901-33.907 45.71-58 84.144-58 38.435 0 71.243 24.093 84.145 58h139.71c12.902-33.907 45.71-58 84.145-58 49.706 0 90 40.294 90 90s-40.294 90-90 90c-38.434 0-71.242-24.092-84.144-57.998H646.144C633.242 577.908 600.434 602 562 602c-38.434 0-71.242-24.092-84.144-57.998h-137.53C325.852 605.9 270.309 652 204 652c-77.32 0-140-62.68-140-140s62.68-140 140-140z m0 64c-41.974 0-76 34.026-76 76s34.026 76 76 76 76-34.026 76-76-34.026-76-76-76z m358 50c-14.36 0-26 11.64-26 26s11.64 26 26 26 26-11.64 26-26-11.64-26-26-26z m308 0c-14.36 0-26 11.64-26 26s11.64 26 26 26 26-11.64 26-26-11.64-26-26-26z" fill="#666666" ></path></symbol><symbol id="icon-m-qianming" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M573.44 646.656l-3.072 6.144c-8.192 12.288-14.336 25.088-19.456 38.912-6.656 18.944-3.072 36.352 16.896 43.008 34.816 11.264 72.704 9.216 106.496-4.608 9.216-3.072 11.264-4.096 34.304-12.8 16.384-6.656 33.792-12.8 51.2-17.408 1.024 0 2.048-0.512 3.072-1.024 10.24-2.048 6.656-5.632 16.896 1.024 3.584 3.072 8.704 4.096 13.312 3.072 4.608-1.024 5.632-3.072 8.192-7.68 5.632-8.192 3.584-19.456-4.608-25.088-18.944-12.8-22.528-10.24-41.472-6.144-1.536 0.512-3.072 0.512-4.096 1.024-18.944 5.12-37.376 11.264-55.808 18.432-22.016 8.704-24.064 9.728-32.768 12.288-24.576 10.24-52.224 12.8-78.336 6.144 4.608-11.264 10.24-22.016 16.896-32.256 1.536-2.048 2.56-4.096 3.584-6.144 8.704-13.824 15.36-29.184 18.432-45.056 4.096-19.456-7.68-38.4-27.136-42.496-0.512 0-1.536-0.512-2.048-0.512-27.648-6.656-59.392 3.072-148.992 37.888-81.92 32.256-117.76 41.984-129.024 35.84-4.096-2.56-8.704-3.072-13.312-1.536-9.728 2.56-15.36 12.8-12.8 22.016 1.024 4.608 4.096 8.192 8.192 10.752 23.04 8.704 48.64 7.68 71.168-2.048 29.696-9.216 59.392-19.456 88.064-32.256 77.824-30.72 111.104-40.448 126.976-36.352 3.072 1.024 3.072 0 2.56 3.072-2.56 12.288-7.168 23.552-13.312 33.792zM665.088 235.52c-19.456-17.92-49.664-17.408-68.608 1.024L312.32 519.68c-2.048 2.048-3.584 4.608-4.608 7.68l-22.528 80.896c-2.56 9.728 3.072 19.456 12.8 21.504 3.584 1.024 7.68 0.512 11.264-0.512l71.168-29.696c5.632-2.56 10.752-5.632 15.36-10.24l283.648-269.824 2.56-2.56c18.432-19.456 17.92-50.176-2.048-68.608l-1.024-1.024-13.824-11.776z" ></path></symbol><symbol id="icon-touxiang_avatar" viewBox="0 0 1024 1024"><path d="M925.866667 797.866667c-12.8-25.6-34.133333-46.933333-64-64-29.866667-21.333333-68.266667-34.133333-119.466667-42.666667-4.266667 0-29.866667-4.266667-59.733333-12.8-21.333333-4.266667-34.133333-8.533333-38.4-12.8v-17.066667c4.266667-51.2 29.866667-76.8 55.466666-106.666666 8.533333-8.533333 17.066667-21.333333 25.6-29.866667 29.866667-42.666667 34.133333-89.6 34.133334-98.133333 0-8.533333 0-17.066667-4.266667-21.333334-4.266667-8.533333-8.533333-12.8-12.8-21.333333 0-12.8 4.266667-21.333333 4.266667-29.866667 0-21.333333 4.266667-55.466667-4.266667-89.6 0-8.533333-4.266667-12.8-4.266667-21.333333-8.533333-25.6-17.066667-46.933333-34.133333-68.266667-4.266667-12.8-64-72.533333-234.666667-85.333333H401.066667c-4.266667 0-17.066667 0-25.6 4.266667-21.333333 4.266667-38.4 21.333333-42.666667 42.666666v21.333334c-8.533333 8.533333-55.466667 51.2-55.466667 102.4-4.266667 34.133333-4.266667 85.333333 0 123.733333-8.533333 8.533333-17.066667 21.333333-12.8 42.666667 0 12.8 4.266667 55.466667 34.133334 98.133333 8.533333 8.533333 17.066667 17.066667 25.6 29.866667 25.6 29.866667 51.2 55.466667 55.466666 106.666666v17.066667c-4.266667 4.266667-17.066667 8.533333-38.4 12.8-29.866667 8.533333-59.733333 12.8-64 12.8-46.933333 8.533333-85.333333 21.333333-115.2 42.666667-25.6 17.066667-46.933333 38.4-64 64-25.6 38.4-25.6 76.8-25.6 85.333333v21.333333c0 25.6 21.333333 46.933333 46.933334 46.933334H896c25.6 0 46.933333-21.333333 46.933333-46.933334v-17.066666c8.533333-12.8 8.533333-51.2-17.066666-89.6z m-546.133334-128c0 4.266667 0 4.266667 0 0v4.266666c-4.266667 0-4.266667 0 0-4.266666z m503.466667 213.333333l-742.4 4.266667v-4.266667s0-25.6 12.8-51.2c8.533333-17.066667 25.6-29.866667 42.666667-42.666667 25.6-17.066667 55.466667-25.6 89.6-34.133333 4.266667 0 34.133333-4.266667 68.266666-12.8 51.2-12.8 76.8-29.866667 85.333334-46.933333 0-4.266667 0-4.266667 4.266666-8.533334v-42.666666c-8.533333-72.533333-42.666667-115.2-72.533333-145.066667-8.533333-8.533333-12.8-17.066667-21.333333-21.333333-21.333333-29.866667-21.333333-59.733333-21.333334-64l4.266667-4.266667 8.533333-8.533333c4.266667-17.066667 0-25.6 0-29.866667-4.266667-34.133333-4.266667-81.066667 0-119.466667 0-29.866667 29.866667-55.466667 29.866667-55.466666 8.533333-4.266667 17.066667-12.8 21.333333-21.333334 0-4.266667 4.266667-4.266667 4.266667-8.533333v-25.6H465.066667c140.8 8.533333 192 59.733333 192 59.733333 8.533333 12.8 17.066667 25.6 21.333333 42.666667 4.266667 4.266667 4.266667 8.533333 4.266667 12.8 4.266667 29.866667 4.266667 55.466667 4.266666 76.8 0 12.8 0 21.333333-4.266666 38.4 0 12.8 0 25.6 8.533333 29.866667l4.266667 4.266666 4.266666 4.266667s0 34.133333-21.333333 64c-4.266667 8.533333-12.8 12.8-21.333333 21.333333-29.866667 29.866667-64 72.533333-72.533334 145.066667v42.666667c0 4.266667 0 4.266667 4.266667 8.533333 8.533333 21.333333 34.133333 34.133333 85.333333 46.933333 34.133333 8.533333 64 12.8 68.266667 12.8 38.4 8.533333 68.266667 17.066667 93.866667 34.133334 17.066667 12.8 34.133333 25.6 42.666666 42.666666 8.533333 25.6 8.533333 51.2 4.266667 55.466667z" ></path></symbol><symbol id="icon-m-mianban" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M884.15744 348.01152v49.152h-745.984v-49.152z" ></path><path d="M356.43392 846.99136h-49.152v-450.048h49.152z" ></path></symbol><symbol id="icon-m-xialakuang" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M510.464 639.488l207.872-254.976H302.08z" ></path></symbol><symbol id="icon-m-biaodan" viewBox="0 0 1024 1024"><path d="M122.88 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384H122.88c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H137.216c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M244.224 279.04h142.848v49.152H244.224zM244.224 425.472h142.848v49.152H244.224zM436.736 279.04h342.528v49.152H436.736zM436.736 425.472h342.528v49.152H436.736zM244.224 572.416h142.848v49.152H244.224zM436.736 572.416h342.528v172.544H436.736z" ></path></symbol><symbol id="icon-m-biaoge" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M249.344 347.648h49.152v499.2h-49.152zM584.704 347.648h49.152v499.2h-49.152zM137.728 165.888h746.496v181.76H137.728z" ></path><path d="M137.728 481.792h746.496v49.152H137.728zM137.728 664.576h746.496v49.152H137.728z" ></path></symbol><symbol id="icon-dashboard-o" viewBox="0 0 1024 1024"><path d="M880 622c17.673 0 32 14.327 32 32v226c0 17.673-14.327 32-32 32H582c-17.673 0-32-14.327-32-32V654c0-17.673 14.327-32 32-32h298zM442 476c17.673 0 32 14.327 32 32v372c0 17.673-14.327 32-32 32H144c-17.673 0-32-14.327-32-32V508c0-17.673 14.327-32 32-32h298z m406 210H614v162h234V686zM410 540H176v308h234V540z m470-428c17.673 0 32 14.327 32 32v372c0 17.673-14.327 32-32 32H582c-17.673 0-32-14.327-32-32V144c0-17.673 14.327-32 32-32h298z m-32 64H614v308h234V176z m-406-64c17.673 0 32 14.327 32 32v226c0 17.673-14.327 32-32 32H144c-17.673 0-32-14.327-32-32V144c0-17.673 14.327-32 32-32h298z m-32 64H176v162h234V176z" fill="#000000" fill-opacity=".65" ></path></symbol><symbol id="icon-line-layoutmasonryfensanbuju" viewBox="0 0 1024 1024"><path d="M896 128H128c-25.6 0-42.666667 17.066667-42.666667 42.666667v682.666666c0 25.6 17.066667 42.666667 42.666667 42.666667h768c25.6 0 42.666667-17.066667 42.666667-42.666667V170.666667c0-25.6-17.066667-42.666667-42.666667-42.666667zM170.666667 213.333333h298.666666v341.333334H170.666667V213.333333z m0 597.333334v-170.666667h298.666666v170.666667H170.666667z m682.666666 0h-298.666666v-341.333334h298.666666v341.333334z m0-426.666667h-298.666666V213.333333h298.666666v170.666667z" fill="#09121F" ></path></symbol><symbol id="icon-zidingyibuju" viewBox="0 0 1024 1024"><path d="M0 0v256h1024V0z m960 192H64V64h896zM0 1024h512V320H0z m64-640h384v576H64zM576 576h448v-256H576z m64-192h320v128H640zM576 1024h448V640H576z m64-320h320v256H640z" fill="#575869" ></path></symbol><symbol id="icon-daochu" viewBox="0 0 1024 1024"><path d="M394.6 689.8c-13.2 3.2-27.4-9.5-31.7-23.2-8.4-28.5-12.7-58.6-12.7-88.1 0-159.4 151.5-325.1 314.1-352.1v-5.3c0-1.6 0-3.7 0.5-5.3l0.5-2.1c1.6-11.6 5.8-38.5 32.2-55.4 10.6-6.9 22.2-10 34.3-10 14.8 0 26.9 5.3 34.3 9.5 1.6 0.5 2.6 1.6 4.2 2.6L929.2 286c17.4 13.2 28 34.8 28 57 0 22.7-10.6 44.3-28.5 57.5L770.5 525.7c-11.6 9-25.3 13.7-39.1 13.7-12.1 0-23.8-3.7-34.8-10.6-21.1-13.7-31.7-34.8-31.7-64.4v-1.1C559.3 475 442.2 569 416.3 657.6c-4.8 14.3-13.7 32.2-21.7 32.2z m335.7-466.6V256c0 17.4-13.7 31.7-31.1 32.7-125.6 6.9-257.6 131.4-279.7 254.4C486 458.7 595.2 390 699.7 397.4c17.4 1.1 30.6 15.3 30.6 32.7V465c0 4.7 0.5 6.9 0.5 7.9l157.3-124.6c2.1-1.6 2.6-3.2 2.6-5.3 0-2.1-1.1-4.2-2.6-5.3L731.9 214.3c-1.1 1.6-1.6 5.8-2.1 8.4l0.5 0.5z m0 0" ></path><path d="M715.6 916.3H188.3c-67 0-121.9-54.9-121.9-121.9v-568c0-67 54.9-121.9 121.9-121.9h436.5v69.7H188.3c-28.5 0-52.3 23.2-52.3 52.3V795c0 28.5 23.2 52.3 52.3 52.3h527.3c28.5 0 52.3-23.2 52.3-52.3V593.2H837v201.6c0 66.6-54.4 121.5-121.4 121.5z m0 0" ></path><path d="M183 566.9h112.4V626H183v-59.1z m0 154.1h296.1v59.1H183V721z m0-425.4h237v59.1H183v-59.1z m0 140.9h112.4v59.1H183v-59.1z m0 0" ></path></symbol><symbol id="icon-daoru" viewBox="0 0 1024 1024"><path d="M111.6 148.8c7.9 0 16.9 17.9 21.6 32.2 25.9 88.7 143 182.6 248.6 194.2v-1.1c0-29.6 10.6-50.7 31.7-64.4 11.1-6.9 22.7-10.6 34.8-10.6 13.7 0 27.4 4.8 39.1 13.7L645.8 438c17.9 13.2 28.5 34.8 28.5 57.5 0 22.2-10.6 43.8-28 57L487.4 678.2c-1.6 1.1-2.6 2.1-4.2 2.6-7.4 4.2-19.5 9.5-34.3 9.5-12.1 0-23.7-3.2-34.3-10-26.4-16.9-30.6-43.8-32.2-55.4l-0.5-2.1c-0.5-1.6-0.5-3.7-0.5-5.3v-5.3c-162.6-26.9-314.1-192.6-314.1-352 0-29.6 4.2-59.6 12.7-88.1 4.2-13.8 18.4-26.5 31.6-23.3z m335.2 467.1c0.5 2.6 1.1 6.9 2.1 8.4l156.2-123.5c1.6-1.1 2.6-3.2 2.6-5.3 0-2.1-0.5-3.7-2.6-5.3L447.8 365.7c0 1.1-0.5 3.2-0.5 7.9v34.8c0 17.4-13.2 31.7-30.6 32.7-104.5 7.4-213.8-61.2-280.3-145.7 22.2 123 154.1 247.5 279.7 254.4 17.4 1.1 31.1 15.3 31.1 32.7v32.7l-0.4 0.7z m0.5-0.5" ></path><path d="M309 916.3c-67 0-121.4-54.9-121.4-121.4V593.2h69.1v201.6c0 29 23.8 52.3 52.3 52.3h527.3c29 0 52.3-23.8 52.3-52.3V226.4c0-29-23.8-52.3-52.3-52.3H399.8v-69.7h436.5c67 0 121.9 54.9 121.9 121.9v567.9c0 67-54.9 121.9-121.9 121.9H309v0.2z m0 0" ></path><path d="M841.6 626H729.1v-59.1h112.4V626z m0 154.1H545.5V721h296.1v59.1z m0-425.4h-237v-59.1h237v59.1z m0 140.9H729.1v-59.1h112.4v59.1z m0-59.1" ></path></symbol><symbol id="icon-a-juxing1851" viewBox="0 0 1024 1024"><path d="M0 0h438.857143v1024H0V0z m512 0h512v438.857143H512V0z m0 512h219.428571v219.428571H512V512z m292.571429 0h219.428571v219.428571h-219.428571V512z m-292.571429 292.571429h73.142857v73.142857H512v-73.142857z m146.285714 0h73.142857v73.142857H658.285714v-73.142857z m-146.285714 146.285714h73.142857v73.142857H512v-73.142857z m146.285714 0h73.142857v73.142857H658.285714v-73.142857z m146.285715 0h73.142857v73.142857h-73.142857v-73.142857z m146.285714 0h73.142857v73.142857h-73.142857v-73.142857z m-146.285714-146.285714h73.142857v73.142857h-73.142857v-73.142857z m146.285714 0h73.142857v73.142857h-73.142857v-73.142857z" ></path></symbol><symbol id="icon-sxsz" viewBox="0 0 1024 1024"><path d="M304.5 152.6h415L927 512 719.5 871.4h-415L97 512z" fill="#386BF3" ></path><path d="M512 512m-145.25 0a145.25 145.25 0 1 0 290.5 0 145.25 145.25 0 1 0-290.5 0Z" fill="#3D4265" ></path></symbol><symbol id="icon-mx" viewBox="0 0 1024 1024"><path d="M511.9 325.12v248.55L727.15 449.4l-0.01-248.55z" fill="#C3D2FB" ></path><path d="M296.65 200.85L511.9 325.12v248.56L296.65 449.4z" fill="#3D4265" ></path><path d="M511.9 325.12l215.25-124.27L511.9 76.57 296.65 200.85z" fill="#386BF3" ></path><path d="M296.62 698.02v248.55L511.87 822.3l-0.01-248.56z" fill="#C3D2FB" ></path><path d="M81.37 573.74l215.25 124.28v248.55L81.37 822.3z" fill="#3D4265" ></path><path d="M296.62 698.02l215.25-124.28-215.25-124.27L81.37 573.74z" fill="#386BF3" ></path><path d="M727.03 698.02v248.55L942.28 822.3l-0.01-248.56z" fill="#C3D2FB" ></path><path d="M511.78 573.74l215.25 124.28v248.55L511.78 822.3z" fill="#3D4265" ></path><path d="M727.03 698.02l215.25-124.28-215.25-124.27-215.25 124.27z" fill="#386BF3" ></path></symbol><symbol id="icon-al" viewBox="0 0 1024 1024"><path d="M192 132h440v640H192z" fill="#386BF3" ></path><path d="M632 260h200v512H632z" fill="#C3D2FB" ></path><path d="M398.86 612L512 725.14 625.14 612H912v280H112V612z" fill="#3D4265" ></path></symbol><symbol id="icon-sf" viewBox="0 0 1024 1024"><path d="M511.82 512.5v435L888.54 730l-0.02-435z" fill="#C3D2FB" ></path><path d="M135.1 295l376.72 217.5v435L135.1 730z" fill="#3D4265" ></path><path d="M511.82 512.5L888.54 295 511.82 77.5 135.1 295z" fill="#386BF3" ></path></symbol><symbol id="icon-moxing" viewBox="0 0 1061 1024"><path d="M447.122 467.332L49.24 268.162A33.501 33.501 0 0 0 0.136 300.745v441.02a33.042 33.042 0 0 0 16.062 27.994l396.965 248.275a33.96 33.96 0 0 0 17.438 5.507 33.042 33.042 0 0 0 33.043-33.042V497.162a33.042 33.042 0 0 0-16.522-29.83z m598.889-203.76a33.042 33.042 0 0 0-31.666 0l-463.507 203.76a33.042 33.042 0 0 0-19.733 30.289v493.337a33.042 33.042 0 0 0 49.563 28.453l463.048-265.255a33.042 33.042 0 0 0 16.521-28.453V291.566a33.042 33.042 0 0 0-14.226-27.994z m-54.611-84.9a33.042 33.042 0 0 0-22.487-29.83L550.838 1.53a32.583 32.583 0 0 0-19.733 0L83.659 158.021a33.042 33.042 0 0 0-4.13 61.036l397.882 199.17a33.501 33.501 0 0 0 14.685 3.213 33.96 33.96 0 0 0 13.31 0L969.37 215.845a33.042 33.042 0 0 0 22.029-37.173z" fill="#5E5C5C" ></path></symbol><symbol id="icon-yanzhengyanzhengma" viewBox="0 0 1024 1024"><path d="M943.1 172c-2.4-0.2-245.1-25.3-413.8-147.8-5.1-3.7-11-5.6-17.3-5.6-6.2 0-12.2 1.9-17.3 5.6C326.9 146 83.3 171.8 80.9 172c-15.2 1.4-26.6 14.1-26.6 29.3 0 6.7 0.6 165.8 54.8 344.4 32.1 105.8 76.4 196.4 131.9 269.2 70.3 92.3 158.5 156 262 189.2 2.9 0.9 5.9 1.4 9 1.4s6.1-0.5 8.9-1.4c103.6-33.2 191.7-96.8 262-189.2 55.4-72.7 99.8-163.2 131.9-269.2 54.1-178.6 54.8-337.7 54.8-344.4C969.7 186.1 958.3 173.5 943.1 172zM910.1 227.2l-0.1 1.6c-2.9 58.1-13.4 174.4-51.4 299.9-66.7 220.1-183.1 360.1-346 416.1L512 945l-0.6-0.2C349 888.9 232.7 749.4 165.8 530.1c-39.8-130.5-49.4-254.2-51.8-301.4l-0.1-1.6 1.5-0.2c70.6-10.3 250.5-44.8 395.5-142.4l0.9-0.7 1 0.7C658 182.1 837.9 216.6 908.5 227L910.1 227.2z" ></path><path d="M641.8 351 467 580.3l-89-76.1c-5.3-4.5-12.1-7-19.1-7-8.6 0-16.8 3.7-22.4 10.3-10.5 12.3-9.1 31 3.3 41.5l112.7 96.4c5.2 4.4 12.4 7 19.6 7 0.9 0 1.8 0 2.7-0.1 8-0.8 15.4-5 20.3-11.4l193.7-254c4.8-6.3 6.8-14 5.7-21.8-1-7.8-5.1-14.7-11.3-19.5C670.1 335.6 651.6 338.1 641.8 351z" ></path></symbol><symbol id="icon-verify" viewBox="0 0 1024 1024"><path d="M713.856 93.44c44.672 9.344 79.36 15.488 105.024 18.944a332.8 332.8 0 0 0 28.864 3.008A110.08 110.08 0 0 1 944 223.36v348.672c0 71.232-36.288 168.32-80.704 219.328a737.216 737.216 0 0 1-100.672 106.496C683.264 966.208 599.232 1008 512 1008s-171.328-41.792-250.624-110.144c-26.88-23.168-51.2-47.808-72.832-72.512a409.152 409.152 0 0 1-24.768-30.208c-47.68-52.928-83.776-150.4-83.776-223.104V223.36c0-54.72 42.752-102.528 99.264-108.096 5.76-0.32 17.536-1.408 34.432-3.648a953.6 953.6 0 0 0 95.168-17.92c19.392-4.608 34.944-12.16 65.92-30.4l9.984-5.888C434.048 28.416 466.432 16 512 16c39.296 0 68.288 11.84 127.488 43.968l2.304 1.28c38.784 21.056 55.296 28.672 72.064 32.192z m-19.712 93.952c-29.376-6.144-50.688-16-98.176-41.856l-2.304-1.216C549.312 120.32 529.088 112 512 112c-24.192 0-42.88 7.168-78.656 28.16-4.736 2.88-4.736 2.88-9.728 5.76-38.784 22.912-61.12 33.664-92.48 41.216-37.76 8.96-72.96 15.36-104.768 19.648a556.8 556.8 0 0 1-39.68 4.16c-5.12 0.512-10.688 6.784-10.688 12.416v348.672c0 49.344 27.52 123.84 62.08 162.56a642.176 642.176 0 0 0 85.952 90.56c63.552 54.72 128.192 86.848 187.968 86.848 59.776 0 124.416-32.128 187.968-86.848a642.176 642.176 0 0 0 88.32-93.632c31.808-36.608 59.712-111.36 59.712-159.488V223.36c0-5.44-5.888-12.032-6.656-12.288-20.288-0.448-66.112-6.72-147.2-23.68zM400.128 488.704L487.68 576.256l185.088-185.088a48 48 0 0 1 67.84 67.84L521.6 678.144a48 48 0 0 1-67.84 0l-121.6-121.536a48 48 0 1 1 67.968-67.84z" fill="#768893" ></path></symbol><symbol id="icon-preview" viewBox="0 0 1024 1024"><path d="M854.36155804 32.02835121a114.60838884 114.60838884 0 0 1 114.21544637 105.17775738l0.39294247 9.43063278v170.60277392a49.1178817 49.1178817 0 0 1-97.77732893 6.68003145l-0.45843311-6.68003145V146.63674137a16.37262679 16.37262679 0 0 0-12.63966726-15.9796843l-3.73295954-0.39294246H130.1675186a16.37262679 16.37262679 0 0 0-15.91419368 12.57417659l-0.45843312 3.79845017v732.18388095a16.37262679 16.37262679 0 0 0 12.63966859 15.91419369l3.73295821 0.4584331h275.4530781a49.1178817 49.1178817 0 0 1 6.68003143 97.77732894l-6.68003143 0.4584331H130.1675186a114.60838884 114.60838884 0 0 1-114.21544639-105.24324667l-0.39294246-9.36514216V146.63674137a114.60838884 114.60838884 0 0 1 105.24324669-114.28093698l9.36514216-0.32745318h724.19403944z m-286.32450218 495.1082417a235.76582919 235.76582919 0 0 1 358.88798459 303.35203402l80.61881587 80.55332523a39.29430509 39.29430509 0 0 1-55.53595059 55.66693187l-80.61881589-80.61881587a235.83131983 235.83131983 0 0 1-303.35203398-358.88798459z m277.87622625 55.60144257a157.17721902 157.17721902 0 1 0-222.27478502 222.2747837 157.17721902 157.17721902 0 0 0 222.27478502-222.2747837z m-450.70567639-33.26917864a42.56883017 42.56883017 0 1 1 0 85.13766035H210.39339064a42.56883017 42.56883017 0 1 1 0-85.13766035h184.81421508z m0-158.68350096a42.56883017 42.56883017 0 1 1 0 85.13766036H210.39339064a42.56883017 42.56883017 0 1 1 0-85.13766036h184.81421508z m233.67013285-158.68350095a42.56883017 42.56883017 0 1 1 0 85.13766036h-418.48434793a42.56883017 42.56883017 0 1 1 0-85.13766036h418.48434793z" fill="#7f7f7f" ></path></symbol><symbol id="icon-yunshangchuan-xian" viewBox="0 0 1039 1024"><path d="M711.40656 345.248C667.88656 248.448 594.91056 208 481.83856 208c-118.848 0-219.328 96.512-256.736 267.76l-4.96 22.752-23.2 2.256c-83.744 8.192-120.176 54.176-131.36 144.4C54.30256 736.528 103.18256 816 193.85456 816h190.672a32 32 0 1 1 0 64H193.83856C58.68656 880-13.44144 762.72 2.07856 637.296 15.61456 528 65.80656 458.416 167.75856 440.224 215.27856 254.704 335.99856 144 481.83856 144c143.072 0 241.184 58.72 294.24 189.808 3.328-0.176 6.576-0.272 9.76-0.272 125.184 0 223.68 93.696 239.84 252.768 0.896 8.96 1.36 17.952 1.36 26.96C1027.03856 760.576 907.61456 880 760.30256 880h-120.064a32 32 0 1 1 0-64h120.064c111.968 0 202.72-90.768 202.72-202.736 0-6.848-0.32-13.68-1.024-20.48-12.912-127.088-84.544-195.248-176.16-195.248-23.136 0-55.68 7.232-96.928 22.032a32 32 0 1 1-21.616-60.224c15.584-5.6 30.288-10.304 44.112-14.08zM544.23856 598.512V848a32 32 0 0 1-64 0V598.512l-39.712 46.32a32 32 0 1 1-48.592-41.664l95.632-111.552a32.032 32.032 0 0 1 49.344 0l95.616 111.552a32 32 0 0 1-48.592 41.664l-39.696-46.32z" ></path></symbol><symbol id="icon-yulan" viewBox="0 0 1024 1024"><path d="M897.28 85.333333h-750.933333c-28.16 0-51.2 23.04-51.2 51.2v750.933334c0 28.16 23.04 51.2 51.2 51.2h276.906666c18.773333 0 34.133333-15.36 34.133334-34.133334s-15.36-34.133333-34.133334-34.133333H163.413333V153.6h716.8v275.626667c0 18.773333 15.36 34.133333 34.133334 34.133333s34.133333-15.36 34.133333-34.133333V136.533333c0-28.16-22.613333-51.2-51.2-51.2z" fill="#4C4C4C" ></path><path d="M649.813333 315.733333h-324.266666c-18.773333 0-34.133333-15.36-34.133334-34.133333s15.36-34.133333 34.133334-34.133333h324.266666c18.773333 0 34.133333 15.36 34.133334 34.133333s-14.933333 34.133333-34.133334 34.133333zM564.48 452.266667h-238.933333c-18.773333 0-34.133333-15.36-34.133334-34.133334s15.36-34.133333 34.133334-34.133333h238.933333c18.773333 0 34.133333 15.36 34.133333 34.133333s-14.933333 34.133333-34.133333 34.133334zM479.146667 588.8h-153.6c-18.773333 0-34.133333-15.36-34.133334-34.133333s15.36-34.133333 34.133334-34.133334h153.6c18.773333 0 34.133333 15.36 34.133333 34.133334s-14.933333 34.133333-34.133333 34.133333zM724.48 544c-94.293333 0-170.666667 76.373333-170.666667 170.666667s76.373333 170.666667 170.666667 170.666666 170.666667-76.373333 170.666667-170.666666-76.373333-170.666667-170.666667-170.666667z m0 273.066667c-56.32 0-102.4-46.08-102.4-102.4s46.08-102.4 102.4-102.4 102.4 46.08 102.4 102.4-45.653333 102.4-102.4 102.4z" fill="#4C4C4C" ></path><path d="M938.666667 928.853333c-13.226667 13.226667-34.986667 13.226667-48.213334 0l-72.533333-72.533333c-13.226667-13.226667-13.226667-34.986667 0-48.213333 13.226667-13.226667 34.986667-13.226667 48.213333 0l72.533334 72.533333c13.226667 13.226667 13.226667 34.56 0 48.213333z" fill="#4C4C4C" ></path></symbol><symbol id="icon-sousuo" viewBox="0 0 1024 1024"><path d="M1004.8 915.2l-243.2-243.2c0 0-6.4-6.4-6.4-6.4C800 595.2 832 505.6 832 416 832 185.6 646.4 0 416 0S0 185.6 0 416 185.6 832 416 832c89.6 0 179.2-32 243.2-83.2 0 6.4 6.4 6.4 6.4 6.4l243.2 243.2c25.6 25.6 70.4 25.6 96 6.4C1030.4 979.2 1030.4 940.8 1004.8 915.2zM64 416C64 224 224 64 416 64S768 224 768 416 608 768 416 768 64 608 64 416z" fill="#231815" ></path></symbol><symbol id="icon-ziliucheng" viewBox="0 0 1024 1024"><path d="M212.992 526.336 212.992 526.336 212.992 526.336 215.04 526.336 212.992 526.336Z" ></path><path d="M813.056 768l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912l0-38.912-18.432 0c-53.248 0-96.256-43.008-96.256-96.256L659.456 614.4l-96.256 0 0 192.512c0 20.48-16.384 38.912-38.912 38.912L120.832 845.824c-20.48 0-38.912-16.384-38.912-38.912L81.92 401.408c0-20.48 16.384-38.912 38.912-38.912l192.512 0L313.344 190.464 120.832 190.464C98.304 190.464 81.92 174.08 81.92 151.552L81.92 112.64c0-20.48 16.384-38.912 38.912-38.912l788.48 0c20.48 0 38.912 16.384 38.912 38.912l0 38.912c0 20.48-16.384 38.912-38.912 38.912L331.776 190.464l0 174.08 192.512 0c20.48 0 38.912 16.384 38.912 38.912L563.2 593.92l96.256 0 0-153.6c0-53.248 43.008-96.256 96.256-96.256l18.432 0 0-38.912c0-20.48 16.384-38.912 38.912-38.912l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912l0-38.912-18.432 0c-43.008 0-77.824 34.816-77.824 77.824L677.888 593.92l96.256 0 0-38.912c0-20.48 16.384-38.912 38.912-38.912l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912L774.144 614.4l-96.256 0 0 153.6c0 43.008 34.816 77.824 77.824 77.824l18.432 0 0-38.912C774.144 784.384 792.576 768 813.056 768z" ></path></symbol><symbol id="icon-danyuange" viewBox="0 0 1024 1024"><path d="M467.970999 661.248453h-184.831769a70.655912 70.655912 0 0 0-54.527932 25.599968A82.431897 82.431897 0 0 0 204.803328 744.19235v196.607754A82.687897 82.687897 0 0 0 228.611298 998.400032a71.423911 71.423911 0 0 0 54.527932 25.599968h184.831769a73.727908 73.727908 0 0 0 55.039931-25.599968 81.919898 81.919898 0 0 0 23.551971-58.623927v-195.583755a81.919898 81.919898 0 0 0-23.551971-58.367927 72.959909 72.959909 0 0 0-55.039931-25.599968z m5.887993-84.991893A118.015852 118.015852 0 0 0 512.002944 549.376593 127.99984 127.99984 0 0 0 545.538902 460.800704V126.465122A133.119834 133.119834 0 0 0 537.602912 76.801184a123.391846 123.391846 0 0 0-25.599968-40.447949 118.015852 118.015852 0 0 0-37.119954-25.599968A104.703869 104.703869 0 0 0 428.547048 0.00128H116.995438A105.471868 105.471868 0 0 0 71.683494 9.985268a121.087849 121.087849 0 0 0-37.119953 25.599968A127.99984 127.99984 0 0 0 9.219572 76.801184 133.119834 133.119834 0 0 0 0.003584 126.465122V460.800704a127.99984 127.99984 0 0 0 34.559957 88.31989 121.087849 121.087849 0 0 0 37.119953 27.135966 105.471868 105.471868 0 0 0 45.311944 9.983987h311.55161a106.239867 106.239867 0 0 0 45.311944-9.983987z m527.35934-329.215589a71.67991 71.67991 0 0 0-54.783931-25.599968h-184.575769a72.959909 72.959909 0 0 0-55.295931 25.599968 81.919898 81.919898 0 0 0-23.551971 58.367927v195.583756a83.199896 83.199896 0 0 0 23.551971 59.647925 73.983908 73.983908 0 0 0 55.295931 25.599968H947.2024a72.447909 72.447909 0 0 0 54.783932-25.599968 84.991894 84.991894 0 0 0 22.015972-59.647925v-195.583756a82.943896 82.943896 0 0 0-22.783972-58.367927zM947.2024 661.248453h-185.343768a72.959909 72.959909 0 0 0-55.295931 25.599968 81.919898 81.919898 0 0 0-23.551971 58.367927v196.607755A81.919898 81.919898 0 0 0 706.562701 998.400032a73.983908 73.983908 0 0 0 55.295931 25.599968H947.2024a72.447909 72.447909 0 0 0 54.783932-25.599968 83.455896 83.455896 0 0 0 22.015972-57.599928v-196.607754a83.199896 83.199896 0 0 0-22.783972-58.367927 71.67991 71.67991 0 0 0-54.783931-25.599968z m0 0" ></path></symbol><symbol id="icon-rengongzhineng_filledbeifen" viewBox="0 0 1024 1024"><path d="M913.678222 374.556444c0-175.431111-160.782222-317.653333-359.139555-317.653333a382.577778 382.577778 0 0 0-254.663111 93.767111 270.108444 270.108444 0 0 0-91.335112 118.840889 318.350222 318.350222 0 0 0-20.849777 98.773333c-0.597333 38.840889 18.389333 76.871111 1.664 114.688-11.633778 26.453333-41.870222 48.824889-61.312 69.916445 0 0-54.442667 36.224 49.436444 41.173333 2.929778 0.142222 16.071111 62.222222 19.342222 76.430222a16.753778 16.753778 0 0 0-3.271111 10.752c0 11.904 15.004444 21.617778 33.450667 21.617778h11.278222c-24.362667 3.313778-41.955556 12.8-41.955555 26.026667 0 9.102222 11.562667 21.105778 28.842666 28.302222 0 0-21.333333 66.744889 10.296889 81.962667a36.977778 36.977778 0 0 0 21.333333 1.564444c44.856889 2.446222 125.155556-0.739556 169.784889-0.739555 0-0.810667 23.466667 127.146667 23.466667 127.146666h403.299556c0 0.64-38.769778-289.265778-38.769778-289.265777 70.968889-101.632 95.544889-192.611556 96.881778-268.643556 1.422222-11.491556 2.161778-23.068444 2.176-34.659556h0.042666zM701.155556 320.711111a72.632889 72.632889 0 0 1-65.706667-42.055111l-54.471111 31.544889a108.344889 108.344889 0 0 1-7.509334 107.975111l102.172445 59.192889a36.508444 36.508444 0 1 1-10.894222 25.984 35.555556 35.555556 0 0 1 2.019555-10.026667L561.777778 432.512a109.511111 109.511111 0 1 1 10.168889-138.154667l57.728-33.422222a72.718222 72.718222 0 1 1 71.466666 59.733333v0.042667z" fill="#323233" ></path></symbol><symbol id="icon-fuhao-huizhi" viewBox="0 0 1024 1024"><path d="M254.4 82.624L82.624 254.4a60.704 60.704 0 0 0 0 85.92L254.4 512l128.8-128.8-42.88-42.88-85.92 85.888-42.88-42.88 85.888-85.92-42.88-42.88-85.92 85.888-42.88-42.88 171.776-171.84 171.584 171.616L512 254.4l-171.776-171.84a60.576 60.576 0 0 0-85.76 0z m644.096 644.064l-171.808 171.808-42.88-42.912 85.888-85.888-42.88-42.88-85.92 85.856-42.88-42.88 85.888-85.888-42.912-42.912L512 769.6l171.776 171.776a60.704 60.704 0 0 0 85.92 0l171.776-171.776a60.704 60.704 0 0 0 0-85.92L769.6 512l-42.912 42.88 171.808 171.808zM680.8 211.328l131.968 131.872-43.968 44L636.8 255.2l44-43.872zM240.96 650.976l131.968 131.872-44 44-131.968-131.872 44-44zM680.704 123.424a124.544 124.544 0 0 1 176.288 0.096l43.584 43.52a124.704 124.704 0 0 1 0.096 176.16L355.264 888.416l-268.352 48.384 48.384-268.288L680.704 123.424zM334.4 821.344L857.472 298.656c23.84-23.872 23.552-63.264-0.8-87.52L813.12 167.616c-24.544-24.544-63.552-24.832-87.584-0.8L202.432 689.6l-27.52 159.424 159.52-27.616z" fill="#0A8CF0" ></path></symbol><symbol id="icon-shanchu" viewBox="0 0 1024 1024"><path d="M799.2 874.4c0 34.4-28.001 62.4-62.4 62.4H287.2c-34.4 0-62.4-28-62.4-62.4V212h574.4v662.4zM349.6 100c0-7.2 5.6-12.8 12.8-12.8h300c7.2 0 12.8 5.6 12.8 12.8v37.6H349.6V100z m636.8 37.6H749.6V100c0-48.001-39.2-87.2-87.2-87.2h-300c-48 0-87.2 39.199-87.2 87.2v37.6H37.6C16.8 137.6 0 154.4 0 175.2s16.8 37.6 37.6 37.6h112v661.6c0 76 61.6 137.6 137.6 137.6h449.6c76 0 137.6-61.6 137.6-137.6V212h112c20.8 0 37.6-16.8 37.6-37.6s-16.8-36.8-37.6-36.8zM512 824c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0 20.8 16.8 37.6 37.6 37.6m-175.2 0c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0.8 20.8 17.6 37.6 37.6 37.6m350.4 0c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0 20.8 16.8 37.6 37.6 37.6" fill="#8A8A8A" ></path></symbol><symbol id="icon-jurassic_import-form" viewBox="0 0 1024 1024"><path d="M764.9 64H225.4l1.4 224.2 64-0.4-1-159.8h383.6v224H896v544H289.8l1-159.8-64-0.4-1.4 224.2H960V277.7L764.9 64z m-27.6 64.7L882.8 288H737.3V128.7z" fill="#707070" ></path><path d="M356.5 224h255.9v64H356.5z" fill="#707070" ></path><path d="M576.4 416h255.9v64H576.4zM512.5 576h319.8v64H512.5zM384.5 736h447.8v64H384.5z" fill="#707070" ></path><path d="M336.9 349H198.6l98.9 98.9H64v128.2h233.5L198.6 675h138.3l162.9-163z" fill="#707070" ></path></symbol><symbol id="icon-kaoheweidufenxi" viewBox="0 0 1024 1024"><path d="M815.542857 212.943238l118.296381 68.266667v168.033524l-201.532952 116.345904-0.487619-163.352381-125.366857-72.46019 209.091047-116.833524z m-89.673143-51.736381L519.314286 279.454476 305.785905 156.233143 511.561143 37.449143l214.308571 123.757714zM294.619429 887.466667L89.234286 768.877714V546.133333l205.677714 118.00381-0.292571 223.329524z m85.333333 49.249523l-0.097524-223.914666 133.607619 76.653714 132.632381-76.604952-1.024 222.744381-133.558857 77.043809-131.510857-75.922286zM434.468571 328.021333L295.253333 407.747048l-0.195047 156.672L89.234286 444.318476V281.258667l132.047238-76.263619 213.089524 123.026285z m86.113524 49.737143l126.780953 73.191619-0.780191 164.08381-133.12 76.897524-133.656381-78.019048-0.097524-157.403429 140.921905-78.750476z m413.257143 169.008762v222.110476l-200.655238 115.809524-0.633905-221.769143 201.289143-116.150857z" fill="#82529d" ></path></symbol><symbol id="icon-wenjianjia" viewBox="0 0 1024 1024"><path d="M855.04 385.024q19.456 2.048 38.912 10.24t33.792 23.04 21.504 37.376 2.048 54.272q-2.048 8.192-8.192 40.448t-14.336 74.24-18.432 86.528-19.456 76.288q-5.12 18.432-14.848 37.888t-25.088 35.328-36.864 26.112-51.2 10.24l-567.296 0q-21.504 0-44.544-9.216t-42.496-26.112-31.744-40.96-12.288-53.76l0-439.296q0-62.464 33.792-97.792t95.232-35.328l503.808 0q22.528 0 46.592 8.704t43.52 24.064 31.744 35.84 12.288 44.032l0 11.264-53.248 0q-40.96 0-95.744-0.512t-116.736-0.512-115.712-0.512-92.672-0.512l-47.104 0q-26.624 0-41.472 16.896t-23.04 44.544q-8.192 29.696-18.432 62.976t-18.432 61.952q-10.24 33.792-20.48 65.536-2.048 8.192-2.048 13.312 0 17.408 11.776 29.184t29.184 11.776q31.744 0 43.008-39.936l54.272-198.656q133.12 1.024 243.712 1.024l286.72 0z" ></path></symbol><symbol id="icon-biaoqian" viewBox="0 0 1024 1024"><path d="M934.912 516.096q23.552 26.624 19.456 49.664t-26.624 46.592l-324.608 327.68q-8.192 7.168-19.456 11.264t-23.04 4.608-23.04-2.56-18.432-10.24q-121.856-122.88-218.112-220.16l-80.896-80.896q-39.936-39.936-71.168-71.68t-51.2-51.2-20.992-21.504q-3.072-4.096-10.752-14.848t-6.656-25.088l0-19.456 0-40.96q0-23.552 0.512-52.736t0.512-58.88q1.024-70.656 2.048-156.672 2.048-13.312 6.144-24.064t15.36-22.016q10.24-11.264 22.016-16.384t22.016-5.12l329.728 0q2.048 0 9.216 0.512t10.24 1.536q6.144 2.048 11.264 5.12t10.24 8.192zM217.088 317.44q40.96 0 69.12-28.672t28.16-69.632-28.16-69.632-69.12-28.672q-20.48 0-37.888 7.68t-30.72 20.992-20.992 31.232-7.68 38.4 7.68 38.4 20.992 31.232 30.72 20.992 37.888 7.68z" fill="#ea9518" ></path></symbol><symbol id="icon-wenben" viewBox="0 0 1024 1024"><path d="M823.296 60.416q65.536 0 99.328 38.4t33.792 93.696l0 543.744q0 25.6-21.504 46.08l-171.008 163.84q-13.312 11.264-22.528 14.336t-23.552 3.072l-459.776 0q-23.552 0-47.104-9.728t-41.984-27.648-30.208-43.008-11.776-55.808l0-634.88q0-60.416 33.28-96.256t94.72-35.84l568.32 0zM608.256 702.464q13.312 0 22.528-9.216t9.216-22.528q0-14.336-9.216-23.04t-22.528-8.704l-320.512 0q-13.312 0-22.528 8.704t-9.216 23.04q0 13.312 9.216 22.528t22.528 9.216l320.512 0zM736.256 509.952q13.312 0 22.528-9.216t9.216-22.528-9.216-22.528-22.528-9.216l-448.512 0q-13.312 0-22.528 9.216t-9.216 22.528 9.216 22.528 22.528 9.216l448.512 0zM799.744 318.464q13.312 0 22.528-9.216t9.216-23.552q0-13.312-9.216-22.528t-22.528-9.216l-512 0q-13.312 0-22.528 9.216t-9.216 22.528q0 14.336 9.216 23.552t22.528 9.216l512 0z" fill="#db639b" ></path></symbol><symbol id="icon-yingyong" viewBox="0 0 1026 1024"><path d="M371.732817 94.172314q25.773475 0 44.112294 17.843175t18.338819 43.616651l0 247.821878q0 25.773475-18.338819 44.112294t-44.112294 18.338819l-247.821878 0q-25.773475 0-43.616651-18.338819t-17.843175-44.112294l0-247.821878q0-25.773475 17.843175-43.616651t43.616651-17.843175l247.821878 0zM371.732817 589.81607q25.773475 0 44.112294 17.843175t18.338819 43.616651l0 248.813166q0 25.773475-18.338819 43.616651t-44.112294 17.843175l-247.821878 0q-25.773475 0-43.616651-17.843175t-17.843175-43.616651l0-248.813166q0-25.773475 17.843175-43.616651t43.616651-17.843175l247.821878 0zM868.367861 589.81607q25.773475 0 43.616651 17.843175t17.843175 43.616651l0 248.813166q0 25.773475-17.843175 43.616651t-43.616651 17.843175l-247.821878 0q-25.773475 0-44.112294-17.843175t-18.338819-43.616651l0-248.813166q0-25.773475 18.338819-43.616651t44.112294-17.843175l247.821878 0zM1006.156825 203.21394q19.82575 19.82575 19.82575 46.590513t-19.82575 45.599226l-184.379477 184.379477q-19.82575 19.82575-46.094869 19.82575t-46.094869-19.82575l-184.379477-184.379477q-18.834463-18.834463-18.834463-45.599226t18.834463-46.590513l184.379477-184.379477q19.82575-18.834463 46.094869-18.834463t46.094869 18.834463z" fill="#0061b2" ></path></symbol><symbol id="icon-wenjianjia-copy" viewBox="0 0 1024 1024"><path d="M855.04 385.024q19.456 2.048 38.912 10.24t33.792 23.04 21.504 37.376 2.048 54.272q-2.048 8.192-8.192 40.448t-14.336 74.24-18.432 86.528-19.456 76.288q-5.12 18.432-14.848 37.888t-25.088 35.328-36.864 26.112-51.2 10.24l-567.296 0q-21.504 0-44.544-9.216t-42.496-26.112-31.744-40.96-12.288-53.76l0-439.296q0-62.464 33.792-97.792t95.232-35.328l503.808 0q22.528 0 46.592 8.704t43.52 24.064 31.744 35.84 12.288 44.032l0 11.264-53.248 0q-40.96 0-95.744-0.512t-116.736-0.512-115.712-0.512-92.672-0.512l-47.104 0q-26.624 0-41.472 16.896t-23.04 44.544q-8.192 29.696-18.432 62.976t-18.432 61.952q-10.24 33.792-20.48 65.536-2.048 8.192-2.048 13.312 0 17.408 11.776 29.184t29.184 11.776q31.744 0 43.008-39.936l54.272-198.656q133.12 1.024 243.712 1.024l286.72 0z" ></path></symbol></svg>',(l=>{var n=(r=(r=document.getElementsByTagName("script"))[r.length-1]).getAttribute("data-injectcss"),r=r.getAttribute("data-disable-injectsvg");if(!r){var t,s,u,k,f,v=function(E,N){N.parentNode.insertBefore(E,N)};if(n&&!l.__iconfont__svg__cssinject__){l.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(E){console&&console.log(E)}}t=function(){var E,N=document.createElement("div");N.innerHTML=l._iconfont_svg_string_4827314,(N=N.getElementsByTagName("svg")[0])&&(N.setAttribute("aria-hidden","true"),N.style.position="absolute",N.style.width=0,N.style.height=0,N.style.overflow="hidden",N=N,(E=document.body).firstChild?v(N,E.firstChild):E.appendChild(N))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(t,0):(s=function(){document.removeEventListener("DOMContentLoaded",s,!1),t()},document.addEventListener("DOMContentLoaded",s,!1)):document.attachEvent&&(u=t,k=l.document,f=!1,c(),k.onreadystatechange=function(){k.readyState=="complete"&&(k.onreadystatechange=null,y())})}function y(){f||(f=!0,u())}function c(){try{k.documentElement.doScroll("left")}catch{return void setTimeout(c,50)}y()}})(window);const Up={class:"statistics-cards-container"},qp={class:"statistics-label"},Wp=["onClick"],Kp=a.defineComponent({__name:"index",props:{items:{default:()=>[]},disabled:{type:Boolean,default:!1}},setup(l){const n=l,r=a.ref(null),t=y=>rl.getComponent(y),s=y=>{if(!y)return;const c=y.querySelector("input, textarea, .el-input__inner");c&&typeof c.focus=="function"&&c.focus()},u=(y,c,E)=>{n.disabled||y.field&&(r.value=c,a.nextTick(()=>{s(E.currentTarget)}))},k=()=>{r.value=null},f=y=>{var E;const c=((E=y==null?void 0:y.field)==null?void 0:E.value)??(y==null?void 0:y.value);return c==null||c===""?"-":c},v=y=>{const c=y!=null&&y.width&&y.width>0?y.width:1,N=`calc((100% - ${(c-1)*16}px) / ${c})`;return{flex:`0 0 ${N}`,maxWidth:N,minWidth:"140px",boxSizing:"border-box"}};return(y,c)=>(a.openBlock(),a.createElementBlock("div",Up,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(y.items,(E,N)=>{var O,w,Y,_,A,Z,S,$;return a.openBlock(),a.createElementBlock("div",{class:"statistics-card",key:N,style:a.normalizeStyle(v(E))},[a.createElementVNode("div",qp,a.toDisplayString(E==null?void 0:E.label),1),a.createElementVNode("div",{class:"statistics-value",onClick:T=>u(E,N,T)},[r.value===N&&E.field?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t(((O=E.field)==null?void 0:O.type)??"Input")),{key:0,modelValue:E.field.value,"onUpdate:modelValue":T=>E.field.value=T,isEdit:!0,disabled:(w=E.field)==null?void 0:w.disabled,content:((Y=E.field)==null?void 0:Y.contents)??[],optionUrl:E.field,originalValue:(_=E.field)==null?void 0:_.value,config:(A=E.field)==null?void 0:A.config,configModel:((Z=E.field)==null?void 0:Z.prop)??((S=E.field)==null?void 0:S.name),selectedTagList:(($=E.field)==null?void 0:$.selectValue)??[],onBlur:k,onBlurChange:k},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(f(E)),1)],64))],8,Wp)],4)}),128))]))}}),Yp=Fl._export_sfc(Kp,[["__scopeId","data-v-14e11356"]]),Ws=L.defineStore("formToTableComp",{state:()=>({selectArray:[],selectString:""}),actions:{setSelectArray(l){this.selectArray=l},setSelectString(l){this.selectString=l}}}),Gp={class:"calculator-content"},Xp={class:"calculator-child"},Jp={class:"calculator-child"},Zp=a.defineComponent({__name:"calculator",setup(l){const n=a.ref(),r=a.ref();return a.onMounted(()=>{n.value=[{type:"Upload",label:"输入",name:"input"}],r.value=[{type:"Upload",label:"输出",name:"output"}]}),(t,s)=>(a.openBlock(),a.createElementBlock("div",Gp,[a.createElementVNode("div",Xp,[a.createVNode(rl.ssForm,{rowContents:n.value,isRowFlex:!0},null,8,["rowContents"])]),a.createElementVNode("div",Jp,[a.createVNode(rl.ssForm,{rowContents:r.value,isEdit:!1,isRowFlex:!0},null,8,["rowContents"])])]))}}),Qp=Fl._export_sfc(Zp,[["__scopeId","data-v-73db0fe7"]]),ii=(l,n)=>{let r=l,t=n;return Array.isArray(r)&&(r=r==null?void 0:r.map((s,u)=>{if(Array.isArray(s)){let k={};return s=s==null?void 0:s.forEach((f,v)=>{var y;(y=t==null?void 0:t[v])!=null&&y.prop?k[t[v].prop]=f:Array.isArray(f)&&(k.children=ii(f,t))}),Object.assign(k,{id:u})}else return s})),r},Ks=(l,n,r)=>{let t=l,s=n;return t=t==null?void 0:t.map((u,k)=>{var f,v;return!Array.isArray(u)||!((f=s==null?void 0:s[k])!=null&&f.label)&&!r||(u.unshift(((v=s==null?void 0:s[k])==null?void 0:v.label)??""),u.some(y=>Array.isArray(y))&&(u=u==null?void 0:u.map(y=>{var c;return Array.isArray(y)&&(y=Ks(y,(c=s==null?void 0:s[k])==null?void 0:c.children,r)),y}))),u}),t},ef=(l,n,r)=>{if(n==="")return l==null?void 0:l.filter(t=>(t==null?void 0:t.id)!==r);{const t=n.split("-");return af(l,t,r)}},af=(l,n,r)=>{let t=l,s=n;return(s==null?void 0:s.length)===0?t=t==null?void 0:t.filter(u=>u.id!==r):t=t==null?void 0:t.map(u=>(u.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),u=Ys(u,s,r)),u)),t},Ys=(l,n,r)=>{var u,k;let t=l,s=n;return(s==null?void 0:s.length)===0?t.children=(u=t.children)==null?void 0:u.filter(f=>f.id!==r):t.children=(k=t.children)==null?void 0:k.map(f=>(f.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),f=Ys(f,s,r)),f)),t},lf=(l,n,r)=>{if(n==="")return r;{const t=n.split("-");return rf(l,t,r)}},rf=(l,n,r)=>{let t=l,s=n;return(s==null?void 0:s.length)===0?t=r:t=t==null?void 0:t.map(u=>(u.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),u=Gs(u,s,r)),u)),t},Gs=(l,n,r)=>{var u;let t=l,s=n;return(s==null?void 0:s.length)===0?t.children=r:t.children=(u=t.children)==null?void 0:u.map(k=>(k.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),k=Gs(k,s,r)),k)),t};class nf{constructor(n={}){Mr(this,"url");Mr(this,"heartbeatInterval");Mr(this,"socket",null);Mr(this,"isConnected",!1);Mr(this,"heartTimer",null);Mr(this,"canvas",null);Mr(this,"ctx",null);Mr(this,"mainCamCutMode",0);Mr(this,"pMainShowStartX",0);Mr(this,"pMainShowStartY",0);Mr(this,"onLog");Mr(this,"onDevCount");Mr(this,"onResolution");Mr(this,"onCameraStatus");Mr(this,"onPhoto");this.url=n.url??"ws://127.0.0.1:22225",this.heartbeatInterval=n.heartbeatInterval??3e3}init(n,r,t){var k;(k=this.canvas)!=null&&k.parentNode&&this.canvas.parentNode.removeChild(this.canvas);const s=document.createElement("canvas");s.style.border="solid 1px #A0A0A0",s.id="MainCamCanvas",s.width=r,s.height=t;const u=s.getContext("2d");if(!u)throw new Error("无法获取 CanvasRenderingContext2D");n.appendChild(s),this.canvas=s,this.ctx=u}async connect(){this.socket&&(this.socket.readyState===WebSocket.OPEN||this.socket.readyState===WebSocket.CONNECTING)||await new Promise((n,r)=>{const t=new WebSocket(this.url);t.binaryType="arraybuffer",t.onopen=()=>{this.socket=t,this.isConnected=!0,this.startHeartbeat(),this.log("socket.onopen"),n()},t.onerror=s=>{this.isConnected=!1,this.log("socket.onerror"),r(s)},t.onclose=()=>{this.isConnected=!1,this.stopHeartbeat(),this.log("socket.onclose")},t.onmessage=s=>{this.handleMessage(s)}})}destroy(){var n;this.stopHeartbeat();try{this.closeCamera()}catch{}if(this.socket){try{this.socket.onmessage=null}catch{}try{this.socket.onopen=null}catch{}try{this.socket.onerror=null}catch{}try{this.socket.onclose=null}catch{}try{this.socket.close()}catch{}this.socket=null}this.isConnected=!1,(n=this.canvas)!=null&&n.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.canvas=null,this.ctx=null}getDevCount(){this.sendBytes(new Uint8Array([119,136,80]))}getResolution(n=0){this.sendBytes(new Uint8Array([119,136,81,n]))}chooseResolution(n){if(!Array.isArray(n)||n.length===0)return null;const r=n.find(s=>s.width===2592&&s.height===1944);return r||[...n].sort((s,u)=>u.width*u.height-s.width*s.height)[0]||null}openCamera(n=0,r=1280,t=720){if(!this.canvas)throw new Error("请先 init() 传入容器并创建 canvas");const s=new Uint8Array(12);s[0]=119,s[1]=136,s[2]=1,s[3]=n,s[4]=this.canvas.width>>8&255,s[5]=this.canvas.width&255,s[6]=this.canvas.height>>8&255,s[7]=this.canvas.height&255,s[8]=r>>8&255,s[9]=r&255,s[10]=t>>8&255,s[11]=t&255,this.sendBytes(s)}closeCamera(){this.sendBytes(new Uint8Array([119,136,2,0]))}photo(){const s=new Uint8Array(12);s[0]=119,s[1]=136,s[2]=16,s[3]=0,s[4]=0,s[5]=0,s[6]=0,s[7]=0,s[8]=1,s[9]=0,s[10]=0,s[11]=0,this.sendBytes(s)}bestSize(){this.sendBytes(new Uint8Array([119,136,5,0]))}rotateLeft(){this.sendBytes(new Uint8Array([119,136,7,0]))}rotateRight(){this.sendBytes(new Uint8Array([119,136,8,0]))}focus(){this.sendBytes(new Uint8Array([119,136,48,0]))}log(n){var r;(r=this.onLog)==null||r.call(this,n)}sendBytes(n){if(!this.socket||this.socket.readyState!==WebSocket.OPEN||!this.isConnected)throw new Error("socket 未连接");this.socket.send(n.buffer)}startHeartbeat(){this.stopHeartbeat(),this.heartTimer=window.setInterval(()=>{this.log("heartCheck...........")},this.heartbeatInterval)}stopHeartbeat(){this.heartTimer&&(clearInterval(this.heartTimer),this.heartTimer=null)}handleMessage(n){var s,u,k,f,v,y;const r=new Uint8Array(n.data);if(r.length<=0)return;if(r[0]===17&&r[1]===17&&r[2]===17){this.log("heart socket!!!!");return}if(r[0]!==85||r[1]!==102)return;const t=r[2];if(t===80){const c=r[3],E=r.length-4,N=new Uint8Array(E);for(let Y=0;Y<E;Y++)N[Y]=r[4+Y];const w=decodeURIComponent(this.byteToString(N)).split("|");(s=this.onDevCount)==null||s.call(this,c,w);return}if(t===81){const c=r[3]||0,E=[];for(let N=0;N<c;N++){const O=(r[4+N*4+0]||0)*256+(r[4+N*4+1]||0),w=(r[4+N*4+2]||0)*256+(r[4+N*4+3]||0);E.push({width:O,height:w,text:`${O}*${w}`})}(u=this.onResolution)==null||u.call(this,c,E);return}if(t===1){r[3]===1&&((k=this.onCameraStatus)==null||k.call(this,"opened")),r[3]===3&&((f=this.onCameraStatus)==null||f.call(this,"closed"));return}if(t===16){if(r[3]===1){const E=r[4]*256+r[5],N=r[6]*65536+r[7]*256+r[8];let O="";if(E>0){const _=new Uint8Array(E);for(let A=0;A<E;A++)_[A]=r[9+A];O=decodeURIComponent(this.byteToString(_))}const w=new Uint8Array(N);for(let _=0;_<N;_++)w[_]=r[9+E+_];const Y=this.uint8ArrayToString(w);(v=this.onPhoto)==null||v.call(this,{flag:0,imgPath:O,base64:Y})}r[3]===2&&((y=this.onPhoto)==null||y.call(this,{flag:2,imgPath:"",base64:""}));return}if(t===204){if(!this.canvas||!this.ctx)return;const c=r[3]*256+r[4],E=r[5]*256+r[6];this.pMainShowStartX=r[7]*256+r[8],this.pMainShowStartY=r[9]*256+r[10],this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height);const N=this.ctx.createImageData(c,E);let O=11;for(let w=0;w<N.data.length;w+=4)N.data[w+0]=r[O],N.data[w+1]=r[O+1],N.data[w+2]=r[O+2],N.data[w+3]=255,O+=3;this.ctx.putImageData(N,this.pMainShowStartX,this.pMainShowStartY),this.mainCamCutMode;return}}uint8ArrayToString(n){let r="";for(let t=0;t<n.length;t++)r+=String.fromCharCode(n[t]);return r}byteToString(n){let r="";for(let t=0;t<n.length;t++)r+=String.fromCharCode(n[t]);return r}}const tf={style:{display:"flex",gap:"16px",height:"100%"}},of={key:0,style:{color:"var(--el-text-color-secondary)"}},sf={style:{width:"420px",display:"flex","flex-direction":"column",gap:"16px"}},cf={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px"}},uf={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"}},df={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"}},ff=["src","onClick"],hf=["onClick"],vf={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px",flex:"1","min-height":"0",display:"flex","flex-direction":"column"}},mf={class:"dialog-footer"},yf=a.defineComponent({__name:"index",props:{visible:{type:Boolean,default:!1}},emits:["confirm","cancel"],setup(l,{emit:n}){const r=l,t=n,s=a.ref(null),u=a.ref(!1),k=a.ref([]),f=a.ref(""),v=a.ref(!1),y=a.ref([]),c=new nf({url:"ws://127.0.0.1:22225"});function E(W,ae){var J;const ge=W.split(","),Oe=((J=ge[0].match(/:(.*?);/))==null?void 0:J[1])??"image/jpeg",we=atob(ge[1]);let te=we.length;const me=new Uint8Array(te);for(;te--;)me[te]=we.charCodeAt(te);return new File([me],ae,{type:Oe})}function N(){c.onLog=W=>{console.log("[GPY]",W)},c.onDevCount=(W,ae)=>{if(f.value+=`设备数量=${W},设备=${ae.join(",")}
4
- `,W>0){f.value+=`检测到设备,正在获取分辨率...
5
- `;try{c.getResolution(0)}catch(ge){f.value+=`获取分辨率失败:${(ge==null?void 0:ge.message)??ge}
6
- `}}else f.value+=`未检测到高拍仪设备!
7
- `},c.onResolution=(W,ae)=>{if(W<=0||!Array.isArray(ae)||ae.length===0){f.value+=`未获取到可用分辨率,回退使用 1280*720 打开...
8
- `;try{c.openCamera(0,1280,720)}catch(Oe){f.value+=`打开摄像头失败:${(Oe==null?void 0:Oe.message)??Oe}
9
- `}return}const ge=c.chooseResolution(ae);if(!ge){f.value+=`分辨率选择失败,回退使用 1280*720 打开...
10
- `;try{c.openCamera(0,1280,720)}catch(Oe){f.value+=`打开摄像头失败:${(Oe==null?void 0:Oe.message)??Oe}
11
- `}return}f.value+=`获取分辨率 ${ge.text}成功,打开摄像头...
12
- `;try{c.closeCamera(),setTimeout(()=>{try{c.openCamera(0,ge.width,ge.height)}catch(Oe){f.value+=`打开摄像头失败:${(Oe==null?void 0:Oe.message)??Oe}
13
- `}},100)}catch{try{c.openCamera(0,ge.width,ge.height)}catch(Oe){f.value+=`打开摄像头失败:${(Oe==null?void 0:Oe.message)??Oe}
14
- `}}},c.onCameraStatus=W=>{W==="opened"?(u.value=!0,f.value+=`摄像头已打开
15
- `):(u.value=!1,f.value+=`摄像头已关闭
16
- `)},c.onPhoto=W=>{if(W.flag===0&&W.base64){const ae=`data:image/jpeg;base64,${W.base64}`,ge=E(ae,`gpy-capture-${Date.now()}.jpg`);k.value.push({uid:`${Date.now()}_${Math.random().toString(16).slice(2)}`,url:ae,file:ge}),f.value+=`拍照完成,已接收图片(当前 ${k.value.length} 张)
17
- `}else f.value+=`拍照失败 flag=${W.flag}
18
- `}}const O=async()=>{if(await a.nextTick(),!s.value)return;w(),N();const W=s.value.getBoundingClientRect();c.init(s.value,Math.floor(W.width),Math.floor(W.height)),f.value+=`正在连接设备服务...
19
- `,await c.connect(),f.value+=`正在获取设备数量...
20
- `,c.getDevCount()},w=()=>{try{c.destroy()}catch(W){console.error(W)}u.value=!1,k.value=[],f.value="",v.value=!1,y.value=[]};a.watch(()=>r.visible,W=>{W?O():w()});const Y=()=>{try{c.bestSize()}catch(W){console.error(W)}},_=()=>{try{c.rotateLeft()}catch(W){console.error(W)}},A=()=>{try{c.rotateRight()}catch(W){console.error(W)}},Z=()=>{try{c.focus()}catch(W){console.error(W)}},S=()=>{f.value+=`正在拍照...
21
- `;try{c.photo()}catch(W){f.value+=`拍照调用失败:${(W==null?void 0:W.message)??W}
22
- `}},$=()=>{k.value.length>0?t("confirm",k.value.map(W=>W.file)):t("confirm",[])},T=W=>{W<0||W>=k.value.length||(k.value.splice(W,1),f.value+=`已删除一张图片(剩余 ${k.value.length} 张)
23
- `)},x=W=>{if(!W)return;const ae=`gpy-preview-${Date.now()}.jpg`;y.value=[{name:ae,blobUrl:W}],v.value=!0},g=()=>{v.value=!1},H=()=>{w(),t("cancel")};return(W,ae)=>{const ge=a.resolveComponent("el-input"),Oe=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(sr.ssDialog,{title:"扫描录入",visible:r.visible,onBeforeDestroy:H,width:"1200px",style:{height:"80%"}},{default:a.withCtx(()=>[a.createElementVNode("div",tf,[a.createElementVNode("div",{ref_key:"cameraBox",ref:s,style:{flex:"1","min-width":"0",border:"1px solid var(--el-border-color)","border-radius":"4px",position:"relative",overflow:"hidden",display:"flex","align-items":"center","justify-content":"center",background:"var(--el-fill-color-lighter)"}},[u.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",of,"初始化摄像头..."))],512),a.createElementVNode("div",sf,[a.createElementVNode("div",cf,[ae[0]||(ae[0]=a.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"拍照图片",-1)),a.createElementVNode("div",uf,[k.value.length===0?(a.openBlock(),a.createElementBlock("div",df,"暂无图片")):(a.openBlock(),a.createElementBlock("div",pf,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(k.value,(we,te)=>(a.openBlock(),a.createElementBlock("div",{key:we.uid,style:{position:"relative",border:"1px solid var(--el-border-color)","border-radius":"4px",overflow:"hidden",background:"#fafafa"}},[a.createElementVNode("img",{src:we.url,onClick:me=>x(we.url),style:{width:"100%",height:"94px","object-fit":"contain",display:"block",background:"#fafafa",cursor:"zoom-in"},alt:"captured image",title:"点击放大"},null,8,ff),a.createElementVNode("div",{onClick:me=>T(te),style:{position:"absolute",top:"4px",right:"4px",width:"18px",height:"18px","border-radius":"50%",background:"rgba(0,0,0,0.55)",color:"#fff",display:"flex","align-items":"center","justify-content":"center",cursor:"pointer","font-size":"12px"},title:"删除"},"×",8,hf)]))),128))]))],512)]),a.createElementVNode("div",vf,[ae[1]||(ae[1]=a.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"操作记录",-1)),a.createVNode(ge,{type:"textarea",value:f.value,readonly:"",rows:10,placeholder:"设备操作记录...",style:{flex:"1"}},null,8,["value"])])])])]),footer:a.withCtx(()=>[a.createElementVNode("div",mf,[a.createVNode(Oe,{onClick:Y,disabled:!u.value,id:"themeBorderButton"},{default:a.withCtx(()=>ae[2]||(ae[2]=[a.createTextVNode("适屏")])),_:1,__:[2]},8,["disabled"]),a.createVNode(Oe,{onClick:_,disabled:!u.value,id:"themeBorderButton"},{default:a.withCtx(()=>ae[3]||(ae[3]=[a.createTextVNode("左旋")])),_:1,__:[3]},8,["disabled"]),a.createVNode(Oe,{onClick:A,disabled:!u.value,id:"themeBorderButton"},{default:a.withCtx(()=>ae[4]||(ae[4]=[a.createTextVNode("右旋")])),_:1,__:[4]},8,["disabled"]),a.createVNode(Oe,{onClick:Z,disabled:!u.value,id:"themeBorderButton"},{default:a.withCtx(()=>ae[5]||(ae[5]=[a.createTextVNode("对焦")])),_:1,__:[5]},8,["disabled"]),a.createVNode(Oe,{onClick:S,disabled:!u.value,id:"themeButton"},{default:a.withCtx(()=>ae[6]||(ae[6]=[a.createTextVNode("拍照")])),_:1,__:[6]},8,["disabled"]),ae[9]||(ae[9]=a.createElementVNode("div",{style:{flex:"1"}},null,-1)),a.createVNode(Oe,{onClick:$,disabled:k.value.length===0,id:"themeButton"},{default:a.withCtx(()=>ae[7]||(ae[7]=[a.createTextVNode("确认")])),_:1,__:[7]},8,["disabled"]),a.createVNode(Oe,{onClick:H,id:"themeBorderButton"},{default:a.withCtx(()=>ae[8]||(ae[8]=[a.createTextVNode("取消")])),_:1,__:[8]})])]),_:1},8,["visible"]),v.value?(a.openBlock(),a.createBlock(rl.ssFilePreview,{key:0,fileDataList:y.value,onDestroy:g},null,8,["fileDataList"])):a.createCommentVNode("",!0)],64)}}}),gf=Fl._export_sfc(yf,[["__scopeId","data-v-24a2050a"]]),bf=async l=>{var t;let n=l==null?void 0:l.导入文件;l==null||l.函数参数;let r=(t=n==null?void 0:n[0])==null?void 0:t.url;(!(r!=null&&r.includes("http"))||!(r!=null&&r.includes("https")))&&await L.downloadAvatarApi({url:r})},yi=L.defineStore("formComp",{state:()=>({objUrl:[],blobUrls:[]}),actions:{setObjUrl(l){this.objUrl=l},setBlobUrls(l){this.blobUrls=l}}}),bo={检校类型:["检校类型","证书类别"],证书编号:["证书编号"],设备名称:["设备名称","器具名称","样品名称","仪器名称","被校设备"],型号规格:["型号规格","型号/规格","型号"],出厂编号:["出厂编号","器具/管理编号","器具编号","管理编号","仪器编号"],制造厂:["制造厂","制造单位","制造厂商"],检校结果:["检校结果","检定结论","校准结果","校准/检定结果","检定结果"],依据文件:["依据文件","检定依据","检定所依据的技术文件","所依据/参照技术文件(代号/名称)","检定所依据的技术文件(编号/名称)","检定方法说明"],检校日期:["检校日期","校准日期","校验日期","检定日期","发证日期","发布日期","接收日期","签证日期"],有效日期:["有效日期","有效期","有效期至"]},rs={columnName:"OCR图片",acceptTypes:"image/*",maxSize:10,maxFiles:20,apiUrl:"http://139.196.154.85:20015/api/public/paddleOCR"};class kf{constructor(n){Mr(this,"config");this.config={...rs,...n}}updateConfig(n){this.config={...this.config,...n}}getConfig(){return{...this.config}}validateFileSize(n){const r=this.config.maxSize*1024*1024;return n.size<=r}validateFileType(n){return n.type.startsWith("image/")||n.type==="application/pdf"}getAuthorizationToken(){const n=Wa.Local.get(Wa.accessTokenKey);return n?`Bearer ${n}`:""}buildOCRRequest(n,r){return{title:r,form:{OCR图片文件:n}}}async recognize(n,r){const t=this.getAuthorizationToken(),s=this.buildOCRRequest(n,r),u=this.config.apiUrl||rs.apiUrl;return(await Wa.axios.post(u,s,{headers:{"Content-Type":"application/json",Authorization:t}})).data}getFieldAliases(n){return bo[n]?bo[n]:[n]}extractTableHeaders(n){const r=[],t=new Set,s=k=>{const f=k==null?void 0:k.label;return!(!f||f==="操作"||f===this.config.columnName||(k==null?void 0:k.type)==="operate"||(k==null?void 0:k.prop)==="operate")},u=k=>{(k||[]).forEach(f=>{if(!f)return;const v=(f==null?void 0:f.children)||(f==null?void 0:f.child)||(f==null?void 0:f.columns);if(Array.isArray(v)&&v.length>0){u(v);return}if(s(f)){const y=f.label;if(!t.has(y)){t.add(y);const c=this.getFieldAliases(y);r.push(c)}}})};return u(n||[]),r}}function Xs(l){return new kf(l)}Xs();const si=async(l,n)=>{var k,f,v,y,c,E,N,O,w,Y,_,A,Z,S,$,T,x;let r=(f=(k=L.cloneDeep(l))==null?void 0:k.optionUrl)==null?void 0:f.menuSelect,t=[];r==null||r.forEach(g=>{});let s="",u=await sa.menuToParent(r);if(u==null||u.forEach(g=>{var H,W,ae,ge;(g==null?void 0:g.name)===(((ge=(ae=(W=(H=L.cloneDeep(l))==null?void 0:H.optionUrl)==null?void 0:W.groupSelect)==null?void 0:ae[0])==null?void 0:ge.replaceAll("'",""))??"")&&(s=g==null?void 0:g.id)}),n){s=n;const g=await hr.getInsofDataApi({id:s}),H=(E=(c=(y=(v=g==null?void 0:g.data)==null?void 0:v.result)==null?void 0:y[0])==null?void 0:c.key)==null?void 0:E.pageKey;u=await sa.getItemData(H,sessionStorage.getItem("systemKey"),"")}if(s!==""){let g;n?g=(N=u==null?void 0:u.find(ae=>(ae==null?void 0:ae.id)===n))==null?void 0:N.compData:g=(O=u==null?void 0:u.find(ae=>{var ge,Oe,we,te;return(ae==null?void 0:ae.name)===(((Oe=(ge=l==null?void 0:l.groupSelect)==null?void 0:ge.split(":"))==null?void 0:Oe[0])||((te=(we=l==null?void 0:l.optionUrl)==null?void 0:we.groupSelect)==null?void 0:te[0]))}))==null?void 0:O.compData;let H=(Y=(w=g==null?void 0:g.find(ae=>(ae==null?void 0:ae.key)==="header"))==null?void 0:w.contents)==null?void 0:Y.map(ae=>ae==null?void 0:ae.label);(A=(_=g==null?void 0:g.find(ae=>(ae==null?void 0:ae.key)==="header"))==null?void 0:_.contents)!=null&&A.every(ae=>Array.isArray(ae))&&(H=($=sa.getColumnChild((S=(Z=g==null?void 0:g.find(ae=>(ae==null?void 0:ae.key)==="header"))==null?void 0:Z.contents)==null?void 0:S[0]))==null?void 0:$.map(ae=>ae==null?void 0:ae.prop));let W=(x=(T=g==null?void 0:g.find(ae=>(ae==null?void 0:ae.key)==="tableContents"))==null?void 0:T.contents)==null?void 0:x.map(ae=>{if(Array.isArray(ae))ae=ae==null?void 0:ae.filter(ge=>!(ge!=null&&ge.id));else{let ge={};for(let Oe in ae)Oe!=="id"&&(ge[Oe]=ae==null?void 0:ae[Oe]);ae=ge}return ae});W==null||W.forEach(ae=>{Array.isArray(ae)?t.push(sa.getValueToObjectValue(ae,H)):t.push(ae)})}return t},xf=L.useMenuState(L.pinia),{activeMenuPath:Ch}=L.storeToRefs(xf),wf=L.useUnit(L.pinia),{chooseTitle:Eh}=L.storeToRefs(wf),_f="col-operate",gi=l=>`${_f}-${l}`,Cf=(l,n)=>{const r=new Map;l.forEach(s=>{const{prop:u}=s;r.set(u,s)});const t=s=>{Array.isArray(s)&&s.forEach(u=>{const{prop:k}=u||{},f=r.get(k);Ef(f,u),Array.isArray(u==null?void 0:u.children)&&u.children.length>0&&t(u.children)})};return t(n),n},Ef=(l,n)=>(l&&(n.sortable=l==null?void 0:l.sortable,n.filterable=l==null?void 0:l.filterable,n.showSummary=l==null?void 0:l.showSummary,n.operable=l==null?void 0:l.operable,n.fixed=l==null?void 0:l.fixed),n),Sf=(l,n)=>{const{sortable:r=!1,filterable:t=!1,showSummary:s=!1,operable:u=!1,fixed:k=!1}=n||{};return{prop:l,sortable:r,filterable:t,showSummary:s,operable:u,fixed:k}},Df=async l=>{var u,k;if(!l)return;const n=gi(l),r=await hr.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:n}}),t=(u=r==null?void 0:r.data)==null?void 0:u.code,s=(k=r==null?void 0:r.data)==null?void 0:k.result;if(t==200)return s==null?void 0:s[0]},Bf=async l=>{var u,k,f,v;if(!l)return;const n=gi(l),r=await hr.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:n}}),t=(u=r==null?void 0:r.data)==null?void 0:u.code,s=(k=r==null?void 0:r.data)==null?void 0:k.result;return t==200?(v=(f=s==null?void 0:s[0])==null?void 0:f.value)==null?void 0:v.columns:[]},Nf=async(l,n)=>{if(!l||!n)return;const r=gi(l);return await hr.createInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:r},value:{columns:n}})},Tf=async(l,n)=>!l||!n?void 0:await hr.updateInsofDataApi({id:l,value:{columns:n}}),ns=async(l,n)=>{const r=sessionStorage.getItem("systemKey");if(!l||!n||!r)return;const t=await Df(l);return t?await Tf(t==null?void 0:t.id,n):await Nf(l,n)};var fo={exports:{}},Af=fo.exports,ts;function Mf(){return ts||(ts=1,function(l,n){(function(r,t){t()})(Af,function(){function r(y,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(y.type)?new Blob(["\uFEFF",y],{type:y.type}):y}function t(y,c,E){var N=new XMLHttpRequest;N.open("GET",y),N.responseType="blob",N.onload=function(){v(N.response,c,E)},N.onerror=function(){console.error("could not download file")},N.send()}function s(y){var c=new XMLHttpRequest;c.open("HEAD",y,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function u(y){try{y.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),y.dispatchEvent(c)}}var k=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof L.commonjsGlobal=="object"&&L.commonjsGlobal.global===L.commonjsGlobal?L.commonjsGlobal:void 0,f=k.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),v=k.saveAs||(typeof window!="object"||window!==k?function(){}:"download"in HTMLAnchorElement.prototype&&!f?function(y,c,E){var N=k.URL||k.webkitURL,O=document.createElement("a");c=c||y.name||"download",O.download=c,O.rel="noopener",typeof y=="string"?(O.href=y,O.origin===location.origin?u(O):s(O.href)?t(y,c,E):u(O,O.target="_blank")):(O.href=N.createObjectURL(y),setTimeout(function(){N.revokeObjectURL(O.href)},4e4),setTimeout(function(){u(O)},0))}:"msSaveOrOpenBlob"in navigator?function(y,c,E){if(c=c||y.name||"download",typeof y!="string")navigator.msSaveOrOpenBlob(r(y,E),c);else if(s(y))t(y,c,E);else{var N=document.createElement("a");N.href=y,N.target="_blank",setTimeout(function(){u(N)})}}:function(y,c,E,N){if(N=N||open("","_blank"),N&&(N.document.title=N.document.body.innerText="downloading..."),typeof y=="string")return t(y,c,E);var O=y.type==="application/octet-stream",w=/constructor/i.test(k.HTMLElement)||k.safari,Y=/CriOS\/[\d]+/.test(navigator.userAgent);if((Y||O&&w||f)&&typeof FileReader<"u"){var _=new FileReader;_.onloadend=function(){var S=_.result;S=Y?S:S.replace(/^data:[^;]*;/,"data:attachment/file;"),N?N.location.href=S:location=S,N=null},_.readAsDataURL(y)}else{var A=k.URL||k.webkitURL,Z=A.createObjectURL(y);N?N.location=Z:location.href=Z,N=null,setTimeout(function(){A.revokeObjectURL(Z)},4e4)}});k.saveAs=v.saveAs=v,l.exports=v})}(fo)),fo.exports}Mf();const St=L.defineStore("tabComp",{state:()=>({itemData:[],originalData:[],extraContents:[],nodeDev:"",isEdit:"view",isRefreshCurStructure:!1,isSubmitCurStructure:!1,curStructureCompIds:[],itemGridData:[],itemExtendData:void 0,payloadTypes:"",lockingPage:"",systemPath:void 0,pageMapState:void 0,cacheUpdatingData:void 0,freshContent:!1,tableLoading:!1,routeToChildPath:"",tableViewContents:[],activeItemIndex:0,fixMenuStatus:!1,refreshTable:!1,selectTab:""}),actions:{setItemData(l){this.itemData=l},setCurStructureCompIds(l){this.curStructureCompIds=l},setRefreshCurStructure(l){this.isRefreshCurStructure=l},setOriginalData(l){this.originalData=l},setExtraContents(l){this.extraContents=l},setNodeDev(l){this.nodeDev=l},setIsEdit(l){this.isEdit=l},setSelectTab(l){this.selectTab=l}}}),zf=L.useLoginState(),{loginUserInfo:Sl}=L.storeToRefs(zf);let io="$R";const br=L.useModelComp(L.pinia),Js=a.ref(!1),{itemData:Of,itemGridData:et,curStructureCompIds:os,isSubmitCurStructure:If,routeToChildPath:Lf,pageMapState:ci,itemExtendData:so,refreshTable:is}=L.storeToRefs(br),So=St(L.pinia),_r=L.useMenuState(L.pinia),Yl=a.shallowRef([]),{activeTopMenuPath:Vf,activeMenuPath:wl,platform:Sh,buttonTriggerType:$f,currentMenuPath:Yr}=L.storeToRefs(_r),Zr=L.useUnit(L.pinia),{selectTitle:Pn,chooseTitle:ui}=L.storeToRefs(Zr);a.ref();const Et=a.ref(!0),jn=a.ref(0),di=a.ref([]);a.ref(!1);const bi=a.ref(!1),jt=a.ref(),Zs=a.ref(),Qs=a.ref(),Rf=()=>{br.setItemGridData([]),br.setIsEdit("edit"),br.setSubmitCurStructure(wl.value!=="/平台管理/菜单管理")},Pf=()=>{br.setIsEdit("view"),br.setRefreshCurStructure(!0)},Ff=async l=>{var s;let n=Pn.value,r=n==null?void 0:n.findIndex(u=>(u==null?void 0:u.value)===(l==null?void 0:l.value)),t=n==null?void 0:n.filter((u,k)=>k<=r);Zr.setSelectTitle(rl.safeClone(t)),t=(s=t==null?void 0:t.map(u=>u==null?void 0:u.value))==null?void 0:s.join("/"),_r.setActiveMenuPath(null),_r.setActiveMenuPath(t)},Zo=async(l,n,r,t="contentConfig")=>{var s;try{if(!Array.isArray(l))return;let u,k;n==="create"?(u={dataList:l==null?void 0:l.map(v=>{var y;return{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:r!=null&&r.startsWith("/")?r==null?void 0:r.substring(1):r,type:"structure",structureBelong:t,parentTable:"",version:1},value:{pageData:{...v,compData:(y=v==null?void 0:v.compData)==null?void 0:y.filter(c=>(c==null?void 0:c.key)!=="tableContents")}}}})},k=hr.batchAddInsofDataApi):n==="update"?(u={dataList:l==null?void 0:l.map(v=>{var y;return{id:v==null?void 0:v.id,value:{pageData:{...v,compData:(y=v==null?void 0:v.compData)==null?void 0:y.filter(c=>(c==null?void 0:c.key)!=="tableContents")}}}})},k=hr.batchUpdateInsofDataApi):n==="delete"&&(u={ids:l},k=hr.batchDeleteInsofDataApi);const f=await k(u);if(((s=f==null?void 0:f.data)==null?void 0:s.code)===200)return f.data.result;throw Wa.ElMessage.error("保存响应失败"),new Error("保存响应失败")}catch{Wa.ElMessage.error("保存响应失败")}},ss=async(l,n,r,t)=>{var s,u,k,f,v,y,c,E,N,O,w;try{const Y=(u=(s=l==null?void 0:l.results)==null?void 0:s.filter(T=>!(T!=null&&T.id)||typeof(T==null?void 0:T.id)=="string"))==null?void 0:u.map(T=>({key:{pageKey:l==null?void 0:l.pageKey,systemKey:sessionStorage.getItem("systemKey"),type:n,relatedInfo:r},value:{tableData:T}})),_=(f=(k=l==null?void 0:l.results)==null?void 0:k.filter(T=>(T==null?void 0:T.id)&&typeof(T==null?void 0:T.id)=="number"))==null?void 0:f.map(T=>({id:T==null?void 0:T.id,value:{tableData:T}})),A=JSON.parse(JSON.stringify(l)),Z=(v=A==null?void 0:A.results)==null?void 0:v.map(T=>T.id);let S;r?S=(E=(c=(y=ci.value)==null?void 0:y[wl.value])==null?void 0:c.filter(T=>{var x,g,H;return((x=T==null?void 0:T.key)==null?void 0:x.type)===n&&((H=(g=T==null?void 0:T.key)==null?void 0:g.relatedInfo)==null?void 0:H.target)===t}))==null?void 0:E.map(T=>T==null?void 0:T.id):S=(w=(O=(N=ci.value)==null?void 0:N[wl.value])==null?void 0:O.filter(T=>{var x;return((x=T==null?void 0:T.key)==null?void 0:x.type)===n}))==null?void 0:w.map(T=>T==null?void 0:T.id);const $=S==null?void 0:S.filter(T=>!(Z!=null&&Z.includes(T))&&typeof T=="number");(Y==null?void 0:Y.length)>0&&await hr.batchAddInsofDataApi({dataList:Y}),(_==null?void 0:_.length)>0&&await hr.batchUpdateInsofDataApi({dataList:_}),($==null?void 0:$.length)>0&&await hr.batchDeleteInsofDataApi({ids:$})}catch(Y){throw new Error(Y)}},jf=async l=>{var y,c,E,N,O,w,Y,_,A,Z;_r.setContentLoading(!0);const n=JSON.parse(JSON.stringify(Of.value));if(!If.value)return _r.setCacheStructures({key:$f.value,data:n}),Wa.ElMessage.success("已暂存");const r=n==null?void 0:n.map(S=>S.id),t=r.filter(S=>{var $;return!(($=os.value)!=null&&$.includes(S))}),s=(y=os.value)==null?void 0:y.filter(S=>!r.includes(S)),u=[...t,...s].filter(S=>typeof S!==null&&typeof S<"u"),k=n==null?void 0:n.filter(S=>!S.id),f=n==null?void 0:n.filter(S=>S.id);let v=[];if(u&&(u==null?void 0:u.length)>0&&v.push(Zo(u,"delete",l)),k&&(k==null?void 0:k.length)>0&&v.push(Zo(k,"create",l)),f&&(f==null?void 0:f.length)>0&&v.push(Zo(f,"update",l)),et.value&&((c=et.value)!=null&&c.isDelete&&((N=(E=et.value)==null?void 0:E.results)==null?void 0:N.length)>0&&((w=(O=et.value)==null?void 0:O.results)!=null&&w.every(S=>typeof S=="number"))?await hr.batchDeleteInsofDataApi({ids:(Y=et.value)==null?void 0:Y.results}):(console.log("itemGridData.value",et.value),v.push(await ss(et.value,"gridLayout")))),so.value)for(const S in so.value)v.push(await ss((_=so.value)==null?void 0:_[S],"extend",{target:S,compId:(Z=(A=so.value)==null?void 0:A[S])==null?void 0:Z.compId},S));await Promise.all(v).then(()=>{Wa.ElMessage.success("保存成功"),br.setRefreshCurStructure(!0)}).catch(S=>{Wa.ElMessage.success(S)}),_r.setContentLoading(!1)},Ht=l=>Dt(l),Hf=a.computed(()=>{var l;return(l=Yl.value)==null?void 0:l.filter(n=>(n==null?void 0:n.affix)&&(n==null?void 0:n.affix)!=="default")}),ec=a.computed(()=>{var l;return(l=Yl.value)==null?void 0:l.filter(n=>!(n!=null&&n.affix)||(n==null?void 0:n.affix)==="default")}),ac=a.ref(0),lc=a.ref(null),Uf="ocr_committed_temp_ids_v1",qf=(l,n)=>`${Uf}:${String(l??"")}:${String(n??"")}`,Wf=(l,n,r)=>{try{const t=qf(l,n),s=sessionStorage.getItem(t),u=s?JSON.parse(s):[],k=Array.isArray(u)?u:[],f=Array.from(new Set([...k,...r||[]].map(v=>String(v)))).slice(-200);sessionStorage.setItem(t,JSON.stringify(f))}catch{}},ko=async(l,n="data",r)=>{var s,u,k,f,v,y,c,E,N,O,w,Y,_,A,Z,S,$,T,x,g,H,W,ae,ge,Oe,we,te,me,J,ue,Ye,Sa,oe,D,ne,ve,se,xe,ta,wa,Ia,le,ra,Ve,_a,Fe,_e,ze,Ge,Ba,Ja,R,j,G,V,K,Ne,Q,ke,pe,je,Pe,ca,ka,Ie,fa,Re,Ca,Ue,ba,ce,xa,ye,Da,Ze,Je,Ee,be,Se,ha,oa,Qa,Dl,Ol,Za;let t=((k=(u=(s=Pn.value)==null?void 0:s.filter(qe=>(qe==null?void 0:qe.condition)==="child"))==null?void 0:u[0])==null?void 0:k.value)??"";if((l==null?void 0:l.buttonName)==="新增"){let qe=(f=l==null?void 0:l.fixContent)==null?void 0:f.map(Ea=>{let Ce={};for(let q in Ea)Array.isArray(Ea==null?void 0:Ea[q])?Ce[q]=JSON.stringify(Ea==null?void 0:Ea[q]):Ce[q]=Ea==null?void 0:Ea[q];return Ce}),$e=await L.quoteApi({platId:parseInt((v=Sl==null?void 0:Sl.value)==null?void 0:v.plat_id),type:"fatherSyncs",related:[{menus:t!==""?wl.value+"/"+t:wl.value,groups:l==null?void 0:l.name}]});$e=(y=$e==null?void 0:$e.data)==null?void 0:y.result,$e=$e==null?void 0:$e.filter(Ea=>{var Ce,q;return!((Ea==null?void 0:Ea.fatherPath)!==""&&((q=(Ce=Ea==null?void 0:Ea.quote)==null?void 0:Ce[0])==null?void 0:q.menus)===(wl==null?void 0:wl.value))});let ua=$e==null?void 0:$e.map(Ea=>{var Xe,Oa;let Ce={},q=qe==null?void 0:qe[0],Le;return Array.isArray((Xe=Ea==null?void 0:Ea.struct)==null?void 0:Xe[0])?Le=sa.getColumnChild((Oa=Ea==null?void 0:Ea.struct)==null?void 0:Oa[0]):Le=Ea==null?void 0:Ea.struct,Le==null||Le.forEach($a=>{var _l,cl;Ce[$a.prop]=((_l=$a==null?void 0:$a.words)!=null&&_l[0]?q==null?void 0:q[(cl=$a==null?void 0:$a.words)==null?void 0:cl[0]]:q==null?void 0:q[$a==null?void 0:$a.prop])??""}),Ce.id="1",delete Ce.sort,{tableName:"content_"+(Ea==null?void 0:Ea.id),tableContents:[Ce]}}),Qe=[{tableName:(c=l==null?void 0:l.relatedContents)==null?void 0:c.find(Ea=>Ea==null?void 0:Ea.includes("content")),tableContents:qe}];Qe=[...Qe,...ua];let Ta=await L.quoteApi({platId:parseInt((E=Sl==null?void 0:Sl.value)==null?void 0:E.plat_id),type:"sonSyncs",related:[{menus:t!==""?wl.value+"/"+t:wl.value,groups:l==null?void 0:l.name}]});Ta=(O=(N=Ta==null?void 0:Ta.data)==null?void 0:N.result)==null?void 0:O.filter(Ea=>!(Qe!=null&&Qe.find(Ce=>(Ce==null?void 0:Ce.tableName)==="content_"+(Ea==null?void 0:Ea.id)))),Ta=Ta==null?void 0:Ta.filter(Ea=>{var Ce,q;return!((Ea==null?void 0:Ea.fatherPath)!==""&&((q=(Ce=Ea==null?void 0:Ea.quote)==null?void 0:Ce[0])==null?void 0:q.menus)===(wl==null?void 0:wl.value))});let Fa=Ta==null?void 0:Ta.map(Ea=>{var Xe,Oa,$a,_l,cl,nl,ml;let Ce={},q=qe==null?void 0:qe[0],Le;return Array.isArray((Xe=Ea==null?void 0:Ea.struct)==null?void 0:Xe[0])?Le=sa.getColumnChild((Oa=Ea==null?void 0:Ea.struct)==null?void 0:Oa[0]):Le=Ea==null?void 0:Ea.struct,((_l=($a=Le==null?void 0:Le[0])==null?void 0:$a.words)!=null&&_l[0]?q!=null&&q[(nl=(cl=Le==null?void 0:Le[0])==null?void 0:cl.words)==null?void 0:nl[0]]:q!=null&&q[(ml=Le==null?void 0:Le[0])==null?void 0:ml.prop])?(Le==null||Le.forEach(sl=>{var tl,Pa;Ce[sl.prop]=((tl=sl==null?void 0:sl.words)!=null&&tl[0]?q==null?void 0:q[(Pa=sl==null?void 0:sl.words)==null?void 0:Pa[0]]:q==null?void 0:q[sl==null?void 0:sl.prop])??""}),Ce.id="1",delete Ce.sort):Ce=void 0,{tableName:"content_"+(Ea==null?void 0:Ea.id),tableContents:[Ce]}});Fa=Fa==null?void 0:Fa.filter(Ea=>{var Ce;return!((Ce=Ea==null?void 0:Ea.tableContents)!=null&&Ce.every(q=>q===void 0))}),Qe=[...Qe,...Fa],await L.pageBatchAddApi({platId:parseInt((w=Sl==null?void 0:Sl.value)==null?void 0:w.plat_id),changeContents:Qe})}if((l==null?void 0:l.buttonName)==="OCR批量新增"){const qe=((l==null?void 0:l.ocrRows)||[]).map(Qe=>Qe==null?void 0:Qe.id).filter(Qe=>Qe!=null),$e=((l==null?void 0:l.ocrRows)||[]).map(Qe=>{const Ta={...Qe};return delete Ta._isOCRRow,delete Ta._ocrTableId,Object.keys(Ta).forEach(Fa=>{/(^|\.)证书附件$/.test(Fa)&&Array.isArray(Ta[Fa])&&(Ta[Fa]=JSON.stringify(Ta[Fa].map(Ea=>({url:(Ea==null?void 0:Ea.url)||"",name:(Ea==null?void 0:Ea.name)||(Ea==null?void 0:Ea.fileName)||"",fileName:(Ea==null?void 0:Ea.fileName)||(Ea==null?void 0:Ea.name)||""})).filter(Ea=>Ea.url||Ea.name)))}),Ta});let ua=[{tableName:(Y=l==null?void 0:l.relatedContents)==null?void 0:Y.find(Qe=>Qe==null?void 0:Qe.includes("content")),tableContents:$e}];await L.pageBatchAddApi({platId:parseInt((_=Sl==null?void 0:Sl.value)==null?void 0:_.plat_id),changeContents:ua}),Wf(l==null?void 0:l.parentTableId,l==null?void 0:l.index,qe)}if((l==null?void 0:l.buttonName)==="编辑"){const $e=((l==null?void 0:l.fixContent)||(l==null?void 0:l.singleContent)||[]||[]).map(Xe=>{const Oa={...Xe};return delete Oa._isOCRRow,delete Oa._ocrTableId,delete Oa._isTemp,delete Oa.tableEditType,delete Oa.index,Oa});let ua=$e==null?void 0:$e.map(Xe=>{let Oa={};for(let $a in Xe)Array.isArray(Xe==null?void 0:Xe[$a])?Oa[$a]=JSON.stringify(Xe==null?void 0:Xe[$a]):Oa[$a]=Xe==null?void 0:Xe[$a];return Oa}),Qe=await L.quoteApi({platId:parseInt((A=Sl==null?void 0:Sl.value)==null?void 0:A.plat_id),type:"fatherSyncs",related:[{menus:t!==""?wl.value+"/"+t:wl.value,groups:l==null?void 0:l.name}]});Qe=(Z=Qe==null?void 0:Qe.data)==null?void 0:Z.result,Qe=Qe==null?void 0:Qe.filter(Xe=>{var Oa,$a;return!((Xe==null?void 0:Xe.fatherPath)!==""&&(($a=(Oa=Xe==null?void 0:Xe.quote)==null?void 0:Oa[0])==null?void 0:$a.menus)===(wl==null?void 0:wl.value))});let Ta=($=(S=l==null?void 0:l.columns)==null?void 0:S[0])==null?void 0:$.prop,Fa=(T=ua==null?void 0:ua[0])==null?void 0:T[Ta],Ea=[{tableName:(x=l==null?void 0:l.relatedContents)==null?void 0:x.find(Xe=>Xe==null?void 0:Xe.includes("content")),tableContents:ua}],Ce=(g=Qe==null?void 0:Qe.map(Xe=>{var $a,_l,cl,nl,ml;let Oa=($a=Xe==null?void 0:Xe.contents)==null?void 0:$a.filter(sl=>{var tl;return(tl=Object.values(sl))==null?void 0:tl.find(Pa=>Pa===Fa)});if((Oa==null?void 0:Oa.length)>0){let sl=ua==null?void 0:ua[0];sl={...sl,id:(_l=Oa==null?void 0:Oa[0])==null?void 0:_l.id};let tl={},Pa=sl,hl;return Array.isArray((cl=Xe==null?void 0:Xe.struct)==null?void 0:cl[0])?hl=sa.getColumnChild((nl=Xe==null?void 0:Xe.struct)==null?void 0:nl[0]):hl=Xe==null?void 0:Xe.struct,hl==null||hl.forEach(xl=>{var jl,Xl;tl[xl.prop]=((jl=xl==null?void 0:xl.words)!=null&&jl[0]?Pa==null?void 0:Pa[(Xl=xl==null?void 0:xl.words)==null?void 0:Xl[0]]:Pa==null?void 0:Pa[xl==null?void 0:xl.prop])??""}),tl.id=(ml=Oa==null?void 0:Oa[0])==null?void 0:ml.id,delete tl.sort,{tableName:"content_"+(Xe==null?void 0:Xe.id),tableContents:[tl]}}else return}))==null?void 0:g.filter(Xe=>Xe);Ea=[...Ea,...Ce];let q=await L.quoteApi({platId:parseInt((H=Sl==null?void 0:Sl.value)==null?void 0:H.plat_id),type:"sonSyncs",related:[{menus:t!==""?wl.value+"/"+t:wl.value,groups:l==null?void 0:l.name}]});q=(ae=(W=q==null?void 0:q.data)==null?void 0:W.result)==null?void 0:ae.filter(Xe=>!(Ea!=null&&Ea.find(Oa=>(Oa==null?void 0:Oa.tableName)==="content_"+(Xe==null?void 0:Xe.id)))),q=q==null?void 0:q.filter(Xe=>{var Oa,$a;return!((Xe==null?void 0:Xe.fatherPath)!==""&&(($a=(Oa=Xe==null?void 0:Xe.quote)==null?void 0:Oa[0])==null?void 0:$a.menus)===(wl==null?void 0:wl.value))});let Le=(ge=q==null?void 0:q.map(Xe=>{var $a,_l,cl,nl,ml;let Oa=($a=Xe==null?void 0:Xe.contents)==null?void 0:$a.filter(sl=>{var tl;return(tl=Object.values(sl))==null?void 0:tl.find(Pa=>Pa===Fa)});if((Oa==null?void 0:Oa.length)>0){let sl=ua==null?void 0:ua[0];sl={...sl,id:(_l=Oa==null?void 0:Oa[0])==null?void 0:_l.id};let tl={},Pa=sl,hl;return Array.isArray((cl=Xe==null?void 0:Xe.struct)==null?void 0:cl[0])?hl=sa.getColumnChild((nl=Xe==null?void 0:Xe.struct)==null?void 0:nl[0]):hl=Xe==null?void 0:Xe.struct,hl==null||hl.forEach(xl=>{var jl,Xl;tl[xl.prop]=((jl=xl==null?void 0:xl.words)!=null&&jl[0]?Pa==null?void 0:Pa[(Xl=xl==null?void 0:xl.words)==null?void 0:Xl[0]]:Pa==null?void 0:Pa[xl==null?void 0:xl.prop])??""}),tl.id=(ml=Oa==null?void 0:Oa[0])==null?void 0:ml.id,delete tl.sort,{tableName:"content_"+(Xe==null?void 0:Xe.id),tableContents:[tl]}}else return}))==null?void 0:ge.filter(Xe=>Xe);Ea=[...Ea,...Le],await L.pageBatchUpdateApi({platId:parseInt((Oe=Sl==null?void 0:Sl.value)==null?void 0:Oe.plat_id),changeContents:Ea})}if((l==null?void 0:l.buttonName)==="删除"){let qe=[{tableName:(we=l==null?void 0:l.relatedContents)==null?void 0:we.find(Ce=>Ce==null?void 0:Ce.includes("content")),tableContents:l==null?void 0:l.fixContent}],$e=await L.quoteApi({platId:parseInt((te=Sl==null?void 0:Sl.value)==null?void 0:te.plat_id),type:"fatherSyncs",related:[{menus:t!==""?wl.value+"/"+t:wl.value,groups:l==null?void 0:l.name}]});$e=(me=$e==null?void 0:$e.data)==null?void 0:me.result,$e=$e==null?void 0:$e.filter(Ce=>{var q,Le;return!((Ce==null?void 0:Ce.fatherPath)!==""&&((Le=(q=Ce==null?void 0:Ce.quote)==null?void 0:q[0])==null?void 0:Le.menus)===(wl==null?void 0:wl.value))});let ua=(ue=(J=l==null?void 0:l.columns)==null?void 0:J[0])==null?void 0:ue.prop,Qe=(Sa=(Ye=l==null?void 0:l.fixContent)==null?void 0:Ye[0])==null?void 0:Sa[ua],Ta=(oe=$e==null?void 0:$e.map(Ce=>{var Le,Xe,Oa,$a,_l,cl;let q=(Le=Ce==null?void 0:Ce.contents)==null?void 0:Le.filter(nl=>{var ml;return(ml=Object.values(nl))==null?void 0:ml.find(sl=>sl===Qe)});if((q==null?void 0:q.length)>0){let nl=(Xe=l==null?void 0:l.fixContent)==null?void 0:Xe[0];nl={...nl,id:(Oa=q==null?void 0:q[0])==null?void 0:Oa.id};let ml={},sl=nl,tl;return Array.isArray(($a=Ce==null?void 0:Ce.struct)==null?void 0:$a[0])?tl=sa.getColumnChild((_l=Ce==null?void 0:Ce.struct)==null?void 0:_l[0]):tl=Ce==null?void 0:Ce.struct,tl==null||tl.forEach(Pa=>{var hl,xl;ml[Pa.prop]=((hl=Pa==null?void 0:Pa.words)!=null&&hl[0]?sl==null?void 0:sl[(xl=Pa==null?void 0:Pa.words)==null?void 0:xl[0]]:sl==null?void 0:sl[Pa==null?void 0:Pa.prop])??""}),ml.id=(cl=q==null?void 0:q[0])==null?void 0:cl.id,delete ml.sort,{tableName:"content_"+(Ce==null?void 0:Ce.id),tableContents:[ml]}}else return}))==null?void 0:oe.filter(Ce=>Ce);qe=[...qe,...Ta];let Fa=await L.quoteApi({platId:parseInt((D=Sl==null?void 0:Sl.value)==null?void 0:D.plat_id),type:"sonSyncs",related:[{menus:t!==""?wl.value+"/"+t:wl.value,groups:l==null?void 0:l.name}]});Fa=(ve=(ne=Fa==null?void 0:Fa.data)==null?void 0:ne.result)==null?void 0:ve.filter(Ce=>!(qe!=null&&qe.find(q=>(q==null?void 0:q.tableName)==="content_"+(Ce==null?void 0:Ce.id)))),Fa=Fa==null?void 0:Fa.filter(Ce=>{var q,Le;return!((Ce==null?void 0:Ce.fatherPath)!==""&&((Le=(q=Ce==null?void 0:Ce.quote)==null?void 0:q[0])==null?void 0:Le.menus)===(wl==null?void 0:wl.value))});let Ea=(se=Fa==null?void 0:Fa.map(Ce=>{var Le,Xe,Oa,$a,_l,cl;let q=(Le=Ce==null?void 0:Ce.contents)==null?void 0:Le.filter(nl=>{var ml;return(ml=Object.values(nl))==null?void 0:ml.find(sl=>sl===Qe)});if((q==null?void 0:q.length)>0){let nl=(Xe=l==null?void 0:l.fixContent)==null?void 0:Xe[0];nl={...nl,id:(Oa=q==null?void 0:q[0])==null?void 0:Oa.id};let ml={},sl=nl,tl;return Array.isArray(($a=Ce==null?void 0:Ce.struct)==null?void 0:$a[0])?tl=sa.getColumnChild((_l=Ce==null?void 0:Ce.struct)==null?void 0:_l[0]):tl=Ce==null?void 0:Ce.struct,tl==null||tl.forEach(Pa=>{var hl,xl;ml[Pa.prop]=((hl=Pa==null?void 0:Pa.words)!=null&&hl[0]?sl==null?void 0:sl[(xl=Pa==null?void 0:Pa.words)==null?void 0:xl[0]]:sl==null?void 0:sl[Pa==null?void 0:Pa.prop])??""}),ml.id=(cl=q==null?void 0:q[0])==null?void 0:cl.id,delete ml.sort,{tableName:"content_"+(Ce==null?void 0:Ce.id),tableContents:[ml]}}else return}))==null?void 0:se.filter(Ce=>Ce);qe=[...qe,...Ea],await L.pageBatchDeleteApi({platId:parseInt((xe=Sl==null?void 0:Sl.value)==null?void 0:xe.plat_id),changeContents:qe})}if((l==null?void 0:l.buttonName)==="复制新增"){let qe=await L.getPageDataApi({platId:parseInt((ta=Sl==null?void 0:Sl.value)==null?void 0:ta.plat_id),pageName:"menu"});if(qe=(wa=qe==null?void 0:qe.data)==null?void 0:wa.result,qe!=null&&qe.find($e=>($e==null?void 0:$e.father_name)===wl.value+"/")){Qs.value=l,Zs.value=qe==null?void 0:qe.filter(Qe=>(Qe==null?void 0:Qe.father_name)===wl.value+"/");let $e=(le=(Ia=l==null?void 0:l.columns)==null?void 0:Ia.find(Qe=>Qe==null?void 0:Qe.mainKey))==null?void 0:le.prop,ua=(Ve=(ra=l==null?void 0:l.fixContent)==null?void 0:ra[0])==null?void 0:Ve[$e];bi.value=!0,jt.value=[{prop:$e,label:$e,name:$e,value:ua}]}else{let $e=(_a=l==null?void 0:l.fixContent)==null?void 0:_a.map(Qe=>{let Ta={};for(let Fa in Qe)Array.isArray(Qe==null?void 0:Qe[Fa])?Ta[Fa]=JSON.stringify(Qe==null?void 0:Qe[Fa]):Ta[Fa]=Qe==null?void 0:Qe[Fa];return Ta}),ua=[{tableName:(Fe=l==null?void 0:l.relatedContents)==null?void 0:Fe.find(Qe=>Qe==null?void 0:Qe.includes("content")),tableContents:$e}];await L.pageBatchAddApi({platId:parseInt((_e=Sl==null?void 0:Sl.value)==null?void 0:_e.plat_id),changeContents:ua})}}if((l==null?void 0:l.buttonName)==="methodButton"){let qe=(Ba=(Ge=(ze=l==null?void 0:l.columns)==null?void 0:ze.map(Le=>Le==null?void 0:Le.filter))==null?void 0:Ge.filter(Le=>Le!==""))==null?void 0:Ba[0];qe=Aa.analyzeSplitToContent(qe,","),qe=(qe==null?void 0:qe.find(Le=>Le==null?void 0:Le.includes("@Filter")))??"";let $e=(Ja=l==null?void 0:l.fixContent)==null?void 0:Ja.map(Le=>{let Xe={};for(let Oa in Le)Array.isArray(Le==null?void 0:Le[Oa])?Xe[Oa]=JSON.stringify(Le==null?void 0:Le[Oa]):Xe[Oa]=Le==null?void 0:Le[Oa];return Xe}),ua=await L.quoteApi({platId:parseInt((R=Sl==null?void 0:Sl.value)==null?void 0:R.plat_id),type:"fatherSyncs",related:[{menus:t!==""?wl.value+"/"+t:wl.value,groups:l==null?void 0:l.name}]});ua=(j=ua==null?void 0:ua.data)==null?void 0:j.result,ua=ua==null?void 0:ua.filter(Le=>{var Xe,Oa;return!((Le==null?void 0:Le.fatherPath)!==""&&((Oa=(Xe=Le==null?void 0:Le.quote)==null?void 0:Xe[0])==null?void 0:Oa.menus)===(wl==null?void 0:wl.value))});let Qe=(V=(G=l==null?void 0:l.columns)==null?void 0:G[0])==null?void 0:V.prop,Ta=(K=$e==null?void 0:$e[0])==null?void 0:K[Qe],Fa=[{tableName:(Ne=l==null?void 0:l.relatedContents)==null?void 0:Ne.find(Le=>Le==null?void 0:Le.includes("content")),tableContents:$e}],Ea=(Q=ua==null?void 0:ua.map(Le=>{var Oa,$a,_l,cl,nl;let Xe=(Oa=Le==null?void 0:Le.contents)==null?void 0:Oa.filter(ml=>{var sl;return(sl=Object.values(ml))==null?void 0:sl.find(tl=>tl===Ta)});if((Xe==null?void 0:Xe.length)>0){let ml=$e==null?void 0:$e[0];ml={...ml,id:($a=Xe==null?void 0:Xe[0])==null?void 0:$a.id};let sl={},tl=ml,Pa;return Array.isArray((_l=Le==null?void 0:Le.struct)==null?void 0:_l[0])?Pa=sa.getColumnChild((cl=Le==null?void 0:Le.struct)==null?void 0:cl[0]):Pa=Le==null?void 0:Le.struct,Pa==null||Pa.forEach(hl=>{var xl,jl;sl[hl.prop]=((xl=hl==null?void 0:hl.words)!=null&&xl[0]?tl==null?void 0:tl[(jl=hl==null?void 0:hl.words)==null?void 0:jl[0]]:tl==null?void 0:tl[hl==null?void 0:hl.prop])??""}),sl.id=(nl=Xe==null?void 0:Xe[0])==null?void 0:nl.id,delete sl.sort,{tableName:"content_"+(Le==null?void 0:Le.id),tableContents:[sl]}}else return}))==null?void 0:Q.filter(Le=>Le);Fa=[...Fa,...Ea];let Ce=await L.quoteApi({platId:parseInt((ke=Sl==null?void 0:Sl.value)==null?void 0:ke.plat_id),type:"sonSyncs",related:[{menus:t!==""?wl.value+"/"+t:wl.value,groups:l==null?void 0:l.name}]});if(Ce=(je=(pe=Ce==null?void 0:Ce.data)==null?void 0:pe.result)==null?void 0:je.filter(Le=>!(Fa!=null&&Fa.find(Xe=>(Xe==null?void 0:Xe.tableName)==="content_"+(Le==null?void 0:Le.id)))),Ce=Ce==null?void 0:Ce.filter(Le=>{var Xe,Oa;return!((Le==null?void 0:Le.fatherPath)!==""&&((Oa=(Xe=Le==null?void 0:Le.quote)==null?void 0:Xe[0])==null?void 0:Oa.menus)===(wl==null?void 0:wl.value))}),qe&&qe!==""){(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=(ca=(Pe=qe==null?void 0:qe.replace("(",io))==null?void 0:Pe.split(io))==null?void 0:ca[1],qe=qe==null?void 0:qe.slice(0,(qe==null?void 0:qe.length)-1),(qe==null?void 0:qe[0])==="*"&&(qe="{"+((Ie=(ka=qe==null?void 0:qe.replace("{",io))==null?void 0:ka.split(io))==null?void 0:Ie[1])),qe=(fa=qe==null?void 0:qe.replaceAll("{",""))==null?void 0:fa.replaceAll("}","");let Le=sa.calculatorAndToOr(qe);Le=Le==null?void 0:Le[0];let Xe;if((Re=Object.values(Le))!=null&&Re.some(Oa=>(Oa==null?void 0:Oa[0])==="*")){let Oa=(Ue=(Ca=Pn.value)==null?void 0:Ca.find($a=>($a==null?void 0:$a.condition)==="child"))!=null&&Ue.value?(Yr==null?void 0:Yr.value)+"/"+((ce=(ba=Pn.value)==null?void 0:ba.find($a=>($a==null?void 0:$a.condition)==="child"))==null?void 0:ce.value):Yr==null?void 0:Yr.value;Xe=await jr(Oa,!1)}for(let Oa in Le)if(((xa=Le==null?void 0:Le[Oa])==null?void 0:xa[0])==="*"){let $a=(Je=(Ze=(Da=Le[Oa])==null?void 0:Da.slice(1,(ye=Le[Oa])==null?void 0:ye.length))==null?void 0:Ze.split(":"))==null?void 0:Je[0],_l=(be=(Ee=Le[Oa])==null?void 0:Ee.split(":"))==null?void 0:be[1],cl=(Se=Xe==null?void 0:Xe.filter(nl=>(nl==null?void 0:nl.name)===$a))==null?void 0:Se[0];cl=(oa=(ha=cl==null?void 0:cl.compData)==null?void 0:ha.find(nl=>(nl==null?void 0:nl.key)==="tableContents"))==null?void 0:oa.contents,cl=(Qa=cl==null?void 0:cl[0])==null?void 0:Qa[_l],Le[Oa]=cl}qe=((Dl=Object.values(Le))==null?void 0:Dl[0])??""}let q=(Ol=Ce==null?void 0:Ce.map(Le=>{var Oa,$a,_l,cl,nl;let Xe=(Oa=Le==null?void 0:Le.contents)==null?void 0:Oa.filter(ml=>{var sl;return(sl=Object.values(ml))==null?void 0:sl.find(tl=>tl===(qe===""?Ta:qe))});if((Xe==null?void 0:Xe.length)>0){let ml=$e==null?void 0:$e[0];ml={...ml,id:($a=Xe==null?void 0:Xe[0])==null?void 0:$a.id};let sl={},tl=ml,Pa;return Array.isArray((_l=Le==null?void 0:Le.struct)==null?void 0:_l[0])?Pa=sa.getColumnChild((cl=Le==null?void 0:Le.struct)==null?void 0:cl[0]):Pa=Le==null?void 0:Le.struct,Pa==null||Pa.forEach(hl=>{var jl,Xl,lr,Il;let xl=(jl=l==null?void 0:l.columns)==null?void 0:jl.find(kr=>{var pr,Ir,Lr;return((Ir=(pr=kr==null?void 0:kr.words)==null?void 0:pr[0])==null?void 0:Ir.replaceAll("'",""))===(hl==null?void 0:hl.prop)&&((Lr=kr==null?void 0:kr.functionRelatedWords)==null?void 0:Lr.length)>0});xl=(Xl=xl==null?void 0:xl.prop)==null?void 0:Xl.replaceAll("'",""),sl[hl.prop]=((lr=hl==null?void 0:hl.words)!=null&&lr[0]?tl==null?void 0:tl[(Il=hl==null?void 0:hl.words)==null?void 0:Il[0]]:(tl==null?void 0:tl[hl==null?void 0:hl.prop])??(tl==null?void 0:tl[xl]))??void 0}),sl.id=(nl=Xe==null?void 0:Xe[0])==null?void 0:nl.id,delete sl.sort,{tableName:"content_"+(Le==null?void 0:Le.id),tableContents:[sl]}}else return}))==null?void 0:Ol.filter(Le=>Le);Fa=[...Fa,...q],await L.pageBatchUpdateApi({platId:parseInt((Za=Sl==null?void 0:Sl.value)==null?void 0:Za.plat_id),changeContents:Fa})}br.setRefreshCurStructure(!0),await pi(l)},pi=async l=>{var u,k,f,v,y,c,E,N,O,w,Y,_,A,Z,S,$,T,x;let n=(u=l==null?void 0:l.relatedContents)==null?void 0:u.filter(g=>g==null?void 0:g.includes("content_")),r=await L.getAllTables({platId:parseInt((k=Sl==null?void 0:Sl.value)==null?void 0:k.plat_id),tableNames:n});if(r=(v=(f=r==null?void 0:r.data)==null?void 0:f.result)==null?void 0:v[0],!r||!Array.isArray(r))return;r=r==null?void 0:r.map(g=>(g==null||delete g.source_table,g));let t=(c=(y=n==null?void 0:n[0])==null?void 0:y.split("_"))==null?void 0:c[1],s=(E=Yl.value)==null?void 0:E.find(g=>(g==null?void 0:g.id)===t);if(s&&(s==null?void 0:s.comp)!=="Tabs"){let g=(N=s.compData)==null?void 0:N.map(H=>(H==null?void 0:H.key)==="tableContents"?{...H,contents:r}:H);s.compData=await ti(g,{}),Yl.value=(O=Yl.value)==null?void 0:O.map(H=>((H==null?void 0:H.id)===(s==null?void 0:s.id)&&(H=s),H))}else{let g=(w=Yl.value)==null?void 0:w.filter(H=>(H==null?void 0:H.comp)==="Tabs"||(H==null?void 0:H.comp)==="ParentItem");if(g=(Y=g==null?void 0:g.filter(H=>{var W,ae;return((W=H==null?void 0:H.compData)==null?void 0:W.find(ge=>(ge==null?void 0:ge.id)===t))||((ae=H==null?void 0:H.children)==null?void 0:ae.find(ge=>(ge==null?void 0:ge.id)===t))}))==null?void 0:Y[0],g){const H=((_=g==null?void 0:g.compData)==null?void 0:_.find(W=>(W==null?void 0:W.id)===t))??((A=g==null?void 0:g.children)==null?void 0:A.find(W=>(W==null?void 0:W.id)===t));if(H){let W;H!=null&&H.compData&&((Z=H.compData)==null?void 0:Z.length)>0?W=(S=H.compData)==null?void 0:S.map(ae=>(ae==null?void 0:ae.key)==="tableContents"?{...ae,contents:r}:ae):W=($=H.children)==null?void 0:$.map(ae=>(ae==null?void 0:ae.key)==="tableContents"?{...ae,contents:r}:ae),H.compData=await ti(W,{}),g.compData=(T=g.compData)==null?void 0:T.map(ae=>((ae==null?void 0:ae.id)===(H==null?void 0:H.id)&&(ae=H),ae)),Yl.value=(x=Yl.value)==null?void 0:x.map(ae=>((ae==null?void 0:ae.tabInform)===(g==null?void 0:g.tabInform)&&(ae=g),ae))}}}},Kf=l=>{let n=jt.value;jt.value=n==null?void 0:n.map(r=>(r.value=l==null?void 0:l[r==null?void 0:r.prop],r))},Yf=async()=>{var N,O,w,Y,_,A,Z,S,$,T;let l=Qs.value,n=Zs.value,r=(O=(N=l==null?void 0:l.columns)==null?void 0:N.find(x=>x==null?void 0:x.mainKey))==null?void 0:O.prop,t=(Y=(w=jt.value)==null?void 0:w[0])==null?void 0:Y.value,s=(_=l==null?void 0:l.fixContent)==null?void 0:_.map(x=>{var H;let g={};for(let W in x)Array.isArray(x==null?void 0:x[W])?g[W]=JSON.stringify(x==null?void 0:x[W]):g[W]=x==null?void 0:x[W];return(H=l==null?void 0:l.columns)==null||H.forEach(W=>{(W==null?void 0:W.formType)==="Upload"&&(g==null?void 0:g[W==null?void 0:W.prop])===""&&(g[W==null?void 0:W.prop]="{}")}),g[r]=t,g}),u=[{tableName:(A=l==null?void 0:l.relatedContents)==null?void 0:A.find(x=>x==null?void 0:x.includes("content")),tableContents:s}];await L.pageBatchAddApi({platId:parseInt((Z=Sl==null?void 0:Sl.value)==null?void 0:Z.plat_id),changeContents:u}),n=n==null?void 0:n.filter(x=>{var g,H,W;return(W=x==null?void 0:x.object_name)==null?void 0:W.includes((H=(g=l==null?void 0:l.fixContent)==null?void 0:g[0])==null?void 0:H[r])});let k=[],f=new Map;n==null||n.forEach(x=>{k.push(`content_${x==null?void 0:x.object_id}`),k.push(`struct_${x==null?void 0:x.object_id}`),f.set(x==null?void 0:x.object_id,x)});let v=await L.getAllTables({platId:parseInt((S=Sl==null?void 0:Sl.value)==null?void 0:S.plat_id),tableNames:k});v=($=v==null?void 0:v.data)==null?void 0:$.result;let y=[],c=[];v=Aa.chunk(v,2),v==null||v.forEach(x=>{var W,ae,ge,Oe,we,te,me,J,ue,Ye,Sa,oe,D,ne,ve,se,xe,ta,wa,Ia,le;let g=f.get((Oe=(ge=(ae=(W=x==null?void 0:x[1])==null?void 0:W[0])==null?void 0:ae.source_table)==null?void 0:ge.split("_"))==null?void 0:Oe[1]),H=(me=(te=(we=g==null?void 0:g.object_name)==null?void 0:we.split("/"))==null?void 0:te.filter((ra,Ve)=>{var _a,Fe;return((Fe=(_a=g==null?void 0:g.object_name)==null?void 0:_a.split("/"))==null?void 0:Fe.length)-1!==Ve}))==null?void 0:me.join("/");if(H=H+"/"+t,c!=null&&c.find(ra=>(ra==null?void 0:ra.path)===H)||c.push({fatherPath:g==null?void 0:g.father_name,isShow:g==null?void 0:g.is_show,path:H}),((ue=(J=x==null?void 0:x[1])==null?void 0:J[0])==null?void 0:ue.类型)==="Table"){let ra=((oe=(Sa=(Ye=x==null?void 0:x[1])==null?void 0:Ye[0])==null?void 0:Sa.结构)==null?void 0:oe.contents)??[],Ve=rl.safeClone(ra);Array.isArray(Ve==null?void 0:Ve[0])&&(Ve=sa.getColumnChild(Ve==null?void 0:Ve[0]));let _a=[];if(((D=x==null?void 0:x[0])==null?void 0:D.length)>0&&(_a=(ne=x==null?void 0:x[0])==null?void 0:ne.map(Fe=>Ve==null?void 0:Ve.map(ze=>(ze=(Fe==null?void 0:Fe[ze==null?void 0:ze.prop])??"",ze)))),y!=null&&y.find(Fe=>(Fe==null?void 0:Fe.key)===H)){let Fe=(ve=y==null?void 0:y.find(ze=>(ze==null?void 0:ze.key)===H))==null?void 0:ve.contents;Fe.push({isShow:g==null?void 0:g.is_show,filter:((ta=(xe=(se=x==null?void 0:x[1])==null?void 0:se[0])==null?void 0:xe.引用)==null?void 0:ta.contents)??"",key:"Table",name:Object.values(g==null?void 0:g.name),tableColumns:ra,tableContents:_a});let _e=y==null?void 0:y.findIndex(ze=>(ze==null?void 0:ze.key)===H);y[_e].contents=Fe}else y.push({key:H,contents:[{isShow:g==null?void 0:g.is_show,filter:((le=(Ia=(wa=x==null?void 0:x[1])==null?void 0:wa[0])==null?void 0:Ia.引用)==null?void 0:le.contents)??"",key:"Table",name:Object.values(g==null?void 0:g.name),tableColumns:ra,tableContents:_a}]})}});let E=[];E.push({key:"menuPath",contents:c}),E=[...E,...y],await L.createPlatFormDataApi({platId:parseInt((T=Sl==null?void 0:Sl.value)==null?void 0:T.plat_id),changeData:E}),bi.value=!1,br.setRefreshTable(!0)},xo=async(l,n)=>{},wo=async l=>{Yl.value=await sa.getDeepDiffItems(l),br.setItemData(Yl.value),br.setOriginalData(Yl.value)};a.ref();const Gf=a.ref(null),Xf=()=>{var l,n;console.log("倒计时结束时"),L.ElMessageBox.alert(`超时未提交,【${(n=(l=wl.value)==null?void 0:l.split("/"))==null?void 0:n[0]}】失败`,"告警",{confirmButtonText:"确认",type:"error"})},rc=a.ref([]),Jf=a.computed(()=>{var l,n;return(n=(l=ci.value)==null?void 0:l[wl.value])==null?void 0:n.filter(r=>{var t;return((t=r==null?void 0:r.key)==null?void 0:t.type)==="gridLayout"})});a.watch(()=>[Vf.value],()=>{Zr.setSelectTitle([]),Zr.setChooseTitle([])},{deep:!0});a.watch(()=>ui.value,async(l,n)=>{var t,s,u,k,f;if(JSON.stringify(l)===JSON.stringify(n))return;let r=(t=ui.value)==null?void 0:t.filter(v=>(v==null?void 0:v.condition)==="child"&&(v==null?void 0:v.value)!==""&&(v==null?void 0:v.parentContent)!==Yr.value);if((r==null?void 0:r.length)>0){_r.setContentLoading(!0);let v=((s=r==null?void 0:r[0])==null?void 0:s.relatedContent)??(wl==null?void 0:wl.value),y=v+"/"+((u=r==null?void 0:r[0])==null?void 0:u.value),c=!!((k=r==null?void 0:r[0])!=null&&k.parentContent),E=await jr(y,c,{originPath:v});E=E==null?void 0:E.map(w=>(w.isShow=!0,w)),console.log(E,"loadingContents");let N=await sa.getDeepDiffItems(E),O=N==null?void 0:N.filter(w=>w==null?void 0:w.choice);So.setSelectTab((f=O==null?void 0:O[0])==null?void 0:f.choiceName),N=N==null?void 0:N.filter(w=>{var Y;return!(w!=null&&w.choiceName)||(w==null?void 0:w.choiceName)===((Y=O==null?void 0:O[0])==null?void 0:Y.choiceName)}),Yl.value=N,_r.setContentLoading(!1)}});const Zf=l=>{setTimeout(async()=>{var k,f,v;let n=(k=ui.value)==null?void 0:k.filter(y=>(y==null?void 0:y.condition)==="child"&&(y==null?void 0:y.value)!==""&&(y==null?void 0:y.parentContent)!==Yr.value),r=wl==null?void 0:wl.value,t=wl==null?void 0:wl.value;(n==null?void 0:n.length)>0&&(t=((f=n==null?void 0:n[0])==null?void 0:f.relatedContent)??(wl==null?void 0:wl.value),r=t+"/"+((v=n==null?void 0:n[0])==null?void 0:v.value));let s=await jr(r,!1,{originPath:t});s=s==null?void 0:s.map(y=>(y.isShow=!0,y)),So.setSelectTab(l);let u=await sa.getDeepDiffItems(s);Yl.value=u==null?void 0:u.filter(y=>!(y!=null&&y.choiceName)||(y==null?void 0:y.choiceName)===l)},10)};a.watch(()=>[wl.value],async l=>{var v,y,c,E;if(!wl.value)return;if(wl.value==="/"){Yl.value=[];return}_r.setCurrentMenuPath(wl.value),br.setLockingPage(""),Yl.value=[];let n=a.getCurrentInstance();(v=n==null?void 0:n.scope)==null||v.stop(),n=null,Et.value=!1,_r.setContentLoading(!0),Js.value=!0;let r=l==null?void 0:l[0],t=r,s=(y=Pn.value)==null?void 0:y.filter(N=>(N==null?void 0:N.condition)==="child"&&(N==null?void 0:N.value)!==""&&(N==null?void 0:N.parentContent)!==wl.value&&!(N!=null&&N.relatedContent));(s==null?void 0:s.length)>0&&(r=r+"/"+((c=s==null?void 0:s[0])==null?void 0:c.value));let u=await jr(r,!0,{originPath:t});u=u==null?void 0:u.map(N=>(N.isShow=!0,N));let k=await sa.getDeepDiffItems(u),f=k==null?void 0:k.filter(N=>N==null?void 0:N.choice);So.setSelectTab((E=f==null?void 0:f[0])==null?void 0:E.choiceName),Yl.value=k==null?void 0:k.filter(N=>{var O;return!(N!=null&&N.choiceName)||(N==null?void 0:N.choiceName)===((O=f==null?void 0:f[0])==null?void 0:O.choiceName)}),_r.setContentLoading(!1),br.setExtraContents([]),Zr.setSelectIndex(""),Zr.setSelectMenu(""),br.setItemData(Yl.value),br.setOriginalData(Yl.value),br.setRefreshTable(!1),a.nextTick(()=>{jn.value=jn.value++,Et.value=!0})},{immediate:!0});a.watch(()=>[is.value],async()=>{var l,n,r,t;if(is.value){Yl.value=[];let s=a.getCurrentInstance();(l=s==null?void 0:s.scope)==null||l.stop(),s=null,Et.value=!1,_r.setContentLoading(!0),Js.value=!0;let u=Yr==null?void 0:Yr.value,k=u,f=(n=Pn.value)==null?void 0:n.filter(E=>(E==null?void 0:E.condition)==="child"&&(E==null?void 0:E.value)!==""&&(E==null?void 0:E.parentContent)!==(Yr==null?void 0:Yr.value));(f==null?void 0:f.length)>0&&(u=u+"/"+((r=f==null?void 0:f[0])==null?void 0:r.value));let v=await jr(u,!0,{originPath:k});v=v==null?void 0:v.map(E=>(E.isShow=!0,E));let y=await sa.getDeepDiffItems(v),c=y==null?void 0:y.filter(E=>E==null?void 0:E.choice);if(So.setSelectTab((t=c==null?void 0:c[0])==null?void 0:t.choiceName),Yl.value=y==null?void 0:y.filter(E=>{var N;return!(E!=null&&E.choiceName)||(E==null?void 0:E.choiceName)===((N=c==null?void 0:c[0])==null?void 0:N.choiceName)}),_r.setContentLoading(!1),br.setExtraContents([]),Zr.setSelectIndex(""),Zr.setSelectMenu(""),br.setItemData(Yl.value),br.setOriginalData(Yl.value),br.setRefreshTable(!1),(f==null?void 0:f.length)>0){let E=[...Pn.value,...f];Zr.setSelectTitle(E)}a.nextTick(()=>{jn.value=jn.value++,Et.value=!0})}},{immediate:!0,deep:!0});const Qf=async()=>{_r.setLinkMenuInfo(null),_r.setActiveMenuPath(Lf.value),Yl.value=null,br.setRouteToChildPath(""),_r.setChildMenu("")},e0=l=>new RegExp("button","i").test(l),a0=l=>/^[\u4e00-\u9fa5]+\/[\u4e00-\u9fa5]+\^(.+)$/.test(l),nc=l=>{if(a0(l)){const n=l==null?void 0:l.split("^");(n==null?void 0:n.length)>0&&(n!=null&&n[0])&&_r.setLinkMenuInfo({path:n==null?void 0:n[0],data:n==null?void 0:n[1]})}},tc=async(l,n,r)=>{var N,O,w,Y,_,A,Z,S,$,T,x,g;let t="",s="";for(let H in n)(n==null?void 0:n[H])===l&&(s=H);r==null||r.forEach(H=>{(H==null?void 0:H.prop)===s&&(t=H==null?void 0:H.fatherPath)});let u=t===""?wl.value:t;t!==""&&_r.setCurrentMenuPath(u),_r.setCurrentMenuPath(u+"/"+l),_r.setContentLoading(!0),await jr(u+"/"+l,!0,{originPath:u+"/",row:n});let k=await jr(u,!1),f=(N=k==null?void 0:k.filter(H=>(H==null?void 0:H.comp)==="Table"))==null?void 0:N[0],v=((_=(Y=(w=(O=f==null?void 0:f.compData)==null?void 0:O.find(H=>(H==null?void 0:H.key)==="header"))==null?void 0:w.contents)==null?void 0:Y[0])==null?void 0:_.prop)??((T=($=(S=(Z=(A=f==null?void 0:f.compData)==null?void 0:A.find(H=>(H==null?void 0:H.key)==="header"))==null?void 0:Z.contents)==null?void 0:S[0])==null?void 0:$[0])==null?void 0:T.prop),y=(g=(x=f==null?void 0:f.compData)==null?void 0:x.find(H=>(H==null?void 0:H.key)==="tableContents"))==null?void 0:g.contents;y=y==null?void 0:y.map(H=>({label:H==null?void 0:H[v],value:H==null?void 0:H[v]}));let c=Pn.value,E={value:l,condition:"child",options:y,relatedContent:u,isShow:!0};c.push(E),Zr.setSelectTitle(c),Zr.setChooseTitle([E]),_r.setContentLoading(!1),br.setExtraContents([]),Zr.setSelectIndex(""),Zr.setSelectMenu(""),br.setItemData(Yl.value),br.setOriginalData(Yl.value)},l0=l=>{ac.value=l},kt=a.reactive({index:0,comp:null}),r0=a.computed(()=>{var l;return(l=Yl.value)==null?void 0:l.map((n,r)=>({id:n.id,name:n.name,status:n0(n,r)}))}),oc=(l,n)=>{var v,y,c,E,N;const r=n?l:l-2,t=(v=Yl.value)==null?void 0:v[r],s=(c=(y=t==null?void 0:t.compData)==null?void 0:y.find(O=>(O==null?void 0:O.key)==="header"))==null?void 0:c.contents,u=s==null?void 0:s.findIndex(O=>(O==null?void 0:O.isMainKey)&&(O==null?void 0:O.label)!=="操作"),k=u===-1?0:u,f=(N=(E=t==null?void 0:t.compData)==null?void 0:E.find(O=>(O==null?void 0:O.key)==="tableContents"))==null?void 0:N.contents;return{valid:f==null?void 0:f.every(O=>O==null?void 0:O[k+1]),length:(f==null?void 0:f.length)||0}},n0=(l,n)=>{var t;let r="process";if(((t=l==null?void 0:l.comp)==null?void 0:t.toUpperCase())==="TABLE"){const{valid:s,length:u}=oc(n,!0);kt.index===n?r="process":u===0?r="wait":r=s?"success":"error"}return r},ic=l=>{var r,t,s,u,k;const n=l+1;if(n>1&&((s=(t=(r=Yl.value)==null?void 0:r[l])==null?void 0:t.comp)==null?void 0:s.toUpperCase())==="TABLE"){const{valid:f}=oc(n);f?(kt.index=n,kt.comp=(u=Yl.value)==null?void 0:u[l]):Wa.ElMessage({showClose:!0,type:"warning",message:"当前流程有输入未完成"})}else kt.index=n,kt.comp=(k=Yl.value)==null?void 0:k[l]},sc=a.computed(()=>{var l,n;return(n=(l=ec.value)==null?void 0:l[0])==null?void 0:n.isStepLayout});a.watch(()=>sc.value,l=>{l&&ic(0)},{immediate:!0});const t0={class:"table-content"},o0={class:"menu-config-wrap"},i0=["onClick"],s0={key:0,class:"viewport-wrap"},c0=["onClick"],u0={title:"选择显示列信息"},d0={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},p0=["title"],f0={class:"col-operate-wrap"},h0={key:0,class:"col-operate-radio-wrapper"},v0={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},m0={key:0,style:{display:"flex","justify-content":"center","align-items":"center"}},y0={class:"pop-view"},g0={class:"pop-wrapper"},b0={class:"file-list-pop"},k0=["title","onClick"],x0=["onClick"],w0=["onClick"],_0={key:1,style:{display:"flex","justify-content":"flex-end",gap:"8px","margin-top":"8px"}},C0={class:"form-content"},E0={key:0,class:"dialog-footer"},S0={class:"dialog-footer"},D0={class:"ocr-dialog-content"},B0={class:"ocr-steps"},N0={key:0,class:"ocr-action-buttons"},T0={key:1,class:"ocr-preview-area"},A0={class:"ocr-file-grid"},M0={class:"file-thumbnail"},z0=["src"],O0={key:1,class:"thumbnail-placeholder"},I0={class:"progress-svg",viewBox:"0 0 36 36"},L0=["stroke","stroke-width","stroke-dasharray"],V0={key:0,class:"progress-icon"},$0={key:1,class:"progress-icon"},R0=["onClick"],P0={class:"file-name"},F0={key:0,class:"ocr-recognize-button"},j0={key:2,class:"ocr-progress-section"},H0={key:3,class:"ocr-confirm-area"},U0={class:"ocr-preview-tip"},q0={class:"ocr-preview-table"},W0={style:{display:"flex","align-items":"center",gap:"8px"}},K0={key:0},Y0={key:4,class:"ocr-success-area"},G0={key:0,class:"ocr-dialog-footer"},X0={class:"form-content"},J0={style:{display:"flex","justify-content":"space-between",gap:"8px"}},Z0={style:{display:"flex"}},cs="ss-ocr-upload-history",Q0="ss-ocr-cert-history-v1",e3={__name:"index",props:{pageLayout:{type:String,default:"vertical"},related:{type:Array,default:[]},level:{type:Number,default:1},compName:{type:String,default:"",required:!1},compNames:{type:Array,default:()=>[],required:!1},compItem:{type:Object,default:()=>{}},operatingForm:{type:Object,default:()=>{}},cacheNewData:{type:Object,default:()=>{}},config:Object,parentTableId:{type:Number,default:0},itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,isDevMode:Boolean,changedContent:{type:Object,default:()=>{}},showHeader:{type:Boolean,default:!0},allowSelect:{type:Boolean,default:!0},allowOperate:{type:Boolean,default:!0},allMapContents:{type:Object,default:()=>{}}},emits:["getSliceContLength","clickMainKey","change","contentChange","onButtonClick","contentClick","pageChange","rowClick","routeUrl"],setup(l,{emit:n}){var Ti;const r=a.ref([]),t=yi(L.pinia),s=a.ref(null),u=a.ref(new Set),k=a.ref(new Map),f=a.ref(new Map),v=new Map,y=a.ref(new Map),c=l,E=a.ref((c==null?void 0:c.allowSelect)??!0),N=a.ref(((Ti=c==null?void 0:c.config)==null?void 0:Ti.showIndex)??!0),O=a.ref(),w=a.ref(!0),Y=a.ref(!1),_=a.ref([]),A={sortable:"switch",filterable:"switch",showSummary:"switch",operable:"switch",fixed:"radio"},Z=a.ref([{label:"排序",value:"sortable",checked:!1},{label:"合计",value:"showSummary",checked:!1},{type:"radio",label:"固定",value:"fixed",checked:"",options:[{label:"无",value:!1},{label:"左",value:"left"},{label:"右",value:"right"}]}]),S=sa.useOriginalState(L.pinia);let $="$R";const{originalPath:T}=L.storeToRefs(S),x=T.value,g=a.computed(()=>{var h;const p=(h=sa.getAllLeafNodes(we.value)||[])==null?void 0:h.filter(M=>(M==null?void 0:M.type)!=="operate"&&(M==null?void 0:M.label)!=="操作"&&(M==null?void 0:M.prop)!=="operate");return p.length>0?p.every(M=>!!(M!=null&&M.sortable)):!1});a.computed(()=>{var h;return(h=we.value)==null?void 0:h.every(M=>M==null?void 0:M.filterable)}),a.computed(()=>{var h;return(h=we.value)==null?void 0:h.every(M=>M==null?void 0:M.operable)});const H=a.ref(!0),W=a.ref([]),ae=a.reactive({column:{},status:!1,text:"合计"}),ge=a.reactive({currentPage:1,pageSize:10,total:0,pageSizes:[5,10,20,50,100]}),Oe=n,we=a.ref([]),te=a.ref([]),me=a.ref([]),J=a.reactive({prop:"",order:null}),ue=a.ref([]),Ye=a.ref(!1),Sa=a.ref(!1),oe=a.ref(null),{isUseBackdrop:D,initTrackFileType:ne,getFileExtension:ve,setData:se,getFileInfo:xe,getFilesInfo:ta}=mo.useThreeSystem(),wa=a.ref([]),Ia=a.ref(!1),le=a.ref(),ra=L.useMenuState(),{importLoading:Ve,activeMenuPath:_a,contentLoading:Fe,linkMenuInfo:_e}=L.storeToRefs(ra),ze=sa.useTableComp(L.pinia),Ge=L.useModelComp(L.pinia),{extraContents:Ba,cacheUpdatingData:Ja,tableViewContents:R,tableLoading:j,pageMapState:G,lockingPage:V}=L.storeToRefs(Ge),{compType:K,hasEditable:Ne}=Rs.useRole(),Q=a.ref([]),ke=a.ref([]),pe=a.ref(new Map);a.ref(!1);const je=a.ref("");a.ref();const Pe=a.ref(!0),ca=a.ref(0),ka=a.ref(!0),Ie=a.ref(""),fa=a.ref(!1),Re=a.ref(null);a.ref([]);const Ca=a.ref({label:"查看三维模型"}),Ue=a.ref(!1),ba=a.ref(),ce=a.ref([]),xa=a.ref([]),ye=a.ref(!1),Da=a.ref([]),Ze=a.ref([]),Je=a.ref([]),Ee=a.ref([]),be=a.ref([]),Se=()=>{try{const p=localStorage.getItem(cs),h=p?JSON.parse(p):[];be.value=Array.isArray(h)?h:[]}catch{be.value=[]}},ha=()=>{try{localStorage.setItem(cs,JSON.stringify(be.value||[]))}catch{}},oa=p=>{var re,ee,ie;if(!p)return;const h=p.url||((re=p==null?void 0:p.uploadResult)==null?void 0:re.url)||"",M=p.name||((ee=p==null?void 0:p.uploadResult)==null?void 0:ee.name)||((ie=p==null?void 0:p.uploadResult)==null?void 0:ie.fileName)||"";if(!h&&!M)return;const I={name:M,url:h,ts:Date.now()},P=String(I.name||"").trim().toLowerCase(),b=(be.value||[]).findIndex(he=>String((he==null?void 0:he.name)||"").trim().toLowerCase()===P);b>-1&&be.value.splice(b,1),be.value.unshift(I),be.value.length>20&&(be.value=be.value.slice(0,20)),ha()};Se();const Qa=(p,h)=>`${Q0}:${String(p??"")}:${String(h??"")}`,Dl=(p,h)=>{try{const M=sessionStorage.getItem(Qa(p,h)),I=M?JSON.parse(M):[];return Array.isArray(I)?I:[]}catch{return[]}},Ol=(p,h,M)=>{try{sessionStorage.setItem(Qa(p,h),JSON.stringify(Array.isArray(M)?M:[]))}catch{}},Za=(p,h,M)=>{if(!h)return;const I=Dl(p,h),P=[M,...I||[]].filter(Boolean).slice(0,1);return Ol(p,h,P),P},qe=(p,h,M)=>{if(!h||!M)return;const I=Qa(p,h),P=Qa(p,M);try{const b=sessionStorage.getItem(I);if(!b)return;const re=(()=>{try{const he=JSON.parse(b);return Array.isArray(he)?he:[]}catch{return[]}})(),ee=Dl(p,M),ie=[...re,...ee||[]].filter(Boolean).sort((he,De)=>Number((De==null?void 0:De.ts)||0)-Number((he==null?void 0:he.ts)||0)).slice(0,1);sessionStorage.setItem(P,JSON.stringify(ie)),sessionStorage.removeItem(I)}catch{}},$e=a.ref(!1),ua=a.ref(!1),Qe=a.ref([]),Ta=a.ref(null);a.ref(!1),a.ref([]),a.ref(""),a.ref("");const Fa=a.ref(!1),Ea=a.ref([]),Ce=a.ref(1),q=a.ref(new Map),Le=a.ref(new Map),Xe=a.ref(0),Oa=a.ref(!1),$a=a.ref([]),_l=a.ref([]),cl=p=>{var h;try{const M=(h=sa.getAllLeafNodes(we.value)||[])==null?void 0:h.filter(I=>(I==null?void 0:I.type)!=="operate"&&(I==null?void 0:I.label)!=="操作"&&(I==null?void 0:I.prop)!=="operate");return(M==null?void 0:M.find(I=>(I==null?void 0:I.prop)===p||(I==null?void 0:I.label)===p))||null}catch{return null}},nl=p=>{const h=cl(p),M=(h==null?void 0:h.formType)||(h==null?void 0:h.columnType)||"Input";return rl.getComponent(M)||rl.getComponent("Input")},ml=a.ref([]),sl=a.ref(null),tl=a.ref([]),Pa=a.ref(null),hl=a.ref(""),xl=a.ref(!1),jl=a.ref([]),Xl=a.ref(""),lr=a.ref(!1),Il=a.ref([]),kr=a.ref([]),pr=a.ref([]),Ir=a.ref(null),Lr=a.ref([]),cn=a.ref("");a.computed(()=>{var p;try{const h=(p=sa.getAllLeafNodes(we.value)||[])==null?void 0:p.filter(I=>(I==null?void 0:I.type)!=="operate"&&(I==null?void 0:I.label)!=="操作"&&(I==null?void 0:I.prop)!=="operate"),M=new Map;return h==null||h.forEach(I=>{I!=null&&I.label&&(I!=null&&I.prop)&&M.set(I.label,I.prop)}),M.get("编号")||""}catch{return""}});const gn=a.computed(()=>{var p;try{const h=(p=sa.getAllLeafNodes(we.value)||[])==null?void 0:p.filter(I=>(I==null?void 0:I.type)!=="operate"&&(I==null?void 0:I.label)!=="操作"&&(I==null?void 0:I.prop)!=="operate"),M=new Map;return h==null||h.forEach(I=>{I!=null&&I.label&&(I!=null&&I.prop)&&M.set(I.label,I.prop)}),M.get("名称")||""}catch{return""}}),bn=a.computed(()=>{var p;try{const h=(p=sa.getAllLeafNodes(we.value)||[])==null?void 0:p.filter(I=>(I==null?void 0:I.type)!=="operate"&&(I==null?void 0:I.label)!=="操作"&&(I==null?void 0:I.prop)!=="operate"),M=new Map;return h==null||h.forEach(I=>{I!=null&&I.label&&(I!=null&&I.prop)&&M.set(I.label,I.prop)}),M.get("制造厂")||""}catch{return""}}),un=()=>{lr.value=!1,Il.value=[],kr.value=[],pr.value=[],Ir.value=null,Lr.value=[],cn.value=""},dn=p=>p==null?!1:typeof p=="string"?p.trim()!=="":Array.isArray(p)?p.length>0:!0,pn=(p,h)=>{const M=(p==null?void 0:p.ocrRow)||{};for(const P of Object.keys(M))P==="id"||P==="_isOCRRow"||P==="_ocrTableId"||dn(M[P])&&(h[P]=M[P]);const I=ke.value.find(P=>P.id===h.id);if(I)for(const P of Object.keys(M))P==="id"||P==="_isOCRRow"||P==="_ocrTableId"||dn(M[P])&&(I[P]=M[P]);pe.value&&pe.value.set(h.id,h),Za(c==null?void 0:c.index,h.id,p==null?void 0:p.versionItem),kr.value=[...kr.value||[],JSON.parse(JSON.stringify(h))]},nr=async(p,h=null)=>{var M,I,P,b,re,ee,ie;try{const he=(M=sa.getAllLeafNodes(we.value)||[])==null?void 0:M.filter(ya=>(ya==null?void 0:ya.type)!=="operate"&&(ya==null?void 0:ya.label)!=="操作"&&(ya==null?void 0:ya.prop)!=="operate"),De=new Map;he==null||he.forEach(ya=>{ya!=null&&ya.label&&(ya!=null&&ya.prop)&&De.set(ya.label,ya.prop)});const He=De.get("系统编号")||De.get("编号");if(!He){console.warn("未找到系统编号字段,跳过向检校记录表插入数据");return}const Be=h||Ir.value;if((Array.isArray(Be==null?void 0:Be.result)?Be.result:[]).length===0){console.warn("OCR识别结果为空,跳过向检校记录表插入数据");return}for(let ya=0;ya<p.length;ya++){const Ra=p[ya],ja=Ra[He];if(!ja){console.warn(`第 ${ya+1} 条匹配行缺少系统编号,跳过`);continue}const da=`设备管理/试验设备/${ja}`,Ya=await L.getPageDataApi({platId:parseInt((I=Bl.value)==null?void 0:I.plat_id),pageName:da});if(!((P=Ya==null?void 0:Ya.data)!=null&&P.result)||!Array.isArray(Ya.data.result)){console.warn(`未找到详情页数据: ${da}`);continue}const ma=Ya.data.result.find(la=>(la==null?void 0:la.property_name)==="校检记录");if(!ma){console.warn(`详情页 ${da} 中未找到校检记录表`);continue}const Ua=(b=ma.contents)==null?void 0:b.find(la=>(la==null?void 0:la.key)&&la.key.startsWith("content_"));if(!Ua||!Ua.key){console.warn("校检记录表中未找到 content item");continue}const La=Ua.key,F=Array.isArray(Ua.value)?Ua.value:[];if(F.length>=5){const ga=[...F].sort((pa,za)=>{const ol=Number((pa==null?void 0:pa.create_time)||0),Ga=Number((za==null?void 0:za.create_time)||0);return ol-Ga})[0];ga!=null&&ga.id&&await L.pageBatchDeleteApi({platId:parseInt((re=Bl.value)==null?void 0:re.plat_id),changeContents:[{tableName:La,tableContents:[{id:ga.id}]}]})}const na=(ee=he==null?void 0:he.find(la=>(la==null?void 0:la.label)==="证书附件"))==null?void 0:ee.prop,ea=String(Date.now()),Ae={id:ea},B=F[0]||{},Me=new Date().toISOString().split("T")[0];if(Object.keys(B||{}).forEach(la=>{if(la!=="id"){if(la==="证书附件"){Ae[la]="";return}if(la==="校检日期"||la==="检校日期"){Ae[la]=Ra[la]||Ra.校检日期||Ra.检校日期||Me;return}if(["校检周期","检校周期","校检结果","检校结果","计量状态","依据文件","证书编号"].includes(la)){Ae[la]=Ra[la]??"";return}Ae[la]=Ra[la]??""}}),na&&Ra[na]){const la=Ra[na];if(Array.isArray(la)&&la.length>0)Ae.证书附件=JSON.stringify(la.map(ga=>({url:(ga==null?void 0:ga.url)||"",name:(ga==null?void 0:ga.name)||(ga==null?void 0:ga.fileName)||"",fileName:(ga==null?void 0:ga.fileName)||(ga==null?void 0:ga.name)||""})).filter(ga=>ga.url||ga.name));else if(typeof la=="string")try{const ga=JSON.parse(la);Ae.证书附件=la}catch{Ae.证书附件=JSON.stringify([{url:la,name:la,fileName:la}])}}console.log(La,"tableName","inspectionRecordRow",Ae),await L.pageBatchAddApi({platId:parseInt((ie=Bl.value)==null?void 0:ie.plat_id),changeContents:[{tableName:La,tableContents:[Ae]}]});const We=ma==null?void 0:ma.object_id;if(We&&ea){const la=na&&Ra[na]?Ra[na]:null;let ga=[],pa="",za=!1;if(Array.isArray(la)&&la.length>0){ga=la.map(vl=>({name:(vl==null?void 0:vl.name)||(vl==null?void 0:vl.fileName)||"",url:(vl==null?void 0:vl.url)||""})).filter(vl=>vl.url||vl.name);const Ga=la[0];pa=(Ga==null?void 0:Ga.url)||"";const il=(Ga==null?void 0:Ga.name)||(Ga==null?void 0:Ga.fileName)||"";za=String(il).toLowerCase().endsWith(".pdf")||String(pa).toLowerCase().endsWith(".pdf")}else if(typeof la=="string")try{const Ga=JSON.parse(la);Array.isArray(Ga)?(ga=Ga.map(il=>({name:(il==null?void 0:il.name)||(il==null?void 0:il.fileName)||"",url:(il==null?void 0:il.url)||""})).filter(il=>il.url||il.name),ga.length>0&&(pa=ga[0].url||"",za=String(ga[0].name).toLowerCase().endsWith(".pdf")||String(pa).toLowerCase().endsWith(".pdf"))):(pa=la,za=String(la).toLowerCase().endsWith(".pdf"))}catch{pa=la,za=String(la).toLowerCase().endsWith(".pdf")}const ol={ts:Date.now(),versionId:String(Date.now())+"_"+String(ya),label:new Date().toLocaleString(),certType:Ra.证书类型||"",certNo:Ra.证书编号||"",fileType:za?"pdf":"image",sourceUrl:za?pa:"",images:ga};Za(We,ea,ol)}}}catch(he){console.error("向校检记录表插入OCR识别结果失败:",he),Wa.ElMessage.error("向校检记录表插入数据失败,请查看控制台")}},Dr=p=>{const h=Array.isArray(p)?p:Il.value||[];if(h.length===0){un();return}if(h.find(b=>(b==null?void 0:b.__decision)==="replace"&&!(b!=null&&b.selectedTargetId))){Wa.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}h.forEach(b=>{var ee;const re=b==null?void 0:b.__decision;if(!(!re||re==="skip")){if(re==="add"){Za(c==null?void 0:c.index,(ee=b==null?void 0:b.ocrRow)==null?void 0:ee.id,b==null?void 0:b.versionItem),pr.value=[...pr.value||[],b.ocrRow];return}if(re==="replace"){const ie=b==null?void 0:b.selectedTargetId,he=(Q.value||[]).find(De=>String(De==null?void 0:De.id)===String(ie));if(!he)return;pn(b,he)}}}),(kr.value||[]).length>0&&(Q.value=[...Q.value||[]]),(pr.value||[]).length>0&&(Q.value=[...Q.value||[],...pr.value||[]],ke.value=[...ke.value||[],...pr.value||[]],(pr.value||[]).forEach(b=>{var re,ee;return(ee=(re=pe.value)==null?void 0:re.set)==null?void 0:ee.call(re,b.id,b)})),rn.value=Q.value;const I=kr.value||[],P=pr.value||[];if(I.length>0&&(Oe("change",{buttonName:"编辑",singleContent:I,content:Q.value,relatedContents:c==null?void 0:c.related,index:c==null?void 0:c.index,parentTableId:c==null?void 0:c.parentTableId,columns:we.value,name:c==null?void 0:c.compName}),nr(I)),P.length>0){const b=Ir.value;Oe("change",{buttonName:"OCR批量新增",content:Q.value,index:c==null?void 0:c.index,parentTableId:c==null?void 0:c.parentTableId,column:we.value,ocrRows:P,relatedContents:c==null?void 0:c.related,uploadedFiles:(Array.isArray(b==null?void 0:b.result)?b.result:[]).map(re=>(Array.isArray(re==null?void 0:re.图片信息)?re.图片信息:[]).map(ee=>({url:(ee==null?void 0:ee.url)||"",name:(ee==null?void 0:ee.name)||"",fileName:(ee==null?void 0:ee.name)||""})).filter(ee=>ee.url)),ocrResult:b,matchedCount:(I||[]).length,newCount:(P||[]).length})}Wa.ElMessage.success("已提交候选处理结果"),un()},Cr=Xs(),kn=a.computed(()=>Cr.getConfig()),xr=a.ref(),tr=a.ref(),tt=Ws(L.pinia),rn=a.ref(),nn=a.ref(0),Nn=L.useUnit(L.pinia),{selectIndex:ot,selectMenu:Tn,selectTitle:An}=L.storeToRefs(Nn),{selectString:Qr}=L.storeToRefs(tt),Hn=L.useLoginState(L.pinia),{loginUserInfo:Bl}=L.storeToRefs(Hn),yr=a.ref(720),Gl=a.ref(!1),Al=a.ref(!1),Ml=a.ref([]),Vl=a.ref(),fr=a.ref(!0),Zl=a.ref(!0),Vr=a.ref([]),zr=a.inject("contentRef");a.provide("contentRef",zr),a.provide("getSuggestListForCell",au),a.provide("getSuggestLoadingForCell",(p,h)=>{const M=`${p==null?void 0:p.id}:${(h==null?void 0:h.prop)||(h==null?void 0:h.property)}`;return y.value.get(M)||!1}),a.watch(()=>{var p;return(p=Q.value)==null?void 0:p.length},p=>{ge.total=p}),a.watch(()=>R.value,async()=>{var h,M,I,P,b,re,ee,ie,he,De,He,Be,va,ya,Ra,ja,da;if(((h=R.value)==null?void 0:h.length)===0||!((M=c==null?void 0:c.itemData)!=null&&M.find(Ya=>(Ya==null?void 0:Ya.key)==="columnPath"))||!((I=c==null?void 0:c.itemData)!=null&&I.find(Ya=>(Ya==null?void 0:Ya.key)==="pageColumn")))return;let p=(he=(ie=(ee=(re=(b=(P=c==null?void 0:c.itemData)==null?void 0:P.find(Ya=>(Ya==null?void 0:Ya.key)==="pageColumn"))==null?void 0:b.contents)==null?void 0:re.split("["))==null?void 0:ee[1])==null?void 0:ie.split("]"))==null?void 0:he[0];((va=(Be=(He=(De=c==null?void 0:c.itemData)==null?void 0:De.find(Ya=>(Ya==null?void 0:Ya.key)==="pageColumn"))==null?void 0:He.contents)==null?void 0:Be.split("["))==null?void 0:va[0])+((Ra=(ya=R.value)==null?void 0:ya.find(Ya=>(Ya==null?void 0:Ya.key)===p))==null?void 0:Ra.value),(da=(ja=c==null?void 0:c.itemData)==null?void 0:ja.find(Ya=>(Ya==null?void 0:Ya.key)==="pageGroup"))==null||da.contents,Ni(compData,c.allMapContents)},{deep:!0});const Hr=p=>{var M,I,P,b,re;const h=(I=(M=we.value)==null?void 0:M.filter(ee=>ee==null?void 0:ee.mainKey))==null?void 0:I.map(ee=>ee==null?void 0:ee.prop);if(h.length===0){const ee=(P=we.value)==null?void 0:P.map(ie=>ie==null?void 0:ie.prop);return(b=ee==null?void 0:ee.map(ie=>p==null?void 0:p[ie]))==null?void 0:b.join("|")}return(re=h==null?void 0:h.map(ee=>p==null?void 0:p[ee]))==null?void 0:re.join("|")},xn=p=>{var ee,ie,he,De,He;const h=(ie=(ee=we.value)==null?void 0:ee.filter(Be=>Be==null?void 0:Be.required))==null?void 0:ie.map(Be=>Be==null?void 0:Be.prop),M=[];if(p==null||p.forEach(Be=>{h==null||h.forEach(va=>{const ya=Be[va];(ya==null||ya==="")&&(M.includes(va)||M.push(va))})}),M.length>0)return Wa.ElMessage.warning(`请填写必填项:${M.join("、")}`);const I=new Map,P=new Map;(he=Q.value)==null||he.forEach(Be=>{const va=Hr(Be);I.set(va,Be)}),p==null||p.forEach(Be=>{const va=Hr(Be);P.set(va,Be)});const b=p==null?void 0:p.filter(Be=>I.has(Hr(Be))),re=(De=Q.value)==null?void 0:De.filter(Be=>P.has(Hr(Be)));return(b==null?void 0:b.length)>0&&($l.columns=(He=we.value)==null?void 0:He.filter(Be=>(Be==null?void 0:Be.label)!=="操作"),$l.existRows=re,$l.tableData=b,$l.show=!0),p==null?void 0:p.filter(Be=>{const va=Hr(Be);return!I.has(va)})},wn=a.ref(""),Mn=a.ref(null),it=async()=>{var p,h,M,I,P,b;try{const re=await L.quoteApi({related:[{menus:_a.value,groups:c==null?void 0:c.compName}],platId:parseInt((p=Bl.value)==null?void 0:p.plat_id)});if(((h=re==null?void 0:re.data)==null?void 0:h.code)===200){Mn.value=(M=re==null?void 0:re.data)==null?void 0:M.result;const ee=(I=we.value)==null?void 0:I.map(De=>(De==null?void 0:De.prop)||(De==null?void 0:De.label)),ie=fn(ee,(P=re==null?void 0:re.data)==null?void 0:P.result),he=ie==null?void 0:ie.flatMap(De=>De==null?void 0:De.quote);(he==null?void 0:he.length)>0&&(wn.value=(b=he==null?void 0:he.map(De=>De==null?void 0:De.menus))==null?void 0:b.join("、"))}}catch(re){throw new Error(re)}};function fn(p,h){var M;return(M=h.filter(I=>I.struct&&Array.isArray(I.struct)?I.struct.some(P=>P.words&&Array.isArray(P.words)?P.words.some(b=>p.includes(b)):!1):!1))==null?void 0:M.map(I=>{const P={...I};return P.struct&&Array.isArray(P.struct)&&(P.struct=P.struct.filter(b=>b.words&&Array.isArray(b.words)?b.words.some(re=>p.includes(re)):!1)),P})}const _n=async(p,h)=>{var M,I,P,b,re,ee;try{Mn.value||await it();const ie=h==null?void 0:h.map(ya=>{const Ra=Object.keys(ya),ja={};return Ra.forEach((da,Ya)=>{ja[p[Ya]]=ya[da]}),ja}),he=xn(ie);if(!he||(he==null?void 0:he.length)===0)return;let De=await L.quoteApi({platId:parseInt((M=Bl==null?void 0:Bl.value)==null?void 0:M.plat_id),type:"fatherSyncs",related:[{menus:_a.value,groups:""},{menus:_a.value,groups:c==null?void 0:c.compName}]});De=(I=De==null?void 0:De.data)==null?void 0:I.result;let He=De==null?void 0:De.map(ya=>({tableName:"content_"+(ya==null?void 0:ya.id),tableContents:he==null?void 0:he.map((Ra,ja)=>({id:ja,...Ra}))})),Be=[{tableName:(P=c==null?void 0:c.related)==null?void 0:P.find(ya=>ya==null?void 0:ya.includes("content")),tableContents:he==null?void 0:he.map((ya,Ra)=>({id:Ra,...ya}))}];Be=[...Be,...He];const va=await L.pageBatchAddApi({platId:parseInt((b=Bl.value)==null?void 0:b.plat_id),changeContents:Be});if(((re=va==null?void 0:va.data)==null?void 0:re.code)===200){const ya={buttonName:"新增",columns:we.value,fixContent:he==null?void 0:he.map((Ra,ja)=>({id:ja,...Ra})),relatedContents:c==null?void 0:c.related};await pi(ya),((ee=$l==null?void 0:$l.existRows)==null?void 0:ee.length)>0?Wa.ElMessage.success("部分数据导入成功"):Wa.ElMessage.success("数据导入成功")}else Wa.ElMessage.error("数据导入响应失败")}catch(ie){throw Wa.ElMessage.error("数据导入处理失败"),new Error(ie)}},zn=async p=>{var b,re,ee,ie,he,De,He;let h=me.value;h!=null&&h.find(Be=>(p==null?void 0:p.key)===(Be==null?void 0:Be.key))&&(h=h==null?void 0:h.filter(Be=>(p==null?void 0:p.key)!==(Be==null?void 0:Be.key))),h.push({key:p==null?void 0:p.key,value:[(re=p==null?void 0:p.value)==null?void 0:re[((b=p==null?void 0:p.value)==null?void 0:b.length)-1]]});let M=Ee.value;M=M==null?void 0:M.map(Be=>{var va,ya;return(Be==null?void 0:Be.type)==="Select"&&(p==null?void 0:p.key)===(Be==null?void 0:Be.prop)&&Array.isArray(Be.value)&&(va=Be.value)!=null&&va.every(Ra=>typeof Ra=="string")&&(Be.selectValue=(ya=h==null?void 0:h.find(Ra=>(Ra==null?void 0:Ra.key)===(Be==null?void 0:Be.prop)))==null?void 0:ya.value),Be});let I=(ie=(ee=M==null?void 0:M.find(Be=>(Be==null?void 0:Be.prop)===(p==null?void 0:p.key)))==null?void 0:ee.optionUrl)==null?void 0:ie.menuId,P=M==null?void 0:M.find(Be=>(Be==null?void 0:Be.prop)===(p==null?void 0:p.key));if(I){let Be=await si(P==null?void 0:P.optionUrl,I),va,ya=W.value,Ra=(He=(De=(he=Ee.value)==null?void 0:he.find(ja=>{var da;return(da=P==null?void 0:P.optionUrl)==null?void 0:da.menuId}))==null?void 0:De.selectValue)==null?void 0:He[0];if(Be==null||Be.forEach(ja=>{var da,Ya,ma,Ua,La,F,na,ea,Ae,B;if(I){let Me=(Ya=(da=Ee.value)==null?void 0:da.find(la=>{var ga,pa;return((ga=P==null?void 0:P.optionUrl)==null?void 0:ga.menuId)===((pa=la==null?void 0:la.optionUrl)==null?void 0:pa.menuId)}))==null?void 0:Ya.prop,We=(Ua=(ma=M==null?void 0:M.find(la=>(la==null?void 0:la.prop)===Me))==null?void 0:ma.selectValue)==null?void 0:Ua[0];Me!=null&&Me.includes("·")&&(Me=(La=Me==null?void 0:Me.split("·"))==null?void 0:La[0],We=(Ae=(ea=(na=p==null?void 0:p.value)==null?void 0:na[((F=p==null?void 0:p.value)==null?void 0:F.length)-1])==null?void 0:ea.split(" "))==null?void 0:Ae[0]),ya!=null&&ya.find(la=>(la==null?void 0:la.value)===Ra)?va=(B=ya==null?void 0:ya.find(la=>(la==null?void 0:la.value)===Ra))==null?void 0:B.objectValue:ja[Me]===We&&(va=ja)}}),va){let ja=M;ja=ja==null?void 0:ja.map(da=>{var Ya,ma,Ua,La,F,na;return I&&(va!=null&&va[da==null?void 0:da.prop])&&Ie.value==="新增"&&(da==null?void 0:da.prop)!==(P==null?void 0:P.prop)?da.value=(va==null?void 0:va[da==null?void 0:da.prop])||(va==null?void 0:va[(La=(Ua=(ma=(Ya=da==null?void 0:da.optionUrl)==null?void 0:Ya.groupSelect)==null?void 0:ma[1])==null?void 0:Ua.replaceAll("[",""))==null?void 0:La.replaceAll("]","")]):da.value=(na=(F=Ee.value)==null?void 0:F.find(ea=>(ea==null?void 0:ea.prop)===(da==null?void 0:da.prop)))==null?void 0:na.value,da}),Ee.value=ja}}me.value=h},Ur=async p=>{var h,M,I,P,b;if((h=p==null?void 0:p.toString())!=null&&h.includes(".txt")||(M=p==null?void 0:p.toString())!=null&&M.includes(".cpt")||(I=p==null?void 0:p.toString())!=null&&I.includes(".cyd")){const re=await Wa.axios.get(p,{responseType:"blob",headers:{"Content-Type":"application/json"}}),ee=new Blob([re.data],{type:"application/octet-stream;charset=UTF-8"});let ie=URL.createObjectURL(ee);le.value=[{name:(b=p==null?void 0:p.split("/"))==null?void 0:b[((P=p==null?void 0:p.split("/"))==null?void 0:P.length)-1],blobUrl:ie}],Ia.value=!0}};a.onBeforeUnmount(()=>{Zl.value=!1;let p=nn.value;nn.value=p+1});const en=a.reactive({prop:"",order:null}),Un=a.computed(()=>{const p=(Q.value??[]).slice(),h=en.prop||J.prop,M=en.order||J.order;if(!h||!M)return p;const I=M==="ascending",P=re=>{if(h)return re&&Object.prototype.hasOwnProperty.call(re,h)?re[h]:h.includes(".")?h.split(".").reduce((ee,ie)=>ee==null?ee:ee[ie],re):re==null?void 0:re[h]},b=re=>{if(re==null)return{ok:!1,value:NaN};if(typeof re=="number")return{ok:Number.isFinite(re),value:re};const ee=String(re).trim();if(ee==="")return{ok:!1,value:NaN};const ie=ee.replace(/[,\s]/g,"");if(!/^[+-]?(\d+\.?\d*|\.\d+)$/.test(ie))return{ok:!1,value:NaN};const he=Number(ie);return{ok:Number.isFinite(he),value:he}};return p.sort((re,ee)=>{const ie=P(re),he=P(ee);if(ie==null&&he==null)return 0;if(ie==null)return I?-1:1;if(he==null)return I?1:-1;const De=b(ie),He=b(he);if(De.ok&&He.ok)return I?De.value-He.value:He.value-De.value;const Be=La=>{if(La==null)return{ok:!1,value:NaN};const F=String(La).trim();if(F==="")return{ok:!1,value:NaN};const na=F.match(/^(-)?(\d+):(\d{1,2}):(\d{1,2})$/);if(!na)return{ok:!1,value:NaN};const ea=na[1]?-1:1,Ae=Number(na[2]),B=Number(na[3]),Me=Number(na[4]);return[Ae,B,Me].some(We=>Number.isNaN(We))?{ok:!1,value:NaN}:B>=60||Me>=60?{ok:!1,value:NaN}:{ok:!0,value:ea*(Ae*3600+B*60+Me)}},va=Be(ie),ya=Be(he);if(va.ok&&ya.ok)return I?va.value-ya.value:ya.value-va.value;const Ra=new Date(ie).getTime(),ja=new Date(he).getTime(),da=!Number.isNaN(Ra),Ya=!Number.isNaN(ja);if(da&&Ya)return I?Ra-ja:ja-Ra;const ma=String(ie),Ua=String(he);return I?ma.localeCompare(Ua):Ua.localeCompare(ma)})}),Br=a.computed(()=>{var M;const p=(ge.currentPage-1)*ge.pageSize,h=p+ge.pageSize;return Oe("getSliceContLength",ge),(M=Un.value)==null?void 0:M.slice(p,h)}),qn=p=>{ge.currentPage=p,Oe("getSliceContLength",ge)},tn=p=>{var I;ge.pageSize=p;const h=((I=Q.value)==null?void 0:I.length)??0,M=p>0?Math.ceil(h/p):1;ge.currentPage>M&&(ge.currentPage=M||1,Wa.ElMessage.warning("当前页超出范围,已自动跳转到最后一页")),Oe("getSliceContLength",ge)},Bt=({prop:p,order:h})=>{en.prop=p,en.order=h,ge.currentPage=1};function Do(p){const h=[];function M(I,P=""){I.forEach(b=>{b.children&&b.children.length>0?M(b.children,b.prop):h.push(b.prop)})}return M(p),h}const Bo=(p,h)=>{var ee,ie,he,De;let M=(ie=(ee=we.value)==null?void 0:ee.map(He=>He==null?void 0:He.prop))==null?void 0:ie.filter(He=>He!=="operate");((he=we.value)==null?void 0:he.some(He=>{var Be;return((Be=He==null?void 0:He.children)==null?void 0:Be.length)>0}))&&(M=Do((De=we.value)==null?void 0:De.filter(He=>(He==null?void 0:He.prop)!=="operate")));let P;if(P=(p==null?void 0:p.length)===(M==null?void 0:M.length)?p:p.slice(0,M==null?void 0:M.length),!(P==null?void 0:P.every(He=>M==null?void 0:M.find(Be=>He===Be))))return Wa.ElMessage.error("导入的数据表头不匹配");_n(P,h)},hn=(p,h)=>{var P;const M=p==null?void 0:p.filter(b=>b!=="序号"),I=h==null?void 0:h.map(b=>{const re=Object.entries(b);return re.shift(),Object.fromEntries(re)});Ge.setRefreshCurStructure(!1),((P=we.value)==null?void 0:P.length)===0||Bo(M,I)},No=(p,h,M,I)=>{const P=[],b=[],re=he=>Object.keys(he).length;for(const he in p)if(p[he]!==void 0){const De=p[he],He=[];for(const[Be,va]of Object.entries(De))He.push(va),b.length<re(De)&&b.push(Be);P.push(He)}P.unshift(b);const ee=Aa.utils.aoa_to_sheet(P),ie=Aa.utils.book_new();Aa.utils.book_append_sheet(ie,ee,I),Aa.writeFileSync(ie,`${h}.xlsx`),Ml.value=[]},qt=async(p,h,M,I=!1,P)=>{var b,re,ee,ie,he,De,He,Be;try{Ge.setRefreshCurStructure(!1);const va=await hr.getInsofDataApi({id:c==null?void 0:c.index});if(((b=va==null?void 0:va.data)==null?void 0:b.code)===200){let ya=(he=(ie=(ee=(re=va==null?void 0:va.data)==null?void 0:re.result)==null?void 0:ee[0])==null?void 0:ie.value)==null?void 0:he.pageData;I?ya={...ya,compData:(He=ya==null?void 0:ya.compData)==null?void 0:He.map(ja=>{var da;return(ja==null?void 0:ja.key)==="header"?{...ja,contents:(da=ja==null?void 0:ja.contents)==null?void 0:da.map(Ya=>({...Ya,[p]:M}))}:ja})}:ya={...ya,compData:(De=ya==null?void 0:ya.compData)==null?void 0:De.map(ja=>{var da,Ya;return(ja==null?void 0:ja.key)==="header"?{...ja,contents:(da=ja==null?void 0:ja.contents)==null?void 0:da.map(ma=>{if(Array.isArray(ma))ma=ma==null?void 0:ma.map(Ua=>(Ua==null?void 0:Ua.prop)===(h==null?void 0:h.prop)?{...Ua,[p]:M}:Ua);else if((ma==null?void 0:ma.prop)===(h==null?void 0:h.prop))return{...ma,[p]:M};return ma})}:(ja==null?void 0:ja.key)==="tableToForm"&&P?{...ja,contents:(Ya=ja==null?void 0:ja.contents)==null?void 0:Ya.map(ma=>(ma==null?void 0:ma.prop)===(h==null?void 0:h.prop)?{...ma,[P]:M}:ma)}:ja})};const Ra=await hr.updateInsofDataApi({id:c==null?void 0:c.index,value:{pageData:ya}});((Be=Ra==null?void 0:Ra.data)==null?void 0:Be.code)===200?(Wa.ElMessage.success("编辑成功"),Ge.setRefreshCurStructure(!0)):Wa.ElMessage.error("编辑响应失败")}}catch(va){Wa.ElMessage.error(va)}},To=async(p,h)=>{await qt("label",h,p)},Wt=async(p,h)=>{await qt("columnType",h,p,!1,"type")},Kt=async({newRow:p,targetIndex:h})=>{var P;const I=(ge.currentPage-1)*ge.pageSize+(h??0);p._isTemp=!0;try{(p.sort===void 0||p.sort===null||String(p.sort).trim()==="")&&(p.sort=Jt(I,Q.value||[]))}catch{}Q.value.splice(I,0,p),await a.nextTick(),k.value.has(p.id)||k.value.set(p.id,L.cloneDeep(p)),Q.value=(P=Q.value)==null?void 0:P.map(b=>({...b,tableEditType:(b==null?void 0:b.id)===p.id?"edit":(b==null?void 0:b.tableEditType)??"text"})),u.value.add(p.id),Gl.value=!0},Nr=(p,h,M,I=[])=>(!Array.isArray(h)||h.length===0||h.forEach(P=>{const b=P==null?void 0:P.prop;if(!b)return;let re=p==null?void 0:p[b];if(re==null||String(re).trim()==="")return;re=String(re);const ee=new Set([...(Array.isArray(M)?M:[]).filter(De=>(De==null?void 0:De.id)!==(p==null?void 0:p.id)).map(De=>De==null?void 0:De[b]).filter(De=>De!=null).map(De=>String(De)),...(Array.isArray(I)?I:[]).map(De=>De==null?void 0:De[b]).filter(De=>De!=null).map(De=>String(De))]);if(!ee.has(re))return;let ie=1,he="";for(;he=`${re}(${ie})`,!!ee.has(he);)ie++;p[b]=he}),p),Nt=async()=>{var P,b,re,ee,ie,he,De,He;const p=Array.from(u.value||[]);if(p.length===0)return;const h=(b=sa.getColumnChild((P=L.cloneDeep(we.value))==null?void 0:P.filter(Be=>(Be==null?void 0:Be.label)!=="操作")))==null?void 0:b.filter(Be=>(Be==null?void 0:Be.required)===!0);if((h==null?void 0:h.length)>0)for(let Be=0;Be<p.length;Be++){const va=p[Be],ya=(re=Q.value)==null?void 0:re.find(Ra=>(Ra==null?void 0:Ra.id)===va);if(ya)for(let Ra=0;Ra<h.length;Ra++){const ja=h[Ra],da=ja==null?void 0:ja.prop,Ya=(ja==null?void 0:ja.label)??da,ma=ya==null?void 0:ya[da];if(ma===""||ma===null||ma===void 0||Array.isArray(ma)&&ma.length===0){Wa.ElMessage.error(`${Ya}不能为空`);return}}}const M=[],I=[];if(p.forEach(Be=>{var Ya;const va=(Ya=Q.value)==null?void 0:Ya.find(ma=>(ma==null?void 0:ma.id)===Be);if(!va)return;if(va!=null&&va._isTemp){const Ua=(sa.getAllLeafNodes(we.value)||[]).filter(B=>(B==null?void 0:B.mainKey)===!0||(B==null?void 0:B.isMainKey)===!0),La=Q.value.findIndex(B=>(B==null?void 0:B.id)===Be),F=La>=0?La+1:Q.value.length+1;Nr(va,Ua,Q.value,M);const na={id:F.toString()};(va==null?void 0:va.sort)!==void 0&&(va==null?void 0:va.sort)!==null&&String(va.sort).trim()!==""?na.sort=String(va.sort):na.sort=Jt(La>=0?La:Q.value.length-1,Q.value||[]),(sa.getAllLeafNodes(we.value)||[]).filter(B=>(B==null?void 0:B.type)!=="operate"&&(B==null?void 0:B.label)!=="操作"&&(B==null?void 0:B.prop)!=="operate").forEach(B=>{const Me=B==null?void 0:B.prop;if(Me){const We=va[Me];We!==void 0?na[Me]=We??"":na[Me]=""}}),M.push(na);return}const Ra=(sa.getAllLeafNodes(we.value)||[]).filter(ma=>(ma==null?void 0:ma.type)!=="operate"&&(ma==null?void 0:ma.label)!=="操作"&&(ma==null?void 0:ma.prop)!=="operate"),ja=new Set(Ra.map(ma=>ma==null?void 0:ma.prop).filter(Boolean)),da={};for(const ma of ja)Object.prototype.hasOwnProperty.call(va,ma)&&(da[ma]=va[ma]);I.push({id:va.id,value:{tableData:da}})}),Ge.setTableLoading(c==null?void 0:c.index),I.length>0){const Be=I.map(ya=>{const Ra={id:ya.id,...ya.value.tableData};return delete Ra._isOCRRow,delete Ra._ocrTableId,delete Ra._isTemp,delete Ra.tableEditType,delete Ra.index,Ra}),va=[{tableName:(ee=c==null?void 0:c.related)==null?void 0:ee.find(ya=>ya==null?void 0:ya.includes("content")),tableContents:Be}];try{await L.pageBatchUpdateApi({platId:parseInt((ie=Bl.value)==null?void 0:ie.plat_id),changeContents:va})}catch(ya){Wa.ElMessage.error(((De=(he=ya==null?void 0:ya.response)==null?void 0:he.data)==null?void 0:De.message)||(ya==null?void 0:ya.message)||"保存失败"),Ge.setTableLoading(!1);return}}if(M.length>0){const Be={fixContent:M,buttonName:"新增",relatedContents:c==null?void 0:c.related,name:c==null?void 0:c.compName,columns:we.value};Oe("change",Be)}Wa.ElMessage.success("保存成功"),u.value.clear(),k.value.clear(),Q.value=(He=Q.value)==null?void 0:He.map(Be=>({...Be,tableEditType:"text"})),Gl.value=!1,Ge.setRefreshCurStructure(!0)},Ao=()=>{var h;const p=Array.from(u.value||[]);if(p.length===0){Gl.value=!1;return}p.forEach(M=>{var b,re;const I=k.value.get(M),P=(b=Q.value)==null?void 0:b.find(ee=>(ee==null?void 0:ee.id)===M);if(P!=null&&P._isTemp){Q.value=Q.value.filter(ee=>(ee==null?void 0:ee.id)!==P.id);return}if(I){const ee=(re=Q.value)==null?void 0:re.findIndex(ie=>(ie==null?void 0:ie.id)===M);ee!==-1&&(Q.value[ee]={...Q.value[ee],...I})}}),u.value.clear(),k.value.clear(),Q.value=(h=Q.value)==null?void 0:h.map(M=>({...M,tableEditType:"text"})),Gl.value=!1},Tt=a.ref(!1),Mo=async()=>{if(Ja.value){Gl.value=!1;return}if(!Tt.value){Tt.value=!0;try{Array.from(u.value||[]).length>0?await Nt():Gl.value=!1}finally{Promise.resolve().then(()=>{Tt.value=!1})}}},zo=p=>{Ml.value=p},Oo=(p,h)=>{Vl.value===h?fr.value=!1:fr.value=!0,Vl.value=h==null?void 0:h.changeProp},Io=p=>{if(!p)return;const{item:h,value:M}=p,I=Ee.value.find(P=>P.prop==h.prop);I&&I.contents.push({label:M,value:M})},Wn=a.computed(()=>{var M,I,P;const p=(M=we.value)==null?void 0:M.some(b=>b==null?void 0:b.filterable);return document.documentElement.style.setProperty("--ssTable-header-filter-display",p?"inline-block":"none"),(P=(I=we.value)==null?void 0:I.filter(b=>(b==null?void 0:b.label)!=="操作"))==null?void 0:P.map(b=>({...b,filterable:!!(b!=null&&b.filterable),showSummary:!!(b!=null&&b.showSummary),operable:!!(b!=null&&b.operable),fixed:b==null?void 0:b.fixed}))}),At=async(p,h,M)=>{const I=L.cloneDeep(we.value);await a.nextTick();const P=I==null?void 0:I.map(re=>(M==null?void 0:M.label)===(re==null?void 0:re.label)?{...re,[h]:p}:re),b=On(P);await ns(c.index,b),we.value=P,te.value=b},On=p=>{var P;const h=p||[];return((P=sa.getAllLeafNodes(h)||[])==null?void 0:P.filter(b=>(b==null?void 0:b.prop)&&(b==null?void 0:b.type)!=="operate"&&(b==null?void 0:b.label)!=="操作"&&(b==null?void 0:b.prop)!=="operate")).map(b=>{const{prop:re}=b;return Sf(re,b)})},Cn=async p=>{let h=await Bf(c.index);h||(h=On(p)),te.value=h},st=async(p,h)=>{const M=L.cloneDeep(we.value),I=re=>Array.isArray(re)?re.map(ee=>{const ie=Array.isArray(ee==null?void 0:ee.children)&&ee.children.length>0,he={...ee};return(he==null?void 0:he.prop)==="operate"||(he==null?void 0:he.label)==="操作"||(he==null?void 0:he.type)==="operate"?(he.sortable=!1,he.filterable=!1,he.operable=!1):he.sortable=ie?!1:!!p,ie&&(he.children=I(he.children)),he}):re,P=I(M),b=On(P);await ns(c.index,b),we.value=P,te.value=b,await a.nextTick(),nn.value=nn.value+1},Lo=()=>{fa.value=!1},Yt=p=>{Oe("clickTrigger",p)},Mt=async p=>{var b,re,ee,ie,he,De,He,Be,va,ya,Ra,ja,da,Ya,ma;const h=p==null?void 0:p.row,M=p==null?void 0:p.rowData,I=p==null?void 0:p.suffix;if((b=h==null?void 0:h.toString())!=null&&b.includes(".urdf")||p!=null&&p.isUrdf||I!=null&&I.includes(".urdf")){if(h.includes(",")){Wa.ElMessage.error("当前版本仅允许单个urdf预览!");return}if(D(h)){const La={files:[xe(h)],data:{}};se(La);return}Da.value=[{url:h,extension:ve(h)}],Sa.value=!0,oe.value={data:L.cloneDeep(M)},Ye.value=!0;return}let P=[];if((re=h==null?void 0:h.toString())!=null&&re.includes(".stl")||(ee=h==null?void 0:h.toString())!=null&&ee.includes(".STL")||(ie=h==null?void 0:h.toString())!=null&&ie.includes(".obj")||(he=h==null?void 0:h.toString())!=null&&he.includes(".mtl")){const Ua=(De=h==null?void 0:h.toString())==null?void 0:De.split(","),La=ta(Ua),F=La==null?void 0:La[0];if(D(F==null?void 0:F.extension)){se({files:La,data:{}});return}Da.value=La,Sa.value=!1,Ye.value=!0;return}if((He=h==null?void 0:h.toString())!=null&&He.includes(".stl")||(Be=h==null?void 0:h.toString())!=null&&Be.includes(".STL")||(va=h==null?void 0:h.toString())!=null&&va.includes(".obj")||(ya=h==null?void 0:h.toString())!=null&&ya.includes(".mtl")||I!=null&&I.includes(".stl")||I!=null&&I.includes(".STL")||I!=null&&I.includes(".obj")||I!=null&&I.includes(".mtl")){let Ua,La=[],F={};if(Array.isArray(h)?Ua=h:Ua=h==null?void 0:h.split(","),Ua==null||Ua.forEach(na=>{na.includes(".mtl")?La.push(na):F.blob=F.blob?F.blob+","+na:na}),(La==null?void 0:La.length)>0&&(F.mtlBlobs=La),I&&(F.suffix=I),(ja=(Ra=Object.values(F))==null?void 0:Ra[0])!=null&&ja.includes("http:"))P.push(F);else{const na=new Blob([F.blob],{type:"application/octet-stream;charset=UTF-8"});let ea=URL.createObjectURL(na),Ae="";(da=h==null?void 0:h.split("/"))==null||da.forEach((B,Me)=>{var We;Me===((We=h==null?void 0:h.split("/"))==null?void 0:We.length)-1&&(Ae=B)}),(Ya=F.blob)!=null&&Ya.includes(".stl")&&(Ae=(Ae==null?void 0:Ae.replaceAll(">",""))+".urdf"),le.value=[{name:Ae,blobUrl:ea}],Ia.value=!0}}else{const Ua=await Wa.axios.get(h,{responseType:"blob",headers:{"Content-Type":"application/json"}}),La=new Blob([Ua.data],{type:"application/octet-stream;charset=UTF-8"});let F=URL.createObjectURL(La),na="";if((ma=h==null?void 0:h.split("/"))==null||ma.forEach((ea,Ae)=>{var B;Ae===((B=h==null?void 0:h.split("/"))==null?void 0:B.length)-1&&(na=ea)}),D(na)){const ea=ne(na),Ae=xe(h);se({files:[Ae],data:{trackFileType:ea}});return}le.value=[{name:na,blobUrl:F}],Ia.value=!0}(P==null?void 0:P.length)>0&&t.setBlobUrls(P)},In=p=>{var I,P,b,re;if(p!=null&&p.downloadUrl)return p==null?void 0:p.name;const h=(re=(I=p==null?void 0:p.url)==null?void 0:I.split("."))==null?void 0:re[((b=(P=p==null?void 0:p.url)==null?void 0:P.split("."))==null?void 0:b.length)-1];return(p==null?void 0:p.name)+"."+h},Ln=p=>{if(!p)return"未知文件";try{const I=In(p);if(typeof I=="string"&&I.includes("."))return I}catch{}const h=(p==null?void 0:p.fileName)||(p==null?void 0:p.name)||"未知文件",M=(p==null?void 0:p.suffix)||"";return h.includes(".")?h:`${h}${M}`},Gt=p=>{if(p==null||typeof p=="number"||typeof p!="string")return p;const h=p.match(/^(\d+)\_(\d+)$/);if(!h)return p;const M=Number(h[1]),I=Number(h[2]);return!Number.isFinite(M)||!Number.isFinite(I)?p:String(M*1e3+I)},Kn=p=>{if(p==null)return null;const h=String(p).trim();if(!h)return null;const M=Number(h);return Number.isFinite(M)?M:null},Xt=(p,h=[])=>{const M=Array.isArray(p)?p.slice():[];if(M.length<=1)return M;const I=new Map((h||[]).map((re,ee)=>[String(re),ee])),P=M.some(re=>Kn(re==null?void 0:re.sort)!==null),b=M.map((re,ee)=>({r:re,idx:ee,id:String((re==null?void 0:re.id)??""),sortVal:Kn(re==null?void 0:re.sort),prevIdx:I.has(String(re==null?void 0:re.id))?I.get(String(re==null?void 0:re.id)):Number.POSITIVE_INFINITY}));return b.sort((re,ee)=>{if(P){const ie=re.sortVal,he=ee.sortVal;if(ie===null&&he!==null)return 1;if(ie!==null&&he===null)return-1;if(ie!==null&&he!==null&&ie!==he)return ie-he}return re.prevIdx!==ee.prevIdx?re.prevIdx-ee.prevIdx:re.idx-ee.idx}),b.map(re=>re.r)},Jt=(p,h=[])=>{const M=h==null?void 0:h[p-1],I=h==null?void 0:h[p],P=Kn(M==null?void 0:M.sort),b=Kn(I==null?void 0:I.sort);let re=null;P!==null&&b!==null&&b>P?re=(P+b)/2:P!==null?re=P+1:b!==null?re=Math.max(b-1,0):re=(p??0)+1;const ee=Number(re.toFixed(6));return String(Number.isFinite(ee)?ee:re)},Vo=async p=>{let h=null,M=null;if(p!=null&&p.id){const P=L.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});try{const b=await L.downloadAvatarApi(p);h=URL.createObjectURL(b.data),M=Ln(p)}finally{P.close()}}else if(p!=null&&p.downloadUrl){const P=await Gn(),b=L.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),re=await Wa.axios.post(p==null?void 0:p.url,null,{responseType:"blob",headers:{Authorization:P,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}).finally(()=>{b.close()}),ee=new Blob([re.data],{type:"application/octet-stream;charset=UTF-8"});h=URL.createObjectURL(ee),M=p==null?void 0:p.name}else{const P=await L.downloadAvatarApi({url:p==null?void 0:p.url});!p.url.toUpperCase().includes(".OBJ")&&!p.url.toUpperCase().includes(".STL")&&!p.url.toUpperCase().includes(".MTL")&&!p.url.toUpperCase().includes(".URDF")?(h=URL.createObjectURL(P.data),M=In(p)):h=p==null?void 0:p.url}if(D(h)){const P={row:`${h}`,suffix:ve(M)};Mt(P);return}const I={name:M,blobUrl:h};le.value=[I],Ia.value=!0},$o=async p=>{let h=null,M=null;if(p!=null&&p.id){const b=await L.downloadAvatarApi(p);h=URL.createObjectURL(b.data),M=Ln(p)}else if(p!=null&&p.downloadUrl){const b=await Gn(),re=await Wa.axios.post(p==null?void 0:p.url,null,{responseType:"blob",headers:{Authorization:b,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}),ee=new Blob([re.data],{type:"application/octet-stream;charset=UTF-8"});h=URL.createObjectURL(ee),M=p==null?void 0:p.name}else{const b=await L.downloadAvatarApi({url:p==null?void 0:p.url});h=URL.createObjectURL(b.data),M=In(p)}const I={name:M,blobUrl:h},P=document.createElement("a");P.href=I.blobUrl,P.download=I.name,P.style.display="none",document.body.appendChild(P),P.click(),setTimeout(()=>{document.body.removeChild(P)},100)},zt=(p,h)=>{var I;if(Object.values(h).length===0)return;let M=p;return Object.values(h).find(P=>{var b,re,ee;return((b=P==null?void 0:P.toString())==null?void 0:b.includes(".txt"))||((re=P==null?void 0:P.toString())==null?void 0:re.includes(".cpt"))||((ee=P==null?void 0:P.toString())==null?void 0:ee.includes(".obj"))})?M=[...p,Ca.value]:(I=c==null?void 0:c.config)!=null&&I.allowMove&&(M=[...p,{label:"迁移"}]),M},Ro=()=>{Y.value=!0},ct=a.ref([]),Po=async(p,h,M=!1)=>{var re,ee,ie,he;if(!p)return;if(M){Q.value=[...pe.value.values()].filter(De=>Object.values(De).some(He=>typeof He=="string"?He==null?void 0:He.toLowerCase().includes(h==null?void 0:h.toLowerCase()):!1));return}let I={};for(let De in p)(p==null?void 0:p[De])!==""&&(I[De]=p==null?void 0:p[De]);if(JSON.stringify(I)==="{}"){Q.value=Array.from(((re=pe.value)==null?void 0:re.values())??[]);return}let P=(ee=c==null?void 0:c.related)==null?void 0:ee.find(De=>De==null?void 0:De.includes("content_")),b=await L.getFillFind({platId:parseInt((ie=Bl==null?void 0:Bl.value)==null?void 0:ie.plat_id),tableName:P,params:I});b=(he=b==null?void 0:b.data)==null?void 0:he.result,Q.value=b,Ge.setTableLoading(!1)},Ot=async p=>{var M,I;if(!Ne(c.config,{type:K.TABLE})||!p)return;((M=Array.from(u.value))==null?void 0:M.length)>0&&await Nt();const h=p==null?void 0:p.id;h!=null&&(u.value.clear(),k.value.clear(),k.value.has(h)||k.value.set(h,L.cloneDeep(p)),Q.value=(I=Q.value)==null?void 0:I.map(P=>({...P,tableEditType:(P==null?void 0:P.id)===h?"edit":"text"})),u.value.add(h),Gl.value=!0)},Zt=async(p,h,M,I)=>{I!=null&&I.isExistChild&&Oe("clickMainKey",p,M,we.value)},Fo=()=>{Ia.value=!1},Qt=p=>{Oe("rowClick",p)};a.watch(()=>c.changedContent,()=>{var M,I;if(!c.changedContent)return;let p=(M=Q.value)==null?void 0:M.map(P=>{var b;return P.id===((b=c.changedContent)==null?void 0:b.id)&&(P={...c.changedContent,id:c.changedContent.newId?c.changedContent.newId:c.changedContent.id},delete P.newId),P});const h=(I=c.itemData)==null?void 0:I.map(P=>((P==null?void 0:P.key)==="tableContents"&&(P.contents=p),P));Q.value=p,Oe("contentChange",{contents:h,index:c.index}),Oe("change",{content:p,index:c==null?void 0:c.index,buttonName:"",id:c==null?void 0:c.index})},{deep:!0,immediate:!0});const Yn=()=>{},vn=async()=>{const p=_a.value,h=sessionStorage.getItem("systemKey"),M=await sa.getItemData(p,h,""),I=(M==null?void 0:M.find(ee=>(ee==null?void 0:ee.name)==="方法明细"))||(M==null?void 0:M[0]),P=(I==null?void 0:I.compData)||[],b=P==null?void 0:P.find(ee=>{const ie=ee==null?void 0:ee.key;return ie==="formContent"||ie==="tableContents"});return b==null?void 0:b.contents},Gn=async()=>{const h=Wa.Local.get("access-token");return h?`Bearer ${h}`:""},It=async(p,{token:h,inputData:M}={})=>await Wa.axios.post(p,M,{headers:{Authorization:h}}).catch(P=>(ra.setImportLoading(!1),Promise.reject(P))),jo=p=>{var I;let h={};const M=[];return h.form={},(I=L.cloneDeep(p))==null||I.forEach((P,b)=>{var re,ee,ie,he,De,He,Be,va,ya,Ra,ja,da,Ya,ma;if((P==null?void 0:P.comp)==="Table"){(ee=(re=P==null?void 0:P.compData)==null?void 0:re.find(na=>(na==null?void 0:na.key)==="header"))==null||ee.contents;let Ua=(De=(he=(ie=P==null?void 0:P.compData)==null?void 0:ie.find(na=>(na==null?void 0:na.key)==="tableContents"))==null?void 0:he.contents)==null?void 0:De.map(na=>na.slice(1));(Ra=(ya=(va=(Be=(He=P==null?void 0:P.compData)==null?void 0:He.find(na=>(na==null?void 0:na.key)==="header"))==null?void 0:Be.contents)==null?void 0:va[0])==null?void 0:ya[0])==null||Ra.label;let La=(da=(ja=P==null?void 0:P.compData)==null?void 0:ja.find(na=>(na==null?void 0:na.key)==="header"))==null?void 0:da.contents,F=[];Ua==null||Ua.forEach(na=>{let ea=[];na==null||na.forEach((Ae,B)=>{var We;let Me={};((We=La[B])==null?void 0:We.label)!=="操作"&&(Me[La[B].label]=Ae,ea.push(Me))}),F.push(ea)}),h[P.name]=F}else{const Ua=(ma=(Ya=P.compData)==null?void 0:Ya.find(La=>(La==null?void 0:La.key)==="formContent"))==null?void 0:ma.contents;Ua==null||Ua.forEach(La=>{var F,na;if(La.prop!==""){let ea=La==null?void 0:La.value;Array.isArray(ea)?ea=((F=ea==null?void 0:ea[0])==null?void 0:F.oldUrl)||"http://222.92.178.198:62001/"+((na=ea==null?void 0:ea[0])==null?void 0:na.url):ea=ea.toString(),La={key:(La==null?void 0:La.prop)??(La==null?void 0:La.label),value:ea},M.push(La)}})}}),h.form=sa.getFormContents(M),h},Ho=p=>{const h=[],M=I=>{I&&typeof I=="object"&&!Array.isArray(I)?Object.values(I).forEach(M):h.push(I)};return M(p),h},Uo=async(p,h,M)=>{var La,F,na,ea,Ae,B,Me,We,la,ga,pa,za,ol,Ga,il,vl,Rl;ra.setImportLoading(!0),Ge.setFreshContent(!1);let I=await vn().catch(qa=>(ra.setImportLoading(!1),Promise.reject(qa)));I=I==null?void 0:I.filter(qa=>{var bl;return((bl=qa==null?void 0:qa.find(Ha=>Ha==null?void 0:Ha.id))==null?void 0:bl.id)===(h==null?void 0:h.id)});let P=sa.getEqualChild([(La=we.value)==null?void 0:La.filter(qa=>(qa==null?void 0:qa.label)!=="操作")]);const b=(na=(F=sa.tableToForm(I,P))==null?void 0:F[0])==null?void 0:na.find(qa=>{const bl=qa==null?void 0:qa.key;return bl==="Interface"||bl==="方法体"}),re=b==null?void 0:b.value;if(!re){console.log("未搜索到isMain, 缺少算法执行接口"),ra.setImportLoading(!1);return}const ee=we.value?sa.getEqualChild([we.value]):[],ie=ee.find(qa=>{const bl=qa==null?void 0:qa.prop;return bl==="Input1"||bl==="输入数据.输入1"||bl==="样本输入数据"}),he=ie==null?void 0:ie.prop;let De=h==null?void 0:h[he];const He=await Gn().catch(qa=>(ra.setImportLoading(!1),Promise.reject(qa)));let Be=!0,va="";(ea=we.value)==null||ea.forEach(qa=>{(qa==null?void 0:qa.prop)===he&&(Be=!!(qa!=null&&qa.childPath),va=qa==null?void 0:qa.childPath)});let ya="";if(Be){let qa=(B=(Ae=we.value)==null?void 0:Ae.find(pl=>(pl==null?void 0:pl.isMainKey)===!0))==null?void 0:B.prop;ya=h==null?void 0:h[qa];let bl=va==null?void 0:va.split(x),Ha=[];bl==null||bl.forEach((pl,Nl)=>{(bl==null?void 0:bl.length)-1===Nl&&Ha.push(ya),Ha.push(pl)}),Ha=Ha==null?void 0:Ha[0];let al=await sa.getItemData(Ha,sessionStorage.getItem("systemKey"),""),ll=al==null?void 0:al.filter(pl=>(pl==null?void 0:pl.name)===he);ll=ll==null?void 0:ll.map(pl=>{var Nl;return pl.compData=(Nl=pl==null?void 0:pl.compData)==null?void 0:Nl.map(dl=>{var kl;return(dl==null?void 0:dl.key)==="tableContents"&&(dl.contents=(kl=dl==null?void 0:dl.contents)==null?void 0:kl.filter(Cl=>(Cl==null?void 0:Cl[1])===(h==null?void 0:h[he]))),dl}),pl}),(!ll||(ll==null?void 0:ll.length)===0)&&(ll=al,ll=ll==null?void 0:ll.map(pl=>{var Nl;return pl.compData=(Nl=pl==null?void 0:pl.compData)==null?void 0:Nl.map(dl=>{var kl;return(dl==null?void 0:dl.key)==="tableContents"&&(dl.contents=(kl=dl==null?void 0:dl.contents)==null?void 0:kl.filter(Cl=>{var yl,Pl;return(Cl==null?void 0:Cl[1])===(h==null?void 0:h[(Pl=(yl=we==null?void 0:we.value)==null?void 0:yl[0])==null?void 0:Pl.prop])})),dl}),pl})),De=jo(ll)}const Ra=await It(re,{token:He,inputData:De}).catch(qa=>(ra.setImportLoading(!1),Promise.reject(qa))),ja=(Me=Ra==null?void 0:Ra.data)==null?void 0:Me.data,da=ee.find(qa=>(qa==null?void 0:qa.prop)==="Output1"),Ya=da==null?void 0:da.prop;let ma=[],Ua=[];if(ja&&((We=Object.values(ja))==null?void 0:We.length)>0){let qa=[];const bl=new FormData,Ha=(la=Ho(ja))==null?void 0:la.map(async ll=>{var pl,Nl;if(!Array.isArray(ll)&&(ll!=null&&ll.includes("http"))){let dl=await Wa.axios.get(ll,{responseType:"blob"}),kl=(Nl=ll==null?void 0:ll.split("/"))==null?void 0:Nl[((pl=ll==null?void 0:ll.split("/"))==null?void 0:pl.length)-1];bl.append("files",dl.data,kl)}else qa.push(ll)});if(await Promise.all(Ha),!sa.isFormDataEmpty(bl)){let ll=await L.uploadAmountApi(bl),pl=(pa=(ga=ll==null?void 0:ll.data)==null?void 0:ga.result)==null?void 0:pa.map(Nl=>{var dl,kl,Cl,yl,Pl,ur;return{name:(ur=(Pl=(yl=(dl=Nl==null?void 0:Nl.url)==null?void 0:dl.split("/"))==null?void 0:yl[((Cl=(kl=Nl==null?void 0:Nl.url)==null?void 0:kl.split("/"))==null?void 0:Cl.length)-1])==null?void 0:Pl.split("."))==null?void 0:ur[0],url:Nl==null?void 0:Nl.url}});qa=[...qa,...pl]}let al={};for(let ll in h)ll!=="id"&&(al[ll]=h[ll]);al[Ya]=qa,Ua.push({id:h==null?void 0:h.id,value:{tableData:al}})}if((Ua==null?void 0:Ua.length)>0){const qa=Ua.map(Ha=>{const al={id:Ha.id,...Ha.value.tableData};return delete al._isOCRRow,delete al._ocrTableId,delete al._isTemp,delete al.tableEditType,delete al.index,al}),bl=[{tableName:(za=c==null?void 0:c.related)==null?void 0:za.find(Ha=>Ha==null?void 0:Ha.includes("content")),tableContents:qa}];await L.pageBatchUpdateApi({platId:parseInt((ol=Bl.value)==null?void 0:ol.plat_id),changeContents:bl})}if((ma==null?void 0:ma.length)>0)try{await L.pageBatchAddApi({platId:parseInt((Ga=Bl.value)==null?void 0:Ga.plat_id),changeContents:[{tableName:(il=c==null?void 0:c.related)==null?void 0:il.find(qa=>qa==null?void 0:qa.includes("content")),tableContents:ma.map(qa=>{var Ha,al,ll;const bl={id:((Ha=qa==null?void 0:qa.key)==null?void 0:Ha.id)??((al=qa==null?void 0:qa.key)==null?void 0:al.rowId)??(qa==null?void 0:qa.id),...((ll=qa==null?void 0:qa.value)==null?void 0:ll.tableData)||{}};return delete bl._isOCRRow,delete bl._ocrTableId,delete bl._isTemp,delete bl.tableEditType,delete bl.index,Object.keys(bl).forEach(pl=>{pl==="证书附件"&&Array.isArray(bl[pl])&&(bl[pl]=JSON.stringify(bl[pl]))}),bl})}]})}catch(qa){Wa.ElMessage.error(((Rl=(vl=qa==null?void 0:qa.response)==null?void 0:vl.data)==null?void 0:Rl.message)||(qa==null?void 0:qa.message)||"保存失败"),Ge.setTableLoading(!1);return}Vt(!0),ra.setImportLoading(!1),Ge.setFreshContent(!0)},eo=(p,h)=>(p=p==null?void 0:p.map(M=>{var I,P;return M!=null&&M.children&&((I=M.children)!=null&&I.find(b=>b.id===(h==null?void 0:h.id))?M.children=(P=M.children)==null?void 0:P.filter(b=>(b==null?void 0:b.id)!==(h==null?void 0:h.id)):M.children=eo(M.children,h)),M}),p),ut=a.ref(!1),qo=()=>{ut.value=!0},Wo=async p=>{var M,I,P,b;ut.value=!1;const h=Array.isArray(p)?p:p?[p]:[];if(h.length!==0)for(const re of h){const ee={name:re.name||`capture-${Date.now()}.jpg`,url:URL.createObjectURL(re),raw:re,uid:Date.now()+Math.random()};Qe.value.push(ee),gl(ee,"uploading"),ul(ee,0);try{const ie=new FormData;ie.append("file",re,ee.name);const he=await rl.uploadFileApi(ie);ee.uploadResult=((M=he==null?void 0:he.data)==null?void 0:M.result)||{name:ee.name,url:"",fileName:ee.name},oa({name:((I=ee.uploadResult)==null?void 0:I.name)||ee.name,url:((P=ee.uploadResult)==null?void 0:P.url)||"",id:(b=ee.uploadResult)==null?void 0:b.id}),gl(ee,"uploaded"),ul(ee,100)}catch(ie){console.error("文件上传失败:",ie),Wa.ElMessage.error(`文件 ${ee.name} 上传失败,请重试`),gl(ee,"pending"),ul(ee,0);const he=Qe.value.findIndex(De=>De.uid===ee.uid);he>-1&&Qe.value.splice(he,1)}}},gr=a.reactive({title:"迁移至",show:!1,width:"20%",selectRow:null,from:c==null?void 0:c.index,to:null,contents:[],formRules:{groupName:[{required:!0,message:"输入不能为空",trigger:"blur"},{validator:(p,h,M)=>{h===(c==null?void 0:c.index)?M(new Error("选择源不能和目标源一致")):M()}}]},buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"确认",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]}),$l=a.reactive({title:"温馨提示:检测到导入的以下数据,系统中已存在,请选择操作",show:!1,width:"70%",columns:[],tableData:[],existRows:[],buttonValue:[{label:"取消",value:"cancel",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"覆盖",render:"popover",value:"replace",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}],result:""}),Ko=()=>{$l.show=!1},i=async p=>{var h,M,I,P,b,re,ee,ie,he;try{if(p==="cancel"&&($l.show=!1),p==="replace"&&((h=$l==null?void 0:$l.existRows)==null?void 0:h.length)>0){await L.pageBatchDeleteApi({platId:parseInt((M=Bl.value)==null?void 0:M.plat_id),changeContents:[{tableName:((I=c==null?void 0:c.related)==null?void 0:I.find(He=>He==null?void 0:He.includes("content_")))||((P=c==null?void 0:c.related)==null?void 0:P.find(He=>He==null?void 0:He.includes("content"))),tableContents:$l==null?void 0:$l.existRows}]});const De=await L.pageBatchAddApi({platId:parseInt((b=Bl.value)==null?void 0:b.plat_id),changeContents:[{tableName:(re=c==null?void 0:c.related)==null?void 0:re.find(He=>He==null?void 0:He.includes("content")),tableContents:(ee=$l==null?void 0:$l.tableData)==null?void 0:ee.map((He,Be)=>({id:Be,...He}))}]});((ie=De==null?void 0:De.data)==null?void 0:ie.code)===200&&(await pi({buttonName:"新增",columns:we.value,fixContent:(he=$l==null?void 0:$l.tableData)==null?void 0:he.map((He,Be)=>({id:Be,...He})),relatedContents:c==null?void 0:c.related}),Wa.ElMessage.success("数据导入替换成功"))}}catch{throw new Error(e)}finally{$l.show=!1,$l.columns=[],$l.tableData=[],$l.existRows=[]}},o=()=>{gr.show=!1},d=p=>{var h,M;if((p==null?void 0:p.buttonName)==="取消")return gr.show=!1;gr.to=p==null?void 0:p.content,!(!(c!=null&&c.index)||!((h=gr.to)!=null&&h.groupName))&&(c==null?void 0:c.index)!==((M=gr.to)==null?void 0:M.groupName)&&(Oe("change",{buttonName:"迁移",value:{from:gr.from,to:gr.to,data:gr.selectRow}}),gr.show=!1)},m=async p=>{var h,M,I,P;if(p){if(!Cr.validateFileSize(p.raw)){Wa.ElMessage.warning(`文件大小不能超过 ${kn.value.maxSize}MB`);const b=Qe.value.findIndex(re=>re.uid===p.uid);b>-1&&Qe.value.splice(b,1),C();return}if(!Cr.validateFileType(p.raw)){Wa.ElMessage.warning("请上传图片文件");const b=Qe.value.findIndex(re=>re.uid===p.uid);b>-1&&Qe.value.splice(b,1),C();return}gl(p,"uploading"),ul(p,0);try{const b=new FormData;b.append("file",p.raw,p.name);const re=await rl.uploadFileApi(b);p.uploadResult=((h=re==null?void 0:re.data)==null?void 0:h.result)||{name:p.name,url:"",fileName:p.name},oa({name:((M=p.uploadResult)==null?void 0:M.name)||p.name,url:((I=p.uploadResult)==null?void 0:I.url)||"",id:(P=p.uploadResult)==null?void 0:P.id}),gl(p,"uploaded"),ul(p,100)}catch(b){console.error("文件上传失败:",b),Wa.ElMessage.error(`文件 ${p.name} 上传失败,请重试`),gl(p,"pending"),ul(p,0);const re=Qe.value.findIndex(ee=>ee.uid===p.uid);re>-1&&Qe.value.splice(re,1)}finally{C()}}},C=()=>{a.nextTick(()=>{const p=document.querySelector('.ocr-upload-input input[type="file"]');p&&(p.value="")})},z=async()=>{var M,I;if(sessionStorage.setItem("ocr_root_table_id",String((c==null?void 0:c.index)??"")),Qe.value.length===0){Wa.ElMessage.warning("请先选择要上传的图片");return}if(Qe.value.filter(P=>{const b=Ma(P);return b!=="uploaded"&&b!=="completed"&&b!=="failed"}).length>0){Wa.ElMessage.warning("请等待所有文件上传完成后再开始识别");return}ua.value=!0,Xe.value=0;let h=null;try{Qe.value.forEach(da=>{gl(da,"processing")});const P=Math.floor(Math.random()*10)+90;h=setInterval(()=>{Xe.value<P?Xe.value+=1:clearInterval(h)},50);const b=Qe.value.map(da=>{var Ya,ma,Ua;return{name:((Ya=da.uploadResult)==null?void 0:Ya.name)||da.name,url:((ma=da.uploadResult)==null?void 0:ma.url)||"",fileName:((Ua=da.uploadResult)==null?void 0:Ua.fileName)||da.name}}),re=Cr.extractTableHeaders(we.value),ee=b.map(da=>({name:(da==null?void 0:da.fileName)||(da==null?void 0:da.name),url:(da==null?void 0:da.url)||""})),ie=await Cr.recognize(ee,re);if(console.log(ie,"ocrResult"),clearInterval(h),h=null,(ie==null?void 0:ie.code)===500||(ie==null?void 0:ie.type)==="error"||!(ie!=null&&ie.result)){Xe.value=0,Qe.value.forEach(da=>{gl(da,"failed"),ul(da,0)}),Wa.ElMessage.error((ie==null?void 0:ie.message)||"OCR识别失败,请重试"),ua.value=!1;return}Xe.value=P;const he=Array.isArray(ie==null?void 0:ie.result)?ie.result:[];if(he.length===0){Xe.value=0,Qe.value.forEach(da=>{gl(da,"failed"),ul(da,0)}),Wa.ElMessage.warning("OCR识别未返回有效数据"),ua.value=!1;return}const De=new Set,He=[];he.forEach((da,Ya)=>{const ma=da!=null&&da.数据&&typeof(da==null?void 0:da.数据)=="object"?da.数据:{},Ua=Array.isArray(da==null?void 0:da.图片信息)?da.图片信息:[],La=new Map;Ua.forEach(na=>{na!=null&&na.name&&La.set(na.name,na.url||"")});const F={_index:Ya,_certType:(da==null?void 0:da.证书类型)||"",_certNo:(da==null?void 0:da.证书编号)||"",_ocrImages:Ua,__ocrFieldMeta:{}};Object.entries(ma).forEach(([na,ea])=>{let Ae="",B=0,Me=[],We="";ea&&typeof ea=="object"&&!Array.isArray(ea)?(Ae=(ea==null?void 0:ea.value)??"",B=(ea==null?void 0:ea.score)??0,Me=Array.isArray(ea==null?void 0:ea.bboxNorm)?ea==null?void 0:ea.bboxNorm:[],We=(ea==null?void 0:ea.imageName)||""):Array.isArray(ea)&&ea.length>=2?(Ae=ea[0]??"",B=ea[1]??0):(Ae=ea??"",B=0),F[na]=Ae,F[`${na}_accuracy`]=B,De.add(na),F.__ocrFieldMeta[na]={value:Ae,score:B,bboxNorm:Me,imageName:We,imageUrl:We&&La.get(We)||"",images:Ua}}),He.push(F)});const Be=[],va=new Set;He.forEach(da=>{da&&De.forEach(Ya=>{const ma=da[`${Ya}_accuracy`];(typeof ma=="number"?ma>0:ma!=null&&String(ma).trim()!==""&&String(ma)!=="0")&&va.add(Ya)})}),De.forEach(da=>{Be.push({prop:da,label:da,editable:!0,minWidth:230}),va.has(da)&&Be.push({prop:`${da}_accuracy`,label:"准确率",editable:!1,minWidth:100,isAccuracy:!0})}),Qe.value.forEach(da=>{gl(da,"completed")}),Xe.value=100,_l.value=Be,$a.value=He,ml.value=b,sl.value=ie;const ya=["出厂编号","设备名称","制造厂"],Ra=Be.filter(da=>da&&!da.isAccuracy&&typeof da.prop=="string").map(da=>da.prop),ja=["出厂编号","设备名称","制造厂"];tl.value=Ra.filter(da=>ja.includes(da)),console.log("[OCR] 默认勾选字段 props:",tl.value),Ce.value=2,ua.value=!1,Oa.value=!1}catch(P){console.error("OCR处理失败:",P),h&&(clearInterval(h),h=null),Wa.ElMessage.error(((I=(M=P==null?void 0:P.response)==null?void 0:M.data)==null?void 0:I.message)||"OCR识别失败,请重试"),ua.value=!1,Xe.value=0,Qe.value.forEach(b=>{gl(b,"pending"),ul(b,0)})}},U=p=>{if(p==null)return"";let h=String(p);return h=h.replace(/\s+/g," ").trim(),h=h.replace(/[!-~]/g,M=>String.fromCharCode(M.charCodeAt(0)-65248)),h=h.replace(/ /g," "),h=h.replace(/^(编号|No\.?|NO\.?|no\.?|SN\.?|sn\.?|序列号)\s*[::]?\s*/i,""),h},X=()=>{var da,Ya;const p=ml.value,h=sl.value,M=$a.value;if(!M||M.length===0){Wa.ElMessage.warning("暂无数据可添加");return}const I=(da=sa.getAllLeafNodes(we.value)||[])==null?void 0:da.filter(ma=>(ma==null?void 0:ma.type)!=="operate"&&(ma==null?void 0:ma.label)!=="操作"&&(ma==null?void 0:ma.prop)!=="operate"),P=new Map,b=new Map,re=(Ya=I==null?void 0:I.find(ma=>(ma==null?void 0:ma.label)==="证书附件"))==null?void 0:Ya.prop;I==null||I.forEach(ma=>{ma!=null&&ma.label&&(ma!=null&&ma.prop)&&(P.set(ma.label,ma.prop),b.set(ma.prop,ma.label))});const ee=Date.now(),ie=ma=>String(ee*1e3+ma),he=[],De=[],He=ma=>{const Ua=bo&&bo[ma]||[ma];for(const La of Ua){const F=P.get(La);if(F)return F}return""},Be=He("出厂编号"),va=He("设备名称"),ya=He("制造厂"),Ra=[],ja=ma=>{var Ae,B;if(!re)return[];const Ua=(Array.isArray(p)?p[ma]:null)||null,La=(Ua==null?void 0:Ua.url)||"",F=(Ua==null?void 0:Ua.fileName)||(Ua==null?void 0:Ua.name)||"";return(String(F).toLowerCase().endsWith(".pdf")||String(La).toLowerCase().endsWith(".pdf"))&&La?[{url:La,name:F,fileName:F}]:(Array.isArray((B=(Ae=h==null?void 0:h.result)==null?void 0:Ae[ma])==null?void 0:B.图片信息)?h.result[ma].图片信息:[]).map(Me=>({url:(Me==null?void 0:Me.url)||"",name:(Me==null?void 0:Me.name)||"",fileName:(Me==null?void 0:Me.name)||""})).filter(Me=>Me.url)};if(M.forEach((ma,Ua)=>{var ol;const La={id:ie(Ua),_isOCRRow:!0,_ocrTableId:c==null?void 0:c.index};for(const[Ga,il]of P.entries())Object.prototype.hasOwnProperty.call(ma,Ga)&&(La[il]=ma[Ga]);re&&(La[re]=ja(Ua));const F=(Array.isArray(h==null?void 0:h.result)?h.result[Ua]:null)||null,na=(Array.isArray(p)?p[Ua]:null)||null,ea=(na==null?void 0:na.url)||"",Ae=(na==null?void 0:na.fileName)||(na==null?void 0:na.name)||"",B=String(Ae).toLowerCase().endsWith(".pdf")||String(ea).toLowerCase().endsWith(".pdf"),Me={ts:Date.now(),versionId:String(Date.now())+"_"+String(Ua),label:new Date().toLocaleString(),certType:(F==null?void 0:F.证书类型)||"",certNo:(F==null?void 0:F.证书编号)||"",fileType:B?"pdf":"image",sourceUrl:B?ea:"",images:Array.isArray(F==null?void 0:F.图片信息)?F.图片信息.map(Ga=>({name:(Ga==null?void 0:Ga.name)||"",url:(Ga==null?void 0:Ga.url)||""})).filter(Ga=>Ga.url):[]},We=Ga=>U(Ga?La==null?void 0:La[Ga]:""),la=We(Be),ga=We(va),pa=We(ya);if(!!(Be&&va&&ya&&la&&ga&&pa)){const Ga=(Q.value||[]).find(il=>{const vl=U(Be?il==null?void 0:il[Be]:""),Rl=U(va?il==null?void 0:il[va]:""),qa=U(ya?il==null?void 0:il[ya]:"");return vl&&Rl&&qa&&vl===la&&Rl===ga&&qa===pa});if(Ga){Ra.push({idx:Ua,ocrRow:La,versionItem:Me,ocrNo:la,candidates:[Ga],selectedTargetId:String((Ga==null?void 0:Ga.id)??""),__decision:"replace",allowAdd:!1,allowReplace:!0});return}}if(la&&Be){const Ga=(Q.value||[]).filter(il=>{const vl=U(Be?il==null?void 0:il[Be]:"");return vl&&vl===la});if(Ga.length>0){Ra.push({idx:Ua,ocrRow:La,versionItem:Me,ocrNo:la,candidates:Ga,selectedTargetId:"",__decision:"",allowAdd:!0,allowReplace:!0});return}}try{if(La.sort===void 0||La.sort===null||String(La.sort).trim()===""){const Ga=(Q.value||[]).map(vl=>Kn(vl==null?void 0:vl.sort)).filter(vl=>vl!==null),il=Ga.length>0?Math.max(...Ga):((ol=Q.value)==null?void 0:ol.length)??0;La.sort=String(Number((il+1).toFixed(6)))}}catch{}Za(c==null?void 0:c.index,La.id,Me),Ra.push({idx:Ua,ocrRow:La,versionItem:Me,ocrNo:la,candidates:[],selectedTargetId:"",__decision:"add",allowAdd:!0,allowReplace:!1})}),(Ra||[]).length>0){Il.value=(Ra||[]).map(ma=>({...ma,selectedTargetId:(ma==null?void 0:ma.selectedTargetId)||""})),lr.value=!0,kr.value=De,pr.value=he,Ir.value=h,Lr.value=p,cn.value=re||"";return}},de=(p,h,M)=>{$a.value[p]&&($a.value[p][h]=M)},Te=p=>p==null||p===0?"-":`${(Number(p)*100).toFixed(1)}%`,fe=p=>{if(p==null||p===0)return"#909399";const h=Number(p);return h>=.9?"#67c23a":h>=.7?"#e6a23c":"#f56c6c"},aa=p=>{var M,I,P,b;if(Pa.value===p){Pa.value=null,xl.value=!1,hl.value="";return}Pa.value=p,hl.value="";const h=(M=$a.value)==null?void 0:M[p];if(h&&Array.isArray(h._ocrImages)&&h._ocrImages.length>0){jl.value=h._ocrImages.map(ie=>({name:(ie==null?void 0:ie.name)||"",url:(ie==null?void 0:ie.url)||""})).filter(ie=>ie.name||ie.url);const re=h.__ocrFieldMeta||{},ee=(I=Object.values(re))==null?void 0:I.find(ie=>ie==null?void 0:ie.imageName);Xl.value=(ee==null?void 0:ee.imageName)||((b=(P=jl.value)==null?void 0:P[0])==null?void 0:b.name)||"",xl.value=jl.value.length>0}else jl.value=[],xl.value=!1,Xl.value=""},Na=()=>{$e.value=!1,Qe.value=[],Ta.value=null,Ce.value=1,q.value.clear(),Le.value.clear(),Xe.value=0,xl.value=!1},Xa=p=>p.raw?URL.createObjectURL(p.raw):p.url?p.url:"",Ma=p=>{const h=p.uid||p.name;return q.value.get(h)||"pending"},el=p=>{const h=p.uid||p.name;return Le.value.get(h)||0},ul=(p,h)=>{const M=p.uid||p.name;Le.value.set(M,Math.min(100,Math.max(0,h)))},fl=p=>{const h=Ma(p),M=100.53;if(h==="completed"||h==="uploaded")return`${M} ${M}`;if(h==="failed")return`${M} ${M}`;if(h==="uploading"){const I=el(p);return`${M*(I/100)} ${M}`}else if(h==="processing")return`${M*.5} ${M}`;return`0 ${M}`},gl=(p,h)=>{const M=p.uid||p.name;q.value.set(M,h),(h==="completed"||h==="uploaded")&&ul(p,100)},zl=()=>{a.nextTick(()=>{const p=document.querySelector('.ocr-upload-input input[type="file"]');if(p)p.value="",p.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 M=>{const I=Array.from(M.target.files||[]);for(const P of I){const b={name:P.name,raw:P,uid:Date.now()+Math.random()};Qe.value.push(b),await m(b)}M.target.value="",document.body.removeChild(h)},document.body.appendChild(h),h.click()}})},Hl=()=>{Ce.value>1&&Ce.value--},Tl=()=>{Ce.value===1?Qe.value.length>0&&!ua.value&&z():Ce.value===2&&(X(),Ce.value=3)},Ll=async p=>{await cr(p==null?void 0:p.row)},Tr=async({row:p,prop:h})=>{!p||!h||await cr(p,h)},cr=async(p,h)=>{var P,b;const M=p==null?void 0:p.id;if(!M){Wa.ElMessage.warning("暂无可预览数据");return}let I=Dl(c==null?void 0:c.index,M);if(!I||I.length===0){const re=sessionStorage.getItem("ocr_root_table_id"),ee=re!==null?Number(re):null;if(ee!=null&&ee!==""&&!Number.isNaN(ee)){const ie=Dl(ee,M);Array.isArray(ie)&&ie.length>0&&(Ol(c==null?void 0:c.index,M,ie),I=ie)}}if(!I||I.length===0){const re=(P=sa.getAllLeafNodes(we.value)||[])==null?void 0:P.filter(ie=>(ie==null?void 0:ie.type)!=="operate"&&(ie==null?void 0:ie.label)!=="操作"&&(ie==null?void 0:ie.prop)!=="operate"),ee=h||((b=re==null?void 0:re.find(ie=>(ie==null?void 0:ie.label)==="证书附件"))==null?void 0:b.prop);if(ee&&p[ee]){const ie=p[ee];let he=[],De="",He=!1;if(typeof ie=="string")try{const Be=JSON.parse(ie);Array.isArray(Be)&&(he=Be.map(va=>({name:(va==null?void 0:va.name)||(va==null?void 0:va.fileName)||"",url:(va==null?void 0:va.url)||""})).filter(va=>va.url||va.name),he.length>0&&(De=he[0].url||"",He=String(he[0].name).toLowerCase().endsWith(".pdf")||String(De).toLowerCase().endsWith(".pdf")))}catch{De=ie,He=String(ie).toLowerCase().endsWith(".pdf"),he=[{name:ie,url:ie}]}else Array.isArray(ie)&&(he=ie.map(Be=>({name:(Be==null?void 0:Be.name)||(Be==null?void 0:Be.fileName)||"",url:(Be==null?void 0:Be.url)||""})).filter(Be=>Be.url||Be.name),he.length>0&&(De=he[0].url||"",He=String(he[0].name).toLowerCase().endsWith(".pdf")||String(De).toLowerCase().endsWith(".pdf")));if(he.length>0||De){const Be={ts:Date.now(),versionId:String(Date.now()),label:new Date().toLocaleString(),certType:p.证书类型||"",certNo:p.证书编号||"",fileType:He?"pdf":"image",sourceUrl:He?De:"",images:he};I=[Be],Za(c==null?void 0:c.index,M,Be)}}}if(!I||I.length===0){Wa.ElMessage.warning("暂无可预览数据");return}Ea.value=I,Fa.value=!0},$r=p=>{Qe.value=Qe.value.filter((h,M)=>M!==p)},Rr=async(p,h,M)=>{var I,P,b,re,ee,ie,he,De,He,Be,va,ya,Ra,ja,da,Ya,ma,Ua,La,F,na;if(Ne(c.config,{type:K.TABLE,tableOperate:p})){if(je.value="",ye.value=!0,Pe.value=!0,Oe("onButtonClick",p,h),W.value=[],p==="删除")L.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var ea,Ae,B,Me;(ea=Q.value)!=null&&ea.find(We=>(We==null?void 0:We.id)===(h==null?void 0:h.id))?Q.value=(Ae=L.cloneDeep(Q.value))==null?void 0:Ae.filter(We=>(We==null?void 0:We.id)!==(h==null?void 0:h.id)):Q.value=eo(L.cloneDeep(Q.value),h);try{h!=null&&h.id&&((Me=(B=pe.value)==null?void 0:B.has)!=null&&Me.call(B,h==null?void 0:h.id))&&pe.value.delete(h.id)}catch{}ef(rn.value,Tn.value,h==null?void 0:h.id),Ge.setTableLoading(c==null?void 0:c.index),Oe("change",{content:Q.value,fixContent:[h],index:c==null?void 0:c.index,type:"delete",name:c==null?void 0:c.compName,buttonName:p,columns:we.value,relatedContents:c==null?void 0:c.related}),console.log(h,"item")});else if(p==="批量删除"){if(((I=Ml.value)==null?void 0:I.length)===0)return Wa.ElMessage.warning("请先勾选操作的数据");L.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(async()=>{var B,Me,We,la,ga;const ea=(B=Ml.value)==null?void 0:B.map(pa=>pa.id);Q.value=(Me=L.cloneDeep(Q.value))==null?void 0:Me.filter(pa=>!(ea!=null&&ea.includes(pa.id))),Ge.setTableLoading(c==null?void 0:c.index),Oe("change",{content:Q.value,fixContent:Ml.value,index:c==null?void 0:c.index,type:"delete",name:c==null?void 0:c.compName,buttonName:p,relatedContents:c==null?void 0:c.related,columns:we.value});const Ae=(ea||[]).filter(Boolean);if(Ae.length>0&&Ae.every(pa=>pa!=null&&pa!=="")){const pa=(Ml.value||[]).map(za=>{const ol={...za};return delete ol._isOCRRow,delete ol._ocrTableId,delete ol._isTemp,delete ol.tableEditType,delete ol.index,ol});await L.pageBatchDeleteApi({platId:parseInt((We=Bl.value)==null?void 0:We.plat_id),changeContents:[{tableName:((la=c==null?void 0:c.related)==null?void 0:la.find(za=>za==null?void 0:za.includes("content_")))||((ga=c==null?void 0:c.related)==null?void 0:ga.find(za=>za==null?void 0:za.includes("content"))),tableContents:pa}]})}})}else if(p==="复制新增"){Ie.value="复制新增",L.cloneDeep(h);const ea=(P=we.value)==null?void 0:P.find(Ae=>Ae==null?void 0:Ae.isMainKey);ea||((b=we.value)==null||b[0]),tr.value=h,Vt(!0)}else if(p==="新增")Ie.value="新增",Lt(""),fa.value=!0;else if(p==="编辑")Ie.value="编辑",Lt(h),fa.value=!0;else if(p==="查看")Ie.value="查看",Lt(h),ye.value=!1,Pe.value=!1,fa.value=!0;else if(p==="查看三维模型"){const ea={};for(let B in h)B!=="id"&&(ea[B]=h[B]);let Ae=(re=Object.values(ea))==null?void 0:re[1];ze.setTableShowThree(Ae)}else if(p==="切换视图")Gc();else if(((ee=M==null?void 0:M.extra)==null?void 0:ee.type)==="modelExample")Ie.value=p,Ue.value=!0;else if(p==="新建"){let ea=G.value,Ae=[];for(let ga in ea)ga!=null&&ga.includes(`loading${((ie=Bl.value)==null?void 0:ie.account)||((he=Bl.value)==null?void 0:he.账号)}`)&&(Ae=[...Ae,...ga]);let B=[];for(let ga in ea)ga!=null&&ga.includes(`updateLoading${((De=Bl.value)==null?void 0:De.account)||((He=Bl.value)==null?void 0:He.账号)}`)&&(B=[...B,...ga]);let Me=Ae==null?void 0:Ae.map(ga=>ga==null?void 0:ga.id);const We=B==null?void 0:B.map(ga=>ga==null?void 0:ga.id);Me=[...L.cloneDeep(Me),...We],(Me==null?void 0:Me.length)>0&&(Me!=null&&Me.every(ga=>ga!==null&&ga))&&await hr.batchDeleteInsofDataApi({ids:Me});const la=(Be=Je.value)==null?void 0:Be.find(ga=>(ga==null?void 0:ga.label)==="新建");await Pc(!1,la)}else if(p==="修改模板"){let ea=L.cloneDeep(_a).value;Ge.setRouteToChildPath(ea),ra.setActiveMenuPath(ea+x)}else if(p==="执行")Uo(p,h);else if(p==="导出paraform"){const ea=L.ElLoading.service({lock:!0,text:"正在导出paraform...",background:"rgba(0, 0, 0, 0.7)"});try{const Ae=["推力","真空","压力","温度","流量"],B=kl=>{var Cl,yl,Pl;return kl?typeof(kl==null?void 0:kl.value)=="string"?kl.value:((Pl=(yl=(Cl=kl==null?void 0:kl._custom)==null?void 0:Cl.value)==null?void 0:yl.value)==null?void 0:Pl.value)||"":""},Me=Array.isArray(An.value)?An.value:[],We=B(Me.find(kl=>(kl==null?void 0:kl.condition)==="child")),la=String(We||"").slice(0,8),ga=kl=>{if(kl==null)return"";const Cl=String(kl).trim();if(!Cl)return"";if(/^\d{8}$/.test(Cl))return Cl;const yl=Cl.match(/^(\d{4})[-\/.](\d{1,2})[-\/.](\d{1,2})$/);if(yl){const ur=yl[1],dr=yl[2].padStart(2,"0"),Ul=yl[3].padStart(2,"0");return`${ur}${dr}${Ul}`}const Pl=Cl.replace(/\D/g,"");return Pl.length>=8?Pl.slice(0,8):""},pa=async kl=>{var Cl,yl;if(!kl)return"";try{const Pl=await jr("试验任务/任务管理",!1),ur=(rr,vr=[])=>{if(!Array.isArray(rr))return vr;for(const er of rr)(er==null?void 0:er.comp)==="Table"&&(er!=null&&er.name)&&vr.push(er),Array.isArray(er==null?void 0:er.children)&&ur(er.children,vr),Array.isArray(er==null?void 0:er.tab)&&ur(er.tab,vr),Array.isArray(er==null?void 0:er.choice)&&ur(er.choice,vr);return vr},Ul=ur(Pl||[]).find(rr=>(rr==null?void 0:rr.name)==="任务列表"),Ql=((yl=(Cl=Ul==null?void 0:Ul.compData)==null?void 0:Cl.find(rr=>(rr==null?void 0:rr.key)==="tableContents"))==null?void 0:yl.contents)||[];if(!Array.isArray(Ql)||Ql.length===0)return"";const Ar=Ql.find(rr=>String((rr==null?void 0:rr["试验代号(名称)"])||"").slice(0,8)===kl);return ga(Ar==null?void 0:Ar.计划试验时间)}catch(Pl){return console.warn("获取任务列表计划试验时间失败:",Pl),""}},za=(_a.value||"").replace(/\/+$/,""),ol=We?`${za}/${We}`:za,Ga=await jr(ol||_a.value,!1),il=(kl,Cl=[])=>{if(!Array.isArray(kl))return Cl;for(const yl of kl)(yl==null?void 0:yl.comp)==="Table"&&(yl!=null&&yl.name)&&Ae.includes(yl.name)&&Cl.push(yl),Array.isArray(yl==null?void 0:yl.children)&&il(yl.children,Cl),Array.isArray(yl==null?void 0:yl.tab)&&il(yl.tab,Cl),Array.isArray(yl==null?void 0:yl.choice)&&il(yl.choice,Cl);return Cl},vl=il(Ga||[]),Rl=new Map;for(const kl of vl)kl!=null&&kl.name&&!Rl.has(kl.name)&&Rl.set(kl.name,kl);const qa=Ae.map(kl=>Rl.get(kl)).filter(Boolean);if(!qa||qa.length===0)return Wa.ElMessage.warning("未找到需要导出的表(推力、真空、压力、温度、流量)");const bl=kl=>{const Cl=new Map,yl=(Pl,ur=[])=>{if(Array.isArray(Pl))for(const dr of Pl){const Ul=((dr==null?void 0:dr.label)??"").toString().trim(),Ql=Ul?[...ur,Ul]:[...ur];if(Array.isArray(dr==null?void 0:dr.children)&&dr.children.length>0)yl(dr.children,Ql);else{const rr=((dr==null?void 0:dr.prop)??"").toString();if(!rr)continue;const vr=Ul||rr,er=(Ql.length>0?[...ur,vr]:[vr]).join(".");Cl.set(rr,er)}}};return yl(kl,[]),Cl},Ha=(kl,Cl)=>{const yl=bl(kl||[]),ur=(sa.getAllLeafNodes(kl||[])||[]).filter(Ul=>(Ul==null?void 0:Ul.prop)&&(Ul==null?void 0:Ul.type)!=="operate"&&(Ul==null?void 0:Ul.label)!=="操作"&&(Ul==null?void 0:Ul.prop)!=="operate"),dr=Array.isArray(Cl)?Cl:[];return dr.length===0?[]:dr.map(Ul=>{const Ql={};return ur.forEach(Ar=>{const rr=String(Ar.prop),vr=yl.get(rr)||String(Ar.label||Ar.prop);Ql[vr]=(Ul==null?void 0:Ul[rr])??""}),Ql})},al=qa.map(kl=>{var dr,Ul;const Cl=(kl==null?void 0:kl.compData)||[];let yl=(dr=Cl==null?void 0:Cl.find(Ql=>(Ql==null?void 0:Ql.key)==="header"))==null?void 0:dr.contents;Array.isArray(yl==null?void 0:yl[0])&&(yl=yl[0]);const Pl=((Ul=Cl==null?void 0:Cl.find(Ql=>(Ql==null?void 0:Ql.key)==="tableContents"))==null?void 0:Ul.contents)||[];if(!Array.isArray(yl)||yl.length===0||!Array.isArray(Pl)||Pl.length===0)return null;const ur=Ha(yl||[],Pl||[]);return!Array.isArray(ur)||ur.length===0?null:{类型:kl==null?void 0:kl.name,数据:ur}}).filter(Boolean);if(!al||al.length===0)return Wa.ElMessage.warning("没有可导出的数据(推力、真空、压力、温度、流量均为空)");const ll=await pa(la),pl={试验代号:la,试验日期:ll,ParaForm:al},Nl=await Gn().catch(()=>""),dl=await L.exportParaformApi(pl,Nl);if(((va=dl==null?void 0:dl.data)==null?void 0:va.code)===200&&((Ra=(ya=dl==null?void 0:dl.data)==null?void 0:ya.result)!=null&&Ra.Excel文件)){const kl=dl.data.result.Excel文件,Cl=await L.downloadAvatarApi({url:kl}),yl=new Blob([Cl.data],{type:"application/vnd.ms-excel"}),Pl=URL.createObjectURL(yl),ur=L.dayjs().format("YYYYMMDD"),Ul=`${(la||"UNKNOWN").trim()||"UNKNOWN"}_${ur}_paraform.xls`,Ql=document.createElement("a");Ql.href=Pl,Ql.download=Ul,Ql.style.display="none",document.body.appendChild(Ql),Ql.click(),setTimeout(()=>{document.body.removeChild(Ql),URL.revokeObjectURL(Pl)},100);const Ar=Array.isArray((da=(ja=dl==null?void 0:dl.data)==null?void 0:ja.result)==null?void 0:da.warnings)?dl.data.result.warnings:[];if(Ar.length>0){const rr=Ar.map((vr,er)=>`${er+1}. ${(vr==null?void 0:vr.field)||"未知字段"}:${(vr==null?void 0:vr.message)||""}`).join(`
24
- `);Wa.ElMessage.warning({message:`导出成功,但存在以下提示:
25
- ${rr}`,duration:5e3,showClose:!0})}else Wa.ElMessage.success("导出成功")}else Wa.ElMessage.error(((Ya=dl==null?void 0:dl.data)==null?void 0:Ya.message)||"导出失败")}catch(Ae){console.error("导出paraform失败:",Ae),Wa.ElMessage.error("导出失败:"+((Ae==null?void 0:Ae.message)||"未知错误"))}finally{ea.close()}}else if(p!=null&&p.includes("导出")&&p!=="导出paraform"){if(p==="导出选中"&&((ma=Ml.value)==null?void 0:ma.length)===0)return Wa.ElMessage.warning(`请先勾选${p}的数据`);if(p==="导出全部"&&((Ua=Q.value)==null?void 0:Ua.length)===0)return Wa.ElMessage.warning("暂无数据导出");let ea=["序号",...(F=(La=we.value)==null?void 0:La.map(We=>We==null?void 0:We.prop))==null?void 0:F.filter(We=>We!=="操作")],Ae=p==="导出全部"?Q.value:Ml.value;const B=["id","sort","tableEditType","create_time","update_time","source_table","create_user_id","update_user_id","department_id"];Ae=Ae==null?void 0:Ae.map(We=>Object.fromEntries(Object.entries(We).filter(([la])=>!B.includes(la)))),ea=["序号",...ea],Ae=Ae==null?void 0:Ae.map((We,la)=>({序号:la+1,...We}));let Me=(c==null?void 0:c.compName)||"表格信息";No(Ae,Me,ea,Me)}else if(p==="OCR识别")$e.value=!0,Qe.value=[],Ce.value=1,q.value.clear(),Le.value.clear(),Xe.value=0;else if(p==="迁移")gr.selectRow=h,gr.show=!0;else if(p==="生成方法")await bf(h);else if(((na=M==null?void 0:M.extra)==null?void 0:na.type)==="methodButton"){let ea;h!==""?ea=[h]:ea=L.cloneDeep(Q.value);const B={fixContent:await oi(ea,we==null?void 0:we.value),buttonName:"methodButton",relatedContents:c==null?void 0:c.related,columns:we.value,name:c==null?void 0:c.compName};Oe("change",B)}}},on=async(p,h)=>{var M,I,P,b,re,ee,ie,he,De,He,Be,va,ya,Ra,ja,da,Ya,ma,Ua,La;try{let F,na;const ea=(M=G.value[_a.value+x])==null?void 0:M.filter(za=>{var ol;return((ol=za==null?void 0:za.key)==null?void 0:ol.type)==="structureMethod"}),Ae=(I=G.value[_a.value+x])==null?void 0:I.filter(za=>{var ol;return((ol=za==null?void 0:za.key)==null?void 0:ol.type)==="structure"}),B=ea==null?void 0:ea.find(za=>{var ol,Ga;return((Ga=(ol=za==null?void 0:za.value)==null?void 0:ol.pageData)==null?void 0:Ga.method)==="保存"});if(!B)return;const Me=(ee=(re=G.value[(b=(P=B==null?void 0:B.value)==null?void 0:P.pageData)==null?void 0:b.path])==null?void 0:re.filter(za=>{var ol;return((ol=za==null?void 0:za.key)==null?void 0:ol.type)==="data"}))==null?void 0:ee.find(za=>{var ol,Ga,il,vl;return((Ga=(ol=za==null?void 0:za.value)==null?void 0:ol.tableData)==null?void 0:Ga.算法名称)===((vl=(il=B==null?void 0:B.value)==null?void 0:il.pageData)==null?void 0:vl.method)});if(!Me)return;const We={buttonName:(he=(ie=B==null?void 0:B.value)==null?void 0:ie.pageData)==null?void 0:he.method,api:(He=(De=Me==null?void 0:Me.value)==null?void 0:De.tableData)==null?void 0:He.算法体,content:Ae==null?void 0:Ae.map(za=>{var ol;return(ol=za==null?void 0:za.value)==null?void 0:ol.pageData}),extraContent:[],extraValues:(va=(Be=B==null?void 0:B.value)==null?void 0:Be.pageData)==null?void 0:va.data,methodName:(Ra=(ya=B==null?void 0:B.value)==null?void 0:ya.pageData)==null?void 0:Ra.path};if(!p)return;const la={...p,compData:(ja=p==null?void 0:p.compData)==null?void 0:ja.map(za=>{var ol;return(za==null?void 0:za.key)==="formContent"?{...za,contents:(ol=za==null?void 0:za.contents)==null?void 0:ol.map(Ga=>(Ga==null?void 0:Ga.prop)===h?{...Ga,value:""}:Ga)}:za})},ga={key:{pageKey:_a.value+x,parentTable:"",systemKey:sessionStorage.getItem("systemKey"),type:"structure"},value:{pageData:la}},pa=await Wa.axios.post(We.api,ga,{headers:{"Content-Type":"application/json"}});return((da=pa==null?void 0:pa.data)==null?void 0:da.code)===200&&(F=(ma=(Ya=pa==null?void 0:pa.data)==null?void 0:Ya.result)==null?void 0:ma.latestReportCode,na=(La=(Ua=pa==null?void 0:pa.data)==null?void 0:Ua.result)==null?void 0:La.status),{newMainKeyValue:F,newStatus:na}}catch(F){throw Wa.ElMessage.error(F),new Error(F)}},Xn=a.reactive({prop:"状态",value:""});a.ref(["系统自动生成信息","审批意见"]);const Jn=async(p,h,M)=>{var ie,he;let I=p==null?void 0:p[h==null?void 0:h.prop],P=1,b,re;const ee=L.cloneDeep(_a).value+x+I;if(ee){Xn.value="",b=(ie=G.value[ee])==null?void 0:ie.filter(Be=>{var va;return((va=Be==null?void 0:Be.key)==null?void 0:va.type)==="structure"});const De=b==null?void 0:b.find(Be=>{var va,ya,Ra;return((Ra=(ya=(va=Be==null?void 0:Be.value)==null?void 0:va.pageData)==null?void 0:ya.comp)==null?void 0:Ra.toUpperCase())==="FORM"});re={...(he=De==null?void 0:De.value)==null?void 0:he.pageData,id:De==null?void 0:De.id};const He=await on(re,h==null?void 0:h.prop);if(Xn.value=He==null?void 0:He.newStatus,He!=null&&He.newMainKeyValue)return He==null?void 0:He.newMainKeyValue}if(Q.value.some(De=>(De==null?void 0:De[h==null?void 0:h.prop])===I)){const De=I;for(;Q.value.some(He=>(He==null?void 0:He[h==null?void 0:h.prop])===`${De}(${P})`);)P++;I=`${De}(${P})`}return I},Pc=async(p,h,M)=>{var b,re,ee,ie;let I,P;if(await Jn(M==null?void 0:M.data,M==null?void 0:M.firstCol),I=L.cloneDeep(_a).value+x,P=L.cloneDeep(I)+`loading${((b=Bl.value)==null?void 0:b.account)||((re=Bl.value)==null?void 0:re.账号)}`,h){const he=(ie=(ee=G.value[P])==null?void 0:ee.filter(De=>{var He;return((He=De==null?void 0:De.key)==null?void 0:He.parentTable)===""}))==null?void 0:ie.map(De=>{var He;return{id:De==null?void 0:De.id,...(He=De==null?void 0:De.value)==null?void 0:He.pageData}});(he==null?void 0:he.length)>0||await sa.loadingConstruct(I,P,null,null,null),Ge.setRouteToChildPath(L.cloneDeep(_a).value),ra.setActiveMenuPath(P)}else Ge.setRouteToChildPath(L.cloneDeep(_a).value),ra.setActiveMenuPath(P)},Fc=()=>{Ye.value=!1,Da.value=[],Sa.value=!1},Lt=p=>{var b,re,ee,ie,he,De,He,Be,va,ya,Ra,ja,da,Ya,ma,Ua,La,F,na,ea,Ae;const h=[];ue.value=L.cloneDeep(we.value),(re=sa.getColumnChild((b=L.cloneDeep(we.value))==null?void 0:b.filter(B=>(B==null?void 0:B.label)!=="操作")))==null||re.forEach((B,Me)=>{var We,la,ga;B!=null&&B.formType&&((We=B==null?void 0:B.formType)==null?void 0:We.toUpperCase())==="SELECT"||B!=null&&B.menuId?h.push({label:(la=B==null?void 0:B.prop)!=null&&la.includes(".")?B==null?void 0:B.prop:(B==null?void 0:B.label)??(B==null?void 0:B.prop)??"",name:(B==null?void 0:B.prop)??"t"+Me,prop:B==null?void 0:B.prop,type:"Select",value:(p==null?void 0:p[B==null?void 0:B.prop])??(B==null?void 0:B.value)??"",id:(B==null?void 0:B.id)??Me,contents:(B==null?void 0:B.options)??[],width:1,isFormColHidden:B==null?void 0:B.isFormColHidden,relatedValueId:B==null?void 0:B.relatedValueId,disabled:B==null?void 0:B.disabled,menus:B==null?void 0:B.menus,groups:B==null?void 0:B.groups,words:B==null?void 0:B.words,allSelectionContents:(B==null?void 0:B.allSelectionContents)??[],filterContent:B==null?void 0:B.filterContent,disabled:(B==null?void 0:B.prop)==="disabled"?!0:B==null?void 0:B.disabled,filter:B==null?void 0:B.filter,bindMenus:B==null?void 0:B.bindMenus,isMainPath:B==null?void 0:B.isMainPath,required:(B==null?void 0:B.required)??!1,relatedContents:B==null?void 0:B.relatedContents,mainKey:B==null?void 0:B.mainKey,relatedContents:B==null?void 0:B.relatedContents,functionName:B==null?void 0:B.functionName,functionRelatedWords:B==null?void 0:B.functionRelatedWords,calculatorFilter:B==null?void 0:B.calculatorFilter}):h.push({label:(ga=B==null?void 0:B.prop)!=null&&ga.includes(".")?B==null?void 0:B.prop:(B==null?void 0:B.label)??(B==null?void 0:B.prop)??"",prop:B==null?void 0:B.prop,name:(B==null?void 0:B.prop)??"t"+Me,type:!(B!=null&&B.formType)||(B==null?void 0:B.formType)===""?"Input":B==null?void 0:B.formType,value:(B==null?void 0:B.formType)==="Upload"?(p==null?void 0:p[B==null?void 0:B.prop])??"{}":(p==null?void 0:p[B==null?void 0:B.prop])??(B==null?void 0:B.value)??"",id:(B==null?void 0:B.id)??Me,contents:(B==null?void 0:B.options)??[],width:1,isFormColHidden:B==null?void 0:B.isFormColHidden,disabled:(B==null?void 0:B.prop)==="disabled"?!0:B==null?void 0:B.disabled,relatedValueId:B==null?void 0:B.relatedValueId,menus:B==null?void 0:B.menus,groups:B==null?void 0:B.groups,words:B==null?void 0:B.words,filter:B==null?void 0:B.filter,bindMenus:B==null?void 0:B.bindMenus,isMainPath:B==null?void 0:B.isMainPath,required:(B==null?void 0:B.required)??!1,relatedContents:B==null?void 0:B.relatedContents,mainKey:B==null?void 0:B.mainKey,relatedContents:B==null?void 0:B.relatedContents,functionName:B==null?void 0:B.functionName,functionRelatedWords:B==null?void 0:B.functionRelatedWords,calculatorFilter:B==null?void 0:B.calculatorFilter})}),p===""||!p||(je.value=(p==null?void 0:p.id)??"");let M=sa.getColumnChild((ee=L.cloneDeep(we.value))==null?void 0:ee.filter(B=>(B==null?void 0:B.label)!=="操作"));ce.value&&((ie=ce.value)==null?void 0:ie.length)>0&&(ce.value=(he=L.cloneDeep(ce).value)==null?void 0:he.map(B=>{var We;let Me=(B==null?void 0:B.prop)||((We=M==null?void 0:M.find(la=>(la==null?void 0:la.label)===(B==null?void 0:B.label)))==null?void 0:We.prop);return Me&&(B.value=p[Me]),B})),Ee.value=ce.value&&((De=ce.value)==null?void 0:De.length)>0?sa.getTableFormToForm(ce.value):h,Ee.value=((He=Ee.value)==null?void 0:He.map(B=>({...B,disabled:(B==null?void 0:B.prop)==="disabled"?!0:B==null?void 0:B.disabled})))??Ee.value;let I=[],P=((ya=(va=(Be=c.itemData)==null?void 0:Be.filter(B=>(B==null?void 0:B.key)==="filter"))==null?void 0:va[0])==null?void 0:ya.contents)??"";if(P=Aa.analyzeSplitToContent(P,","),(P==null?void 0:P.length)>0&&(I=P.flat()),(I==null?void 0:I.length)>0){let B=I==null?void 0:I.filter(pa=>pa==null?void 0:pa.includes("@Type"));if(B=B==null?void 0:B[(B==null?void 0:B.length)-1],(B==null?void 0:B[(B==null?void 0:B.length)-1])===","&&(B=B==null?void 0:B.slice(0,(B==null?void 0:B.length)-1)),B){let pa=(ja=(Ra=B==null?void 0:B.replace("=",$))==null?void 0:Ra.split($))==null?void 0:ja[1];((da=pa==null?void 0:pa.trim())==null?void 0:da.toUpperCase())==="MANUAL"&&(c==null||c.index,Ee.value=(Ya=Ee.value)==null?void 0:Ya.map((za,ol)=>za))}let Me=(ma=Ee.value)==null?void 0:ma.filter(pa=>pa==null?void 0:pa.mainKey),We;Me==null||Me.forEach(pa=>{var ol;if(We!==void 0)return;let za=pa==null?void 0:pa.menus;((ol=Me==null?void 0:Me.filter(Ga=>Ga==null?void 0:Ga.mainKey))==null?void 0:ol.length)>1&&(We=za,pa==null||pa.groups)});let la=[],ga=new Map;if(Me==null||Me.forEach(pa=>{var za,ol,Ga,il,vl,Rl,qa,bl,Ha,al,ll,pl,Nl;if((za=pa==null?void 0:pa.prop)!=null&&za.includes(".")){let dl=[];ga.get(((Ga=(ol=pa==null?void 0:pa.prop)==null?void 0:ol.split("."))==null?void 0:Ga[0])+(pa!=null&&pa.isMainPath?0:1)+((il=pa==null?void 0:pa.groups)==null?void 0:il[0]))&&(dl=ga.get(((Rl=(vl=pa==null?void 0:pa.prop)==null?void 0:vl.split("."))==null?void 0:Rl[0])+(pa!=null&&pa.isMainPath?0:1)+((qa=pa==null?void 0:pa.groups)==null?void 0:qa[0]))),dl.push(pa),ga.set(((Ha=(bl=pa==null?void 0:pa.prop)==null?void 0:bl.split("."))==null?void 0:Ha[0])+(pa!=null&&pa.isMainPath?0:1)+((al=pa==null?void 0:pa.groups)==null?void 0:al[0]),dl)}else{let dl=[];ga.get("normal"+(pa!=null&&pa.isMainPath?0:1)+((ll=pa==null?void 0:pa.groups)==null?void 0:ll[0]))&&(dl=ga.get("normal"+(pa!=null&&pa.isMainPath?0:1)+((pl=pa==null?void 0:pa.groups)==null?void 0:pl[0]))),dl.push(pa),ga.set("normal"+(pa!=null&&pa.isMainPath?0:1)+((Nl=pa==null?void 0:pa.groups)==null?void 0:Nl[0]),dl)}}),la=Array.from(ga.values()),(la==null?void 0:la.length)>0)for(let pa in la){let za=la==null?void 0:la[pa];if((za==null?void 0:za.length)!==1){if((za==null?void 0:za.length)>1){let ol=za==null?void 0:za.map(al=>al==null?void 0:al.prop),Ga=za==null?void 0:za.map(al=>al==null?void 0:al.label),il=za==null?void 0:za.map(al=>al==null?void 0:al.value),vl=(Ua=L.cloneDeep(za))==null?void 0:Ua[0],Rl=(La=Ee.value)==null?void 0:La.findIndex(al=>(al==null?void 0:al.prop)===(vl==null?void 0:vl.prop)),qa=(F=Ee.value)==null?void 0:F.slice(0,Rl),bl=(ea=Ee.value)==null?void 0:ea.slice(Rl,(na=Ee.value)==null?void 0:na.length);vl.label=Ga==null?void 0:Ga.join("·"),vl.value=il==null?void 0:il.join(" "),vl.value.trim()===""&&(vl.value=""),vl.prop=ol==null?void 0:ol.join("·");let Ha=za==null?void 0:za.map(al=>{var ll;return(ll=al==null?void 0:al.words)==null?void 0:ll.join(".")});vl.relatedWords=Ha,vl.usingType="parent",bl.unshift(vl),Ee.value=[...qa,...bl],Ee.value=(Ae=Ee.value)==null?void 0:Ae.map(al=>(ol!=null&&ol.find(ll=>ll===(al==null?void 0:al.prop))&&(al.isFormColHidden=!0,al.relatedWords=Ha),al))}}}}},jc=()=>{var h;const p=(h=s.value)==null?void 0:h.$el;p&&Aa.Sortable.create(p,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:M=>{var re;const{oldIndex:I,newIndex:P}=M;if(I===P)return;const b=Wn.value.splice(I,1)[0];Wn.value.splice(P,0,b),we.value=(re=we.value)==null?void 0:re.slice().sort((ee,ie)=>{if(ee.label==="操作")return 1;if(ie.label==="操作")return-1;const he=Wn.value.findIndex(He=>He.label===ee.label),De=Wn.value.findIndex(He=>He.label===ie.label);return he-De})}})};a.onMounted(()=>{ba.value=window.innerWidth-240*2});const Hc=()=>{a.nextTick(()=>{jc()})},Yo=(p,h)=>{var I;if(!p&&!(p!=null&&p.children))return{contents:p,currentSelectContents:void 0};let M;return p.children=(I=p.children)==null?void 0:I.map(P=>{var b,re;if((P==null?void 0:P.id)===je.value){let ee={};for(let ie in P){let he=(b=h==null?void 0:h.find(De=>(De==null?void 0:De.prop)===ie))==null?void 0:b.label;he?ee[ie]=(re=tr.value)==null?void 0:re[he]:ee[ie]=P[ie]??""}P=Object.assign(ee,tr.value),M=P}else{let ee=Yo(P,h);P=ee==null?void 0:ee.contents,M=ee==null?void 0:ee.currentSelectContents}return P}),{contents:p,currentSelectContents:M}},wi=(p,h)=>{let M,I;return p!=null&&p.find(P=>(P==null?void 0:P.id)===je.value)?M=p==null?void 0:p.map(P=>{var b,re,ee;if((P==null?void 0:P.id)===je.value){let ie={};for(let De in P){let He=(b=h==null?void 0:h.find(Be=>(Be==null?void 0:Be.prop)===De))==null?void 0:b.label;He?ie[De]=((re=tr.value)==null?void 0:re[He])??"":ie[De]=P[De]??""}let he=tr.value;for(let De in ie)(ee=tr.value)!=null&&ee[De]||(he[De]=(ie==null?void 0:ie[De])??"");P=he,I=P}return P}):M=p==null?void 0:p.map(P=>{var b,re,ee,ie;if((P==null?void 0:P.id)===je.value){let he={};for(let De in P){let He=(b=h==null?void 0:h.find(Be=>(Be==null?void 0:Be.prop)===De))==null?void 0:b.label;He?he[De]=(re=tr.value)==null?void 0:re[He]:he[De]=P[De]??""}P=Object.assign(he,tr.value),I=P}else P=(ee=Yo(P,h))==null?void 0:ee.contents,I=(ie=Yo(P,h))==null?void 0:ie.currentSelectContents;return P}),{newContents:M,currentSelectContents:I}},_i=(p,h,M)=>{var I,P;return p[h==null?void 0:h.prop]=M,typeof p.id=="number"&&(p.id=(I=p.id)==null?void 0:I.toString()),p.children&&((P=p.children)==null?void 0:P.length)>0&&(p.children=p.children.map(_i)),p},Ci=p=>{var M;const h=[];return h.push({...p}),p!=null&&p.children&&Array.isArray(p.children)&&((M=p.children)==null||M.forEach(I=>{h.push(...Ci(I))})),(h==null?void 0:h.length)>0?h==null?void 0:h.map(I=>{const P={...I};return delete P.children,P}):[]},Vt=async(p=!0,h,M)=>{var he,De,He,Be,va,ya,Ra,ja,da,Ya,ma,Ua,La,F,na,ea,Ae,B,Me,We,la,ga,pa,za,ol,Ga,il,vl,Rl,qa,bl;if(tr.value){const Ha=(De=sa.getColumnChild((he=L.cloneDeep(we.value))==null?void 0:he.filter(al=>(al==null?void 0:al.label)!=="操作")))==null?void 0:De.filter(al=>(al==null?void 0:al.required)===!0);for(let al=0;al<((Ha==null?void 0:Ha.length)??0);al++){const ll=Ha[al],pl=ll==null?void 0:ll.prop,Nl=(ll==null?void 0:ll.label)??pl,dl=(He=tr.value)==null?void 0:He[pl];if(dl===""||dl===null||dl===void 0||Array.isArray(dl)&&dl.length===0){Wa.ElMessage.error(`${Nl}不能为空`);return}}}let I=sa.getColumnChild((Be=L.cloneDeep(we.value))==null?void 0:Be.filter(Ha=>(Ha==null?void 0:Ha.label)!=="操作")),P,b=L.cloneDeep(Q.value);if(!tr.value){fa.value=!1;return}if(je.value===""){ca.value++;let Ha;Ha={id:ca.value.toString()},Ha!=null&&Ha.children&&(Ha={...Ha,children:(va=Ha.children)==null?void 0:va.map(al=>_i(al,h,M))}),b.push(Object.assign(tr.value,Ha)),P=Object.assign(tr.value,Ha)}else b=(ya=wi(b,I))==null?void 0:ya.newContents,P=(Ra=wi(b,I))==null?void 0:Ra.currentSelectContents;const re=(ja=c.itemData)==null?void 0:ja.filter(Ha=>(Ha==null?void 0:Ha.key)==="childTree")[0];if(((da=re==null?void 0:re.contents)==null?void 0:da.length)>0){Ie.value="编辑";const Ha=[];b==null||b.forEach((pl,Nl)=>{var kl;let dl={};if(Array.isArray(pl)){let Cl=[];pl==null||pl.filter(yl=>!(yl!=null&&yl.id)).forEach((yl,Pl)=>{var ur,dr,Ul,Ql,Ar,rr,vr;if((dr=(ur=xr.value)==null?void 0:ur[Pl])!=null&&dr.prop&&!Array.isArray(yl)){let er={};er[xr.value[Pl].column]=yl,Ba!=null&&Ba.value&&((Ul=Ba==null?void 0:Ba.value)==null?void 0:Ul.length)>0&&((Ql=Ba==null?void 0:Ba.value)!=null&&Ql.find(qr=>JSON.stringify(qr==null?void 0:qr[0])===JSON.stringify(er)))&&(Cl=(Ar=Ba==null?void 0:Ba.value)==null?void 0:Ar.find(qr=>JSON.stringify(qr==null?void 0:qr[0])===JSON.stringify(er))),Cl&&Cl.length>0?dl[xr.value[Pl].prop]=Cl!=null&&Cl.find(qr=>{var Vn;return((Vn=Object.keys(qr))==null?void 0:Vn[0])===xr.value[Pl].column})?(rr=Cl==null?void 0:Cl.find(qr=>{var Vn;return((Vn=Object.keys(qr))==null?void 0:Vn[0])===xr.value[Pl].column}))==null?void 0:rr[xr.value[Pl].column]:yl:dl[xr.value[Pl].prop]=yl}else Array.isArray(yl)&&((vr=xr.value[Pl])!=null&&vr.prop?dl[xr.value[Pl].prop]=yl:dl.children=ii(yl,xr.value))})}else dl=pl;if(Array.isArray(pl)&&pl.some(Cl=>Cl==null?void 0:Cl.id)){const Cl=(kl=pl==null?void 0:pl.find(yl=>yl.id))==null?void 0:kl.id;Ha.push(Object.assign(dl,{id:Gt(Cl)}))}else dl.id?Ha.push(dl):Ha.push(Object.assign(dl,{id:Nl.toString()}))});const al=(Q.value||[]).map(pl=>String(pl==null?void 0:pl.id)),ll=Xt(Ha,al);Q.value=Bi(ll,re,we.value)}Si(Q.value),rn.value=Q.value;const ee=lf(rn.value,Tn.value,b);let ie=[];if(Ja.value?(ie=(Ya=L.cloneDeep(Ja).value.singleContent)==null?void 0:Ya.filter(Ha=>(Ha==null?void 0:Ha.id)!==(P==null?void 0:P.id)),ie.push(P)):ie=[P],Gl.value){const Ha={content:ee,singleContent:((ma=re==null?void 0:re.contents)==null?void 0:ma.length)>0?ie==null?void 0:ie.flatMap(Ci):ie,index:c==null?void 0:c.index,buttonName:"编辑",column:we.value,parentTableId:c==null?void 0:c.parentTableId};Ge.setCacheUpdatingData(Ha)}if((Ua=we.value)==null||Ua.forEach(Ha=>{(Ha==null?void 0:Ha.formType)==="Upload"&&(P[Ha.prop]=P[Ha.prop]===""?"{}":typeof P[Ha.prop]!="string"?JSON.stringify(P[Ha.prop]):P[Ha.prop])}),p){(ea=(na=(F=(La=c.itemData)==null?void 0:La.find(ll=>(ll==null?void 0:ll.key)==="filterAllType"))==null?void 0:F.value)==null?void 0:na.find(ll=>(ll==null?void 0:ll.value)==="onConditionContents"))==null||ea.content;let Ha=(Ae=c.itemData)==null?void 0:Ae.filter(ll=>(ll==null?void 0:ll.key)==="filterAllType");Ha=Array.from(new Map(Ha.filter(Boolean).map((ll,pl)=>[ll.value,{...ll,_idx:pl}])).values()).sort((ll,pl)=>ll._idx-pl._idx).map(({_idx:ll,...pl})=>pl),Ha=(B=Ha==null?void 0:Ha[(Ha==null?void 0:Ha.length)-1])==null?void 0:B.value;const al={fixContent:[P],buttonName:Ie.value,relatedContents:c==null?void 0:c.related,columns:we.value,name:c==null?void 0:c.compName};Ge.setTableLoading(c==null?void 0:c.index),fa.value=!1,tr.value=void 0,Oe("change",al)}if((la=(We=(Me=Ee.value)==null?void 0:Me[0])==null?void 0:We.optionUrl)!=null&&la.menuId){fa.value=!1;let Ha=(ga=c.itemData)==null?void 0:ga.filter(al=>(al==null?void 0:al.key)==="filterAllType");if((Ha==null?void 0:Ha.length)>0){let al=Ha==null?void 0:Ha.map(Nl=>Nl==null?void 0:Nl.value),ll=(ol=(za=(pa=al.flat().find(Nl=>{var dl;return(dl=Nl==null?void 0:Nl.content)==null?void 0:dl.includes("@Num")}))==null?void 0:pa.content)==null?void 0:za.split(":"))==null?void 0:ol[1];((vl=(il=(Ga=al.flat().find(Nl=>{var dl;return(dl=Nl==null?void 0:Nl.content)==null?void 0:dl.includes("@Type:")}))==null?void 0:Ga.content)==null?void 0:il.split(":"))==null?void 0:vl[1])!=="Manual"&&(ll=parseInt(ll),Q.value=(bl=Q.value)==null?void 0:bl.slice(((Rl=Q.value)==null?void 0:Rl.length)-ll,(qa=Q.value)==null?void 0:qa.length))}}};a.onUnmounted(()=>{we.value=[],Q.value=[],ue.value=[],wa.value=[],ce.value=[],xa.value=[],Da.value=[],Ze.value=[],Ee.value=[],Ml.value=[],s.value=null,wn.value=""});const ao=async(p,h,M)=>{var va,ya,Ra,ja,da,Ya,ma,Ua,La,F,na,ea,Ae;Vl.value=(M==null?void 0:M.prop)??(M==null?void 0:M.property);const I=L.cloneDeep(c.itemData),P=((va=I==null?void 0:I.find(B=>(B==null?void 0:B.key)==="header"))==null?void 0:va.contents)??[];let b=P==null?void 0:P.find((B,Me)=>{var We,la,ga;return(B==null?void 0:B.prop)===Vl.value||(B==null?void 0:B.label)===Vl.value||(Me==null?void 0:Me.toString())===((ga=(la=(We=Vl.value)==null?void 0:We.split("a"))==null?void 0:la[1])==null?void 0:ga.toString())});const re=sa.getColumnChild((ya=L.cloneDeep(we.value))==null?void 0:ya.filter(B=>(B==null?void 0:B.label)!=="操作"));if(b||(b=re==null?void 0:re.find(B=>(B==null?void 0:B.prop)===Vl.value||(B==null?void 0:B.label)===Vl.value)),b&&!((Ra=b==null?void 0:b.menus)!=null&&Ra.length)&&!((ja=b==null?void 0:b.groups)!=null&&ja.length)&&!((da=b==null?void 0:b.words)!=null&&da.length)){const B=(Ya=Ee.value)==null?void 0:Ya.find(Me=>(Me==null?void 0:Me.prop)===Vl.value);B&&(b={...b,menus:(B==null?void 0:B.menus)??(b==null?void 0:b.menus),groups:(B==null?void 0:B.groups)??(b==null?void 0:b.groups),words:(B==null?void 0:B.words)??(b==null?void 0:b.words),bindMenus:(B==null?void 0:B.bindMenus)??(b==null?void 0:b.bindMenus),isMainPath:(B==null?void 0:B.isMainPath)??(b==null?void 0:b.isMainPath),relatedContents:(B==null?void 0:B.relatedContents)??(b==null?void 0:b.relatedContents),endChildMenu:(B==null?void 0:B.endChildMenu)??(b==null?void 0:b.endChildMenu)})}if(b&&((ma=Ee==null?void 0:Ee.value)==null||ma.forEach(B=>{var Me,We,la,ga,pa;(B==null?void 0:B.prop)===(b==null?void 0:b.prop)&&(B!=null&&B.endChildMenu)&&((Me=b==null?void 0:b.prop)!=null&&Me.includes(".")&&((la=(We=b==null?void 0:b.prop)==null?void 0:We.split("."))==null?void 0:la[0])!==((pa=(ga=B==null?void 0:B.prop)==null?void 0:ga.split("."))==null?void 0:pa[0])?b.endChildMenu=B==null?void 0:B.value:b.endChildMenu=B==null?void 0:B.endChildMenu)})),!b)return;const ee=Vl.value,ie=(Ua=Q.value)==null?void 0:Ua.findIndex(B=>(B==null?void 0:B.id)===(h==null?void 0:h.id));ie!==-1&&ee&&(Q.value[ie]={...Q.value[ie],[ee]:p});const he=B=>{Array.isArray(B)&&B.forEach(Me=>{Array.isArray(Me==null?void 0:Me.allSelectionContents)&&Me.allSelectionContents.length>0&&(Me.contactValue=Q.value[ie]??h),Array.isArray(Me==null?void 0:Me.children)&&Me.children.length>0&&he(Me.children)})};he(we.value),b.value=p,b.endChildMenu=b.endChildMenu||"";let De=b!=null&&b.isMainPath&&(b!=null&&b.mainKey)?b==null?void 0:b.value:"";const He=B=>{Array.isArray(B)&&B.forEach(Me=>{var la,ga;if(((Me==null?void 0:Me.type)==="Select"||(Me==null?void 0:Me.formType)&&Me.formType.toUpperCase()==="SELECT"||(Me==null?void 0:Me.columnType)&&Me.columnType.toUpperCase()==="SELECT")&&Array.isArray(Me==null?void 0:Me.menus)&&Me.menus.length>0&&Me.menus[Me.menus.length-1]===""&&(b!=null&&b.isMainPath)&&(b!=null&&b.mainKey)){const pa=(la=Me==null?void 0:Me.prop)!=null&&la.includes(".")?Me.prop.split(".")[0]:null,za=(ga=b==null?void 0:b.prop)!=null&&ga.includes(".")?b.prop.split(".")[0]:null;(!pa||!za||pa===za)&&(Me.endChildMenu=De)}Array.isArray(Me==null?void 0:Me.children)&&Me.children.length>0&&He(Me.children)})};if(He(we.value),!!(b!=null&&b.mainKey)&&Array.isArray(b==null?void 0:b.menus)&&(b==null?void 0:b.menus.length)>0&&(b!=null&&b.value)&&(b==null?void 0:b.value)!==""){let B=b!=null&&b.relatedContents&&((La=b==null?void 0:b.relatedContents)==null?void 0:La.length)>0?(F=b==null?void 0:b.relatedContents)==null?void 0:F.find(Me=>{var We,la,ga,pa;return(Me==null?void 0:Me[(pa=(We=b==null?void 0:b.prop)==null?void 0:We.split("."))==null?void 0:pa[((ga=(la=b==null?void 0:b.prop)==null?void 0:la.split("."))==null?void 0:ga.length)-1]])===(b==null?void 0:b.value)}):await es(b);if(B){const Me={...h};re==null||re.forEach(We=>{var la,ga,pa,za,ol,Ga,il,vl,Rl,qa,bl,Ha,al,ll,pl,Nl;(We==null?void 0:We.prop)!==(b==null?void 0:b.prop)&&(b!=null&&b.relatedContents&&((la=b==null?void 0:b.relatedContents)==null?void 0:la.length)>0?(ga=We==null?void 0:We.prop)!=null&&ga.includes(".")&&((za=(pa=We==null?void 0:We.prop)==null?void 0:pa.split("."))==null?void 0:za[0])===((Ga=(ol=b==null?void 0:b.prop)==null?void 0:ol.split("."))==null?void 0:Ga[0])?Me[We.prop]=B[(qa=(il=We==null?void 0:We.prop)==null?void 0:il.split("."))==null?void 0:qa[((Rl=(vl=We==null?void 0:We.prop)==null?void 0:vl.split("."))==null?void 0:Rl.length)-1]]??Me[We.prop]:Me[We.prop]=(B==null?void 0:B[We.prop])??Me[We.prop]:Aa.same((b==null?void 0:b.menus)??[],(We==null?void 0:We.menus)??[])&&Aa.same((b==null?void 0:b.groups)??[],(We==null?void 0:We.groups)??[])&&!Aa.same((b==null?void 0:b.words)??[],(We==null?void 0:We.words)??[])?(bl=We==null?void 0:We.prop)!=null&&bl.includes(".")&&((al=(Ha=We==null?void 0:We.prop)==null?void 0:Ha.split("."))==null?void 0:al[0])!==((pl=(ll=b==null?void 0:b.prop)==null?void 0:ll.split("."))==null?void 0:pl[0])||(Me[We.prop]=(B==null?void 0:B[(Nl=We==null?void 0:We.words)==null?void 0:Nl.join(".")])??(B==null?void 0:B[We.prop])??Me[We.prop]):(!(We!=null&&We.isMainPath)&&Aa.same((b==null?void 0:b.bindMenus)??[],(We==null?void 0:We.bindMenus)??[]),Me[We.prop]=(B==null?void 0:B[We.prop])??Me[We.prop]))}),Q.value=(na=L.cloneDeep(Q.value))==null?void 0:na.map(We=>(We==null?void 0:We.id)===(h==null?void 0:h.id)?{...Me,id:We==null?void 0:We.id}:We)}}if((ea=b==null?void 0:b.optionUrl)!=null&&ea.menuSelect){let B="";re==null||re.forEach(la=>{var ga,pa,za,ol,Ga;B===""&&((za=(pa=(ga=la==null?void 0:la.optionUrl)==null?void 0:ga.groupSelect)==null?void 0:pa[1])!=null&&za.includes("["))&&(B=(Ga=(ol=la==null?void 0:la.optionUrl)==null?void 0:ol.groupSelect)==null?void 0:Ga[1])});let Me=await si(b),We;if(Me==null||Me.forEach(la=>{var ga,pa,za,ol,Ga,il,vl,Rl,qa,bl;B===((pa=(ga=b==null?void 0:b.optionUrl)==null?void 0:ga.groupSelect)==null?void 0:pa[1])&&((Ga=(ol=(za=b==null?void 0:b.optionUrl)==null?void 0:za.groupSelect)==null?void 0:ol[1])!=null&&Ga.includes("["))&&((bl=L.cloneDeep(la))==null?void 0:bl[(qa=(Rl=(vl=(il=b==null?void 0:b.optionUrl)==null?void 0:il.groupSelect)==null?void 0:vl[1])==null?void 0:Rl.replaceAll("[",""))==null?void 0:qa.replaceAll("]","")])===(b==null?void 0:b.value)&&(We=la)}),We){const la={...h};re==null||re.forEach(ga=>{var pa,za,ol,Ga,il,vl,Rl,qa,bl,Ha,al;(We!=null&&We[ga==null?void 0:ga.label]||We!=null&&We[(Ga=(ol=(za=(pa=ga==null?void 0:ga.optionUrl)==null?void 0:pa.groupSelect)==null?void 0:za[1])==null?void 0:ol.replaceAll("[",""))==null?void 0:Ga.replaceAll("]","")])&&((Rl=(vl=(il=ga==null?void 0:ga.optionUrl)==null?void 0:il.groupSelect)==null?void 0:vl[1])!=null&&Rl.includes("["))&&(la[ga.prop]=(We==null?void 0:We[ga==null?void 0:ga.label])||(We==null?void 0:We[(al=(Ha=(bl=(qa=ga==null?void 0:ga.optionUrl)==null?void 0:qa.groupSelect)==null?void 0:bl[1])==null?void 0:Ha.replaceAll("[",""))==null?void 0:al.replaceAll("]","")]))}),Q.value=(Ae=L.cloneDeep(Q.value))==null?void 0:Ae.map(ga=>(ga==null?void 0:ga.id)===(h==null?void 0:h.id)?{...la,id:ga==null?void 0:ga.id}:ga)}}},Uc=async p=>{var De,He,Be,va,ya,Ra,ja,da,Ya,ma,Ua,La;if(!p)return;tr.value=p;let h=L.cloneDeep(c.itemData);h==null||h.map(F=>{var na,ea,Ae,B;return(F==null?void 0:F.key)==="header"&&(Array.isArray((na=F.contents)==null?void 0:na[0])?F.contents=(Ae=sa.getColumnChild((ea=F.contents)==null?void 0:ea[0]))==null?void 0:Ae.map((Me,We)=>{var la,ga,pa,za,ol,Ga;return((pa=(ga=(la=Ee.value)==null?void 0:la.find(il=>(il==null?void 0:il.prop)===(Me==null?void 0:Me.prop)))==null?void 0:ga.optionUrl)==null?void 0:pa.multiple)===!0&&!Array.isArray((za=Object.values(p))==null?void 0:za[We])?Me.value=[(ol=Object.values(p))==null?void 0:ol[We]]:Me.value=(Ga=Object.values(p))==null?void 0:Ga[We],Me}):F.contents=(B=F.contents)==null?void 0:B.map((Me,We)=>{var la,ga,pa,za,ol,Ga;return((pa=(ga=(la=Ee.value)==null?void 0:la.find(il=>(il==null?void 0:il.prop)===(Me==null?void 0:Me.prop)))==null?void 0:ga.optionUrl)==null?void 0:pa.multiple)===!0&&!Array.isArray((za=Object.values(p))==null?void 0:za[We])?Me.value=[(ol=Object.values(p))==null?void 0:ol[We]]:Me.value=(Ga=Object.values(p))==null?void 0:Ga[We],Me})),F});let M=Ee.value,I=(De=h==null?void 0:h.find(F=>(F==null?void 0:F.key)==="header"))==null?void 0:De.contents;if(M=M==null?void 0:M.map(F=>{var na;return F.value=F.value??((na=I==null?void 0:I.find((ea,Ae)=>(ea==null?void 0:ea.prop)===(F==null?void 0:F.name)))==null?void 0:na.value),F}),!fr.value)return;let P=L.cloneDeep(Vl.value);(He=Vl.value)!=null&&He.includes("·")&&(Vl.value=(va=(Be=Vl.value)==null?void 0:Be.split("·"))==null?void 0:va[0]);let b=(Ra=(ya=h==null?void 0:h.find(F=>(F==null?void 0:F.key)==="header"))==null?void 0:ya.contents)==null?void 0:Ra.find((F,na)=>(F==null?void 0:F.prop)===Vl.value);(ja=Ee==null?void 0:Ee.value)==null||ja.forEach(F=>{var na,ea,Ae,B,Me,We,la,ga,pa;(F==null?void 0:F.prop)===(b==null?void 0:b.prop)&&(F!=null&&F.endChildMenu)&&((na=b==null?void 0:b.prop)!=null&&na.includes(".")&&((Ae=(ea=b==null?void 0:b.prop)==null?void 0:ea.split("."))==null?void 0:Ae[0])!==((Me=(B=F==null?void 0:F.prop)==null?void 0:B.split("."))==null?void 0:Me[0])?b.endChildMenu=(la=(We=F==null?void 0:F.value)==null?void 0:We.split(" "))==null?void 0:la[0]:b.endChildMenu=(pa=(ga=F==null?void 0:F.endChildMenu)==null?void 0:ga.split(" "))==null?void 0:pa[0])});let re=b!=null&&b.isMainPath&&(b!=null&&b.mainKey)?b==null?void 0:b.value:"",ee=L.cloneDeep(M),ie=me.value;if(ie!=null&&ie.find(F=>(b==null?void 0:b.prop)===(F==null?void 0:F.key))&&(ie=ie==null?void 0:ie.filter(F=>(b==null?void 0:b.prop)!==(F==null?void 0:F.key))),ie!=null&&ie.find(F=>P===(F==null?void 0:F.key))&&(ie=ie==null?void 0:ie.filter(F=>P!==(F==null?void 0:F.key))),ee=ee==null?void 0:ee.map(F=>{var na,ea,Ae,B,Me,We,la,ga,pa,za,ol,Ga,il,vl,Rl,qa;return(F==null?void 0:F.type)==="Select"&&(((na=F==null?void 0:F.allSelectionContents)==null?void 0:na.length)>0&&(F.contactValue=p),((b==null?void 0:b.prop)===(F==null?void 0:F.prop)||P===(F==null?void 0:F.prop))&&b&&(Array.isArray(b.value)&&((ea=b.value)==null?void 0:ea.length)>0&&((Ae=b.value)!=null&&Ae.every(bl=>typeof bl=="string"))?(ie.push({key:F==null?void 0:F.prop,value:[(Me=b.value)==null?void 0:Me[((B=b.value)==null?void 0:B.length)-1]]}),F.selectValue=(We=ie==null?void 0:ie.find(bl=>(bl==null?void 0:bl.key)===(F==null?void 0:F.prop)))==null?void 0:We.value):Array.isArray(b.value)&&((la=b.value)==null?void 0:la.length)===0?(ie=[],F.selectValue=[],p[F==null?void 0:F.prop]=""):Array.isArray(F.value)&&ie.push({key:F==null?void 0:F.prop,value:[(ga=F.value)==null?void 0:ga[(F==null?void 0:F.length)-1]]})),((za=F==null?void 0:F.menus)==null?void 0:za[((pa=F==null?void 0:F.menus)==null?void 0:pa.length)-1])===""&&(b!=null&&b.isMainPath)&&(b!=null&&b.mainKey)&&((ol=F==null?void 0:F.prop)!=null&&ol.includes(".")&&((il=(Ga=F==null?void 0:F.prop)==null?void 0:Ga.split("."))==null?void 0:il[0])!==((Rl=(vl=b==null?void 0:b.prop)==null?void 0:vl.split("."))==null?void 0:Rl[0])||(F.endChildMenu=(qa=re==null?void 0:re.split(" "))==null?void 0:qa[0]))),F.value=(p==null?void 0:p[F==null?void 0:F.prop])??(F==null?void 0:F.value),F}),me.value=ie,ee!=null&&ee.some(F=>(F==null?void 0:F.functionName)&&(F==null?void 0:F.functionName)!=="")){let F=await oi([p],we==null?void 0:we.value,"Auto",Q.value);ee=ee==null?void 0:ee.map(na=>{var ea;return na.value=((ea=F==null?void 0:F[0])==null?void 0:ea[na==null?void 0:na.prop])??na.value,na}),tr.value=F==null?void 0:F[0]}if(Ee.value=L.cloneDeep(ee),b=Object.assign({},b??{},{relatedWords:(Ya=(da=Ee==null?void 0:Ee.value)==null?void 0:da.find(F=>(F==null?void 0:F.prop)===(b==null?void 0:b.prop)))==null?void 0:Ya.relatedWords}),(b==null?void 0:b.mainKey)&&(b!=null&&b.value)&&(b==null?void 0:b.value)!==""){let F=b!=null&&b.relatedContents&&((ma=b==null?void 0:b.relatedContents)==null?void 0:ma.length)>0?(Ua=b==null?void 0:b.relatedContents)==null?void 0:Ua.find(na=>{var ea,Ae,B,Me;return(na==null?void 0:na[(Me=(ea=b==null?void 0:b.prop)==null?void 0:ea.split("."))==null?void 0:Me[((B=(Ae=b==null?void 0:b.prop)==null?void 0:Ae.split("."))==null?void 0:B.length)-1]])===(b==null?void 0:b.value)}):await es(b);if(F&&JSON.stringify(F)!=="{}"){let na=ee;na=na==null?void 0:na.map(Ae=>{var B,Me,We,la,ga,pa,za,ol,Ga,il,vl,Rl,qa,bl,Ha,al,ll,pl,Nl,dl,kl;return(b==null?void 0:b.prop)===(Ae==null?void 0:Ae.prop)?Ae.value=(F==null?void 0:F[(B=Ae==null?void 0:Ae.words)==null?void 0:B.join(".")])??(F==null?void 0:F[Ae==null?void 0:Ae.prop])??F[(ga=(Me=Ae==null?void 0:Ae.prop)==null?void 0:Me.split("."))==null?void 0:ga[((la=(We=Ae==null?void 0:Ae.prop)==null?void 0:We.split("."))==null?void 0:la.length)-1]]:b!=null&&b.relatedContents&&((pa=b==null?void 0:b.relatedContents)==null?void 0:pa.length)>0?Ae.value=(za=Ae==null?void 0:Ae.prop)!=null&&za.includes(".")&&((Ga=(ol=Ae==null?void 0:Ae.prop)==null?void 0:ol.split("."))==null?void 0:Ga[0])===((vl=(il=b==null?void 0:b.prop)==null?void 0:il.split("."))==null?void 0:vl[0])?F[(Ha=(Rl=Ae==null?void 0:Ae.prop)==null?void 0:Rl.split("."))==null?void 0:Ha[((bl=(qa=Ae==null?void 0:Ae.prop)==null?void 0:qa.split("."))==null?void 0:bl.length)-1]]:(F==null?void 0:F[Ae==null?void 0:Ae.prop])??(Ae==null?void 0:Ae.value):Aa.same((b==null?void 0:b.menus)??[],(Ae==null?void 0:Ae.menus)??[])&&Aa.same((b==null?void 0:b.groups)??[],(Ae==null?void 0:Ae.groups)??[])&&!Aa.same((b==null?void 0:b.words)??[],(Ae==null?void 0:Ae.words)??[])?(al=Ae==null?void 0:Ae.prop)!=null&&al.includes(".")&&((pl=(ll=Ae==null?void 0:Ae.prop)==null?void 0:ll.split("."))==null?void 0:pl[0])!==((dl=(Nl=b==null?void 0:b.prop)==null?void 0:Nl.split("."))==null?void 0:dl[0])||(Ae.value=(F==null?void 0:F[(kl=Ae==null?void 0:Ae.words)==null?void 0:kl.join(".")])??(F==null?void 0:F[Ae==null?void 0:Ae.prop])??Ae.value):(!(Ae!=null&&Ae.isMainPath)&&Aa.same((b==null?void 0:b.bindMenus)??[],(Ae==null?void 0:Ae.bindMenus)??[]),Ae.value=(F==null?void 0:F[Ae==null?void 0:Ae.prop])??Ae.value),Ae}),Ee.value=na;let ea={};(La=Ee.value)==null||La.forEach(Ae=>{ea[Ae.prop]=Ae==null?void 0:Ae.value}),tr.value=ea}}fr.value=!0,Y.value=!1},qc=p=>p?(p==null?void 0:p.toUpperCase())==="INPUT"?"TEXTAREA":p:"TEXTAREA",Wc=p=>{var b,re;const h=(re=(b=ce.value)==null?void 0:b.find(ee=>(ee==null?void 0:ee.label)===(p==null?void 0:p.label)))==null?void 0:re.multiple,M=p==null?void 0:p.prop;if((p==null?void 0:p.formType)!="Select")return;Q.value.forEach(ee=>{const ie=ee==null?void 0:ee[M];h&&yo.isString(ie)&&(ee[M]=[ie]),!h&&!yo.isString(ie)&&(ee[M]="")})},Ei=(p,h)=>{var M;return h==null||h.forEach(I=>{p[I==null?void 0:I.prop]=I==null?void 0:I.value}),p.children&&((M=p.children)==null?void 0:M.length)>0&&(p.children=p.children.map(I=>Ei(I,h))),p},Go=p=>{var M,I,P,b,re,ee;Lt("");const h=(M=Ee.value)==null?void 0:M.reduce((ie,he)=>(ie[he.name]=he.value,ie),{});if(((I=Object.keys(h))==null?void 0:I.length)>0){tr.value=h,je.value="",ca.value=(P=Q.value)==null?void 0:P.length,Ze.value=(b=Je.value)==null?void 0:b.filter(he=>(he==null?void 0:he.label)!=="新增");const ie=(ee=(re=ue.value)==null?void 0:re.filter(he=>(he==null?void 0:he.label)!=="操作"))==null?void 0:ee.map(he=>{var He,Be,va;const De=(Be=(He=ce.value)==null?void 0:He.find(ya=>(ya==null?void 0:ya.label)===(he==null?void 0:he.label)))==null?void 0:Be.multiple;return Wc(he),{...he,contents:(he==null?void 0:he.options)??[],optionUrl:he!=null&&he.formMenuSelect&&((va=he==null?void 0:he.formMenuSelect)==null?void 0:va.length)>0?{groupSelect:he==null?void 0:he.groupSelect,menuSelect:he==null?void 0:he.formMenuSelect,selectRelateType:"",type:he==null?void 0:he.formType,multiple:De}:null}});we.value=ie==null?void 0:ie.map(he=>Ei(he,[{prop:"type",value:"edit"},{prop:"columnType",value:qc(he==null?void 0:he.formType)||(he==null?void 0:he.columnType)}])),p==="createClick"&&(Ie.value="新增",Vt(!0))}},dt={START:"开始时间",END:"结束时间",HOURS:"工时"},Kc=(p,h)=>Number(L.dayjs(h).diff(L.dayjs(p),"day",!0).toFixed(1)),Si=p=>{var b;const h=c.itemData,M=(b=h==null?void 0:h.find(re=>(re==null?void 0:re.key)==="header"))==null?void 0:b.contents,I=new Map;return M==null||M.forEach((re,ee)=>{const{label:ie}=re;I.set(ie,ee)}),!I.has(dt.START)||!I.has(dt.END)||!I.has(dt.HOURS)?p:p==null?void 0:p.map(re=>{const ee=re==null?void 0:re[dt.START],ie=re==null?void 0:re[dt.END],he=Kc(ee,ie);return ee&&ie&&(re[dt.HOURS]=`${he}天`),re})},Di=(p,h,M=0)=>{if(M>((h==null?void 0:h.length)??""))return p;const I=h==null?void 0:h[M],P=new Map;for(const re of p){const ee=re[I];P.has(ee)||P.set(ee,[]),P.get(ee)&&P.get(ee).push(re)}const b=[];for(const[re,ee]of P){const[ie,...he]=ee,De={...ie};M+1===((h==null?void 0:h.length)??"")?De.children=ee==null?void 0:ee.map(He=>(He.level=L.cloneDeep(M)+1,He)).filter((He,Be)=>Be!==0):he.length>0&&(De.children=Di(he,h,M+1)),De.level=M,b.push(De)}return b},Bi=(p,h,M)=>{var P;if(!(h!=null&&h.contents)||((P=h==null?void 0:h.contents)==null?void 0:P.length)===0)return p;let I=[];return I=Di(p,h==null?void 0:h.contents,0),I},Ni=async(p,h)=>{var ja,da,Ya,ma,Ua,La,F,na,ea,Ae,B,Me,We,la,ga,pa,za,ol,Ga,il,vl,Rl,qa,bl,Ha,al,ll,pl,Nl,dl,kl,Cl,yl,Pl,ur,dr,Ul,Ql,Ar,rr,vr,er,qr,Vn,Ai,Mi,zi;const M=p==null?void 0:p.filter(ia=>(ia==null?void 0:ia.key)==="header");p==null||p.filter(ia=>(ia==null?void 0:ia.key)==="tableIndexColumn")[0];const I=p==null?void 0:p.filter(ia=>(ia==null?void 0:ia.key)==="childTree")[0];let P=!0;if((Ya=(da=(ja=p==null?void 0:p.find(ia=>(ia==null?void 0:ia.key)==="filterAllType"))==null?void 0:ja.value)==null?void 0:da.find(ia=>(ia==null?void 0:ia.value)==="onPamButtonContents"))!=null&&Ya.content){let ia=(La=(Ua=(ma=p==null?void 0:p.find(El=>(El==null?void 0:El.key)==="filterAllType"))==null?void 0:ma.value)==null?void 0:Ua.find(El=>(El==null?void 0:El.value)==="onPamButtonContents"))==null?void 0:La.content;ia=(F=ia==null?void 0:ia.split(":"))==null?void 0:F[1],ia=(na=ia.slice(1,(ia==null?void 0:ia.length)-1))==null?void 0:na.split(","),P=!!(ia!=null&&ia.find(El=>El==="操作"))}const b=p==null?void 0:p.find(ia=>(ia==null?void 0:ia.key)==="page"),re=p==null?void 0:p.find(ia=>(ia==null?void 0:ia.key)==="rowButton"),ee=p==null?void 0:p.find(ia=>(ia==null?void 0:ia.key)==="extraButton"),ie=p==null?void 0:p.filter(ia=>(ia==null?void 0:ia.key)==="tableContents"),he=p==null?void 0:p.filter(ia=>(ia==null?void 0:ia.key)==="bottomButton"),De=p==null?void 0:p.filter(ia=>(ia==null?void 0:ia.key)==="tableIndex");ce.value=(Ae=(ea=p==null?void 0:p.filter(ia=>(ia==null?void 0:ia.key)==="tableToForm"))==null?void 0:ea[0])==null?void 0:Ae.contents,ka.value=(b==null?void 0:b.contents)??!0;let He=[];Qr.value===""?He=M==null?void 0:M[0]:He=(M==null?void 0:M.find(ia=>(ia==null?void 0:ia.selectLabel)==="("+Qr.value+")"))??(M==null?void 0:M.find(ia=>!(ia!=null&&ia.selectLabel)));let Be=[];Qr.value===""?Be=De==null?void 0:De[0]:Be=(De==null?void 0:De.find(ia=>(ia==null?void 0:ia.selectLabel)==="("+Qr.value+")"))??(De==null?void 0:De.find(ia=>!(ia!=null&&ia.selectLabel)));let va=[],ya=[];if(((B=He==null?void 0:He.contents)==null?void 0:B.length)>0){let ia=[],El=He==null?void 0:He.contents;if(Array.isArray(El==null?void 0:El[0])&&((Me=El==null?void 0:El[0])!=null&&Me.every(Ka=>!(Ka!=null&&Ka.children)))&&(El=El==null?void 0:El[0]),El.some(Ka=>Array.isArray(Ka)&&(Ka==null?void 0:Ka.find(Ke=>Ke.children))))ia=(We=sa.getGradeColumns(El,P))==null?void 0:We[0],ia!=null&&ia.find(Ka=>(Ka==null?void 0:Ka.label)==="操作")||ia.push({label:"操作",prop:"operate",type:"operate"});else{let Ka=El.some(Ke=>Array.isArray(Ke))?El==null?void 0:El[0]:El;Ka!=null&&Ka.find(Ke=>(Ke==null?void 0:Ke.label)==="操作")||Ka.push({label:"操作",prop:"operate",type:"operate"}),Ka==null||Ka.forEach((Ke,ql)=>{var Er,wr,Sr,mr,Qn,ht,vt,or,sn,$n,mt,Kr,Rn,Vi,$i,Ri,Pi,Fi,ji,Hi;if((wr=(Er=_a.value)==null?void 0:Er.split("/"))==null||wr.forEach(Wl=>{var ar,mn,Ui;Wl!==""&&((Ui=(mn=(ar=Wl==null?void 0:Wl.split(x+"updateLoading"))==null?void 0:ar[0])==null?void 0:mn.split(x+"loading"))==null||Ui[0])}),Ke!=null&&Ke.methodContent){let Wl=(Qn=(mr=(Sr=Ke==null?void 0:Ke.methodContent)==null?void 0:Sr.replace("@","%%#"))==null?void 0:mr.split("%%#"))==null?void 0:Qn[1];if(Wl=Wl==null?void 0:Wl.slice(0,(Wl==null?void 0:Wl.length)-1),Wl=sa.contentTransArrayToAllNoExtra(Wl??"",","),(ht=Wl==null?void 0:Wl.find(ar=>ar==null?void 0:ar.includes("@Button")))!=null&&ht.includes("Prop")&&((vt=Wl==null?void 0:Wl.find(ar=>ar==null?void 0:ar.includes("Type")))!=null&&vt.includes("Manual"))){let ar=(sn=(or=Wl==null?void 0:Wl.find(mn=>mn==null?void 0:mn.includes("@Button")))==null?void 0:or.split(":"))==null?void 0:sn[1];ar=((Kr=(mt=($n=ar==null?void 0:ar.replaceAll("[",""))==null?void 0:$n.replaceAll("]",""))==null?void 0:mt.split(","))==null?void 0:Kr[1])??"算法执行",va.push(ar)}else if((Rn=Wl==null?void 0:Wl.find(ar=>ar==null?void 0:ar.includes("@Button")))!=null&&Rn.includes("Row")&&((Vi=Wl==null?void 0:Wl.find(ar=>ar==null?void 0:ar.includes("Type")))!=null&&Vi.includes("Manual"))){let ar=(Ri=($i=Wl==null?void 0:Wl.find(mn=>mn==null?void 0:mn.includes("@Button")))==null?void 0:$i.split(":"))==null?void 0:Ri[1];ar=((ji=(Fi=(Pi=ar==null?void 0:ar.replaceAll("[",""))==null?void 0:Pi.replaceAll("]",""))==null?void 0:Fi.split(","))==null?void 0:ji[1])??"算法执行",ya.push(ar)}}(Hi=ce.value)==null||Hi.find(Wl=>(Wl==null?void 0:Wl.prop)===(Ke==null?void 0:Ke.prop)),ia.push({label:(Ke==null?void 0:Ke.label)==="操作"?P?"操作":"":(Ke==null?void 0:Ke.label)??"",prop:(Ke==null?void 0:Ke.label)==="操作"?"operate":(Ke==null?void 0:Ke.prop)??"a"+ql,width:Ke!=null&&Ke.width?parseInt(Ke.width):"",fixed:(Ke==null?void 0:Ke.fixed)??void 0,sortable:(Ke==null?void 0:Ke.sortable)??!1,filterable:(Ke==null?void 0:Ke.filterable)??!1,operable:(Ke==null?void 0:Ke.operable)??!1,showSummary:(Ke==null?void 0:Ke.showSummary)??!1,align:(Ke==null?void 0:Ke.align)??"left",showOverflowTooltip:(Ke==null?void 0:Ke.showOverflowTooltip)??!0,isNotDrag:(Ke==null?void 0:Ke.isNotDrag)??!1,isEditCol:(Ke==null?void 0:Ke.isEditCol)??!1,isOperate:(Ke==null?void 0:Ke.isOperate)??!1,id:(Ke==null?void 0:Ke.id)??ql,type:(Ke==null?void 0:Ke.label)==="操作"?"operate":void 0,formType:(Ke==null?void 0:Ke.formType)??(Ke!=null&&Ke.groupSelect?"Select":""),disabled:Ke==null?void 0:Ke.disabled,options:(Ke==null?void 0:Ke.options)??[],value:(Ke==null?void 0:Ke.value)??"",isExistChild:(Ke==null?void 0:Ke.isExistChild)??!1,mainKey:(Ke==null?void 0:Ke.mainKey)??ql===0,allSelectionContents:(Ke==null?void 0:Ke.allContents)??[],filterContent:Ke==null?void 0:Ke.filterContents,menus:Ke==null?void 0:Ke.menus,groups:Ke==null?void 0:Ke.groups,words:Ke==null?void 0:Ke.words,filter:Ke==null?void 0:Ke.filter,bindMenus:Ke==null?void 0:Ke.bindMenus,fatherPath:Ke==null?void 0:Ke.fatherPath,isMainPath:Ke==null?void 0:Ke.isMainPath,required:(Ke==null?void 0:Ke.required)??!1,relatedContents:Ke==null?void 0:Ke.relatedContents,functionName:Ke==null?void 0:Ke.functionName,functionRelatedWords:Ke==null?void 0:Ke.functionRelatedWords,calculatorFilter:Ke==null?void 0:Ke.calculatorFilter})})}_.value=(la=he==null?void 0:he[0])==null?void 0:la.contents;const Gr=sa.getNewColumnChild(ia),Oi=Ka=>Array.isArray(Ka)?Ka.map(Ke=>(Array.isArray(Ke==null?void 0:Ke.children)&&Ke.children.length>0?(Ke.sortable=!1,Oi(Ke.children)):(Ke==null?void 0:Ke.prop)==="operate"||(Ke==null?void 0:Ke.label)==="操作"||(Ke==null?void 0:Ke.type)==="operate"||(Ke.sortable=!1),Ke)):Ka;Oi(Gr),await Cn(Gr),Cf(te.value,Gr),we.value=Gr,wa.value=Gr,r.value=(ga=we.value)==null?void 0:ga.map(Ka=>Ka==null?void 0:Ka.label);let Xr=(za=(pa=sa.getAllLeafNodes(we.value))==null?void 0:pa.filter(Ka=>(Ka==null?void 0:Ka.type)!=="operate"))==null?void 0:za.map((Ka,Ke)=>({prop:(Ka==null?void 0:Ka.prop)??"a"+Ke,column:Ka.label}));xr.value=Xr;let Wr=[];Qr.value===""?Wr=ie==null?void 0:ie[0]:Wr=(ie==null?void 0:ie.find(Ka=>(Ka==null?void 0:Ka.selectLabel)==="("+Qr.value+")"))??(ie==null?void 0:ie.find(Ka=>!(Ka!=null&&Ka.selectLabel)));let Zn=Array.isArray((ol=Wr==null?void 0:Wr.contents)==null?void 0:ol[0])&&((Ga=Wr==null?void 0:Wr.contents)!=null&&Ga[0].every(Ka=>Array.isArray(Ka)))?(il=Wr==null?void 0:Wr.contents)==null?void 0:il[0]:Wr==null?void 0:Wr.contents;Be!=null&&Be.contents&&((vl=Be==null?void 0:Be.contents)==null?void 0:vl.length)!==0&&(Zn=(Rl=L.cloneDeep(Zn))==null?void 0:Rl.map((Ka,Ke)=>{if(!Array.isArray(Ka)){let ql={};for(let Er in Ka)Er!=="id"&&Er!=="index"&&(ql[Er]=Ka[Er]);Ka=Object.values(ql)}return Ka}));const tu=!!((qa=we.value)!=null&&qa.find(Ka=>Ka.prop==="index"));Zn=Ks(Zn,Be==null?void 0:Be.contents,tu);const pt=[];Zn==null||Zn.forEach((Ka,Ke)=>{var Er;let ql={};if(Array.isArray(Ka)){let wr=[];Ka==null||Ka.filter(Sr=>!(Sr!=null&&Sr.id)).forEach((Sr,mr)=>{var Qn,ht,vt,or,sn,$n;if((Qn=Xr==null?void 0:Xr[mr])!=null&&Qn.prop&&!Array.isArray(Sr)){let mt={};mt[Xr[mr].column]=Sr,Ba!=null&&Ba.value&&((ht=Ba==null?void 0:Ba.value)==null?void 0:ht.length)>0&&((vt=Ba==null?void 0:Ba.value)!=null&&vt.find(Kr=>JSON.stringify(Kr==null?void 0:Kr[0])===JSON.stringify(mt)))&&(wr=(or=Ba==null?void 0:Ba.value)==null?void 0:or.find(Kr=>JSON.stringify(Kr==null?void 0:Kr[0])===JSON.stringify(mt))),wr&&wr.length>0?ql[Xr[mr].prop]=wr!=null&&wr.find(Kr=>{var Rn;return((Rn=Object.keys(Kr))==null?void 0:Rn[0])===Xr[mr].column})?(sn=wr==null?void 0:wr.find(Kr=>{var Rn;return((Rn=Object.keys(Kr))==null?void 0:Rn[0])===Xr[mr].column}))==null?void 0:sn[Xr[mr].column]:Sr:ql[Xr[mr].prop]=Sr}else Array.isArray(Sr)&&(($n=Xr[mr])!=null&&$n.prop?ql[Xr[mr].prop]=Sr:ql.children=ii(Sr,Xr))})}else ql=Ka;if(Array.isArray(Ka)&&Ka.some(wr=>wr==null?void 0:wr.id)){const wr=(Er=Ka==null?void 0:Ka.find(Sr=>Sr.id))==null?void 0:Er.id;pt.push(Object.assign(ql,{id:Gt(wr)}))}else ql.id?pt.push(ql):pt.push(Object.assign(ql,{id:Ke.toString()}))});try{const Ka=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),Ke=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null"),ql=Ka==null?void 0:Ka.tableId,Er=Ka==null?void 0:Ka.compIndex;if(ql&&Array.isArray(Ke)&&Ke.length>0&&String(ql)===String(c==null?void 0:c.parentTableId)&&String(Er)===String(c==null?void 0:c.index)){const wr=new Set(pt.map(mr=>String(mr==null?void 0:mr.id))),Sr=Ke.filter(mr=>!wr.has(String(mr)));if(Sr.length>0){const mr=Ka==null?void 0:Ka.pageKey,Qn=mr!=null&&mr.startsWith("/")?mr.substring(1):mr;((h==null?void 0:h[mr])||(h==null?void 0:h[Qn])||[]).filter(or=>{var sn,$n;return((sn=or==null?void 0:or.key)==null?void 0:sn.type)==="data"&&String(($n=or==null?void 0:or.key)==null?void 0:$n.tableId)===String(ql)&&Sr.includes(or==null?void 0:or.id)}).forEach(or=>{var sn;wr.has(String(or==null?void 0:or.id))||(pt.push({id:or==null?void 0:or.id,...((sn=or==null?void 0:or.value)==null?void 0:sn.tableData)||{}}),wr.add(String(or==null?void 0:or.id)))})}}}catch{}let ft=null;try{const Ka=`ocr_committed_temp_ids_v1:${String((c==null?void 0:c.parentTableId)??"")}:${String((c==null?void 0:c.index)??"")}`,Ke=JSON.parse(sessionStorage.getItem(Ka)||"null");Array.isArray(Ke)&&Ke.length>0&&(ft=new Set(Ke.map(ql=>String(ql))))}catch{}const Ii=Array.from(((bl=pe.value)==null?void 0:bl.values())||[]).filter(Ka=>!(!(Ka!=null&&Ka._isOCRRow&&(Ka==null?void 0:Ka._ocrTableId)===(c==null?void 0:c.index))||ft&&ft.has(String(Ka==null?void 0:Ka.id)))),ou=(Q.value||[]).map(Ka=>String(Ka==null?void 0:Ka.id)),Li=Xt(pt,ou);if(Q.value=Bi(Li,I,we.value),ke.value=Li,(Ha=ke.value)==null||Ha.forEach(Ka=>{var Ke;(Ke=pe.value)==null||Ke.set(Ka.id,Ka)}),ft&&ft.size>0)try{const Ka=new Set(Array.from(ft.values()));Q.value=(Q.value||[]).filter(Ke=>!Ka.has(String(Ke==null?void 0:Ke.id))),ke.value=(ke.value||[]).filter(Ke=>!Ka.has(String(Ke==null?void 0:Ke.id))),Ka.forEach(Ke=>{var ql,Er;try{(Er=(ql=pe.value)==null?void 0:ql.delete)==null||Er.call(ql,Ke)}catch{}})}catch{}const lo=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),Xo=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null");if(lo&&Array.isArray(Xo)&&Xo.length>0&&String(lo==null?void 0:lo.compIndex)===String(c==null?void 0:c.index)){const Ka=new Set((ke.value||[]).map(Ke=>String(Ke==null?void 0:Ke.id)));Xo.filter(Ke=>!Ka.has(String(Ke)))}if(Ii.length>0){const Ka=new Set((Q.value||[]).map(ql=>ql==null?void 0:ql.id)),Ke=Ii.filter(ql=>!Ka.has(ql.id));Ke.length>0&&(Q.value=[...Q.value||[],...Ke],ke.value=[...ke.value||[],...Ke],Ke.forEach(ql=>{var Er;return(Er=pe.value)==null?void 0:Er.set(ql.id,ql)}))}}else we.value=[],ue.value=[],Q.value=[],ke.value=[],pe.value=new Map;if(ya=[...new Set(ya)],ya=ya==null?void 0:ya.map(ia=>({label:ia,type:"methodButton"})),((al=re==null?void 0:re.contents)==null?void 0:al.length)>0?xa.value=re==null?void 0:re.contents:xa.value=[],xa.value=[...xa.value,...ya],va=[...new Set(va)],va=va==null?void 0:va.map(ia=>({label:ia,type:"methodButton"})),((ll=ee==null?void 0:ee.contents)==null?void 0:ll.length)>0)if((dl=(Nl=(pl=p==null?void 0:p.find(ia=>(ia==null?void 0:ia.key)==="filterAllType"))==null?void 0:pl.value)==null?void 0:Nl.find(ia=>(ia==null?void 0:ia.value)==="onButtonContents"))!=null&&dl.content){let ia=(yl=(Cl=(kl=p==null?void 0:p.find(El=>(El==null?void 0:El.key)==="filterAllType"))==null?void 0:kl.value)==null?void 0:Cl.find(El=>(El==null?void 0:El.value)==="onButtonContents"))==null?void 0:yl.content;if(ia=(Pl=ia==null?void 0:ia.split(":"))==null?void 0:Pl[1],ia=(ur=ia.slice(1,(ia==null?void 0:ia.length)-1))==null?void 0:ur.split(","),Ze.value=(dr=ee==null?void 0:ee.contents)==null?void 0:dr.filter(El=>ia==null?void 0:ia.find(Gr=>Gr===(El==null?void 0:El.label))),Je.value=(Ul=ee==null?void 0:ee.contents)==null?void 0:Ul.filter(El=>ia==null?void 0:ia.find(Gr=>Gr===(El==null?void 0:El.label))),(Ql=ee==null?void 0:ee.contents)!=null&&Ql.some(El=>(El==null?void 0:El.label)==="OCR识别")&&!((Ar=Ze.value)!=null&&Ar.some(El=>(El==null?void 0:El.label)==="OCR识别"))){const El=(rr=ee==null?void 0:ee.contents)==null?void 0:rr.find(Gr=>(Gr==null?void 0:Gr.label)==="OCR识别");Ze.value=[...Ze.value,El],Je.value=[...Je.value,El]}w.value=!!(ia!=null&&ia.find(El=>El==="搜索")),H.value=!!(ia!=null&&ia.find(El=>El==="块状显示"))}else Ze.value=ee==null?void 0:ee.contents,Je.value=ee==null?void 0:ee.contents;else Ze.value=[],Je.value=[];Ze.value=[...Ze.value,...va],Je.value=[...Je.value,...va],typeof _a.value=="string"&&_a.value==="设备管理/试验设备"&&(c==null?void 0:c.compName)==="设备列表"?((vr=Ze.value)!=null&&vr.some(ia=>(ia==null?void 0:ia.label)==="OCR识别")||(Ze.value=[...Ze.value||[],{label:"OCR识别"}]),(er=Je.value)!=null&&er.some(ia=>(ia==null?void 0:ia.label)==="OCR识别")||(Je.value=[...Je.value||[],{label:"OCR识别"}])):(Ze.value=(Ze.value||[]).filter(ia=>(ia==null?void 0:ia.label)!=="OCR识别"),Je.value=(Je.value||[]).filter(ia=>(ia==null?void 0:ia.label)!=="OCR识别")),(qr=Ze.value)!=null&&qr.some(ia=>(ia==null?void 0:ia.label)==="切换视图")||(Ze.value=[...Ze.value||[],{label:"切换视图"}]),(Vn=Je.value)!=null&&Vn.some(ia=>(ia==null?void 0:ia.label)==="切换视图")||(Je.value=[...Je.value||[],{label:"切换视图"}]),ca.value=((Ai=Q==null?void 0:Q.value)==null?void 0:Ai.length)??0,Si(Q.value),rn.value=Q.value,Gl.value&&(we.value=(zi=(Mi=ue.value)==null?void 0:Mi.filter(ia=>(ia==null?void 0:ia.label)!=="操作"))==null?void 0:zi.map(ia=>{var El;return{...ia,type:"edit",optionUrl:ia!=null&&ia.formMenuSelect&&((El=ia==null?void 0:ia.formMenuSelect)==null?void 0:El.length)>0?{groupSelect:ia==null?void 0:ia.groupSelect,menuSelect:ia==null?void 0:ia.formMenuSelect,selectRelateType:"",type:ia==null?void 0:ia.formType}:null}}),Go())};a.watch(()=>[c.itemData,Qr.value,ot.value,Tn.value,Ba==null?void 0:Ba.value],async()=>{var p,h,M,I,P,b;if((p=c==null?void 0:c.itemData)!=null&&p.find(re=>(re==null?void 0:re.key)==="columnPath")&&!((h=R.value)!=null&&h.find(re=>{var ee,ie;return(re==null?void 0:re.key)===((ie=(ee=c==null?void 0:c.itemData)==null?void 0:ee.find(he=>(he==null?void 0:he.key)==="columnPath"))==null?void 0:ie.contents)}))){let re=R.value,ee={key:(I=(M=c==null?void 0:c.itemData)==null?void 0:M.find(ie=>(ie==null?void 0:ie.key)==="columnPath"))==null?void 0:I.contents,value:(b=(P=c==null?void 0:c.itemData)==null?void 0:P.find(ie=>(ie==null?void 0:ie.key)==="columnUsingPath"))==null?void 0:b.contents};re!=null&&re.find(ie=>(ie==null?void 0:ie.key)===(ee==null?void 0:ee.key))?re=re==null?void 0:re.map(ie=>((ie==null?void 0:ie.key)===(ee==null?void 0:ee.key)&&(ie.value=ee.value),ie)):re.push(ee),Ge.setTableViewContents(re)}await Ni(c.itemData,c.allMapContents)},{deep:!0,immediate:!0}),a.watch(()=>c==null?void 0:c.operatingForm,p=>{p!=null&&p.form&&(Lt(p==null?void 0:p.form),Ie.value=p==null?void 0:p.dialogTitle,ye.value=!0,fa.value=!0)},{immediate:!0,deep:!0});const Yc=()=>{var p;(p=O.value)!=null&&p.includes("read")&&(Gl.value=!Gl.value)},Gc=()=>{Al.value=!Al.value};a.watch(()=>{var p;return(p=c==null?void 0:c.config)==null?void 0:p.viewport},p=>{var h;O.value=p,(p==null?void 0:p.length)===0?Gl.value=!1:(p!=null&&p.includes("read")||(Gl.value=!0),p!=null&&p.includes("edit")||(Gl.value=!1)),N.value=((h=c==null?void 0:c.config)==null?void 0:h.showIndex)||Gl.value},{immediate:!0}),a.watch(()=>Gl.value,p=>{var h;p?(Go("viewChange"),Ge.setCacheUpdatingData(null)):(Ze.value=Je.value,we.value=wa.value,Ja.value&&(Ge.setTableLoading(c==null?void 0:c.index),Oe("change",Ja.value))),N.value=p||((h=c==null?void 0:c.config)==null?void 0:h.showIndex),Ml.value=[]},{immediate:!0}),a.watch(()=>{var p;return(p=Br.value)==null?void 0:p.length},p=>{p===0&&(ge.currentPage=1)}),a.watch(()=>c==null?void 0:c.compNames,p=>{gr.contents=[{label:"列表名",prop:"groupName",name:"列表名",type:"select",value:"",id:0,contents:p||[],width:1}]},{immediate:!0}),a.ref(!1);const Xc=(p,h)=>{var M;Go("createClick"),h===ge.pageSize&&(ge.currentPage=Math.ceil(((M=Q.value)==null?void 0:M.length)/ge.pageSize))},Jc=(p,h,M)=>{var P,b;const I=(h==null?void 0:h.property)??(h==null?void 0:h.prop);if(Gl.value){const re=p==null?void 0:p.id;re!=null&&(k.value.has(re)||k.value.set(re,L.cloneDeep(p)),u.value.add(re));const ee=(P=Q.value)==null?void 0:P.findIndex(ie=>(ie==null?void 0:ie.id)===(p==null?void 0:p.id));ee!==-1&&I&&(Q.value[ee]={...Q.value[ee],[I]:M}),ao(M,p,h);return}ao(M,p,h),tr.value=L.cloneDeep(p),je.value=p==null?void 0:p.id,ca.value=(b=Q.value)==null?void 0:b.length,Ie.value=p!=null&&p._isTemp?"新增":"编辑",Vt(!1)},Zc=async()=>{var p,h;try{const M=[];if(c!=null&&c.related&&Array.isArray(c.related)&&(console.log("props.related",c.related),c.related.forEach(I=>{if(typeof I=="string"&&I.includes("content_")){const P=I.split("_")[1];P&&(M.push(`content_${P}`),M.push(`struct_${P}`))}})),M.length===0&&(c!=null&&c.itemData)){const I=(h=(p=c.itemData)==null?void 0:p.find(P=>(P==null?void 0:P.key)==="contentTableId"))==null?void 0:h.contents;I&&(M.push(`content_${I}`),M.push(`struct_${I}`))}return M}catch(M){return console.error("获取 tableNames 失败:",M),[]}},Qc=async(p,h,M)=>{var b,re;if(!M||typeof M!="string"||M.trim()===""){const ee=(h==null?void 0:h.property)??(h==null?void 0:h.prop),ie=`${p==null?void 0:p.id}:${ee}`;f.value.delete(ie),y.value.set(ie,!1);return}const I=(h==null?void 0:h.property)??(h==null?void 0:h.prop),P=`${p==null?void 0:p.id}:${I}`;y.value.set(P,!0);try{const ee=await Zc();if(ee.length===0){console.warn("未找到同名表,跳过全局搜索"),f.value.delete(P),y.value.set(P,!1);return}const ie=parseInt((b=Bl.value)==null?void 0:b.plat_id);if(!ie){console.warn("platId 无效,跳过全局搜索"),f.value.delete(P),y.value.set(P,!1);return}const he=await L.getAllTables({platId:ie,tableNames:ee}),De=((re=he==null?void 0:he.data)==null?void 0:re.result)||[],He=[],Be=[];for(let va=0;va<De.length;va+=2)va+1<De.length&&Be.push([De[va],De[va+1]]);Be.forEach(([va,ya])=>{var Ua;if(!Array.isArray(va)||va.length===0||!Array.isArray(ya)||ya.length===0)return;const Ra=ya[0];let ja=((Ua=Ra==null?void 0:Ra.结构)==null?void 0:Ua.contents)??[];if(!Array.isArray(ja)||ja.length===0)return;let da=L.cloneDeep(ja);if(Array.isArray(da==null?void 0:da[0])&&(da=sa.getColumnChild(da[0])),!Array.isArray(da)||da.length===0||!da.some(La=>(La==null?void 0:La.prop)===I))return;[...va].sort((La,F)=>{const na=Number((La==null?void 0:La.update_time)??0);return Number((F==null?void 0:F.update_time)??0)-na}).slice(0,20).forEach(La=>{const F=La[I];if(F!=null){const na=String(F);na.toLowerCase().includes(M.toLowerCase())&&He.findIndex(Ae=>{var B;return La.id&&((B=Ae.rowData)==null?void 0:B.id)===La.id?!0:Ae.label===na})===-1&&He.push({label:na,rowData:L.cloneDeep(La),sourceTable:(Ra==null?void 0:Ra.source_table)||""})}})}),f.value.set(P,He)}catch(ee){console.error("全局搜索建议失败:",ee),f.value.delete(P)}finally{y.value.set(P,!1)}},eu=(p,h,M)=>{if(!Gl.value)return;const I=(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 b=`${p==null?void 0:p.id}:${I}`;if(v.has(b)&&clearTimeout(v.get(b)),!M||M.trim()===""){f.value.delete(b),y.value.set(b,!1);return}const re=setTimeout(()=>{Qc(p,{prop:I,property:I},M),v.delete(b)},300);v.set(b,re)};function au(p,h){const M=`${p==null?void 0:p.id}:${(h==null?void 0:h.property)??(h==null?void 0:h.prop)}`;return f.value.get(M)||[]}const lu=(p,h,M)=>{var De;if(!M||!M.rowData)return;const I=M.rowData,P=p==null?void 0:p.id,b=(h==null?void 0:h.property)??(h==null?void 0:h.prop),ee=(sa.getAllLeafNodes(we.value)||[]).filter(He=>(He==null?void 0:He.type)!=="operate"&&(He==null?void 0:He.label)!=="操作"&&(He==null?void 0:He.prop)!=="operate");ee.forEach(He=>{const Be=He==null?void 0:He.prop;Be&&I[Be]!==void 0&&(p[Be]=I[Be])});const ie=(De=Q.value)==null?void 0:De.findIndex(He=>(He==null?void 0:He.id)===P);ie!==-1&&ee.forEach(He=>{const Be=He==null?void 0:He.prop;Be&&I[Be]!==void 0&&(Q.value[ie][Be]=I[Be])}),P!=null&&(k.value.has(P)||k.value.set(P,L.cloneDeep(p)),u.value.add(P));const he=`${P}:${b}`;f.value.delete(he),y.value.set(he,!1),ao(p[b],p,h)},Or=p=>{var ie,he,De,He,Be,va,ya,Ra,ja,da;const{row:h,column:M,item:I,slotData:P}=p;let b=h!=null&&h[M==null?void 0:M.prop]||(h==null?void 0:h[M==null?void 0:M.prop])===0?((he=(ie=h==null?void 0:h[M==null?void 0:M.prop])==null?void 0:ie[0])==null?void 0:he.contents)??((h==null?void 0:h[M==null?void 0:M.prop])===0?"0":h==null?void 0:h[M==null?void 0:M.prop]):((He=(De=h==null?void 0:h[I==null?void 0:I.prop])==null?void 0:De[0])==null?void 0:He.contents)??(h==null?void 0:h[I==null?void 0:I.prop])??((va=(Be=P==null?void 0:P[I==null?void 0:I.prop])==null?void 0:Be[0])==null?void 0:va.contents)??(P==null?void 0:P[I==null?void 0:I.prop])??((ja=(Ra=h==null?void 0:h[(ya=I==null?void 0:I.child)==null?void 0:ya.prop])==null?void 0:Ra[0])==null?void 0:ja.contents)??(h==null?void 0:h[(da=I==null?void 0:I.child)==null?void 0:da.prop]),ee=Array.isArray(b)&&!(b!=null&&b.every(Ya=>typeof Ya=="string"||typeof Ya=="number"))?"查看":b;if(ee=Array.isArray(ee)?ee.join(","):ee,(M==null?void 0:M.formType)==="Date")if(!ee||ee===""||ee===null||ee===void 0)ee="";else{const Ya=L.dayjs(ee,["YYYY-MM-DD","YYYY/MM/DD","YYYY年MM月DD日","YYYYMMDD"],!0);ee=Ya.isValid()?Ya.format("YYYYMMDD"):""}return ee},ru=p=>{var he,De,He,Be,va,ya,Ra,ja,da,Ya;const{row:h,column:M,item:I,slotData:P}=p;let b=h!=null&&h[M==null?void 0:M.prop]?((De=(he=h==null?void 0:h[M==null?void 0:M.prop])==null?void 0:he[0])==null?void 0:De.contents)??(h==null?void 0:h[M==null?void 0:M.prop]):((Be=(He=h==null?void 0:h[I==null?void 0:I.prop])==null?void 0:He[0])==null?void 0:Be.contents)??(h==null?void 0:h[I==null?void 0:I.prop])??((ya=(va=P==null?void 0:P[I==null?void 0:I.prop])==null?void 0:va[0])==null?void 0:ya.contents)??(P==null?void 0:P[I==null?void 0:I.prop])??((da=(ja=h==null?void 0:h[(Ra=I==null?void 0:I.child)==null?void 0:Ra.prop])==null?void 0:ja[0])==null?void 0:da.contents)??(h==null?void 0:h[(Ya=I==null?void 0:I.child)==null?void 0:Ya.prop]);const ee=Array.isArray(b)&&!(b!=null&&b.every(ma=>typeof ma=="string"||typeof ma=="number")),ie=Array.isArray(b)&&(b==null?void 0:b.find(ma=>ma==null?void 0:ma.url));return ee&&ie},nu=(p,h)=>p.find(M=>Object.values(M).some(I=>I===h));return a.watch(()=>_e.value,async p=>{if(p){ra.setContentLoading(!0),await a.nextTick();const h=nu(Q.value,p==null?void 0:p.data);if(!h)return ra.setContentLoading(!1);await Zt(p==null?void 0:p.data,null,h,{data:p==null?void 0:p.data}),ra.setContentLoading(!1)}},{deep:!0,immediate:!0}),a.watch(()=>c==null?void 0:c.cacheNewData,p=>{var h;p&&(Array.isArray(p)?p.forEach(M=>{var I,P,b,re,ee;if(换,String(M==null?void 0:M.compId)===String(c==null?void 0:c.index)&&(M!=null&&M.resId)&&((I=M==null?void 0:M.data)!=null&&I.id)){const ie=(P=M==null?void 0:M.data)==null?void 0:P.id,he=M==null?void 0:M.resId;if(Q.value=(b=Q.value)==null?void 0:b.map(De=>{if((De==null?void 0:De.id)===ie){const He={...De,id:he};return delete He._isOCRRow,delete He._ocrTableId,He}return De}),(ee=(re=pe.value)==null?void 0:re.has)!=null&&ee.call(re,ie)){const He={...pe.value.get(ie)||{},id:he};delete He._isOCRRow,delete He._ocrTableId,pe.value.delete(ie),pe.value.set(he,He)}qe(c==null?void 0:c.index,ie,he)}}):String(p==null?void 0:p.compId)===String(c==null?void 0:c.index)&&(Q.value=(h=Q.value)==null?void 0:h.map(M=>{var I;if((M==null?void 0:M.id)===((I=p==null?void 0:p.data)==null?void 0:I.id)){const P={...M,id:p==null?void 0:p.resId};return delete P._isOCRRow,delete P._ocrTableId,P}return M})))},{immediate:!0,deep:!0}),(p,h)=>{var Ya,ma,Ua,La;const M=a.resolveComponent("svg-icon"),I=a.resolveComponent("el-popover"),P=a.resolveComponent("el-switch"),b=a.resolveComponent("el-checkbox"),re=a.resolveComponent("el-radio"),ee=a.resolveComponent("el-radio-group"),ie=a.resolveComponent("el-checkbox-group"),he=a.resolveComponent("el-button"),De=a.resolveComponent("LookComponent"),He=a.resolveComponent("el-icon"),Be=a.resolveComponent("el-progress"),va=a.resolveComponent("el-alert"),ya=a.resolveComponent("el-table-column"),Ra=a.resolveComponent("el-table"),ja=a.resolveComponent("el-upload"),da=a.resolveComponent("el-text");return a.openBlock(),a.createElementBlock("div",t0,[Zl.value?(a.openBlock(),a.createBlock(rl.ssTable,{id:"excel-table",pageObj:ge,showIndex:N.value,isTree:(Ya=l.compItem)==null?void 0:Ya.isTree,summaryInfo:ae,columns:we.value,defaultSort:J,isCardViewport:Al.value,checkedColumns:r.value,key:nn.value+we.value,tableData:Br.value,isEditViewport:Gl.value,isShowPagination:ka.value,isShowEdit:!1,isShowDelete:!1,allowSelect:E.value,onDbClickRow:Ot,extraButton:Ze.value,rowButton:xa.value,cacheExtraButtons:Je.value,isClearSelection:((ma=Ml.value)==null?void 0:ma.length)===0,onDoCurrentChange:qn,onDoSizeChange:tn,onSortChange:Bt,onContentClick:Zt,onRowClick:Qt,onSelectChange:zo,onCellChange:Jc,onCellInput:eu,onSelectSuggest:lu,onChange:ao,onPreview:Mt,onSubmitEditingTable:Mo,onHandleColEditChange:To,onHandleColTypeChange:Wt,onClickButton:Rr,onAddNewRow:Kt,bottomButton:_.value},a.createSlots({headerButton:a.withCtx(F=>{var na,ea;return[l.showHeader?(a.openBlock(),a.createBlock(Rp,{key:0,id:"tableHeaderButton",pageLayout:l.pageLayout,lockingPage:a.unref(V)===a.unref(_a),filterValues:ct.value,selectNums:(na=Ml.value)==null?void 0:na.length,dataNums:(ea=Q.value)==null?void 0:ea.length,compName:l.compName,isDevMode:l.isDevMode,buttons:F.buttons,onButtonClick:h[1]||(h[1]=(Ae,B,Me)=>Rr(Ae,B,{extra:Me})),columns:we.value,onFilter:Po,onGetImportData:hn,level:l.level,filterShow:w.value},null,8,["pageLayout","lockingPage","filterValues","selectNums","dataNums","compName","isDevMode","buttons","columns","level","filterShow"])):a.createCommentVNode("",!0)]}),viewport:a.withCtx(()=>{var F,na,ea,Ae;return[((F=Q.value)==null?void 0:F.length)>0&&l.allowOperate&&H.value?(a.openBlock(),a.createElementBlock("div",s0,[(na=O.value)!=null&&na.includes("read")&&((ea=O.value)!=null&&ea.includes("edit"))&&((Ae=xa.value)!=null&&Ae.some(B=>(B==null?void 0:B.label)==="编辑"))&&!Al.value&&a.unref(V)!==a.unref(_a)?(a.openBlock(),a.createElementBlock("span",{key:0,title:"编辑表格",onClick:Yc},[a.createVNode(M,{name:"editTable",class:"view-icon"})])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)]}),rowCreate:a.withCtx(({row:F,index:na})=>[a.createElementVNode("span",{title:"新增",class:"row-create-wrap",onClick:ea=>Xc(F,na)},[a.createVNode(M,{name:"rowCreate",style:{width:"10px",height:"10px"}})],8,c0)]),operateCol:a.withCtx(()=>[a.createVNode(I,{title:"选择显示列信息",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:Hc},{reference:a.withCtx(()=>[a.createElementVNode("span",u0,[a.createVNode(M,{name:"operate",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),default:a.withCtx(()=>[a.createElementVNode("div",d0,[h[21]||(h[21]=a.createElementVNode("div",{class:"group-title"},"表格操作",-1)),a.createVNode(P,{"model-value":g.value,"active-text":"排序","inactive-text":"",style:{"margin-right":"8px"},onChange:h[2]||(h[2]=F=>st(F))},null,8,["model-value"]),h[22]||(h[22]=a.createElementVNode("div",{class:"group-title"},"表格列操作",-1)),a.createVNode(ie,{modelValue:r.value,"onUpdate:modelValue":h[3]||(h[3]=F=>r.value=F),style:{height:"100%"},min:2,ref_key:"checkboxGroupRef",ref:s},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Wn.value,F=>(a.openBlock(),a.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:F.label},[a.createVNode(b,{value:F.label,style:{width:"100%",marginRight:0}},{default:a.withCtx(()=>[a.createElementVNode("span",{title:F.label,style:{display:"inline-block",width:"250px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},a.toDisplayString(F.label),9,p0)]),_:2},1032,["value"]),a.createVNode(I,{"popper-class":"col-operate-popover",title:"列操作",placement:"left",teleported:!1,trigger:"hover"},{reference:a.withCtx(()=>[a.createVNode(M,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:a.withCtx(()=>{var na;return[a.createElementVNode("div",f0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((na=Object.keys(F))==null?void 0:na.filter(ea=>{var Ae;return(Ae=Z.value)==null?void 0:Ae.find(B=>(B==null?void 0:B.value)===ea)}),ea=>{var Ae,B;return a.openBlock(),a.createElementBlock("div",{key:ea},[A[ea]=="radio"?(a.openBlock(),a.createElementBlock("div",h0,[h[20]||(h[20]=a.createElementVNode("div",null,"固定:",-1)),a.createVNode(ee,{"model-value":F==null?void 0:F[ea],onChange:Me=>At(Me,ea,F)},{default:a.withCtx(()=>{var Me,We;return[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((We=(Me=Z.value)==null?void 0:Me.find(la=>(la==null?void 0:la.value)===ea))==null?void 0:We.options,la=>(a.openBlock(),a.createBlock(re,{key:la==null?void 0:la.value,label:la==null?void 0:la.value,value:la==null?void 0:la.value},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(la==null?void 0:la.label),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["model-value","onChange"])])):a.createCommentVNode("",!0),A[ea]=="switch"?(a.openBlock(),a.createBlock(P,{key:1,"model-value":F==null?void 0:F[ea],"active-text":(B=(Ae=Z.value)==null?void 0:Ae.find(Me=>(Me==null?void 0:Me.value)===ea))==null?void 0:B.label,onChange:Me=>At(Me,ea,F)},null,8,["model-value","active-text","onChange"])):a.createCommentVNode("",!0)])}),128))])]}),_:2},1024),a.createElementVNode("span",v0,[a.createVNode(M,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:1},8,["modelValue"])])]),_:1})]),content:a.withCtx(F=>{var na,ea,Ae,B,Me,We,la,ga,pa,za,ol,Ga,il,vl,Rl,qa,bl,Ha,al,ll;return[((na=F==null?void 0:F.column)==null?void 0:na.label)==="证书附件"||((ea=F==null?void 0:F.column)==null?void 0:ea.prop)==="证书附件"?(a.openBlock(),a.createElementBlock("div",m0,[a.createVNode(M,{name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:a.withModifiers(pl=>Ll(F),["stop"]),title:"查看OCR图片"},null,8,["onClick"])])):ru(F)?(a.openBlock(),a.createBlock(I,{key:1,"popper-class":"file-popover",placement:"right",trigger:"hover",effect:"light",width:"auto"},{reference:a.withCtx(()=>[a.createElementVNode("span",y0,a.toDisplayString(Or(F)),1)]),default:a.withCtx(()=>{var pl,Nl;return[a.createElementVNode("div",g0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((Nl=F==null?void 0:F.row)==null?void 0:Nl[(pl=F==null?void 0:F.column)==null?void 0:pl.prop],dl=>(a.openBlock(),a.createElementBlock("div",b0,[a.createElementVNode("div",{class:"prop-url",title:In(dl),onClick:kl=>Vo(dl)},a.toDisplayString(In(dl)),9,k0),a.createElementVNode("div",{class:"prop-download",onClick:kl=>$o(dl)}," 下载 ",8,x0)]))),256))])]}),_:2},1024)):(a.openBlock(),a.createElementBlock("div",{key:2,class:"table-cell-content",style:a.normalizeStyle({color:!Array.isArray(Or(F))&&((B=(Ae=Or(F))==null?void 0:Ae.toString())!=null&&B.includes(".txt")||(We=(Me=Or(F))==null?void 0:Me.toString())!=null&&We.includes(".cpt")||(ga=(la=Or(F))==null?void 0:la.toString())!=null&&ga.includes(".cyd"))?"var(--vertical-menuitem-active-bg)":"",textDecoration:!Array.isArray(Or(F))&&((za=(pa=Or(F))==null?void 0:pa.toString())!=null&&za.includes(".txt")||(Ga=(ol=Or(F))==null?void 0:ol.toString())!=null&&Ga.includes(".cpt")||(vl=(il=Or(F))==null?void 0:il.toString())!=null&&vl.includes(".cyd"))?"underline":"",cursor:!Array.isArray(Or(F))&&((qa=(Rl=Or(F))==null?void 0:Rl.toString())!=null&&qa.includes(".txt")||(Ha=(bl=Or(F))==null?void 0:bl.toString())!=null&&Ha.includes(".cpt")||(ll=(al=Or(F))==null?void 0:al.toString())!=null&&ll.includes(".cyd"))?"pointer":"",marginLeft:(F==null?void 0:F.colIndex)===0?`${((F==null?void 0:F.level)??0)*20}px`:0}),onClick:pl=>Ur(Or(F))},a.toDisplayString(Or(F)===0?"0":Or(F)),13,w0))]}),_:2},[((Ua=xa.value)==null?void 0:Ua.length)>0?{name:"actions",fn:a.withCtx(({item:F,fIndex:na})=>[a.createVNode(I,{title:"",placement:"left-start","popper-class":"menu-operate-popover"},{reference:a.withCtx(()=>[a.createVNode(M,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"},onClick:h[0]||(h[0]=a.withModifiers(()=>{},["stop"]))})]),default:a.withCtx(()=>[a.createElementVNode("div",o0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(zt(xa.value,F),(ea,Ae)=>(a.openBlock(),a.createElementBlock("div",{class:"menu-config-item",key:Ae,onClick:a.withModifiers(B=>Rr(ea==null?void 0:ea.label,F,{extra:ea}),["stop"])},[a.createElementVNode("div",{style:a.normalizeStyle({color:ea==null?void 0:ea.textColor}),class:"extra-button-label"},a.toDisplayString(ea==null?void 0:ea.label),5)],8,i0))),128))])]),_:2},1024)]),key:"0"}:void 0]),1032,["pageObj","showIndex","isTree","summaryInfo","columns","defaultSort","isCardViewport","checkedColumns","tableData","isEditViewport","isShowPagination","allowSelect","extraButton","rowButton","cacheExtraButtons","isClearSelection","bottomButton"])):a.createCommentVNode("",!0),Gl.value?(a.openBlock(),a.createElementBlock("div",_0,[a.createVNode(he,{id:"themeBorderButton",onClick:Ao},{default:a.withCtx(()=>h[23]||(h[23]=[a.createTextVNode("取消")])),_:1,__:[23]}),a.createVNode(he,{class:"ok-button",id:"themeButton",onClick:Nt},{default:a.withCtx(()=>h[24]||(h[24]=[a.createTextVNode("保存")])),_:1,__:[24]})])):a.createCommentVNode("",!0),a.createVNode(sr.ssDialog,{title:Ie.value,visible:fa.value,width:yr.value,onBeforeDestroy:Lo,style:{height:"74%"}},{default:a.withCtx(()=>[a.createElementVNode("div",C0,[a.createVNode(rl.ssForm,{ref_key:"formRef",ref:Re,rowContents:Ee.value,showOperator:!1,onChange:Uc,isEnableWrap:!1,onFixChangeValue:Ro,onClickTrigger:Yt,isEdit:Pe.value,onBlurChange:Oo,onCreate:Io,onTagChange:zn},null,8,["rowContents","isEdit"])])]),footer:a.withCtx(()=>[ye.value?(a.openBlock(),a.createElementBlock("div",E0,[a.createVNode(he,{onClick:h[4]||(h[4]=F=>fa.value=!1),id:"themeBorderButton"},{default:a.withCtx(()=>h[25]||(h[25]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[25]}),a.createVNode(he,{class:"ok-button",onClick:h[5]||(h[5]=F=>Vt(!0)),id:"themeButton"},{default:a.withCtx(()=>h[26]||(h[26]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[26]})])):a.createCommentVNode("",!0)]),_:1},8,["title","visible","width"]),a.createVNode(sr.ssDialog,{title:Ie.value,visible:Ue.value,width:ba.value,onBeforeDestroy:h[7]||(h[7]=F=>Ue.value=!1)},{default:a.withCtx(()=>[a.createVNode(Qp)]),footer:a.withCtx(()=>[a.createElementVNode("div",S0,[a.createVNode(he,{onClick:h[6]||(h[6]=F=>Ue.value=!1),class:"cancel-button",id:"themeBorderButton"},{default:a.withCtx(()=>h[27]||(h[27]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[27]}),a.createVNode(he,{class:"ok-button",onClick:Yn,id:"themeButton"},{default:a.withCtx(()=>h[28]||(h[28]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[28]})])]),_:1},8,["title","visible","width"]),Ia.value?(a.openBlock(),a.createBlock(rl.ssFilePreview,{key:2,fileDataList:le.value,onDestroy:Fo},null,8,["fileDataList"])):a.createCommentVNode("",!0),Ye.value?(a.openBlock(),a.createBlock(sr.ssDialog,{key:3,visible:Ye.value,onBeforeDestroy:Fc,style:{height:"80vh",width:"80vw"},"body-class":"three-dialog-body","footer-class":"three-dialog-footer"},{default:a.withCtx(()=>[a.createVNode(mo.ThreeViewerHost,{files:Da.value,threeData:oe.value},null,8,["files","threeData"])]),_:1},8,["visible"])):a.createCommentVNode("",!0),a.createVNode(sr.ssDialog,{visible:p.componentVisible,onBeforeDestroy:h[8]||(h[8]=F=>p.componentVisible=!1),width:ba.value,style:{height:"70vh"}},{default:a.withCtx(()=>[a.createVNode(De,{dialogItem:Vr.value},null,8,["dialogItem"])]),_:1},8,["visible","width"]),a.createVNode(sr.ssDialog,{title:"OCR扫描录入",visible:$e.value,"close-on-click-modal":!1,onBeforeDestroy:Na,width:"1000px",dialogHeight:700,minWidth:900,minHeight:600,class:"ocr-upload-dialog",resizable:!0},{default:a.withCtx(()=>[h[39]||(h[39]=a.createElementVNode("div",{class:"ocr-header-bg"},null,-1)),a.createElementVNode("div",D0,[a.createElementVNode("div",B0,[a.createElementVNode("div",{class:a.normalizeClass(["ocr-step-item",{active:Ce.value===1}])},h[29]||(h[29]=[a.createElementVNode("div",{class:"step-circle"},"1",-1),a.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件识别",-1)]),2),h[32]||(h[32]=a.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),a.createElementVNode("div",{class:a.normalizeClass(["ocr-step-item",{active:Ce.value===2}])},h[30]||(h[30]=[a.createElementVNode("div",{class:"step-circle"},"2",-1),a.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件确认",-1)]),2),h[33]||(h[33]=a.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),a.createElementVNode("div",{class:a.normalizeClass(["ocr-step-item",{active:Ce.value===3}])},h[31]||(h[31]=[a.createElementVNode("div",{class:"step-circle"},"3",-1),a.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件提交",-1)]),2)]),Ce.value===1?(a.openBlock(),a.createElementBlock("div",N0,[a.createVNode(he,{onClick:qo,class:"ocr-action-btn",disabled:ua.value,size:"default"},{default:a.withCtx(()=>h[34]||(h[34]=[a.createTextVNode("扫描文件 ")])),_:1,__:[34]},8,["disabled"]),a.createVNode(he,{onClick:zl,class:"ocr-action-btn",disabled:ua.value,size:"default"},{default:a.withCtx(()=>h[35]||(h[35]=[a.createTextVNode("上传文件 ")])),_:1,__:[35]},8,["disabled"])])):a.createCommentVNode("",!0),Ce.value===1?(a.openBlock(),a.createElementBlock("div",T0,[a.createElementVNode("div",A0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Qe.value,(F,na)=>{var ea;return a.openBlock(),a.createElementBlock("div",{key:na,class:"ocr-file-item"},[a.createElementVNode("div",M0,[F.raw&&((ea=F.raw.type)!=null&&ea.startsWith("image/"))?(a.openBlock(),a.createElementBlock("img",{key:0,src:Xa(F),alt:"预览",class:"thumbnail-image"},null,8,z0)):(a.openBlock(),a.createElementBlock("div",O0,[a.createVNode(He,{size:40},{default:a.withCtx(()=>[a.createVNode(a.unref(Wa.document_default))]),_:1})])),a.createElementVNode("div",{class:a.normalizeClass(["file-progress-ring",{uploading:Ma(F)==="uploading",processing:Ma(F)==="processing",completed:Ma(F)==="completed"||Ma(F)==="uploaded",failed:Ma(F)==="failed"}])},[(a.openBlock(),a.createElementBlock("svg",I0,[h[36]||(h[36]=a.createElementVNode("circle",{class:"progress-ring-bg",cx:"18",cy:"18",r:"16",fill:"none",stroke:"#e4e7ed","stroke-width":"2"},null,-1)),a.createElementVNode("circle",{class:a.normalizeClass(["progress-ring-fill",{completed:Ma(F)==="completed"||Ma(F)==="uploaded",uploading:Ma(F)==="uploading",processing:Ma(F)==="processing",failed:Ma(F)==="failed"}]),cx:"18",cy:"18",r:"16",fill:"none",stroke:Ma(F)==="failed"?"#f56c6c":Ma(F)==="completed"||Ma(F)==="uploaded"?"#67c23a":"#409eff","stroke-width":Ma(F)==="completed"||Ma(F)==="uploaded"||Ma(F)==="failed"?3:2,"stroke-dasharray":fl(F),"stroke-dashoffset":"0","stroke-linecap":"round",transform:"rotate(-90 18 18)"},null,10,L0)])),Ma(F)==="completed"||Ma(F)==="uploaded"?(a.openBlock(),a.createElementBlock("div",V0,[a.createVNode(He,{class:"check-icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(Wa.check_default))]),_:1})])):a.createCommentVNode("",!0),Ma(F)==="failed"?(a.openBlock(),a.createElementBlock("div",$0,[a.createVNode(He,{class:"error-icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(Wa.close_default))]),_:1})])):a.createCommentVNode("",!0)],2),a.createElementVNode("div",{class:"file-delete-btn",onClick:Ae=>$r(na)},[a.createVNode(He,null,{default:a.withCtx(()=>[a.createVNode(a.unref(Wa.close_default))]),_:1})],8,R0)]),a.createElementVNode("div",P0,a.toDisplayString(F.name||"文件名123"),1)])}),128))]),Qe.value.length>0?(a.openBlock(),a.createElementBlock("div",F0,[a.createVNode(he,{onClick:z,class:"ocr-start-recognize-btn",disabled:ua.value||Qe.value.length===0,size:"default"},{default:a.withCtx(()=>h[37]||(h[37]=[a.createTextVNode("开始识别 ")])),_:1,__:[37]},8,["disabled"])])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),Ce.value===1?(a.openBlock(),a.createElementBlock("div",j0,[a.createVNode(Be,{percentage:Xe.value,"stroke-width":8},null,8,["percentage"])])):a.createCommentVNode("",!0),Ce.value===2?(a.openBlock(),a.createElementBlock("div",H0,[a.createElementVNode("div",U0,[a.createVNode(va,{title:"请核对识别结果。",type:"info",closable:!1,"show-icon":""})]),a.createElementVNode("div",q0,[a.createVNode(Ra,{data:$a.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:a.withCtx(()=>[a.createVNode(ya,{type:"index",label:"序号",width:"60",fixed:""}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(_l.value,F=>(a.openBlock(),a.createBlock(ya,{key:F.prop,prop:F.prop,"min-width":F.minWidth||230,"class-name":F.isAccuracy?"accuracy-column":""},{header:a.withCtx(()=>[a.createElementVNode("div",W0,[a.createElementVNode("span",null,a.toDisplayString(F.label),1)])]),default:a.withCtx(({row:na,$index:ea})=>{var Ae,B,Me;return[F.isAccuracy?(a.openBlock(),a.createElementBlock("span",{key:0,class:"accuracy-value",style:a.normalizeStyle({color:fe(na[F.prop]),fontWeight:500})},a.toDisplayString(Te(na[F.prop])),5)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[Pa.value!==ea?(a.openBlock(),a.createElementBlock("span",K0,a.toDisplayString(na[F.prop]),1)):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(nl(F.prop)),{key:1,modelValue:na[F.prop],"onUpdate:modelValue":We=>na[F.prop]=We,size:"small",placeholder:"请输入"+F.label,content:((Ae=cl(F.prop))==null?void 0:Ae.contents)??((B=cl(F.prop))==null?void 0:B.options)??[],optionUrl:(Me=cl(F.prop))==null?void 0:Me.optionUrl,onChange:We=>de(ea,F.prop,We),onFocus:We=>hl.value=F.prop,onBlur:h[9]||(h[9]=We=>hl.value="")},null,40,["modelValue","onUpdate:modelValue","placeholder","content","optionUrl","onChange","onFocus"]))],64))]}),_:2},1032,["prop","min-width","class-name"]))),128)),a.createVNode(ya,{label:"编辑",width:"80",fixed:"right"},{default:a.withCtx(({$index:F})=>[Pa.value===F?(a.openBlock(),a.createBlock(He,{key:0,class:"ocr-edit-icon editing",style:{"margin-left":"12px"},onClick:a.withModifiers(na=>aa(F),["stop"])},{default:a.withCtx(()=>[a.createVNode(a.unref(Wa.check_default))]),_:2},1032,["onClick"])):(a.openBlock(),a.createBlock(M,{key:1,name:"edit_101",class:"ocr-edit-icon",onClick:a.withModifiers(na=>aa(F),["stop"])},null,8,["onClick"]))]),_:1})]),_:1},8,["data"])])])):a.createCommentVNode("",!0),Ce.value===3?(a.openBlock(),a.createElementBlock("div",Y0,[a.createVNode(He,{size:"32",class:"ocr-success-icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(Wa.check_default))]),_:1}),h[38]||(h[38]=a.createElementVNode("div",{class:"ocr-success-text"},"文件提交成功",-1))])):a.createCommentVNode("",!0)]),a.createVNode(ja,{ref:"ocrUploadRef","file-list":Qe.value,"onUpdate:fileList":h[10]||(h[10]=F=>Qe.value=F),multiple:"",action:"","auto-upload":!1,limit:20,accept:"image/*,application/pdf","on-change":m,"show-file-list":!1,class:"ocr-upload-input",style:{display:"none"}},null,8,["file-list"])]),footer:a.withCtx(()=>[Ce.value!==3?(a.openBlock(),a.createElementBlock("div",G0,[a.createVNode(he,{onClick:Hl,class:"ocr-start-recognize-btn",disabled:Ce.value===1||ua.value},{default:a.withCtx(()=>h[40]||(h[40]=[a.createTextVNode(" 上一步 ")])),_:1,__:[40]},8,["disabled"]),a.createVNode(he,{onClick:Tl,class:"ocr-start-recognize-btn",disabled:ua.value},{default:a.withCtx(()=>h[41]||(h[41]=[a.createTextVNode(" 下一步 ")])),_:1,__:[41]},8,["disabled"])])):a.createCommentVNode("",!0)]),_:1},8,["visible"]),a.createVNode(gf,{visible:ut.value,onConfirm:Wo,onCancel:h[11]||(h[11]=F=>ut.value=!1)},null,8,["visible"]),a.createVNode(od,{visible:Fa.value,"onUpdate:visible":h[12]||(h[12]=F=>Fa.value=F),versions:Ea.value},null,8,["visible","versions"]),a.createVNode(Wu,{visible:xl.value,"onUpdate:visible":h[13]||(h[13]=F=>xl.value=F),images:jl.value,"default-image-name":Xl.value,"field-meta":Pa.value!==null?((La=$a.value[Pa.value])==null?void 0:La.__ocrFieldMeta)||{}:{},"focused-field-name":hl.value,onClose:h[14]||(h[14]=F=>xl.value=!1),class:"ocr-img-preview-dialog"},null,8,["visible","images","default-image-name","field-meta","focused-field-name"]),a.createVNode(bd,{visible:lr.value,"onUpdate:visible":h[15]||(h[15]=F=>lr.value=F),candidates:Il.value,"name-prop":gn.value,"mfr-prop":bn.value,columns:we.value,onSubmit:Dr,onPreviewFile:Tr},null,8,["visible","candidates","name-prop","mfr-prop","columns"]),a.createVNode(Sd,{visible:Oa.value,"onUpdate:visible":h[16]||(h[16]=F=>Oa.value=F),ocrPreviewData:$a.value,"onUpdate:ocrPreviewData":h[17]||(h[17]=F=>$a.value=F),ocrSelectedFields:tl.value,"onUpdate:ocrSelectedFields":h[18]||(h[18]=F=>tl.value=F),ocrPreviewColumns:_l.value,onConfirm:X,onFieldChange:h[19]||(h[19]=({rowIndex:F,prop:na,value:ea})=>de(F,na,ea))},null,8,["visible","ocrPreviewData","ocrSelectedFields","ocrPreviewColumns"]),a.createVNode(sr.ssDialog,{title:gr.title,visible:gr.show,width:gr.width,onBeforeDestroy:o},{default:a.withCtx(()=>[a.createElementVNode("div",X0,[a.createVNode(rl.ssForm,{rowContents:gr==null?void 0:gr.contents,formRules:gr==null?void 0:gr.formRules,showOperator:!1,buttonValue:gr.buttonValue,isEdit:Pe.value,isStartJustify:!1,onOnButtonClick:d},null,8,["rowContents","formRules","buttonValue","isEdit"])])]),_:1},8,["title","visible","width"]),a.createVNode(sr.ssDialog,{title:$l.title,visible:$l.show,width:$l.width,alignCenter:!0,onBeforeDestroy:Ko},{header:a.withCtx(()=>[a.createVNode(da,{size:"small",type:"danger",style:{width:"100%"}},{default:a.withCtx(()=>h[42]||(h[42]=[a.createTextVNode("(选择【覆盖】,可能会影响到原数据的引用关系;选择【取消】将会放弃重复数据的导入。请谨慎操作!)")])),_:1,__:[42]})]),footer:a.withCtx(()=>[a.createElementVNode("div",J0,[a.createVNode(da,{size:"small",style:{width:"100%","text-align":"left"},type:"info"},{default:a.withCtx(()=>[a.createTextVNode("引用模块:"+a.toDisplayString(wn.value||"暂无"),1)]),_:1}),a.createElementVNode("div",Z0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList($l==null?void 0:$l.buttonValue,F=>(a.openBlock(),a.createBlock(he,{key:F==null?void 0:F.label,style:a.normalizeStyle({background:F==null?void 0:F.background,color:F==null?void 0:F.color}),onClick:na=>i(F==null?void 0:F.value)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(F==null?void 0:F.label),1)]),_:2},1032,["style","onClick"]))),128))])])]),default:a.withCtx(()=>[a.createVNode(Pp,{columns:$l==null?void 0:$l.columns,tableData:$l==null?void 0:$l.tableData},{content:a.withCtx(({row:F,item:na,slotData:ea,scope:Ae,column:B,columnProp:Me,$index:We})=>[a.createTextVNode(a.toDisplayString((F==null?void 0:F[(B==null?void 0:B.prop)||(B==null?void 0:B.label)])||(ea==null?void 0:ea[B==null?void 0:B.property])),1)]),_:1},8,["columns","tableData"])]),_:1},8,["title","visible","width"])])}}},cc=Fl._export_sfc(e3,[["__scopeId","data-v-4cd96ec7"]]),a3={class:"static-form-card"},l3={key:0,class:"static-form-body"},r3={class:"static-form-label"},n3=["onClick"],t3={key:1},o3={key:1,class:"static-form-empty"},i3=a.defineComponent({__name:"index",props:{itemData:{default:()=>[]},fields:{default:()=>[]},compName:{default:""},title:{default:""},disabled:{type:Boolean,default:!1}},setup(l){const n=l,r=c=>{switch(c){case"占用":return"warning";case"注销":return"info";case"损坏":return"danger";case"可用":return"success";default:return""}},t=a.computed(()=>{var O;const c=(O=n.itemData)==null?void 0:O.find(w=>(w==null?void 0:w.key)==="formContent"),E=(c==null?void 0:c.contents)||[];return(n.fields&&n.fields.length>0?n.fields:E).filter(w=>!(w!=null&&w.isFormColHidden)&&(w==null?void 0:w.label)).map(w=>{let Y=w==null?void 0:w.value;Array.isArray(Y)&&(Y=Y.map(S=>S==null?"":typeof S=="object"?S.label??S.value??S.name??JSON.stringify(S):String(S)).filter(Boolean).join(",")),Y!=null&&typeof Y=="object"&&(Y=Y.label??Y.value??Y.name??JSON.stringify(Y));const _=w.label??"",A=Y==null||Y===""?"-":String(Y),Z=_==="使用状态";return{label:_,value:A,isStatus:Z,tagType:Z?r(A):"",width:w.width??1,field:w}})}),s=a.ref(null),u=c=>rl.getComponent(c),k=c=>{if(!c)return;const E=c.querySelector("input, textarea, .el-input__inner");E&&typeof E.focus=="function"&&E.focus()},f=(c,E,N)=>{n.disabled||(s.value=E,a.nextTick(()=>{k(N.currentTarget)}))},v=()=>{s.value=null},y=c=>{const E=c!=null&&c.width&&c.width>0?c.width:1,O=`calc((100% - ${(E-1)*48}px) / ${E})`;return{flex:`0 0 ${O}`,maxWidth:O,minWidth:"0",boxSizing:"border-box"}};return(c,E)=>{const N=a.resolveComponent("el-tag");return a.openBlock(),a.createElementBlock("div",a3,[t.value.length?(a.openBlock(),a.createElementBlock("div",l3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.value,(O,w)=>{var Y,_,A,Z,S,$,T,x;return a.openBlock(),a.createElementBlock("div",{key:w,class:"static-form-item",style:a.normalizeStyle(y(O))},[a.createElementVNode("div",r3,a.toDisplayString(O.label)+": ",1),a.createElementVNode("div",{class:"static-form-value",onClick:g=>f(O,w,g)},[s.value===w&&O.field?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u(((Y=O.field)==null?void 0:Y.type)??"Input")),{key:0,modelValue:O.field.value,"onUpdate:modelValue":g=>O.field.value=g,isEdit:!0,disabled:(_=O.field)==null?void 0:_.disabled,content:((A=O.field)==null?void 0:A.contents)??[],optionUrl:O.field,originalValue:(Z=O.field)==null?void 0:Z.value,config:(S=O.field)==null?void 0:S.config,configModel:(($=O.field)==null?void 0:$.prop)??((T=O.field)==null?void 0:T.name),selectedTagList:((x=O.field)==null?void 0:x.selectValue)??[],onBlur:v,onBlurChange:v},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[O.isStatus?(a.openBlock(),a.createBlock(N,{key:0,type:O.tagType,size:"Default",effect:"plain"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(O.value??"-"),1)]),_:2},1032,["type"])):(a.openBlock(),a.createElementBlock("span",t3,a.toDisplayString(O.value??"-"),1))],64))],8,n3)],4)}),128))])):(a.openBlock(),a.createElementBlock("div",o3," 暂无数据 "))])}}}),uc=Fl._export_sfc(i3,[["__scopeId","data-v-c4ed3455"]]),s3={class:"form-content"},c3={title:"选择标签"},u3={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},d3={class:"col-operate-wrap"},p3={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},f3={__name:"index",props:{formRules:Object,itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,compName:{type:String,default:""},allMapContents:{type:Object},config:{type:Object,default:()=>{}}},emits:["change","contentChange","routeUrl","clickTrigger"],setup(l,{emit:n}){const r=()=>{k.value=!1,f.value=!1,v.value=[]},t=l;a.computed(()=>{var Pe;const pe=(Pe=D.value)==null?void 0:Pe.split("/");return(pe==null?void 0:pe.some(ca=>(ca==null?void 0:ca.includes("updateLoading"))||(ca==null?void 0:ca.includes("loading"))))?!1:te.value==="view"});const s=n,u=a.ref([]),k=a.ref(!1),f=a.ref(!1),v=a.ref([]),{getFileExtension:y}=mo.useThreeSystem(),c=a.ref(),E=a.ref(!1),N=a.ref(!1),O=L.useUnit(L.pinia),{chooseTitle:w}=L.storeToRefs(O),Y=a.ref([]),_=a.ref(),A=a.ref(!1),Z=a.ref([]),S=Ws(L.pinia),$=yi(L.pinia),T=a.ref(!1),x=a.ref(),g=L.useLoginState(L.pinia),{loginUserInfo:H}=L.storeToRefs(g),W=a.ref(),ae=a.ref(!0),ge=L.useModelComp(L.pinia),{tableViewContents:Oe,itemData:we,isEdit:te,routeToChildPath:me,lockingPage:J}=L.storeToRefs(ge),ue=a.ref(null),Ye=a.ref(!1),Sa=a.ref(!1),oe=L.useMenuState(),{activeMenuPath:D}=L.storeToRefs(oe),ne=sa.useOriginalState(L.pinia),{originalPath:ve}=L.storeToRefs(ne),{compType:se,hasEditable:xe}=Rs.useRole(),ta=()=>!xe(t.config,{type:se.FORM});a.computed(()=>D.value==="设备管理/试验设备"&&t.compName==="设备概要");const wa=a.ref([]),Ia=a.ref([{label:"编辑",value:"operable",checked:!1},{label:"禁用",value:"disabled",checked:!1}]),le=async pe=>{Sa.value=pe,await Ge("disabled",null,pe,!0)},ra=async pe=>{await Ge("operable",null,pe,!0)};a.watch(()=>D.value,async()=>{u.value=[],v.value=[]},{deep:!0,immediate:!0});const Ve=()=>{a.nextTick(()=>{ze()})},_a=pe=>{var je;u.value=(je=u.value)==null?void 0:je.map(Pe=>({...Pe,isFormColHidden:!(pe!=null&&pe.includes(Pe.label))}))};a.onUnmounted(()=>{ue.value=null});const Fe=pe=>{s("clickTrigger",pe)},_e=async pe=>{var je,Pe,ca,ka,Ie,fa;if(pe===""){let Re="";(je=u.value)==null||je.forEach(ce=>{ce!=null&&ce.isMain&&(Re=ce==null?void 0:ce.value)});let Ca=await sa.getItemData(me.value,sessionStorage.getItem("systemKey"),"");Re=((fa=(Ie=(ka=(ca=(Pe=Ca==null?void 0:Ca[0])==null?void 0:Pe.compData)==null?void 0:ca.find(ce=>(ce==null?void 0:ce.key)==="mainRouters"))==null?void 0:ka.contents)==null?void 0:Ie[0])==null?void 0:fa.routerContent)+ve.value+Re;let ba=await sa.getItemData(Re,sessionStorage.getItem("systemKey"),"");A.value=!0,Z.value=ba==null?void 0:ba.filter(ce=>(ce==null?void 0:ce.comp)!=="methodButton"),s("routeUrl",Z.value)}},ze=()=>{var je;const pe=(je=ue.value)==null?void 0:je.$el;pe&&Aa.Sortable.create(pe,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:Pe=>{const{oldIndex:ca,newIndex:ka}=Pe;if(ca===ka)return;const Ie=u.value.splice(ca,1)[0];u.value.splice(ka,0,Ie)}})},Ge=async(pe,je,Pe,ca=!1)=>{try{ge.setRefreshCurStructure(!1)}catch{Wa.ElMessage.error("编辑处理失败")}},Ba=async(pe,je)=>{await Ge()},Ja=async(pe,je)=>{pe&&await Ge()},R=async(pe,je,Pe)=>{await Ge(je,Pe,pe,!1)},j=(pe,je)=>{W.value===je?ae.value=!1:ae.value=!0,W.value=je==null?void 0:je.changeProp},G=async pe=>{var Pe,ca,ka,Ie,fa,Re,Ca,Ue,ba,ce,xa,ye,Da,Ze,Je;let je=[];if((Pe=pe==null?void 0:pe.toString())!=null&&Pe.includes(".urdf")){if(pe.includes(",")){Wa.ElMessage.error("当前版本仅允许单个urdf预览!");return}v.value=[{url:pe,extension:y(pe)}],f.value=!0,k.value=!0;return}if((ca=pe==null?void 0:pe.toString())!=null&&ca.includes(".stl")||(ka=pe==null?void 0:pe.toString())!=null&&ka.includes(".STL")||(Ie=pe==null?void 0:pe.toString())!=null&&Ie.includes(".obj")||(fa=pe==null?void 0:pe.toString())!=null&&fa.includes(".mtl")){const be=((Re=pe==null?void 0:pe.toString())==null?void 0:Re.split(",")).map(Se=>({url:Se,extension:y(Se)}));v.value=be,f.value=!1,k.value=!0;return}if((Ca=pe==null?void 0:pe.toString())!=null&&Ca.includes(".stl")||(Ue=pe==null?void 0:pe.toString())!=null&&Ue.includes(".STL")||(ba=pe==null?void 0:pe.toString())!=null&&ba.includes(".obj")||(ce=pe==null?void 0:pe.toString())!=null&&ce.includes(".mtl")){let Ee,be=[],Se={};if(Array.isArray(pe)?Ee=pe:Ee=pe==null?void 0:pe.split(","),Ee==null||Ee.forEach(ha=>{ha.includes(".mtl")?be.push(ha):Se.blob=Se.blob?Se.blob+","+ha:ha}),(be==null?void 0:be.length)>0&&(Se.mtlBlobs=be),(ye=(xa=Object.values(Se))==null?void 0:xa[0])!=null&&ye.includes("http:"))je.push(Se);else{const ha=new Blob([Se.blob],{type:"application/octet-stream;charset=UTF-8"});let oa=URL.createObjectURL(ha),Qa="";(Da=pe==null?void 0:pe.split("/"))==null||Da.forEach((Dl,Ol)=>{var Za;Ol===((Za=pe==null?void 0:pe.split("/"))==null?void 0:Za.length)-1&&(Qa=Dl)}),(Ze=Se.blob)!=null&&Ze.includes(".stl")&&(Qa=(Qa==null?void 0:Qa.replaceAll(">",""))+".urdf"),_.value=[{name:Qa,blobUrl:oa}],N.value=!0}}else{const Ee=L.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),be=await Wa.axios.get(pe,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{Ee.close()}),Se=new Blob([be.data],{type:"application/octet-stream;charset=UTF-8"});let ha=URL.createObjectURL(Se),oa="";(Je=pe==null?void 0:pe.split("/"))==null||Je.forEach((Qa,Dl)=>{var Ol;Dl===((Ol=pe==null?void 0:pe.split("/"))==null?void 0:Ol.length)-1&&(oa=Qa)}),_.value=[{name:oa,blobUrl:ha}],N.value=!0}(je==null?void 0:je.length)>0&&$.setBlobUrls(je)},V=()=>{N.value=!1},K=pe=>{var Ie,fa,Re,Ca;const je=(fa=(Ie=rl.safeClone(t.itemData))==null?void 0:Ie.find(Ue=>(Ue==null?void 0:Ue.key)==="formContent"))==null?void 0:fa.contents,Pe=rl.safeClone(pe.content);let ca={};Pe&&((Re=Object.values(Pe))==null?void 0:Re.length)>0&&((Ca=Object.values(Pe))==null||Ca.forEach((Ue,ba)=>{ca[je[ba].key]=Ue}));const ka={content:ca,index:t==null?void 0:t.index,buttonName:pe==null?void 0:pe.buttonName};s("change",ka)};a.computed(()=>"http://222.92.178.198:62001");const Ne=async pe=>{var xa,ye,Da,Ze,Je,Ee,be,Se,ha,oa,Qa,Dl,Ol,Za,qe,$e;if(!pe)return;(ye=(xa=t==null?void 0:t.itemData)==null?void 0:xa.find(ua=>(ua==null?void 0:ua.key)==="parentFormPath"))==null||ye.contents;let je=Oe.value;(je==null?void 0:je.length)>0&&(je=je==null?void 0:je.map(ua=>{var Ta,Fa,Ea,Ce;let Qe=(Ta=ua==null?void 0:ua.key)==null?void 0:Ta.split("/");return(t==null?void 0:t.compName)===(Qe==null?void 0:Qe[0])&&(Fa=u.value)!=null&&Fa.find(q=>(q==null?void 0:q.prop)===(Qe==null?void 0:Qe[1]))&&(ua.value=(Ce=(Ea=u.value)==null?void 0:Ea.find(q=>(q==null?void 0:q.prop)===(Qe==null?void 0:Qe[1])))==null?void 0:Ce.value),ua}),ge.setTableViewContents(je));const Pe=rl.safeClone(t.itemData);let ca=Pe==null?void 0:Pe.map(ua=>{var Qe;return(ua==null?void 0:ua.key)==="formContent"&&((Qe=ua.contents)==null||Qe.map((Ta,Fa)=>{var Ea,Ce,q,Le,Xe,Oa,$a,_l,cl,nl,ml,sl,tl,Pa,hl,xl,jl,Xl,lr;return Ta.type=(Ce=(Ea=u.value)==null?void 0:Ea.find(Il=>(Il==null?void 0:Il.prop)===(Ta==null?void 0:Ta.prop)))==null?void 0:Ce.type,Ta.options=Ta!=null&&Ta.options?Ta.options:((Xe=(Le=(q=Ta==null?void 0:Ta.key)==null?void 0:q.split("$"))==null?void 0:Le[1])==null?void 0:Xe.length)>0?(cl=(_l=Cu(($a=(Oa=Ta==null?void 0:Ta.key)==null?void 0:Oa.split("$"))==null?void 0:$a[1]))==null?void 0:_l.split(","))==null?void 0:cl.map(Il=>({label:Il,value:Il})):[],(nl=Ta==null?void 0:Ta.key)!=null&&nl.includes("$")&&(Ta.key=(sl=(ml=Ta==null?void 0:Ta.key)==null?void 0:ml.split("$"))==null?void 0:sl[0]),Ta.signature=(Pa=(tl=u.value)==null?void 0:tl.find(Il=>(Il==null?void 0:Il.prop)===(Ta==null?void 0:Ta.prop)))==null?void 0:Pa.signature,Ta.isLoginUser=(xl=(hl=u.value)==null?void 0:hl.find(Il=>(Il==null?void 0:Il.prop)===(Ta==null?void 0:Ta.prop)))==null?void 0:xl.isLoginUser,Ta.value=(jl=Object.values(pe))==null?void 0:jl[Fa],Ta.isFormColHidden=(lr=(Xl=u.value)==null?void 0:Xl.find(Il=>(Il==null?void 0:Il.prop)===(Ta==null?void 0:Ta.prop)))==null?void 0:lr.isFormColHidden,Ta})),ua}),ka=u.value,Ie=(Ze=(Da=rl.safeClone(ca))==null?void 0:Da.find(ua=>(ua==null?void 0:ua.key)==="formContent"))==null?void 0:Ze.contents;if(ka=ka==null?void 0:ka.map(ua=>{var Qe,Ta;return(ua==null?void 0:ua.type)==="Select"&&((Qe=ua==null?void 0:ua.allSelectionContents)==null?void 0:Qe.length)>0&&(ua.contactValue=pe),ua.value=(Ta=Ie==null?void 0:Ie.find((Fa,Ea)=>((Fa==null?void 0:Fa.id)??Ea)===(ua==null?void 0:ua.id)))==null?void 0:Ta.value,ua}),!ae.value){s("contentChange",{contents:ca,index:t.index});return}let fa="",Re=(be=(Ee=(Je=rl.safeClone(ca))==null?void 0:Je.find(ua=>(ua==null?void 0:ua.key)==="formContent"))==null?void 0:Ee.contents)==null?void 0:be.find((ua,Qe)=>{var Ta,Fa,Ea;return(ua==null?void 0:ua.label)===W.value||Qe.toString()===((Ea=(Fa=(Ta=W.value)==null?void 0:Ta.split("t"))==null?void 0:Fa[1])==null?void 0:Ea.toString())}),Ca=(Se=Re==null?void 0:Re.optionUrl)==null?void 0:Se.menuSelect,Ue=!0;if((Qa=(oa=(ha=rl.safeClone(ca))==null?void 0:ha.find(ua=>(ua==null?void 0:ua.key)==="formContent"))==null?void 0:oa.contents)==null||Qa.forEach(ua=>{var Qe,Ta,Fa,Ea,Ce,q;Ue&&((Fa=(Ta=(Qe=ua==null?void 0:ua.optionUrl)==null?void 0:Qe.groupSelect)==null?void 0:Ta[1])!=null&&Fa.includes("["))&&(fa=(Ce=(Ea=ua==null?void 0:ua.optionUrl)==null?void 0:Ea.groupSelect)==null?void 0:Ce[1],JSON.stringify(Ca)===JSON.stringify((q=ua==null?void 0:ua.optionUrl)==null?void 0:q.menuSelect)&&(Ue=!1))}),(Dl=Re==null?void 0:Re.optionUrl)!=null&&Dl.menuSelect&&ae.value){let ua=await si(Re),Qe,Ta=(Ol=Re==null?void 0:Re.optionUrl)==null?void 0:Ol.menuSelect;if(ua==null||ua.forEach(Fa=>{var Ea,Ce,q,Le,Xe,Oa,$a,_l,cl,nl;fa===((Ce=(Ea=Re==null?void 0:Re.optionUrl)==null?void 0:Ea.groupSelect)==null?void 0:Ce[1])&&((Xe=(Le=(q=Re==null?void 0:Re.optionUrl)==null?void 0:q.groupSelect)==null?void 0:Le[1])!=null&&Xe.includes("["))&&((nl=rl.safeClone(Fa))==null?void 0:nl[(cl=(_l=($a=(Oa=Re==null?void 0:Re.optionUrl)==null?void 0:Oa.groupSelect)==null?void 0:$a[1])==null?void 0:_l.replaceAll("[",""))==null?void 0:cl.replaceAll("]","")])===(Re==null?void 0:Re.value)&&(Qe=Fa)}),Qe){let Fa=rl.safeClone(ka);Fa=Fa==null?void 0:Fa.map(Ce=>{var q,Le,Xe,Oa,$a,_l,cl,nl,ml,sl,tl;return(Qe!=null&&Qe[Ce==null?void 0:Ce.label]||Qe!=null&&Qe[(Oa=(Xe=(Le=(q=Ce==null?void 0:Ce.optionUrl)==null?void 0:q.groupSelect)==null?void 0:Le[1])==null?void 0:Xe.replaceAll("[",""))==null?void 0:Oa.replaceAll("]","")])&&((cl=(_l=($a=Ce==null?void 0:Ce.optionUrl)==null?void 0:$a.groupSelect)==null?void 0:_l[1])!=null&&cl.includes("["))&&Ta!=null&&Ta.every(Pa=>{var hl,xl;return(xl=(hl=Ce==null?void 0:Ce.optionUrl)==null?void 0:hl.menuSelect)==null?void 0:xl.includes(Pa)})&&(Ce.value=(Qe==null?void 0:Qe[Ce==null?void 0:Ce.label])||(Qe==null?void 0:Qe[(tl=(sl=(ml=(nl=Ce==null?void 0:Ce.optionUrl)==null?void 0:nl.groupSelect)==null?void 0:ml[1])==null?void 0:sl.replaceAll("[",""))==null?void 0:tl.replaceAll("]","")]),Array.isArray(Ce.value)&&Ce.value.every(Pa=>(Pa==null?void 0:Pa.url)&&(Pa==null?void 0:Pa.name))&&(Ce.type="Upload")),Ce}),Fa=Fa==null?void 0:Fa.map(Ce=>{var q,Le,Xe;return(q=Ce==null?void 0:Ce.optionUrl)!=null&&q.oldMenuSelect&&(Ce.optionUrl.menuSelect=(Xe=(Le=rl.safeClone(Ce))==null?void 0:Le.optionUrl)==null?void 0:Xe.oldMenuSelect),Ce}),u.value=rl.safeClone(Fa);let Ea=rl.safeClone(Fa);Ea=Ea==null?void 0:Ea.map(Ce=>{var q,Le,Xe,Oa,$a,_l;return(Le=(q=Ce==null?void 0:Ce.optionUrl)==null?void 0:q.menuSelect)!=null&&Le.some(cl=>cl==null?void 0:cl.includes("["))&&(Ce.optionUrl.oldMenuSelect=(Oa=(Xe=rl.safeClone(Ce))==null?void 0:Xe.optionUrl)==null?void 0:Oa.menuSelect,Ce.optionUrl.menuSelect=(_l=($a=Ce==null?void 0:Ce.optionUrl)==null?void 0:$a.menuSelect)==null?void 0:_l.map(cl=>{var nl,ml,sl,tl;if(cl!=null&&cl.includes("[")){let Pa=(ml=(nl=cl==null?void 0:cl.replaceAll("[","").replaceAll("]",""))==null?void 0:nl.split(":"))==null?void 0:ml[1];cl=(tl=(sl=rl.safeClone(Fa))==null?void 0:sl.find(hl=>(hl==null?void 0:hl.label)===Pa))==null?void 0:tl.value}return cl})),Ce}),u.value=Ea}else u.value=ka;ca=ca==null?void 0:ca.map(Fa=>{var Ea;return(Fa==null?void 0:Fa.key)==="formContent"&&(Fa.contents=(Ea=Fa.contents)==null?void 0:Ea.map(Ce=>{var q,Le,Xe,Oa;return Ce.value=((Le=(q=u.value)==null?void 0:q.find($a=>($a==null?void 0:$a.label)===(Ce==null?void 0:Ce.key)))==null?void 0:Le.value)??(Ce==null?void 0:Ce.value),Ce.type=((Oa=(Xe=u.value)==null?void 0:Xe.find($a=>($a==null?void 0:$a.prop)===(Ce==null?void 0:Ce.key)))==null?void 0:Oa.type)??(Ce==null?void 0:Ce.type),Ce})),Fa})}ae.value=!1,s("contentChange",{contents:ca,index:t.index});let ba=[],ce=[];if((qe=rl.safeClone((Za=ca==null?void 0:ca.find(ua=>(ua==null?void 0:ua.key)==="formContent"))==null?void 0:Za.contents))==null||qe.forEach(ua=>{var Qe;Array.isArray(ua==null?void 0:ua.value)&&((Qe=ua==null?void 0:ua.value)!=null&&Qe.find(Ta=>{var Fa;return(Fa=Ta==null?void 0:Ta.url)==null?void 0:Fa.includes(".obj")}))&&(ce=ua==null?void 0:ua.value)}),(ce==null?void 0:ce.length)>0){const ua=($e=rl.safeClone(ce))==null?void 0:$e.filter(Qe=>{var Ta;return(Ta=Qe==null?void 0:Qe.url)==null?void 0:Ta.includes(".obj")});ua==null||ua.forEach(Qe=>{var Fa,Ea,Ce,q;const Ta=(Fa=ce==null?void 0:ce.filter(Le=>{var Xe;return(Le==null?void 0:Le.name)===(Qe==null?void 0:Qe.name)&&((Xe=Le==null?void 0:Le.url)==null?void 0:Xe.includes(".mtl"))}))==null?void 0:Fa.map(Le=>Le==null?void 0:Le.url);ba.push({objUrl:Qe==null?void 0:Qe.url,mtlUrls:((Ea=ce==null?void 0:ce.filter(Le=>{var Xe;return(Le==null?void 0:Le.name)===(Qe==null?void 0:Qe.name)&&((Xe=Le==null?void 0:Le.url)==null?void 0:Xe.includes(".mtl"))}))==null?void 0:Ea.length)===1?(q=(Ce=ce==null?void 0:ce.filter(Le=>{var Xe;return(Le==null?void 0:Le.name)===(Qe==null?void 0:Qe.name)&&((Xe=Le==null?void 0:Le.url)==null?void 0:Xe.includes(".mtl"))}))==null?void 0:Ce[0])==null?void 0:q.url:Ta})}),$.setObjUrl(ba)}},Q=(pe,je,Pe)=>{let ca="";const ka=je==null?void 0:je.map(Ie=>{var fa;return(fa=Ie==null?void 0:Ie.value)==null?void 0:fa.pageData});return ka==null||ka.forEach(Ie=>{var fa;(Ie==null?void 0:Ie.name)===(pe==null?void 0:pe[0])&&((fa=Ie==null?void 0:Ie.compData)==null||fa.forEach(Re=>{var Ca;(Re==null?void 0:Re.key)==="formContent"&&((Ca=Re==null?void 0:Re.contents)==null||Ca.forEach(Ue=>{var ba;(Ue==null?void 0:Ue.prop)===(pe==null?void 0:pe[1])&&(ca=(Ue==null?void 0:Ue.value)===""?sa.judgeContents((ba=rl.safeClone(Ue))==null?void 0:ba.optionUrl,Pe):Ue==null?void 0:Ue.value)}))}))}),ca},ke=(pe,je,Pe,ca)=>{var Re,Ca;let ka="",Ie="";(Re=rl.safeClone(je))==null||Re.forEach((Ue,ba)=>{Ue!=null&&Ue.includes("[")?Ie=Ie+ve.value+pe[ba]:Ie=Ie===""?Ie+Ue:Ie+"/"+Ue});let fa=(Ca=ca[Ie])==null?void 0:Ca.map(Ue=>{var ba;return(ba=Ue==null?void 0:Ue.value)==null?void 0:ba.pageData});return fa==null||fa.forEach(Ue=>{var ba;(Ue==null?void 0:Ue.name)===(Pe==null?void 0:Pe[0])&&((ba=Ue==null?void 0:Ue.compData)==null||ba.forEach(ce=>{var xa;(ce==null?void 0:ce.key)==="formContent"&&((xa=ce==null?void 0:ce.contents)==null||xa.forEach(ye=>{(ye==null?void 0:ye.prop)===(Pe==null?void 0:Pe[1])&&(ka=ye==null?void 0:ye.value)}))}))}),ka};return a.watch(()=>t.itemData,async()=>{var Re,Ca,Ue,ba,ce,xa,ye,Da,Ze,Je,Ee,be,Se,ha,oa,Qa,Dl,Ol,Za;const pe=(Re=t.itemData)==null?void 0:Re.find(qe=>(qe==null?void 0:qe.key)==="formContent"),je=(Ca=rl.safeClone(t.itemData))==null?void 0:Ca.find(qe=>(qe==null?void 0:qe.key)==="formButton"),Pe=(Ue=rl.safeClone(t.itemData))==null?void 0:Ue.find(qe=>(qe==null?void 0:qe.key)==="formFlex"),ca=(ba=rl.safeClone(t.itemData))==null?void 0:ba.find(qe=>(qe==null?void 0:qe.key)==="formWrap"),ka=(ce=rl.safeClone(t.itemData))==null?void 0:ce.find(qe=>(qe==null?void 0:qe.key)==="enableWrap");(ca==null?void 0:ca.contents)==="纵向"?E.value=!1:E.value=!0;const Ie=ka==null?void 0:ka.contents;if(Ie===void 0?T.value=at.BLOCK:typeof Ie=="boolean"?T.value=Ie?at.ORDINARY:at.BLOCK:T.value=Ie,x.value=typeof(Pe==null?void 0:Pe.contents)!="boolean"?!(!(Pe!=null&&Pe.contents)===""||((xa=Pe==null?void 0:Pe.contents)==null?void 0:xa.toUpperCase())==="VERTICAL"):Pe==null?void 0:Pe.contents,((ye=pe==null?void 0:pe.contents)==null?void 0:ye.length)>0&&Array.isArray(pe==null?void 0:pe.contents)){let qe=t.allMapContents;const $e=(Ze=(Da=rl.safeClone(pe))==null?void 0:Da.contents)==null?void 0:Ze.map((q,Le)=>{var Xl,lr,Il,kr,pr,Ir,Lr,cn,gn,bn,un,dn,pn;let Xe=(q==null?void 0:q.label)??(q==null?void 0:q.key)??"";q==null||q.type;let Oa=(q==null?void 0:q.options)??[];if((Xl=q==null?void 0:q.key)!=null&&Xl.includes("$")&&(Xe=(lr=rl.safeClone(q==null?void 0:q.key).split("$"))==null?void 0:lr[0],((kr=(Il=rl.safeClone(q==null?void 0:q.key).split("$"))==null?void 0:Il[1])==null?void 0:kr.length)>0)){const[nr,Dr]=(Ir=(pr=rl.safeClone(q==null?void 0:q.key).split("$"))==null?void 0:pr[1])==null?void 0:Ir.split(/[()]/);(Lr=sa.FormType.find(Cr=>(Cr==null?void 0:Cr.key)===nr))==null||Lr.value,((cn=Dr==null?void 0:Dr.split(","))==null?void 0:cn.length)>0&&(Oa=(gn=Dr==null?void 0:Dr.split(","))==null?void 0:gn.map(Cr=>({label:Cr,value:Cr})))}let $a=q==null?void 0:q.options;((bn=q==null?void 0:q.optionUrl)==null?void 0:bn.selectRelateType)==="自定义绑定"&&($a=(dn=(un=q==null?void 0:q.optionUrl)==null?void 0:un.defaultSelect)==null?void 0:dn.map(nr=>({label:nr,value:nr})));let _l=(q==null?void 0:q.menuPath)??[],cl=(q==null?void 0:q.groups)??[],nl=(q==null?void 0:q.columns)??[],ml=!1,sl=(q==null?void 0:q.isFormColHidden)??!1,tl="",Pa=q!=null&&q.value?q.value:($a==null?void 0:$a.length)>0?(pn=$a==null?void 0:$a[0])==null?void 0:pn.value:(q==null?void 0:q.value)??"",hl=!1,xl="Input";return(($a==null?void 0:$a.length)>0||(_l==null?void 0:_l.length)>0)&&(xl="Select"),(Array.isArray(tl)&&(tl!=null&&tl.every(nr=>(nr==null?void 0:nr.name)&&(nr==null?void 0:nr.url)))||Array.isArray(Pa)&&(Pa!=null&&Pa.every(nr=>(nr==null?void 0:nr.name)&&(nr==null?void 0:nr.url))))&&(xl="upload"),q!=null&&q.isMainUrl&&(xl="Url"),{label:Xe??"",name:Xe??"t"+Le,prop:Xe??rl.safeClone(q==null?void 0:q.key),type:(q==null?void 0:q.type)??xl,value:(q==null?void 0:q.type)==="Date"&&Pa===""?new Date:Pa,id:(q==null?void 0:q.id)??Le,contents:($a==null?void 0:$a.length)>0?$a:Oa??[],width:(q==null?void 0:q.width)??1,isLoginUser:ml,config:q==null?void 0:q.config,optionUrl:(q==null?void 0:q.optionUrl)??q,isFormColHidden:sl,signature:hl,isMain:q==null?void 0:q.isMain,required:(q==null?void 0:q.required)??!1,isMainUrl:q==null?void 0:q.isMainUrl,operable:(q==null?void 0:q.operable)??!1,disabled:(q==null?void 0:q.disabled)??!1,isSync:q==null?void 0:q.isSync,menus:_l,groups:cl,words:nl,allSelectionContents:q==null?void 0:q.allContents,filterContent:q==null?void 0:q.filterContents}}),ua=$e==null?void 0:$e.map(q=>q==null?void 0:q.value);let Qe="";ua==null||ua.forEach(q=>{q!==""&&q!==void 0&&(Qe=Qe===""?q:Qe+"/"+q)}),S.setSelectArray(ua),S.setSelectString(Qe);let Ta=(Je=rl.safeClone($e))==null?void 0:Je.map(q=>(q!=null&&q.value&&sa.IsJson(q==null?void 0:q.value)&&Array.isArray(JSON.parse(q==null?void 0:q.value))&&(q.value=JSON.parse(q.value)),q)),Fa={};Ta==null||Ta.forEach(q=>{Fa[q.label]=q==null?void 0:q.value}),Ta=Ta==null?void 0:Ta.map(q=>{var Le,Xe,Oa,$a,_l,cl,nl,ml,sl;if((q==null?void 0:q.type)==="Select"&&((Le=q==null?void 0:q.allSelectionContents)==null?void 0:Le.length)>0&&(q.contactValue=Fa),(Oa=(Xe=q==null?void 0:q.optionUrl)==null?void 0:Xe.menuSelect)!=null&&Oa.some(tl=>tl==null?void 0:tl.includes("["))){let tl="";q.optionUrl.oldMenuSelect=(_l=($a=rl.safeClone(q))==null?void 0:$a.optionUrl)==null?void 0:_l.menuSelect,q.optionUrl.menuSelect=(nl=(cl=q==null?void 0:q.optionUrl)==null?void 0:cl.menuSelect)==null?void 0:nl.map(Pa=>{var hl,xl,jl,Xl,lr,Il;if(Pa!=null&&Pa.includes("[")){let kr=(xl=(hl=Pa==null?void 0:Pa.replaceAll("[","").replaceAll("]",""))==null?void 0:hl.split(":"))==null?void 0:xl[1];tl=Q((jl=Pa==null?void 0:Pa.replaceAll("[","").replaceAll("]",""))==null?void 0:jl.split(":"),qe==null?void 0:qe[D.value],qe),Pa=((lr=(Xl=rl.safeClone(Ta))==null?void 0:Xl.find(pr=>(pr==null?void 0:pr.label)===kr))==null?void 0:lr.value)||Q((Il=Pa==null?void 0:Pa.replaceAll("[","").replaceAll("]",""))==null?void 0:Il.split(":"),qe==null?void 0:qe[D.value],qe)}return Pa}),tl!==""&&q.value===""&&(q.value=ke(q.optionUrl.menuSelect,q.optionUrl.oldMenuSelect,(ml=q==null?void 0:q.optionUrl)==null?void 0:ml.groupSelect,qe),Array.isArray(q.value)&&((sl=q.value)!=null&&sl.every(Pa=>Pa==null?void 0:Pa.url))&&(q.type="UPLOAD"))}return q}),u.value=Ta,Sa.value=((Ee=u.value)==null?void 0:Ee.every(q=>q==null?void 0:q.disabled))||J.value===D.value,Ye.value=(be=u.value)==null?void 0:be.every(q=>q==null?void 0:q.operable),wa.value=(Se=u.value)==null?void 0:Se.map(q=>q==null?void 0:q.label);let Ea=[],Ce=[];if((ha=rl.safeClone(u.value))==null||ha.forEach(q=>{var Le;Array.isArray(q==null?void 0:q.value)&&((Le=q==null?void 0:q.value)!=null&&Le.find(Xe=>{var Oa;return(Oa=Xe==null?void 0:Xe.url)==null?void 0:Oa.includes(".obj")}))&&(Ce=q==null?void 0:q.value)}),(Ce==null?void 0:Ce.length)>0){const q=(oa=rl.safeClone(Ce))==null?void 0:oa.filter(Le=>{var Xe;return(Xe=Le==null?void 0:Le.url)==null?void 0:Xe.includes(".obj")});q==null||q.forEach(Le=>{var Oa,$a,_l,cl;const Xe=(Oa=Ce==null?void 0:Ce.filter(nl=>{var ml;return(nl==null?void 0:nl.name)===(Le==null?void 0:Le.name)&&((ml=nl==null?void 0:nl.url)==null?void 0:ml.includes(".mtl"))}))==null?void 0:Oa.map(nl=>nl==null?void 0:nl.url);Ea.push({objUrl:Le==null?void 0:Le.url,mtlUrls:(($a=Ce==null?void 0:Ce.filter(nl=>{var ml;return(nl==null?void 0:nl.name)===(Le==null?void 0:Le.name)&&((ml=nl==null?void 0:nl.url)==null?void 0:ml.includes(".mtl"))}))==null?void 0:$a.length)===1?(cl=(_l=Ce==null?void 0:Ce.filter(nl=>{var ml;return(nl==null?void 0:nl.name)===(Le==null?void 0:Le.name)&&((ml=nl==null?void 0:nl.url)==null?void 0:ml.includes(".mtl"))}))==null?void 0:_l[0])==null?void 0:cl.url:Xe})}),$.setObjUrl(Ea)}(Qa=rl.safeClone(u.value))==null||Qa.forEach(q=>{var Le,Xe,Oa,$a,_l,cl,nl,ml,sl,tl,Pa,hl,xl;if((Xe=(Le=q==null?void 0:q.value)==null?void 0:Le.toString())!=null&&Xe.includes(".stl")||($a=(Oa=q==null?void 0:q.value)==null?void 0:Oa.toString())!=null&&$a.includes(".STL")||(cl=(_l=q==null?void 0:q.value)==null?void 0:_l.toString())!=null&&cl.includes(".obj")||(ml=(nl=q==null?void 0:q.value)==null?void 0:nl.toString())!=null&&ml.includes(".mtl")||(tl=(sl=q==null?void 0:q.value)==null?void 0:sl.toString())!=null&&tl.includes(".urdf")){let jl={},Xl=[],lr;Array.isArray(q==null?void 0:q.value)?lr=q==null?void 0:q.value:lr=(Pa=q==null?void 0:q.value)==null?void 0:Pa.split(","),lr==null||lr.forEach(Il=>{Il.includes(".mtl")?Xl.push(Il):jl.blob=jl.blob==="undefined"?Il:jl.blob+","+Il}),(Xl==null?void 0:Xl.length)>0&&(jl.mtlBlobs=Xl),(xl=(hl=Object.values(jl))==null?void 0:hl[0])!=null&&xl.includes("http:")}})}else u.value=[];let fa=Oe.value;if((fa==null?void 0:fa.length)>0&&(fa=fa==null?void 0:fa.map(qe=>{var ua,Qe,Ta,Fa;let $e=(ua=qe==null?void 0:qe.key)==null?void 0:ua.split("/");return(t==null?void 0:t.compName)===($e==null?void 0:$e[0])&&(Qe=u.value)!=null&&Qe.find(Ea=>(Ea==null?void 0:Ea.prop)===($e==null?void 0:$e[1]))&&(qe.value=(Fa=(Ta=u.value)==null?void 0:Ta.find(Ea=>(Ea==null?void 0:Ea.prop)===($e==null?void 0:$e[1])))==null?void 0:Fa.value),qe}),ge.setTableViewContents(fa)),t!=null&&t.formRules)c.value=t==null?void 0:t.formRules;else{let qe={};(Dl=rl.safeClone(u).value)==null||Dl.forEach($e=>{(($e==null?void 0:$e.isMain)===!0||($e==null?void 0:$e.required)===!0)&&(qe[($e==null?void 0:$e.prop)??($e==null?void 0:$e.name)]=[{required:!0,message:`${($e==null?void 0:$e.label)||($e==null?void 0:$e.prop)||($e==null?void 0:$e.name)}不能为空`}])}),c.value=qe}if(((Ol=je==null?void 0:je.contents)==null?void 0:Ol.length)>0){const qe=[];(Za=je==null?void 0:je.contents)==null||Za.forEach(($e,ua)=>{($e==null?void 0:$e.label)!==""&&qe.push({label:($e==null?void 0:$e.label)??"",id:($e==null?void 0:$e.id)??ua,type:($e==null?void 0:$e.type)??"",background:$e==null?void 0:$e.background})}),Y.value=qe}else Y.value=[]},{deep:!0,immediate:!0}),a.watch(()=>J.value,pe=>{Sa.value=pe===D.value},{immediate:!0}),(pe,je)=>{var Re,Ca;const Pe=a.resolveComponent("svg-icon"),ca=a.resolveComponent("el-switch"),ka=a.resolveComponent("el-checkbox"),Ie=a.resolveComponent("el-popover"),fa=a.resolveComponent("el-checkbox-group");return a.openBlock(),a.createElementBlock("div",s3,[T.value===a.unref(at).TEXT?(a.openBlock(),a.createBlock(uc,{key:0,itemData:l.itemData,compName:l.compName,fields:u.value,disabled:Sa.value||ta()},null,8,["itemData","compName","fields","disabled"])):T.value===a.unref(at).BLOCK?(a.openBlock(),a.createBlock(Yp,{key:1,items:(Ca=(Re=u.value)==null?void 0:Re.filter(Ue=>!(Ue!=null&&Ue.isFormColHidden)))==null?void 0:Ca.map(Ue=>({label:Ue==null?void 0:Ue.label,value:Ue==null?void 0:Ue.value,width:(Ue==null?void 0:Ue.width)??1,field:Ue})),disabled:Sa.value||ta()},null,8,["items","disabled"])):(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass({"form-shadow-box":T.value===a.unref(at).ORDINARY})},[a.createVNode(rl.ssForm,{rowContents:u.value,formRules:c.value,buttonValue:Y.value,isRowFlex:!1,isEnableWrap:!0,onOnButtonClick:K,onChange:Ne,formDisabled:Sa.value||ta(),formLabelsOperable:Ye.value,isButtonRow:E.value,onPreview:G,onBlurChange:j,onHandleColEditChange:Ba,onHandleColTypeChange:Ja,onRouteUrl:_e,onClickTrigger:Fe},{operateCol:a.withCtx(({renderColumns:Ue,formDisabled:ba,formLabelsOperable:ce})=>[a.createVNode(Ie,{title:"选择操作的标签",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:Ve},{reference:a.withCtx(()=>[a.createElementVNode("span",c3,[a.createVNode(Pe,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})])]),default:a.withCtx(()=>[a.createElementVNode("div",u3,[je[1]||(je[1]=a.createElementVNode("div",{class:"group-title"},"表单操作",-1)),a.createVNode(ca,{"model-value":ba,"active-text":"禁用","inactive-text":"",onChange:le,style:{"margin-right":"8px"}},null,8,["model-value"]),a.createVNode(ca,{"model-value":ce,"active-text":"编辑所有标签","inactive-text":"",onChange:ra},null,8,["model-value"]),je[2]||(je[2]=a.createElementVNode("div",{class:"group-title"},"表单列操作",-1)),a.createVNode(fa,{modelValue:wa.value,"onUpdate:modelValue":je[0]||(je[0]=xa=>wa.value=xa),style:{height:"100%"},ref_key:"checkboxGroupRef",ref:ue,onChange:_a},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Ue,xa=>(a.openBlock(),a.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:xa.label},[a.createVNode(ka,{value:xa.label,style:{width:"100%",marginRight:0}},{default:a.withCtx(()=>[a.createElementVNode("span",null,a.toDisplayString(xa.label),1)]),_:2},1032,["value"]),a.createVNode(Ie,{title:"标签操作",placement:"left",teleported:!1,trigger:"hover"},{reference:a.withCtx(()=>[a.createVNode(Pe,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:a.withCtx(()=>{var ye;return[a.createElementVNode("div",d3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((ye=Object.keys(xa))==null?void 0:ye.filter(Da=>{var Ze;return(Ze=Ia.value)==null?void 0:Ze.find(Je=>(Je==null?void 0:Je.value)===Da)}),Da=>{var Ze,Je;return a.openBlock(),a.createElementBlock("div",{key:Da},[a.createVNode(rl._sfc_main$1,{value:xa==null?void 0:xa[Da],"active-text":(Je=(Ze=Ia.value)==null?void 0:Ze.find(Ee=>(Ee==null?void 0:Ee.value)===Da))==null?void 0:Je.label,inactiveText:"",onChange:Ee=>R(Ee,Da,xa)},null,8,["value","active-text","onChange"])])}),128))])]}),_:2},1024),a.createElementVNode("span",p3,[a.createVNode(Pe,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:2},1032,["modelValue"])])]),_:2},1024)]),_:1},8,["rowContents","formRules","buttonValue","formDisabled","formLabelsOperable","isButtonRow"])],2)),N.value?(a.openBlock(),a.createBlock(rl.ssFilePreview,{key:3,fileDataList:_.value,onDestroy:V},null,8,["fileDataList"])):a.createCommentVNode("",!0),k.value?(a.openBlock(),a.createBlock(sr.ssDialog,{key:4,visible:k.value,onBeforeDestroy:r,style:{height:"700px",width:"1000px"}},{default:a.withCtx(()=>[a.createVNode(mo.ThreeViewerHost,{files:v.value,onGetAnimationData:pe.onAnimationData},null,8,["files","onGetAnimationData"])]),_:1},8,["visible"])):a.createCommentVNode("",!0)])}}},us=Fl._export_sfc(f3,[["__scopeId","data-v-b9cbe990"]]),_o=a.ref(0),dc=l=>{var n;return!l||(l==null?void 0:l.length)===0?[]:(n=L.cloneDeep(l))==null?void 0:n.map(t=>(_o.value++,t={label:(t==null?void 0:t.label)??"",prop:(t==null?void 0:t.label)==="操作"?"operate":t==null?void 0:t.prop,width:t!=null&&t.width?parseInt(t.width):"",fixed:(t==null?void 0:t.fixed)??void 0,sortable:(t==null?void 0:t.sortable)??!1,align:(t==null?void 0:t.align)??"left",showOverflowTooltip:(t==null?void 0:t.showOverflowTooltip)??!0,isNotDrag:(t==null?void 0:t.isNotDrag)??!1,isEditCol:(t==null?void 0:t.isEditCol)??!1,isOperate:(t==null?void 0:t.isOperate)??!1,id:(t==null?void 0:t.id)??_o.value,children:dc(t==null?void 0:t.children)},t))},h3=l=>{var r;return(r=L.cloneDeep(l))==null?void 0:r.map(t=>(_o.value++,t={label:(t==null?void 0:t.label)??"",prop:(t==null?void 0:t.label)==="操作"?"operate":t==null?void 0:t.prop,width:t!=null&&t.width?parseInt(t.width):"",fixed:(t==null?void 0:t.fixed)??void 0,sortable:(t==null?void 0:t.sortable)??!1,align:(t==null?void 0:t.align)??"left",showOverflowTooltip:(t==null?void 0:t.showOverflowTooltip)??!0,isNotDrag:(t==null?void 0:t.isNotDrag)??!1,isEditCol:(t==null?void 0:t.isEditCol)??!1,isOperate:(t==null?void 0:t.isOperate)??!1,id:(t==null?void 0:t.id)??_o.value,children:dc(t==null?void 0:t.children)},t))},pc=(l,n)=>{var r;return l!=null&&l.find(t=>(t==null?void 0:t.id)===n)?(r=L.cloneDeep(l))==null?void 0:r.filter(s=>(s==null?void 0:s.id)!==n):(l=l==null?void 0:l.map(t=>(t.children=pc(t==null?void 0:t.children,n),t)),l)},fc=(l,n)=>{var r;return l!=null&&l.find(t=>(t==null?void 0:t.id)===(n==null?void 0:n.id))?(r=L.cloneDeep(l))==null?void 0:r.map(s=>((s==null?void 0:s.id)===(n==null?void 0:n.id)&&(s=n),s)):(l=l==null?void 0:l.map(t=>(t.children=fc(t==null?void 0:t.children,n),t)),l)},hc=(l,n)=>{var r;return l!=null&&l.find(t=>{var s;return(t==null?void 0:t.id)===((s=n==null?void 0:n.contents)==null?void 0:s.id)})?(r=L.cloneDeep(l))==null?void 0:r.map(s=>{var u;return(s==null?void 0:s.id)===((u=n==null?void 0:n.contents)==null?void 0:u.id)&&(s=n==null?void 0:n.contents),s}):(l=l==null?void 0:l.map(t=>(t.children=hc(t==null?void 0:t.children,n),t)),l)},vc=(l,n)=>{var r;return l!=null&&l.find(t=>(t==null?void 0:t.id)===(n==null?void 0:n.id))?(r=L.cloneDeep(l))==null?void 0:r.map(s=>((s==null?void 0:s.id)===(n==null?void 0:n.id)&&(s!=null&&s.children||(s.children=[]),s.children.push(n.contents)),s)):(l=l==null?void 0:l.map(t=>(t.children=vc(t==null?void 0:t.children,n),t)),l)},Kl=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"width",label:"宽度",type:"Input"},{key:"sortable",label:"是否支持排序",type:"Switch"},{key:"align",label:"文本所在位置",type:"Radio",options:[{label:"left",value:"左"},{label:"center",value:"中"},{label:"right",value:"右"}]},{key:"fixed",label:"是否固定列",type:"Switch"}],v3=[{label:"查看",value:"view"},{label:"修改",value:"fix"},{label:"删除",value:"delete"},{label:"三维算例",value:"modelExample"}],m3=[{label:"新增",value:"add"}],Sn=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:m3},{key:"background",label:"按钮背景色",type:"Color"}],Dn=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:v3},{key:"textColor",label:"按钮颜色",type:"Color"}],y3={class:"table-header-child"},g3={class:"table-header-child-main"},b3={class:"table-header-child-content"},k3={class:"table-header-child-content-item"},x3={class:"fix-button"},w3={key:0},_3={class:"form-content"},C3={__name:"tableNewChild",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(l,{emit:n}){const r=l,t=n,s=a.ref(!1),u=a.ref(""),k=sa.useTableComp(L.pinia),{tableIndex:f}=L.storeToRefs(k);a.ref(0);const v=a.ref(""),y=a.ref([]),c=a.ref([]),E=S=>{var T;s.value=!0;let $=[];Kl==null||Kl.forEach(x=>{let g=L.cloneDeep(f.value)+1;k.setTableIndex(g),$.push({label:x==null?void 0:x.label,name:x==null?void 0:x.label,type:x.type,value:S[x.key],id:f.value,contents:x==null?void 0:x.options})}),S!=null&&S.children&&((T=S==null?void 0:S.children)==null?void 0:T.length)>0&&$.push({children:S==null?void 0:S.children,isFormColHidden:!0}),v.value=S==null?void 0:S.id,y.value=$,c.value=$},N=S=>{t("fixChange",L.cloneDeep(S))},O=S=>{t("deleteChange",L.cloneDeep(S))},w=S=>{s.value=!0;let $=[];Kl==null||Kl.forEach(T=>{let x=L.cloneDeep(f.value)+1;k.setTableIndex(x),$.push({label:T==null?void 0:T.label,name:T==null?void 0:T.label,type:T.type,value:"",id:f.value,contents:T==null?void 0:T.options})}),u.value=S==null?void 0:S.id,y.value=$,c.value=$},Y=S=>{let $=L.cloneDeep(c.value);$=$==null?void 0:$.map(T=>(T.children||(T.value=S==null?void 0:S[T.name]),T)),c.value=$},_=()=>{var $,T;y.value=c.value;let S={};if(v.value!=="")S.id=v.value,($=y.value)==null||$.forEach(x=>{const g=Kl==null?void 0:Kl.find(H=>(H==null?void 0:H.label)===(x==null?void 0:x.label));g?S[g.key]=x.value:x!=null&&x.children&&x.children.length>0&&(S.children=x.children)}),s.value=!1,t("fixChange",{contents:L.cloneDeep(S),id:u.value,type:"fix"});else{let x=L.cloneDeep(f.value)+1;k.setTableIndex(x),S.id="id"+f.value,(T=y.value)==null||T.forEach(g=>{const H=Kl==null?void 0:Kl.find(W=>(W==null?void 0:W.label)===(g==null?void 0:g.label));H?S[H.key]=g.value:g!=null&&g.children&&g.children.length>0&&(S.children=g.children)}),s.value=!1,t("fixChange",{contents:L.cloneDeep(S),id:u.value,type:"add"})}v.value="",y.value=[],c.value=[]},A=()=>{s.value=!1,v.value="",u.value="",y.value=[],c.value=[]},Z=S=>{L.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{t("deleteChange",S),Wa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(S,$)=>{const T=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",y3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r==null?void 0:r.tableChildContents,(x,g)=>(a.openBlock(),a.createElementBlock("div",g3,[a.createElementVNode("div",b3,[a.createElementVNode("div",k3,a.toDisplayString(x.label),1),a.createElementVNode("div",x3,[a.createVNode(T,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:H=>w(x)},null,8,["onClick"]),a.createVNode(T,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:H=>E(x)},null,8,["onClick"]),a.createVNode(T,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:H=>Z(x)},null,8,["onClick"])])]),x!=null&&x.children&&x.children.length>0?(a.openBlock(),a.createElementBlock("div",w3,[a.createVNode(mc,{tableChildContents:x==null?void 0:x.children,onDeleteChange:O,onFixChange:N},null,8,["tableChildContents"])])):a.createCommentVNode("",!0)]))),256)),a.createVNode(sr.ssDialog,{visible:s.value,onBeforeDestroy:A,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",_3,[(a.openBlock(),a.createBlock(rl.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:Y},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",{class:"dialog-footer"},[a.createElementVNode("div",{onClick:A,class:"cancel-button button"},a.toDisplayString("取消")),a.createElementVNode("div",{class:"ok-button button",onClick:_},a.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},E3=Fl._export_sfc(C3,[["__scopeId","data-v-e0fef72d"]]),S3={class:"table-header-child"},D3={class:"table-header-child-main"},B3={class:"table-header-child-content"},N3={class:"table-header-child-content-item"},T3={class:"fix-button"},A3={key:0},M3={class:"form-content"},z3={class:"dialog-footer"},O3={__name:"tableChildren",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(l,{emit:n}){const r=l,t=n,s=a.ref(!1),u=a.ref(""),k=sa.useTableComp(L.pinia),{tableIndex:f}=L.storeToRefs(k),v=a.ref(""),y=a.ref([]),c=a.ref([]),E=S=>{t("fixChange",L.cloneDeep(S))},N=S=>{var T;s.value=!0;let $=[];Kl==null||Kl.forEach(x=>{let g=L.cloneDeep(f.value)+1;k.setTableIndex(g),$.push({label:x==null?void 0:x.label,name:x==null?void 0:x.label,type:x.type,value:S[x.key],id:f.value,contents:x==null?void 0:x.options})}),S!=null&&S.children&&((T=S==null?void 0:S.children)==null?void 0:T.length)>0&&$.push({children:S==null?void 0:S.children,isFormColHidden:!0}),v.value=S==null?void 0:S.id,y.value=$,c.value=$},O=S=>{s.value=!0;let $=[];Kl==null||Kl.forEach(T=>{let x=L.cloneDeep(f.value)+1;k.setTableIndex(x),$.push({label:T==null?void 0:T.label,name:T==null?void 0:T.label,type:T.type,value:"",id:f.value,contents:T==null?void 0:T.options})}),u.value=S==null?void 0:S.id,y.value=$,c.value=$},w=S=>{let $=L.cloneDeep(c.value);$=$==null?void 0:$.map(T=>(T.children||(T.value=S==null?void 0:S[T.name]),T)),c.value=$},Y=()=>{var $,T;y.value=c.value;let S={};if(v.value!=="")S.id=v.value,($=y.value)==null||$.forEach(x=>{const g=Kl==null?void 0:Kl.find(H=>(H==null?void 0:H.label)===(x==null?void 0:x.label));g?S[g.key]=x.value:x!=null&&x.children&&x.children.length>0&&(S.children=x.children)}),s.value=!1,t("fixChange",{contents:L.cloneDeep(S),id:u.value,type:"fix"});else{let x=L.cloneDeep(f.value)+1;k.setTableIndex(x),S.id="idChild"+f.value,(T=y.value)==null||T.forEach(g=>{const H=Kl==null?void 0:Kl.find(W=>(W==null?void 0:W.label)===(g==null?void 0:g.label));H?S[H.key]=g.value:g!=null&&g.children&&g.children.length>0&&(S.children=g.children)}),s.value=!1,t("fixChange",{contents:L.cloneDeep(S),id:u.value,type:"add"})}v.value="",y.value=[],c.value=[]},_=()=>{s.value=!1,v.value="",u.value="",y.value=[],c.value=[]},A=S=>{L.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{t("deleteChange",S),Wa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},Z=S=>{t("deleteChange",S)};return(S,$)=>{const T=a.resolveComponent("svg-icon"),x=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",S3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r==null?void 0:r.tableChildContents,(g,H)=>(a.openBlock(),a.createElementBlock("div",D3,[a.createElementVNode("div",B3,[a.createElementVNode("div",N3,a.toDisplayString(g.label),1),a.createElementVNode("div",T3,[a.createVNode(T,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:W=>O(g)},null,8,["onClick"]),a.createVNode(T,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:W=>N(g)},null,8,["onClick"]),a.createVNode(T,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:W=>A(g)},null,8,["onClick"])])]),g!=null&&g.children&&g.children.length>0?(a.openBlock(),a.createElementBlock("div",A3,[a.createVNode(E3,{tableChildContents:g==null?void 0:g.children,onDeleteChange:Z,onFixChange:E},null,8,["tableChildContents"])])):a.createCommentVNode("",!0)]))),256)),a.createVNode(sr.ssDialog,{visible:s.value,onBeforeDestroy:_,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",M3,[(a.openBlock(),a.createBlock(rl.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:w},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",z3,[a.createVNode(x,{onClick:_,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>$[0]||($[0]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[0]}),a.createVNode(x,{class:"ok-button button",onClick:Y,id:"themeButton"},{default:a.withCtx(()=>$[1]||($[1]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},mc=Fl._export_sfc(O3,[["__scopeId","data-v-ebd68fa1"]]),I3={class:"table-operate-content"},L3={class:"table-operate-item"},V3={class:"operate-title"},$3={class:"operate-content"},R3={class:"fix-content"},P3={class:"fix-content-label"},F3={class:"fix-button"},j3={key:0},H3={class:"operate-title"},U3={class:"operate-content"},q3={class:"fix-content"},W3={class:"fix-content-label"},K3={class:"fix-button"},Y3={class:"operate-title"},G3={class:"operate-content"},X3={class:"fix-content"},J3={class:"fix-content-label"},Z3={class:"fix-button"},Q3={class:"operate-title"},e1={class:"operate-content"},a1={class:"fix-content"},l1={class:"fix-content-label"},r1={class:"fix-button"},n1={class:"operate-content"},t1={style:{display:"flex","justify-content":"space-between"}},o1={class:"form-content"},i1={class:"dialog-footer"},s1={class:"form-content"},c1={class:"dialog-footer"},u1={class:"form-content"},d1={class:"dialog-footer"},p1={class:"form-content"},f1={class:"dialog-footer"},h1={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,t=n,s=a.ref([]),u=a.ref(!1),k=a.ref(!1),f=a.ref([]),v=a.ref(!1),y=a.ref([]),c=a.ref(!1),E=a.ref([]),N=a.ref(""),O=a.ref(""),w=a.ref([]),Y=a.ref([]),_=a.ref([]),A=a.ref([]),Z=a.ref(!1),S=a.ref([]),$=a.ref([]),T=a.ref(0),x=a.ref([]),g=a.ref([]),H=a.ref([]),W=()=>{Z.value=!0;let R=[];Sn==null||Sn.forEach(j=>{T.value++,R.push({label:j==null?void 0:j.label,name:j==null?void 0:j.label,type:j.type,value:(j==null?void 0:j.key)==="background"?"var(--ssComponent-primary-color)":"",id:T.value,contents:j==null?void 0:j.options})}),S.value=R,$.value=R},ae=()=>{var j,G,V;k.value=!0;let R=[];(V=(G=(j=sa.FormContent)==null?void 0:j.find(K=>(K==null?void 0:K.key)==="Input"))==null?void 0:G.value)==null||V.forEach(K=>{T.value++,R.push({label:K==null?void 0:K.label,name:(K==null?void 0:K.name)||(K==null?void 0:K.label),type:K.type,value:(K==null?void 0:K.label)==="类型"?"Input":"",id:T.value,contents:K==null?void 0:K.options})}),x.value=R,g.value=R},ge=R=>{R||(x.value=g.value)},Oe=async R=>{var j,G,V,K,Ne,Q,ke,pe,je,Pe,ca,ka;if((R==null?void 0:R.类型)!==((G=(j=g.value)==null?void 0:j.find(Ie=>(Ie==null?void 0:Ie.label)==="类型"))==null?void 0:G.value)){let Ie=[],fa=await((Ne=(K=(V=sa.FormContent)==null?void 0:V.find(Re=>(Re==null?void 0:Re.key)===((R==null?void 0:R.类型)===""?"Input":R==null?void 0:R.类型)))==null?void 0:K.value)==null?void 0:Ne.value)?await((Pe=(je=(pe=sa.FormContent)==null?void 0:pe.find(Re=>(Re==null?void 0:Re.key)===((R==null?void 0:R.类型)===""?"Input":R==null?void 0:R.类型)))==null?void 0:je.value)==null?void 0:Pe.value):(ke=(Q=sa.FormContent)==null?void 0:Q.find(Re=>(Re==null?void 0:Re.key)===((R==null?void 0:R.类型)===""?"Input":R==null?void 0:R.类型)))==null?void 0:ke.value;if(fa==null||fa.forEach(Re=>{T.value++,Ie.push({label:Re==null?void 0:Re.label,name:(Re==null?void 0:Re.name)||(Re==null?void 0:Re.label),type:Re.type,value:Re!=null&&Re.属性名?(R==null?void 0:R.prop)||(R==null?void 0:R.name)||(R==null?void 0:R.label):(R==null?void 0:R[Re.label])??"",id:T.value,contents:Re==null?void 0:Re.options,prop:(Re==null?void 0:Re.prop)||(Re==null?void 0:Re.name)||(Re==null?void 0:Re.label)})}),R!=null&&R.菜单选项&&((ca=R==null?void 0:R.菜单选项)==null?void 0:ca.length)>0){const Re=await sa.menuToContentType(R==null?void 0:R.菜单选项);Ie=Ie==null?void 0:Ie.map(Ca=>((Ca==null?void 0:Ca.name)==="组信息选项"&&(Ca.contents=Re),Ca))}g.value=await sa.selectToBase(L.cloneDeep(Ie)),x.value=await sa.selectToBase(L.cloneDeep(Ie))}else{let Ie=L.cloneDeep(x.value);if(Ie=Ie==null?void 0:Ie.map(fa=>(fa.value=R==null?void 0:R[fa.name],fa)),R!=null&&R.菜单选项&&((ka=R==null?void 0:R.菜单选项)==null?void 0:ka.length)>0){const fa=await sa.menuToContentType(R==null?void 0:R.菜单选项);Ie=Ie==null?void 0:Ie.map(Re=>((Re==null?void 0:Re.name)==="组信息选项"&&(Re.contents=fa),Re))}Ie=sa.formToOptionsContents(Ie),g.value=await sa.selectToBase(L.cloneDeep(Ie))}},we=async R=>{await Oe(R),x.value=g.value},te=(R,j)=>{if((j==null?void 0:j.type)=="Select"&&(R==null?void 0:R.key)==="selectRelateType"){const G=j==null?void 0:j.optionUrl;return(G==null?void 0:G.selectRelateType)||j[R.key]}if((j==null?void 0:j.type)=="Select"&&(R==null?void 0:R.key)==="menuSelect"){const G=j==null?void 0:j.optionUrl;return(G==null?void 0:G.menuSelect)||j[R.key]}if((j==null?void 0:j.type)=="Select"&&(R==null?void 0:R.key)==="groupSelect"){const G=j==null?void 0:j.optionUrl;return(G==null?void 0:G.groupSelect)||j[R.key]}if((j==null?void 0:j.type)=="Select"&&(R==null?void 0:R.key)==="originalContent")return(j==null?void 0:j.value)||j[R.key];if((j==null?void 0:j.type)=="Select"&&(R==null?void 0:R.key)==="multiple"){const G=j[R.key];return Fs(G)?G:R.default}return(R==null?void 0:R.label)==="类型"&&j[R.key]===""?"Input":(R==null?void 0:R.key)==="isFormColHidden"&&!j[R.key]?!1:j[R.key]},me=async R=>{var V,K,Ne,Q,ke,pe,je,Pe,ca;k.value=!0;let j=[];const G=await((Ne=(K=(V=sa.FormContent)==null?void 0:V.find(ka=>(ka==null?void 0:ka.key)===((R==null?void 0:R.type)===""?"Input":R==null?void 0:R.type)))==null?void 0:K.value)==null?void 0:Ne.value)?await((Pe=(je=(pe=sa.FormContent)==null?void 0:pe.find(ka=>(ka==null?void 0:ka.key)===((R==null?void 0:R.type)===""?"Input":R==null?void 0:R.type)))==null?void 0:je.value)==null?void 0:Pe.value):(ke=(Q=sa.FormContent)==null?void 0:Q.find(ka=>(ka==null?void 0:ka.key)===((R==null?void 0:R.type)===""?"Input":R==null?void 0:R.type)))==null?void 0:ke.value;if(G==null||G.forEach(ka=>{T.value++,j.push({label:ka==null?void 0:ka.label,name:(ka==null?void 0:ka.name)||(ka==null?void 0:ka.label),type:ka.type,value:(ka==null?void 0:ka.label)==="属性名"?(R==null?void 0:R.prop)||(R==null?void 0:R.name)||(R==null?void 0:R.label):te(ka,R),id:T.value,contents:ka==null?void 0:ka.options})}),R!=null&&R.menuSelect&&((ca=R==null?void 0:R.menuSelect)==null?void 0:ca.length)>0){const ka=await sa.menuToContentType(R==null?void 0:R.menuSelect);j=j==null?void 0:j.map(Ie=>((Ie==null?void 0:Ie.name)==="组信息选项"&&(Ie.contents=ka),Ie))}N.value=R==null?void 0:R.id,x.value=await sa.selectToBase(sa.formToOptionsContents(j)),g.value=await sa.selectToBase(sa.formToOptionsContents(j))},J=R=>{L.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var j,G;H.value=(j=L.cloneDeep(H.value))==null?void 0:j.filter(V=>(V==null?void 0:V.id)!==(R==null?void 0:R.id)),t("change",(G=L.cloneDeep(r.originalItemContents))==null?void 0:G.map(V=>((V==null?void 0:V.key)==="tableToForm"&&(V.contents=H.value),V))),Wa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},ue=()=>{k.value=!1,x.value=[],N.value=""},Ye=async()=>{var V,K,Ne,Q,ke,pe,je,Pe,ca,ka;x.value=g.value;let R={};N.value!==""?R.id=N.value:(T.value++,R.id="id"+T.value);let j=await((Ne=(K=(V=sa.FormContent)==null?void 0:V.find(Ie=>{var fa,Re;return(Ie==null?void 0:Ie.key)===(((Re=(fa=x.value)==null?void 0:fa.find(Ca=>(Ca==null?void 0:Ca.label)==="类型"))==null?void 0:Re.value)??"label")}))==null?void 0:K.value)==null?void 0:Ne.value)??((ke=(Q=sa.FormContent)==null?void 0:Q.find(Ie=>{var fa,Re;return(Ie==null?void 0:Ie.key)===(((Re=(fa=x.value)==null?void 0:fa.find(Ca=>(Ca==null?void 0:Ca.label)==="类型"))==null?void 0:Re.value)??"label")}))==null?void 0:ke.value);if((pe=x.value)==null||pe.forEach(Ie=>{const fa=j==null?void 0:j.find(Re=>(Re==null?void 0:Re.label)===(Ie==null?void 0:Ie.label));fa&&(R[fa.key]=Ie.value)}),R.name=R.label,(je=H.value)!=null&&je.find(Ie=>Ie.id===R.id))H.value=(Pe=H.value)==null?void 0:Pe.map(Ie=>(Ie.id===R.id&&(Ie=R),Ie));else{let Ie=L.cloneDeep(H.value);H.value||(H.value=[]),Ie.push(R),H.value=Ie}H.value=H.value.map(({id:Ie,...fa})=>fa),k.value=!1,N.value="";let G=L.cloneDeep(r.originalItemContents);(ca=L.cloneDeep(r.originalItemContents))!=null&&ca.find(Ie=>(Ie==null?void 0:Ie.key)==="tableToForm")?G=(ka=L.cloneDeep(r.originalItemContents))==null?void 0:ka.map(Ie=>((Ie==null?void 0:Ie.key)==="tableToForm"&&(Ie.contents=H.value),Ie)):G.push({key:"tableToForm",contents:H.value}),t("change",G)},Sa=R=>{Z.value=!0;let j=[];Sn==null||Sn.forEach(G=>{T.value++,j.push({label:G==null?void 0:G.label,name:G==null?void 0:G.label,type:G.type,value:R[G.key],id:T.value,contents:G==null?void 0:G.options})}),N.value=R==null?void 0:R.id,S.value=j,$.value=j};a.watch(()=>c.value,()=>{var j,G;let R=L.cloneDeep(r.originalItemContents);(j=L.cloneDeep(r.originalItemContents))!=null&&j.find(V=>(V==null?void 0:V.key)==="page")?R=(G=L.cloneDeep(r.originalItemContents))==null?void 0:G.map(V=>((V==null?void 0:V.key)==="page"&&(V.contents=c.value),V)):R.push({key:"page",contents:c.value}),t("change",R)},{deep:!0});const oe=R=>{L.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var j,G;Y.value=(j=L.cloneDeep(Y.value))==null?void 0:j.filter(V=>(V==null?void 0:V.id)!==(R==null?void 0:R.id)),t("change",(G=L.cloneDeep(r.originalItemContents))==null?void 0:G.map(V=>((V==null?void 0:V.key)==="extraButton"&&(V.contents=Y.value),V))),Wa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},D=()=>{var G,V,K,Ne,Q;S.value=$.value;let R={};if(N.value!==""?R.id=N.value:(T.value++,R.id="id"+T.value),(G=S.value)==null||G.forEach(ke=>{const pe=Sn==null?void 0:Sn.find(je=>(je==null?void 0:je.label)===(ke==null?void 0:ke.label));pe?R[pe.key]=ke.value:ke!=null&&ke.children&&ke.children.length>0&&(R.children=ke.children)}),(V=Y.value)!=null&&V.find(ke=>ke.id===R.id))Y.value=(K=Y.value)==null?void 0:K.map(ke=>(ke.id===R.id&&(ke=R),ke));else{let ke=L.cloneDeep(Y.value)??[];ke.push(R),Y.value=ke}Z.value=!1,N.value="";let j=L.cloneDeep(r.originalItemContents);(Ne=L.cloneDeep(r.originalItemContents))!=null&&Ne.find(ke=>(ke==null?void 0:ke.key)==="extraButton")?j=(Q=L.cloneDeep(r.originalItemContents))==null?void 0:Q.map(ke=>((ke==null?void 0:ke.key)==="extraButton"&&(ke.contents=Y.value),ke)):j.push({key:"extraButton",contents:Y.value}),t("change",j)},ne=R=>{let j=L.cloneDeep($.value);j=j==null?void 0:j.map(G=>(G.children||(G.value=R==null?void 0:R[G.name]),G)),$.value=j},ve=()=>{Z.value=!1,S.value=[],N.value=""},se=R=>{v.value=!0;let j=[];Dn==null||Dn.forEach(G=>{T.value++,j.push({label:G==null?void 0:G.label,name:G==null?void 0:G.label,type:G.type,value:R[G.key],id:T.value,contents:G==null?void 0:G.options})}),N.value=R==null?void 0:R.id,_.value=j,A.value=j},xe=R=>{L.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var j,G;w.value=(j=L.cloneDeep(w.value))==null?void 0:j.filter(V=>(V==null?void 0:V.id)!==(R==null?void 0:R.id)),t("change",(G=L.cloneDeep(r.originalItemContents))==null?void 0:G.map(V=>((V==null?void 0:V.key)==="rowButton"&&(V.contents=w.value),V))),Wa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},ta=()=>{u.value=!0;let R=[];Kl==null||Kl.forEach(j=>{T.value++,R.push({label:j==null?void 0:j.label,name:j==null?void 0:j.label,type:j.type,value:"",id:T.value,contents:j==null?void 0:j.options})}),y.value=R,E.value=R},wa=()=>{v.value=!0;let R=[];Dn==null||Dn.forEach(j=>{T.value++,R.push({label:j==null?void 0:j.label,name:j==null?void 0:j.label,type:j.type,value:"",id:T.value,contents:j==null?void 0:j.options})}),_.value=R,A.value=R},Ia=R=>{let j=L.cloneDeep(A.value);j=j==null?void 0:j.map(G=>(G.children||(G.value=R==null?void 0:R[G.name]),G)),A.value=j},le=()=>{var G,V,K,Ne,Q;_.value=A.value;let R={};if(N.value!==""?R.id=N.value:(T.value++,R.id="id"+T.value),(G=_.value)==null||G.forEach(ke=>{const pe=Dn==null?void 0:Dn.find(je=>(je==null?void 0:je.label)===(ke==null?void 0:ke.label));pe?R[pe.key]=ke.value:ke!=null&&ke.children&&ke.children.length>0&&(R.children=ke.children)}),(V=w.value)!=null&&V.find(ke=>ke.id===R.id))w.value=(K=w.value)==null?void 0:K.map(ke=>(ke.id===R.id&&(ke=R),ke));else{let ke=L.cloneDeep(w.value);ke.push(R),w.value=ke}v.value=!1,N.value="";let j=L.cloneDeep(r.originalItemContents);(Ne=L.cloneDeep(r.originalItemContents))!=null&&Ne.find(ke=>(ke==null?void 0:ke.key)==="rowButton")?j=(Q=L.cloneDeep(r.originalItemContents))==null?void 0:Q.map(ke=>((ke==null?void 0:ke.key)==="rowButton"&&(ke.contents=w.value),ke)):j.push({key:"rowButton",contents:w.value}),t("change",j)},ra=()=>{v.value=!1,N.value="",A.value=[],_.value=[]},Ve=R=>{u.value=!0;let j=[];Kl==null||Kl.forEach(G=>{T.value++,j.push({label:G==null?void 0:G.label,name:G==null?void 0:G.label,type:G.type,value:"",id:T.value,contents:G==null?void 0:G.options})}),y.value=j,O.value=R==null?void 0:R.id,E.value=j},_a=R=>{var j;f.value=pc(L.cloneDeep(f.value),R==null?void 0:R.id),t("change",(j=L.cloneDeep(r.originalItemContents))==null?void 0:j.map(G=>{var V;return(G==null?void 0:G.key)==="header"&&(G.contents=(V=f.value)!=null&&V.some(K=>K==null?void 0:K.children)?[f.value]:f.value),G}))},Fe=R=>{var G,V,K;R.type==="fix"?R.id!==""?f.value=hc(f.value,R):f.value=fc(f.value,R==null?void 0:R.contents):f.value=vc(f.value,R),f.value=(G=f.value)!=null&&G.some(Ne=>Ne==null?void 0:Ne.children)?[f.value]:f.value,N.value="";let j=L.cloneDeep(r.originalItemContents);(V=L.cloneDeep(r.originalItemContents))!=null&&V.find(Ne=>(Ne==null?void 0:Ne.key)==="header")?j=(K=L.cloneDeep(r.originalItemContents))==null?void 0:K.map(Ne=>((Ne==null?void 0:Ne.key)==="header"&&(Ne.contents=f.value),Ne)):j.push({key:"header",contents:f.value}),t("change",j)},_e=R=>{var G;u.value=!0;let j=[];Kl==null||Kl.forEach(V=>{T.value++,j.push({label:V==null?void 0:V.label,name:V==null?void 0:V.label,type:V.type,value:R[V.key],id:T.value,contents:V==null?void 0:V.options})}),R!=null&&R.children&&((G=R==null?void 0:R.children)==null?void 0:G.length)>0&&j.push({children:R==null?void 0:R.children,isFormColHidden:!0}),N.value=R==null?void 0:R.id,O.value="",y.value=j,E.value=j},ze=R=>{let j=L.cloneDeep(E.value);j=j==null?void 0:j.map(G=>(G.children||(G.value=R==null?void 0:R[G.name]),G)),E.value=j},Ge=()=>{u.value=!1,N.value="",O.value="",E.value=[]},Ba=()=>{var G,V,K,Ne,Q,ke;y.value=E.value;let R={};if(N.value!==""?R.id=N.value:(T.value++,R.id="id"+T.value),(G=y.value)==null||G.forEach(pe=>{const je=Kl==null?void 0:Kl.find(Pe=>(Pe==null?void 0:Pe.label)===(pe==null?void 0:pe.label));je?R[je.key]=pe.value:pe!=null&&pe.children&&pe.children.length>0&&(R.children=pe.children)}),(V=f.value)!=null&&V.find(pe=>pe.id===R.id))f.value=(K=f.value)==null?void 0:K.map(pe=>(pe.id===R.id&&(pe=R),pe));else{let pe=L.cloneDeep(f.value)??[];O.value===""?pe.push(R):pe=pe==null?void 0:pe.map(je=>(je.id===O.value&&(je.children||(je.children=[]),je.children.push(R)),je)),f.value=pe}f.value=(Ne=f.value)!=null&&Ne.some(pe=>pe==null?void 0:pe.children)?[f.value]:f.value,u.value=!1,N.value="",O.value="";let j=L.cloneDeep(r.originalItemContents);(Q=L.cloneDeep(r.originalItemContents))!=null&&Q.find(pe=>(pe==null?void 0:pe.key)==="header")?j=(ke=L.cloneDeep(r.originalItemContents))==null?void 0:ke.map(pe=>((pe==null?void 0:pe.key)==="header"&&(pe.contents=f.value),pe)):j.push({key:"header",contents:f.value}),t("change",j)},Ja=R=>{L.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var j,G;f.value=(j=L.cloneDeep(f.value))==null?void 0:j.filter(V=>(V==null?void 0:V.id)!==(R==null?void 0:R.id)),t("change",(G=L.cloneDeep(r.originalItemContents))==null?void 0:G.map(V=>{var K;return(V==null?void 0:V.key)==="header"&&(V.contents=(K=f.value)!=null&&K.some(Ne=>Ne==null?void 0:Ne.children)?[f.value]:f.value),V})),Wa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return a.watch(()=>r.originalItemContents,()=>{var R,j,G,V,K,Ne,Q,ke,pe,je,Pe,ca,ka,Ie,fa,Re,Ca,Ue,ba;if(!(!r.originalItemContents||r.originalItemContents.length===0))if(s.value=L.cloneDeep(r.originalItemContents),f.value=(j=(R=s.value)==null?void 0:R.find(ce=>(ce==null?void 0:ce.key)==="header"))==null?void 0:j.contents,w.value=(V=(G=s.value)==null?void 0:G.find(ce=>(ce==null?void 0:ce.key)==="rowButton"))==null?void 0:V.contents,Y.value=(Ne=(K=s.value)==null?void 0:K.find(ce=>(ce==null?void 0:ce.key)==="extraButton"))==null?void 0:Ne.contents,c.value=(ke=(Q=s.value)==null?void 0:Q.find(ce=>(ce==null?void 0:ce.key)==="page"))!=null&&ke.contents?!!((je=(pe=s.value)==null?void 0:pe.find(ce=>(ce==null?void 0:ce.key)==="page"))!=null&&je.contents):!1,H.value=(ca=(Pe=s.value)==null?void 0:Pe.find(ce=>(ce==null?void 0:ce.key)==="tableToForm"))==null?void 0:ca.contents,f.value=(ka=f.value)==null?void 0:ka.map((ce,xa)=>(Array.isArray(ce)?ce=h3(ce):ce={label:(ce==null?void 0:ce.label)??"",prop:(ce==null?void 0:ce.label)==="操作"?"operate":ce==null?void 0:ce.prop,width:ce!=null&&ce.width?parseInt(ce.width):"",fixed:(ce==null?void 0:ce.fixed)??void 0,sortable:(ce==null?void 0:ce.sortable)??!1,align:(ce==null?void 0:ce.align)??"left",showOverflowTooltip:(ce==null?void 0:ce.showOverflowTooltip)??!0,isNotDrag:(ce==null?void 0:ce.isNotDrag)??!1,isEditCol:(ce==null?void 0:ce.isEditCol)??!1,isOperate:(ce==null?void 0:ce.isOperate)??!1,id:(ce==null?void 0:ce.id)??xa,formMenuSelect:(ce==null?void 0:ce.formMenuSelect)??void 0,groupSelect:(ce==null?void 0:ce.groupSelect)??void 0},ce)),f.value=(Ie=f.value)!=null&&Ie.every(ce=>Array.isArray(ce))?(fa=f.value)==null?void 0:fa[0]:f.value,w.value=(Re=w.value)==null?void 0:Re.map((ce,xa)=>ce={label:(ce==null?void 0:ce.label)??"",type:(ce==null?void 0:ce.type)??"",textColor:(ce==null?void 0:ce.textColor)??"#000000",id:(ce==null?void 0:ce.id)??xa}),Y.value=(Ca=Y.value)==null?void 0:Ca.map((ce,xa)=>ce={label:(ce==null?void 0:ce.label)??"",type:(ce==null?void 0:ce.type)??"",background:(ce==null?void 0:ce.background)??"var(--ssComponent-primary-color)",id:(ce==null?void 0:ce.id)??xa}),H.value)H.value=(ba=H.value)==null?void 0:ba.map(ce=>{T.value++;let xa=ce;return xa.id=T.value,xa});else{let ce=[];const xa=(Ue=sa.getColumnChild(L.cloneDeep(f.value)))==null?void 0:Ue.filter(ye=>(ye==null?void 0:ye.prop)!=="operate");xa==null||xa.forEach(ye=>{var Da;T.value++,ce.push({label:ye==null?void 0:ye.label,name:(ye==null?void 0:ye.prop)||(ye==null?void 0:ye.label),type:ye!=null&&ye.groupSelect?"Select":"Input",value:"",id:T.value,contents:ye==null?void 0:ye.options,menuSelect:ye==null?void 0:ye.formMenuSelect,groupSelect:(Da=ye==null?void 0:ye.groupSelect)==null?void 0:Da.split(":"),selectRelateType:"关联绑定列"})}),H.value=ce}},{deep:!0,immediate:!0}),(R,j)=>{const G=a.resolveComponent("svg-icon"),V=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",I3,[a.createElementVNode("div",L3,[a.createElementVNode("div",V3,[j[2]||(j[2]=a.createElementVNode("div",null,a.toDisplayString("表头"),-1)),a.createVNode(V,{class:"icon-content",onClick:ta,id:"themeButton"},{icon:a.withCtx(()=>[a.createVNode(G,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[j[1]||(j[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",$3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f.value,(K,Ne)=>(a.openBlock(),a.createElementBlock("div",{key:Ne},[a.createElementVNode("div",R3,[a.createElementVNode("div",P3,a.toDisplayString(K==null?void 0:K.label),1),a.createElementVNode("div",F3,[a.createVNode(G,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:Q=>Ve(K)},null,8,["onClick"]),a.createVNode(G,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:Q=>_e(K)},null,8,["onClick"]),a.createVNode(G,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:Q=>Ja(K)},null,8,["onClick"])])]),K!=null&&K.children&&K.children.length>0?(a.openBlock(),a.createElementBlock("div",j3,[a.createVNode(mc,{tableChildContents:K==null?void 0:K.children,onDeleteChange:_a,onFixChange:Fe},null,8,["tableChildContents"])])):a.createCommentVNode("",!0)]))),128))]),a.createElementVNode("div",H3,[j[4]||(j[4]=a.createElementVNode("div",null,a.toDisplayString("行内按钮"),-1)),a.createVNode(V,{class:"icon-content",id:"themeButton",onClick:wa},{icon:a.withCtx(()=>[a.createVNode(G,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[j[3]||(j[3]=a.createTextVNode(" 新增 "))]),_:1,__:[3]})]),a.createElementVNode("div",U3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(w.value,(K,Ne)=>(a.openBlock(),a.createElementBlock("div",{key:Ne},[a.createElementVNode("div",q3,[a.createElementVNode("div",W3,a.toDisplayString(K==null?void 0:K.label),1),a.createElementVNode("div",K3,[a.createVNode(G,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:Q=>se(K)},null,8,["onClick"]),a.createVNode(G,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:Q=>xe(K)},null,8,["onClick"])])])]))),128))]),a.createElementVNode("div",Y3,[j[6]||(j[6]=a.createElementVNode("div",null,a.toDisplayString("表外按钮"),-1)),a.createVNode(V,{class:"icon-content",id:"themeButton",onClick:W},{icon:a.withCtx(()=>[a.createVNode(G,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[j[5]||(j[5]=a.createTextVNode(" 新增 "))]),_:1,__:[5]})]),a.createElementVNode("div",G3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Y.value,(K,Ne)=>(a.openBlock(),a.createElementBlock("div",{key:Ne},[a.createElementVNode("div",X3,[a.createElementVNode("div",J3,a.toDisplayString(K==null?void 0:K.label),1),a.createElementVNode("div",Z3,[a.createVNode(G,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:Q=>Sa(K)},null,8,["onClick"]),a.createVNode(G,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:Q=>oe(K)},null,8,["onClick"])])])]))),128))]),a.createElementVNode("div",Q3,[j[8]||(j[8]=a.createElementVNode("div",null,a.toDisplayString("表格弹框字段设置"),-1)),a.createVNode(V,{class:"icon-content",id:"themeButton",onClick:ae},{icon:a.withCtx(()=>[a.createVNode(G,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[j[7]||(j[7]=a.createTextVNode(" 新增 "))]),_:1,__:[7]})]),a.createElementVNode("div",e1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(H.value,(K,Ne)=>(a.openBlock(),a.createElementBlock("div",{key:Ne},[a.createElementVNode("div",a1,[a.createElementVNode("div",l1,a.toDisplayString(K==null?void 0:K.label),1),a.createElementVNode("div",r1,[a.createVNode(G,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:Q=>me(K)},null,8,["onClick"]),a.createVNode(G,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:Q=>J(K)},null,8,["onClick"])])])]))),128))]),j[10]||(j[10]=a.createElementVNode("div",{class:"operate-title"},[a.createElementVNode("div",null,a.toDisplayString("分页"))],-1)),a.createElementVNode("div",n1,[a.createElementVNode("div",t1,[j[9]||(j[9]=a.createElementVNode("div",{class:"operate-center-content"},a.toDisplayString("是否分页"),-1)),a.createVNode(rl._sfc_main$1,{modelValue:c.value,"onUpdate:modelValue":j[0]||(j[0]=K=>c.value=K)},null,8,["modelValue"])])])]),a.createVNode(sr.ssDialog,{visible:u.value,onBeforeDestroy:Ge,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",o1,[(a.openBlock(),a.createBlock(rl.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:ze},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",i1,[a.createVNode(V,{onClick:Ge,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>j[11]||(j[11]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[11]}),a.createVNode(V,{class:"ok-button button",onClick:Ba,id:"themeButton"},{default:a.withCtx(()=>j[12]||(j[12]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible"]),a.createVNode(sr.ssDialog,{visible:v.value,onBeforeDestroy:ra,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",s1,[(a.openBlock(),a.createBlock(rl.ssForm,{rowContents:_.value,key:_.value,isEnableWrap:!0,onChange:Ia},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",c1,[a.createVNode(V,{onClick:ra,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>j[13]||(j[13]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[13]}),a.createVNode(V,{class:"ok-button button",onClick:le,id:"themeButton"},{default:a.withCtx(()=>j[14]||(j[14]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible"]),a.createVNode(sr.ssDialog,{visible:Z.value,onBeforeDestroy:ve,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",u1,[(a.openBlock(),a.createBlock(rl.ssForm,{rowContents:S.value,key:S.value,isEnableWrap:!0,onChange:ne},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",d1,[a.createVNode(V,{onClick:ve,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>j[15]||(j[15]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[15]}),a.createVNode(V,{class:"ok-button button",onClick:D,id:"themeButton"},{default:a.withCtx(()=>j[16]||(j[16]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[16]})])]),_:1},8,["visible"]),a.createVNode(sr.ssDialog,{visible:k.value,onBeforeDestroy:ue,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",p1,[(a.openBlock(),a.createBlock(rl.ssForm,{rowContents:x.value,key:x.value,isEnableWrap:!0,onChange:Oe,onChangeVisible:ge,onBlurChange:we},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",f1,[a.createVNode(V,{onClick:ue,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>j[17]||(j[17]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[17]}),a.createVNode(V,{class:"ok-button button",onClick:Ye,id:"themeButton"},{default:a.withCtx(()=>j[18]||(j[18]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[18]})])]),_:1},8,["visible"])])}}},v1=Fl._export_sfc(h1,[["__scopeId","data-v-7a6b87b5"]]),m1=L.useModelComp(L.pinia),{pageMapState:y1}=L.storeToRefs(m1),g1=L.useMenuState(L.pinia),{activeMenuPath:b1}=L.storeToRefs(g1),k1=a.ref(24),x1=a.ref(6),w1=a.ref(70),_1=a.ref(.18),C1=a.ref(45),E1=(l,n,r,t)=>{var s,u,k,f,v,y,c,E,N,O,w,Y,_,A,Z,S;return{x:((u=(s=l==null?void 0:l.value)==null?void 0:s.tableData)==null?void 0:u.x)||n%2*12,y:((f=(k=l==null?void 0:l.value)==null?void 0:k.tableData)==null?void 0:f.y)||n,w:((y=(v=l==null?void 0:l.value)==null?void 0:v.tableData)==null?void 0:y.w)||k1.value,h:((E=(c=l==null?void 0:l.value)==null?void 0:c.tableData)==null?void 0:E.h)||r,minW:((O=(N=l==null?void 0:l.value)==null?void 0:N.tableData)==null?void 0:O.minW)||x1.value,minH:((Y=(w=l==null?void 0:l.value)==null?void 0:w.tableData)==null?void 0:Y.minH)||_1.value,maxH:((A=(_=l==null?void 0:l.value)==null?void 0:_.tableData)==null?void 0:A.maxH)||C1.value,i:((S=(Z=l==null?void 0:l.value)==null?void 0:Z.tableData)==null?void 0:S.i)||n,id:(l==null?void 0:l.id)||n+"",component:t}},S1=(l,n)=>{var t,s,u,k,f,v,y,c;let r=1;if(l!=null&&l.compData&&Array.isArray(l==null?void 0:l.compData))if(((t=l==null?void 0:l.comp)==null?void 0:t.toUpperCase())==="TABLE"){if(((k=(u=(s=l==null?void 0:l.compData)==null?void 0:s.find(N=>(N==null?void 0:N.key)==="tableContents"))==null?void 0:u.contents)==null?void 0:k.length)===0)return 2}else((f=l==null?void 0:l.comp)==null?void 0:f.toUpperCase())==="FORM"&&(r=((c=(y=(v=l==null?void 0:l.compData)==null?void 0:v.find(N=>(N==null?void 0:N.key)==="formContent"))==null?void 0:y.contents)==null?void 0:c.length)/5);return r*2},yc=(l,n,r)=>{var k,f;const t=(f=(k=y1.value)==null?void 0:k[b1.value])==null?void 0:f.filter(v=>{var y;return((y=v==null?void 0:v.key)==null?void 0:y.type)==="gridLayout"}),s=t==null?void 0:t.find(v=>{var y,c,E;return((E=(c=(y=v==null?void 0:v.value)==null?void 0:y.tableData)==null?void 0:c.component)==null?void 0:E.id)===l.id}),u=S1(l);return l!=null&&l.children&&(l==null?void 0:l.children.length)>0&&(l.children=l.children.map((v,y)=>yc(v,y))),{...E1(s,n,u,l)}},D1=(l,n)=>{if((l==null?void 0:l.length)===0)return[];const r=L.cloneDeep(l);return Array.isArray(l)?r==null?void 0:r.map((t,s)=>yc(t,s)):[]},B1=l=>({TABLE:{overall:[{label:"栅格布局",prop:"isGridLayout",type:"switch",value:!1,disabled:!1,activeText:"启用",inactiveText:"默认"},{label:"界面布局",prop:"layout",type:"radio",value:"vertical",options:[{label:"垂直",value:"vertical"},{label:"水平",value:"horizontal"}]},{label:"流程式布局",prop:"isStepLayout",type:"radio",value:!1,options:[{label:"启用",value:!0,disabled:!1},{label:"禁用",value:!1,disabled:!1}]}],alone:[{label:"默认显示序号",prop:"showIndex",type:"radio",value:!1,options:[{label:"是",value:!0},{label:"否",value:!1}]},{label:"浏览视图配置",prop:"viewport",type:"checkbox",value:["read"],options:[{label:"只读视图",value:"read"},{label:"编辑视图",value:"edit"}]},{label:"是否选择迁移",prop:"allowMove",type:"radio",value:!1,options:[{label:"是",value:!0},{label:"否",value:!1}]}]}}),N1=(l,n)=>l==null?void 0:l.map(r=>{for(const t in n)if(t===(r==null?void 0:r.prop))return{...r,value:n[t]};return r}),T1=a.defineComponent({__name:"index",props:{compType:String,comp:Object,target:{type:String,default:"alone"},optionItems:Array},emits:["change"],setup(l,{emit:n}){const r=l,t=n,s=a.ref([]);a.watch(()=>r.compType,f=>{var c;const v=B1(r==null?void 0:r.optionItems),y=f?(c=v[f==null?void 0:f.toUpperCase()])==null?void 0:c[r==null?void 0:r.target]:[];s.value=y==null?void 0:y.map(E=>{for(const[N,O]of Object.entries((r==null?void 0:r.comp)||{}))if((E==null?void 0:E.prop)===N)return{...E,value:O};return E})},{immediate:!0});const u=f=>rl.getComponent(f),k=f=>{var v,y;(f==null?void 0:f.prop)==="layout"&&(f==null?void 0:f.value)==="horizontal"?s.value=(v=s.value)==null?void 0:v.map(c=>{var E;return(c==null?void 0:c.prop)==="isStepLayout"?{...c,options:(E=c==null?void 0:c.options)==null?void 0:E.map(N=>({...N,disabled:!0}))}:(c==null?void 0:c.prop)==="isGridLayout"?{...c,disabled:!0}:c}):s.value=(y=s.value)==null?void 0:y.map(c=>{var E;return(c==null?void 0:c.prop)==="isStepLayout"?{...c,options:(E=c==null?void 0:c.options)==null?void 0:E.map(N=>({...N,disabled:!1}))}:(c==null?void 0:c.prop)==="isGridLayout"?{...c,disabled:!1}:c}),t("change",{target:r==null?void 0:r.target,styleConfigs:s.value,prop:f==null?void 0:f.prop})};return(f,v)=>{const y=a.resolveComponent("el-col"),c=a.resolveComponent("el-row");return a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,E=>(a.openBlock(),a.createBlock(c,{class:"style-row",key:E==null?void 0:E.prop},{default:a.withCtx(()=>[a.createVNode(y,{span:6,class:"style-row-title"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(E==null?void 0:E.label)+":",1)]),_:2},1024),a.createVNode(y,{span:18,style:{display:"flex"}},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u(E.type)),{modelValue:E.value,"onUpdate:modelValue":N=>E.value=N,content:E==null?void 0:E.options,optionUrl:E==null?void 0:E.optionUrl,disabled:E==null?void 0:E.disabled,activeText:E==null?void 0:E.activeText,inactiveText:E==null?void 0:E.inactiveText,onChange:N=>k(E)},null,40,["modelValue","onUpdate:modelValue","content","optionUrl","disabled","activeText","inactiveText","onChange"]))]),_:2},1024)]),_:2},1024))),128)}}}),A1=Fl._export_sfc(T1,[["__scopeId","data-v-6c233914"]]),M1=a.defineComponent({__name:"index",props:{compType:String,activeTabName:String,comp:Object,extendItem:{type:Object,default:{}},target:{type:String,default:"alone"},relatedData:Array},emits:["change","onButtonClick"],setup(l,{emit:n}){const r=l,t=n,s=[{required:!0,message:"输入不能为空",trigger:"blur"}],u=a.ref([]),k=A=>A==null?void 0:A.reduce((Z,S)=>(Z[S==null?void 0:S.prop]=S==null?void 0:S.rule,Z),{}),f=a.computed(()=>({formRules:k(u.value),buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"保存",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]})),v=a.ref([]),y=a.ref(""),c=(A,Z,S)=>{var x;let $=[];(r==null?void 0:r.activeTabName)==="任务配置"?($=[{label:"任务名称",prop:"任务名称",key:"任务名称",value:"",width:1,isFormColHidden:!1},{label:"任务关键词",prop:"任务关键词",key:"任务关键词",type:"cascader",value:[],width:1,isFormColHidden:!1,config:{checkOnClickNode:!0,showPrefix:!1},contents:[{label:"列名称",value:"列名称",children:A},{label:"按钮名称",value:"按钮名称",children:Z}]},{label:"执行任务",prop:"执行任务",key:"执行任务",type:"cascader",value:[],width:1,isFormColHidden:!1,config:{checkOnClickNode:!0,showPrefix:!1},contents:[{label:"进度设置",value:"进度设置",children:[{label:"计时",value:"计时",children:[{label:"倒计时",value:"倒计时"},{label:"进行时",value:"进行时"}]},{label:"进度条",value:"进度条"}]},{label:"统计",value:"统计",children:[{label:"统计规则",value:"统计规则",children:[{label:"求和",value:"求和"},{label:"自定义",value:"自定义"}]}]}]},{label:"执行动作",prop:"执行动作",key:"执行动作",type:"select",value:[],width:1,isFormColHidden:!1,contents:[{label:"点击时",value:"点击时"},{label:"页面加载时",value:"页面加载时"}]},{label:"执行交互",prop:"执行交互",key:"执行交互",type:"cascader",value:[],width:1,isFormColHidden:!1,config:{checkOnClickNode:!0,showPrefix:!1},contents:[{label:"界面显示",value:"界面显示",children:[{label:"主页",value:"主页"},{label:"详情页",value:"详情页"}]},{label:"弹窗提示",value:"弹窗提示"},{label:"后台提交",value:"后台提交"}]},{label:"任务状态",prop:"任务状态",key:"任务状态",type:"radio",value:"启动",width:1,isFormColHidden:!1,contents:[{label:"启动",value:"启动"},{label:"暂停",value:"暂停"}]}],u.value=[{prop:"任务名称",rule:s},{prop:"任务关键词",rule:s},{prop:"执行任务",rule:s},{prop:"执行动作",rule:s},{prop:"执行交互",rule:s}]):(r==null?void 0:r.activeTabName)==="任务关联"&&($=[{prop:"关联名称",label:"关联名称",key:"关联名称",type:"input",value:"",isTableColHidden:!1,isFormColHidden:!1},{label:"关联形式",prop:"关联形式",key:"关联形式",type:"select",value:"流程式",width:1,isFormColHidden:!1,contents:[{label:"流程式",value:"流程式"}]},{label:"关联任务集合",prop:"关联任务集合",key:"关联任务集合",type:"tag",value:[],width:1,isFormColHidden:!1,contents:(x=r==null?void 0:r.relatedData)==null?void 0:x.map(g=>({label:g==null?void 0:g.任务名称,value:g==null?void 0:g.任务名称}))},{prop:"关联状态",label:"关联状态",key:"关联状态",type:"radio",value:"启动",isTableColHidden:!1,isFormColHidden:!1,contents:[{label:"启动",value:"启动"},{label:"暂停",value:"暂停"}]}],u.value=[{prop:"关联名称",rule:s},{prop:"关联状态",rule:s},{prop:"关联形式",rule:s},{prop:"关联任务集合",rule:s}]);let T;return S&&(S==null?void 0:S.length)>0?T=[...$,...E(A,Z,S)]:T=$,T},E=(A,Z,S)=>{const $=[{label:"进度关键词",prop:"进度关键词",key:"进度关键词",type:"input",value:"",width:2,isFormColHidden:!1,contents:[]},{label:"统计算法源",prop:"统计算法源",key:"统计算法源",type:"input",value:"",width:2,isFormColHidden:!1,contents:[]},{label:"统计是否获取错误集",prop:"统计是否获取错误集",key:"统计是否获取错误集",type:"radio",value:!1,width:2,isFormColHidden:!1,contents:[{label:"是",value:!0},{label:"否",value:!1}]}];return S?$==null?void 0:$.filter(T=>S==null?void 0:S.includes(T==null?void 0:T.prop)):$},N=(A,Z)=>{var g,H,W,ae,ge,Oe,we,te,me;const S=((ge=(ae=(W=(H=(g=r==null?void 0:r.comp)==null?void 0:g.compData)==null?void 0:H.find(J=>(J==null?void 0:J.key)==="header"))==null?void 0:W.contents)==null?void 0:ae.filter(J=>(J==null?void 0:J.label)!=="操作"))==null?void 0:ge.map(J=>({value:J==null?void 0:J.prop,label:J.label})))||[],$=/button/i,T=((me=(te=(we=(Oe=r==null?void 0:r.comp)==null?void 0:Oe.compData)==null?void 0:we.filter(J=>$.test(J==null?void 0:J.key)))==null?void 0:te.flatMap(J=>J==null?void 0:J.contents))==null?void 0:me.map(J=>({value:J==null?void 0:J.label,label:J.label})))||[],x=c(S,T,A);v.value=Z?N1(x,Z):x,A&&(A==null?void 0:A.length)>0&&u.value.push(...A==null?void 0:A.map(J=>({prop:J,rule:s})))};a.onMounted(()=>{N(null,r==null?void 0:r.extendItem)});const O=A=>{const Z=A==null?void 0:A[y.value];if(y.value==="执行任务"){if(!(Z!=null&&Z.join("/")))return;const S=Z==null?void 0:Z.join("/");N(S==="统计/统计规则/自定义"?["统计算法源","统计是否获取错误集"]:S==="进度设置/进度条"?["进度关键词"]:null,A)}},w=A=>{t("change",{target:r==null?void 0:r.target,extendConfigs:A})},Y=(A,Z)=>{y.value=Z==null?void 0:Z.changeProp,O(A)},_=A=>{t("onButtonClick",A)};return(A,Z)=>(a.openBlock(),a.createBlock(rl.ssForm,{rowContents:v.value,key:v.value,isStartJustify:!1,isEnableWrap:!1,formRules:f.value.formRules,buttonValue:f.value.buttonValue,onChange:w,onBlurChange:Y,onOnButtonClick:_},null,8,["rowContents","formRules","buttonValue"]))}}),z1=Fl._export_sfc(M1,[["__scopeId","data-v-7c660c1f"]]),O1={};function I1(l,n){return null}const L1=Fl._export_sfc(O1,[["render",I1]]),V1={class:"form-operate-content"},$1={class:"form-operate-item"},R1={class:"operate-title"},P1={class:"operate-content"},F1={class:"fix-content"},j1={class:"fix-button"},H1={class:"operate-title"},U1={class:"operate-content"},q1={class:"fix-content"},W1={class:"fix-button"},K1={style:{display:"flex","justify-content":"space-between"}},Y1={class:"form-content"},G1={class:"dialog-footer"},X1={class:"form-content"},J1={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,t=n,s=a.ref(!1),u=a.ref([]),k=a.ref([]),f=a.ref(!1),v=a.ref([]),y=a.ref([]),c=a.ref(""),E=a.ref(!1),N=a.ref(0),O=a.ref([]),w=a.ref([]),Y=(te,me)=>{if((me==null?void 0:me.type)=="Select"&&(te==null?void 0:te.key)==="selectRelateType"){const J=me==null?void 0:me.optionUrl;return(J==null?void 0:J.selectRelateType)||me[te.key]}if((me==null?void 0:me.type)=="Select"&&(te==null?void 0:te.key)==="menuSelect"){const J=me==null?void 0:me.optionUrl;return(J==null?void 0:J.menuSelect)||me[te.key]}if((me==null?void 0:me.type)=="Select"&&(te==null?void 0:te.key)==="groupSelect"){const J=me==null?void 0:me.optionUrl;return(J==null?void 0:J.groupSelect)||me[te.key]}if((me==null?void 0:me.type)=="Select"&&(te==null?void 0:te.key)==="originalContent")return(me==null?void 0:me.value)||me[te.key];if((me==null?void 0:me.type)=="Select"&&(te==null?void 0:te.key)==="multiple"){const J=me[te.key];return Fs(J)?J:te.default}return(te==null?void 0:te.label)==="类型"&&me[te.key]===""?"Input":(te==null?void 0:te.key)==="isFormColHidden"&&!me[te.key]?!1:me[te.key]},_=async te=>{var ue,Ye,Sa,oe,D,ne;s.value=!0;let me=[];const J=await((Sa=(Ye=(ue=sa.FormContent)==null?void 0:ue.find(ve=>(ve==null?void 0:ve.key)===((te==null?void 0:te.type)===""?"Input":te==null?void 0:te.type)))==null?void 0:Ye.value)==null?void 0:Sa.value)??((D=(oe=sa.FormContent)==null?void 0:oe.find(ve=>(ve==null?void 0:ve.key)===((te==null?void 0:te.type)===""?"Input":te==null?void 0:te.type)))==null?void 0:D.value);if(J==null||J.forEach(ve=>{N.value++,me.push({label:ve==null?void 0:ve.label,name:ve==null?void 0:ve.label,type:ve.type,prop:ve==null?void 0:ve.prop,value:Y(ve,te),id:N.value,contents:ve==null?void 0:ve.options,width:(te==null?void 0:te.width)??1})}),te!=null&&te.menuSelect&&((ne=te==null?void 0:te.menuSelect)==null?void 0:ne.length)>0){const ve=await sa.menuToContentType(te==null?void 0:te.menuSelect);me=me==null?void 0:me.map(se=>((se==null?void 0:se.name)==="组信息选项"&&(se.contents=ve),se))}c.value=te==null?void 0:te.id,u.value=await sa.selectToBase(sa.formToOptionsContents(me)),k.value=await sa.selectToBase(sa.formToOptionsContents(me))},A=te=>{var J;f.value=!0;let me=[];(J=sa.FormButton)==null||J.forEach(ue=>{N.value++,me.push({label:ue==null?void 0:ue.label,name:ue==null?void 0:ue.label,type:ue.type,value:(ue==null?void 0:ue.label)==="类型"&&te[ue.key]===""?"normal":te[ue.key],id:N.value,contents:ue==null?void 0:ue.options})}),O.value=me,w.value=me,c.value=te==null?void 0:te.id};a.watch(()=>E.value,()=>{var me,J;let te=L.cloneDeep(r.originalItemContents);(me=L.cloneDeep(r.originalItemContents))!=null&&me.find(ue=>(ue==null?void 0:ue.key)==="enableWrap")?te=(J=L.cloneDeep(r.originalItemContents))==null?void 0:J.map(ue=>((ue==null?void 0:ue.key)==="enableWrap"&&(ue.contents=!E.value),ue)):te.push({key:"enableWrap",contents:!E.value}),t("change",te)},{deep:!0});const Z=()=>{var J,ue,Ye,Sa,oe;O.value=w.value;let te={};if(c.value!==""?te.id=c.value:(N.value++,te.id="id"+N.value),(J=O.value)==null||J.forEach(D=>{var ve;const ne=(ve=sa.FormButton)==null?void 0:ve.find(se=>(se==null?void 0:se.label)===(D==null?void 0:D.label));ne&&(te[ne.key]=D.value)}),(ue=v.value)!=null&&ue.find(D=>D.id===te.id))v.value=(Ye=v.value)==null?void 0:Ye.map(D=>(D.id===te.id&&(D=te),D));else{let D=L.cloneDeep(v.value);v.value||(v.value=[]),D.push(te),v.value=D}f.value=!1,c.value="";let me=L.cloneDeep(r.originalItemContents);(Sa=L.cloneDeep(r.originalItemContents))!=null&&Sa.find(D=>(D==null?void 0:D.key)==="formButton")?me=(oe=L.cloneDeep(r.originalItemContents))==null?void 0:oe.map(D=>((D==null?void 0:D.key)==="formButton"&&(D.contents=v.value),D)):me.push({key:"formButton",contents:v.value}),t("change",me)},S=te=>{L.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var me,J;y.value=(me=L.cloneDeep(y.value))==null?void 0:me.filter(ue=>(ue==null?void 0:ue.id)!==(te==null?void 0:te.id)),t("change",(J=L.cloneDeep(r.originalItemContents))==null?void 0:J.map(ue=>((ue==null?void 0:ue.key)==="formContent"&&(ue.contents=y.value),ue))),Wa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},$=te=>{L.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var me,J;v.value=(me=L.cloneDeep(v.value))==null?void 0:me.filter(ue=>(ue==null?void 0:ue.id)!==(te==null?void 0:te.id)),t("change",(J=L.cloneDeep(r.originalItemContents))==null?void 0:J.map(ue=>((ue==null?void 0:ue.key)==="formButton"&&(ue.contents=v.value),ue))),Wa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},T=()=>{var me;f.value=!0;let te=[];(me=sa.FormButton)==null||me.forEach(J=>{N.value++,te.push({label:J==null?void 0:J.label,name:J==null?void 0:J.label,type:J.type,value:(J==null?void 0:J.label)==="类型"?"normal":"",id:N.value,contents:J==null?void 0:J.options})}),O.value=te,w.value=te},x=()=>{var me,J,ue;s.value=!0;let te=[];(ue=(J=(me=sa.FormContent)==null?void 0:me.find(Ye=>(Ye==null?void 0:Ye.key)==="Input"))==null?void 0:J.value)==null||ue.forEach(Ye=>{N.value++,te.push({label:Ye==null?void 0:Ye.label,name:Ye==null?void 0:Ye.label,type:Ye.type,value:(Ye==null?void 0:Ye.label)==="类型"?"Input":"",id:N.value,contents:Ye==null?void 0:Ye.options})}),u.value=te,k.value=te},g=te=>{let me=L.cloneDeep(w.value);me=me==null?void 0:me.map(J=>(J.value=te==null?void 0:te[J.name],J)),w.value=me},H=te=>{const me=te.find(Ye=>(Ye==null?void 0:Ye.name)==="类型");if((me==null?void 0:me.value)!="Select")return;const J=te.find(Ye=>(Ye==null?void 0:Ye.name)==="多选"),ue=te.find(Ye=>(Ye==null?void 0:Ye.name)==="初始值");J!=null&&J.value&&yo.isString(ue.value)&&(ue.value=[ue.value]),!(J!=null&&J.value)&&!yo.isString(ue.value)&&(ue.value="")},W=async te=>{var me,J,ue,Ye,Sa,oe,D,ne,ve,se,xe,ta;if((te==null?void 0:te.类型)!==((J=(me=k.value)==null?void 0:me.find(wa=>(wa==null?void 0:wa.label)==="类型"))==null?void 0:J.value)){let wa=[];const Ia=await((Sa=(Ye=(ue=sa.FormContent)==null?void 0:ue.find(le=>(le==null?void 0:le.key)===((te==null?void 0:te.类型)===""?"Input":te==null?void 0:te.类型)))==null?void 0:Ye.value)==null?void 0:Sa.value)?await((se=(ve=(ne=sa.FormContent)==null?void 0:ne.find(le=>(le==null?void 0:le.key)===((te==null?void 0:te.类型)===""?"Input":te==null?void 0:te.类型)))==null?void 0:ve.value)==null?void 0:se.value):(D=(oe=sa.FormContent)==null?void 0:oe.find(le=>(le==null?void 0:le.key)===((te==null?void 0:te.类型)===""?"Input":te==null?void 0:te.类型)))==null?void 0:D.value;if(Ia==null||Ia.forEach(le=>{var Ve,_a;N.value++;const ra=_u(le==null?void 0:le.default)?(te==null?void 0:te[le.label])??le.value??"":le==null?void 0:le.default;wa.push({label:le==null?void 0:le.label,name:le==null?void 0:le.label,type:le.type,value:ra,prop:le==null?void 0:le.prop,id:N.value,contents:le==null?void 0:le.options,width:((_a=(Ve=k.value)==null?void 0:Ve[0])==null?void 0:_a.width)??1})}),te!=null&&te.菜单选项&&((xe=te==null?void 0:te.菜单选项)==null?void 0:xe.length)>0){const le=await sa.menuToContentType(te==null?void 0:te.菜单选项);wa=wa==null?void 0:wa.map(ra=>((ra==null?void 0:ra.name)==="组信息选项"&&(ra.contents=le),ra))}H(wa),k.value=await sa.selectToBase(L.cloneDeep(wa)),u.value=await sa.selectToBase(L.cloneDeep(wa))}else{let wa=L.cloneDeep(k.value);if(wa=wa==null?void 0:wa.map(Ia=>(Ia.value=te==null?void 0:te[Ia.name],Ia)),te!=null&&te.菜单选项&&((ta=te==null?void 0:te.菜单选项)==null?void 0:ta.length)>0){const Ia=await sa.menuToContentType(te==null?void 0:te.菜单选项);wa=wa==null?void 0:wa.map(le=>((le==null?void 0:le.name)==="组信息选项"&&(le.contents=Ia),le))}wa=sa.formToOptionsContents(wa),H(wa),k.value=await sa.selectToBase(L.cloneDeep(wa))}},ae=te=>{te||(u.value=k.value)},ge=async te=>{await W(te),u.value=k.value},Oe=mi(async()=>{var ue,Ye,Sa,oe,D,ne,ve,se,xe,ta,wa,Ia;u.value=k.value;let te={};te.width=((Ye=(ue=u.value)==null?void 0:ue[0])==null?void 0:Ye.width)??1,c.value!==""?te.id=c.value:(N.value++,te.id="id"+N.value);let me=await((D=(oe=(Sa=sa.FormContent)==null?void 0:Sa.find(le=>{var ra,Ve;return(le==null?void 0:le.key)===(((Ve=(ra=u.value)==null?void 0:ra.find(_a=>(_a==null?void 0:_a.label)==="类型"))==null?void 0:Ve.value)??"label")}))==null?void 0:oe.value)==null?void 0:D.value)??((ve=(ne=sa.FormContent)==null?void 0:ne.find(le=>{var ra,Ve;return(le==null?void 0:le.key)===(((Ve=(ra=u.value)==null?void 0:ra.find(_a=>(_a==null?void 0:_a.label)==="类型"))==null?void 0:Ve.value)??"label")}))==null?void 0:ve.value);if((se=u.value)==null||se.forEach(le=>{const ra=me==null?void 0:me.find(Ve=>(Ve==null?void 0:Ve.label)===(le==null?void 0:le.label));ra&&(te[ra.key]=le.value)}),te.width=te.width?te.width:1,te.key=te==null?void 0:te.label,te.isFormColHidden=te==null?void 0:te.isFormColHidden,(xe=y.value)!=null&&xe.find(le=>le.id===te.id))y.value=(ta=y.value)==null?void 0:ta.map(le=>(le.id===te.id&&(le=te),le));else{let le=L.cloneDeep(y.value);le.push(te),y.value=le}y.value=y.value.map(({id:le,...ra})=>ra),s.value=!1,c.value="";let J=L.cloneDeep(r.originalItemContents);(wa=L.cloneDeep(r.originalItemContents))!=null&&wa.find(le=>(le==null?void 0:le.key)==="formContent")?J=(Ia=L.cloneDeep(r.originalItemContents))==null?void 0:Ia.map(le=>((le==null?void 0:le.key)==="formContent"&&(le.contents=y.value),le)):J.push({key:"formContent",contents:y.value}),t("change",J)},300),we=()=>{s.value=!1,f.value=!1,c.value="",k.value=[],w.value=[]};return a.watch(()=>r.originalItemContents,()=>{var me,J,ue,Ye,Sa,oe;if(!r.originalItemContents||r.originalItemContents.length===0)return;const te=L.cloneDeep(r.originalItemContents);y.value=((me=te==null?void 0:te.find(D=>(D==null?void 0:D.key)==="formContent"))==null?void 0:me.contents)??[],v.value=((J=te==null?void 0:te.find(D=>(D==null?void 0:D.key)==="formButton"))==null?void 0:J.contents)??[],E.value=(ue=te==null?void 0:te.find(D=>(D==null?void 0:D.key)==="enableWrap"))!=null&&ue.contents?!((Ye=te==null?void 0:te.find(D=>(D==null?void 0:D.key)==="enableWrap"))!=null&&Ye.contents):!0,y.value=(Sa=L.cloneDeep(y.value))==null?void 0:Sa.map((D,ne)=>{var se;let ve=D;return ve.id=(D==null?void 0:D.id)??ne,D!=null&&D.label||(D.label=(D==null?void 0:D.key)??(D==null?void 0:D.label)??""),D!=null&&D.type||(D.type=(D==null?void 0:D.type)??""),D.contents=((se=D==null?void 0:D.options)==null?void 0:se.length)===0?(D==null?void 0:D.contents)??"":D==null?void 0:D.options,ve}),y.value=sa.formToOptionsContents(y.value),v.value=(oe=v.value)==null?void 0:oe.map((D,ne)=>D={label:(D==null?void 0:D.label)??"",type:(D==null?void 0:D.type)??"",background:(D==null?void 0:D.background)??"var(--ssComponent-primary-color)",id:ne})},{deep:!0,immediate:!0}),(te,me)=>{const J=a.resolveComponent("svg-icon"),ue=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",V1,[a.createElementVNode("div",$1,[a.createElementVNode("div",R1,[me[2]||(me[2]=a.createElementVNode("div",null,a.toDisplayString("表单内容"),-1)),a.createVNode(ue,{class:"icon-content",id:"themeButton",onClick:x},{icon:a.withCtx(()=>[a.createVNode(J,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[me[1]||(me[1]=a.createElementVNode("div",null,a.toDisplayString("新增"),-1))]),_:1,__:[1]})]),a.createElementVNode("div",P1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(y.value,(Ye,Sa)=>(a.openBlock(),a.createElementBlock("div",{key:Sa},[a.createElementVNode("div",F1,[a.createElementVNode("div",null,a.toDisplayString(Ye.label),1),a.createElementVNode("div",j1,[a.createVNode(J,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:oe=>_(Ye)},null,8,["onClick"]),a.createVNode(J,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:oe=>S(Ye)},null,8,["onClick"])])])]))),128))]),a.createElementVNode("div",H1,[me[4]||(me[4]=a.createElementVNode("div",null,a.toDisplayString("表单按钮"),-1)),a.createVNode(ue,{class:"icon-content",id:"themeButton",onClick:T},{icon:a.withCtx(()=>[a.createVNode(J,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[me[3]||(me[3]=a.createTextVNode(" 新增 "))]),_:1,__:[3]})]),a.createElementVNode("div",U1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(v.value,(Ye,Sa)=>(a.openBlock(),a.createElementBlock("div",{key:Sa},[a.createElementVNode("div",q1,[a.createElementVNode("div",null,a.toDisplayString(Ye.label),1),a.createElementVNode("div",W1,[a.createVNode(J,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:oe=>A(Ye)},null,8,["onClick"]),a.createVNode(J,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:oe=>$(Ye)},null,8,["onClick"])])])]))),128))]),me[6]||(me[6]=a.createElementVNode("div",{class:"operate-title"},[a.createElementVNode("div",null,a.toDisplayString("表单布局"))],-1)),a.createElementVNode("div",K1,[me[5]||(me[5]=a.createElementVNode("div",{class:"operate-center-content"},a.toDisplayString("是否自动撑宽"),-1)),a.createVNode(rl._sfc_main$1,{modelValue:E.value,"onUpdate:modelValue":me[0]||(me[0]=Ye=>E.value=Ye)},null,8,["modelValue"])])]),a.createVNode(sr.ssDialog,{visible:s.value,onBeforeDestroy:we,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",Y1,[(a.openBlock(),a.createBlock(rl.ssForm,{rowContents:u.value,key:u.value,isEnableWrap:!0,onChange:W,onChangeVisible:ae,onBlurChange:ge},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",G1,[a.createVNode(ue,{onClick:we,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>me[7]||(me[7]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[7]}),a.createVNode(ue,{class:"ok-button button",onClick:a.unref(Oe),id:"themeButton"},{default:a.withCtx(()=>me[8]||(me[8]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[8]},8,["onClick"])])]),_:1},8,["visible"]),a.createVNode(sr.ssDialog,{visible:f.value,onBeforeDestroy:we,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",X1,[(a.openBlock(),a.createBlock(rl.ssForm,{rowContents:O.value,key:O.value,isEnableWrap:!0,onChange:g},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",{class:"dialog-footer"},[a.createElementVNode("div",{onClick:we,class:"cancel-button button"},a.toDisplayString("取消")),a.createElementVNode("div",{class:"ok-button button",onClick:Z},a.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},ds=Fl._export_sfc(J1,[["__scopeId","data-v-20850524"]]),Z1={class:"step-module content"},Q1={class:"module-data"},e2={class:"step-module layout"},a2={class:"form-content"},l2=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,t=n,s=a.ref([{label:"方向:",prop:"direction",type:"RADIO",contents:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}],value:"horizontal"},{label:"是否居中:",prop:"alignCenter",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0},{label:"应用简洁风格",prop:"simple",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1}]),u=a.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"标题",prop:"title",type:"input",value:""},{label:"描述",prop:"description",type:"input",value:""}]),k=a.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),f=a.reactive({visible:!1,width:"40%",title:"步骤条"}),v=a.ref("create"),y=a.ref({}),c=a.ref([]),E=_=>{var A;y.value=_,t("change",(A=w())==null?void 0:A.compData)},N=(_,A)=>{var Z,S;switch(_){case"create":(Z=u.value)==null||Z.forEach($=>{$.value=""}),v.value="create",f.visible=!0;break;case"update":(S=u.value)==null||S.forEach($=>{$.value=A[$==null?void 0:$.prop]}),v.value="update",f.visible=!0;break;case"delete":c.value.splice(A,1),v.value="delete";break}},O=_=>{var A,Z,S;if((_==null?void 0:_.buttonName)==="确认"){const $=L.cloneDeep(_==null?void 0:_.content);switch(Object.keys($).forEach(T=>{$[T]===""&&delete $[T]}),v.value){case"create":c.value.push({...$,index:((A=c.value)==null?void 0:A.length)+1});break;case"update":c.value=(Z=c.value)==null?void 0:Z.map(T=>T.index===($==null?void 0:$.index)?{...T,title:$==null?void 0:$.title,description:$==null?void 0:$.description}:T);break}t("change",(S=w())==null?void 0:S.compData),f.visible=!1}else f.visible=!1},w=()=>({comp:"Step",compData:[{key:"stepList",contents:c.value},{key:"stepConfig",contents:y.value}]}),Y=()=>{f.visible=!1};return a.watch(()=>r==null?void 0:r.itemContents,_=>{var A,Z;_&&(y.value=((A=_==null?void 0:_.find(S=>S.key==="stepConfig"))==null?void 0:A.contents)??{},c.value=((Z=_==null?void 0:_.find(S=>S.key==="stepList"))==null?void 0:Z.contents)??[])},{immediate:!0}),(_,A)=>{const Z=a.resolveComponent("svg-icon"),S=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",Z1,[A[2]||(A[2]=a.createElementVNode("h4",{class:"module-title"},"内容",-1)),a.createVNode(S,{class:"module-icon",id:"themeButton",onClick:A[0]||(A[0]=$=>N("create"))},{icon:a.withCtx(()=>[a.createVNode(Z,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[A[1]||(A[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",Q1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.value,($,T)=>(a.openBlock(),a.createElementBlock("div",{class:"module-data-item",key:T},[a.createElementVNode("span",null,a.toDisplayString($==null?void 0:$.title),1),a.createElementVNode("div",null,[a.createVNode(S,{type:"primary",size:"small",onClick:x=>N("update",{...$,index:T+1})},{default:a.withCtx(()=>A[3]||(A[3]=[a.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),a.createVNode(S,{type:"danger",size:"small",onClick:x=>N("delete",T)},{default:a.withCtx(()=>A[4]||(A[4]=[a.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),a.createElementVNode("div",e2,[A[5]||(A[5]=a.createElementVNode("div",{class:"module-title"},"布局",-1)),a.createVNode(rl.ssForm,{rowContents:s.value,onChange:E},null,8,["rowContents"])])]),a.createVNode(sr.ssDialog,{visible:f.visible,title:f.title,onBeforeDestroy:Y,width:f.width},{default:a.withCtx(()=>[a.createElementVNode("div",a2,[(a.openBlock(),a.createBlock(rl.ssForm,{rowContents:u.value,key:u.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:k.value,onOnButtonClick:O},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),r2=Fl._export_sfc(l2,[["__scopeId","data-v-7dbd17f2"]]),n2={class:"step-module content"},t2={class:"module-data"},o2={class:"step-module layout"},i2={class:"form-content"},s2=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,t=n,s=a.ref("create"),u=a.ref({}),k=a.ref([]),f=a.ref([{label:"方向:",prop:"placement",type:"radio",contents:[{label:"底部",value:"bottom"},{label:"顶部",value:"top"}],value:"bottom"},{label:"节点类型:",prop:"type",type:"select",contents:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}],value:"primary"},{label:"颜色:",prop:"color",type:"color",value:""},{label:"尺寸:",prop:"size",type:"radio",contents:[{label:"normal",value:"normal"},{label:"large",value:"large"}],value:"normal"},{label:"是否空心",prop:"isHollow",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0},{label:"是否居中",prop:"isCenter",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),v=a.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"内容",prop:"content",type:"input",value:""},{label:"时间戳",prop:"timestamp",type:"datetime",value:""}]),y=a.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),c=a.reactive({visible:!1,width:"40%",title:"时间线"}),E=_=>{var A;u.value=_,t("change",(A=w())==null?void 0:A.compData)},N=(_,A)=>{var Z,S;switch(_){case"create":(Z=v.value)==null||Z.forEach($=>{$.value=""}),s.value="create",c.visible=!0;break;case"update":(S=v.value)==null||S.forEach($=>{$.value=A[$==null?void 0:$.prop]}),s.value="update",c.visible=!0;break;case"delete":k.value.splice(A,1),s.value="delete";break}},O=_=>{var A,Z,S,$;if((_==null?void 0:_.buttonName)==="确认"){const T=L.cloneDeep(_==null?void 0:_.content);switch(Object.keys(T).forEach(x=>{T[x]===""&&delete T[x]}),s.value){case"create":(Z=k.value)==null||Z.push({...T,index:((A=k.value)==null?void 0:A.length)+1});break;case"update":k.value=(S=k.value)==null?void 0:S.map(x=>x.index===(T==null?void 0:T.index)?{...x,content:T==null?void 0:T.content,timestamp:T==null?void 0:T.timestamp}:x);break}t("change",($=w())==null?void 0:$.compData),c.visible=!1}else c.visible=!1},w=()=>({comp:"TimeLine",compData:[{key:"timeLineList",contents:k.value},{key:"timeLineConfig",contents:u.value}]}),Y=()=>{c.visible=!1};return a.watch(()=>r==null?void 0:r.itemContents,_=>{var A,Z;_&&(u.value=((A=_==null?void 0:_.find(S=>S.key==="timeLineConfig"))==null?void 0:A.contents)??{},k.value=((Z=_==null?void 0:_.find(S=>S.key==="timeLineList"))==null?void 0:Z.contents)??[])},{immediate:!0}),(_,A)=>{const Z=a.resolveComponent("svg-icon"),S=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",n2,[A[2]||(A[2]=a.createElementVNode("h4",{class:"module-title"},"内容",-1)),a.createVNode(S,{class:"module-icon",id:"themeButton",onClick:A[0]||(A[0]=$=>N("create"))},{icon:a.withCtx(()=>[a.createVNode(Z,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[A[1]||(A[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",t2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(k.value,($,T)=>(a.openBlock(),a.createElementBlock("div",{class:"module-data-item",key:T},[a.createElementVNode("span",null,a.toDisplayString($==null?void 0:$.content),1),a.createElementVNode("div",null,[a.createVNode(S,{type:"primary",size:"small",onClick:x=>N("update",{...$,index:T+1})},{default:a.withCtx(()=>A[3]||(A[3]=[a.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),a.createVNode(S,{type:"danger",size:"small",onClick:x=>N("delete",T)},{default:a.withCtx(()=>A[4]||(A[4]=[a.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),a.createElementVNode("div",o2,[A[5]||(A[5]=a.createElementVNode("div",{class:"module-title"},"布局",-1)),a.createVNode(rl.ssForm,{rowContents:f.value,onChange:E},null,8,["rowContents"])])]),a.createVNode(sr.ssDialog,{visible:c.visible,title:c.title,onBeforeDestroy:Y,width:c.width},{default:a.withCtx(()=>[a.createElementVNode("div",i2,[(a.openBlock(),a.createBlock(rl.ssForm,{rowContents:v.value,key:v.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:y.value,onOnButtonClick:O},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),c2=Fl._export_sfc(s2,[["__scopeId","data-v-39ffc861"]]),u2={};function d2(l,n){return a.openBlock(),a.createElementBlock("div")}const p2=Fl._export_sfc(u2,[["render",d2]]),f2={class:"extra-content"},h2={key:0},v2={key:1},m2={class:"dialog-footer"},y2={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},emits:["change"],setup(l,{emit:n}){const r=l,t=a.ref(0),s=a.ref(),u=a.ref(),k=n,f=a.ref(!1),v=a.ref({}),y=a.ref({}),c=a.ref();a.watch(()=>[r.itemData],()=>{var $;const S=L.cloneDeep(r.itemData);s.value=($=L.cloneDeep(S))==null?void 0:$.map(T=>{var x;if(T.key==="extra"){let g=[];(x=T.value)==null||x.forEach(H=>{var W;g.push((W=Object.values(H))==null?void 0:W[0])}),T.value=g}return T})},{deep:!0,immediate:!0});const E=(S,$,T,x)=>{var H;let g={};((H=S==null?void 0:S[0])==null?void 0:H.contents)==="详情"&&(f.value=!0,g[$]=S,u.value=S==null?void 0:S.filter(W=>(W==null?void 0:W.key)!=="tableContentName"),v.value=g,y.value=T,c.value=x.id)},N=S=>{var W,ae,ge,Oe;const $=(ae=(W=Object.values(L.cloneDeep(v.value)))==null?void 0:W[0])==null?void 0:ae.filter(we=>(we==null?void 0:we.key)==="tableContentName"),T=(Oe=(ge=Object.values(L.cloneDeep(v.value)))==null?void 0:ge[0])==null?void 0:Oe.filter(we=>(we==null?void 0:we.key)!=="tableContentName"),x=T==null?void 0:T.map((we,te)=>{var me;return te===S.index&&(we==null?void 0:we.comp)==="Table"&&(we.compData=(me=we.compData)==null?void 0:me.map(J=>{var ue,Ye;return(J==null?void 0:J.key)==="tableContents"&&(J.contents=(Ye=(ue=S.content)==null?void 0:ue.map(Sa=>{let oe={};for(let D in Sa)D!=="id"&&(oe[D]=Sa[D]);return oe}))==null?void 0:Ye.map(Sa=>Object.values(Sa))),J})),we});x.unshift($==null?void 0:$[0]);let g=L.cloneDeep(v.value),H={};for(let we in g)H[we]=x;v.value=H},O=()=>{f.value=!1,v.value={},y.value={},c.value=void 0,t.value++},w=S=>{var W,ae,ge,Oe;const $=(ae=(W=Object.values(L.cloneDeep(v.value)))==null?void 0:W[0])==null?void 0:ae.filter(we=>(we==null?void 0:we.key)==="tableContentName"),T=(Oe=(ge=Object.values(L.cloneDeep(v.value)))==null?void 0:ge[0])==null?void 0:Oe.filter(we=>(we==null?void 0:we.key)!=="tableContentName"),x=T==null?void 0:T.map((we,te)=>(te===S.index&&(we.compData=S.contents),we));x.unshift($==null?void 0:$[0]);let g=L.cloneDeep(v.value),H={};for(let we in g)H[we]=x;v.value=H},Y=()=>{var $,T;let S={};for(let x in y.value)x===(($=Object.keys(v.value))==null?void 0:$[0])?S[x]=(T=Object.values(v.value))==null?void 0:T[0]:S[x]=y.value[x];k("change",{buttonName:"编辑",index:c.value,singleContent:S},"methodData"),f.value=!1,v.value={},y.value={},c.value=void 0},_=()=>{f.value=!1,v.value={},y.value={},c.value=void 0},A=S=>{k("change",S,"methodData")},Z=S=>Dt(S);return(S,$)=>{const T=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",f2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,(x,g)=>(a.openBlock(),a.createElementBlock("div",{key:t.value},[(x==null?void 0:x.key)==="extra"?(a.openBlock(),a.createElementBlock("div",h2)):(a.openBlock(),a.createElementBlock("div",v2,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(Z(x.comp)),{itemData:x==null?void 0:x.compData,childItemData:x==null?void 0:x.itemChildData,key:g,index:(x==null?void 0:x.id)??g,onContentClick:E,onChange:A},null,40,["itemData","childItemData","index"]))]))]))),128)),a.createVNode(sr.ssDialog,{visible:f.value,onBeforeDestroy:_},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(u.value,(x,g)=>(a.openBlock(),a.createElementBlock("div",{key:g,class:"extra-dialog"},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(Z(x.comp)),{itemData:x==null?void 0:x.compData,onChange:N,childItemData:x==null?void 0:x.itemChildData,key:g,onContentChange:w,index:(x==null?void 0:x.id)??g,class:"extra-component"},null,40,["itemData","childItemData","index"]))]))),128))]),footer:a.withCtx(()=>[a.createElementVNode("div",m2,[a.createVNode(T,{class:"cancel-button footer-button",onClick:O,id:"themeBorderButton"},{default:a.withCtx(()=>$[0]||($[0]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[0]}),a.createVNode(T,{class:"confirm-button footer-button",onClick:Y,id:"themeButton"},{default:a.withCtx(()=>$[1]||($[1]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},g2=Fl._export_sfc(y2,[["__scopeId","data-v-2d9c5ab2"]]),b2={key:0,class:"method-content"},k2={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},setup(l){const n=a.ref([]),r=sa.useOriginalState(L.pinia),{originalPath:t}=L.storeToRefs(r),s=l,u=a.ref(!1),k=a.ref(),f=sa.useTableComp(L.pinia),{multipleTableConst:v}=L.storeToRefs(f),y=L.useModelComp(L.pinia),c=a.ref(!1),E=L.useMenuState(L.pinia),N=L.useLoginState(L.pinia),{itemData:O,isEdit:w,routeToChildPath:Y,tableViewContents:_,lockingPage:A,payloadTypes:Z}=L.storeToRefs(y),{activeMenuPath:S,platform:$,childMenu:T}=L.storeToRefs(E),{loginUserInfo:x}=L.storeToRefs(N),g=a.ref(!1),H=async()=>{var oe,D;(oe=n.value)!=null&&oe.find(ne=>(ne==null?void 0:ne.buttonName)==="保存")&&await J((D=n.value)==null?void 0:D.find(ne=>(ne==null?void 0:ne.buttonName)==="保存")),await sa.onSaveBack()};a.watch(()=>O.value,async()=>{w.value==="view"&&!g.value&&await Sa(L.cloneDeep(s.itemData)),g.value=!1},{deep:!0});const W=()=>{u.value=!1,k.value=void 0},ae=oe=>oe.map(D=>{const ne={};for(const ve in D){const se=D[ve];if(ve.includes(v.value)){const xe=ve.split(v.value);let ta=ne;xe.forEach((wa,Ia)=>{Ia===xe.length-1?ta[wa]=se:(ta[wa]||(ta[wa]={}),ta=ta[wa])})}else ne[ve]=se}return ne}),ge=async(oe,D,ne=[])=>{var se,xe,ta,wa,Ia,le,ra,Ve,_a,Fe,_e,ze,Ge,Ba,Ja;let ve=(se=L.cloneDeep(D))==null?void 0:se.filter(R=>(R==null?void 0:R.comp)!=="methodButton");if(oe!=null&&oe.includes("[")){let R=(le=(Ia=(wa=(ta=(xe=L.cloneDeep(oe))==null?void 0:xe.split("["))==null?void 0:ta[1])==null?void 0:wa.split("]"))==null?void 0:Ia[0])==null?void 0:le.split(":"),j="";if(R!=null&&R[0]){let G=(ra=ve==null?void 0:ve.find(V=>(V==null?void 0:V.name)===(R==null?void 0:R[0])))==null?void 0:ra.compData;if(!G){let V=(Ve=oe==null?void 0:oe.split("["))==null?void 0:Ve[0],K=await sa.getItemData(V,sessionStorage.getItem("systemKey"),"",!1,"","",ne);G=(_a=K==null?void 0:K.find(Ne=>(Ne==null?void 0:Ne.name)===(R==null?void 0:R[0])))==null?void 0:_a.compData}G==null||G.forEach(V=>{var K,Ne,Q,ke,pe,je;if((V==null?void 0:V.key)==="formContent")(K=V==null?void 0:V.contents)==null||K.forEach(Pe=>{var ca;(Pe==null?void 0:Pe.key)===(R==null?void 0:R[1])&&(Array.isArray(Pe==null?void 0:Pe.value)?j=Pe==null?void 0:Pe.value:j=(ca=Pe==null?void 0:Pe.value)==null?void 0:ca.toString())});else if((V==null?void 0:V.key)==="tableContents"){let Pe=[],ca=(Ne=G==null?void 0:G.find(Ie=>(Ie==null?void 0:Ie.key)==="header"))==null?void 0:Ne.contents,ka=(R==null?void 0:R[1])??"";if(ca!=null&&ca.every(Ie=>Array.isArray(Ie))){let Ie=sa.getColumnChild((pe=ca==null?void 0:ca[0])==null?void 0:pe.filter(fa=>(fa==null?void 0:fa.label)!=="操作"));(je=V.contents)==null||je.forEach(fa=>{let Re={};fa=fa==null?void 0:fa.filter(Ca=>!(Ca!=null&&Ca.id)),Ie==null||Ie.forEach((Ca,Ue)=>{let ba=fa[Ue];typeof fa[Ue]=="number"&&(ba=fa[Ue].toString()),(ka===""||ka===Ca.prop)&&(Re[Ca.prop]=ba)}),Pe.push(Re)}),Pe=ae(Pe)}else{let Ie=(Q=ca==null?void 0:ca.map(fa=>fa==null?void 0:fa.label))==null?void 0:Q.filter(fa=>fa!=="操作");(ke=V.contents)==null||ke.forEach(fa=>{let Re={};fa=fa==null?void 0:fa.filter(Ca=>!(Ca!=null&&Ca.id)),Ie==null||Ie.forEach((Ca,Ue)=>{let ba=fa[Ue];typeof fa[Ue]=="number"&&(ba=fa[Ue].toString()),(ka===""||ka===Ca)&&(Re[Ca]=ba)}),Pe.push(Re)})}j=Pe}})}return j}else if(oe!=null&&oe.includes("/")){let R={};return(Fe=L.cloneDeep(ve))==null||Fe.forEach((j,G)=>{var V,K,Ne,Q,ke,pe,je,Pe,ca,ka,Ie,fa,Re,Ca,Ue,ba,ce,xa,ye;if((j==null?void 0:j.comp)==="Table"){let Da=Array.isArray((Ne=(K=(V=j==null?void 0:j.compData)==null?void 0:V.find(be=>(be==null?void 0:be.key)==="header"))==null?void 0:K.contents)==null?void 0:Ne[0])?(je=(pe=(ke=(Q=j==null?void 0:j.compData)==null?void 0:Q.find(be=>(be==null?void 0:be.key)==="header"))==null?void 0:ke.contents)==null?void 0:pe[0])==null?void 0:je.some(be=>be==null?void 0:be.children):[],Ze=(ka=(ca=(Pe=j==null?void 0:j.compData)==null?void 0:Pe.find(be=>(be==null?void 0:be.key)==="tableContents"))==null?void 0:ca.contents)==null?void 0:ka.map(be=>(be!=null&&be.find(Se=>Se==null?void 0:Se.id)&&(be=be.slice(1)),be)),Je=(Ue=(Ca=(Re=(fa=(Ie=j==null?void 0:j.compData)==null?void 0:Ie.find(be=>(be==null?void 0:be.key)==="header"))==null?void 0:fa.contents)==null?void 0:Re[0])==null?void 0:Ca[0])==null?void 0:Ue.label,Ee=(ce=(ba=j==null?void 0:j.compData)==null?void 0:ba.find(be=>(be==null?void 0:be.key)==="header"))==null?void 0:ce.contents;if(Da)(Da==null?void 0:Da.length)===0?R[j.name]=R!=null&&R[j.name]?R[j.name]:sa.tableToForm(Ze,Ee):R[Je]=sa.tableToForm(Ze,Ee);else{const be=[];Ee=Ee.slice(1,Ee.length-1),Ee==null||Ee.forEach((Se,ha)=>{Ze==null||Ze.forEach(oa=>{be.push({key:Se.label+oa[0],value:oa[ha+1]})})}),R["form"+G]=be}}else{const Da=(ye=(xa=j.compData)==null?void 0:xa.find(Je=>(Je==null?void 0:Je.key)==="formContent"))==null?void 0:ye.contents;R!=null&&R.form||(R.form=[]);const Ze=[];Da==null||Da.forEach(Je=>{Je.key!==""&&(Je={key:(Je==null?void 0:Je.key)??(Je==null?void 0:Je.label),value:Je==null?void 0:Je.value},Ze.push(Je))}),R.form=[...Ze,...L.cloneDeep(R==null?void 0:R.form)]}}),R}else{if(oe==="createInsofDataApi"){let R=(_e=L.cloneDeep(D))==null?void 0:_e[0];return R={comp:(ze=L.cloneDeep(R))==null?void 0:ze.comp,compData:(Ge=L.cloneDeep(R))==null?void 0:Ge.compData,name:(Ba=L.cloneDeep(R))==null?void 0:Ba.name,isShow:(Ja=L.cloneDeep(R))==null?void 0:Ja.isShow},{key:{type:"structure",systemKey:sessionStorage.getItem("systemKey"),parentTable:"",pageKey:S.value},value:{pageData:R}}}return oe}},Oe=async(oe,D,ne)=>{var xe,ta,wa;let ve=await sa.getItemData(D,sessionStorage.getItem("systemKey"),""),se=ve==null?void 0:ve.find(Ia=>(Ia==null?void 0:Ia.name)===(ne==null?void 0:ne[0]));if(se){if((se==null?void 0:se.comp)==="Table"){let Ia={};for(let ze in L.cloneDeep(oe))L.cloneDeep(oe)[ze]!=="loginUser"?Ia[ze]=L.cloneDeep(oe)[ze]:Ia[ze]=((xe=x.value)==null?void 0:xe.account)||((ta=x.value)==null?void 0:ta.账号);let le=[],ra=Ia;Array.isArray(oe)||(ra=[Ia]),ra==null||ra.forEach(ze=>{le.push({[ze[ne[1]]]:ze})});let Ve=[],_a=le==null?void 0:le.map(ze=>{var Ge;return(Ge=Object.keys(ze))==null?void 0:Ge[0]});ve==null||ve.forEach(ze=>{var Ge;(ze==null?void 0:ze.name)===(ne==null?void 0:ne[0])&&((Ge=ze==null?void 0:ze.compData)==null||Ge.forEach(Ba=>{var Ja;(Ba==null?void 0:Ba.key)==="tableContents"&&((Ja=Ba==null?void 0:Ba.contents)==null||Ja.forEach(R=>{R!=null&&R.some(j=>_a.includes(j))&&Ve.push({[R.find(j=>j.id).id]:R.find(j=>_a.includes(j))})}))}))});let Fe=Ve==null?void 0:Ve.map(ze=>{var Ge;return(Ge=Object.keys(ze))==null?void 0:Ge[0]}),_e=[];if(Fe==null||Fe.forEach(ze=>{var Ja;let Ge=(Ja=Ve==null?void 0:Ve.find(R=>{var j;return((j=Object.keys(R))==null?void 0:j[0].toString())===ze.toString()}))==null?void 0:Ja[ze],Ba=le==null?void 0:le.find(R=>{var j;return((j=Object.keys(R))==null?void 0:j[0])===Ge});_e.push({id:parseInt(ze),value:{tableData:Ba[Ge]}})}),(_e==null?void 0:_e.length)>0)return _e}else if((se==null?void 0:se.comp)==="Form"){let Ia=L.cloneDeep(se);Ia.compData=(wa=Ia.compData)==null?void 0:wa.map(Ve=>{var _a;return(Ve==null?void 0:Ve.key)==="formContent"&&(Ve.contents=(_a=Ve.contents)==null?void 0:_a.map(Fe=>((Fe==null?void 0:Fe.key)===(ne==null?void 0:ne[1])&&(Fe.value=(oe==null?void 0:oe[Fe==null?void 0:Fe.prop])||oe),Fe))),Ve});let le={};for(let Ve in Ia)Ve!=="id"&&(le[Ve]=Ia[Ve]);let ra=[];if(ra.push({id:se==null?void 0:se.id,keyType:ne==null?void 0:ne[1],value:{pageData:le}}),(ra==null?void 0:ra.length)>0)return ra}}},we=async(oe,D,ne)=>{var xe,ta,wa,Ia,le,ra,Ve,_a,Fe,_e;let ve=await sa.getItemData(D,sessionStorage.getItem("systemKey"),""),se=ve==null?void 0:ve.find(ze=>(ze==null?void 0:ze.name)===(ne==null?void 0:ne[0]));if(se){if((se==null?void 0:se.comp)==="Table"){let ze={};for(let Ge in L.cloneDeep(oe))L.cloneDeep(oe)[Ge]!=="loginUser"?ze[Ge]=L.cloneDeep(oe)[Ge]:ze[Ge]=((xe=x.value)==null?void 0:xe.account)||((ta=x.value)==null?void 0:ta.账号);await hr.createInsofDataApi({key:{type:"data",pageKey:D,tableId:se==null?void 0:se.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:ze}})}else if((se==null?void 0:se.comp)==="Form"){let ze=L.cloneDeep(se),Ge=Object.keys(oe),Ba="";(Ia=(wa=L.cloneDeep(ze))==null?void 0:wa.compData)==null||Ia.forEach(K=>{var Ne,Q;(K==null?void 0:K.key)==="formContent"&&((Q=(Ne=L.cloneDeep(K))==null?void 0:Ne.contents)==null||Q.forEach(ke=>{var pe;Ge.includes(ke==null?void 0:ke.key)&&(ke==null?void 0:ke.value)===((pe=x.value)==null?void 0:pe.姓名)&&(Ba=ke==null?void 0:ke.key)}))});let Ja=[];(le=Object.values(oe[Ba]))==null||le.forEach(K=>{K!=null&&K.includes("(")&&Ja.push(K)}),Ja=[...new Set(Ja)];const R=Ja==null?void 0:Ja.map(async K=>{var je,Pe,ca,ka,Ie,fa,Re,Ca,Ue,ba,ce,xa;let Ne="";(fa=(Ie=(ka=(ca=(Pe=(je=L.cloneDeep(K))==null?void 0:je.split("("))==null?void 0:Pe[1])==null?void 0:ca.split(")"))==null?void 0:ka[0])==null?void 0:Ie.split(":"))==null||fa.forEach(ye=>{Ne=Ne===""?Ne+ye.replaceAll("'",""):Ne+"/"+ye.replaceAll("'","")});let Q=[];(xa=(ce=(ba=(Ue=(Ca=(Re=L.cloneDeep(K))==null?void 0:Re.split("<"))==null?void 0:Ca[1])==null?void 0:Ue.split(">"))==null?void 0:ba[0])==null?void 0:ce.split(":"))==null||xa.forEach(ye=>{Q.push(ye.replaceAll("'",""))});const ke=await sa.getItemData(Ne,sessionStorage.getItem("systemKey"),"");let pe="";return ke==null||ke.forEach(ye=>{var Da;ye.name===(Q==null?void 0:Q[0])&&((Da=ye==null?void 0:ye.compData)==null||Da.forEach(Ze=>{var Je;(Ze==null?void 0:Ze.key)==="formContent"&&((Je=Ze.contents)==null||Je.forEach(Ee=>{(Ee==null?void 0:Ee.key)===(Q==null?void 0:Q[1])&&(pe=Ee==null?void 0:Ee.value)}))}))}),{[K]:pe}}),j=await Promise.all(R);ze.compData=(Ve=(ra=L.cloneDeep(ze))==null?void 0:ra.compData)==null?void 0:Ve.map(K=>{var Ne,Q;return(K==null?void 0:K.key)==="formContent"&&(K.contents=(Q=(Ne=L.cloneDeep(K))==null?void 0:Ne.contents)==null?void 0:Q.map(ke=>{var pe,je,Pe,ca;return(pe=oe[Ba])!=null&&pe[ke==null?void 0:ke.key]&&(oe[Ba][ke==null?void 0:ke.key].includes("(")?ke.value=(je=j==null?void 0:j.find(ka=>{var Ie;return((Ie=Object.keys(ka))==null?void 0:Ie[0])===oe[Ba][ke==null?void 0:ke.key]}))==null?void 0:je[oe[Ba][ke==null?void 0:ke.key]]:ke.value=(ca=(Pe=L.cloneDeep(oe))==null?void 0:Pe[Ba])==null?void 0:ca[ke==null?void 0:ke.key]),ke})),K});const G=await hr.getInsofDataApi({key:{type:"structure",pageKey:D,systemKey:sessionStorage.getItem("systemKey")}});let V="";((_a=G==null?void 0:G.data)==null?void 0:_a.type)==="success"&&((_e=(Fe=G==null?void 0:G.data)==null?void 0:Fe.result)==null||_e.forEach(K=>{var Ne,Q;((Q=(Ne=K==null?void 0:K.value)==null?void 0:Ne.pageData)==null?void 0:Q.name)===(ne==null?void 0:ne[0])&&(V=K.id)}),await hr.updateInsofDataApi({id:V,value:{pageData:ze}}))}}},te=(oe,D="",ne={})=>{for(const[ve,se]of Object.entries(oe)){const xe=D?`${D}.${ve}`:ve;se!==null&&typeof se=="object"&&!Array.isArray(se)&&Object.prototype.toString.call(se)!=="[object Date]"?te(se,xe,ne):ne[xe]=se}return ne},me=async(oe,D,ne,ve)=>{var ta,wa,Ia,le,ra,Ve,_a,Fe,_e,ze,Ge,Ba,Ja,R,j,G,V,K,Ne,Q,ke,pe,je,Pe,ca;let se=await sa.getItemData(D,sessionStorage.getItem("systemKey"),""),xe=se==null?void 0:se.find(ka=>(ka==null?void 0:ka.name)===(ne==null?void 0:ne[0]));if(xe){if(!(ne!=null&&ne[1])&&(xe==null?void 0:xe.comp)==="Table"){let ka={},Ie=[],fa=(wa=(ta=xe==null?void 0:xe.compData)==null?void 0:ta.find(Ue=>(Ue==null?void 0:Ue.key)==="header"))==null?void 0:wa.contents;fa!=null&&fa.every(Ue=>Array.isArray(Ue))?Ie=(le=sa.getColumnChild((Ia=fa==null?void 0:fa[0])==null?void 0:Ia.filter(Ue=>(Ue==null?void 0:Ue.label)!=="操作")))==null?void 0:le.map(Ue=>Ue==null?void 0:Ue.prop):Ie=fa==null?void 0:fa.map(Ue=>Ue==null?void 0:Ue.label);for(let Ue in L.cloneDeep(oe))if(L.cloneDeep(oe)[Ue]!=="loginUser"){let ba=te(L.cloneDeep(oe)[Ue]),ce={};for(let xa in ba)if(Ie!=null&&Ie.find(ye=>ye===xa))ce[xa]=ba[xa];else if(Ie!=null&&Ie.find(ye=>(ye==null?void 0:ye.toUpperCase())===(xa==null?void 0:xa.toUpperCase()))){let ye=Ie==null?void 0:Ie.find(Da=>(Da==null?void 0:Da.toUpperCase())===(xa==null?void 0:xa.toUpperCase()));ce[ye]=ba[xa]}ka[Ue]=ce}else ka[Ue]=((ra=x.value)==null?void 0:ra.account)||((Ve=x.value)==null?void 0:Ve.账号);let Re=await hr.getInsofDataApi({keyLikes:{tableId:xe==null?void 0:xe.id}});if(((Fe=(_a=Re==null?void 0:Re.data)==null?void 0:_a.result)==null?void 0:Fe.length)>0){let Ue=(ze=(_e=Re==null?void 0:Re.data)==null?void 0:_e.result)==null?void 0:ze.map(ba=>ba==null?void 0:ba.id);(Ue==null?void 0:Ue.length)>0&&await hr.batchDeleteInsofDataApi({ids:Ue})}let Ca=[];if((Ge=xe==null?void 0:xe.compData)!=null&&Ge.find(Ue=>(Ue==null?void 0:Ue.key)==="pageColumn")&&((R=(Ja=(Ba=xe==null?void 0:xe.compData)==null?void 0:Ba.find(Ue=>(Ue==null?void 0:Ue.key)==="pageColumn"))==null?void 0:Ja.contents)!=null&&R.includes("["))){const Ue=await hr.getInsofDataApi({id:xe==null?void 0:xe.tableId});let ba=((K=(V=(G=(j=Ue==null?void 0:Ue.data)==null?void 0:j.result)==null?void 0:G[0])==null?void 0:V.key)==null?void 0:K.pageKey)??"";(Ne=Object.values(ka))==null||Ne.forEach(ce=>{Ca.push({key:{type:"data",pageKey:ba,tableId:xe==null?void 0:xe.tableId,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:ce}})})}else(Q=Object.values(ka))==null||Q.forEach(Ue=>{Ca.push({key:{type:"data",pageKey:D,tableId:xe==null?void 0:xe.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:Ue}})});(Ca==null?void 0:Ca.length)>0&&await hr.batchAddInsofDataApi({dataList:Ca})}else if(!(ne!=null&&ne[1])&&(xe==null?void 0:xe.comp)==="Form"){let ka=L.cloneDeep(xe);ka.compData=(pe=(ke=L.cloneDeep(ka))==null?void 0:ke.compData)==null?void 0:pe.map(Re=>{var Ca,Ue;return(Re==null?void 0:Re.key)==="formContent"&&(Re.contents=(Ue=(Ca=L.cloneDeep(Re))==null?void 0:Ca.contents)==null?void 0:Ue.map(ba=>{var ce,xa;return(ce=L.cloneDeep(oe))!=null&&ce[ba==null?void 0:ba.key]&&(ba.value=(xa=L.cloneDeep(oe))==null?void 0:xa[ba==null?void 0:ba.key]),ba})),Re});const Ie=await hr.getInsofDataApi({key:{type:"structure",pageKey:D,systemKey:sessionStorage.getItem("systemKey")}});let fa="";((je=Ie==null?void 0:Ie.data)==null?void 0:je.type)==="success"&&((ca=(Pe=Ie==null?void 0:Ie.data)==null?void 0:Pe.result)==null||ca.forEach(Re=>{var Ca,Ue;((Ue=(Ca=Re==null?void 0:Re.value)==null?void 0:Ca.pageData)==null?void 0:Ue.name)===(ne==null?void 0:ne[0])&&(fa=Re.id)}),await hr.updateInsofDataApi({id:fa,value:{pageData:ka}}))}}},J=async oe=>{var D,ne,ve,se,xe,ta,wa,Ia,le,ra,Ve,_a,Fe,_e;E.setImportLoading(!0);try{if(oe.api){let ze=new WeakMap,Ge=await sa.getItemData((T==null?void 0:T.value)===""?S.value:T==null?void 0:T.value,sessionStorage.getItem("systemKey"),"",!1,"","",ze),Ba="";if(Ge=Ge==null?void 0:Ge.map(Q=>{var ke,pe,je,Pe,ca,ka,Ie,fa,Re,Ca,Ue,ba;if((Q==null?void 0:Q.comp)==="Form")Q.compData=(ke=Q.compData)==null?void 0:ke.map(ce=>{var xa;return(ce==null?void 0:ce.key)==="formContent"&&(ce.contents=(xa=ce.contents)==null?void 0:xa.map(ye=>{var Da;if((ye==null?void 0:ye.value)===""&&(ye==null?void 0:ye.type)==="Select"){let Ze=sa.judgeContents((Da=L.cloneDeep(ye))==null?void 0:Da.optionUrl,ze);ye.value=ye.value||Ze}return ye})),ce});else if((Q==null?void 0:Q.comp)==="Table"&&(pe=Q.compData)!=null&&pe.find(ce=>(ce==null?void 0:ce.key)==="pageColumn")){let ce=(Pe=(je=Q.compData)==null?void 0:je.find(Ze=>(Ze==null?void 0:Ze.key)==="pageColumn"))==null?void 0:Pe.contents,xa=((ka=(ca=Q.compData)==null?void 0:ca.find(Ze=>(Ze==null?void 0:Ze.key)==="pageGroup"))==null?void 0:ka.contents)??"",ye=(Re=(fa=(Ie=ce==null?void 0:ce.split("["))==null?void 0:Ie[1])==null?void 0:fa.split("]"))==null?void 0:Re[0];Ba=((Ca=ce==null?void 0:ce.split("["))==null?void 0:Ca[0])+((ba=(Ue=_.value)==null?void 0:Ue.find(Ze=>(Ze==null?void 0:Ze.key)===ye))==null?void 0:ba.value)}return Q}),!(Ba===""||Ba==="")){const Q=await sa.getItemData(Ba,sessionStorage.getItem("systemKey"),"",!1,"","",ze);Ge=Ge==null?void 0:Ge.map(ke=>{var pe,je,Pe,ca,ka,Ie,fa,Re,Ca,Ue,ba,ce,xa;if((ke==null?void 0:ke.comp)==="Table"&&(pe=ke.compData)!=null&&pe.find(ye=>(ye==null?void 0:ye.key)==="pageColumn")){let ye=(Pe=(je=ke.compData)==null?void 0:je.find(be=>(be==null?void 0:be.key)==="pageColumn"))==null?void 0:Pe.contents,Da=((ka=(ca=ke.compData)==null?void 0:ca.find(be=>(be==null?void 0:be.key)==="pageGroup"))==null?void 0:ka.contents)??"",Ze=(Re=(fa=(Ie=ye==null?void 0:ye.split("["))==null?void 0:Ie[1])==null?void 0:fa.split("]"))==null?void 0:Re[0],Je=((Ca=ye==null?void 0:ye.split("["))==null?void 0:Ca[0])+((ba=(Ue=_.value)==null?void 0:Ue.find(be=>(be==null?void 0:be.key)===Ze))==null?void 0:ba.value),Ee=(ce=Q==null?void 0:Q.find(be=>(be==null?void 0:be.name)===(Da===""?s==null?void 0:s.compName:Da)))==null?void 0:ce.compData;ke.compData=(xa=ke.compData)==null?void 0:xa.map(be=>{var Se;return(be==null?void 0:be.key)==="tableContents"&&(be.contents=(Se=Ee==null?void 0:Ee.find(ha=>(ha==null?void 0:ha.key)==="tableContents"))==null?void 0:Se.contents),be})}return ke})}let Ja={};if(((ne=(D=oe==null?void 0:oe.extraValues)==null?void 0:D.input)==null?void 0:ne.length)>0){const Q=(se=(ve=oe==null?void 0:oe.extraValues)==null?void 0:ve.input)==null?void 0:se.map(async ke=>{var pe;ue!=null&&ue.find(je=>je===ke)?Ja=await ge(ke,Ge):Ja[Object.keys(ke)[0]]=await ge((pe=Object.values(ke))==null?void 0:pe[0],Ge,ze)});await Promise.all(Q)}else Ja=await ge("/",Ge);let R=!1;(ta=(xe=oe==null?void 0:oe.extraValues)==null?void 0:xe.output)==null||ta.forEach(Q=>{var ke,pe;(pe=(ke=Object.values(Q))==null?void 0:ke[0])!=null&&pe.includes(".doc")&&(R=!0)});let j;if(R){const Q=L.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});j=await Wa.axios.post(oe.api,Ja,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{Q.close()})}else j=await Wa.axios.post(oe.api,Ja,{headers:{"Content-Type":"application/json"}});let G=(ra=(le=(Ia=(wa=L.cloneDeep(oe))==null?void 0:wa.extraValues)==null?void 0:Ia.output)==null?void 0:le.map(Q=>{var ke,pe,je,Pe,ca,ka,Ie,fa,Re,Ca,Ue,ba,ce,xa,ye,Da;if(!((pe=(ke=Object.values(Q))==null?void 0:ke[0])!=null&&pe.includes(".doc"))){let Ze=(Ca=(Re=(fa=(Pe=L.cloneDeep((je=Object.values(Q))==null?void 0:je[0]))==null?void 0:Pe.split("["))==null?void 0:fa[((Ie=(ka=L.cloneDeep((ca=Object.values(Q))==null?void 0:ca[0]))==null?void 0:ka.split("["))==null?void 0:Ie.length)-1])==null?void 0:Re.split("]"))==null?void 0:Ca[0],Je=Ze==null?void 0:Ze.split(":"),Ee=(ce=L.cloneDeep((Ue=Object.values(Q))==null?void 0:Ue[0]))==null?void 0:ce.substring(0,L.cloneDeep((ba=Object.values(Q))==null?void 0:ba[0]).lastIndexOf("["));if(Ee=(ye=L.cloneDeep(Ee))==null?void 0:ye.slice(0,((xa=L.cloneDeep(Ee))==null?void 0:xa.length)-1),Ee!=null&&Ee.includes("[")){let be="";if((Da=sa.contentTransArrayToAll(Ee,"/"))==null||Da.forEach(Se=>{var ha,oa,Qa,Dl,Ol,Za,qe;if(!(Se!=null&&Se.includes("[")))be=be===""?be+Se.replaceAll("/",""):be+"/"+Se.replaceAll("/","");else{let $e=L.cloneDeep(Se).slice(1,((ha=L.cloneDeep(Se))==null?void 0:ha.length)-1),ua=(Za=(Ol=(Dl=(Qa=(oa=L.cloneDeep($e))==null?void 0:oa.split("["))==null?void 0:Qa[1])==null?void 0:Dl.split("]"))==null?void 0:Ol[0])==null?void 0:Za.split(":"),Qe="",Ta=(qe=Ge==null?void 0:Ge.find(Fa=>(Fa==null?void 0:Fa.name)===(ua==null?void 0:ua[0])))==null?void 0:qe.compData;Ta==null||Ta.forEach(Fa=>{var Ea;(Fa==null?void 0:Fa.key)==="formContent"&&((Ea=Fa==null?void 0:Fa.contents)==null||Ea.forEach(Ce=>{(Ce==null?void 0:Ce.key)===(ua==null?void 0:ua[1])&&(Qe=Ce==null?void 0:Ce.value)}))}),be=be===""?be+Qe.replaceAll("/",""):be+"/"+Qe.replaceAll("/","")}}),Ee=be,Ee[(Ee==null?void 0:Ee.length)-1]!=="/")return Ee}}}))==null?void 0:ra.filter(Q=>Q);G=[...new Set(L.cloneDeep(G))];let V=G==null?void 0:G.map(async Q=>{let ke=await sa.getItemData(Q,sessionStorage.getItem("systemKey"),"",!1,"","",ze);if((ke==null?void 0:ke.length)===0)return await sa.getParentContents(Q)});await Promise.all(V);let K=[],Ne=(Fe=(_a=(Ve=L.cloneDeep(oe))==null?void 0:Ve.extraValues)==null?void 0:_a.output)==null?void 0:Fe.map(async Q=>{var fa,Re,Ca,Ue,ba,ce,xa,ye,Da,Ze,Je,Ee,be,Se,ha,oa,Qa,Dl,Ol,Za,qe,$e,ua,Qe,Ta,Fa,Ea,Ce,q,Le,Xe,Oa,$a,_l,cl,nl,ml,sl,tl,Pa,hl,xl,jl,Xl,lr,Il,kr,pr,Ir,Lr,cn,gn,bn,un,dn,pn,nr,Dr,Cr,kn,xr,tr,tt,rn,nn,Nn,ot,Tn,An,Qr;if((Re=(fa=Object.values(Q))==null?void 0:fa[0])!=null&&Re.includes(".doc")){var ke=new Blob([j.data],{type:"application/octet-stream;charset=UTF-8"}),pe=j.headers["content-disposition"],je=new RegExp("filename=([^;]+\\.[^\\.;]+);*"),Pe=je.exec(pe),ca=Pe==null?void 0:Pe[1],ka=document.createElement("a"),Ie=window.URL.createObjectURL(ke);k.value=[{name:ca,blobUrl:Ie}],u.value=!0}else{let Hn=(Ze=(Da=(ye=(Ue=L.cloneDeep((Ca=Object.values(Q))==null?void 0:Ca[0]))==null?void 0:Ue.split("["))==null?void 0:ye[((xa=(ce=L.cloneDeep((ba=Object.values(Q))==null?void 0:ba[0]))==null?void 0:ce.split("["))==null?void 0:xa.length)-1])==null?void 0:Da.split("]"))==null?void 0:Ze[0],Bl=Hn==null?void 0:Hn.split(":"),yr=(be=L.cloneDeep((Je=Object.values(Q))==null?void 0:Je[0]))==null?void 0:be.substring(0,L.cloneDeep((Ee=Object.values(Q))==null?void 0:Ee[0]).lastIndexOf("["));if(yr!=null&&yr.includes("[")?yr=(ha=L.cloneDeep(yr))==null?void 0:ha.slice(0,((Se=L.cloneDeep(yr))==null?void 0:Se.length)-1):yr===""&&(yr=S.value),yr=yr.replaceAll("<","[").replaceAll(">","]"),yr!=null&&yr.includes("[")){let Al="";(oa=sa.contentTransArrayToAll(yr,"/"))==null||oa.forEach((Ml,Vl)=>{var fr,Zl,Vr,zr,Hr,xn,wn,Mn,it,fn,_n;if(!(Ml!=null&&Ml.includes("[")))Al=Al===""?Al+Ml.replaceAll("/",""):Al+"/"+Ml.replaceAll("/","");else{let zn="",Ur="";(fr=L.cloneDeep(Ml))!=null&&fr.includes("]")?(zn=L.cloneDeep(Ml).slice(1,((Zl=L.cloneDeep(Ml))==null?void 0:Zl.length)-1),Ur=(wn=(xn=(Hr=(zr=(Vr=L.cloneDeep(zn))==null?void 0:Vr.split("["))==null?void 0:zr[1])==null?void 0:Hr.split("]"))==null?void 0:xn[0])==null?void 0:wn.split(":")):(zn=L.cloneDeep(Ml).slice(1,(Mn=L.cloneDeep(Ml))==null?void 0:Mn.length),Ur=(it=L.cloneDeep(zn))==null?void 0:it.split("/"));let en="",Un=(fn=Ge==null?void 0:Ge.find(Br=>(Br==null?void 0:Br.name)===(Ur==null?void 0:Ur[0])))==null?void 0:fn.compData;Un==null||Un.forEach(Br=>{var qn;(Br==null?void 0:Br.key)==="formContent"&&((qn=Br==null?void 0:Br.contents)==null||qn.forEach(tn=>{(tn==null?void 0:tn.key)===(Ur==null?void 0:Ur[1])&&(en=tn==null?void 0:tn.value)}))}),((_n=sa.contentTransArrayToAll(yr,"/"))==null?void 0:_n.length)-1!==Vl?Al=Al===""?Al+en.replaceAll("/",""):Al+"/"+en.replaceAll("/",""):Al=Al+t.value+en.replaceAll("/","")}}),(Qa=S.value)!=null&&Qa.includes(Al)?yr=S.value:yr=Al}let Gl=L.cloneDeep((Dl=Object.keys(Q))==null?void 0:Dl[0]);if(((Ol=j==null?void 0:j.data)==null?void 0:Ol.statusCode)===200||((Za=j==null?void 0:j.data)==null?void 0:Za.code)===200){if((($e=(qe=j==null?void 0:j.data)==null?void 0:qe.data)!=null&&$e[Gl]||(Qe=(ua=j==null?void 0:j.data)==null?void 0:ua.result)!=null&&Qe[Gl])&&(Bl==null?void 0:Bl.length)===1)return await me(((Fa=(Ta=j==null?void 0:j.data)==null?void 0:Ta.data)==null?void 0:Fa[Gl])||((Ce=(Ea=j==null?void 0:j.data)==null?void 0:Ea.result)==null?void 0:Ce[Gl]),L.cloneDeep(yr),Bl,Ba);if((Le=(q=j==null?void 0:j.data)==null?void 0:q.data)!=null&&Le[Gl]||(Oa=(Xe=j==null?void 0:j.data)==null?void 0:Xe.result)!=null&&Oa[Gl]){let Al=await Oe(((_l=($a=j==null?void 0:j.data)==null?void 0:$a.data)==null?void 0:_l[Gl])||((nl=(cl=j==null?void 0:j.data)==null?void 0:cl.result)==null?void 0:nl[Gl]),L.cloneDeep(yr),Bl);return Al&&(K=[...K,...Al]),Al}else{if(!((ml=j==null?void 0:j.data)!=null&&ml.data)){let Al=await sa.getItemData(S.value,sessionStorage.getItem("systemKey"),"",!1,"","",ze);Al=Al==null?void 0:Al.map(Vl=>{var fr;return(Vl==null?void 0:Vl.name)===(Bl==null?void 0:Bl[0])&&(Vl.compData=(fr=Vl.compData)==null?void 0:fr.map(Zl=>{var Vr;return(Zl==null?void 0:Zl.key)==="formContent"&&(Zl.contents=(Vr=Zl.contents)==null?void 0:Vr.map(zr=>{var Hr,xn;return(zr==null?void 0:zr.key)===(Bl==null?void 0:Bl[1])&&(zr.value=(xn=(Hr=j==null?void 0:j.data)==null?void 0:Hr.result)==null?void 0:xn[Gl==null?void 0:Gl.replaceAll(":","")]),zr})),Zl})),Vl});let Ml=[];(sl=Al==null?void 0:Al.filter(Vl=>(Vl==null?void 0:Vl.comp)==="Form"))==null||sl.forEach(async Vl=>{let fr={};for(let Zl in Vl)Zl!=="id"&&(fr[Zl]=Vl[Zl]);Ml.push({id:Vl==null?void 0:Vl.id,value:{pageData:fr}})}),(Ml==null?void 0:Ml.length)>0&&await hr.batchUpdateInsofDataApi({dataList:Ml});return}if((Bl==null?void 0:Bl.length)===1){const Al=(hl=(Pa=(tl=j==null?void 0:j.data)==null?void 0:tl.data)==null?void 0:Pa.path)==null?void 0:hl.path;let Ml="";(Il=(lr=(Xl=(jl=(xl=Al==null?void 0:Al.split("("))==null?void 0:xl[1])==null?void 0:jl.split(")"))==null?void 0:Xl[0])==null?void 0:lr.split(":"))==null||Il.forEach(Zl=>{var Vr,zr;Ml=Ml===""?Ml+((Vr=Zl==null?void 0:Zl.replaceAll("'",""))==null?void 0:Vr.trim()):Ml+"/"+((zr=Zl==null?void 0:Zl.replaceAll("'",""))==null?void 0:zr.trim())});let Vl=[(cn=(Lr=(Ir=(pr=(kr=Al==null?void 0:Al.split("<"))==null?void 0:kr[1])==null?void 0:pr.split(">"))==null?void 0:Ir[0])==null?void 0:Lr.replaceAll("'",""))==null?void 0:cn.trim()],fr;return(un=(bn=(gn=j==null?void 0:j.data)==null?void 0:gn.data)==null?void 0:bn.data)!=null&&un[Bl==null?void 0:Bl[0]]?fr=await me((nr=(pn=(dn=j==null?void 0:j.data)==null?void 0:dn.data)==null?void 0:pn.data)==null?void 0:nr[Bl==null?void 0:Bl[0]],Ml,Bl,Ba):fr=await we((Cr=(Dr=j==null?void 0:j.data)==null?void 0:Dr.data)==null?void 0:Cr.data,Ml,Vl,ze),fr}else{const Al=(tr=(xr=(kn=j==null?void 0:j.data)==null?void 0:kn.data)==null?void 0:xr.path)==null?void 0:tr.path;let Ml="";return(ot=(Nn=(nn=(rn=(tt=Al==null?void 0:Al.split("("))==null?void 0:tt[1])==null?void 0:rn.split(")"))==null?void 0:nn[0])==null?void 0:Nn.split(":"))==null||ot.forEach(fr=>{var Zl,Vr;Ml=Ml===""?Ml+((Zl=fr==null?void 0:fr.replaceAll("'",""))==null?void 0:Zl.trim()):Ml+"/"+((Vr=fr==null?void 0:fr.replaceAll("'",""))==null?void 0:Vr.trim())}),await Oe((Qr=(An=(Tn=j==null?void 0:j.data)==null?void 0:Tn.data)==null?void 0:An.data)==null?void 0:Qr[Bl==null?void 0:Bl[0]],Ml,Bl)}}}}});if(await Promise.all(Ne),(K==null?void 0:K.length)>0){let Q=[];K==null||K.forEach(je=>{Q!=null&&Q.find(Pe=>{var ca,ka,Ie,fa;return((ka=(ca=Pe==null?void 0:Pe.value)==null?void 0:ca.pageData)==null?void 0:ka.name)===((fa=(Ie=je==null?void 0:je.value)==null?void 0:Ie.pageData)==null?void 0:fa.name)})||Q.push(je)});let ke=[];Q==null||Q.forEach(je=>{var ka,Ie,fa,Re;let Pe=L.cloneDeep(je);Pe.value.pageData.compData=(ka=Pe.value.pageData.compData)==null?void 0:ka.map(Ca=>{var Ue;return(Ca==null?void 0:Ca.key)==="formContent"&&(Ca.contents=(Ue=Ca.contents)==null?void 0:Ue.map(ba=>{var xa,ye,Da,Ze;let ce=(xa=L.cloneDeep(K))==null?void 0:xa.find(Je=>(Je==null?void 0:Je.keyType)===(ba==null?void 0:ba.key));if(ce){let Je=(Ze=(Da=(ye=ce.value.pageData.compData)==null?void 0:ye.find(Ee=>(Ee==null?void 0:Ee.key)==="formContent"))==null?void 0:Da.contents)==null?void 0:Ze.find(Ee=>(Ee==null?void 0:Ee.key)===(ba==null?void 0:ba.key));ba.value=Je==null?void 0:Je.value}return ba})),Ca}),ke.push({id:Pe==null?void 0:Pe.id,value:Pe==null?void 0:Pe.value});let ca=[];(Re=(fa=(Ie=Pe==null?void 0:Pe.value)==null?void 0:Ie.pageData)==null?void 0:fa.compData)==null||Re.forEach(Ca=>{var Ue;(Ca==null?void 0:Ca.key)==="formContent"&&((Ue=Ca==null?void 0:Ca.contents)==null||Ue.forEach(ba=>{var ce,xa,ye,Da,Ze,Je;if((xa=(ce=ba==null?void 0:ba.optionUrl)==null?void 0:ce.menuSelect)!=null&&xa.find(Ee=>Ee==null?void 0:Ee.includes("[")))if(ca!=null&&ca.find(Ee=>{var be,Se,ha;return((be=Ee==null?void 0:Ee.key)==null?void 0:be.join(","))===((ha=(Se=ba==null?void 0:ba.optionUrl)==null?void 0:Se.menuSelect)==null?void 0:ha.join(","))})){let Ee=(ye=ca==null?void 0:ca.find(be=>{var Se,ha,oa;return((Se=be==null?void 0:be.key)==null?void 0:Se.join(","))===((oa=(ha=ba==null?void 0:ba.optionUrl)==null?void 0:ha.menuSelect)==null?void 0:oa.join(","))}))==null?void 0:ye.value;Ee.push({key:ba==null?void 0:ba.prop,groups:(Da=ba==null?void 0:ba.optionUrl)==null?void 0:Da.groupSelect,value:ba==null?void 0:ba.value}),ca=ca==null?void 0:ca.map(be=>{var Se,ha,oa;return((Se=be==null?void 0:be.key)==null?void 0:Se.join(","))===((oa=(ha=ba==null?void 0:ba.optionUrl)==null?void 0:ha.menuSelect)==null?void 0:oa.join(","))&&(be.value=Ee),be})}else ca.push({key:(Ze=ba==null?void 0:ba.optionUrl)==null?void 0:Ze.menuSelect,value:[{key:ba==null?void 0:ba.prop,groups:(Je=ba==null?void 0:ba.optionUrl)==null?void 0:Je.groupSelect,value:ba==null?void 0:ba.value}]})}))}),(ca==null?void 0:ca.length)>0&&(ca=ca==null?void 0:ca.map(Ca=>{var ba;let Ue="";return(ba=Ca==null?void 0:Ca.key)==null||ba.forEach(ce=>{var xa;if(!(ce!=null&&ce.includes("[")))Ue=Ue===""?Ue+ce:Ue+"/"+ce;else{let ye="",Da=(xa=ce==null?void 0:ce.replaceAll("[","").replaceAll("]",""))==null?void 0:xa.split(":");Ge==null||Ge.forEach(Ze=>{var Je;(Ze==null?void 0:Ze.name)===(Da==null?void 0:Da[0])&&((Je=Ze==null?void 0:Ze.compData)==null||Je.forEach(Ee=>{var be;(Ee==null?void 0:Ee.key)==="formContent"&&((be=Ee==null?void 0:Ee.contents)==null||be.forEach(Se=>{(Se==null?void 0:Se.prop)===(Da==null?void 0:Da[1])&&(ye=Se==null?void 0:Se.value)}))}))}),Ue=Ue+t.value+ye}}),Ca.key=Ue,Ca})),ca==null||ca.forEach(Ca=>{var xa,ye,Da;let Ue=(xa=ze[Ca.key])==null?void 0:xa.find(Ze=>{var Je,Ee,be,Se,ha,oa,Qa;return((Ee=(Je=Ze==null?void 0:Ze.value)==null?void 0:Je.pageData)==null?void 0:Ee.name)===((ha=(Se=(be=Ca==null?void 0:Ca.value)==null?void 0:be[0])==null?void 0:Se.groups)==null?void 0:ha[0])&&((Qa=(oa=Ze==null?void 0:Ze.value)==null?void 0:oa.pageData)==null?void 0:Qa.name)!==void 0}),ba=Ue==null?void 0:Ue.id,ce=(ye=Ue==null?void 0:Ue.value)==null?void 0:ye.pageData;ce.compData=(Da=ce.compData)==null?void 0:Da.map(Ze=>{var Je;return(Ze==null?void 0:Ze.key)==="formContent"&&(Ze.contents=(Je=Ze.contents)==null?void 0:Je.map(Ee=>{var Se;let be=(Se=Ca.value)==null?void 0:Se.find(ha=>(ha==null?void 0:ha.key)===(Ee==null?void 0:Ee.prop));return be&&(Ee.value=be.value),Ee})),Ze}),ke.push({id:ba,value:{pageData:ce}})})});let pe=(_e=L.cloneDeep(K))==null?void 0:_e[0];(ke==null?void 0:ke.length)>0&&await hr.batchUpdateInsofDataApi({dataList:ke})}y.setFreshContent(!0)}E.setImportLoading(!1)}catch{Wa.ElMessage.error("方法执行错误,请查看方法!"),E.setImportLoading(!1)}g.value=!0},ue=["createInsofDataApi"],Ye=mi(async oe=>{J(oe)},100),Sa=async oe=>{var ta,wa,Ia;const D=L.cloneDeep(oe);let ne,ve=new WeakMap;oe!=null&&oe[0].path&&(ne=await(D==null?void 0:D.map(async(le,ra)=>{var Ja,R,j,G,V,K,Ne,Q,ke,pe,je,Pe,ca,ka,Ie,fa;const _a=(Ja=ve[le==null?void 0:le.path])==null?void 0:Ja.filter(Re=>{var Ca;return((Ca=Re==null?void 0:Re.key)==null?void 0:Ca.type)==="data"});let Fe="";const _e=await sa.getItemData(S.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,ve);_a==null||_a.forEach(Re=>{var Ca,Ue,ba,ce,xa;((Ue=(Ca=Re==null?void 0:Re.value)==null?void 0:Ca.tableData)==null?void 0:Ue.算法名称)===((ba=D==null?void 0:D[ra])==null?void 0:ba.method)&&(Fe=(xa=(ce=Re==null?void 0:Re.value)==null?void 0:ce.tableData)==null?void 0:xa.算法体)});const ze=await sa.getItemData(le==null?void 0:le.path,sessionStorage.getItem("systemKey"),"",!1,[],!1,ve);let Ge="",Ba=(V=(G=(j=(R=ze==null?void 0:ze[0])==null?void 0:R.compData)==null?void 0:j.find(Re=>(Re==null?void 0:Re.key)==="header"))==null?void 0:G.contents)==null?void 0:V.findIndex(Re=>(Re==null?void 0:Re.prop)==="算法体");return(Ne=(K=ze==null?void 0:ze[0])==null?void 0:K.compData)==null||Ne.forEach(Re=>{var Ca;(Re==null?void 0:Re.key)==="tableContents"&&((Ca=Re==null?void 0:Re.contents)==null||Ca.forEach(Ue=>{Ue!=null&&Ue.find(ba=>ba===(le==null?void 0:le.method))&&(Ge=Ue[Ba])}))}),{buttonName:((Q=D==null?void 0:D[ra])==null?void 0:Q.method)||((je=(pe=(ke=_a==null?void 0:_a[0])==null?void 0:ke.value)==null?void 0:pe.tableData)==null?void 0:je.算法名称),api:(Fe===""?(ka=(ca=(Pe=_a==null?void 0:_a[0])==null?void 0:Pe.value)==null?void 0:ca.tableData)==null?void 0:ka.算法体:Fe)||Ge,content:_e==null?void 0:_e.filter(Re=>Re.comp!=="methodButton"),extraContent:(Ie=L.cloneDeep(le.value))==null?void 0:Ie.slice(1),methodName:(le==null?void 0:le.path)??"",extraValues:(fa=D==null?void 0:D[ra])==null?void 0:fa.data}})));const se=D==null?void 0:D.map(async le=>{var ze,Ge,Ba,Ja,R,j;const ra=(ze=resAll.data.result)==null?void 0:ze.filter(G=>{var V,K,Ne;return((V=G==null?void 0:G.key)==null?void 0:V.parentTable)===""&&((K=G==null?void 0:G.key)==null?void 0:K.type)==="method"&&((Ne=G==null?void 0:G.key)==null?void 0:Ne.methodName)===G.method}),Ve=ra==null?void 0:ra[0],_a=(Ge=resAll.data.result)==null?void 0:Ge.filter(G=>{var V,K;return((V=G==null?void 0:G.key)==null?void 0:V.type)==="methodData"&&((K=G==null?void 0:G.key)==null?void 0:K.tableId)===(Ve==null?void 0:Ve.id)}),Fe=await sa.getItemData(S.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,ve),_e=_a==null?void 0:_a[0];return{buttonName:(Ba=Ve==null?void 0:Ve.key)==null?void 0:Ba.methodKey,api:(R=(Ja=_e==null?void 0:_e.value)==null?void 0:Ja.tableData)==null?void 0:R[0],content:Fe==null?void 0:Fe.filter(G=>G.comp!=="methodButton"),extraContent:(j=L.cloneDeep(le.value))==null?void 0:j.slice(1),methodName:(le==null?void 0:le.method)??""}}),xe=(ta=oe==null?void 0:oe[0])!=null&&ta.path&&((wa=oe==null?void 0:oe[0])==null?void 0:wa.path)!==""?await Promise.all(ne):await Promise.all(se);n.value=xe==null?void 0:xe.filter(le=>le==null?void 0:le.extraContent),(Ia=n.value)==null||Ia.forEach(le=>{var ra;le.api===""&&((ra=le.content)==null||ra.forEach(Ve=>{var _a;Ve.comp=="Table"&&y.setExtraContents(sa.methodTableToContent(Ve.compData,(_a=le.extraContent)==null?void 0:_a[0]))}))})};return a.watch(()=>s.itemData,async()=>{w.value=="view"&&!g.value&&await Sa(L.cloneDeep(s.itemData)),g.value=!1},{immediate:!0,deep:!0}),(oe,D)=>{var ne,ve,se;return a.unref(w)!=="edit"?(a.openBlock(),a.createElementBlock("div",b2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((ne=n.value)==null?void 0:ne.filter(xe=>(xe==null?void 0:xe.buttonName)!=="保存"),xe=>{var ta;return a.openBlock(),a.createElementBlock("div",null,[xe.api!==""?(a.openBlock(),a.createBlock(a.unref(Wi._sfc_main),{key:0,disabled:a.unref(A)===a.unref(S)&&!((ta=xe==null?void 0:xe.buttonName)!=null&&ta.includes("预览")),class:"calculator-content",modelValue:xe.buttonName,onClickTrigger:wa=>a.unref(Ye)(xe),loading:c.value},null,8,["disabled","modelValue","onClickTrigger","loading"])):a.createCommentVNode("",!0)])}),256)),a.createElementVNode("div",null,[a.unref(Y)!==""&&((se=a.unref(S))==null?void 0:se[((ve=a.unref(S))==null?void 0:ve.length)-1])!==a.unref(t)?(a.openBlock(),a.createBlock(a.unref(Wi._sfc_main),{key:0,class:"calculator-content",onClickTrigger:H,modelValue:"保存"})):a.createCommentVNode("",!0)]),u.value?(a.openBlock(),a.createBlock(rl.ssFilePreview,{key:0,fileDataList:k.value,onDestroy:W},null,8,["fileDataList"])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)}}},x2=Fl._export_sfc(k2,[["__scopeId","data-v-063aa9af"]]),w2={};function _2(l,n){return" 567 "}const C2=Fl._export_sfc(w2,[["render",_2]]),E2={class:"module content"},S2={class:"module data"},D2={class:"module layout"},B2={class:"form-content"},N2=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,t=n,s=a.reactive({visible:!1,width:"40%",title:"签名配置"}),u=a.ref("create"),k=a.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),f=a.ref([{label:"宽度(%):",prop:"signPadWidth",type:"number",value:"30"},{label:"弹窗名称:",prop:"dialogTitle",type:"input",value:""},{label:"弹窗宽度(%):",prop:"dialogWidth",type:"number",value:"30"},{label:"弹窗显示:",prop:"dialogShow",type:"radio",contents:[{label:"显示",value:!0},{label:"隐藏",value:!1}],value:!1,isFormColHidden:!0},{label:"路径:",prop:"url",type:"input",value:"",isFormColHidden:!0}]),v=a.computed(()=>[{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"类型:",prop:"label",type:"select",contents:[{label:"电子签名",value:"电子签名"},{label:"签字版",value:"签字版"},{label:"上传签名",value:"上传签名"}],value:""},{label:"图标",prop:"icon",type:"inputPopover",value:""}]),y=a.ref({}),c=a.ref([]),E=()=>({comp:"Signature",compData:[{key:"signTypeList",contents:c.value},{key:"signConfig",contents:y.value}]}),N=_=>{var A;y.value=L.cloneDeep(_),t("change",(A=E())==null?void 0:A.compData)},O=_=>{var A,Z;if((_==null?void 0:_.buttonName)==="确认"){const S=L.cloneDeep(_==null?void 0:_.content);switch(u.value){case"create":c.value.push({...S,index:((A=c.value)==null?void 0:A.length)+1});break}t("change",(Z=E())==null?void 0:Z.compData),s.visible=!1}else s.visible=!1},w=(_,A)=>{var Z,S;switch(_){case"create":(Z=v.value)==null||Z.forEach($=>{$.value=""}),u.value="create",s.visible=!0;break;case"update":(S=v.value)==null||S.forEach($=>{$.value=A[$==null?void 0:$.prop]}),u.value="update",s.visible=!0;break;case"delete":c.value.splice(A,1),u.value="delete";break}},Y=()=>{s.visible=!1};return a.watch(()=>r==null?void 0:r.itemContents,_=>{var A,Z;_&&(y.value=((A=_==null?void 0:_.find(S=>S.key==="signConfig"))==null?void 0:A.contents)??{},c.value=((Z=_==null?void 0:_.find(S=>S.key==="signTypeList"))==null?void 0:Z.contents)??[])},{immediate:!0}),(_,A)=>{const Z=a.resolveComponent("svg-icon"),S=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",E2,[A[2]||(A[2]=a.createElementVNode("h4",{class:"module-title"},"签名类型",-1)),a.createVNode(S,{class:"module-icon",id:"themeButton",onClick:A[0]||(A[0]=$=>w("create"))},{icon:a.withCtx(()=>[a.createVNode(Z,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[A[1]||(A[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",S2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.value,($,T)=>(a.openBlock(),a.createElementBlock("div",{class:"module-data-item",key:T},[a.createElementVNode("span",null,a.toDisplayString($==null?void 0:$.label),1),a.createElementVNode("div",null,[a.createVNode(S,{type:"primary",size:"small",onClick:x=>w("update",{...$,index:T+1})},{default:a.withCtx(()=>A[3]||(A[3]=[a.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),a.createVNode(S,{type:"danger",size:"small",onClick:x=>w("delete",T)},{default:a.withCtx(()=>A[4]||(A[4]=[a.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),a.createElementVNode("div",D2,[a.createVNode(rl.ssForm,{rowContents:f.value,onChange:N},null,8,["rowContents"])])]),a.createVNode(sr.ssDialog,{visible:s.visible,title:s.title,onBeforeDestroy:Y,width:s.width},{default:a.withCtx(()=>[a.createElementVNode("div",B2,[(a.openBlock(),a.createBlock(rl.ssForm,{rowContents:v.value,key:v.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:k.value,onOnButtonClick:O},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),T2=Fl._export_sfc(N2,[["__scopeId","data-v-487e0536"]]),A2=a.defineComponent({__name:"index",props:{stepConfig:{type:Object,default:{}},stepList:{type:Array,default:()=>[]}},emits:["clickStep","clickTrigger","changeTrigger"],setup(l,{emit:n}){const r=l,t=n,s=a.ref(1),u=a.computed(()=>{var E,N;return(E=r==null?void 0:r.stepConfig)!=null&&E.allowTrigger?s.value:(N=r==null?void 0:r.stepConfig)==null?void 0:N.active}),k=(E,N)=>{s.value=N,t("clickStep",E,N)},f=E=>rl.getComponent(E),v=()=>{var N;const E=(N=r==null?void 0:r.stepList)==null?void 0:N.find((O,w)=>w+1===u.value);return console.log("findStep",E),E?E==null?void 0:E.children:[]},y=E=>{t("clickTrigger",E)},c=E=>{t("changeTrigger",E)};return(E,N)=>{var Y,_,A,Z,S;const O=a.resolveComponent("el-step"),w=a.resolveComponent("el-steps");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(w,{direction:(Y=l.stepConfig)==null?void 0:Y.direction,active:u.value,"finish-status":"success",simple:(_=l.stepConfig)==null?void 0:_.simple,"align-center":((A=l.stepConfig)==null?void 0:A.alignCenter)??!0},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.stepList,($,T)=>(a.openBlock(),a.createBlock(O,{key:T,class:"step-item",onClick:x=>k($,T+1)},{title:a.withCtx(()=>[a.renderSlot(E.$slots,"title",{title:$==null?void 0:$.title},void 0,!0)]),description:a.withCtx(()=>[a.renderSlot(E.$slots,"description",{description:$==null?void 0:$.description},void 0,!0)]),_:2},1032,["onClick"]))),128))]),_:3},8,["direction","active","simple","align-center"]),(Z=l.stepConfig)!=null&&Z.allowTrigger&&((S=l.stepConfig)!=null&&S.active)?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(v(),($,T)=>(a.openBlock(),a.createElementBlock("div",{key:T,class:"step-cont-wrap"},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(f($==null?void 0:$.type)),{modelValue:$.value,"onUpdate:modelValue":x=>$.value=x,onClickTrigger:y,onChangeTrigger:c,content:$==null?void 0:$.content},a.createSlots({_:2},[a.renderList(E.$slots,(x,g)=>({name:g,fn:a.withCtx(H=>[a.renderSlot(E.$slots,g,a.mergeProps({ref_for:!0},H||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"]))]))),128)):a.createCommentVNode("",!0)],64)}}}),M2=Fl._export_sfc(A2,[["__scopeId","data-v-d7c99969"]]),z2=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]}},emits:["clickStep"],setup(l,{emit:n}){const r=l,t=n,s=a.ref({}),u=a.ref([]),k=(f,v)=>{t("clickStep",f,v)};return a.watch(()=>r==null?void 0:r.itemData,f=>{var v,y;u.value=(v=f==null?void 0:f.find(c=>(c==null?void 0:c.key)==="stepList"))==null?void 0:v.contents,s.value=(y=f==null?void 0:f.find(c=>(c==null?void 0:c.key)==="stepConfig"))==null?void 0:y.contents},{immediate:!0,deep:!0}),(f,v)=>{const y=a.resolveComponent("svg-icon");return a.openBlock(),a.createBlock(M2,{stepConfig:s.value,stepList:u.value,onClickStep:k},{icon:a.withCtx(()=>[a.createVNode(y,{name:"import"})]),title:a.withCtx(({title:c})=>[a.createTextVNode(a.toDisplayString(c),1)]),description:a.withCtx(({description:c})=>[a.createTextVNode(a.toDisplayString(c),1)]),_:1},8,["stepConfig","stepList"])}}}),O2=a.defineComponent({__name:"index",props:{activities:{type:Array,default:()=>[]},timeLineConfig:{type:Object,default:()=>{}}},setup(l){return(n,r)=>{const t=a.resolveComponent("el-timeline-item"),s=a.resolveComponent("el-timeline");return a.openBlock(),a.createBlock(s,null,{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.activities,(u,k)=>(a.openBlock(),a.createBlock(t,{key:k,timestamp:u.timestamp,placement:l.timeLineConfig.placement,center:l.timeLineConfig.isCenter,"hide-timestamp":!0,type:l.timeLineConfig.type,color:l.timeLineConfig.color,size:l.timeLineConfig.size,icon:l.timeLineConfig.icon,hollow:l.timeLineConfig.isHollow},{default:a.withCtx(()=>[a.renderSlot(n.$slots,"content",{content:u==null?void 0:u.content,timestamp:u==null?void 0:u.timestamp},void 0,!0)]),_:2},1032,["timestamp","placement","center","type","color","size","icon","hollow"]))),128))]),_:3})}}}),I2=Fl._export_sfc(O2,[["__scopeId","data-v-4172a886"]]),L2={class:"line-content"},V2={class:"line-time"},$2=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},setup(l){const n=l,r=a.ref({}),t=a.ref([]);return a.watch(()=>n==null?void 0:n.itemData,s=>{var u,k;t.value=(u=s==null?void 0:s.find(f=>(f==null?void 0:f.key)==="timeLineList"))==null?void 0:u.contents,r.value=(k=s==null?void 0:s.find(f=>(f==null?void 0:f.key)==="timeLineConfig"))==null?void 0:k.contents},{immediate:!0}),(s,u)=>(a.openBlock(),a.createBlock(I2,{activities:t.value,timeLineConfig:r.value},{content:a.withCtx(({content:k,timestamp:f})=>[a.createElementVNode("span",L2,a.toDisplayString(k),1),a.createElementVNode("span",V2,a.toDisplayString(f),1)]),_:1},8,["activities","timeLineConfig"]))}}),R2=Fl._export_sfc($2,[["__scopeId","data-v-b4d9deed"]]),P2={class:"tabs-content"},F2=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},tabsData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,compNames:{type:String,default:""},cacheNewData:{type:Object},isDevMode:{type:Boolean},allMapContents:{type:Array,default:()=>[]}},emits:["change","contentChange","pageChange","rowClick","routeUrl","clickTrigger","clickMainKey"],setup(l,{emit:n}){const r=l,t=n,s=a.ref();a.watch(()=>r==null?void 0:r.itemData,()=>{s.value=r==null?void 0:r.itemData},{immediate:!0,deep:!0});const u=N=>{t("change",N)},k=(N,O)=>{t("contentChange",N,O)},f=N=>{t("pageChange",N)},v=N=>{t("rowClick",N)},y=(N,O)=>{t("routeUrl",N,O)},c=N=>{t("clickTrigger",N)},E=(N,O)=>{t("clickMainKey",N,O)};return(N,O)=>{var w,Y;return a.openBlock(),a.createElementBlock("div",P2,[(w=s.value)!=null&&w.length?(a.openBlock(),a.createBlock(rl.ssTab,{tabsContents:s.value,key:(Y=s.value)==null?void 0:Y.length},{pane:a.withCtx(({tab:_,index:A})=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Ht)(_==null?void 0:_.comp)),{related:_==null?void 0:_.relatedTables,compNames:r==null?void 0:r.compNames,compName:_==null?void 0:_.name,cacheNewData:r==null?void 0:r.cacheNewData,isDevMode:l.isDevMode,itemData:_==null?void 0:_.compData,childItemData:_==null?void 0:_.itemChildData,onChange:u,index:(_==null?void 0:_.id)??A,config:{showIndex:_==null?void 0:_.showIndex,allowMove:_==null?void 0:_.allowMove,viewport:_==null?void 0:_.viewport},onContentChange:k,onPageChange:f,onRowClick:v,onRouteUrl:y,parentTableId:_==null?void 0:_.tableId,allMapContents:l.allMapContents,children:_==null?void 0:_.children,level:1,onClickTrigger:c,onClickMainKey:E},null,40,["related","compNames","compName","cacheNewData","isDevMode","itemData","childItemData","index","config","parentTableId","allMapContents","children"]))]),_:1},8,["tabsContents"])):a.createCommentVNode("",!0)])}}}),j2=Fl._export_sfc(F2,[["__scopeId","data-v-ded4e0d9"]]),H2={class:"type-select"},U2=["onClick"],q2={class:"list-icon"},W2={__name:"modelSelect",setup(l){const n=St(L.pinia),{itemData:r}=L.storeToRefs(n),t=s=>{const u=L.cloneDeep(r.value);u.push({comp:s.comp,name:s.name,compData:[]}),n.setItemData(u)};return(s,u)=>{const k=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",H2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(Rc),(f,v)=>(a.openBlock(),a.createElementBlock("div",{class:"type-list",key:v},[a.createElementVNode("div",{class:"list-content",onClick:y=>t(f)},[a.createElementVNode("div",q2,[a.createVNode(k,{name:f.icon},null,8,["name"])]),a.createElementVNode("div",null,a.toDisplayString(f.name),1)],8,U2)]))),128))])}}},K2=Fl._export_sfc(W2,[["__scopeId","data-v-91799bf8"]]),Y2={class:"fill-content"},G2={class:"operate-content"},X2={class:"collapse-title-content"},J2={class:"collapse-title-item"},Z2={key:1},Q2=["onClick"],e4={class:"icon-content"},a4={key:0,class:"edit-content"},l4=["onClick"],r4={class:"comp-child"},n4={__name:"modelFill",setup(l){const n=St(L.pinia),{itemData:r,originalData:t}=L.storeToRefs(n),s=a.ref([]);a.ref([]);const u=a.ref([]),k=a.ref([]),f=O=>{var Y;let w=(Y=L.cloneDeep(k.value))==null?void 0:Y.map((_,A)=>(O===A&&(_.content=!0),_));k.value=w},v=O=>{var Y;let w=(Y=L.cloneDeep(k.value))==null?void 0:Y.map((_,A)=>(O===A&&(_.content=!1),_));k.value=w,s.value=L.cloneDeep(r.value)},y=(O,w)=>{var Z;let Y=(Z=L.cloneDeep(k.value))==null?void 0:Z.map((S,$)=>(O===$&&(S.content=!1),S));k.value=Y;const _=L.cloneDeep(r.value),A=_==null?void 0:_.filter((S,$)=>($===O&&(S.name=w),S));n.setOriginalData(A),n.setItemData(A)};a.watch(()=>r.value,()=>{var O,w,Y;!r.value||((O=r.value)==null?void 0:O.length)===0?s.value=[]:s.value=(w=L.cloneDeep(r.value))==null?void 0:w.filter(_=>(_==null?void 0:_.comp)!=="methodButton"),u.value=s.value,k.value=(Y=L.cloneDeep(u.value))==null?void 0:Y.map((_,A)=>({id:A,content:!1}))},{deep:!0,immediate:!0});const c=O=>Dt(O),E=(O,w,Y)=>{var A,Z;if(!O)return;let _=L.cloneDeep(r.value);_=(A=_==null?void 0:_.map((S,$)=>($===Y&&(S.compData=O),S)))==null?void 0:A.filter(S=>(S==null?void 0:S.comp)!=="methodButton"),k.value=(Z=L.cloneDeep(_))==null?void 0:Z.map((S,$)=>({id:$,content:!1})),n.setOriginalData(_),n.setItemData(_)},N=O=>{L.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const w=L.cloneDeep(r.value),Y=w==null?void 0:w.filter((_,A)=>A!==O);n.setOriginalData(Y),n.setItemData(Y),Wa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(O,w)=>{const Y=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",Y2,[w[1]||(w[1]=a.createElementVNode("div",{class:"fill-operate"},a.toDisplayString("操作栏"),-1)),a.createElementVNode("div",G2,[a.createVNode(Ps.default,{class:"collapse-content",collapseContents:s.value},{title:a.withCtx(({item:_,index:A})=>{var Z,S,$,T,x,g,H,W,ae,ge;return[a.createElementVNode("div",X2,[a.createElementVNode("div",J2,[(S=(Z=k.value)==null?void 0:Z.find(Oe=>Oe.id===A))!=null&&S.content?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:"collapse-title",style:a.normalizeStyle({marginRight:_.name&&_.name!==""?"8px":"0px"})},a.toDisplayString(_.name),5)),(T=($=k.value)==null?void 0:$.find(Oe=>Oe.id===A))!=null&&T.content?(a.openBlock(),a.createElementBlock("div",Z2,[a.createVNode(rl.ssInput,{modelValue:_.name,"onUpdate:modelValue":Oe=>_.name=Oe,onClick:w[0]||(w[0]=a.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):a.createCommentVNode("",!0),(g=(x=k.value)==null?void 0:x.find(Oe=>Oe.id===A))!=null&&g.content?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:2,onClick:a.withModifiers(Oe=>f(A),["stop"]),class:"icon-content"},[a.createVNode(Y,{name:"Edit",style:{width:"16px",height:"16px"}})],8,Q2))]),a.createElementVNode("div",e4,[(W=(H=k.value)==null?void 0:H.find(Oe=>Oe.id===A))!=null&&W.content?(a.openBlock(),a.createElementBlock("div",a4,[a.createVNode(Y,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:a.withModifiers(Oe=>v(A),["stop"])},null,8,["onClick"]),a.createVNode(Y,{name:"Save",onClick:a.withModifiers(Oe=>y(A,_.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):a.createCommentVNode("",!0),(ge=(ae=k.value)==null?void 0:ae.find(Oe=>Oe.id===A))!=null&&ge.content?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:1,onClick:a.withModifiers(Oe=>N(A),["stop"]),class:"icon-content"},[a.createVNode(Y,{name:"Delete",style:{width:"16px",height:"16px"}})],8,l4))])])]}),content:a.withCtx(({item:_,index:A})=>{var Z,S;return[a.createElementVNode("div",r4,[a.createTextVNode(a.toDisplayString(c(_.comp+"Operate"))+" ",1),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c(_.comp+"Operate")),{itemContents:_==null?void 0:_.compData,originalItemContents:(S=(Z=u.value)==null?void 0:Z.find(($,T)=>T===A))==null?void 0:S.compData,onChange:$=>E($,_,A)},null,40,["itemContents","originalItemContents","onChange"]))])]}),_:1},8,["collapseContents"])])])}}},t4=Fl._export_sfc(n4,[["__scopeId","data-v-a46a44b9"]]),o4={key:0,class:"show-content"},i4={style:{display:"flex"}},s4={__name:"modelShow",setup(l){const n=St(L.pinia),{itemData:r}=L.storeToRefs(n),t=a.ref([]);a.watch(()=>r.value,()=>{var u;!r.value||((u=r.value)==null?void 0:u.length)===0?t.value=[]:t.value=L.cloneDeep(r.value)},{deep:!0,immediate:!0});const s=u=>Dt(u);return(u,k)=>{var f;return((f=t.value)==null?void 0:f.length)>0?(a.openBlock(),a.createElementBlock("div",o4,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.value,(v,y)=>(a.openBlock(),a.createElementBlock("div",{class:"item-content",key:y},[a.createElementVNode("div",i4,a.toDisplayString(v.name),1),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s(v.comp)),{itemData:v==null?void 0:v.compData,childItemData:v==null?void 0:v.itemChildData,key:y},null,8,["itemData","childItemData"]))]))),128))])):a.createCommentVNode("",!0)}}},c4=Fl._export_sfc(s4,[["__scopeId","data-v-3f3e863e"]]),u4={class:"tabs-header"},d4={class:"tabs-list"},p4={class:"tab-name"},f4={class:"tab-actions"},h4=["onClick"],v4=["onClick"],m4=["onClick"],y4={class:"model-operate"},g4={class:"model-select",style:{display:"unset"}},b4={class:"existing-components"},k4={class:"component-list"},x4=["onClick"],w4={class:"component-info"},_4={class:"component-type"},C4={class:"component-name"},E4={class:"model-fill"},S4={__name:"operate",props:{itemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,t=n,s=a.ref([]),u=a.ref(!1),k=a.ref(""),f=a.ref({title:""}),v=a.ref(-1),y=a.ref(!1),c=a.ref(-1),E=a.ref(new WeakMap),N=a.ref(null),O=St(L.pinia),{itemData:w}=L.storeToRefs(O),Y=()=>{k.value="新增标签页",f.value.title="",v.value=-1,u.value=!0},_=oe=>{k.value="修改标签页",f.value.title=s.value[oe].title,v.value=oe,u.value=!0},A=oe=>{const D=$(oe);E.value.delete(D),s.value.splice(oe,1),Sa()},Z=()=>{if(f.value.title.trim()){if(v.value===-1){const oe={title:f.value.title,value:f.value.title,label:f.value.title,children:[],id:S()};s.value.push(oe)}else s.value[v.value].title=f.value.title,s.value[v.value].value=f.value.title,s.value[v.value].label=f.value.title;u.value=!1,Sa()}},S=()=>`tab_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,$=oe=>{const D=s.value[oe];return D.id||(D.id=S()),D.id},T=oe=>{var ve;c.value=oe;const D=$(oe);N.value=L.cloneDeep(w.value);let ne=E.value.get(D);!ne&&((ve=s.value[oe].children)==null?void 0:ve.length)>0&&(ne=W(s.value[oe].children)),ne?O.setItemData(L.cloneDeep(ne)):O.setItemData([]),y.value=!0},x=a.computed(()=>{const oe=L.useModelComp(L.pinia),D=L.storeToRefs(oe).itemData.value;return console.log("可用组件数据",D),!D||!Array.isArray(D)?[]:D.filter(ne=>{var ve;if(ne.comp==="Tabs"&&c.value>=0){const se=$(c.value);if((ve=ne.compData)==null?void 0:ve.some(ta=>{var wa;return ta.key==="stepList"&&((wa=ta.contents)==null?void 0:wa.some(Ia=>Ia.id===se))}))return!1}return!0})}),g=oe=>({Table:"表格",Form:"表单",Tabs:"标签页",Chart:"图表",Card:"卡片"})[oe]||oe,H=oe=>{var D;try{const ne=L.cloneDeep(oe);ne.id=Date.now()+Math.random(),ne.comp==="Tabs"&&((D=ne.compData)==null||D.forEach(se=>{se.key==="stepList"&&se.contents&&se.contents.forEach(xe=>{xe.id=S()})}));const ve=L.cloneDeep(w.value);ve.push(ne),O.setItemData(ve)}catch(ne){console.error("添加组件失败:",ne)}},W=oe=>oe.map(D=>{var ne;switch(D.type){case"form":return{comp:"Form",name:D.value||"表单",compData:ae(D.content)};case"table":return{comp:"Table",name:D.value||"表格",compData:ge(D.content)};default:return{comp:"Unknown",name:D.value||"",compData:((ne=D.content)==null?void 0:ne.originalData)||[]}}}),ae=oe=>{if(!oe)return[];const D=[];return oe.rowContents&&D.push({key:"formContent",contents:oe.rowContents}),oe.buttonValue&&D.push({key:"formButton",contents:oe.buttonValue}),typeof oe.isEnableWrap<"u"&&D.push({key:"enableWrap",contents:oe.isEnableWrap}),D},ge=oe=>[],Oe=()=>{if(c.value>=0&&c.value<s.value.length){const oe=$(c.value);E.value.set(oe,L.cloneDeep(w.value)),s.value[c.value].children=me(w.value),console.log("保存后的数据",me(w.value))}y.value=!1,c.value=-1,N.value=null,Sa()},we=()=>{N.value&&O.setItemData(L.cloneDeep(N.value)),y.value=!1,c.value=-1,N.value=null},te=()=>{y.value&&we()},me=oe=>{if(!Array.isArray(oe))throw new Error("sourceData must be an array");return oe.map((D,ne)=>{if(!D||typeof D!="object")return D;const{comp:ve,name:se,compData:xe}=D;switch(ve){case"Form":return{type:"form",content:J(xe||[]),value:"表单"};case"Table":return{type:"table",content:ue(xe||[]),value:"表格"};default:return{type:"xxx",content:Ye(xe||[]),value:""}}})},J=oe=>{const D={formRules:{},rowContents:[],buttonValue:[],rowValues:[],isEnableWrap:!0,isRowFlex:!0,isButtonRow:!0,isEdit:!0,isStartJustify:!0},ne={formContent:"rowContents",enableWrap:"isEnableWrap",formButton:"buttonValue"};return oe.forEach((ve,se)=>{if(!ve||typeof ve!="object"){console.warn(`Invalid config at index ${se}:`,ve);return}const{key:xe,contents:ta}=ve,wa=ne[xe];if(!wa){console.warn(`Unknown Form config key: ${xe}`);return}xe==="enableWrap"?D[wa]=!!ta:D[wa]=Array.isArray(ta)?ta:[]}),D},ue=oe=>{const D={columns:[],tableData:[],extraButton:[],rowButton:[],currentPage:0,total:0,pageSize:0,isShowPagination:!0,isShowEdit:!0,isMoveColumn:!0,isShowDelete:!0},ne={header:"columns",tableContents:"tableData"};return oe.forEach((ve,se)=>{if(!ve||typeof ve!="object"){console.warn(`Invalid config at index ${se}:`,ve);return}const{key:xe,contents:ta}=ve,wa=ne[xe];if(!wa){console.warn(`Unknown Table config key: ${xe}`);return}D[wa]=Array.isArray(ta)?ta:[]}),D},Ye=oe=>(console.log("Default conversion logic - to be implemented"),{originalData:oe,processed:!1,componentType:"unknown"}),Sa=()=>{const oe=[{key:"stepList",contents:s.value}];t("change",oe)};return a.watch(()=>r.itemContents,oe=>{if(oe&&oe.length>0){const D=oe.find(ne=>ne.key==="stepList");D&&D.contents&&(s.value=D.contents.map(ne=>({title:ne.title||"",value:ne.value||ne.title||"",label:ne.label||ne.title||"",children:ne.children||[],id:ne.id||S()})))}},{immediate:!0,deep:!0}),(oe,D)=>{const ne=a.resolveComponent("svg-icon"),ve=a.resolveComponent("el-input"),se=a.resolveComponent("el-form-item"),xe=a.resolveComponent("el-form");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",u4,[D[6]||(D[6]=a.createElementVNode("h4",null,"标签页管理",-1)),a.createElementVNode("button",{onClick:Y},[a.createVNode(ne,{name:"Plus",style:{width:"14px",height:"14px","margin-right":"4px"}}),D[5]||(D[5]=a.createTextVNode(" 新增标签页 "))])]),a.createElementVNode("div",d4,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,(ta,wa)=>(a.openBlock(),a.createElementBlock("div",{class:"tab-item",key:wa},[a.createElementVNode("span",p4,a.toDisplayString(ta.title),1),a.createElementVNode("div",f4,[a.createElementVNode("button",{onClick:Ia=>_(wa)},"修改标题",8,h4),a.createElementVNode("button",{onClick:Ia=>T(wa)},"布局调整",8,v4),a.createElementVNode("button",{onClick:Ia=>A(wa)},"删除",8,m4)])]))),128))]),a.createVNode(sr.ssDialog,{modelValue:u.value,"onUpdate:modelValue":D[2]||(D[2]=ta=>u.value=ta),title:k.value,onBeforeDestroy:D[3]||(D[3]=ta=>u.value=!1)},{footer:a.withCtx(()=>[a.createElementVNode("button",{onClick:D[1]||(D[1]=ta=>u.value=!1)},"取消"),a.createElementVNode("button",{type:"primary",onClick:Z},"确定")]),default:a.withCtx(()=>[a.createVNode(xe,{model:f.value,"label-width":"80px"},{default:a.withCtx(()=>[a.createVNode(se,{label:"标签名称",required:""},{default:a.withCtx(()=>[a.createVNode(ve,{modelValue:f.value.title,"onUpdate:modelValue":D[0]||(D[0]=ta=>f.value.title=ta),placeholder:"请输入标签页名称"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),a.createVNode(sr.ssDialog,{modelValue:y.value,"onUpdate:modelValue":D[4]||(D[4]=ta=>y.value=ta),title:"布局调整",fullScreen:"",onBeforeDestroy:te},{footer:a.withCtx(()=>[a.createElementVNode("button",{onClick:we},"取消"),a.createElementVNode("button",{onClick:Oe},"确定")]),default:a.withCtx(()=>[a.createElementVNode("div",y4,[a.createElementVNode("div",g4,[a.createVNode(K2),a.createElementVNode("div",b4,[D[8]||(D[8]=a.createElementVNode("h5",null,"添加已有组件",-1)),a.createElementVNode("div",k4,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(x.value,ta=>(a.openBlock(),a.createElementBlock("div",{key:ta.id,class:"component-item",onClick:wa=>H(ta)},[a.createElementVNode("div",w4,[a.createElementVNode("span",_4,a.toDisplayString(g(ta.comp)),1),a.createElementVNode("span",C4,a.toDisplayString(ta.name),1)]),D[7]||(D[7]=a.createElementVNode("button",{class:"add-btn"},"添加",-1))],8,x4))),128))])])]),(a.openBlock(),a.createElementBlock("div",{class:"model-show",key:oe.innerWidth},[a.createVNode(c4)])),a.createElementVNode("div",E4,[a.createVNode(t4)])])]),_:1},8,["modelValue"])])}}},D4=Fl._export_sfc(S4,[["__scopeId","data-v-9096ed0d"]]);function B4(){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 N4(l){return{type:"line",...l}}function T4(){return{title:{text:"",left:"center",top:10,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:[{type:"value"}],series:[]}}function A4(l){return{type:"bar",barWidth:"60%",...l}}function M4(){return{title:{text:"",left:"center"},tooltip:{trigger:"item"},series:[]}}function z4(l){return{type:"pie",radius:"50%",emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},...l}}const Bn={line:{initBaseoptions:B4,initSeries:N4},bar:{initBaseoptions:T4,initSeries:A4},pie:{initBaseoptions:M4,initSeries:z4}},ps=L.useMenuState(L.pinia),gc=(l,n)=>{var c;const r=[],t=[],{group:s,nameCol:u,valueCol:k}=n||{},f=l==null?void 0:l.find(E=>{const{name:N}=E;return N===s});if(!f)return{names:r,values:t};const v=(c=f==null?void 0:f.compData)==null?void 0:c.find(E=>{const{key:N}=E;return N==="tableContents"});return((v==null?void 0:v.contents)||[]).forEach(E=>{const N=E==null?void 0:E[0];let O=!1;Wa.isObject(N)&&(N!=null&&N.id)&&(O=!0);let w=u,Y=k;O&&(w=w+1,Y=Y+1);const _=E==null?void 0:E[w],A=E==null?void 0:E[Y];r.push(_),t.push(A)}),{names:r,values:t}},O4=async l=>{const{menu:n,mainKey:r,detailGroup:t,detailNameCol:s,detailValueCol:u,isSelfDetail:k}=l||{};let f=null;const v=sessionStorage.getItem("systemKey");if(k&&ps.activeMenuPath&&(f=await sa.getItemData(`${ps.activeMenuPath}`,v,"")),!k){const y=n==null?void 0:n.join("/");f=await sa.getItemData(`${y}^${r}`,v,"")}return gc(f,{group:t,nameCol:s,valueCol:u})},I4=async l=>{const{menu:n,group:r,nameCol:t,valueCol:s}=l||{},u=n==null?void 0:n.join("/"),k=sessionStorage.getItem("systemKey"),f=await sa.getItemData(u,k,"");return gc(f,{group:r,nameCol:t,valueCol:s})},ki=async(l,n)=>{const r={names:[],values:[]},{menu:t,group:s,nameCol:u,valueCol:k}=l||{};if(!t.length||!s)return r;const{mainKey:f,group:v,nameCol:y,valueCol:c,isSelfDetail:E}=n||{};return f&&v&&rl.isNumber(y)&&rl.isNumber(c)?await O4({menu:t,mainKey:f,detailGroup:v,detailNameCol:y,detailValueCol:c,isSelfDetail:E}):rl.isNumber(u)&&rl.isNumber(k)?await I4({menu:t,group:s,nameCol:u,valueCol:k}):r},L4=async({chartBaseConfig:l,chartDataConfig:n,chartDetailConfig:r})=>{const{type:t,title:s}=l||{},u=Bn==null?void 0:Bn[t];if(!u)return;const{initBaseoptions:k,initSeries:f}=u,v=k();v.title.text=s??"";const{names:y,values:c}=await ki(n,r);if(!y||!c)return v;v.xAxis.data=y;const E=f({data:c});return v.series.push(E),v},V4=async({chartBaseConfig:l,chartDataConfig:n,chartDetailConfig:r})=>{const{type:t,title:s}=l||{},u=Bn==null?void 0:Bn[t];if(!u)return;const{initBaseoptions:k,initSeries:f}=u,v=k();v.title.text=s??"";const{names:y,values:c}=await ki(n,r);if(!y||!c)return v;v.xAxis.data=y;const E=f({data:c});return v.series.push(E),v},$4=async({chartBaseConfig:l,chartDataConfig:n,chartDetailConfig:r})=>{const{type:t,title:s}=l||{},u=Bn==null?void 0:Bn[t];if(!u)return;const{initBaseoptions:k,initSeries:f}=u,v=k();v.title.text=s??"";const{names:y,values:c}=await ki(n,r);if(!y||!c)return v;const E=[];for(let O=0;O<y.length;O++){const w=y[O],Y=c[O];E.push({name:w,value:Y})}const N=f({data:E});return v.series.push(N),v},R4=async(l=[])=>{var k,f,v;const n=((k=l==null?void 0:l.find(y=>y.key==="chartBaseConfig"))==null?void 0:k.contents)??{},r=((f=l==null?void 0:l.find(y=>y.key==="chartDataConfig"))==null?void 0:f.contents)??{},t=((v=l==null?void 0:l.find(y=>y.key==="chartDetailConfig"))==null?void 0:v.contents)??{},{type:s}=n;let u={};return s==="line"&&(u=await L4({chartBaseConfig:n,chartDataConfig:r,chartDetailConfig:t})),s==="bar"&&(u=await V4({chartBaseConfig:n,chartDataConfig:r,chartDetailConfig:t})),s==="pie"&&(u=await $4({chartBaseConfig:n,chartDataConfig:r,chartDetailConfig:t})),u},P4=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}},height:{type:String,default:"300px"}},setup(l){const n=l,r=a.ref({});a.onMounted(async()=>{const s=n==null?void 0:n.itemData;r.value=await R4(s)});const t=a.computed(()=>(n==null?void 0:n.height)||"300px");return(s,u)=>(a.openBlock(),a.createElementBlock("div",{class:"eCharts",style:a.normalizeStyle({height:t.value})},[a.createVNode(cu.ssChart,{optionContents:r.value},null,8,["optionContents"])],4))}}),F4=Fl._export_sfc(P4,[["__scopeId","data-v-d4c081e8"]]),j4={class:"chart-module layout"},H4={class:"chart-module content"},U4={class:"chart-module content"},q4={class:"form-content"},W4={class:"dialog-footer"},K4={class:"form-content"},Y4={class:"dialog-footer"},G4={class:"form-content"},X4={class:"dialog-footer"},J4=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,t=n,s=a.reactive({visible:!1,width:"840",title:"基础配置"}),u=a.ref([]),k=()=>[{label:"类型",prop:"type",type:"select",contents:[{label:"柱状图",value:"bar"},{label:"饼图",value:"pie"},{label:"折线图",value:"line"}],value:""},{label:"标题",prop:"title",type:"input",value:""}],f=a.ref({}),v=()=>{var Fe;u.value=k(),(Fe=u.value)==null||Fe.forEach(_e=>{var Ge;const ze=_e==null?void 0:_e.prop;_e.value=(Ge=f==null?void 0:f.value)==null?void 0:Ge[ze]}),s.visible=!0},y=Fe=>{f.value=Fe},c=()=>{var Fe;s.visible=!1,t("change",(Fe=Ve())==null?void 0:Fe.compData)},E=a.reactive({visible:!1,width:"840",title:"数据配置"}),N=a.ref([]),O=()=>[{label:"菜单选项",prop:"menu",type:"cascader",contents:[]},{label:"组信息选项",prop:"group",type:"select",contents:[]},{label:"名称列",prop:"nameCol",type:"select",contents:[]},{label:"取值列",prop:"valueCol",type:"select",contents:[]}],w=a.ref({}),Y=()=>{const Fe=N.value,_e=L.cloneDeep(Fe);return _e==null||_e.forEach(ze=>{var Ba;const Ge=ze==null?void 0:ze.prop;ze.value=(Ba=w.value)==null?void 0:Ba[Ge]}),_e},_=Fe=>{var ze;w.value=Fe;const _e=Y();N.value=_e,t("change",(ze=Ve())==null?void 0:ze.compData)},A=async()=>{const Fe=await sa.getMenusContent(),_e=Y();_e==null||_e.forEach(ze=>{(ze==null?void 0:ze.prop)==="menu"&&(ze.contents=Fe)}),N.value=_e,E.visible=!0,await ta(w.value.menu),await le(w.value.group)},Z=a.reactive({visible:!1,width:"840",title:"详情页配置"}),S=a.ref([]),$=()=>[{label:"详情页主键",prop:"mainKey",type:"select",contents:[]},{label:"使用当前详情页内容",prop:"isSelfDetail",type:"switch"},{label:"组信息选项",prop:"group",type:"select",contents:[]},{label:"名称列",prop:"nameCol",type:"select",contents:[]},{label:"取值列",prop:"valueCol",type:"select",contents:[]}],T=a.ref({}),x=()=>{const Fe=S.value,_e=L.cloneDeep(Fe);return _e==null||_e.forEach(ze=>{var Ba;const Ge=ze==null?void 0:ze.prop;ze.value=(Ba=T.value)==null?void 0:Ba[Ge]}),_e},g=Fe=>{var ze;T.value=Fe;const _e=x();S.value=_e,t("change",(ze=Ve())==null?void 0:ze.compData)},H=async()=>{await te();const Fe=L.cloneDeep(W.value),_e=x();_e==null||_e.forEach(ze=>{var Ba;const Ge=ze==null?void 0:ze.prop;ze.value=(Ba=T==null?void 0:T.value)==null?void 0:Ba[Ge],Ge==="mainKey"&&(ze.contents=Fe)}),S.value=_e,Z.visible=!0},W=a.ref([]),ae=a.ref([]),ge=a.ref({}),Oe=a.ref({}),we=()=>{const{compData:Fe}=ve.value||{},_e=Fe==null?void 0:Fe.find(G=>{const{key:V}=G;return V==="header"}),ze=(_e==null?void 0:_e.contents)||[],Ge=ze==null?void 0:ze.filter((G,V)=>{const{label:K}=G;return K!=="操作"}),Ba=Ge==null?void 0:Ge.findIndex((G,V)=>{const{isMainKey:K}=G;return K});if(Ba<0)return[];const Ja=Fe==null?void 0:Fe.find(G=>{const{key:V}=G;return V==="tableContents"}),R=(Ja==null?void 0:Ja.contents)||[];return R==null?void 0:R.map(G=>{const V=G==null?void 0:G[0];let K=Ba;Wa.isObject(V)&&(V!=null&&V.id)&&(K=K+1);const Ne=G==null?void 0:G[K];return{label:Ne,value:Ne}})},te=async()=>{const Fe=await we();W.value=Fe},me=async Fe=>{const _e=sessionStorage.getItem("systemKey");return await sa.getItemData(Fe,_e,"")},J=async Fe=>{const _e=Fe;ae.value=_e==null?void 0:_e.map(ze=>{const{name:Ge}=ze;return ge.value[Ge]=ze,{label:Ge,value:Ge}})},ue=Fe=>{const{comp:_e,compData:ze}=Oe.value||{};if(_e==="Table"){let Ge=x();Ge=Ge.filter(Ba=>{const{prop:Ja}=Ba;return Ja!=="formItems"}),wa(Ge,ze),S.value=Ge}},Ye=async()=>{var ze,Ge;const Fe=(ze=T==null?void 0:T.value)==null?void 0:ze.mainKey,_e=(Ge=w==null?void 0:w.value)==null?void 0:Ge.menu;if(Fe){const Ja=`${_e==null?void 0:_e.join("/")}^${Fe}`,R=await me(Ja);await J(R);const j=x();j==null||j.forEach(G=>{(G==null?void 0:G.prop)==="group"&&(G.contents=ae.value)}),S.value=j}};a.watch(()=>{var Fe;return(Fe=T==null?void 0:T.value)==null?void 0:Fe.mainKey},async(Fe,_e)=>{Fe!=_e&&Fe&&await Ye()});const Sa=async Fe=>{const _e=ge.value[Fe];Oe.value=_e,await ue()};a.watch(()=>{var Fe;return(Fe=T==null?void 0:T.value)==null?void 0:Fe.group},async(Fe,_e)=>{Fe!=_e&&Fe&&Sa(Fe)});const oe=async()=>{var _e;await Ye();const Fe=(_e=T.value)==null?void 0:_e.group;await Sa(Fe)},D=a.ref([]),ne=a.ref({}),ve=a.ref({}),se=async Fe=>{const _e=Fe==null?void 0:Fe.join("/"),ze=sessionStorage.getItem("systemKey");return await sa.getItemData(_e,ze,"")},xe=async Fe=>{const _e=await se(Fe);D.value=_e==null?void 0:_e.map(ze=>{const{name:Ge}=ze;return ne.value[Ge]=ze,{label:Ge,value:Ge}})},ta=async(Fe,_e)=>{await xe(Fe);const ze=Y();ze==null||ze.forEach(Ge=>{(Ge==null?void 0:Ge.prop)==="group"&&(Ge.contents=D.value)}),N.value=ze};a.watch(()=>{var Fe;return(Fe=w==null?void 0:w.value)==null?void 0:Fe.menu},async(Fe,_e)=>{const ze=Fe==null?void 0:Fe.join("/"),Ge=_e==null?void 0:_e.join("/");ze!=Ge&&await ta(Fe)});const wa=(Fe,_e)=>{const ze=_e==null?void 0:_e.find(R=>{const{key:j}=R;return j==="header"}),Ge=(ze==null?void 0:ze.contents)||[],Ba=Ge==null?void 0:Ge.filter((R,j)=>{const{label:G}=R;return G!=="操作"}),Ja=Ba==null?void 0:Ba.map((R,j)=>{const{label:G}=R;return{label:G,value:j}});Fe==null||Fe.forEach(R=>{const j=R==null?void 0:R.prop;(j==="nameCol"||j==="valueCol")&&(R.contents=Ja)})},Ia=Fe=>{const{comp:_e,compData:ze}=ve.value||{};if(_e==="Table"){w.value.formItems=[];let Ge=Y();Ge=Ge.filter(Ba=>{const{prop:Ja}=Ba;return Ja!=="formItems"}),wa(Ge,ze),N.value=Ge}},le=async Fe=>{const _e=ne.value[Fe];ve.value=_e,await Ia()};a.watch(()=>{var Fe;return(Fe=w==null?void 0:w.value)==null?void 0:Fe.group},async(Fe,_e)=>{Fe!=_e&&le(Fe)});const ra=async()=>{var ze,Ge;const Fe=(ze=w.value)==null?void 0:ze.menu;await ta(Fe);const _e=(Ge=w.value)==null?void 0:Ge.group;await le(_e)},Ve=()=>({comp:"chart",compData:[{key:"chartBaseConfig",contents:f.value},{key:"chartDataConfig",contents:w.value},{key:"chartDetailConfig",contents:T.value}]}),_a=()=>{s.visible=!1,E.visible=!1,Z.visible=!1};return a.onMounted(async()=>{var _e,ze,Ge;N.value=O(),S.value=$();const Fe=r==null?void 0:r.itemContents;f.value=((_e=Fe==null?void 0:Fe.find(Ba=>Ba.key==="chartBaseConfig"))==null?void 0:_e.contents)??{},w.value=((ze=Fe==null?void 0:Fe.find(Ba=>Ba.key==="chartDataConfig"))==null?void 0:ze.contents)??{},await ra(),T.value=((Ge=Fe==null?void 0:Fe.find(Ba=>Ba.key==="chartDetailConfig"))==null?void 0:Ge.contents)??{},await oe()}),(Fe,_e)=>{const ze=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",j4,[_e[4]||(_e[4]=a.createElementVNode("div",{class:"module-title"},"基础配置",-1)),a.createVNode(ze,{id:"themeButton",onClick:_e[0]||(_e[0]=Ge=>v())},{default:a.withCtx(()=>_e[3]||(_e[3]=[a.createTextVNode(" 修改 ")])),_:1,__:[3]})]),a.createElementVNode("div",H4,[_e[6]||(_e[6]=a.createElementVNode("h4",{class:"module-title"},"数据配置",-1)),a.createVNode(ze,{id:"themeButton",onClick:_e[1]||(_e[1]=Ge=>A())},{default:a.withCtx(()=>_e[5]||(_e[5]=[a.createTextVNode(" 修改 ")])),_:1,__:[5]})]),a.createElementVNode("div",U4,[_e[8]||(_e[8]=a.createElementVNode("h4",{class:"module-title"},"详情数据配置",-1)),a.createVNode(ze,{id:"themeButton",onClick:_e[2]||(_e[2]=Ge=>H())},{default:a.withCtx(()=>_e[7]||(_e[7]=[a.createTextVNode(" 修改 ")])),_:1,__:[7]})])]),a.createVNode(sr.ssDialog,{visible:s.visible,title:s.title,onBeforeDestroy:_a,width:s.width},{default:a.withCtx(()=>[a.createElementVNode("div",q4,[(a.openBlock(),a.createBlock(rl.ssForm,{rowContents:u.value,key:u.value,isEnableWrap:!0,onChange:y},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",W4,[a.createVNode(ze,{class:"cancel-button button",onClick:_a,id:"themeBorderButton"},{default:a.withCtx(()=>_e[9]||(_e[9]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[9]}),a.createVNode(ze,{class:"ok-button button",onClick:c,id:"themeButton"},{default:a.withCtx(()=>_e[10]||(_e[10]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[10]})])]),_:1},8,["visible","title","width"]),a.createVNode(sr.ssDialog,{visible:E.visible,title:E.title,onBeforeDestroy:_a,width:E.width},{default:a.withCtx(()=>[a.createElementVNode("div",K4,[(a.openBlock(),a.createBlock(rl.ssForm,{rowContents:N.value,key:N.value,isEnableWrap:!0,onChange:_},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",Y4,[a.createVNode(ze,{class:"cancel-button button",onClick:_a,id:"themeBorderButton"},{default:a.withCtx(()=>_e[11]||(_e[11]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[11]}),a.createVNode(ze,{class:"ok-button button",onClick:_a,id:"themeButton"},{default:a.withCtx(()=>_e[12]||(_e[12]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible","title","width"]),a.createVNode(sr.ssDialog,{visible:Z.visible,title:Z.title,onBeforeDestroy:_a,width:Z.width},{default:a.withCtx(()=>[a.createElementVNode("div",G4,[(a.openBlock(),a.createBlock(rl.ssForm,{rowContents:S.value,key:S.value,isEnableWrap:!0,onChange:g},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",X4,[a.createVNode(ze,{class:"cancel-button button",onClick:_a,id:"themeBorderButton"},{default:a.withCtx(()=>_e[13]||(_e[13]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[13]}),a.createVNode(ze,{class:"ok-button button",onClick:_a,id:"themeButton"},{default:a.withCtx(()=>_e[14]||(_e[14]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible","title","width"])],64)}}}),Z4=Fl._export_sfc(J4,[["__scopeId","data-v-fe119645"]]),Q4={class:"layout"},e6=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["rowClick"],setup(l,{emit:n}){const r=n,t=l;a.onMounted(async()=>{});const s=a.computed(()=>L.cloneDeep(t==null?void 0:t.itemData)||[]),u=a.computed(()=>{var c;const y=(c=s==null?void 0:s.value)==null?void 0:c.find(E=>{const{key:N}=E;return N==="baseConfig"});return y==null?void 0:y.contents}),k=a.computed(()=>{var c;const y=(c=s==null?void 0:s.value)==null?void 0:c.find(E=>{const{key:N}=E;return N==="children"});return y==null?void 0:y.contents}),f=a.computed(()=>{let y=L.cloneDeep(k.value)||[];const c=y.length;let E=0;const N=[];if(y=y.map(O=>{const w=O.span;return w?(O.span=Number(w),E=E+O.span):N.push(O),O}),E<24){const O=Math.floor((24-E)/c);N.forEach(w=>{w.span=O})}return y}),v=y=>{r("rowClick",y)};return(y,c)=>{var O;const E=a.resolveComponent("el-col"),N=a.resolveComponent("el-row");return a.openBlock(),a.createElementBlock("div",Q4,[a.createVNode(N,{style:a.normalizeStyle({height:(O=u.value)==null?void 0:O.height})},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f.value,(w,Y)=>(a.openBlock(),a.createBlock(E,{span:w==null?void 0:w.span},{default:a.withCtx(()=>{var _;return[a.unref(Et)?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Ht)(w.comp)),{key:a.unref(jn),compName:w.name,index:(w==null?void 0:w.id)??Y,height:(_=u.value)==null?void 0:_.height,itemData:w==null?void 0:w.compData,childItemData:w==null?void 0:w.itemChildData,onChange:a.unref(ko),onContentChange:a.unref(xo),onPageChange:a.unref(wo),onRowClick:v},null,40,["compName","index","height","itemData","childItemData","onChange","onContentChange","onPageChange"])):a.createCommentVNode("",!0)]}),_:2},1032,["span"]))),256))]),_:1},8,["style"])])}}}),a6=Fl._export_sfc(e6,[["__scopeId","data-v-ab9a36ed"]]),l6={class:"layout-operate"},r6={class:"layout-module"},n6={class:"collapse-title-item"},t6={class:"collapse-title"},o6={class:"icon-content"},i6=["onClick"],s6={class:"comp-child"},c6=a.defineComponent({__name:"operate",props:{itemContents:{type:Object,default:()=>{}},originalItemContents:{type:Array,default:()=>[]},itemChildData:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,t=n;a.onMounted(()=>{Y()});const s=a.ref({}),u=a.ref({}),k=a.ref([]),f=T=>[{label:"高度",prop:"height",type:"input",value:T==null?void 0:T.height}],v=T=>{u.value=T,t("change",$(),!0)},y=a.ref([]),c=a.ref([]),E=T=>[{label:"占比",prop:"span",type:"input",value:T==null?void 0:T.span}],N=a.computed(()=>{const T=r==null?void 0:r.itemContents;return L.cloneDeep(T)}),O=a.computed(()=>{const T=N==null?void 0:N.value,x=T==null?void 0:T.find(g=>{const{key:H}=g;return H==="baseConfig"});return x==null?void 0:x.contents}),w=a.computed(()=>{const T=N==null?void 0:N.value,x=T==null?void 0:T.find(g=>{const{key:H}=g;return H==="children"});return x==null?void 0:x.contents}),Y=()=>{var T;s.value=N.value||{},y.value=(w==null?void 0:w.value)||[],k.value=f(),k.value=(T=k.value)==null?void 0:T.map(x=>{var H;const{prop:g}=x;return x.value=(H=O.value)==null?void 0:H[g],x})};a.watch(()=>{var T;return(T=w==null?void 0:w.value)==null?void 0:T.length},()=>{var T;y.value=(w==null?void 0:w.value)||[],c.value=(T=w.value)==null?void 0:T.map(x=>E(x))},{immediate:!0});const _=(T,x)=>{const g=L.cloneDeep(w==null?void 0:w.value);g[x].span=T.span,y.value=g,t("change",$(),!0)},A=T=>Dt(T),Z=(T,x,g)=>{if(!T)return;const H=L.cloneDeep(w==null?void 0:w.value);H[g]&&(H[g].compData=T,y.value=H,t("change",$(),!0))},S=T=>{L.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{let x=L.cloneDeep(w==null?void 0:w.value);x=x==null?void 0:x.filter((g,H)=>T!==H),y.value=x,t("change",$(),!0),Wa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},$=()=>({compData:[{key:"baseConfig",contents:u.value},{key:"children",contents:y==null?void 0:y.value}]});return(T,x)=>{const g=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",l6,[a.createElementVNode("div",r6,[x[1]||(x[1]=a.createElementVNode("div",{class:"module-title"},"基础配置",-1)),a.createElementVNode("div",null,[a.createVNode(rl.ssForm,{rowContents:k.value,isEnableWrap:!0,onChange:x[0]||(x[0]=H=>v(H))},null,8,["rowContents"])])]),a.createVNode(Ps.default,{class:"collapse-content",collapseContents:w.value},{title:a.withCtx(({item:H,index:W})=>[a.createElementVNode("div",n6,[a.createElementVNode("div",t6,a.toDisplayString(H.name),1),a.createElementVNode("div",o6,[a.createElementVNode("div",{onClick:a.withModifiers(ae=>S(W),["stop"]),class:"icon-content"},[a.createVNode(g,{name:"Delete",style:{width:"16px",height:"16px"}})],8,i6)])])]),content:a.withCtx(({item:H,index:W})=>[a.createElementVNode("div",s6,[a.createElementVNode("div",null,[(a.openBlock(),a.createBlock(rl.ssForm,{rowContents:c.value[W],key:W,isEnableWrap:!0,onChange:ae=>_(ae,W)},null,8,["rowContents","onChange"]))]),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(A(H.comp+"Operate")),{itemContents:H==null?void 0:H.compData,originalItemContents:H.compData,onChange:ae=>Z(ae,H,W)},null,40,["itemContents","originalItemContents","onChange"]))])]),_:1},8,["collapseContents"])])}}}),u6=Fl._export_sfc(c6,[["__scopeId","data-v-ba05456e"]]),d6=typeof window<"u";var fs;d6&&((fs=window==null?void 0:window.navigator)!=null&&fs.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Jr(l){return l==null}function bc(){}const p6=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(p6)));function f6(){const l=new Map;return{on(n,r){const t=l.get(n);t!=null&&t.add(r)||l.set(n,new Set([r]))},off(n,r){const t=l.get(n);t&&t.delete(r)},clear(n){const r=l.get(n);r&&r.clear()},clearAll(){l.clear()},emit(n,...r){const t=l.get(n);t&&t.forEach(s=>{s(...r)})}}}function hs(l,n=16){if(typeof l!="function")return bc;const r=(...u)=>{l(...u)};if(n<=0)return kc(r);let t=0,s;return function(...u){const k=Date.now(),f=k-t;clearTimeout(s),f>=n?(t=k,r(...u)):s=setTimeout(()=>{t=Date.now(),r(...u)},Math.max(0,n-f))}}function h6(l,n=100){if(typeof l!="function")return bc;const r=(...s)=>{l(...s)};if(n<=0)return kc(r);let t;return function(...s){clearTimeout(t),t=setTimeout(()=>{r(...s)},n)}}function kc(l){if(typeof l!="function")return l;let n=!1,r,t;return function(...s){return r=s,n||(n=!0,t=Promise.resolve().then(()=>(n=!1,t=void 0,l(...r)))),t}}const Rt=new Set,xc=new WeakMap;function v6(){Rt.forEach(l=>{l(...xc.get(l))}),Rt.clear()}function Pr(l,...n){if(typeof l!="function")return l;xc.set(l,n),!Rt.has(l)&&(Rt.add(l),Rt.size===1&&Promise.resolve().then(v6))}const wc=Symbol("LAYOUT_KEY"),_c=Symbol("EMITTER_KEY");function m6(l){let n=0,r;for(let t=0,s=l.length;t<s;t++)r=l[t].y+l[t].h,r>n&&(n=r);return n}function fi(l){const n=Array(l.length);for(let r=0,t=l.length;r<t;r++)n[r]=y6(l[r]);return n}function y6(l){return{...l}}function Cc(l,n){return!(l===n||l.x+l.w<=n.x||l.x>=n.x+n.w||l.y+l.h<=n.y||l.y>=n.y+n.h)}function bt(l,n,r){const t=Sc(l),s=Dc(l),u=Array(l.length);for(let k=0,f=s.length;k<f;k++){let v=s[k];v.static||(v=g6(t,v,n,r),t.push(v)),u[l.findIndex(y=>y.i===v.i)]=v,v.moved=!1}return u}function g6(l,n,r,t){if(r)for(;n.y>0&&!Pt(l,n);)n.y--;else if(t){const u=t[n.i].y;for(;n.y>u&&!Pt(l,n);)n.y--}let s;for(;s=Pt(l,n);)n.y=s.y+s.h;return n}function b6(l,n){const r=Sc(l);for(let t=0,s=l.length;t<s;t++){const u=l[t];if(u.x+u.w>n.cols&&(u.x=n.cols-u.w),u.x<0&&(u.x=0,u.w=n.cols),!u.static)r.push(u);else for(;Pt(r,u);)u.y++}return l}function vs(l,n){for(let r=0,t=l.length;r<t;r++)if(l[r].i===n)return l[r]}function Pt(l,n){for(let r=0,t=l.length;r<t;r++)if(Cc(l[r],n))return l[r]}function Ec(l,n){return l.filter(r=>Cc(r,n))}function Sc(l){return l.filter(n=>n.static)}function hi(l,n,r,t,s=!1,u=!1){if(n.static)return l;const k=n.x,f=n.y,v=t&&n.y>t;typeof r=="number"&&(n.x=r),typeof t=="number"&&(n.y=t),n.moved=!0;let y=Dc(l);v&&(y=y.reverse());const c=Ec(y,n);if(u&&c.length)return n.x=k,n.y=f,n.moved=!1,l;for(let E=0,N=c.length;E<N;E++){const O=c[E];O.moved||n.y>O.y&&n.y-O.y>O.h/4||(O.static?l=ms(l,O,n,s):l=ms(l,n,O,s))}return l}function ms(l,n,r,t){if(t){const s={x:r.x,y:r.y,w:r.w,h:r.h};if(s.y=Math.max(n.y-r.h,0),!Pt(l,s))return hi(l,r,void 0,s.y,!1)}return hi(l,r,void 0,r.y+1,!1)}function k6(l,n,r,t){const s="translate3d("+n+"px,"+l+"px, 0)";return{transform:s,WebkitTransform:s,MozTransform:s,msTransform:s,OTransform:s,width:r+"px",height:t+"px",position:"absolute"}}function x6(l,n,r,t){const s="translate3d("+n*-1+"px,"+l+"px, 0)";return{transform:s,WebkitTransform:s,MozTransform:s,msTransform:s,OTransform:s,width:r+"px",height:t+"px",position:"absolute"}}function w6(l,n,r,t){return{top:l+"px",left:n+"px",width:r+"px",height:t+"px",position:"absolute"}}function _6(l,n,r,t){return{top:l+"px",right:n+"px",width:r+"px",height:t+"px",position:"absolute"}}function Dc(l){return Array.from(l).sort(function(n,r){return n.y===r.y&&n.x===r.x?0:n.y>r.y||n.y===r.y&&n.x>r.x?1:-1})}function C6(l,n){n=n||"Layout";const r=["x","y","w","h"],t=[];if(!Array.isArray(l))throw new Error(n+" must be an array!");for(let s=0,u=l.length;s<u;s++){const k=l[s];for(let f=0;f<r.length;f++)if(typeof k[r[f]]!="number")throw new Error("VueGridLayout: "+n+"["+s+"]."+r[f]+" must be a number!");if(k.i===void 0||k.i===null)throw new Error("VueGridLayout: "+n+"["+s+"].i cannot be null!");if(typeof k.i!="number"&&typeof k.i!="string")throw new Error("VueGridLayout: "+n+"["+s+"].i must be a string or number!");if(t.indexOf(k.i)>=0)throw new Error("VueGridLayout: "+n+"["+s+"].i must be unique!");if(t.push(k.i),k.static!==void 0&&typeof k.static!="boolean")throw new Error("VueGridLayout: "+n+"["+s+"].static must be a boolean!")}}function E6(l,n="vgl"){const r=()=>`${n}-${l}`;return{b:r,be:t=>`${r()}__${t}`,bm:t=>`${r()}--${t}`,bem:(t,s)=>`${r()}__${t}--${s}`}}function ys(l){return S6(l)}function S6(l){var n;const r=((n=l.target)==null?void 0:n.offsetParent)||document.body,t=l.offsetParent===document.body?{left:0,top:0}:r.getBoundingClientRect(),s=l.clientX+r.scrollLeft-t.left,u=l.clientY+r.scrollTop-t.top;return{x:s,y:u}}function gs(l,n,r,t){return D6(l)?{deltaX:r-l,deltaY:t-n,lastX:l,lastY:n,x:r,y:t}:{deltaX:0,deltaY:0,lastX:r,lastY:t,x:r,y:t}}function D6(l){return typeof l=="number"&&!Number.isNaN(l)}function B6(l,n){const r=Nc(l);let t=r[0];for(let s=1,u=r.length;s<u;s++){const k=r[s];n>l[k]&&(t=k)}return t}function Bc(l,n){if(!n[l])throw new Error("ResponsiveGridLayout: `cols` entry for breakpoint "+l+" is missing!");return n[l]}function N6(l,n,r,t,s,u,k){if(n[t])return fi(n[t]);let f=l;const v=Nc(r),y=v.slice(v.indexOf(t));for(let c=0,E=y.length;c<E;c++){const N=y[c];if(n[N]){f=n[N];break}}return f=fi(f||[]),bt(b6(f,{cols:u}),k)}function Nc(l){return Object.keys(l).sort((n,r)=>l[n]-l[r])}let T6="auto";function A6(){return typeof document<"u"}function bs(){return A6()?typeof document.dir<"u"?document.dir:document.getElementsByTagName("html")[0].getAttribute("dir"):T6}var $t={exports:{}},M6=$t.exports,ks;function z6(){return ks||(ks=1,function(l,n){(function(r,t){l.exports=t()})(M6,function(){function r(i,o){var d=Object.keys(i);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(i);o&&(m=m.filter(function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable})),d.push.apply(d,m)}return d}function t(i){for(var o=1;o<arguments.length;o++){var d=arguments[o]!=null?arguments[o]:{};o%2?r(Object(d),!0).forEach(function(m){v(i,m,d[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(d)):r(Object(d)).forEach(function(m){Object.defineProperty(i,m,Object.getOwnPropertyDescriptor(d,m))})}return i}function s(i){return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},s(i)}function u(i,o){if(!(i instanceof o))throw new TypeError("Cannot call a class as a function")}function k(i,o){for(var d=0;d<o.length;d++){var m=o[d];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(i,Y(m.key),m)}}function f(i,o,d){return o&&k(i.prototype,o),Object.defineProperty(i,"prototype",{writable:!1}),i}function v(i,o,d){return(o=Y(o))in i?Object.defineProperty(i,o,{value:d,enumerable:!0,configurable:!0,writable:!0}):i[o]=d,i}function y(i,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(o&&o.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),o&&E(i,o)}function c(i){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},c(i)}function E(i,o){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,m){return d.__proto__=m,d},E(i,o)}function N(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function O(i){var o=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var d,m=c(i);if(o){var C=c(this).constructor;d=Reflect.construct(m,arguments,C)}else d=m.apply(this,arguments);return function(z,U){if(U&&(typeof U=="object"||typeof U=="function"))return U;if(U!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return N(z)}(this,d)}}function w(){return w=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(i,o,d){var m=function(z,U){for(;!Object.prototype.hasOwnProperty.call(z,U)&&(z=c(z))!==null;);return z}(i,o);if(m){var C=Object.getOwnPropertyDescriptor(m,o);return C.get?C.get.call(arguments.length<3?i:d):C.value}},w.apply(this,arguments)}function Y(i){var o=function(d,m){if(typeof d!="object"||d===null)return d;var C=d[Symbol.toPrimitive];if(C!==void 0){var z=C.call(d,m);if(typeof z!="object")return z;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(d)}(i,"string");return typeof o=="symbol"?o:o+""}var _=function(i){return!(!i||!i.Window)&&i instanceof i.Window},A=void 0,Z=void 0;function S(i){A=i;var o=i.document.createTextNode("");o.ownerDocument!==i.document&&typeof i.wrap=="function"&&i.wrap(o)===o&&(i=i.wrap(i)),Z=i}function $(i){return _(i)?i:(i.ownerDocument||i).defaultView||Z.window}typeof window<"u"&&window&&S(window);var T=function(i){return!!i&&s(i)==="object"},x=function(i){return typeof i=="function"},g={window:function(i){return i===Z||_(i)},docFrag:function(i){return T(i)&&i.nodeType===11},object:T,func:x,number:function(i){return typeof i=="number"},bool:function(i){return typeof i=="boolean"},string:function(i){return typeof i=="string"},element:function(i){if(!i||s(i)!=="object")return!1;var o=$(i)||Z;return/object|function/.test(typeof Element>"u"?"undefined":s(Element))?i instanceof Element||i instanceof o.Element:i.nodeType===1&&typeof i.nodeName=="string"},plainObject:function(i){return T(i)&&!!i.constructor&&/function Object\b/.test(i.constructor.toString())},array:function(i){return T(i)&&i.length!==void 0&&x(i.splice)}};function H(i){var o=i.interaction;if(o.prepared.name==="drag"){var d=o.prepared.axis;d==="x"?(o.coords.cur.page.y=o.coords.start.page.y,o.coords.cur.client.y=o.coords.start.client.y,o.coords.velocity.client.y=0,o.coords.velocity.page.y=0):d==="y"&&(o.coords.cur.page.x=o.coords.start.page.x,o.coords.cur.client.x=o.coords.start.client.x,o.coords.velocity.client.x=0,o.coords.velocity.page.x=0)}}function W(i){var o=i.iEvent,d=i.interaction;if(d.prepared.name==="drag"){var m=d.prepared.axis;if(m==="x"||m==="y"){var C=m==="x"?"y":"x";o.page[C]=d.coords.start.page[C],o.client[C]=d.coords.start.client[C],o.delta[C]=0}}}var ae={id:"actions/drag",install:function(i){var o=i.actions,d=i.Interactable,m=i.defaults;d.prototype.draggable=ae.draggable,o.map.drag=ae,o.methodDict.drag="draggable",m.actions.drag=ae.defaults},listeners:{"interactions:before-action-move":H,"interactions:action-resume":H,"interactions:action-move":W,"auto-start:check":function(i){var o=i.interaction,d=i.interactable,m=i.buttons,C=d.options.drag;if(C&&C.enabled&&(!o.pointerIsDown||!/mouse|pointer/.test(o.pointerType)||(m&d.options.drag.mouseButtons)!=0))return i.action={name:"drag",axis:C.lockAxis==="start"?C.startAxis:C.lockAxis},!1}},draggable:function(i){return g.object(i)?(this.options.drag.enabled=i.enabled!==!1,this.setPerAction("drag",i),this.setOnEvents("drag",i),/^(xy|x|y|start)$/.test(i.lockAxis)&&(this.options.drag.lockAxis=i.lockAxis),/^(xy|x|y)$/.test(i.startAxis)&&(this.options.drag.startAxis=i.startAxis),this):g.bool(i)?(this.options.drag.enabled=i,this):this.options.drag},beforeMove:H,move:W,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(i){return i.search("drag")===0}},ge=ae,Oe={init:function(i){var o=i;Oe.document=o.document,Oe.DocumentFragment=o.DocumentFragment||we,Oe.SVGElement=o.SVGElement||we,Oe.SVGSVGElement=o.SVGSVGElement||we,Oe.SVGElementInstance=o.SVGElementInstance||we,Oe.Element=o.Element||we,Oe.HTMLElement=o.HTMLElement||Oe.Element,Oe.Event=o.Event,Oe.Touch=o.Touch||we,Oe.PointerEvent=o.PointerEvent||o.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function we(){}var te=Oe,me={init:function(i){var o=te.Element,d=i.navigator||{};me.supportsTouch="ontouchstart"in i||g.func(i.DocumentTouch)&&te.document instanceof i.DocumentTouch,me.supportsPointerEvent=d.pointerEnabled!==!1&&!!te.PointerEvent,me.isIOS=/iP(hone|od|ad)/.test(d.platform),me.isIOS7=/iP(hone|od|ad)/.test(d.platform)&&/OS 7[^\d]/.test(d.appVersion),me.isIe9=/MSIE 9/.test(d.userAgent),me.isOperaMobile=d.appName==="Opera"&&me.supportsTouch&&/Presto/.test(d.userAgent),me.prefixedMatchesSelector="matches"in o.prototype?"matches":"webkitMatchesSelector"in o.prototype?"webkitMatchesSelector":"mozMatchesSelector"in o.prototype?"mozMatchesSelector":"oMatchesSelector"in o.prototype?"oMatchesSelector":"msMatchesSelector",me.pEventTypes=me.supportsPointerEvent?te.PointerEvent===i.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,me.wheelEvent=te.document&&"onmousewheel"in te.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},J=me;function ue(i,o){if(i.contains)return i.contains(o);for(;o;){if(o===i)return!0;o=o.parentNode}return!1}function Ye(i,o){for(;g.element(i);){if(oe(i,o))return i;i=Sa(i)}return null}function Sa(i){var o=i.parentNode;if(g.docFrag(o)){for(;(o=o.host)&&g.docFrag(o););return o}return o}function oe(i,o){return Z!==A&&(o=o.replace(/\/deep\//g," ")),i[J.prefixedMatchesSelector](o)}var D=function(i){return i.parentNode||i.host};function ne(i,o){for(var d,m=[],C=i;(d=D(C))&&C!==o&&d!==C.ownerDocument;)m.unshift(C),C=d;return m}function ve(i,o,d){for(;g.element(i);){if(oe(i,o))return!0;if((i=Sa(i))===d)return oe(i,o)}return!1}function se(i){return i.correspondingUseElement||i}function xe(i){var o=i instanceof te.SVGElement?i.getBoundingClientRect():i.getClientRects()[0];return o&&{left:o.left,right:o.right,top:o.top,bottom:o.bottom,width:o.width||o.right-o.left,height:o.height||o.bottom-o.top}}function ta(i){var o,d=xe(i);if(!J.isIOS7&&d){var m={x:(o=(o=$(i))||Z).scrollX||o.document.documentElement.scrollLeft,y:o.scrollY||o.document.documentElement.scrollTop};d.left+=m.x,d.right+=m.x,d.top+=m.y,d.bottom+=m.y}return d}function wa(i){for(var o=[];i;)o.push(i),i=Sa(i);return o}function Ia(i){return!!g.string(i)&&(te.document.querySelector(i),!0)}function le(i,o){for(var d in o)i[d]=o[d];return i}function ra(i,o,d){return i==="parent"?Sa(d):i==="self"?o.getRect(d):Ye(d,i)}function Ve(i,o,d,m){var C=i;return g.string(C)?C=ra(C,o,d):g.func(C)&&(C=C.apply(void 0,m)),g.element(C)&&(C=ta(C)),C}function _a(i){return i&&{x:"x"in i?i.x:i.left,y:"y"in i?i.y:i.top}}function Fe(i){return!i||"x"in i&&"y"in i||((i=le({},i)).x=i.left||0,i.y=i.top||0,i.width=i.width||(i.right||0)-i.x,i.height=i.height||(i.bottom||0)-i.y),i}function _e(i,o,d){i.left&&(o.left+=d.x),i.right&&(o.right+=d.x),i.top&&(o.top+=d.y),i.bottom&&(o.bottom+=d.y),o.width=o.right-o.left,o.height=o.bottom-o.top}function ze(i,o,d){var m=d&&i.options[d];return _a(Ve(m&&m.origin||i.options.origin,i,o,[i&&o]))||{x:0,y:0}}function Ge(i,o){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(de){return!0},m=arguments.length>3?arguments[3]:void 0;if(m=m||{},g.string(i)&&i.search(" ")!==-1&&(i=Ba(i)),g.array(i))return i.forEach(function(de){return Ge(de,o,d,m)}),m;if(g.object(i)&&(o=i,i=""),g.func(o)&&d(i))m[i]=m[i]||[],m[i].push(o);else if(g.array(o))for(var C=0,z=o;C<z.length;C++){var U=z[C];Ge(i,U,d,m)}else if(g.object(o))for(var X in o)Ge(Ba(X).map(function(de){return"".concat(i).concat(de)}),o[X],d,m);return m}function Ba(i){return i.trim().split(/ +/)}var Ja=function(i,o){return Math.sqrt(i*i+o*o)},R=["webkit","moz"];function j(i,o){i.__set||(i.__set={});var d=function(C){if(R.some(function(z){return C.indexOf(z)===0}))return 1;typeof i[C]!="function"&&C!=="__set"&&Object.defineProperty(i,C,{get:function(){return C in i.__set?i.__set[C]:i.__set[C]=o[C]},set:function(z){i.__set[C]=z},configurable:!0})};for(var m in o)d(m);return i}function G(i,o){i.page=i.page||{},i.page.x=o.page.x,i.page.y=o.page.y,i.client=i.client||{},i.client.x=o.client.x,i.client.y=o.client.y,i.timeStamp=o.timeStamp}function V(i){i.page.x=0,i.page.y=0,i.client.x=0,i.client.y=0}function K(i){return i instanceof te.Event||i instanceof te.Touch}function Ne(i,o,d){return i=i||"page",(d=d||{}).x=o[i+"X"],d.y=o[i+"Y"],d}function Q(i,o){return o=o||{x:0,y:0},J.isOperaMobile&&K(i)?(Ne("screen",i,o),o.x+=window.scrollX,o.y+=window.scrollY):Ne("page",i,o),o}function ke(i){return g.number(i.pointerId)?i.pointerId:i.identifier}function pe(i,o,d){var m=o.length>1?Pe(o):o[0];Q(m,i.page),function(C,z){z=z||{},J.isOperaMobile&&K(C)?Ne("screen",C,z):Ne("client",C,z)}(m,i.client),i.timeStamp=d}function je(i){var o=[];return g.array(i)?(o[0]=i[0],o[1]=i[1]):i.type==="touchend"?i.touches.length===1?(o[0]=i.touches[0],o[1]=i.changedTouches[0]):i.touches.length===0&&(o[0]=i.changedTouches[0],o[1]=i.changedTouches[1]):(o[0]=i.touches[0],o[1]=i.touches[1]),o}function Pe(i){for(var o={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},d=0;d<i.length;d++){var m=i[d];for(var C in o)o[C]+=m[C]}for(var z in o)o[z]/=i.length;return o}function ca(i){if(!i.length)return null;var o=je(i),d=Math.min(o[0].pageX,o[1].pageX),m=Math.min(o[0].pageY,o[1].pageY),C=Math.max(o[0].pageX,o[1].pageX),z=Math.max(o[0].pageY,o[1].pageY);return{x:d,y:m,left:d,top:m,right:C,bottom:z,width:C-d,height:z-m}}function ka(i,o){var d=o+"X",m=o+"Y",C=je(i),z=C[0][d]-C[1][d],U=C[0][m]-C[1][m];return Ja(z,U)}function Ie(i,o){var d=o+"X",m=o+"Y",C=je(i),z=C[1][d]-C[0][d],U=C[1][m]-C[0][m];return 180*Math.atan2(U,z)/Math.PI}function fa(i){return g.string(i.pointerType)?i.pointerType:g.number(i.pointerType)?[void 0,void 0,"touch","pen","mouse"][i.pointerType]:/touch/.test(i.type||"")||i instanceof te.Touch?"touch":"mouse"}function Re(i){var o=g.func(i.composedPath)?i.composedPath():i.path;return[se(o?o[0]:i.target),se(i.currentTarget)]}var Ca=function(){function i(o){u(this,i),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=o}return f(i,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),i}();Object.defineProperty(Ca.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var Ue=function(i,o){for(var d=0;d<o.length;d++){var m=o[d];i.push(m)}return i},ba=function(i){return Ue([],i)},ce=function(i,o){for(var d=0;d<i.length;d++)if(o(i[d],d,i))return d;return-1},xa=function(i,o){return i[ce(i,o)]},ye=function(i){y(d,i);var o=O(d);function d(m,C,z){var U;u(this,d),(U=o.call(this,C._interaction)).dropzone=void 0,U.dragEvent=void 0,U.relatedTarget=void 0,U.draggable=void 0,U.propagationStopped=!1,U.immediatePropagationStopped=!1;var X=z==="dragleave"?m.prev:m.cur,de=X.element,Te=X.dropzone;return U.type=z,U.target=de,U.currentTarget=de,U.dropzone=Te,U.dragEvent=C,U.relatedTarget=C.target,U.draggable=C.interactable,U.timeStamp=C.timeStamp,U}return f(d,[{key:"reject",value:function(){var m=this,C=this._interaction.dropState;if(this.type==="dropactivate"||this.dropzone&&C.cur.dropzone===this.dropzone&&C.cur.element===this.target)if(C.prev.dropzone=this.dropzone,C.prev.element=this.target,C.rejected=!0,C.events.enter=null,this.stopImmediatePropagation(),this.type==="dropactivate"){var z=C.activeDrops,U=ce(z,function(de){var Te=de.dropzone,fe=de.element;return Te===m.dropzone&&fe===m.target});C.activeDrops.splice(U,1);var X=new d(C,this.dragEvent,"dropdeactivate");X.dropzone=this.dropzone,X.target=this.target,this.dropzone.fire(X)}else this.dropzone.fire(new d(C,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),d}(Ca);function Da(i,o){for(var d=0,m=i.slice();d<m.length;d++){var C=m[d],z=C.dropzone,U=C.element;o.dropzone=z,o.target=U,z.fire(o),o.propagationStopped=o.immediatePropagationStopped=!1}}function Ze(i,o){for(var d=function(z,U){for(var X=[],de=0,Te=z.interactables.list;de<Te.length;de++){var fe=Te[de];if(fe.options.drop.enabled){var aa=fe.options.drop.accept;if(!(g.element(aa)&&aa!==U||g.string(aa)&&!oe(U,aa)||g.func(aa)&&!aa({dropzone:fe,draggableElement:U})))for(var Na=0,Xa=fe.getAllElements();Na<Xa.length;Na++){var Ma=Xa[Na];Ma!==U&&X.push({dropzone:fe,element:Ma,rect:fe.getRect(Ma)})}}}return X}(i,o),m=0;m<d.length;m++){var C=d[m];C.rect=C.dropzone.getRect(C.element)}return d}function Je(i,o,d){for(var m=i.dropState,C=i.interactable,z=i.element,U=[],X=0,de=m.activeDrops;X<de.length;X++){var Te=de[X],fe=Te.dropzone,aa=Te.element,Na=Te.rect,Xa=fe.dropCheck(o,d,C,z,aa,Na);U.push(Xa?aa:null)}var Ma=function(el){for(var ul,fl,gl,zl=[],Hl=0;Hl<el.length;Hl++){var Tl=el[Hl],Ll=el[ul];if(Tl&&Hl!==ul)if(Ll){var Tr=D(Tl),cr=D(Ll);if(Tr!==Tl.ownerDocument)if(cr!==Tl.ownerDocument)if(Tr!==cr){zl=zl.length?zl:ne(Ll);var $r=void 0;if(Ll instanceof te.HTMLElement&&Tl instanceof te.SVGElement&&!(Tl instanceof te.SVGSVGElement)){if(Tl===cr)continue;$r=Tl.ownerSVGElement}else $r=Tl;for(var Rr=ne($r,Ll.ownerDocument),on=0;Rr[on]&&Rr[on]===zl[on];)on++;var Xn=[Rr[on-1],Rr[on],zl[on]];if(Xn[0])for(var Jn=Xn[0].lastChild;Jn;){if(Jn===Xn[1]){ul=Hl,zl=Rr;break}if(Jn===Xn[2])break;Jn=Jn.previousSibling}}else gl=Ll,(parseInt($(fl=Tl).getComputedStyle(fl).zIndex,10)||0)>=(parseInt($(gl).getComputedStyle(gl).zIndex,10)||0)&&(ul=Hl);else ul=Hl}else ul=Hl}return ul}(U);return m.activeDrops[Ma]||null}function Ee(i,o,d){var m=i.dropState,C={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return d.type==="dragstart"&&(C.activate=new ye(m,d,"dropactivate"),C.activate.target=null,C.activate.dropzone=null),d.type==="dragend"&&(C.deactivate=new ye(m,d,"dropdeactivate"),C.deactivate.target=null,C.deactivate.dropzone=null),m.rejected||(m.cur.element!==m.prev.element&&(m.prev.dropzone&&(C.leave=new ye(m,d,"dragleave"),d.dragLeave=C.leave.target=m.prev.element,d.prevDropzone=C.leave.dropzone=m.prev.dropzone),m.cur.dropzone&&(C.enter=new ye(m,d,"dragenter"),d.dragEnter=m.cur.element,d.dropzone=m.cur.dropzone)),d.type==="dragend"&&m.cur.dropzone&&(C.drop=new ye(m,d,"drop"),d.dropzone=m.cur.dropzone,d.relatedTarget=m.cur.element),d.type==="dragmove"&&m.cur.dropzone&&(C.move=new ye(m,d,"dropmove"),d.dropzone=m.cur.dropzone)),C}function be(i,o){var d=i.dropState,m=d.activeDrops,C=d.cur,z=d.prev;o.leave&&z.dropzone.fire(o.leave),o.enter&&C.dropzone.fire(o.enter),o.move&&C.dropzone.fire(o.move),o.drop&&C.dropzone.fire(o.drop),o.deactivate&&Da(m,o.deactivate),d.prev.dropzone=C.dropzone,d.prev.element=C.element}function Se(i,o){var d=i.interaction,m=i.iEvent,C=i.event;if(m.type==="dragmove"||m.type==="dragend"){var z=d.dropState;o.dynamicDrop&&(z.activeDrops=Ze(o,d.element));var U=m,X=Je(d,U,C);z.rejected=z.rejected&&!!X&&X.dropzone===z.cur.dropzone&&X.element===z.cur.element,z.cur.dropzone=X&&X.dropzone,z.cur.element=X&&X.element,z.events=Ee(d,0,U)}}var ha={id:"actions/drop",install:function(i){var o=i.actions,d=i.interactStatic,m=i.Interactable,C=i.defaults;i.usePlugin(ge),m.prototype.dropzone=function(z){return function(U,X){if(g.object(X)){if(U.options.drop.enabled=X.enabled!==!1,X.listeners){var de=Ge(X.listeners),Te=Object.keys(de).reduce(function(aa,Na){return aa[/^(enter|leave)/.test(Na)?"drag".concat(Na):/^(activate|deactivate|move)/.test(Na)?"drop".concat(Na):Na]=de[Na],aa},{}),fe=U.options.drop.listeners;fe&&U.off(fe),U.on(Te),U.options.drop.listeners=Te}return g.func(X.ondrop)&&U.on("drop",X.ondrop),g.func(X.ondropactivate)&&U.on("dropactivate",X.ondropactivate),g.func(X.ondropdeactivate)&&U.on("dropdeactivate",X.ondropdeactivate),g.func(X.ondragenter)&&U.on("dragenter",X.ondragenter),g.func(X.ondragleave)&&U.on("dragleave",X.ondragleave),g.func(X.ondropmove)&&U.on("dropmove",X.ondropmove),/^(pointer|center)$/.test(X.overlap)?U.options.drop.overlap=X.overlap:g.number(X.overlap)&&(U.options.drop.overlap=Math.max(Math.min(1,X.overlap),0)),"accept"in X&&(U.options.drop.accept=X.accept),"checker"in X&&(U.options.drop.checker=X.checker),U}return g.bool(X)?(U.options.drop.enabled=X,U):U.options.drop}(this,z)},m.prototype.dropCheck=function(z,U,X,de,Te,fe){return function(aa,Na,Xa,Ma,el,ul,fl){var gl=!1;if(!(fl=fl||aa.getRect(ul)))return!!aa.options.drop.checker&&aa.options.drop.checker(Na,Xa,gl,aa,ul,Ma,el);var zl=aa.options.drop.overlap;if(zl==="pointer"){var Hl=ze(Ma,el,"drag"),Tl=Q(Na);Tl.x+=Hl.x,Tl.y+=Hl.y;var Ll=Tl.x>fl.left&&Tl.x<fl.right,Tr=Tl.y>fl.top&&Tl.y<fl.bottom;gl=Ll&&Tr}var cr=Ma.getRect(el);if(cr&&zl==="center"){var $r=cr.left+cr.width/2,Rr=cr.top+cr.height/2;gl=$r>=fl.left&&$r<=fl.right&&Rr>=fl.top&&Rr<=fl.bottom}return cr&&g.number(zl)&&(gl=Math.max(0,Math.min(fl.right,cr.right)-Math.max(fl.left,cr.left))*Math.max(0,Math.min(fl.bottom,cr.bottom)-Math.max(fl.top,cr.top))/(cr.width*cr.height)>=zl),aa.options.drop.checker&&(gl=aa.options.drop.checker(Na,Xa,gl,aa,ul,Ma,el)),gl}(this,z,U,X,de,Te,fe)},d.dynamicDrop=function(z){return g.bool(z)?(i.dynamicDrop=z,d):i.dynamicDrop},le(o.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),o.methodDict.drop="dropzone",i.dynamicDrop=!1,C.actions.drop=ha.defaults},listeners:{"interactions:before-action-start":function(i){var o=i.interaction;o.prepared.name==="drag"&&(o.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(i,o){var d=i.interaction,m=(i.event,i.iEvent);if(d.prepared.name==="drag"){var C=d.dropState;C.activeDrops=[],C.events={},C.activeDrops=Ze(o,d.element),C.events=Ee(d,0,m),C.events.activate&&(Da(C.activeDrops,C.events.activate),o.fire("actions/drop:start",{interaction:d,dragEvent:m}))}},"interactions:action-move":Se,"interactions:after-action-move":function(i,o){var d=i.interaction,m=i.iEvent;if(d.prepared.name==="drag"){var C=d.dropState;be(d,C.events),o.fire("actions/drop:move",{interaction:d,dragEvent:m}),C.events={}}},"interactions:action-end":function(i,o){if(i.interaction.prepared.name==="drag"){var d=i.interaction,m=i.iEvent;Se(i,o),be(d,d.dropState.events),o.fire("actions/drop:end",{interaction:d,dragEvent:m})}},"interactions:stop":function(i){var o=i.interaction;if(o.prepared.name==="drag"){var d=o.dropState;d&&(d.activeDrops=null,d.events=null,d.cur.dropzone=null,d.cur.element=null,d.prev.dropzone=null,d.prev.element=null,d.rejected=!1)}}},getActiveDrops:Ze,getDrop:Je,getDropEvents:Ee,fireDropEvents:be,filterEventType:function(i){return i.search("drag")===0||i.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},oa=ha;function Qa(i){var o=i.interaction,d=i.iEvent,m=i.phase;if(o.prepared.name==="gesture"){var C=o.pointers.map(function(Te){return Te.pointer}),z=m==="start",U=m==="end",X=o.interactable.options.deltaSource;if(d.touches=[C[0],C[1]],z)d.distance=ka(C,X),d.box=ca(C),d.scale=1,d.ds=0,d.angle=Ie(C,X),d.da=0,o.gesture.startDistance=d.distance,o.gesture.startAngle=d.angle;else if(U||o.pointers.length<2){var de=o.prevEvent;d.distance=de.distance,d.box=de.box,d.scale=de.scale,d.ds=0,d.angle=de.angle,d.da=0}else d.distance=ka(C,X),d.box=ca(C),d.scale=d.distance/o.gesture.startDistance,d.angle=Ie(C,X),d.ds=d.scale-o.gesture.scale,d.da=d.angle-o.gesture.angle;o.gesture.distance=d.distance,o.gesture.angle=d.angle,g.number(d.scale)&&d.scale!==1/0&&!isNaN(d.scale)&&(o.gesture.scale=d.scale)}}var Dl={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(i){var o=i.actions,d=i.Interactable,m=i.defaults;d.prototype.gesturable=function(C){return g.object(C)?(this.options.gesture.enabled=C.enabled!==!1,this.setPerAction("gesture",C),this.setOnEvents("gesture",C),this):g.bool(C)?(this.options.gesture.enabled=C,this):this.options.gesture},o.map.gesture=Dl,o.methodDict.gesture="gesturable",m.actions.gesture=Dl.defaults},listeners:{"interactions:action-start":Qa,"interactions:action-move":Qa,"interactions:action-end":Qa,"interactions:new":function(i){i.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(i){if(!(i.interaction.pointers.length<2)){var o=i.interactable.options.gesture;if(o&&o.enabled)return i.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(i){return i.search("gesture")===0}},Ol=Dl;function Za(i,o,d,m,C,z,U){if(!o)return!1;if(o===!0){var X=g.number(z.width)?z.width:z.right-z.left,de=g.number(z.height)?z.height:z.bottom-z.top;if(U=Math.min(U,Math.abs((i==="left"||i==="right"?X:de)/2)),X<0&&(i==="left"?i="right":i==="right"&&(i="left")),de<0&&(i==="top"?i="bottom":i==="bottom"&&(i="top")),i==="left"){var Te=X>=0?z.left:z.right;return d.x<Te+U}if(i==="top"){var fe=de>=0?z.top:z.bottom;return d.y<fe+U}if(i==="right")return d.x>(X>=0?z.right:z.left)-U;if(i==="bottom")return d.y>(de>=0?z.bottom:z.top)-U}return!!g.element(m)&&(g.element(o)?o===m:ve(m,o,C))}function qe(i){var o=i.iEvent,d=i.interaction;if(d.prepared.name==="resize"&&d.resizeAxes){var m=o;d.interactable.options.resize.square?(d.resizeAxes==="y"?m.delta.x=m.delta.y:m.delta.y=m.delta.x,m.axes="xy"):(m.axes=d.resizeAxes,d.resizeAxes==="x"?m.delta.y=0:d.resizeAxes==="y"&&(m.delta.x=0))}}var $e,ua,Qe={id:"actions/resize",before:["actions/drag"],install:function(i){var o=i.actions,d=i.browser,m=i.Interactable,C=i.defaults;Qe.cursors=function(z){return z.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"}}(d),Qe.defaultMargin=d.supportsTouch||d.supportsPointerEvent?20:10,m.prototype.resizable=function(z){return function(U,X,de){return g.object(X)?(U.options.resize.enabled=X.enabled!==!1,U.setPerAction("resize",X),U.setOnEvents("resize",X),g.string(X.axis)&&/^x$|^y$|^xy$/.test(X.axis)?U.options.resize.axis=X.axis:X.axis===null&&(U.options.resize.axis=de.defaults.actions.resize.axis),g.bool(X.preserveAspectRatio)?U.options.resize.preserveAspectRatio=X.preserveAspectRatio:g.bool(X.square)&&(U.options.resize.square=X.square),U):g.bool(X)?(U.options.resize.enabled=X,U):U.options.resize}(this,z,i)},o.map.resize=Qe,o.methodDict.resize="resizable",C.actions.resize=Qe.defaults},listeners:{"interactions:new":function(i){i.interaction.resizeAxes="xy"},"interactions:action-start":function(i){(function(o){var d=o.iEvent,m=o.interaction;if(m.prepared.name==="resize"&&m.prepared.edges){var C=d,z=m.rect;m._rects={start:le({},z),corrected:le({},z),previous:le({},z),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},C.edges=m.prepared.edges,C.rect=m._rects.corrected,C.deltaRect=m._rects.delta}})(i),qe(i)},"interactions:action-move":function(i){(function(o){var d=o.iEvent,m=o.interaction;if(m.prepared.name==="resize"&&m.prepared.edges){var C=d,z=m.interactable.options.resize.invert,U=z==="reposition"||z==="negate",X=m.rect,de=m._rects,Te=de.start,fe=de.corrected,aa=de.delta,Na=de.previous;if(le(Na,fe),U){if(le(fe,X),z==="reposition"){if(fe.top>fe.bottom){var Xa=fe.top;fe.top=fe.bottom,fe.bottom=Xa}if(fe.left>fe.right){var Ma=fe.left;fe.left=fe.right,fe.right=Ma}}}else fe.top=Math.min(X.top,Te.bottom),fe.bottom=Math.max(X.bottom,Te.top),fe.left=Math.min(X.left,Te.right),fe.right=Math.max(X.right,Te.left);for(var el in fe.width=fe.right-fe.left,fe.height=fe.bottom-fe.top,fe)aa[el]=fe[el]-Na[el];C.edges=m.prepared.edges,C.rect=fe,C.deltaRect=aa}})(i),qe(i)},"interactions:action-end":function(i){var o=i.iEvent,d=i.interaction;if(d.prepared.name==="resize"&&d.prepared.edges){var m=o;m.edges=d.prepared.edges,m.rect=d._rects.corrected,m.deltaRect=d._rects.delta}},"auto-start:check":function(i){var o=i.interaction,d=i.interactable,m=i.element,C=i.rect,z=i.buttons;if(C){var U=le({},o.coords.cur.page),X=d.options.resize;if(X&&X.enabled&&(!o.pointerIsDown||!/mouse|pointer/.test(o.pointerType)||(z&X.mouseButtons)!=0)){if(g.object(X.edges)){var de={left:!1,right:!1,top:!1,bottom:!1};for(var Te in de)de[Te]=Za(Te,X.edges[Te],U,o._latestPointer.eventTarget,m,C,X.margin||Qe.defaultMargin);de.left=de.left&&!de.right,de.top=de.top&&!de.bottom,(de.left||de.right||de.top||de.bottom)&&(i.action={name:"resize",edges:de})}else{var fe=X.axis!=="y"&&U.x>C.right-Qe.defaultMargin,aa=X.axis!=="x"&&U.y>C.bottom-Qe.defaultMargin;(fe||aa)&&(i.action={name:"resize",axes:(fe?"x":"")+(aa?"y":"")})}return!i.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(i){var o=i.edges,d=i.axis,m=i.name,C=Qe.cursors,z=null;if(d)z=C[m+d];else if(o){for(var U="",X=0,de=["top","bottom","left","right"];X<de.length;X++){var Te=de[X];o[Te]&&(U+=Te)}z=C[U]}return z},filterEventType:function(i){return i.search("resize")===0},defaultMargin:null},Ta=Qe,Fa={id:"actions",install:function(i){i.usePlugin(Ol),i.usePlugin(Ta),i.usePlugin(ge),i.usePlugin(oa)}},Ea=0,Ce={request:function(i){return $e(i)},cancel:function(i){return ua(i)},init:function(i){if($e=i.requestAnimationFrame,ua=i.cancelAnimationFrame,!$e)for(var o=["ms","moz","webkit","o"],d=0;d<o.length;d++){var m=o[d];$e=i["".concat(m,"RequestAnimationFrame")],ua=i["".concat(m,"CancelAnimationFrame")]||i["".concat(m,"CancelRequestAnimationFrame")]}$e=$e&&$e.bind(i),ua=ua&&ua.bind(i),$e||($e=function(C){var z=Date.now(),U=Math.max(0,16-(z-Ea)),X=i.setTimeout(function(){C(z+U)},U);return Ea=z+U,X},ua=function(C){return clearTimeout(C)})}},q={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(i){q.isScrolling=!0,Ce.cancel(q.i),i.autoScroll=q,q.interaction=i,q.prevTime=q.now(),q.i=Ce.request(q.scroll)},stop:function(){q.isScrolling=!1,q.interaction&&(q.interaction.autoScroll=null),Ce.cancel(q.i)},scroll:function(){var i=q.interaction,o=i.interactable,d=i.element,m=i.prepared.name,C=o.options[m].autoScroll,z=Le(C.container,o,d),U=q.now(),X=(U-q.prevTime)/1e3,de=C.speed*X;if(de>=1){var Te={x:q.x*de,y:q.y*de};if(Te.x||Te.y){var fe=Xe(z);g.window(z)?z.scrollBy(Te.x,Te.y):z&&(z.scrollLeft+=Te.x,z.scrollTop+=Te.y);var aa=Xe(z),Na={x:aa.x-fe.x,y:aa.y-fe.y};(Na.x||Na.y)&&o.fire({type:"autoscroll",target:d,interactable:o,delta:Na,interaction:i,container:z})}q.prevTime=U}q.isScrolling&&(Ce.cancel(q.i),q.i=Ce.request(q.scroll))},check:function(i,o){var d;return(d=i.options[o].autoScroll)==null?void 0:d.enabled},onInteractionMove:function(i){var o=i.interaction,d=i.pointer;if(o.interacting()&&q.check(o.interactable,o.prepared.name))if(o.simulation)q.x=q.y=0;else{var m,C,z,U,X=o.interactable,de=o.element,Te=o.prepared.name,fe=X.options[Te].autoScroll,aa=Le(fe.container,X,de);if(g.window(aa))U=d.clientX<q.margin,m=d.clientY<q.margin,C=d.clientX>aa.innerWidth-q.margin,z=d.clientY>aa.innerHeight-q.margin;else{var Na=xe(aa);U=d.clientX<Na.left+q.margin,m=d.clientY<Na.top+q.margin,C=d.clientX>Na.right-q.margin,z=d.clientY>Na.bottom-q.margin}q.x=C?1:U?-1:0,q.y=z?1:m?-1:0,q.isScrolling||(q.margin=fe.margin,q.speed=fe.speed,q.start(o))}}};function Le(i,o,d){return(g.string(i)?ra(i,o,d):i)||$(d)}function Xe(i){return g.window(i)&&(i=window.document.body),{x:i.scrollLeft,y:i.scrollTop}}var Oa={id:"auto-scroll",install:function(i){var o=i.defaults,d=i.actions;i.autoScroll=q,q.now=function(){return i.now()},d.phaselessTypes.autoscroll=!0,o.perAction.autoScroll=q.defaults},listeners:{"interactions:new":function(i){i.interaction.autoScroll=null},"interactions:destroy":function(i){i.interaction.autoScroll=null,q.stop(),q.interaction&&(q.interaction=null)},"interactions:stop":q.stop,"interactions:action-move":function(i){return q.onInteractionMove(i)}}},$a=Oa;function _l(i,o){var d=!1;return function(){return d||(Z.console.warn(o),d=!0),i.apply(this,arguments)}}function cl(i,o){return i.name=o.name,i.axis=o.axis,i.edges=o.edges,i}function nl(i){return g.bool(i)?(this.options.styleCursor=i,this):i===null?(delete this.options.styleCursor,this):this.options.styleCursor}function ml(i){return g.func(i)?(this.options.actionChecker=i,this):i===null?(delete this.options.actionChecker,this):this.options.actionChecker}var sl={id:"auto-start/interactableMethods",install:function(i){var o=i.Interactable;o.prototype.getAction=function(d,m,C,z){var U=function(X,de,Te,fe,aa){var Na=X.getRect(fe),Xa=de.buttons||{0:1,1:4,3:8,4:16}[de.button],Ma={action:null,interactable:X,interaction:Te,element:fe,rect:Na,buttons:Xa};return aa.fire("auto-start:check",Ma),Ma.action}(this,m,C,z,i);return this.options.actionChecker?this.options.actionChecker(d,m,U,this,z,C):U},o.prototype.ignoreFrom=_l(function(d){return this._backCompatOption("ignoreFrom",d)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),o.prototype.allowFrom=_l(function(d){return this._backCompatOption("allowFrom",d)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),o.prototype.actionChecker=ml,o.prototype.styleCursor=nl}};function tl(i,o,d,m,C){return o.testIgnoreAllow(o.options[i.name],d,m)&&o.options[i.name].enabled&&jl(o,d,i,C)?i:null}function Pa(i,o,d,m,C,z,U){for(var X=0,de=m.length;X<de;X++){var Te=m[X],fe=C[X],aa=Te.getAction(o,d,i,fe);if(aa){var Na=tl(aa,Te,fe,z,U);if(Na)return{action:Na,interactable:Te,element:fe}}}return{action:null,interactable:null,element:null}}function hl(i,o,d,m,C){var z=[],U=[],X=m;function de(fe){z.push(fe),U.push(X)}for(;g.element(X);){z=[],U=[],C.interactables.forEachMatch(X,de);var Te=Pa(i,o,d,z,U,m,C);if(Te.action&&!Te.interactable.options[Te.action.name].manualStart)return Te;X=Sa(X)}return{action:null,interactable:null,element:null}}function xl(i,o,d){var m=o.action,C=o.interactable,z=o.element;m=m||{name:null},i.interactable=C,i.element=z,cl(i.prepared,m),i.rect=C&&m.name?C.getRect(z):null,Il(i,d),d.fire("autoStart:prepared",{interaction:i})}function jl(i,o,d,m){var C=i.options,z=C[d.name].max,U=C[d.name].maxPerElement,X=m.autoStart.maxInteractions,de=0,Te=0,fe=0;if(!(z&&U&&X))return!1;for(var aa=0,Na=m.interactions.list;aa<Na.length;aa++){var Xa=Na[aa],Ma=Xa.prepared.name;if(Xa.interacting()&&(++de>=X||Xa.interactable===i&&((Te+=Ma===d.name?1:0)>=z||Xa.element===o&&(fe++,Ma===d.name&&fe>=U))))return!1}return X>0}function Xl(i,o){return g.number(i)?(o.autoStart.maxInteractions=i,this):o.autoStart.maxInteractions}function lr(i,o,d){var m=d.autoStart.cursorElement;m&&m!==i&&(m.style.cursor=""),i.ownerDocument.documentElement.style.cursor=o,i.style.cursor=o,d.autoStart.cursorElement=o?i:null}function Il(i,o){var d=i.interactable,m=i.element,C=i.prepared;if(i.pointerType==="mouse"&&d&&d.options.styleCursor){var z="";if(C.name){var U=d.options[C.name].cursorChecker;z=g.func(U)?U(C,d,m,i._interacting):o.actions.map[C.name].getCursor(C)}lr(i.element,z||"",o)}else o.autoStart.cursorElement&&lr(o.autoStart.cursorElement,"",o)}var kr={id:"auto-start/base",before:["actions"],install:function(i){var o=i.interactStatic,d=i.defaults;i.usePlugin(sl),d.base.actionChecker=null,d.base.styleCursor=!0,le(d.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),o.maxInteractions=function(m){return Xl(m,i)},i.autoStart={maxInteractions:1/0,withinInteractionLimit:jl,cursorElement:null}},listeners:{"interactions:down":function(i,o){var d=i.interaction,m=i.pointer,C=i.event,z=i.eventTarget;d.interacting()||xl(d,hl(d,m,C,z,o),o)},"interactions:move":function(i,o){(function(d,m){var C=d.interaction,z=d.pointer,U=d.event,X=d.eventTarget;C.pointerType!=="mouse"||C.pointerIsDown||C.interacting()||xl(C,hl(C,z,U,X,m),m)})(i,o),function(d,m){var C=d.interaction;if(C.pointerIsDown&&!C.interacting()&&C.pointerWasMoved&&C.prepared.name){m.fire("autoStart:before-start",d);var z=C.interactable,U=C.prepared.name;U&&z&&(z.options[U].manualStart||!jl(z,C.element,C.prepared,m)?C.stop():(C.start(C.prepared,z,C.element),Il(C,m)))}}(i,o)},"interactions:stop":function(i,o){var d=i.interaction,m=d.interactable;m&&m.options.styleCursor&&lr(d.element,"",o)}},maxInteractions:Xl,withinInteractionLimit:jl,validateAction:tl},pr=kr,Ir={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(i,o){var d=i.interaction,m=i.eventTarget,C=i.dx,z=i.dy;if(d.prepared.name==="drag"){var U=Math.abs(C),X=Math.abs(z),de=d.interactable.options.drag,Te=de.startAxis,fe=U>X?"x":U<X?"y":"xy";if(d.prepared.axis=de.lockAxis==="start"?fe[0]:de.lockAxis,fe!=="xy"&&Te!=="xy"&&Te!==fe){d.prepared.name=null;for(var aa=m,Na=function(Ma){if(Ma!==d.interactable){var el=d.interactable.options.drag;if(!el.manualStart&&Ma.testIgnoreAllow(el,aa,m)){var ul=Ma.getAction(d.downPointer,d.downEvent,d,aa);if(ul&&ul.name==="drag"&&function(fl,gl){if(!gl)return!1;var zl=gl.options.drag.startAxis;return fl==="xy"||zl==="xy"||zl===fl}(fe,Ma)&&pr.validateAction(ul,Ma,aa,m,o))return Ma}}};g.element(aa);){var Xa=o.interactables.forEachMatch(aa,Na);if(Xa){d.prepared.name="drag",d.interactable=Xa,d.element=aa;break}aa=Sa(aa)}}}}}};function Lr(i){var o=i.prepared&&i.prepared.name;if(!o)return null;var d=i.interactable.options;return d[o].hold||d[o].delay}var cn={id:"auto-start/hold",install:function(i){var o=i.defaults;i.usePlugin(pr),o.perAction.hold=0,o.perAction.delay=0},listeners:{"interactions:new":function(i){i.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(i){var o=i.interaction,d=Lr(o);d>0&&(o.autoStartHoldTimer=setTimeout(function(){o.start(o.prepared,o.interactable,o.element)},d))},"interactions:move":function(i){var o=i.interaction,d=i.duplicate;o.autoStartHoldTimer&&o.pointerWasMoved&&!d&&(clearTimeout(o.autoStartHoldTimer),o.autoStartHoldTimer=null)},"autoStart:before-start":function(i){var o=i.interaction;Lr(o)>0&&(o.prepared.name=null)}},getHoldDuration:Lr},gn=cn,bn={id:"auto-start",install:function(i){i.usePlugin(pr),i.usePlugin(gn),i.usePlugin(Ir)}},un=function(i){return/^(always|never|auto)$/.test(i)?(this.options.preventDefault=i,this):g.bool(i)?(this.options.preventDefault=i?"always":"never",this):this.options.preventDefault};function dn(i){var o=i.interaction,d=i.event;o.interactable&&o.interactable.checkAndPreventDefault(d)}var pn={id:"core/interactablePreventDefault",install:function(i){var o=i.Interactable;o.prototype.preventDefault=un,o.prototype.checkAndPreventDefault=function(d){return function(m,C,z){var U=m.options.preventDefault;if(U!=="never")if(U!=="always"){if(C.events.supportsPassive&&/^touch(start|move)$/.test(z.type)){var X=$(z.target).document,de=C.getDocOptions(X);if(!de||!de.events||de.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(z.type)||g.element(z.target)&&oe(z.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||z.preventDefault()}else z.preventDefault()}(this,i,d)},i.interactions.docEvents.push({type:"dragstart",listener:function(d){for(var m=0,C=i.interactions.list;m<C.length;m++){var z=C[m];if(z.element&&(z.element===d.target||ue(z.element,d.target)))return void z.interactable.checkAndPreventDefault(d)}}})},listeners:["down","move","up","cancel"].reduce(function(i,o){return i["interactions:".concat(o)]=dn,i},{})};function nr(i,o){if(o.phaselessTypes[i])return!0;for(var d in o.map)if(i.indexOf(d)===0&&i.substr(d.length)in o.phases)return!0;return!1}function Dr(i){var o={};for(var d in i){var m=i[d];g.plainObject(m)?o[d]=Dr(m):g.array(m)?o[d]=ba(m):o[d]=m}return o}var Cr=function(){function i(o){u(this,i),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=o,this.result=kn(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return f(i,[{key:"start",value:function(o,d){var m,C,z=o.phase,U=this.interaction,X=function(Te){var fe=Te.interactable.options[Te.prepared.name],aa=fe.modifiers;return aa&&aa.length?aa:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(Na){var Xa=fe[Na];return Xa&&Xa.enabled&&{options:Xa,methods:Xa._methods}}).filter(function(Na){return!!Na})}(U);this.prepareStates(X),this.startEdges=le({},U.edges),this.edges=le({},this.startEdges),this.startOffset=(m=U.rect,C=d,m?{left:C.x-m.left,top:C.y-m.top,right:m.right-C.x,bottom:m.bottom-C.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var de=this.fillArg({phase:z,pageCoords:d,preEnd:!1});return this.result=kn(),this.startAll(de),this.result=this.setAll(de)}},{key:"fillArg",value:function(o){var d=this.interaction;return o.interaction=d,o.interactable=d.interactable,o.element=d.element,o.rect||(o.rect=d.rect),o.edges||(o.edges=this.startEdges),o.startOffset=this.startOffset,o}},{key:"startAll",value:function(o){for(var d=0,m=this.states;d<m.length;d++){var C=m[d];C.methods.start&&(o.state=C,C.methods.start(o))}}},{key:"setAll",value:function(o){var d=o.phase,m=o.preEnd,C=o.skipModifiers,z=o.rect,U=o.edges;o.coords=le({},o.pageCoords),o.rect=le({},z),o.edges=le({},U);for(var X=C?this.states.slice(C):this.states,de=kn(o.coords,o.rect),Te=0;Te<X.length;Te++){var fe,aa=X[Te],Na=aa.options,Xa=le({},o.coords),Ma=null;(fe=aa.methods)!=null&&fe.set&&this.shouldDo(Na,m,d)&&(o.state=aa,Ma=aa.methods.set(o),_e(o.edges,o.rect,{x:o.coords.x-Xa.x,y:o.coords.y-Xa.y})),de.eventProps.push(Ma)}le(this.edges,o.edges),de.delta.x=o.coords.x-o.pageCoords.x,de.delta.y=o.coords.y-o.pageCoords.y,de.rectDelta.left=o.rect.left-z.left,de.rectDelta.right=o.rect.right-z.right,de.rectDelta.top=o.rect.top-z.top,de.rectDelta.bottom=o.rect.bottom-z.bottom;var el=this.result.coords,ul=this.result.rect;if(el&&ul){var fl=de.rect.left!==ul.left||de.rect.right!==ul.right||de.rect.top!==ul.top||de.rect.bottom!==ul.bottom;de.changed=fl||el.x!==de.coords.x||el.y!==de.coords.y}return de}},{key:"applyToInteraction",value:function(o){var d=this.interaction,m=o.phase,C=d.coords.cur,z=d.coords.start,U=this.result,X=this.startDelta,de=U.delta;m==="start"&&le(this.startDelta,U.delta);for(var Te=0,fe=[[z,X],[C,de]];Te<fe.length;Te++){var aa=fe[Te],Na=aa[0],Xa=aa[1];Na.page.x+=Xa.x,Na.page.y+=Xa.y,Na.client.x+=Xa.x,Na.client.y+=Xa.y}var Ma=this.result.rectDelta,el=o.rect||d.rect;el.left+=Ma.left,el.right+=Ma.right,el.top+=Ma.top,el.bottom+=Ma.bottom,el.width=el.right-el.left,el.height=el.bottom-el.top}},{key:"setAndApply",value:function(o){var d=this.interaction,m=o.phase,C=o.preEnd,z=o.skipModifiers,U=this.setAll(this.fillArg({preEnd:C,phase:m,pageCoords:o.modifiedCoords||d.coords.cur.page}));if(this.result=U,!U.changed&&(!z||z<this.states.length)&&d.interacting())return!1;if(o.modifiedCoords){var X=d.coords.cur.page,de={x:o.modifiedCoords.x-X.x,y:o.modifiedCoords.y-X.y};U.coords.x+=de.x,U.coords.y+=de.y,U.delta.x+=de.x,U.delta.y+=de.y}this.applyToInteraction(o)}},{key:"beforeEnd",value:function(o){var d=o.interaction,m=o.event,C=this.states;if(C&&C.length){for(var z=!1,U=0;U<C.length;U++){var X=C[U];o.state=X;var de=X.options,Te=X.methods,fe=Te.beforeEnd&&Te.beforeEnd(o);if(fe)return this.endResult=fe,!1;z=z||!z&&this.shouldDo(de,!0,o.phase,!0)}z&&d.move({event:m,preEnd:!0})}}},{key:"stop",value:function(o){var d=o.interaction;if(this.states&&this.states.length){var m=le({states:this.states,interactable:d.interactable,element:d.element,rect:null},o);this.fillArg(m);for(var C=0,z=this.states;C<z.length;C++){var U=z[C];m.state=U,U.methods.stop&&U.methods.stop(m)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(o){this.states=[];for(var d=0;d<o.length;d++){var m=o[d],C=m.options,z=m.methods,U=m.name;this.states.push({options:C,methods:z,index:d,name:U})}return this.states}},{key:"restoreInteractionCoords",value:function(o){var d=o.interaction,m=d.coords,C=d.rect,z=d.modification;if(z.result){for(var U=z.startDelta,X=z.result,de=X.delta,Te=X.rectDelta,fe=0,aa=[[m.start,U],[m.cur,de]];fe<aa.length;fe++){var Na=aa[fe],Xa=Na[0],Ma=Na[1];Xa.page.x-=Ma.x,Xa.page.y-=Ma.y,Xa.client.x-=Ma.x,Xa.client.y-=Ma.y}C.left-=Te.left,C.right-=Te.right,C.top-=Te.top,C.bottom-=Te.bottom}}},{key:"shouldDo",value:function(o,d,m,C){return!(!o||o.enabled===!1||C&&!o.endOnly||o.endOnly&&!d||m==="start"&&!o.setStart)}},{key:"copyFrom",value:function(o){this.startOffset=o.startOffset,this.startDelta=o.startDelta,this.startEdges=o.startEdges,this.edges=o.edges,this.states=o.states.map(function(d){return Dr(d)}),this.result=kn(le({},o.result.coords),le({},o.result.rect))}},{key:"destroy",value:function(){for(var o in this)this[o]=null}}]),i}();function kn(i,o){return{rect:o,coords:i,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function xr(i,o){var d=i.defaults,m={start:i.start,set:i.set,beforeEnd:i.beforeEnd,stop:i.stop},C=function(z){var U=z||{};for(var X in U.enabled=U.enabled!==!1,d)X in U||(U[X]=d[X]);var de={options:U,methods:m,name:o,enable:function(){return U.enabled=!0,de},disable:function(){return U.enabled=!1,de}};return de};return o&&typeof o=="string"&&(C._defaults=d,C._methods=m),C}function tr(i){var o=i.iEvent,d=i.interaction.modification.result;d&&(o.modifiers=d.eventProps)}var tt={id:"modifiers/base",before:["actions"],install:function(i){i.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(i){var o=i.interaction;o.modification=new Cr(o)},"interactions:before-action-start":function(i){var o=i.interaction,d=i.interaction.modification;d.start(i,o.coords.start.page),o.edges=d.edges,d.applyToInteraction(i)},"interactions:before-action-move":function(i){var o=i.interaction,d=o.modification,m=d.setAndApply(i);return o.edges=d.edges,m},"interactions:before-action-end":function(i){var o=i.interaction,d=o.modification,m=d.beforeEnd(i);return o.edges=d.startEdges,m},"interactions:action-start":tr,"interactions:action-move":tr,"interactions:action-end":tr,"interactions:after-action-start":function(i){return i.interaction.modification.restoreInteractionCoords(i)},"interactions:after-action-move":function(i){return i.interaction.modification.restoreInteractionCoords(i)},"interactions:stop":function(i){return i.interaction.modification.stop(i)}}},rn=tt,nn={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Nn=function(i){y(d,i);var o=O(d);function d(m,C,z,U,X,de,Te){var fe;u(this,d),(fe=o.call(this,m)).relatedTarget=null,fe.screenX=void 0,fe.screenY=void 0,fe.button=void 0,fe.buttons=void 0,fe.ctrlKey=void 0,fe.shiftKey=void 0,fe.altKey=void 0,fe.metaKey=void 0,fe.page=void 0,fe.client=void 0,fe.delta=void 0,fe.rect=void 0,fe.x0=void 0,fe.y0=void 0,fe.t0=void 0,fe.dt=void 0,fe.duration=void 0,fe.clientX0=void 0,fe.clientY0=void 0,fe.velocity=void 0,fe.speed=void 0,fe.swipe=void 0,fe.axes=void 0,fe.preEnd=void 0,X=X||m.element;var aa=m.interactable,Na=(aa&&aa.options||nn).deltaSource,Xa=ze(aa,X,z),Ma=U==="start",el=U==="end",ul=Ma?N(fe):m.prevEvent,fl=Ma?m.coords.start:el?{page:ul.page,client:ul.client,timeStamp:m.coords.cur.timeStamp}:m.coords.cur;return fe.page=le({},fl.page),fe.client=le({},fl.client),fe.rect=le({},m.rect),fe.timeStamp=fl.timeStamp,el||(fe.page.x-=Xa.x,fe.page.y-=Xa.y,fe.client.x-=Xa.x,fe.client.y-=Xa.y),fe.ctrlKey=C.ctrlKey,fe.altKey=C.altKey,fe.shiftKey=C.shiftKey,fe.metaKey=C.metaKey,fe.button=C.button,fe.buttons=C.buttons,fe.target=X,fe.currentTarget=X,fe.preEnd=de,fe.type=Te||z+(U||""),fe.interactable=aa,fe.t0=Ma?m.pointers[m.pointers.length-1].downTime:ul.t0,fe.x0=m.coords.start.page.x-Xa.x,fe.y0=m.coords.start.page.y-Xa.y,fe.clientX0=m.coords.start.client.x-Xa.x,fe.clientY0=m.coords.start.client.y-Xa.y,fe.delta=Ma||el?{x:0,y:0}:{x:fe[Na].x-ul[Na].x,y:fe[Na].y-ul[Na].y},fe.dt=m.coords.delta.timeStamp,fe.duration=fe.timeStamp-fe.t0,fe.velocity=le({},m.coords.velocity[Na]),fe.speed=Ja(fe.velocity.x,fe.velocity.y),fe.swipe=el||U==="inertiastart"?fe.getSwipe():null,fe}return f(d,[{key:"getSwipe",value:function(){var m=this._interaction;if(m.prevEvent.speed<600||this.timeStamp-m.prevEvent.timeStamp>150)return null;var C=180*Math.atan2(m.prevEvent.velocityY,m.prevEvent.velocityX)/Math.PI;C<0&&(C+=360);var z=112.5<=C&&C<247.5,U=202.5<=C&&C<337.5;return{up:U,down:!U&&22.5<=C&&C<157.5,left:z,right:!z&&(292.5<=C||C<67.5),angle:C,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}}]),d}(Ca);Object.defineProperties(Nn.prototype,{pageX:{get:function(){return this.page.x},set:function(i){this.page.x=i}},pageY:{get:function(){return this.page.y},set:function(i){this.page.y=i}},clientX:{get:function(){return this.client.x},set:function(i){this.client.x=i}},clientY:{get:function(){return this.client.y},set:function(i){this.client.y=i}},dx:{get:function(){return this.delta.x},set:function(i){this.delta.x=i}},dy:{get:function(){return this.delta.y},set:function(i){this.delta.y=i}},velocityX:{get:function(){return this.velocity.x},set:function(i){this.velocity.x=i}},velocityY:{get:function(){return this.velocity.y},set:function(i){this.velocity.y=i}}});var ot=f(function i(o,d,m,C,z){u(this,i),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=o,this.pointer=d,this.event=m,this.downTime=C,this.downTarget=z}),Tn=function(i){return i.interactable="",i.element="",i.prepared="",i.pointerIsDown="",i.pointerWasMoved="",i._proxy="",i}({}),An=function(i){return i.start="",i.move="",i.end="",i.stop="",i.interacting="",i}({}),Qr=0,Hn=function(){function i(o){var d=this,m=o.pointerType,C=o.scopeFire;u(this,i),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=_l(function(fe){this.move(fe)},"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=Qr++,this._scopeFire=C,this.pointerType=m;var z=this;this._proxy={};var U=function(fe){Object.defineProperty(d._proxy,fe,{get:function(){return z[fe]}})};for(var X in Tn)U(X);var de=function(fe){Object.defineProperty(d._proxy,fe,{value:function(){return z[fe].apply(z,arguments)}})};for(var Te in An)de(Te);this._scopeFire("interactions:new",{interaction:this})}return f(i,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(o,d,m){var C=this.updatePointer(o,d,m,!0),z=this.pointers[C];this._scopeFire("interactions:down",{pointer:o,event:d,eventTarget:m,pointerIndex:C,pointerInfo:z,type:"down",interaction:this})}},{key:"start",value:function(o,d,m){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(o.name==="gesture"?2:1)||!d.options[o.name].enabled)&&(cl(this.prepared,o),this.interactable=d,this.element=m,this.rect=d.getRect(m),this.edges=this.prepared.edges?le({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(o,d,m){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(o,d,m,!1);var C,z,U=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(C=this.coords.cur.client.x-this.coords.start.client.x,z=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=Ja(C,z)>this.pointerMoveTolerance);var X,de,Te,fe=this.getPointerIndex(o),aa={pointer:o,pointerIndex:fe,pointerInfo:this.pointers[fe],event:d,type:"move",eventTarget:m,dx:C,dy:z,duplicate:U,interaction:this};U||(X=this.coords.velocity,de=this.coords.delta,Te=Math.max(de.timeStamp/1e3,.001),X.page.x=de.page.x/Te,X.page.y=de.page.y/Te,X.client.x=de.client.x/Te,X.client.y=de.client.y/Te,X.timeStamp=Te),this._scopeFire("interactions:move",aa),U||this.simulation||(this.interacting()&&(aa.type=null,this.move(aa)),this.pointerWasMoved&&G(this.coords.prev,this.coords.cur))}},{key:"move",value:function(o){o&&o.event||V(this.coords.delta),(o=le({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},o||{})).phase="move",this._doPhase(o)}},{key:"pointerUp",value:function(o,d,m,C){var z=this.getPointerIndex(o);z===-1&&(z=this.updatePointer(o,d,m,!1));var U=/cancel$/i.test(d.type)?"cancel":"up";this._scopeFire("interactions:".concat(U),{pointer:o,pointerIndex:z,pointerInfo:this.pointers[z],event:d,eventTarget:m,type:U,curEventTarget:C,interaction:this}),this.simulation||this.end(d),this.removePointer(o,d)}},{key:"documentBlur",value:function(o){this.end(o),this._scopeFire("interactions:blur",{event:o,type:"blur",interaction:this})}},{key:"end",value:function(o){var d;this._ending=!0,o=o||this._latestPointer.event,this.interacting()&&(d=this._doPhase({event:o,interaction:this,phase:"end"})),this._ending=!1,d===!0&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(o){var d=ke(o);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:ce(this.pointers,function(m){return m.id===d})}},{key:"getPointerInfo",value:function(o){return this.pointers[this.getPointerIndex(o)]}},{key:"updatePointer",value:function(o,d,m,C){var z,U,X,de=ke(o),Te=this.getPointerIndex(o),fe=this.pointers[Te];return C=C!==!1&&(C||/(down|start)$/i.test(d.type)),fe?fe.pointer=o:(fe=new ot(de,o,d,null,null),Te=this.pointers.length,this.pointers.push(fe)),pe(this.coords.cur,this.pointers.map(function(aa){return aa.pointer}),this._now()),z=this.coords.delta,U=this.coords.prev,X=this.coords.cur,z.page.x=X.page.x-U.page.x,z.page.y=X.page.y-U.page.y,z.client.x=X.client.x-U.client.x,z.client.y=X.client.y-U.client.y,z.timeStamp=X.timeStamp-U.timeStamp,C&&(this.pointerIsDown=!0,fe.downTime=this.coords.cur.timeStamp,fe.downTarget=m,j(this.downPointer,o),this.interacting()||(G(this.coords.start,this.coords.cur),G(this.coords.prev,this.coords.cur),this.downEvent=d,this.pointerWasMoved=!1)),this._updateLatestPointer(o,d,m),this._scopeFire("interactions:update-pointer",{pointer:o,event:d,eventTarget:m,down:C,pointerInfo:fe,pointerIndex:Te,interaction:this}),Te}},{key:"removePointer",value:function(o,d){var m=this.getPointerIndex(o);if(m!==-1){var C=this.pointers[m];this._scopeFire("interactions:remove-pointer",{pointer:o,event:d,eventTarget:null,pointerIndex:m,pointerInfo:C,interaction:this}),this.pointers.splice(m,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(o,d,m){this._latestPointer.pointer=o,this._latestPointer.event=d,this._latestPointer.eventTarget=m}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(o,d,m,C){return new Nn(this,o,this.prepared.name,d,this.element,m,C)}},{key:"_fireEvent",value:function(o){var d;(d=this.interactable)==null||d.fire(o),(!this.prevEvent||o.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=o)}},{key:"_doPhase",value:function(o){var d=o.event,m=o.phase,C=o.preEnd,z=o.type,U=this.rect;if(U&&m==="move"&&(_e(this.edges,U,this.coords.delta[this.interactable.options.deltaSource]),U.width=U.right-U.left,U.height=U.bottom-U.top),this._scopeFire("interactions:before-action-".concat(m),o)===!1)return!1;var X=o.iEvent=this._createPreparedEvent(d,m,C,z);return this._scopeFire("interactions:action-".concat(m),o),m==="start"&&(this.prevEvent=X),this._fireEvent(X),this._scopeFire("interactions:after-action-".concat(m),o),!0}},{key:"_now",value:function(){return Date.now()}}]),i}();function Bl(i){yr(i.interaction)}function yr(i){if(!function(d){return!(!d.offset.pending.x&&!d.offset.pending.y)}(i))return!1;var o=i.offset.pending;return Al(i.coords.cur,o),Al(i.coords.delta,o),_e(i.edges,i.rect,o),o.x=0,o.y=0,!0}function Gl(i){var o=i.x,d=i.y;this.offset.pending.x+=o,this.offset.pending.y+=d,this.offset.total.x+=o,this.offset.total.y+=d}function Al(i,o){var d=i.page,m=i.client,C=o.x,z=o.y;d.x+=C,d.y+=z,m.x+=C,m.y+=z}An.offsetBy="";var Ml={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(i){i.Interaction.prototype.offsetBy=Gl},listeners:{"interactions:new":function(i){i.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(i){return function(o){o.pointerIsDown&&(Al(o.coords.cur,o.offset.total),o.offset.pending.x=0,o.offset.pending.y=0)}(i.interaction)},"interactions:before-action-start":Bl,"interactions:before-action-move":Bl,"interactions:before-action-end":function(i){var o=i.interaction;if(yr(o))return o.move({offset:!0}),o.end(),!1},"interactions:stop":function(i){var o=i.interaction;o.offset.total.x=0,o.offset.total.y=0,o.offset.pending.x=0,o.offset.pending.y=0}}},Vl=Ml,fr=function(){function i(o){u(this,i),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=o}return f(i,[{key:"start",value:function(o){var d=this.interaction,m=Zl(d);if(!m||!m.enabled)return!1;var C=d.coords.velocity.client,z=Ja(C.x,C.y),U=this.modification||(this.modification=new Cr(d));if(U.copyFrom(d.modification),this.t0=d._now(),this.allowResume=m.allowResume,this.v0=z,this.currentOffset={x:0,y:0},this.startCoords=d.coords.cur.page,this.modifierArg=U.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-d.coords.cur.timeStamp<50&&z>m.minSpeed&&z>m.endSpeed)this.startInertia();else{if(U.result=U.setAll(this.modifierArg),!U.result.changed)return!1;this.startSmoothEnd()}return d.modification.result.rect=null,d.offsetBy(this.targetOffset),d._doPhase({interaction:d,event:o,phase:"inertiastart"}),d.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),d.modification.result.rect=null,this.active=!0,d.simulation=this,!0}},{key:"startInertia",value:function(){var o=this,d=this.interaction.coords.velocity.client,m=Zl(this.interaction),C=m.resistance,z=-Math.log(m.endSpeed/this.v0)/C;this.targetOffset={x:(d.x-z)/C,y:(d.y-z)/C},this.te=z,this.lambda_v0=C/this.v0,this.one_ve_v0=1-m.endSpeed/this.v0;var U=this.modification,X=this.modifierArg;X.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},U.result=U.setAll(X),U.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+U.result.delta.x,y:this.targetOffset.y+U.result.delta.y}),this.onNextFrame(function(){return o.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var o=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame(function(){return o.smoothEndTick()})}},{key:"onNextFrame",value:function(o){var d=this;this.timeout=Ce.request(function(){d.active&&o()})}},{key:"inertiaTick",value:function(){var o,d,m,C,z,U,X,de=this,Te=this.interaction,fe=Zl(Te).resistance,aa=(Te._now()-this.t0)/1e3;if(aa<this.te){var Na,Xa=1-(Math.exp(-fe*aa)-this.lambda_v0)/this.one_ve_v0;this.isModified?(o=0,d=0,m=this.targetOffset.x,C=this.targetOffset.y,z=this.modifiedOffset.x,U=this.modifiedOffset.y,Na={x:zr(X=Xa,o,m,z),y:zr(X,d,C,U)}):Na={x:this.targetOffset.x*Xa,y:this.targetOffset.y*Xa};var Ma={x:Na.x-this.currentOffset.x,y:Na.y-this.currentOffset.y};this.currentOffset.x+=Ma.x,this.currentOffset.y+=Ma.y,Te.offsetBy(Ma),Te.move(),this.onNextFrame(function(){return de.inertiaTick()})}else Te.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var o=this,d=this.interaction,m=d._now()-this.t0,C=Zl(d).smoothEndDuration;if(m<C){var z={x:Hr(m,0,this.targetOffset.x,C),y:Hr(m,0,this.targetOffset.y,C)},U={x:z.x-this.currentOffset.x,y:z.y-this.currentOffset.y};this.currentOffset.x+=U.x,this.currentOffset.y+=U.y,d.offsetBy(U),d.move({skipModifiers:this.modifierCount}),this.onNextFrame(function(){return o.smoothEndTick()})}else d.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(o){var d=o.pointer,m=o.event,C=o.eventTarget,z=this.interaction;z.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),z.updatePointer(d,m,C,!0),z._doPhase({interaction:z,event:m,phase:"resume"}),G(z.coords.prev,z.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,Ce.cancel(this.timeout)}}]),i}();function Zl(i){var o=i.interactable,d=i.prepared;return o&&o.options&&d.name&&o.options[d.name].inertia}var Vr={id:"inertia",before:["modifiers","actions"],install:function(i){var o=i.defaults;i.usePlugin(Vl),i.usePlugin(rn),i.actions.phases.inertiastart=!0,i.actions.phases.resume=!0,o.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(i){var o=i.interaction;o.inertia=new fr(o)},"interactions:before-action-end":function(i){var o=i.interaction,d=i.event;return(!o._interacting||o.simulation||!o.inertia.start(d))&&null},"interactions:down":function(i){var o=i.interaction,d=i.eventTarget,m=o.inertia;if(m.active)for(var C=d;g.element(C);){if(C===o.element){m.resume(i);break}C=Sa(C)}},"interactions:stop":function(i){var o=i.interaction.inertia;o.active&&o.stop()},"interactions:before-action-resume":function(i){var o=i.interaction.modification;o.stop(i),o.start(i,i.interaction.coords.cur.page),o.applyToInteraction(i)},"interactions:before-action-inertiastart":function(i){return i.interaction.modification.setAndApply(i)},"interactions:action-resume":tr,"interactions:action-inertiastart":tr,"interactions:after-action-inertiastart":function(i){return i.interaction.modification.restoreInteractionCoords(i)},"interactions:after-action-resume":function(i){return i.interaction.modification.restoreInteractionCoords(i)}}};function zr(i,o,d,m){var C=1-i;return C*C*o+2*C*i*d+i*i*m}function Hr(i,o,d,m){return-d*(i/=m)*(i-2)+o}var xn=Vr;function wn(i,o){for(var d=0;d<o.length;d++){var m=o[d];if(i.immediatePropagationStopped)break;m(i)}}var Mn=function(){function i(o){u(this,i),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=le({},o||{})}return f(i,[{key:"fire",value:function(o){var d,m=this.global;(d=this.types[o.type])&&wn(o,d),!o.propagationStopped&&m&&(d=m[o.type])&&wn(o,d)}},{key:"on",value:function(o,d){var m=Ge(o,d);for(o in m)this.types[o]=Ue(this.types[o]||[],m[o])}},{key:"off",value:function(o,d){var m=Ge(o,d);for(o in m){var C=this.types[o];if(C&&C.length)for(var z=0,U=m[o];z<U.length;z++){var X=U[z],de=C.indexOf(X);de!==-1&&C.splice(de,1)}}}},{key:"getRect",value:function(o){return null}}]),i}(),it=function(){function i(o){u(this,i),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=o,j(this,o)}return f(i,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),i}();function fn(i){return g.object(i)?{capture:!!i.capture,passive:!!i.passive}:{capture:!!i,passive:!1}}function _n(i,o){return i===o||(typeof i=="boolean"?!!o.capture===i&&!o.passive:!!i.capture==!!o.capture&&!!i.passive==!!o.passive)}var zn={id:"events",install:function(i){var o,d=[],m={},C=[],z={add:U,remove:X,addDelegate:function(fe,aa,Na,Xa,Ma){var el=fn(Ma);if(!m[Na]){m[Na]=[];for(var ul=0;ul<C.length;ul++){var fl=C[ul];U(fl,Na,de),U(fl,Na,Te,!0)}}var gl=m[Na],zl=xa(gl,function(Hl){return Hl.selector===fe&&Hl.context===aa});zl||(zl={selector:fe,context:aa,listeners:[]},gl.push(zl)),zl.listeners.push({func:Xa,options:el})},removeDelegate:function(fe,aa,Na,Xa,Ma){var el,ul=fn(Ma),fl=m[Na],gl=!1;if(fl)for(el=fl.length-1;el>=0;el--){var zl=fl[el];if(zl.selector===fe&&zl.context===aa){for(var Hl=zl.listeners,Tl=Hl.length-1;Tl>=0;Tl--){var Ll=Hl[Tl];if(Ll.func===Xa&&_n(Ll.options,ul)){Hl.splice(Tl,1),Hl.length||(fl.splice(el,1),X(aa,Na,de),X(aa,Na,Te,!0)),gl=!0;break}}if(gl)break}}},delegateListener:de,delegateUseCapture:Te,delegatedEvents:m,documents:C,targets:d,supportsOptions:!1,supportsPassive:!1};function U(fe,aa,Na,Xa){if(fe.addEventListener){var Ma=fn(Xa),el=xa(d,function(ul){return ul.eventTarget===fe});el||(el={eventTarget:fe,events:{}},d.push(el)),el.events[aa]||(el.events[aa]=[]),xa(el.events[aa],function(ul){return ul.func===Na&&_n(ul.options,Ma)})||(fe.addEventListener(aa,Na,z.supportsOptions?Ma:Ma.capture),el.events[aa].push({func:Na,options:Ma}))}}function X(fe,aa,Na,Xa){if(fe.addEventListener&&fe.removeEventListener){var Ma=ce(d,function(Tr){return Tr.eventTarget===fe}),el=d[Ma];if(el&&el.events)if(aa!=="all"){var ul=!1,fl=el.events[aa];if(fl){if(Na==="all"){for(var gl=fl.length-1;gl>=0;gl--){var zl=fl[gl];X(fe,aa,zl.func,zl.options)}return}for(var Hl=fn(Xa),Tl=0;Tl<fl.length;Tl++){var Ll=fl[Tl];if(Ll.func===Na&&_n(Ll.options,Hl)){fe.removeEventListener(aa,Na,z.supportsOptions?Hl:Hl.capture),fl.splice(Tl,1),fl.length===0&&(delete el.events[aa],ul=!0);break}}}ul&&!Object.keys(el.events).length&&d.splice(Ma,1)}else for(aa in el.events)el.events.hasOwnProperty(aa)&&X(fe,aa,"all")}}function de(fe,aa){for(var Na=fn(aa),Xa=new it(fe),Ma=m[fe.type],el=Re(fe)[0],ul=el;g.element(ul);){for(var fl=0;fl<Ma.length;fl++){var gl=Ma[fl],zl=gl.selector,Hl=gl.context;if(oe(ul,zl)&&ue(Hl,el)&&ue(Hl,ul)){var Tl=gl.listeners;Xa.currentTarget=ul;for(var Ll=0;Ll<Tl.length;Ll++){var Tr=Tl[Ll];_n(Tr.options,Na)&&Tr.func(Xa)}}}ul=Sa(ul)}}function Te(fe){return de(fe,!0)}return(o=i.document)==null||o.createElement("div").addEventListener("test",null,{get capture(){return z.supportsOptions=!0},get passive(){return z.supportsPassive=!0}}),i.events=z,z}},Ur={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(i){for(var o=0,d=Ur.methodOrder;o<d.length;o++){var m=d[o],C=Ur[m](i);if(C)return C}return null},simulationResume:function(i){var o=i.pointerType,d=i.eventType,m=i.eventTarget,C=i.scope;if(!/down|start/i.test(d))return null;for(var z=0,U=C.interactions.list;z<U.length;z++){var X=U[z],de=m;if(X.simulation&&X.simulation.allowResume&&X.pointerType===o)for(;de;){if(de===X.element)return X;de=Sa(de)}}return null},mouseOrPen:function(i){var o,d=i.pointerId,m=i.pointerType,C=i.eventType,z=i.scope;if(m!=="mouse"&&m!=="pen")return null;for(var U=0,X=z.interactions.list;U<X.length;U++){var de=X[U];if(de.pointerType===m){if(de.simulation&&!en(de,d))continue;if(de.interacting())return de;o||(o=de)}}if(o)return o;for(var Te=0,fe=z.interactions.list;Te<fe.length;Te++){var aa=fe[Te];if(!(aa.pointerType!==m||/down/i.test(C)&&aa.simulation))return aa}return null},hasPointer:function(i){for(var o=i.pointerId,d=0,m=i.scope.interactions.list;d<m.length;d++){var C=m[d];if(en(C,o))return C}return null},idle:function(i){for(var o=i.pointerType,d=0,m=i.scope.interactions.list;d<m.length;d++){var C=m[d];if(C.pointers.length===1){var z=C.interactable;if(z&&(!z.options.gesture||!z.options.gesture.enabled))continue}else if(C.pointers.length>=2)continue;if(!C.interacting()&&o===C.pointerType)return C}return null}};function en(i,o){return i.pointers.some(function(d){return d.id===o})}var Un=Ur,Br=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function qn(i,o){return function(d){var m=o.interactions.list,C=fa(d),z=Re(d),U=z[0],X=z[1],de=[];if(/^touch/.test(d.type)){o.prevTouchTime=o.now();for(var Te=0,fe=d.changedTouches;Te<fe.length;Te++){var aa=fe[Te],Na={pointer:aa,pointerId:ke(aa),pointerType:C,eventType:d.type,eventTarget:U,curEventTarget:X,scope:o},Xa=tn(Na);de.push([Na.pointer,Na.eventTarget,Na.curEventTarget,Xa])}}else{var Ma=!1;if(!J.supportsPointerEvent&&/mouse/.test(d.type)){for(var el=0;el<m.length&&!Ma;el++)Ma=m[el].pointerType!=="mouse"&&m[el].pointerIsDown;Ma=Ma||o.now()-o.prevTouchTime<500||d.timeStamp===0}if(!Ma){var ul={pointer:d,pointerId:ke(d),pointerType:C,eventType:d.type,curEventTarget:X,eventTarget:U,scope:o},fl=tn(ul);de.push([ul.pointer,ul.eventTarget,ul.curEventTarget,fl])}}for(var gl=0;gl<de.length;gl++){var zl=de[gl],Hl=zl[0],Tl=zl[1],Ll=zl[2];zl[3][i](Hl,d,Tl,Ll)}}}function tn(i){var o=i.pointerType,d=i.scope,m={interaction:Un.search(i),searchDetails:i};return d.fire("interactions:find",m),m.interaction||d.interactions.new({pointerType:o})}function Bt(i,o){var d=i.doc,m=i.scope,C=i.options,z=m.interactions.docEvents,U=m.events,X=U[o];for(var de in m.browser.isIOS&&!C.events&&(C.events={passive:!1}),U.delegatedEvents)X(d,de,U.delegateListener),X(d,de,U.delegateUseCapture,!0);for(var Te=C&&C.events,fe=0;fe<z.length;fe++){var aa=z[fe];X(d,aa.type,aa.listener,Te)}}var Do={id:"core/interactions",install:function(i){for(var o={},d=0;d<Br.length;d++){var m=Br[d];o[m]=qn(m,i)}var C,z=J.pEventTypes;function U(){for(var X=0,de=i.interactions.list;X<de.length;X++){var Te=de[X];if(Te.pointerIsDown&&Te.pointerType==="touch"&&!Te._interacting)for(var fe=function(){var Xa=Na[aa];i.documents.some(function(Ma){return ue(Ma.doc,Xa.downTarget)})||Te.removePointer(Xa.pointer,Xa.event)},aa=0,Na=Te.pointers;aa<Na.length;aa++)fe()}}(C=te.PointerEvent?[{type:z.down,listener:U},{type:z.down,listener:o.pointerDown},{type:z.move,listener:o.pointerMove},{type:z.up,listener:o.pointerUp},{type:z.cancel,listener:o.pointerUp}]:[{type:"mousedown",listener:o.pointerDown},{type:"mousemove",listener:o.pointerMove},{type:"mouseup",listener:o.pointerUp},{type:"touchstart",listener:U},{type:"touchstart",listener:o.pointerDown},{type:"touchmove",listener:o.pointerMove},{type:"touchend",listener:o.pointerUp},{type:"touchcancel",listener:o.pointerUp}]).push({type:"blur",listener:function(X){for(var de=0,Te=i.interactions.list;de<Te.length;de++)Te[de].documentBlur(X)}}),i.prevTouchTime=0,i.Interaction=function(X){y(Te,X);var de=O(Te);function Te(){return u(this,Te),de.apply(this,arguments)}return f(Te,[{key:"pointerMoveTolerance",get:function(){return i.interactions.pointerMoveTolerance},set:function(fe){i.interactions.pointerMoveTolerance=fe}},{key:"_now",value:function(){return i.now()}}]),Te}(Hn),i.interactions={list:[],new:function(X){X.scopeFire=function(Te,fe){return i.fire(Te,fe)};var de=new i.Interaction(X);return i.interactions.list.push(de),de},listeners:o,docEvents:C,pointerMoveTolerance:1},i.usePlugin(pn)},listeners:{"scope:add-document":function(i){return Bt(i,"add")},"scope:remove-document":function(i){return Bt(i,"remove")},"interactable:unset":function(i,o){for(var d=i.interactable,m=o.interactions.list.length-1;m>=0;m--){var C=o.interactions.list[m];C.interactable===d&&(C.stop(),o.fire("interactions:destroy",{interaction:C}),C.destroy(),o.interactions.list.length>2&&o.interactions.list.splice(m,1))}}},onDocSignal:Bt,doOnInteractions:qn,methodNames:Br},Bo=Do,hn=function(i){return i[i.On=0]="On",i[i.Off=1]="Off",i}(hn||{}),No=function(){function i(o,d,m,C){u(this,i),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new Mn,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=d.actions,this.target=o,this._context=d.context||m,this._win=$(Ia(o)?this._context:o),this._doc=this._win.document,this._scopeEvents=C,this.set(d)}return f(i,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(o,d){return g.func(d.onstart)&&this.on("".concat(o,"start"),d.onstart),g.func(d.onmove)&&this.on("".concat(o,"move"),d.onmove),g.func(d.onend)&&this.on("".concat(o,"end"),d.onend),g.func(d.oninertiastart)&&this.on("".concat(o,"inertiastart"),d.oninertiastart),this}},{key:"updatePerActionListeners",value:function(o,d,m){var C,z=this,U=(C=this._actions.map[o])==null?void 0:C.filterEventType,X=function(de){return(U==null||U(de))&&nr(de,z._actions)};(g.array(d)||g.object(d))&&this._onOff(hn.Off,o,d,void 0,X),(g.array(m)||g.object(m))&&this._onOff(hn.On,o,m,void 0,X)}},{key:"setPerAction",value:function(o,d){var m=this._defaults;for(var C in d){var z=C,U=this.options[o],X=d[z];z==="listeners"&&this.updatePerActionListeners(o,U.listeners,X),g.array(X)?U[z]=ba(X):g.plainObject(X)?(U[z]=le(U[z]||{},Dr(X)),g.object(m.perAction[z])&&"enabled"in m.perAction[z]&&(U[z].enabled=X.enabled!==!1)):g.bool(X)&&g.object(m.perAction[z])?U[z].enabled=X:U[z]=X}}},{key:"getRect",value:function(o){return o=o||(g.element(this.target)?this.target:null),g.string(this.target)&&(o=o||this._context.querySelector(this.target)),ta(o)}},{key:"rectChecker",value:function(o){var d=this;return g.func(o)?(this.getRect=function(m){var C=le({},o.apply(d,m));return"width"in C||(C.width=C.right-C.left,C.height=C.bottom-C.top),C},this):o===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(o,d){if(Ia(d)||g.object(d)){for(var m in this.options[o]=d,this._actions.map)this.options[m][o]=d;return this}return this.options[o]}},{key:"origin",value:function(o){return this._backCompatOption("origin",o)}},{key:"deltaSource",value:function(o){return o==="page"||o==="client"?(this.options.deltaSource=o,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var o=this.target;return g.string(o)?Array.from(this._context.querySelectorAll(o)):g.func(o)&&o.getAllElements?o.getAllElements():g.element(o)?[o]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(o){return this._context===o.ownerDocument||ue(this._context,o)}},{key:"testIgnoreAllow",value:function(o,d,m){return!this.testIgnore(o.ignoreFrom,d,m)&&this.testAllow(o.allowFrom,d,m)}},{key:"testAllow",value:function(o,d,m){return!o||!!g.element(m)&&(g.string(o)?ve(m,o,d):!!g.element(o)&&ue(o,m))}},{key:"testIgnore",value:function(o,d,m){return!(!o||!g.element(m))&&(g.string(o)?ve(m,o,d):!!g.element(o)&&ue(o,m))}},{key:"fire",value:function(o){return this.events.fire(o),this}},{key:"_onOff",value:function(o,d,m,C,z){g.object(d)&&!g.array(d)&&(C=m,m=null);var U=Ge(d,m,z);for(var X in U){X==="wheel"&&(X=J.wheelEvent);for(var de=0,Te=U[X];de<Te.length;de++){var fe=Te[de];nr(X,this._actions)?this.events[o===hn.On?"on":"off"](X,fe):g.string(this.target)?this._scopeEvents[o===hn.On?"addDelegate":"removeDelegate"](this.target,this._context,X,fe,C):this._scopeEvents[o===hn.On?"add":"remove"](this.target,X,fe,C)}}return this}},{key:"on",value:function(o,d,m){return this._onOff(hn.On,o,d,m)}},{key:"off",value:function(o,d,m){return this._onOff(hn.Off,o,d,m)}},{key:"set",value:function(o){var d=this._defaults;for(var m in g.object(o)||(o={}),this.options=Dr(d.base),this._actions.methodDict){var C=m,z=this._actions.methodDict[C];this.options[C]={},this.setPerAction(C,le(le({},d.perAction),d.actions[C])),this[z](o[C])}for(var U in o)U!=="getRect"?g.func(this[U])&&this[U](o[U]):this.rectChecker(o.getRect);return this}},{key:"unset",value:function(){if(g.string(this.target))for(var o in this._scopeEvents.delegatedEvents)for(var d=this._scopeEvents.delegatedEvents[o],m=d.length-1;m>=0;m--){var C=d[m],z=C.selector,U=C.context,X=C.listeners;z===this.target&&U===this._context&&d.splice(m,1);for(var de=X.length-1;de>=0;de--)this._scopeEvents.removeDelegate(this.target,this._context,o,X[de][0],X[de][1])}else this._scopeEvents.remove(this.target,"all")}}]),i}(),qt=function(){function i(o){var d=this;u(this,i),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=o,o.addListeners({"interactable:unset":function(m){var C=m.interactable,z=C.target,U=g.string(z)?d.selectorMap[z]:z[d.scope.id],X=ce(U,function(de){return de===C});U.splice(X,1)}})}return f(i,[{key:"new",value:function(o,d){d=le(d||{},{actions:this.scope.actions});var m=new this.scope.Interactable(o,d,this.scope.document,this.scope.events);return this.scope.addDocument(m._doc),this.list.push(m),g.string(o)?(this.selectorMap[o]||(this.selectorMap[o]=[]),this.selectorMap[o].push(m)):(m.target[this.scope.id]||Object.defineProperty(o,this.scope.id,{value:[],configurable:!0}),o[this.scope.id].push(m)),this.scope.fire("interactable:new",{target:o,options:d,interactable:m,win:this.scope._win}),m}},{key:"getExisting",value:function(o,d){var m=d&&d.context||this.scope.document,C=g.string(o),z=C?this.selectorMap[o]:o[this.scope.id];if(z)return xa(z,function(U){return U._context===m&&(C||U.inContext(o))})}},{key:"forEachMatch",value:function(o,d){for(var m=0,C=this.list;m<C.length;m++){var z=C[m],U=void 0;if((g.string(z.target)?g.element(o)&&oe(o,z.target):o===z.target)&&z.inContext(o)&&(U=d(z)),U!==void 0)return U}}}]),i}(),To=function(){function i(){var o=this;u(this,i),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=J,this.defaults=Dr(nn),this.Eventable=Mn,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(m){var C=function z(U,X){var de=m.interactables.getExisting(U,X);return de||((de=m.interactables.new(U,X)).events.global=z.globalEvents),de};return C.getPointerAverage=Pe,C.getTouchBBox=ca,C.getTouchDistance=ka,C.getTouchAngle=Ie,C.getElementRect=ta,C.getElementClientRect=xe,C.matchesSelector=oe,C.closest=Ye,C.globalEvents={},C.version="1.10.27",C.scope=m,C.use=function(z,U){return this.scope.usePlugin(z,U),this},C.isSet=function(z,U){return!!this.scope.interactables.get(z,U&&U.context)},C.on=_l(function(z,U,X){if(g.string(z)&&z.search(" ")!==-1&&(z=z.trim().split(/ +/)),g.array(z)){for(var de=0,Te=z;de<Te.length;de++){var fe=Te[de];this.on(fe,U,X)}return this}if(g.object(z)){for(var aa in z)this.on(aa,z[aa],U);return this}return nr(z,this.scope.actions)?this.globalEvents[z]?this.globalEvents[z].push(U):this.globalEvents[z]=[U]:this.scope.events.add(this.scope.document,z,U,{options:X}),this},"The interact.on() method is being deprecated"),C.off=_l(function(z,U,X){if(g.string(z)&&z.search(" ")!==-1&&(z=z.trim().split(/ +/)),g.array(z)){for(var de=0,Te=z;de<Te.length;de++){var fe=Te[de];this.off(fe,U,X)}return this}if(g.object(z)){for(var aa in z)this.off(aa,z[aa],U);return this}var Na;return nr(z,this.scope.actions)?z in this.globalEvents&&(Na=this.globalEvents[z].indexOf(U))!==-1&&this.globalEvents[z].splice(Na,1):this.scope.events.remove(this.scope.document,z,U,X),this},"The interact.off() method is being deprecated"),C.debug=function(){return this.scope},C.supportsTouch=function(){return J.supportsTouch},C.supportsPointerEvent=function(){return J.supportsPointerEvent},C.stop=function(){for(var z=0,U=this.scope.interactions.list;z<U.length;z++)U[z].stop();return this},C.pointerMoveTolerance=function(z){return g.number(z)?(this.scope.interactions.pointerMoveTolerance=z,this):this.scope.interactions.pointerMoveTolerance},C.addDocument=function(z,U){this.scope.addDocument(z,U)},C.removeDocument=function(z){this.scope.removeDocument(z)},C}(this),this.InteractEvent=Nn,this.Interactable=void 0,this.interactables=new qt(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(m){return o.removeDocument(m.target)};var d=this;this.Interactable=function(m){y(z,m);var C=O(z);function z(){return u(this,z),C.apply(this,arguments)}return f(z,[{key:"_defaults",get:function(){return d.defaults}},{key:"set",value:function(U){return w(c(z.prototype),"set",this).call(this,U),d.fire("interactable:set",{options:U,interactable:this}),this}},{key:"unset",value:function(){w(c(z.prototype),"unset",this).call(this);var U=d.interactables.list.indexOf(this);U<0||(d.interactables.list.splice(U,1),d.fire("interactable:unset",{interactable:this}))}}]),z}(No)}return f(i,[{key:"addListeners",value:function(o,d){this.listenerMaps.push({id:d,map:o})}},{key:"fire",value:function(o,d){for(var m=0,C=this.listenerMaps;m<C.length;m++){var z=C[m].map[o];if(z&&z(d,this,o)===!1)return!1}}},{key:"init",value:function(o){return this.isInitialized?this:function(d,m){return d.isInitialized=!0,g.window(m)&&S(m),te.init(m),J.init(m),Ce.init(m),d.window=m,d.document=m.document,d.usePlugin(Bo),d.usePlugin(zn),d}(this,o)}},{key:"pluginIsInstalled",value:function(o){var d=o.id;return d?!!this._plugins.map[d]:this._plugins.list.indexOf(o)!==-1}},{key:"usePlugin",value:function(o,d){if(!this.isInitialized)return this;if(this.pluginIsInstalled(o))return this;if(o.id&&(this._plugins.map[o.id]=o),this._plugins.list.push(o),o.install&&o.install(this,d),o.listeners&&o.before){for(var m=0,C=this.listenerMaps.length,z=o.before.reduce(function(X,de){return X[de]=!0,X[Wt(de)]=!0,X},{});m<C;m++){var U=this.listenerMaps[m].id;if(U&&(z[U]||z[Wt(U)]))break}this.listenerMaps.splice(m,0,{id:o.id,map:o.listeners})}else o.listeners&&this.listenerMaps.push({id:o.id,map:o.listeners});return this}},{key:"addDocument",value:function(o,d){if(this.getDocIndex(o)!==-1)return!1;var m=$(o);d=d?le({},d):{},this.documents.push({doc:o,options:d}),this.events.documents.push(o),o!==this.document&&this.events.add(m,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:o,window:m,scope:this,options:d})}},{key:"removeDocument",value:function(o){var d=this.getDocIndex(o),m=$(o),C=this.documents[d].options;this.events.remove(m,"unload",this.onWindowUnload),this.documents.splice(d,1),this.events.documents.splice(d,1),this.fire("scope:remove-document",{doc:o,window:m,scope:this,options:C})}},{key:"getDocIndex",value:function(o){for(var d=0;d<this.documents.length;d++)if(this.documents[d].doc===o)return d;return-1}},{key:"getDocOptions",value:function(o){var d=this.getDocIndex(o);return d===-1?null:this.documents[d].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),i}();function Wt(i){return i&&i.replace(/\/.*$/,"")}var Kt=new To,Nr=Kt.interactStatic,Nt=typeof globalThis<"u"?globalThis:window;Kt.init(Nt);var Ao=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(i){var o=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(m){var C=m[0],z=m[1];return C in i||z in i}),d=function(m,C){for(var z=i.range,U=i.limits,X=U===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:U,de=i.offset,Te=de===void 0?{x:0,y:0}:de,fe={range:z,grid:i,x:null,y:null},aa=0;aa<o.length;aa++){var Na=o[aa],Xa=Na[0],Ma=Na[1],el=Math.round((m-Te.x)/i[Xa]),ul=Math.round((C-Te.y)/i[Ma]);fe[Xa]=Math.max(X.left,Math.min(X.right,el*i[Xa]+Te.x)),fe[Ma]=Math.max(X.top,Math.min(X.bottom,ul*i[Ma]+Te.y))}return fe};return d.grid=i,d.coordFields=o,d}}),Tt={id:"snappers",install:function(i){var o=i.interactStatic;o.snappers=le(o.snappers||{},Ao),o.createSnapGrid=o.snappers.grid}},Mo=Tt,zo={start:function(i){var o=i.state,d=i.rect,m=i.edges,C=i.pageCoords,z=o.options,U=z.ratio,X=z.enabled,de=o.options,Te=de.equalDelta,fe=de.modifiers;U==="preserve"&&(U=d.width/d.height),o.startCoords=le({},C),o.startRect=le({},d),o.ratio=U,o.equalDelta=Te;var aa=o.linkedEdges={top:m.top||m.left&&!m.bottom,left:m.left||m.top&&!m.right,bottom:m.bottom||m.right&&!m.top,right:m.right||m.bottom&&!m.left};if(o.xIsPrimaryAxis=!(!m.left&&!m.right),o.equalDelta){var Na=(aa.left?1:-1)*(aa.top?1:-1);o.edgeSign={x:Na,y:Na}}else o.edgeSign={x:aa.left?-1:1,y:aa.top?-1:1};if(X!==!1&&le(m,aa),fe!=null&&fe.length){var Xa=new Cr(i.interaction);Xa.copyFrom(i.interaction.modification),Xa.prepareStates(fe),o.subModification=Xa,Xa.startAll(t({},i))}},set:function(i){var o=i.state,d=i.rect,m=i.coords,C=o.linkedEdges,z=le({},m),U=o.equalDelta?Oo:Io;if(le(i.edges,C),U(o,o.xIsPrimaryAxis,m,d),!o.subModification)return null;var X=le({},d);_e(C,X,{x:m.x-z.x,y:m.y-z.y});var de=o.subModification.setAll(t(t({},i),{},{rect:X,edges:C,pageCoords:m,prevCoords:m,prevRect:X})),Te=de.delta;return de.changed&&(U(o,Math.abs(Te.x)>Math.abs(Te.y),de.coords,de.rect),le(m,de.coords)),de.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function Oo(i,o,d){var m=i.startCoords,C=i.edgeSign;o?d.y=m.y+(d.x-m.x)*C.y:d.x=m.x+(d.y-m.y)*C.x}function Io(i,o,d,m){var C=i.startRect,z=i.startCoords,U=i.ratio,X=i.edgeSign;if(o){var de=m.width/U;d.y=z.y+(de-C.height)*X.y}else{var Te=m.height*U;d.x=z.x+(Te-C.width)*X.x}}var Wn=xr(zo,"aspectRatio"),At=function(){};At._defaults={};var On=At;function Cn(i,o,d){return g.func(i)?Ve(i,o.interactable,o.element,[d.x,d.y,o]):Ve(i,o.interactable,o.element)}var st={start:function(i){var o=i.rect,d=i.startOffset,m=i.state,C=i.interaction,z=i.pageCoords,U=m.options,X=U.elementRect,de=le({left:0,top:0,right:0,bottom:0},U.offset||{});if(o&&X){var Te=Cn(U.restriction,C,z);if(Te){var fe=Te.right-Te.left-o.width,aa=Te.bottom-Te.top-o.height;fe<0&&(de.left+=fe,de.right+=fe),aa<0&&(de.top+=aa,de.bottom+=aa)}de.left+=d.left-o.width*X.left,de.top+=d.top-o.height*X.top,de.right+=d.right-o.width*(1-X.right),de.bottom+=d.bottom-o.height*(1-X.bottom)}m.offset=de},set:function(i){var o=i.coords,d=i.interaction,m=i.state,C=m.options,z=m.offset,U=Cn(C.restriction,d,o);if(U){var X=function(de){return!de||"left"in de&&"top"in de||((de=le({},de)).left=de.x||0,de.top=de.y||0,de.right=de.right||de.left+de.width,de.bottom=de.bottom||de.top+de.height),de}(U);o.x=Math.max(Math.min(X.right-z.right,o.x),X.left+z.left),o.y=Math.max(Math.min(X.bottom-z.bottom,o.y),X.top+z.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},Lo=xr(st,"restrict"),Yt={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Mt={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function In(i,o){for(var d=0,m=["top","left","bottom","right"];d<m.length;d++){var C=m[d];C in i||(i[C]=o[C])}return i}var Ln={noInner:Yt,noOuter:Mt,start:function(i){var o,d=i.interaction,m=i.startOffset,C=i.state,z=C.options;z&&(o=_a(Cn(z.offset,d,d.coords.start.page))),o=o||{x:0,y:0},C.offset={top:o.y+m.top,left:o.x+m.left,bottom:o.y-m.bottom,right:o.x-m.right}},set:function(i){var o=i.coords,d=i.edges,m=i.interaction,C=i.state,z=C.offset,U=C.options;if(d){var X=le({},o),de=Cn(U.inner,m,X)||{},Te=Cn(U.outer,m,X)||{};In(de,Yt),In(Te,Mt),d.top?o.y=Math.min(Math.max(Te.top+z.top,X.y),de.top+z.top):d.bottom&&(o.y=Math.max(Math.min(Te.bottom+z.bottom,X.y),de.bottom+z.bottom)),d.left?o.x=Math.min(Math.max(Te.left+z.left,X.x),de.left+z.left):d.right&&(o.x=Math.max(Math.min(Te.right+z.right,X.x),de.right+z.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},Gt=xr(Ln,"restrictEdges"),Kn=le({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(i){}},st.defaults),Xt=xr({start:st.start,set:st.set,defaults:Kn},"restrictRect"),Jt={width:-1/0,height:-1/0},Vo={width:1/0,height:1/0},$o=xr({start:function(i){return Ln.start(i)},set:function(i){var o=i.interaction,d=i.state,m=i.rect,C=i.edges,z=d.options;if(C){var U=Fe(Cn(z.min,o,i.coords))||Jt,X=Fe(Cn(z.max,o,i.coords))||Vo;d.options={endOnly:z.endOnly,inner:le({},Ln.noInner),outer:le({},Ln.noOuter)},C.top?(d.options.inner.top=m.bottom-U.height,d.options.outer.top=m.bottom-X.height):C.bottom&&(d.options.inner.bottom=m.top+U.height,d.options.outer.bottom=m.top+X.height),C.left?(d.options.inner.left=m.right-U.width,d.options.outer.left=m.right-X.width):C.right&&(d.options.inner.right=m.left+U.width,d.options.outer.right=m.left+X.width),Ln.set(i),d.options=z}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),zt={start:function(i){var o,d=i.interaction,m=i.interactable,C=i.element,z=i.rect,U=i.state,X=i.startOffset,de=U.options,Te=de.offsetWithOrigin?function(Na){var Xa=Na.interaction.element,Ma=_a(Ve(Na.state.options.origin,null,null,[Xa])),el=Ma||ze(Na.interactable,Xa,Na.interaction.prepared.name);return el}(i):{x:0,y:0};if(de.offset==="startCoords")o={x:d.coords.start.page.x,y:d.coords.start.page.y};else{var fe=Ve(de.offset,m,C,[d]);(o=_a(fe)||{x:0,y:0}).x+=Te.x,o.y+=Te.y}var aa=de.relativePoints;U.offsets=z&&aa&&aa.length?aa.map(function(Na,Xa){return{index:Xa,relativePoint:Na,x:X.left-z.width*Na.x+o.x,y:X.top-z.height*Na.y+o.y}}):[{index:0,relativePoint:null,x:o.x,y:o.y}]},set:function(i){var o=i.interaction,d=i.coords,m=i.state,C=m.options,z=m.offsets,U=ze(o.interactable,o.element,o.prepared.name),X=le({},d),de=[];C.offsetWithOrigin||(X.x-=U.x,X.y-=U.y);for(var Te=0,fe=z;Te<fe.length;Te++)for(var aa=fe[Te],Na=X.x-aa.x,Xa=X.y-aa.y,Ma=0,el=C.targets.length;Ma<el;Ma++){var ul=C.targets[Ma],fl=void 0;(fl=g.func(ul)?ul(Na,Xa,o._proxy,aa,Ma):ul)&&de.push({x:(g.number(fl.x)?fl.x:Na)+aa.x,y:(g.number(fl.y)?fl.y:Xa)+aa.y,range:g.number(fl.range)?fl.range:C.range,source:ul,index:Ma,offset:aa})}for(var gl={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},zl=0;zl<de.length;zl++){var Hl=de[zl],Tl=Hl.range,Ll=Hl.x-X.x,Tr=Hl.y-X.y,cr=Ja(Ll,Tr),$r=cr<=Tl;Tl===1/0&&gl.inRange&&gl.range!==1/0&&($r=!1),gl.target&&!($r?gl.inRange&&Tl!==1/0?cr/Tl<gl.distance/gl.range:Tl===1/0&&gl.range!==1/0||cr<gl.distance:!gl.inRange&&cr<gl.distance)||(gl.target=Hl,gl.distance=cr,gl.range=Tl,gl.inRange=$r,gl.delta.x=Ll,gl.delta.y=Tr)}return gl.inRange&&(d.x=gl.target.x,d.y=gl.target.y),m.closest=gl,gl},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},Ro=xr(zt,"snap"),ct={start:function(i){var o=i.state,d=i.edges,m=o.options;if(!d)return null;i.state={options:{targets:null,relativePoints:[{x:d.left?0:1,y:d.top?0:1}],offset:m.offset||"self",origin:{x:0,y:0},range:m.range}},o.targetFields=o.targetFields||[["width","height"],["x","y"]],zt.start(i),o.offsets=i.state.offsets,i.state=o},set:function(i){var o=i.interaction,d=i.state,m=i.coords,C=d.options,z=d.offsets,U={x:m.x-z[0].x,y:m.y-z[0].y};d.options=le({},C),d.options.targets=[];for(var X=0,de=C.targets||[];X<de.length;X++){var Te=de[X],fe=void 0;if(fe=g.func(Te)?Te(U.x,U.y,o):Te){for(var aa=0,Na=d.targetFields;aa<Na.length;aa++){var Xa=Na[aa],Ma=Xa[0],el=Xa[1];if(Ma in fe||el in fe){fe.x=fe[Ma],fe.y=fe[el];break}}d.options.targets.push(fe)}}var ul=zt.set(i);return d.options=C,ul},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},Po=xr(ct,"snapSize"),Ot={aspectRatio:Wn,restrictEdges:Gt,restrict:Lo,restrictRect:Xt,restrictSize:$o,snapEdges:xr({start:function(i){var o=i.edges;return o?(i.state.targetFields=i.state.targetFields||[[o.left?"left":"right",o.top?"top":"bottom"]],ct.start(i)):null},set:ct.set,defaults:le(Dr(ct.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:Ro,snapSize:Po,spring:On,avoid:On,transform:On,rubberband:On},Zt={id:"modifiers",install:function(i){var o=i.interactStatic;for(var d in i.usePlugin(rn),i.usePlugin(Mo),o.modifiers=Ot,Ot){var m=Ot[d],C=m._defaults,z=m._methods;C._methods=z,i.defaults.perAction[d]=C}}},Fo=Zt,Qt=function(i){y(d,i);var o=O(d);function d(m,C,z,U,X,de){var Te;if(u(this,d),j(N(Te=o.call(this,X)),z),z!==C&&j(N(Te),C),Te.timeStamp=de,Te.originalEvent=z,Te.type=m,Te.pointerId=ke(C),Te.pointerType=fa(C),Te.target=U,Te.currentTarget=null,m==="tap"){var fe=X.getPointerIndex(C);Te.dt=Te.timeStamp-X.pointers[fe].downTime;var aa=Te.timeStamp-X.tapTime;Te.double=!!X.prevTap&&X.prevTap.type!=="doubletap"&&X.prevTap.target===Te.target&&aa<500}else m==="doubletap"&&(Te.dt=C.timeStamp-X.tapTime,Te.double=!0);return Te}return f(d,[{key:"_subtractOrigin",value:function(m){var C=m.x,z=m.y;return this.pageX-=C,this.pageY-=z,this.clientX-=C,this.clientY-=z,this}},{key:"_addOrigin",value:function(m){var C=m.x,z=m.y;return this.pageX+=C,this.pageY+=z,this.clientX+=C,this.clientY+=z,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),d}(Ca),Yn={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(i){i.pointerEvents=Yn,i.defaults.actions.pointerEvents=Yn.defaults,le(i.actions.phaselessTypes,Yn.types)},listeners:{"interactions:new":function(i){var o=i.interaction;o.prevTap=null,o.tapTime=0},"interactions:update-pointer":function(i){var o=i.down,d=i.pointerInfo;!o&&d.hold||(d.hold={duration:1/0,timeout:null})},"interactions:move":function(i,o){var d=i.interaction,m=i.pointer,C=i.event,z=i.eventTarget;i.duplicate||d.pointerIsDown&&!d.pointerWasMoved||(d.pointerIsDown&&It(i),vn({interaction:d,pointer:m,event:C,eventTarget:z,type:"move"},o))},"interactions:down":function(i,o){(function(d,m){for(var C=d.interaction,z=d.pointer,U=d.event,X=d.eventTarget,de=d.pointerIndex,Te=C.pointers[de].hold,fe=wa(X),aa={interaction:C,pointer:z,event:U,eventTarget:X,type:"hold",targets:[],path:fe,node:null},Na=0;Na<fe.length;Na++){var Xa=fe[Na];aa.node=Xa,m.fire("pointerEvents:collect-targets",aa)}if(aa.targets.length){for(var Ma=1/0,el=0,ul=aa.targets;el<ul.length;el++){var fl=ul[el].eventable.options.holdDuration;fl<Ma&&(Ma=fl)}Te.duration=Ma,Te.timeout=setTimeout(function(){vn({interaction:C,eventTarget:X,pointer:z,event:U,type:"hold"},m)},Ma)}})(i,o),vn(i,o)},"interactions:up":function(i,o){It(i),vn(i,o),function(d,m){var C=d.interaction,z=d.pointer,U=d.event,X=d.eventTarget;C.pointerWasMoved||vn({interaction:C,eventTarget:X,pointer:z,event:U,type:"tap"},m)}(i,o)},"interactions:cancel":function(i,o){It(i),vn(i,o)}},PointerEvent:Qt,fire:vn,collectEventTargets:Gn,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 vn(i,o){var d=i.interaction,m=i.pointer,C=i.event,z=i.eventTarget,U=i.type,X=i.targets,de=X===void 0?Gn(i,o):X,Te=new Qt(U,m,C,z,d,o.now());o.fire("pointerEvents:new",{pointerEvent:Te});for(var fe={interaction:d,pointer:m,event:C,eventTarget:z,targets:de,type:U,pointerEvent:Te},aa=0;aa<de.length;aa++){var Na=de[aa];for(var Xa in Na.props||{})Te[Xa]=Na.props[Xa];var Ma=ze(Na.eventable,Na.node);if(Te._subtractOrigin(Ma),Te.eventable=Na.eventable,Te.currentTarget=Na.node,Na.eventable.fire(Te),Te._addOrigin(Ma),Te.immediatePropagationStopped||Te.propagationStopped&&aa+1<de.length&&de[aa+1].node!==Te.currentTarget)break}if(o.fire("pointerEvents:fired",fe),U==="tap"){var el=Te.double?vn({interaction:d,pointer:m,event:C,eventTarget:z,type:"doubletap"},o):Te;d.prevTap=el,d.tapTime=el.timeStamp}return Te}function Gn(i,o){var d=i.interaction,m=i.pointer,C=i.event,z=i.eventTarget,U=i.type,X=d.getPointerIndex(m),de=d.pointers[X];if(U==="tap"&&(d.pointerWasMoved||!de||de.downTarget!==z))return[];for(var Te=wa(z),fe={interaction:d,pointer:m,event:C,eventTarget:z,type:U,path:Te,targets:[],node:null},aa=0;aa<Te.length;aa++){var Na=Te[aa];fe.node=Na,o.fire("pointerEvents:collect-targets",fe)}return U==="hold"&&(fe.targets=fe.targets.filter(function(Xa){var Ma,el;return Xa.eventable.options.holdDuration===((Ma=d.pointers[X])==null||(el=Ma.hold)==null?void 0:el.duration)})),fe.targets}function It(i){var o=i.interaction,d=i.pointerIndex,m=o.pointers[d].hold;m&&m.timeout&&(clearTimeout(m.timeout),m.timeout=null)}var jo=Object.freeze({__proto__:null,default:Yn});function Ho(i){var o=i.interaction;o.holdIntervalHandle&&(clearInterval(o.holdIntervalHandle),o.holdIntervalHandle=null)}var Uo={id:"pointer-events/holdRepeat",install:function(i){i.usePlugin(Yn);var o=i.pointerEvents;o.defaults.holdRepeatInterval=0,o.types.holdrepeat=i.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce(function(i,o){return i["pointerEvents:".concat(o)]=Ho,i},{"pointerEvents:new":function(i){var o=i.pointerEvent;o.type==="hold"&&(o.count=(o.count||0)+1)},"pointerEvents:fired":function(i,o){var d=i.interaction,m=i.pointerEvent,C=i.eventTarget,z=i.targets;if(m.type==="hold"&&z.length){var U=z[0].eventable.options.holdRepeatInterval;U<=0||(d.holdIntervalHandle=setTimeout(function(){o.pointerEvents.fire({interaction:d,eventTarget:C,type:"hold",pointer:m,event:m},o)},U))}}})},eo=Uo,ut={id:"pointer-events/interactableTargets",install:function(i){var o=i.Interactable;o.prototype.pointerEvents=function(m){return le(this.events.options,m),this};var d=o.prototype._backCompatOption;o.prototype._backCompatOption=function(m,C){var z=d.call(this,m,C);return z===this&&(this.events.options[m]=C),z}},listeners:{"pointerEvents:collect-targets":function(i,o){var d=i.targets,m=i.node,C=i.type,z=i.eventTarget;o.interactables.forEachMatch(m,function(U){var X=U.events,de=X.options;X.types[C]&&X.types[C].length&&U.testIgnoreAllow(de,m,z)&&d.push({node:m,eventable:X,props:{interactable:U}})})},"interactable:new":function(i){var o=i.interactable;o.events.getRect=function(d){return o.getRect(d)}},"interactable:set":function(i,o){var d=i.interactable,m=i.options;le(d.events.options,o.pointerEvents.defaults),le(d.events.options,m.pointerEvents||{})}}},qo=ut,Wo={id:"pointer-events",install:function(i){i.usePlugin(jo),i.usePlugin(eo),i.usePlugin(qo)}},gr=Wo,$l={id:"reflow",install:function(i){var o=i.Interactable;i.actions.phases.reflow=!0,o.prototype.reflow=function(d){return function(m,C,z){for(var U=m.getAllElements(),X=z.window.Promise,de=X?[]:null,Te=function(){var aa=U[fe],Na=m.getRect(aa);if(!Na)return 1;var Xa,Ma=xa(z.interactions.list,function(fl){return fl.interacting()&&fl.interactable===m&&fl.element===aa&&fl.prepared.name===C.name});if(Ma)Ma.move(),de&&(Xa=Ma._reflowPromise||new X(function(fl){Ma._reflowResolve=fl}));else{var el=Fe(Na),ul=function(fl){return{coords:fl,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:el.x,y:el.y},client:{x:el.x,y:el.y},timeStamp:z.now()});Xa=function(fl,gl,zl,Hl,Tl){var Ll=fl.interactions.new({pointerType:"reflow"}),Tr={interaction:Ll,event:Tl,pointer:Tl,eventTarget:zl,phase:"reflow"};Ll.interactable=gl,Ll.element=zl,Ll.prevEvent=Tl,Ll.updatePointer(Tl,Tl,zl,!0),V(Ll.coords.delta),cl(Ll.prepared,Hl),Ll._doPhase(Tr);var cr=fl.window,$r=cr.Promise,Rr=$r?new $r(function(on){Ll._reflowResolve=on}):void 0;return Ll._reflowPromise=Rr,Ll.start(Hl,gl,zl),Ll._interacting?(Ll.move(Tr),Ll.end(Tl)):(Ll.stop(),Ll._reflowResolve()),Ll.removePointer(Tl,Tl),Rr}(z,m,aa,C,ul)}de&&de.push(Xa)},fe=0;fe<U.length&&!Te();fe++);return de&&X.all(de).then(function(){return m})}(this,d,i)}},listeners:{"interactions:stop":function(i,o){var d=i.interaction;d.pointerType==="reflow"&&(d._reflowResolve&&d._reflowResolve(),function(m,C){m.splice(m.indexOf(C),1)}(o.interactions.list,d))}}},Ko=$l;if(Nr.use(pn),Nr.use(Vl),Nr.use(gr),Nr.use(xn),Nr.use(Fo),Nr.use(bn),Nr.use(Fa),Nr.use($a),Nr.use(Ko),Nr.default=Nr,s(l)==="object"&&l)try{l.exports=Nr}catch{}return Nr.default=Nr,Nr})}($t,$t.exports)),$t.exports}var O6=z6();const xs=L.getDefaultExportFromCjs(O6),Co=a.defineComponent({__name:"grid-item",props:{isDraggable:{type:Boolean,default:void 0},isResizable:{type:Boolean,default:void 0},isBounded:{type:Boolean,default:void 0},static:{type:Boolean,default:!1},minH:{default:1},minW:{default:1},maxH:{default:1/0},maxW:{default:1/0},x:{},y:{},w:{},h:{},i:{},dragIgnoreFrom:{default:"a, button"},dragAllowFrom:{default:void 0},resizeIgnoreFrom:{default:"a, button"},preserveAspectRatio:{type:Boolean,default:!1},dragOption:{default:()=>({})},resizeOption:{default:()=>({})}},emits:["container-resized","resize","resized","move","moved"],setup(l,{expose:n,emit:r}){const t=l,s=r,u=a.inject(wc),k=a.inject(_c);if(!u)throw new Error("[grid-layout-plus]: missing layout store, GridItem must under a GridLayout.");const f=a.shallowRef(null),v=a.reactive({cols:1,containerWidth:100,rowHeight:30,margin:[10,10],maxRows:1/0,draggable:void 0,resizable:void 0,bounded:void 0,transformScale:1,useCssTransforms:!0,useStyleCursor:!0,isDragging:!1,dragging:{top:-1,left:-1},isResizing:!1,resizing:{width:-1,height:-1},style:{},rtl:!1});let y=!1,c=!1,E=NaN,N=NaN,O=NaN,w=NaN,Y=-1,_=-1,A=-1,Z=-1,S=t.x,$=t.y,T=t.w,x=t.h;const g=a.ref(),H=a.reactive({i:a.toRef(t,"i"),state:v,wrapper:g,calcXY:Ve});function W(K){Ge(K)}function ae(){Ba()}function ge(K){Jr(t.isDraggable)&&(v.draggable=K)}function Oe(K){Jr(t.isResizable)&&(v.resizable=K)}function we(K){Jr(t.isBounded)&&(v.bounded=K)}function te(K){v.transformScale=K}function me(K){v.rowHeight=K}function J(K){v.maxRows=K}function ue(){v.rtl=bs()==="rtl",Ba()}function Ye(K){v.cols=Math.floor(K)}u.increaseItem(H),a.onBeforeMount(()=>{v.rtl=bs()==="rtl"}),a.onMounted(()=>{u.responsive&&u.lastBreakpoint?v.cols=Bc(u.lastBreakpoint,u.cols):v.cols=u.colNum,v.rowHeight=u.rowHeight,v.containerWidth=u.width!==null?u.width:100,v.margin=u.margin!==void 0?u.margin.map(Number):[10,10],v.maxRows=u.maxRows,Jr(t.isDraggable)?v.draggable=u.isDraggable:v.draggable=t.isDraggable,Jr(t.isResizable)?v.resizable=u.isResizable:v.resizable=t.isResizable,Jr(t.isBounded)?v.bounded=u.isBounded:v.bounded=t.isBounded,v.transformScale=u.transformScale,v.useCssTransforms=u.useCssTransforms,v.useStyleCursor=u.useStyleCursor,a.watchEffect(()=>{S=t.x,$=t.y,x=t.h,T=t.w,Pr(ta)}),k.on("updateWidth",W),k.on("compact",ae),k.on("setDraggable",ge),k.on("setResizable",Oe),k.on("setBounded",we),k.on("setTransformScale",te),k.on("setRowHeight",me),k.on("setMaxRows",J),k.on("directionchange",ue),k.on("setColNum",Ye)}),a.onBeforeUnmount(()=>{k.off("updateWidth",W),k.off("compact",ae),k.off("setDraggable",ge),k.off("setResizable",Oe),k.off("setBounded",we),k.off("setTransformScale",te),k.off("setRowHeight",me),k.off("setMaxRows",J),k.off("directionchange",ue),k.off("setColNum",Ye),f.value&&(f.value.unset(),f.value=null),u.decreaseItem(H)}),n({state:v,wrapper:g});const Sa=typeof navigator<"u"?navigator.userAgent.toLowerCase().includes("android"):!1,oe=a.computed(()=>v.resizable&&!t.static),D=a.computed(()=>u.isMirrored?!v.rtl:v.rtl),ne=a.computed(()=>(v.draggable||v.resizable)&&!t.static),ve=E6("item"),se=a.computed(()=>({[ve.b()]:!0,[ve.bm("resizable")]:oe.value,[ve.bm("static")]:t.static,[ve.bm("resizing")]:v.isResizing,[ve.bm("dragging")]:v.isDragging,[ve.bm("transform")]:v.useCssTransforms,[ve.bm("rtl")]:D.value,[ve.bm("no-touch")]:Sa&&ne.value})),xe=a.computed(()=>[ve.be("resizer"),D.value&&ve.bem("resizer","rtl")].filter(Boolean));a.watch(()=>t.isDraggable,K=>{v.draggable=K}),a.watch(()=>t.static,()=>{Pr(j),Pr(V)}),a.watch(()=>v.draggable,()=>{Pr(j)}),a.watch(()=>t.isResizable,K=>{v.resizable=K}),a.watch(()=>t.isBounded,K=>{v.bounded=K}),a.watch(()=>v.resizable,()=>{Pr(V)}),a.watch(()=>v.rowHeight,()=>{Pr(ta),Pr(wa)}),a.watch([()=>v.cols,()=>v.containerWidth],()=>{Pr(V),Pr(ta),Pr(wa)}),a.watch([()=>t.minH,()=>t.maxH,()=>t.minW,()=>t.maxW],()=>{Pr(V)}),a.watch(D,()=>{Pr(V),Pr(ta)}),a.watch([()=>u.margin,()=>u.margin[0],()=>u.margin[1]],()=>{const K=u.margin;!K||K[0]===v.margin[0]&&K[1]===v.margin[1]||(v.margin=K.map(Number),Pr(ta),Pr(wa))});function ta(){t.x+t.w>v.cols?(S=0,T=t.w>v.cols?v.cols:t.w):(S=t.x,T=t.w);const K=ra(S,$,T,x);v.isDragging&&(K.top=v.dragging.top,D.value?K.right=v.dragging.left:K.left=v.dragging.left),v.isResizing&&(K.width=v.resizing.width,K.height=v.resizing.height);let Ne;v.useCssTransforms?D.value?Ne=x6(K.top,K.right,K.width,K.height):Ne=k6(K.top,K.left,K.width,K.height):D.value?Ne=_6(K.top,K.right,K.width,K.height):Ne=w6(K.top,K.left,K.width,K.height),v.style=Ne}function wa(){const K={};for(const Ne of["width","height"]){const Q=v.style[Ne].match(/^(\d+)px$/);if(!Q)return;K[Ne]=Q[1]}s("container-resized",t.i,t.h,t.w,K.height,K.width)}function Ia(K){if(t.static)return;const Ne=K.type;if(Ne==="resizestart"&&v.isResizing||Ne!=="resizestart"&&!v.isResizing)return;const Q=ys(K);if(Jr(Q))return;const{x:ke,y:pe}=Q,je={width:0,height:0};let Pe;switch(Ne){case"resizestart":{V(),Y=T,_=x,Pe=ra(S,$,T,x),je.width=Pe.width,je.height=Pe.height,v.resizing=je,v.isResizing=!0;break}case"resizemove":{!K.edges.right&&!K.edges.left&&(O=ke),!K.edges.top&&!K.edges.bottom&&(w=pe);const ca=gs(O,w,ke,pe);D.value?je.width=v.resizing.width-ca.deltaX/v.transformScale:je.width=v.resizing.width+ca.deltaX/v.transformScale,je.height=v.resizing.height+ca.deltaY/v.transformScale,v.resizing=je;break}case"resizeend":{Pe=ra(S,$,T,x),je.width=Pe.width,je.height=Pe.height,v.resizing={width:-1,height:-1},v.isResizing=!1;break}}Pe=ze(je.height,je.width),Pe.w<t.minW&&(Pe.w=t.minW),Pe.w>t.maxW&&(Pe.w=t.maxW),Pe.h<t.minH&&(Pe.h=t.minH),Pe.h>t.maxH&&(Pe.h=t.maxH),Pe.h<1&&(Pe.h=1),Pe.w<1&&(Pe.w=1),O=ke,w=pe,(T!==Pe.w||x!==Pe.h)&&s("resize",t.i,Pe.h,Pe.w,je.height,je.width),K.type==="resizeend"&&(Y!==T||_!==x)&&s("resized",t.i,Pe.h,Pe.w,je.height,je.width),k.emit("resizeEvent",K.type,t.i,S,$,Pe.h,Pe.w)}function le(K){if(t.static||v.isResizing)return;const Ne=K.type;if(Ne==="dragstart"&&v.isDragging||Ne!=="dragstart"&&!v.isDragging)return;const Q=ys(K);if(Jr(Q))return;const{x:ke,y:pe}=Q,je=K.target;if(!je.offsetParent)return;const Pe={top:0,left:0};switch(Ne){case"dragstart":{A=S,Z=$;const ka=je.offsetParent.getBoundingClientRect(),Ie=je.getBoundingClientRect(),fa=Ie.left/v.transformScale,Re=ka.left/v.transformScale,Ca=Ie.right/v.transformScale,Ue=ka.right/v.transformScale,ba=Ie.top/v.transformScale,ce=ka.top/v.transformScale;D.value?Pe.left=(Ca-Ue)*-1:Pe.left=fa-Re,Pe.top=ba-ce,v.dragging=Pe,v.isDragging=!0;break}case"dragmove":{const ka=gs(E,N,ke,pe);if(D.value?Pe.left=v.dragging.left-ka.deltaX/v.transformScale:Pe.left=v.dragging.left+ka.deltaX/v.transformScale,Pe.top=v.dragging.top+ka.deltaY/v.transformScale,v.bounded){const Ie=je.offsetParent.clientHeight-Fe(t.h,v.rowHeight,v.margin[1]);Pe.top=_e(Pe.top,0,Ie);const fa=_a(),Re=v.containerWidth-Fe(t.w,fa,v.margin[0]);Pe.left=_e(Pe.left,0,Re)}v.dragging=Pe;break}case"dragend":{const ka=je.offsetParent.getBoundingClientRect(),Ie=je.getBoundingClientRect(),fa=Ie.left/v.transformScale,Re=ka.left/v.transformScale,Ca=Ie.right/v.transformScale,Ue=ka.right/v.transformScale,ba=Ie.top/v.transformScale,ce=ka.top/v.transformScale;D.value?Pe.left=(Ca-Ue)*-1:Pe.left=fa-Re,Pe.top=ba-ce,v.dragging={top:-1,left:-1},v.isDragging=!1;break}}let ca;D.value,ca=Ve(Pe.top,Pe.left),E=ke,N=pe,(S!==ca.x||$!==ca.y)&&s("move",t.i,ca.x,ca.y),K.type==="dragend"&&(A!==S||Z!==$)&&s("moved",t.i,ca.x,ca.y),k.emit("dragEvent",K.type,t.i,ca.x,ca.y,x,T)}function ra(K,Ne,Q,ke){const pe=_a();let je;return D.value?je={right:Math.round(pe*K+(K+1)*v.margin[0]),top:Math.round(v.rowHeight*Ne+(Ne+1)*v.margin[1]),width:Q===1/0?Q:Math.round(pe*Q+Math.max(0,Q-1)*v.margin[0]),height:ke===1/0?ke:Math.round(v.rowHeight*ke+Math.max(0,ke-1)*v.margin[1])}:je={left:Math.round(pe*K+(K+1)*v.margin[0]),top:Math.round(v.rowHeight*Ne+(Ne+1)*v.margin[1]),width:Q===1/0?Q:Math.round(pe*Q+Math.max(0,Q-1)*v.margin[0]),height:ke===1/0?ke:Math.round(v.rowHeight*ke+Math.max(0,ke-1)*v.margin[1])},je}function Ve(K,Ne){const Q=_a();let ke=Math.round((Ne-v.margin[0])/(Q+v.margin[0])),pe=Math.round((K-v.margin[1])/(v.rowHeight+v.margin[1]));return ke=Math.max(Math.min(ke,v.cols-T),0),pe=Math.max(Math.min(pe,v.maxRows-x),0),{x:ke,y:pe}}function _a(){return(v.containerWidth-v.margin[0]*(v.cols+1))/v.cols}function Fe(K,Ne,Q){return Number.isFinite(K)?Math.round(Ne*K+Math.max(0,K-1)*Q):K}function _e(K,Ne,Q){return Math.max(Math.min(K,Q),Ne)}function ze(K,Ne,Q=!1){const ke=_a();let pe=Math.round((Ne+v.margin[0])/(ke+v.margin[0])),je=0;return Q?je=Math.ceil((K+v.margin[1])/(v.rowHeight+v.margin[1])):je=Math.round((K+v.margin[1])/(v.rowHeight+v.margin[1])),pe=Math.max(Math.min(pe,v.cols-S),0),je=Math.max(Math.min(je,v.maxRows-$),0),{w:pe,h:je}}function Ge(K,Ne){v.containerWidth=K}function Ba(){ta()}function Ja(){!f.value&&g.value&&(f.value=xs(g.value),v.useStyleCursor||f.value.styleCursor(!1))}const R=hs(le);function j(){if(Ja(),!!f.value)if(v.draggable&&!t.static){const K={ignoreFrom:t.dragIgnoreFrom,allowFrom:t.dragAllowFrom,...t.dragOption};f.value.draggable(K),y||(y=!0,f.value.on("dragstart dragmove dragend",Ne=>{Ne.type==="dragmove"?R(Ne):le(Ne)}))}else f.value.draggable({enabled:!1})}const G=hs(Ia);function V(){if(Ja(),!!f.value)if(v.resizable&&!t.static){const K=ra(0,0,t.maxW,t.maxH),Ne=ra(0,0,t.minW,t.minH),Q={edges:{left:D.value?`.${xe.value[0]}`:!1,right:D.value?!1:`.${xe.value[0]}`,bottom:`.${xe.value[0]}`,top:!1},ignoreFrom:t.resizeIgnoreFrom,restrictSize:{min:{height:Ne.height*v.transformScale,width:Ne.width*v.transformScale},max:{height:K.height*v.transformScale,width:K.width*v.transformScale}},...t.resizeOption};t.preserveAspectRatio&&(Q.modifiers=[xs.modifiers.aspectRatio({ratio:"preserve"})]),f.value.resizable(Q),c||(c=!0,f.value.on("resizestart resizemove resizeend",ke=>{ke.type==="resizemove"?G(ke):Ia(ke)}))}else f.value.resizable({enabled:!1})}return(K,Ne)=>(a.openBlock(),a.createElementBlock("section",{ref_key:"wrapper",ref:g,class:a.normalizeClass(se.value),style:a.normalizeStyle(v.style)},[a.renderSlot(K.$slots,"default"),oe.value?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(xe.value)},null,2)):a.createCommentVNode("",!0)],6))}}),nt=typeof window<"u";var ws;nt&&(ws=window==null?void 0:window.navigator)!=null&&ws.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function _s(l){return l!=null}function Cs(){}const I6=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(I6)));const L6=nt&&("ontouchstart"in window||$6()>0),V6=L6?"pointerdown":"click";function $6(){return typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)||0}function R6(l,n,r=window.Event){const{type:t,bubbles:s=!1,cancelable:u=!1,...k}=n;if(!_s(t)||t==="")return!1;let f;return _s(r)?f=new r(t,{bubbles:s,cancelable:u}):(f=document.createEvent("HTMLEvents"),f.initEvent(t,s,u)),Object.assign(f,k),l.dispatchEvent(f)}const P6="clickoutside",F6=new Set;nt&&document.addEventListener(V6,l=>{const n=l.target,r=l.composedPath&&l.composedPath();F6.forEach(t=>{t!==n&&(r?!r.includes(t):!t.contains(n))&&(!t.__transferElement||t.__transferElement!==n&&!t.__transferElement.contains(n))&&R6(t,{type:P6})})},!0);const j6=[["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 ho;if(nt){for(const l of j6)if(l[1]in document){ho=l;break}}a.computed(()=>!1);const H6=new Set,U6=new WeakMap;if(nt&&ho){const l=ho[2],n=ho[4];document.addEventListener(n,()=>{if(H6.forEach(r=>{r.value=!1}),document[l]){const r=U6.get(document[l]);r&&(r.value=!0)}},!1)}const Tc=new Map;Tc.set("x",0);Tc.set("y",0);var lt=[],q6=function(){return lt.some(function(l){return l.activeTargets.length>0})},W6=function(){return lt.some(function(l){return l.skippedTargets.length>0})},Es="ResizeObserver loop completed with undelivered notifications.",K6=function(){var l;typeof ErrorEvent=="function"?l=new ErrorEvent("error",{message:Es}):(l=document.createEvent("Event"),l.initEvent("error",!1,!1),l.message=Es),window.dispatchEvent(l)},Ut;(function(l){l.BORDER_BOX="border-box",l.CONTENT_BOX="content-box",l.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Ut||(Ut={}));var rt=function(l){return Object.freeze(l)},Y6=function(){function l(n,r){this.inlineSize=n,this.blockSize=r,rt(this)}return l}(),Ac=function(){function l(n,r,t,s){return this.x=n,this.y=r,this.width=t,this.height=s,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,rt(this)}return l.prototype.toJSON=function(){var n=this,r=n.x,t=n.y,s=n.top,u=n.right,k=n.bottom,f=n.left,v=n.width,y=n.height;return{x:r,y:t,top:s,right:u,bottom:k,left:f,width:v,height:y}},l.fromRect=function(n){return new l(n.x,n.y,n.width,n.height)},l}(),xi=function(l){return l instanceof SVGElement&&"getBBox"in l},Mc=function(l){if(xi(l)){var n=l.getBBox(),r=n.width,t=n.height;return!r&&!t}var s=l,u=s.offsetWidth,k=s.offsetHeight;return!(u||k||l.getClientRects().length)},Ss=function(l){var n;if(l instanceof Element)return!0;var r=(n=l==null?void 0:l.ownerDocument)===null||n===void 0?void 0:n.defaultView;return!!(r&&l instanceof r.Element)},G6=function(l){switch(l.tagName){case"INPUT":if(l.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Ft=typeof window<"u"?window:{},co=new WeakMap,Ds=/auto|scroll/,X6=/^tb|vertical/,J6=/msie|trident/i.test(Ft.navigator&&Ft.navigator.userAgent),yn=function(l){return parseFloat(l||"0")},_t=function(l,n,r){return l===void 0&&(l=0),n===void 0&&(n=0),r===void 0&&(r=!1),new Y6((r?n:l)||0,(r?l:n)||0)},Bs=rt({devicePixelContentBoxSize:_t(),borderBoxSize:_t(),contentBoxSize:_t(),contentRect:new Ac(0,0,0,0)}),zc=function(l,n){if(n===void 0&&(n=!1),co.has(l)&&!n)return co.get(l);if(Mc(l))return co.set(l,Bs),Bs;var r=getComputedStyle(l),t=xi(l)&&l.ownerSVGElement&&l.getBBox(),s=!J6&&r.boxSizing==="border-box",u=X6.test(r.writingMode||""),k=!t&&Ds.test(r.overflowY||""),f=!t&&Ds.test(r.overflowX||""),v=t?0:yn(r.paddingTop),y=t?0:yn(r.paddingRight),c=t?0:yn(r.paddingBottom),E=t?0:yn(r.paddingLeft),N=t?0:yn(r.borderTopWidth),O=t?0:yn(r.borderRightWidth),w=t?0:yn(r.borderBottomWidth),Y=t?0:yn(r.borderLeftWidth),_=E+y,A=v+c,Z=Y+O,S=N+w,$=f?l.offsetHeight-S-l.clientHeight:0,T=k?l.offsetWidth-Z-l.clientWidth:0,x=s?_+Z:0,g=s?A+S:0,H=t?t.width:yn(r.width)-x-T,W=t?t.height:yn(r.height)-g-$,ae=H+_+T+Z,ge=W+A+$+S,Oe=rt({devicePixelContentBoxSize:_t(Math.round(H*devicePixelRatio),Math.round(W*devicePixelRatio),u),borderBoxSize:_t(ae,ge,u),contentBoxSize:_t(H,W,u),contentRect:new Ac(E,v,H,W)});return co.set(l,Oe),Oe},Oc=function(l,n,r){var t=zc(l,r),s=t.borderBoxSize,u=t.contentBoxSize,k=t.devicePixelContentBoxSize;switch(n){case Ut.DEVICE_PIXEL_CONTENT_BOX:return k;case Ut.BORDER_BOX:return s;default:return u}},Z6=function(){function l(n){var r=zc(n);this.target=n,this.contentRect=r.contentRect,this.borderBoxSize=rt([r.borderBoxSize]),this.contentBoxSize=rt([r.contentBoxSize]),this.devicePixelContentBoxSize=rt([r.devicePixelContentBoxSize])}return l}(),Ic=function(l){if(Mc(l))return 1/0;for(var n=0,r=l.parentNode;r;)n+=1,r=r.parentNode;return n},Q6=function(){var l=1/0,n=[];lt.forEach(function(u){if(u.activeTargets.length!==0){var k=[];u.activeTargets.forEach(function(f){var v=new Z6(f.target),y=Ic(f.target);k.push(v),f.lastReportedSize=Oc(f.target,f.observedBox),y<l&&(l=y)}),n.push(function(){u.callback.call(u.observer,k,u.observer)}),u.activeTargets.splice(0,u.activeTargets.length)}});for(var r=0,t=n;r<t.length;r++){var s=t[r];s()}return l},Ns=function(l){lt.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(r){r.isActive()&&(Ic(r.target)>l?n.activeTargets.push(r):n.skippedTargets.push(r))})})},eh=function(){var l=0;for(Ns(l);q6();)l=Q6(),Ns(l);return W6()&&K6(),l>0},Qo,Lc=[],ah=function(){return Lc.splice(0).forEach(function(l){return l()})},lh=function(l){if(!Qo){var n=0,r=document.createTextNode(""),t={characterData:!0};new MutationObserver(function(){return ah()}).observe(r,t),Qo=function(){r.textContent="".concat(n?n--:n++)}}Lc.push(l),Qo()},rh=function(l){lh(function(){requestAnimationFrame(l)})},vo=0,nh=function(){return!!vo},th=250,oh={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ts=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],As=function(l){return l===void 0&&(l=0),Date.now()+l},ei=!1,ih=function(){function l(){var n=this;this.stopped=!0,this.listener=function(){return n.schedule()}}return l.prototype.run=function(n){var r=this;if(n===void 0&&(n=th),!ei){ei=!0;var t=As(n);rh(function(){var s=!1;try{s=eh()}finally{if(ei=!1,n=t-As(),!nh())return;s?r.run(1e3):n>0?r.run(n):r.start()}})}},l.prototype.schedule=function(){this.stop(),this.run()},l.prototype.observe=function(){var n=this,r=function(){return n.observer&&n.observer.observe(document.body,oh)};document.body?r():Ft.addEventListener("DOMContentLoaded",r)},l.prototype.start=function(){var n=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ts.forEach(function(r){return Ft.addEventListener(r,n.listener,!0)}))},l.prototype.stop=function(){var n=this;this.stopped||(this.observer&&this.observer.disconnect(),Ts.forEach(function(r){return Ft.removeEventListener(r,n.listener,!0)}),this.stopped=!0)},l}(),vi=new ih,Ms=function(l){!vo&&l>0&&vi.start(),vo+=l,!vo&&vi.stop()},sh=function(l){return!xi(l)&&!G6(l)&&getComputedStyle(l).display==="inline"},ch=function(){function l(n,r){this.target=n,this.observedBox=r||Ut.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return l.prototype.isActive=function(){var n=Oc(this.target,this.observedBox,!0);return sh(this.target)&&(this.lastReportedSize=n),this.lastReportedSize.inlineSize!==n.inlineSize||this.lastReportedSize.blockSize!==n.blockSize},l}(),uh=function(){function l(n,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=n,this.callback=r}return l}(),uo=new WeakMap,zs=function(l,n){for(var r=0;r<l.length;r+=1)if(l[r].target===n)return r;return-1},po=function(){function l(){}return l.connect=function(n,r){var t=new uh(n,r);uo.set(n,t)},l.observe=function(n,r,t){var s=uo.get(n),u=s.observationTargets.length===0;zs(s.observationTargets,r)<0&&(u&&lt.push(s),s.observationTargets.push(new ch(r,t&&t.box)),Ms(1),vi.schedule())},l.unobserve=function(n,r){var t=uo.get(n),s=zs(t.observationTargets,r),u=t.observationTargets.length===1;s>=0&&(u&&lt.splice(lt.indexOf(t),1),t.observationTargets.splice(s,1),Ms(-1))},l.disconnect=function(n){var r=this,t=uo.get(n);t.observationTargets.slice().forEach(function(s){return r.unobserve(n,s.target)}),t.activeTargets.splice(0,t.activeTargets.length)},l}(),dh=function(){function l(n){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof n!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");po.connect(this,n)}return l.prototype.observe=function(n,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ss(n))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");po.observe(this,n,r)},l.prototype.unobserve=function(n){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ss(n))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");po.unobserve(this,n)},l.prototype.disconnect=function(){po.disconnect(this)},l.toString=function(){return"function ResizeObserver () { [polyfill code] }"},l}();const Eo=new WeakMap;function ph(l){var n;for(let r=0,t=l.length;r<t;++r){const s=l[r],u=Eo.get(s.target);if(typeof u=="function"){const{inlineSize:k,blockSize:f}=((n=s.borderBoxSize)==null?void 0:n[0])??{},{offsetWidth:v,offsetHeight:y}=s.target;u(Object.assign(s,{offsetWidth:v,offsetHeight:y,width:k??v,height:f??y}))}}}const Vc=new(nt&&window.ResizeObserver||dh)(ph);function Os(l,n){Eo.set(l,n),Vc.observe(l)}function Is(l){Eo.has(l)&&(Vc.unobserve(l),Eo.delete(l))}function fh(l={}){let n=Cs;const r=a.watch(()=>a.unref(l.target),s=>{n(),!(!s||typeof l.onResize!="function")&&(Os(s,l.onResize),n=()=>{Is(s),n=Cs})},{immediate:!0}),t=()=>{r(),n()};return a.getCurrentScope()&&a.onScopeDispose(t),{observeResize:Os,unobserveResize:Is,unobserve:t}}const hh=a.ref(!1);a.computed(()=>hh.value);const Ls="__theme_style__",ai="__theme_observer__",Vs=a.reactive(new Map),$s=new Map;a.watch(Vs,()=>{if(!nt)return;$s.clear();const l=document.head.querySelector(`#${Ls}`);l&&document.head.removeChild(l);const n=document.createElement("style");let r=`.${ai} { width: 1px }`,t=1;for(const[s,[u,k]]of Vs.entries())r+=` html.${u} .${ai}, .${k} .${ai} { width: ${++t}px }`,$s.set(t,s);n.textContent=r,n.id=Ls,document.head.appendChild(n)});const $c=a.defineComponent({__name:"grid-layout",props:{autoSize:{type:Boolean,default:!0},colNum:{default:12},rowHeight:{default:150},maxRows:{default:1/0},margin:{default:()=>[10,10]},isDraggable:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!0},isMirrored:{type:Boolean,default:!1},isBounded:{type:Boolean,default:!1},useCssTransforms:{type:Boolean,default:!0},verticalCompact:{type:Boolean,default:!0},restoreOnDrag:{type:Boolean,default:!1},layout:{},responsive:{type:Boolean,default:!1},responsiveLayouts:{default:()=>({})},transformScale:{default:1},breakpoints:{default:()=>({lg:1200,md:996,sm:768,xs:480,xxs:0})},cols:{default:()=>({lg:12,md:10,sm:6,xs:4,xxs:2})},preventCollision:{type:Boolean,default:!1},useStyleCursor:{type:Boolean,default:!0}},emits:["layout-before-mount","layout-mounted","layout-updated","breakpoint-changed","update:layout","layout-ready"],setup(l,{expose:n,emit:r}){const t=l,s=r,u=a.reactive({width:-1,mergedStyle:{},lastLayoutLength:0,isDragging:!1,placeholder:{x:0,y:0,w:0,h:0,i:""},layouts:{},lastBreakpoint:null,originalLayout:null}),k=new Map,f=a.ref(t.layout),v=a.ref(),{observeResize:y,unobserveResize:c}=fh(),E=f6();E.on("resizeEvent",N),E.on("dragEvent",O),a.onBeforeMount(()=>{s("layout-before-mount",f.value)}),a.onMounted(()=>{s("layout-mounted",f.value),a.nextTick(()=>{C6(f.value),u.originalLayout=f.value,a.nextTick(()=>{W(),v.value&&y(v.value,h6(S,16)),bt(f.value,t.verticalCompact),s("layout-updated",f.value),Z(),S()})})}),a.onBeforeUnmount(()=>{E.clearAll(),v.value&&c(v.value)});function N(ge,Oe,we,te,me,J){g(ge,Oe,we,te,me,J)}function O(ge,Oe,we,te,me,J){x(ge,Oe,we,te,me,J)}a.watch(()=>u.width,(ge,Oe)=>{a.nextTick(()=>{E.emit("updateWidth",ge),Oe===-1&&a.nextTick(()=>{s("layout-ready",f.value)}),Z()})}),a.watch(()=>[t.layout,t.layout.length],()=>{f.value=t.layout,A()}),a.watch(()=>t.colNum,ge=>{E.emit("setColNum",ge)}),a.watch(()=>t.rowHeight,ge=>{E.emit("setRowHeight",ge)}),a.watch(()=>t.isDraggable,ge=>{E.emit("setDraggable",ge)}),a.watch(()=>t.isResizable,ge=>{E.emit("setResizable",ge)}),a.watch(()=>t.isBounded,ge=>{E.emit("setBounded",ge)}),a.watch(()=>t.transformScale,ge=>{E.emit("setTransformScale",ge)}),a.watch(()=>t.responsive,ge=>{ge||(s("update:layout",u.originalLayout),E.emit("setColNum",t.colNum)),S()}),a.watch(()=>t.maxRows,ge=>{E.emit("setMaxRows",ge)}),a.watch([()=>t.margin,()=>t.margin[1]],Z),a.provide(wc,a.reactive({...a.toRefs(t),...a.toRefs(u),increaseItem:w,decreaseItem:Y})),a.provide(_c,E),n({state:u,getItem:_,resizeEvent:g,dragEvent:x,layoutUpdate:A});function w(ge){k.set(ge.i,ge)}function Y(ge){k.delete(ge.i)}function _(ge){return k.get(ge)}function A(){if(!Jr(f.value)&&!Jr(u.originalLayout)){if(f.value.length!==u.originalLayout.length){const ge=ae(f.value,u.originalLayout);if(ge.length>0)if(f.value.length>u.originalLayout.length)u.originalLayout=u.originalLayout.concat(ge);else{const Oe=new Set(ge.map(we=>we.i));u.originalLayout=u.originalLayout.filter(we=>!Oe.has(we.i))}u.lastLayoutLength=f.value.length,W()}bt(f.value,t.verticalCompact),E.emit("updateWidth",u.width),Z(),s("layout-updated",f.value)}}function Z(){u.mergedStyle={height:$()}}function S(){v.value&&(u.width=v.value.offsetWidth),E.emit("resizeEvent")}function $(){if(!t.autoSize)return;const ge=parseFloat(t.margin[1]);return m6(f.value)*(t.rowHeight+ge)+ge+"px"}let T;function x(ge,Oe,we,te,me,J){let ue=vs(f.value,Oe);Jr(ue)&&(ue={h:0,w:0,x:0,y:0,i:""}),ge==="dragstart"&&!t.verticalCompact&&(T=f.value.reduce((Ye,{i:Sa,x:oe,y:D})=>({...Ye,[Sa]:{x:oe,y:D}}),{})),ge==="dragmove"||ge==="dragstart"?(u.placeholder.i=Oe,u.placeholder.x=ue.x,u.placeholder.y=ue.y,u.placeholder.w=J,u.placeholder.h=me,a.nextTick(()=>{u.isDragging=!0}),E.emit("updateWidth",u.width)):a.nextTick(()=>{u.isDragging=!1}),f.value=hi(f.value,ue,we,te,!0,t.preventCollision),t.restoreOnDrag?(ue.static=!0,bt(f.value,t.verticalCompact,T),ue.static=!1):bt(f.value,t.verticalCompact),E.emit("compact"),Z(),ge==="dragend"&&(T=void 0,s("layout-updated",f.value))}function g(ge,Oe,we,te,me,J){let ue=vs(f.value,Oe);Jr(ue)&&(ue={h:0,w:0,x:0,y:0,i:""});let Ye;if(t.preventCollision){const Sa=Ec(f.value,{...ue,w:J,h:me}).filter(oe=>oe.i!==ue.i);if(Ye=Sa.length>0,Ye){let oe=1/0,D=1/0;Sa.forEach(ne=>{ne.x>ue.x&&(oe=Math.min(oe,ne.x)),ne.y>ue.y&&(D=Math.min(D,ne.y))}),Number.isFinite(oe)&&(ue.w=oe-ue.x),Number.isFinite(D)&&(ue.h=D-ue.y)}}Ye||(ue.w=J,ue.h=me),ge==="resizestart"||ge==="resizemove"?(u.placeholder.i=Oe,u.placeholder.x=we,u.placeholder.y=te,u.placeholder.w=ue.w,u.placeholder.h=ue.h,a.nextTick(()=>{u.isDragging=!0}),E.emit("updateWidth",u.width)):ge&&a.nextTick(()=>{u.isDragging=!1}),t.responsive&&H(),bt(f.value,t.verticalCompact),E.emit("compact"),Z(),ge==="resizeend"&&s("layout-updated",f.value)}function H(){const ge=B6(t.breakpoints,u.width);if(ge===u.lastBreakpoint)return;const Oe=Bc(ge,t.cols);!Jr(u.lastBreakpoint)&&!u.layouts[u.lastBreakpoint]&&(u.layouts[u.lastBreakpoint]=fi(f.value));const we=N6(u.originalLayout,u.layouts,t.breakpoints,ge,u.lastBreakpoint,Oe,t.verticalCompact);u.layouts[ge]=we,u.lastBreakpoint!==ge&&s("breakpoint-changed",ge,we),f.value=we,s("update:layout",we),u.lastBreakpoint=ge,E.emit("setColNum",Oe)}function W(){u.layouts=Object.assign({},t.responsiveLayouts)}function ae(ge,Oe){const we=new Set(Oe.map(ue=>ue.i)),te=new Set(ge.map(ue=>ue.i)),me=ge.filter(ue=>!we.has(ue.i)),J=Oe.filter(ue=>!te.has(ue.i));return me.concat(J)}return(ge,Oe)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"wrapper",ref:v,class:"vgl-layout",style:a.normalizeStyle(u.mergedStyle)},[ge.$slots.default?a.renderSlot(ge.$slots,"default",{key:0}):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(f.value,we=>(a.openBlock(),a.createBlock(Co,a.mergeProps({key:we.i,ref_for:!0},we),{default:a.withCtx(()=>[a.renderSlot(ge.$slots,"item",{item:we})]),_:2},1040))),128)),a.withDirectives(a.createVNode(Co,{class:"vgl-item--placeholder",x:u.placeholder.x,y:u.placeholder.y,w:u.placeholder.w,h:u.placeholder.h,i:u.placeholder.i},null,8,["x","y","w","h","i"]),[[a.vShow,u.isDragging]])],4))}});(function(){try{if(typeof document<"u"){var l=document.createElement("style");l.appendChild(document.createTextNode('.vgl-layout{--vgl-placeholder-bg: red;--vgl-placeholder-opacity: 20%;--vgl-placeholder-z-index: 2;--vgl-item-resizing-z-index: 3;--vgl-item-resizing-opacity: 60%;--vgl-item-dragging-z-index: 3;--vgl-item-dragging-opacity: 100%;--vgl-resizer-size: 10px;--vgl-resizer-border-color: #444;--vgl-resizer-border-width: 2px;position:relative;box-sizing:border-box;transition:height .2s ease}.vgl-item{position:absolute;box-sizing:border-box;transition:.2s ease;transition-property:left,top,right}.vgl-item--placeholder{z-index:var(--vgl-placeholder-z-index, 2);-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:var(--vgl-placeholder-bg, red);opacity:var(--vgl-placeholder-opacity, 20%);transition-duration:.1s}.vgl-item--no-touch{touch-action:none}.vgl-item--transform{right:auto;left:0;transition-property:transform}.vgl-item--transform.vgl-item--rtl{right:0;left:auto}.vgl-item--resizing{z-index:var(--vgl-item-resizing-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-resizing-opacity, 60%)}.vgl-item--dragging{z-index:var(--vgl-item-dragging-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-dragging-opacity, 100%);transition:none}.vgl-item__resizer{position:absolute;right:0;bottom:0;box-sizing:border-box;width:var(--vgl-resizer-size);height:var(--vgl-resizer-size);cursor:se-resize}.vgl-item__resizer:before{position:absolute;top:0;right:3px;bottom:3px;left:0;content:"";border:0 solid var(--vgl-resizer-border-color);border-right-width:var(--vgl-resizer-border-width);border-bottom-width:var(--vgl-resizer-border-width)}.vgl-item__resizer--rtl{right:auto;left:0;cursor:sw-resize}.vgl-item__resizer--rtl:before{top:0;right:0;bottom:3px;left:3px;border-right-width:0;border-bottom-width:var(--vgl-resizer-border-width);border-left-width:var(--vgl-resizer-border-width)}')),document.head.appendChild(l)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}})();const vh={key:0,class:"item-view-group"},mh={key:0,class:"item-view-group"},yh=a.defineComponent({__name:"index",props:{children:{type:Object,default:()=>{}},level:{type:Number,default:1}},emits:["rowClick","routeUrl","radioChange"],setup(l,{emit:n}){const r=L.useModelComp(L.pinia),{isEdit:t}=L.storeToRefs(r),s=n,u=l,k=a.computed(()=>u==null?void 0:u.children),f=a.computed(()=>{var w,Y,_,A;return((w=u==null?void 0:u.children)==null?void 0:w.length)>0&&((Y=u==null?void 0:u.children)!=null&&Y.every(Z=>Z==null?void 0:Z.layout))?(A=(_=u==null?void 0:u.children)==null?void 0:_[0])==null?void 0:A.layout:"vertical"}),v=w=>{s("radioChange",w)},y=a.computed(()=>{var w,Y;return((Y=(w=u==null?void 0:u.children)==null?void 0:w[0])==null?void 0:Y.isGridLayout)||!1}),c=a.ref((u==null?void 0:u.level)+1),E=a.computed(()=>{if(!(u!=null&&u.children)||!Array.isArray(u.children)||u.children.length<2)return!1;const w=u.children.some(_=>(_==null?void 0:_.name)==="测量系统配置表"&&(_==null?void 0:_.comp)==="ParentItem"),Y=u.children.some(_=>(_==null?void 0:_.name)==="测量系统传递表"&&(_==null?void 0:_.comp)==="ParentItem");return w&&Y});a.watch(()=>u==null?void 0:u.children,()=>{E.value},{deep:!0});const N=w=>{s("rowClick",w)},O=(w,Y)=>{s("routeUrl",w,Y)};return(w,Y)=>y.value?(a.openBlock(),a.createBlock(a.unref($c),{key:0,layout:k.value,"onUpdate:layout":Y[0]||(Y[0]=_=>k.value=_),"is-draggable":a.unref(t)==="edit","is-resizable":a.unref(t)==="edit","col-num":24,margin:[8,16]},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(k.value,(_,A)=>(a.openBlock(),a.createBlock(a.unref(Co),{key:_.i,x:_.x,y:_.y,"min-h":_.minH,"max-h":_.maxH,"min-w":_.minW,w:_.w,h:_.h,i:_.i},{default:a.withCtx(()=>{var Z,S,$,T,x,g,H,W,ae,ge,Oe,we,te,me;return[a.createElementVNode("div",{style:a.normalizeStyle({gap:"16px",display:"flex",flexDirection:"column",paddingBottom:A===((Z=u==null?void 0:u.children)==null?void 0:Z.length)-1?"0px":"24px"})},[(($=(S=_==null?void 0:_.component)==null?void 0:S.comp)==null?void 0:$.toUpperCase())!=="TABLE"&&((T=_==null?void 0:_.component)!=null&&T.name)?(a.openBlock(),a.createElementBlock("div",vh,[a.createElementVNode("div",{class:"group-name-wrap",style:a.normalizeStyle({paddingLeft:(parseInt(c.value.toString())-1)*12+"px",fontWeight:600-(c.value-1)*100>=400?600-(c.value-1)*100:400,fontSize:17-c.value>=14?17-c.value+"px":"14px"})},a.toDisplayString((x=_==null?void 0:_.component)==null?void 0:x.name),5)])):a.createCommentVNode("",!0),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Ht)((g=_==null?void 0:_.component)==null?void 0:g.comp)),{pageLayout:f.value,config:{showIndex:(H=a.unref(Yl)[A])==null?void 0:H.showIndex,allowMove:(W=a.unref(Yl)[A])==null?void 0:W.allowMove,viewport:(ae=a.unref(Yl)[A])==null?void 0:ae.viewport,status:(ge=a.unref(Yl)[A])==null?void 0:ge.status},related:_==null?void 0:_.relatedTables,compName:_==null?void 0:_.component.name,compNames:a.unref(rc),itemData:(Oe=_==null?void 0:_.component)==null?void 0:Oe.compData,childItemData:(we=_==null?void 0:_.component)==null?void 0:we.itemChildData,key:a.unref(jn),cacheNewData:a.unref(lc),onChange:a.unref(ko),index:(_==null?void 0:_.id)??A,onContentChange:a.unref(xo),onPageChange:a.unref(wo),parentTableId:(te=_==null?void 0:_.component)==null?void 0:te.tableId,allMapContents:a.unref(di),children:(me=_==null?void 0:_.component)==null?void 0:me.children,level:c.value,onRowClick:N,onRouteUrl:O,onClickTrigger:a.unref(nc),onClickMainKey:a.unref(tc)},null,40,["pageLayout","config","related","compName","compNames","itemData","childItemData","cacheNewData","onChange","index","onContentChange","onPageChange","parentTableId","allMapContents","children","level","onClickTrigger","onClickMainKey"]))],4)]}),_:2},1032,["x","y","min-h","max-h","min-w","w","h","i"]))),128))]),_:1},8,["layout","is-draggable","is-resizable"])):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(u==null?void 0:u.children,(_,A)=>{var Z,S;return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle({gap:"16px",display:(_==null?void 0:_.isShow)===!1?"none":"flex",flexDirection:"column",paddingBottom:parseInt(A)===((Z=u==null?void 0:u.children)==null?void 0:Z.length)-1?"0px":"24px"})},[((S=_==null?void 0:_.comp)==null?void 0:S.toUpperCase())!=="TABLE"&&_.name?(a.openBlock(),a.createElementBlock("div",mh,[a.createElementVNode("div",{class:"group-name-wrap",style:a.normalizeStyle({paddingLeft:parseInt(c.value.toString())>1?"12px":"0px",fontWeight:600-(c.value-1)*100>=400?600-(c.value-1)*100:400,fontSize:17-c.value>=14?17-c.value+"px":"14px"})},a.toDisplayString(_.name),5)])):a.createCommentVNode("",!0),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Ht)(_.comp)),{compName:_.name,config:{showIndex:_==null?void 0:_.showIndex,allowMove:_==null?void 0:_.allowMove,viewport:_==null?void 0:_.viewport,status:_==null?void 0:_.status},itemData:_==null?void 0:_.compData,related:_==null?void 0:_.relatedTables,childItemData:_==null?void 0:_.itemChildData,key:a.unref(jn),onChange:a.unref(ko),index:(_==null?void 0:_.id)??A,onContentChange:a.unref(xo),onPageChange:a.unref(wo),parentTableId:_==null?void 0:_.tableId,allMapContents:a.unref(di),children:_==null?void 0:_.children,level:c.value,onRowClick:N,onRouteUrl:O,onRadioChange:v},null,40,["compName","config","itemData","related","childItemData","onChange","index","onContentChange","onPageChange","parentTableId","allMapContents","children","level"]))],4)}),256))}}),gh=Fl._export_sfc(yh,[["__scopeId","data-v-ed72c7ff"]]),bh={class:"radio-group-container"},kh=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},emits:["radioChange"],setup(l,{emit:n}){const r=l,t=n,s=a.ref(),u=St(L.pinia),{selectTab:k}=L.storeToRefs(u);a.watch(()=>r==null?void 0:r.itemData,()=>{s.value=k.value},{immediate:!0,deep:!0});const f=v=>{s.value=v,t("radioChange",s.value)};return(v,y)=>(a.openBlock(),a.createElementBlock("div",bh,[a.createVNode(rl.ssRadio,{modelValue:s.value,"onUpdate:modelValue":y[0]||(y[0]=c=>s.value=c),content:r==null?void 0:r.itemData,onChange:f},null,8,["modelValue","content"])]))}}),xh=Fl._export_sfc(kh,[["__scopeId","data-v-ed48c2f8"]]),Rc=a.ref([{name:"表格",type:"table",comp:"Table",icon:"Table"},{name:"表单",type:"form",comp:"Form",icon:"Form"},{name:"折叠",type:"fold",comp:"Fold",icon:"Fold"},{name:"头像",type:"avatar",comp:"AvatarUpload",icon:"Avatar"},{name:"签名",type:"signature",comp:"Signature",icon:"Signature"},{name:"步骤条",type:"step",comp:"Step",icon:"Step"},{name:"时间线",type:"timeLine",comp:"TimeLine",icon:"TimeLine"},{name:"标签页",type:"tabs",comp:"Tabs",icon:"Tabs"},{name:"图表",type:"chart",comp:"Chart",icon:"chart-new"},{name:"行内布局",type:"layout",comp:"Layout",icon:"ai13"}]),wh={TABLE:cc,FORM:us,STATICFORM:uc,TABLEOPERATE:v1,TABLESTYLE:A1,TABLEEXTEND:z1,TABLEINTERACTION:L1,FORMOPERATE:ds,FOLD:p2,CALCULATOR:g2,METHODBUTTON:x2,AVATARUPLOAD:qi.ssAvatar,SIGNATURE:qi.ssSignature,FORMTOP:us,STEP:z2,STEPOPERATE:r2,TIMELINE:R2,TIMELINEOPERATE:c2,FORMTOPOPERATE:ds,SIGNATUREOPERATE:T2,AVATARUPLOADOPERATE:C2,TABS:j2,TABSOPERATE:D4,CHART:F4,CHARTOPERATE:Z4,LAYOUT:a6,LAYOUTOPERATE:u6,PARENTITEM:gh,RADIO:xh};function Dt(l){return wh[l==null?void 0:l.toUpperCase()]||null}exports.De=$c;exports.activeStepInfo=kt;exports.addContents=jt;exports.addVisibleDialog=bi;exports.affixItems=Hf;exports.allMapContents=di;exports.analyzeFilter=xt;exports.analyzeForm=Bd;exports.analyzeQuoteForm=Dd;exports.analyzeTable=Td;exports.cacheNewData=lc;exports.clickMainKey=tc;exports.clickSavePage=jf;exports.clickStep=ic;exports.clickTrigger=nc;exports.compId=jn;exports.compNames=rc;exports.compShow=Et;exports.debounce=mi;exports.existLayouts=Jf;exports.generateLayouts=D1;exports.getComponent=Dt;exports.getComponents=Ht;exports.getPageData=jr;exports.getSliceContLength=l0;exports.gridRowHeight=w1;exports.isStepLayout=sc;exports.onBack=Pf;exports.onButtonChange=Kf;exports.onChange=ko;exports.onClick=Ff;exports.onContentChange=xo;exports.onExtendTaskEnd=Xf;exports.onOk=Yf;exports.onPageBack=Qf;exports.onPageChange=wo;exports.onSelectFixContent=Rf;exports.renderShowItems=ec;exports.showItems=Yl;exports.sliceTableLength=ac;exports.slotContent=Rc;exports.ssTable=cc;exports.st=Co;exports.stepItems=r0;exports.tabChange=Zf;exports.toolBar=Gf;exports.useFormComp=yi;exports.useModelLoader=Hp;exports.verifyButton=e0;