ss-component-new 1.1.821 → 1.1.822

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 (141) hide show
  1. package/dist/{OrbitControls-D6pgin7s.js → OrbitControls-Cm4Xs_Bq.js} +1 -1
  2. package/dist/{OrbitControls-Ff5ikkUQ.cjs → OrbitControls-D-XDZGf-.cjs} +1 -1
  3. package/dist/{STLLoader-BNh7D2zV.cjs → STLLoader-BxpEhvEg.cjs} +161 -161
  4. package/dist/{STLLoader-LGKv5i3H.js → STLLoader-DofhZbOw.js} +522 -593
  5. package/dist/{array-D1hKYLwI.cjs → array-Bfmx0w6P.cjs} +2 -2
  6. package/dist/{array-C60T9pDZ.js → array-DbAuNWGt.js} +1 -1
  7. package/dist/{iconfont-v9CcCMwF.js → iconfont-DQodgJo8.js} +73 -75
  8. package/dist/iconfont-Di4uXnX1.cjs +1 -0
  9. package/dist/icons/svg/editTable.svg +1 -1
  10. package/dist/icons/svg/export.svg +1 -0
  11. package/dist/icons/svg/model.svg +1 -0
  12. package/dist/icons/svg/three.svg +1 -0
  13. package/dist/index-1i-XlS2m.js +101 -0
  14. package/dist/{index-BdsJiFeW.cjs → index-6jSC3unU.cjs} +1 -1
  15. package/dist/{index-2kzGjuzu.js → index-6zbHinQ6.js} +10 -9
  16. package/dist/index-B-oe2x1V.cjs +109 -0
  17. package/dist/index-B-qent3l.cjs +1 -0
  18. package/dist/{index-CukZ8eDZ.js → index-BBo52W9F.js} +4 -4
  19. package/dist/index-BOev8isw.cjs +21 -0
  20. package/dist/index-BQgnYD51.js +6492 -0
  21. package/dist/{index-owcnOlVq.js → index-BYW-ix_Q.js} +5 -5
  22. package/dist/{index-4_M1SpeV.js → index-Bi1gr72d.js} +14 -14
  23. package/dist/{index-DnVaHi8q.js → index-BmHmnXS9.js} +7 -7
  24. package/dist/index-BoS30LXH.cjs +1 -0
  25. package/dist/index-BuBMi9JA.cjs +1 -0
  26. package/dist/{index-Zi9xLtwj.js → index-BvE05H-i.js} +2 -2
  27. package/dist/index-BwpOMKef.cjs +1 -0
  28. package/dist/index-C18ZPRC7.cjs +1 -0
  29. package/dist/{index-HVJSfh2g.js → index-CJx2DcDb.js} +21 -19
  30. package/dist/{index-B3cUSGXB.js → index-CL59qQ_W.js} +9 -8
  31. package/dist/{index-DDsJpzfR.js → index-CLdN0W98.js} +47 -47
  32. package/dist/index-CPP7L10q.cjs +1 -0
  33. package/dist/index-CSWIBSmo.cjs +1 -0
  34. package/dist/{index-DEobyz7r.js → index-CTgZZ96L.js} +6 -5
  35. package/dist/{index-WXpPDsev.js → index-CZ1ui4mT.js} +1 -1
  36. package/dist/index-CfQvGqaX.cjs +1 -0
  37. package/dist/index-CgJYAzeA.cjs +1 -0
  38. package/dist/index-ChtmIuBu.js +29771 -0
  39. package/dist/index-CjFcaJcL.cjs +1 -0
  40. package/dist/index-CjTmkzBO.js +24 -0
  41. package/dist/{index-Dtw4WkUo.cjs → index-CngO0AUc.cjs} +1 -1
  42. package/dist/index-CqCPdyGu.js +1248 -0
  43. package/dist/index-Cr6pWv0l.cjs +1 -0
  44. package/dist/{index-Cw95lvvp.js → index-D8Msszln.js} +223 -223
  45. package/dist/index-DDvUG6fk.js +22 -0
  46. package/dist/{index-CdMrhxHS.js → index-DMlIMlyC.js} +10 -10
  47. package/dist/{index-3Cdyqd1B.cjs → index-DOBeGYzT.cjs} +1 -1
  48. package/dist/index-DP0k43fj.cjs +1 -0
  49. package/dist/index-DTxccgVM.cjs +1 -0
  50. package/dist/{index-JAJeIBYE.cjs → index-DVAGljX0.cjs} +1 -1
  51. package/dist/{index-B5Vi6RBj.cjs → index-DVCrYVKw.cjs} +1 -1
  52. package/dist/{index-Dxoxm0Cc.js → index-DZWNGFC0.js} +22 -22
  53. package/dist/{index-CY2iphpd.cjs → index-DbniLh9G.cjs} +1 -1
  54. package/dist/index-Dj_ofPeK.cjs +1 -0
  55. package/dist/{index-DtogzZej.js → index-DocnYz5P.js} +1 -1
  56. package/dist/index-DrL7vroa.js +319 -0
  57. package/dist/index-Dt2McMki.js +13668 -0
  58. package/dist/{index-Cphx1eY1.js → index-Gba1Qfcc.js} +7 -8
  59. package/dist/{index-DMb9Vu-7.js → index-IUkCD4R_.js} +1 -1
  60. package/dist/{index-DAyzDsjs.js → index-K6BRW_Bw.js} +1 -1
  61. package/dist/{index-DzM8zZqe.js → index-OH9t-y2p.js} +4 -4
  62. package/dist/index-PNDdZKYG.cjs +1 -0
  63. package/dist/{index-Dn04IPFM.js → index-QETLKFyV.js} +10 -10
  64. package/dist/{index-BWHtpT9o.cjs → index-RgTvyK54.cjs} +1 -1
  65. package/dist/{index-Cuj-fGNO.cjs → index-VAIU8vMN.cjs} +1 -1
  66. package/dist/{index-CF_0RdqV.cjs → index-dukFqRog.cjs} +1 -1
  67. package/dist/{index-C9Boo2Cw.cjs → index-dyoOdMKX.cjs} +1 -1
  68. package/dist/index-f9bwREQl.cjs +1 -0
  69. package/dist/index-rPc9VS0S.cjs +1 -0
  70. package/dist/index-tPamnhR2.js +236 -0
  71. package/dist/{index-H3kf9EQv.js → index-tX2Hs05F.js} +11 -10
  72. package/dist/{index-DEU-pXeW.js → index-uvns6W6E.js} +1838 -1812
  73. package/dist/index-weauvEnW.cjs +4 -0
  74. package/dist/{index-B8xEed7C.cjs → index-wlnPb2aB.cjs} +1 -1
  75. package/dist/{index.vue_vue_type_script_setup_true_lang-iyZtrhDf.js → index.vue_vue_type_script_setup_true_lang-C4G6mB7R.js} +28 -28
  76. package/dist/{index.vue_vue_type_script_setup_true_lang-CaYQQb8M.cjs → index.vue_vue_type_script_setup_true_lang-CWi4UVPF.cjs} +1 -1
  77. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-qefZ9E5G.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CtN9Ij0Y.js} +53 -23
  78. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CTcahF4Z.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-mQIxU0SD.cjs} +90 -90
  79. package/dist/{index.vue_vue_type_style_index_0_scoped_6bfd62db_lang-Cxjh1E1z.js → index.vue_vue_type_style_index_0_scoped_1966237d_lang-D3xcEtDT.js} +6488 -6474
  80. package/dist/{index.vue_vue_type_style_index_0_scoped_6bfd62db_lang-0eNHRdYw.cjs → index.vue_vue_type_style_index_0_scoped_1966237d_lang-DwIFJsxs.cjs} +14 -14
  81. package/dist/{index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-kymzIBO8.js → index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-D5CTJUDi.js} +17 -17
  82. package/dist/{index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-GlR2V0TC.cjs → index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-VPQBXOPW.cjs} +1 -1
  83. package/dist/index.vue_vue_type_style_index_1_lang-DraQDAAw.cjs +32 -0
  84. package/dist/index.vue_vue_type_style_index_1_lang-hffXwR3x.js +7028 -0
  85. package/dist/isUndefined-4Qg9wncf.js +84 -0
  86. package/dist/isUndefined-BEt4O79g.cjs +1 -0
  87. package/dist/{main-C6I42yaU.js → main-CBCk94h5.js} +30 -29
  88. package/dist/main-DO_PN7jt.cjs +1 -0
  89. package/dist/ss-component.cjs +1 -1
  90. package/dist/ss-component.css +2 -2
  91. package/dist/ss-component.js +11 -11
  92. package/dist/ss-component2.cjs +1 -1
  93. package/dist/ss-component2.js +12 -12
  94. package/dist/threeModel-GKSAzHfe.cjs +1 -0
  95. package/dist/{threeModel-BEt5OVCP.js → threeModel-RJwJMtfW.js} +91 -92
  96. package/dist/{threePreview-BUZRvBRx.js → threePreview-BSqdALPK.js} +3 -3
  97. package/dist/{threePreview-Dyzqu5s7.cjs → threePreview-CKvbwCiX.cjs} +1 -1
  98. package/dist/threeSceneView-BVbVe_Et.js +1277 -0
  99. package/dist/threeSceneView-KvCERteS.cjs +5 -0
  100. package/dist/{threeViewerHost-IhSFkCeD.js → threeViewerHost-AuhfL2Cn.js} +55 -57
  101. package/dist/threeViewerHost-D0pu5wk5.cjs +1 -0
  102. package/package.json +1 -1
  103. package/public/icons/svg/editTable.svg +1 -1
  104. package/public/icons/svg/export.svg +1 -0
  105. package/public/icons/svg/model.svg +1 -0
  106. package/public/icons/svg/three.svg +1 -0
  107. package/dist/animationData-B2T3Oamw.js +0 -108
  108. package/dist/animationData-Db_9HBoM.cjs +0 -1
  109. package/dist/iconfont-CZj6ltAs.cjs +0 -1
  110. package/dist/index-2KKrCkl8.cjs +0 -1
  111. package/dist/index-2OWkrGDh.js +0 -24
  112. package/dist/index-B1iXzkUF.cjs +0 -1
  113. package/dist/index-BBB4VObc.cjs +0 -11
  114. package/dist/index-BIVWMqJQ.cjs +0 -1
  115. package/dist/index-BWpZSzL1.cjs +0 -1
  116. package/dist/index-BllULnvx.cjs +0 -1
  117. package/dist/index-BvO1uTn0.js +0 -21
  118. package/dist/index-C2bI4adc.js +0 -8628
  119. package/dist/index-C9pN8_un.js +0 -548
  120. package/dist/index-CPdKWCSo.cjs +0 -1
  121. package/dist/index-CQfFbeTJ.cjs +0 -1
  122. package/dist/index-CZJOPfp5.js +0 -1152
  123. package/dist/index-Cb0q1Y5b.cjs +0 -1
  124. package/dist/index-Cfomm0G1.cjs +0 -109
  125. package/dist/index-CvvFU_QA.cjs +0 -1
  126. package/dist/index-DYMLmifU.cjs +0 -1
  127. package/dist/index-DfPyuGyq.js +0 -101
  128. package/dist/index-Dm2qfeUm.cjs +0 -1
  129. package/dist/index-DtX1F0sz.cjs +0 -4
  130. package/dist/index-Du3VUDcF.cjs +0 -1
  131. package/dist/index-VWNqRYy9.js +0 -36270
  132. package/dist/index-kmj8K3JX.cjs +0 -1
  133. package/dist/index-ndZw4AQJ.cjs +0 -1
  134. package/dist/index-y5FEcncv.cjs +0 -1
  135. package/dist/index.vue_vue_type_style_index_1_lang-Bmwy3cgo.cjs +0 -42
  136. package/dist/index.vue_vue_type_style_index_1_lang-Rs1M3B8e.js +0 -11984
  137. package/dist/main-2gDZp_zL.cjs +0 -1
  138. package/dist/threeModel-DgOcIXVI.cjs +0 -1
  139. package/dist/threeSceneView-BZx98QgN.js +0 -1450
  140. package/dist/threeSceneView-DSkGJN5d.cjs +0 -5
  141. package/dist/threeViewerHost-T_51aUg5.cjs +0 -1
@@ -0,0 +1,32 @@
1
+ "use strict";const f=require("./index-BOev8isw.cjs"),l=require("vue");function Vr(e){return e}function Gi(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Wi=800,Yi=16,Zi=Date.now;function Ji(e){var t=0,n=0;return function(){var r=Zi(),i=Yi-(r-n);if(n=r,i>0){if(++t>=Wi)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Xi(e){return function(){return e}}var Qi=f.defineProperty?function(e,t){return f.defineProperty(e,"toString",{configurable:!0,enumerable:!1,value:Xi(t),writable:!0})}:Vr,Fr=Ji(Qi),Xn=Math.max;function Kr(e,t,n){return t=Xn(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Xn(r.length-t,0),s=Array(o);++i<o;)s[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=n(s),Gi(e,this,a)}}var Qn=f.Symbol?f.Symbol.isConcatSpreadable:void 0;function eo(e){return f.isArray(e)||f.isArguments(e)||!!(Qn&&e&&e[Qn])}function Tn(e,t,n,r,i){var o=-1,s=e.length;for(n||(n=eo),i||(i=[]);++o<s;){var a=e[o];t>0&&n(a)?t>1?Tn(a,t-1,n,r,i):f.arrayPush(i,a):r||(i[i.length]=a)}return i}function Lr(e){var t=e==null?0:e.length;return t?Tn(e,1):[]}function _r(e){return Fr(Kr(e,void 0,Lr),e+"")}var to="__lodash_hash_undefined__";function no(e){return this.__data__.set(e,to),this}function ro(e){return this.__data__.has(e)}function ht(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new f.MapCache;++t<n;)this.add(e[t])}ht.prototype.add=ht.prototype.push=no;ht.prototype.has=ro;function io(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Hr(e,t){return e.has(t)}var oo=1,so=2;function zr(e,t,n,r,i,o){var s=n&oo,a=e.length,c=t.length;if(a!=c&&!(s&&c>a))return!1;var u=o.get(e),h=o.get(t);if(u&&h)return u==t&&h==e;var d=-1,p=!0,m=n&so?new ht:void 0;for(o.set(e,t),o.set(t,e);++d<a;){var y=e[d],b=t[d];if(r)var g=s?r(b,y,d,t,e,o):r(y,b,d,e,t,o);if(g!==void 0){if(g)continue;p=!1;break}if(m){if(!io(t,function(E,T){if(!Hr(m,T)&&(y===E||i(y,E,n,r,o)))return m.push(T)})){p=!1;break}}else if(!(y===b||i(y,b,n,r,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function ao(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function $r(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var lo=1,uo=2,co="[object Boolean]",fo="[object Date]",ho="[object Error]",po="[object Map]",go="[object Number]",yo="[object RegExp]",vo="[object Set]",mo="[object String]",bo="[object Symbol]",Eo="[object ArrayBuffer]",So="[object DataView]",er=f.Symbol?f.Symbol.prototype:void 0,Xt=er?er.valueOf:void 0;function To(e,t,n,r,i,o,s){switch(n){case So:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Eo:return!(e.byteLength!=t.byteLength||!o(new f.Uint8Array(e),new f.Uint8Array(t)));case co:case fo:case go:return f.eq(+e,+t);case ho:return e.name==t.name&&e.message==t.message;case yo:case mo:return e==t+"";case po:var a=ao;case vo:var c=r&lo;if(a||(a=$r),e.size!=t.size&&!c)return!1;var u=s.get(e);if(u)return u==t;r|=uo,s.set(e,t);var h=zr(a(e),a(t),r,i,o,s);return s.delete(e),h;case bo:if(Xt)return Xt.call(e)==Xt.call(t)}return!1}var wo=1,Do=Object.prototype,Ao=Do.hasOwnProperty;function ko(e,t,n,r,i,o){var s=n&wo,a=f.getAllKeys(e),c=a.length,u=f.getAllKeys(t),h=u.length;if(c!=h&&!s)return!1;for(var d=c;d--;){var p=a[d];if(!(s?p in t:Ao.call(t,p)))return!1}var m=o.get(e),y=o.get(t);if(m&&y)return m==t&&y==e;var b=!0;o.set(e,t),o.set(t,e);for(var g=s;++d<c;){p=a[d];var E=e[p],T=t[p];if(r)var N=s?r(T,E,p,t,e,o):r(E,T,p,e,t,o);if(!(N===void 0?E===T||i(E,T,n,r,o):N)){b=!1;break}g||(g=p=="constructor")}if(b&&!g){var S=e.constructor,A=t.constructor;S!=A&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof A=="function"&&A instanceof A)&&(b=!1)}return o.delete(e),o.delete(t),b}var Co=1,tr="[object Arguments]",nr="[object Array]",mt="[object Object]",Io=Object.prototype,rr=Io.hasOwnProperty;function Bo(e,t,n,r,i,o){var s=f.isArray(e),a=f.isArray(t),c=s?nr:f.getTag(e),u=a?nr:f.getTag(t);c=c==tr?mt:c,u=u==tr?mt:u;var h=c==mt,d=u==mt,p=c==u;if(p&&f.isBuffer(e)){if(!f.isBuffer(t))return!1;s=!0,h=!1}if(p&&!h)return o||(o=new f.Stack),s||f.isTypedArray(e)?zr(e,t,n,r,i,o):To(e,t,c,n,r,i,o);if(!(n&Co)){var m=h&&rr.call(e,"__wrapped__"),y=d&&rr.call(t,"__wrapped__");if(m||y){var b=m?e.value():e,g=y?t.value():t;return o||(o=new f.Stack),i(b,g,n,r,o)}}return p?(o||(o=new f.Stack),ko(e,t,n,r,i,o)):!1}function wn(e,t,n,r,i){return e===t?!0:e==null||t==null||!f.isObjectLike(e)&&!f.isObjectLike(t)?e!==e&&t!==t:Bo(e,t,n,r,wn,i)}function xo(e,t){return e!=null&&t in Object(e)}function Ro(e,t,n){t=f.castPath(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var s=f.toKey(t[r]);if(!(o=e!=null&&n(e,s)))break;e=e[s]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&f.isLength(i)&&f.isIndex(s,i)&&(f.isArray(e)||f.isArguments(e)))}function Ur(e,t){return e!=null&&Ro(e,t,xo)}function qr(e,t){return wn(e,t)}function No(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var s=t[r],a=f.baseGet(e,s);n(a,s)&&f.baseSet(o,f.castPath(s,e),a)}return o}function Mo(e,t){return No(e,t,function(n,r){return Ur(e,r)})}var jr=_r(function(e,t){return e==null?{}:Mo(e,t)});const Mt="update:modelValue",cn="change",fn="input";function Oo(e,t,n,r){const i=n-t;return e/=r/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}const Gr=e=>f.isClient?window.requestAnimationFrame(e):setTimeout(e,16),Wr=e=>f.isClient?window.cancelAnimationFrame(e):clearTimeout(e),Po=(e,t)=>{if(!f.isClient)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],r=f.getStyle(e,n);return["scroll","auto","overlay"].some(i=>r.includes(i))},Vo=(e,t)=>{if(!f.isClient)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(Po(n,t))return n;n=n.parentNode}return n};let bt;const Yr=e=>{var t;if(!f.isClient)return 0;if(bt!==void 0)return bt;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const i=document.createElement("div");i.style.width="100%",n.appendChild(i);const o=i.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),bt=r-o,bt};function Fo(e,t){if(!f.isClient)return;if(!t){e.scrollTop=0;return}const n=[];let r=t.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)n.push(r),r=r.offsetParent;const i=t.offsetTop+n.reduce((c,u)=>c+u.offsetTop,0),o=i+t.offsetHeight,s=e.scrollTop,a=s+e.clientHeight;i<s?e.scrollTop=i:o>a&&(e.scrollTop=o-e.clientHeight)}function Ko(e,t,n,r,i){const o=Date.now();let s;const a=()=>{const u=Date.now()-o,h=Oo(u>r?r:u,t,n,r);f.isWindow(e)?e.scrollTo(window.pageXOffset,h):e.scrollTop=h,u<r?s=Gr(a):f.isFunction(i)&&i()};return a(),()=>{s&&Wr(s)}}const Lo=(e,t)=>f.isWindow(t)?e.ownerDocument.documentElement:t,_o=e=>f.isWindow(e)?window.scrollY:e.scrollTop,Zr=()=>f.isClient&&/firefox/i.test(window.navigator.userAgent);let de;const Ho={height:"0",visibility:"hidden",overflow:Zr()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},zo=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function $o(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),i=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:zo.map(s=>[s,t.getPropertyValue(s)]),paddingSize:r,borderSize:i,boxSizing:n}}function ir(e,t=1,n){var r;de||(de=document.createElement("textarea"),document.body.appendChild(de));const{paddingSize:i,borderSize:o,boxSizing:s,contextStyle:a}=$o(e);a.forEach(([d,p])=>de==null?void 0:de.style.setProperty(d,p)),Object.entries(Ho).forEach(([d,p])=>de==null?void 0:de.style.setProperty(d,p,"important")),de.value=e.value||e.placeholder||"";let c=de.scrollHeight;const u={};s==="border-box"?c=c+o:s==="content-box"&&(c=c-i),de.value="";const h=de.scrollHeight-i;if(f.isNumber(t)){let d=h*t;s==="border-box"&&(d=d+i+o),c=Math.max(d,c),u.minHeight=`${d}px`}if(f.isNumber(n)){let d=h*n;s==="border-box"&&(d=d+i+o),c=Math.min(d,c)}return u.height=`${c}px`,(r=de.parentNode)==null||r.removeChild(de),de=void 0,u}const Uo=f.buildProps({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Jr=e=>jr(Uo,e),Xr=f.buildProps({id:{type:String,default:void 0},size:f.useSizeProp,disabled:Boolean,modelValue:{type:f.definePropType([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:f.definePropType([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:f.iconPropType},prefixIcon:{type:f.iconPropType},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:f.definePropType([Object,Array,String]),default:()=>f.mutable({})},autofocus:Boolean,rows:{type:Number,default:2},...Jr(["ariaLabel"])}),qo={[Mt]:e=>f.isString(e),input:e=>f.isString(e),change:e=>f.isString(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},jo=["class","style"],Go=/^on[A-Z]/,Qr=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=l.computed(()=>((n==null?void 0:n.value)||[]).concat(jo)),i=l.getCurrentInstance();return i?l.computed(()=>{var o;return f.fromPairs(Object.entries((o=i.proxy)==null?void 0:o.$attrs).filter(([s])=>!r.value.includes(s)&&!(t&&Go.test(s))))}):(f.debugWarn("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),l.computed(()=>({})))},hn={prefix:Math.floor(Math.random()*1e4),current:0},Wo=Symbol("elIdInjection"),ei=()=>l.getCurrentInstance()?l.inject(Wo,hn):hn,Ot=e=>{const t=ei();!f.isClient&&t===hn&&f.debugWarn("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
2
+ usage: app.provide(ID_INJECTION_KEY, {
3
+ prefix: number,
4
+ current: number,
5
+ })`);const n=f.useGetDerivedNamespace();return f.computedEager(()=>l.unref(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},zt=Symbol("formContextKey"),Dn=Symbol("formItemContextKey"),An=()=>{const e=l.inject(zt,void 0),t=l.inject(Dn,void 0);return{form:e,formItem:t}},ti=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=l.ref(!1)),r||(r=l.ref(!1));const i=l.ref();let o;const s=l.computed(()=>{var a;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((a=t.inputIds)==null?void 0:a.length)<=1)});return l.onMounted(()=>{o=l.watch([l.toRef(e,"id"),n],([a,c])=>{const u=a??(c?void 0:Ot().value);u!==i.value&&(t!=null&&t.removeInputId&&(i.value&&t.removeInputId(i.value),!(r!=null&&r.value)&&!c&&u&&t.addInputId(u)),i.value=u)},{immediate:!0})}),l.onUnmounted(()=>{o&&o(),t!=null&&t.removeInputId&&i.value&&t.removeInputId(i.value)}),{isLabeledByFormItem:s,inputId:i}},ni=e=>{const t=l.getCurrentInstance();return l.computed(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})},kn=(e,t={})=>{const n=l.ref(void 0),r=t.prop?n:ni("size"),i=t.global?n:f.useGlobalSize(),o=t.form?{size:void 0}:l.inject(zt,void 0),s=t.formItem?{size:void 0}:l.inject(Dn,void 0);return l.computed(()=>r.value||l.unref(e)||(s==null?void 0:s.size)||(o==null?void 0:o.size)||i.value||"")},gt=e=>{const t=ni("disabled"),n=l.inject(zt,void 0);return l.computed(()=>t.value||l.unref(e)||(n==null?void 0:n.disabled)||!1)},Yo='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',Zo=e=>process.env.NODE_ENV==="test"?!0:getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,or=e=>Array.from(e.querySelectorAll(Yo)).filter(t=>$t(t)&&Zo(t)),$t=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Jo=function(e,t,...n){let r;t.includes("mouse")||t.includes("click")?r="MouseEvents":t.includes("key")?r="KeyboardEvent":r="HTMLEvents";const i=document.createEvent(r);return i.initEvent(t,...n),e.dispatchEvent(i),e},ri=e=>!e.getAttribute("aria-owns"),Xo=(e,t,n)=>{const{parentNode:r}=e;if(!r)return null;const i=r.querySelectorAll(n),o=Array.prototype.indexOf.call(i,e);return i[o+t]||null},Qo=e=>{e&&(e.focus(),!ri(e)&&e.click())};function ii(e,{beforeFocus:t,afterFocus:n,beforeBlur:r,afterBlur:i}={}){const o=l.getCurrentInstance(),{emit:s}=o,a=l.shallowRef(),c=gt(),u=l.ref(!1),h=m=>{f.isFunction(t)&&t(m)||u.value||(u.value=!0,s("focus",m),n==null||n())},d=m=>{var y;f.isFunction(r)&&r(m)||m.relatedTarget&&((y=a.value)!=null&&y.contains(m.relatedTarget))||(u.value=!1,s("blur",m),i==null||i())},p=m=>{var y,b;(y=a.value)!=null&&y.contains(document.activeElement)&&a.value!==document.activeElement||$t(m.target)||c.value||(b=e.value)==null||b.focus()};return l.watch([a,c],([m,y])=>{m&&(y?m.removeAttribute("tabindex"):m.setAttribute("tabindex","-1"))}),f.useEventListener(a,"focus",h,!0),f.useEventListener(a,"blur",d,!0),f.useEventListener(a,"click",p,!0),process.env.NODE_ENV==="test"&&l.onMounted(()=>{const m=f.isElement(e.value)?e.value:document.querySelector("input,textarea");m&&(f.useEventListener(m,"focus",h,!0),f.useEventListener(m,"blur",d,!0))}),{isFocused:u,wrapperRef:a,handleFocus:h,handleBlur:d}}const es=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e);function oi({afterComposition:e,emit:t}){const n=l.ref(!1),r=a=>{t==null||t("compositionstart",a),n.value=!0},i=a=>{var c;t==null||t("compositionupdate",a);const u=(c=a.target)==null?void 0:c.value,h=u[u.length-1]||"";n.value=!es(h)},o=a=>{t==null||t("compositionend",a),n.value&&(n.value=!1,l.nextTick(()=>e(a)))};return{isComposing:n,handleComposition:a=>{a.type==="compositionend"?o(a):i(a)},handleCompositionStart:r,handleCompositionUpdate:i,handleCompositionEnd:o}}function ts(e){let t;function n(){if(e.value==null)return;const{selectionStart:i,selectionEnd:o,value:s}=e.value;if(i==null||o==null)return;const a=s.slice(0,Math.max(0,i)),c=s.slice(Math.max(0,o));t={selectionStart:i,selectionEnd:o,value:s,beforeTxt:a,afterTxt:c}}function r(){if(e.value==null||t==null)return;const{value:i}=e.value,{beforeTxt:o,afterTxt:s,selectionStart:a}=t;if(o==null||s==null||a==null)return;let c=i.length;if(i.endsWith(s))c=i.length-s.length;else if(i.startsWith(o))c=o.length;else{const u=o[a-1],h=i.indexOf(u,a-1);h!==-1&&(c=h+1)}e.value.setSelectionRange(c,c)}return[n,r]}const si="ElInput",ns=l.defineComponent({name:si,inheritAttrs:!1}),rs=l.defineComponent({...ns,props:Xr,emits:qo,setup(e,{expose:t,emit:n}){const r=e,i=l.useAttrs(),o=Qr(),s=l.useSlots(),a=l.computed(()=>[r.type==="textarea"?b.b():y.b(),y.m(p.value),y.is("disabled",m.value),y.is("exceed",ne.value),{[y.b("group")]:s.prepend||s.append,[y.m("prefix")]:s.prefix||r.prefixIcon,[y.m("suffix")]:s.suffix||r.suffixIcon||r.clearable||r.showPassword,[y.bm("suffix","password-clear")]:H.value&&ee.value,[y.b("hidden")]:r.type==="hidden"},i.class]),c=l.computed(()=>[y.e("wrapper"),y.is("focus",O.value)]),{form:u,formItem:h}=An(),{inputId:d}=ti(r,{formItemContext:h}),p=kn(),m=gt(),y=f.useNamespace("input"),b=f.useNamespace("textarea"),g=l.shallowRef(),E=l.shallowRef(),T=l.ref(!1),N=l.ref(!1),S=l.ref(),A=l.shallowRef(r.inputStyle),v=l.computed(()=>g.value||E.value),{wrapperRef:w,isFocused:O,handleFocus:C,handleBlur:B}=ii(v,{beforeFocus(){return m.value},afterBlur(){var I;r.validateEvent&&((I=h==null?void 0:h.validate)==null||I.call(h,"blur").catch(G=>f.debugWarn(G)))}}),k=l.computed(()=>{var I;return(I=u==null?void 0:u.statusIcon)!=null?I:!1}),M=l.computed(()=>(h==null?void 0:h.validateState)||""),P=l.computed(()=>M.value&&f.ValidateComponentsMap[M.value]),x=l.computed(()=>N.value?f.view_default:f.hide_default),F=l.computed(()=>[i.style]),R=l.computed(()=>[r.inputStyle,A.value,{resize:r.resize}]),V=l.computed(()=>f.isNil(r.modelValue)?"":String(r.modelValue)),H=l.computed(()=>r.clearable&&!m.value&&!r.readonly&&!!V.value&&(O.value||T.value)),ee=l.computed(()=>r.showPassword&&!m.value&&!!V.value),W=l.computed(()=>r.showWordLimit&&!!r.maxlength&&(r.type==="text"||r.type==="textarea")&&!m.value&&!r.readonly&&!r.showPassword),L=l.computed(()=>V.value.length),ne=l.computed(()=>!!W.value&&L.value>Number(r.maxlength)),re=l.computed(()=>!!s.suffix||!!r.suffixIcon||H.value||r.showPassword||W.value||!!M.value&&k.value),[Y,_]=ts(g);f.useResizeObserver(E,I=>{if(pe(),!W.value||r.resize!=="both")return;const G=I[0],{width:me}=G.contentRect;S.value={right:`calc(100% - ${me+15+6}px)`}});const z=()=>{const{type:I,autosize:G}=r;if(!(!f.isClient||I!=="textarea"||!E.value))if(G){const me=f.isObject$1(G)?G.minRows:void 0,le=f.isObject$1(G)?G.maxRows:void 0,st=ir(E.value,me,le);A.value={overflowY:"hidden",...st},l.nextTick(()=>{E.value.offsetHeight,A.value=st})}else A.value={minHeight:ir(E.value).minHeight}},pe=(I=>{let G=!1;return()=>{var me;if(G||!r.autosize)return;((me=E.value)==null?void 0:me.offsetParent)===null||(I(),G=!0)}})(z),ae=()=>{const I=v.value,G=r.formatter?r.formatter(V.value):V.value;!I||I.value===G||(I.value=G)},j=async I=>{Y();let{value:G}=I.target;if(r.formatter&&r.parser&&(G=r.parser(G)),!it.value){if(G===V.value){ae();return}n(Mt,G),n(fn,G),await l.nextTick(),ae(),_()}},we=I=>{let{value:G}=I.target;r.formatter&&r.parser&&(G=r.parser(G)),n(cn,G)},{isComposing:it,handleCompositionStart:ot,handleCompositionUpdate:J,handleCompositionEnd:X}=oi({emit:n,afterComposition:j}),oe=()=>{Y(),N.value=!N.value,setTimeout(_)},fe=()=>{var I;return(I=v.value)==null?void 0:I.focus()},ye=()=>{var I;return(I=v.value)==null?void 0:I.blur()},ve=I=>{T.value=!1,n("mouseleave",I)},De=I=>{T.value=!0,n("mouseenter",I)},$=I=>{n("keydown",I)},te=()=>{var I;(I=v.value)==null||I.select()},ce=()=>{n(Mt,""),n(cn,""),n("clear"),n(fn,"")};return l.watch(()=>r.modelValue,()=>{var I;l.nextTick(()=>z()),r.validateEvent&&((I=h==null?void 0:h.validate)==null||I.call(h,"change").catch(G=>f.debugWarn(G)))}),l.watch(V,()=>ae()),l.watch(()=>r.type,async()=>{await l.nextTick(),ae(),z()}),l.onMounted(()=>{!r.formatter&&r.parser&&f.debugWarn(si,"If you set the parser, you also need to set the formatter."),ae(),l.nextTick(z)}),t({input:g,textarea:E,ref:v,textareaStyle:R,autosize:l.toRef(r,"autosize"),isComposing:it,focus:fe,blur:ye,select:te,clear:ce,resizeTextarea:z}),(I,G)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass([l.unref(a),{[l.unref(y).bm("group","append")]:I.$slots.append,[l.unref(y).bm("group","prepend")]:I.$slots.prepend}]),style:l.normalizeStyle(l.unref(F)),onMouseenter:De,onMouseleave:ve},[l.createCommentVNode(" input "),I.type!=="textarea"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createCommentVNode(" prepend slot "),I.$slots.prepend?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(l.unref(y).be("group","prepend"))},[l.renderSlot(I.$slots,"prepend")],2)):l.createCommentVNode("v-if",!0),l.createElementVNode("div",{ref_key:"wrapperRef",ref:w,class:l.normalizeClass(l.unref(c))},[l.createCommentVNode(" prefix slot "),I.$slots.prefix||I.prefixIcon?(l.openBlock(),l.createElementBlock("span",{key:0,class:l.normalizeClass(l.unref(y).e("prefix"))},[l.createElementVNode("span",{class:l.normalizeClass(l.unref(y).e("prefix-inner"))},[l.renderSlot(I.$slots,"prefix"),I.prefixIcon?(l.openBlock(),l.createBlock(l.unref(f.ElIcon),{key:0,class:l.normalizeClass(l.unref(y).e("icon"))},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(I.prefixIcon)))]),_:1},8,["class"])):l.createCommentVNode("v-if",!0)],2)],2)):l.createCommentVNode("v-if",!0),l.createElementVNode("input",l.mergeProps({id:l.unref(d),ref_key:"input",ref:g,class:l.unref(y).e("inner")},l.unref(o),{minlength:I.minlength,maxlength:I.maxlength,type:I.showPassword?N.value?"text":"password":I.type,disabled:l.unref(m),readonly:I.readonly,autocomplete:I.autocomplete,tabindex:I.tabindex,"aria-label":I.ariaLabel,placeholder:I.placeholder,style:I.inputStyle,form:I.form,autofocus:I.autofocus,role:I.containerRole,onCompositionstart:l.unref(ot),onCompositionupdate:l.unref(J),onCompositionend:l.unref(X),onInput:j,onChange:we,onKeydown:$}),null,16,["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","onCompositionstart","onCompositionupdate","onCompositionend"]),l.createCommentVNode(" suffix slot "),l.unref(re)?(l.openBlock(),l.createElementBlock("span",{key:1,class:l.normalizeClass(l.unref(y).e("suffix"))},[l.createElementVNode("span",{class:l.normalizeClass(l.unref(y).e("suffix-inner"))},[!l.unref(H)||!l.unref(ee)||!l.unref(W)?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.renderSlot(I.$slots,"suffix"),I.suffixIcon?(l.openBlock(),l.createBlock(l.unref(f.ElIcon),{key:0,class:l.normalizeClass(l.unref(y).e("icon"))},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(I.suffixIcon)))]),_:1},8,["class"])):l.createCommentVNode("v-if",!0)],64)):l.createCommentVNode("v-if",!0),l.unref(H)?(l.openBlock(),l.createBlock(l.unref(f.ElIcon),{key:1,class:l.normalizeClass([l.unref(y).e("icon"),l.unref(y).e("clear")]),onMousedown:l.withModifiers(l.unref(f.NOOP),["prevent"]),onClick:ce},{default:l.withCtx(()=>[l.createVNode(l.unref(f.circle_close_default))]),_:1},8,["class","onMousedown"])):l.createCommentVNode("v-if",!0),l.unref(ee)?(l.openBlock(),l.createBlock(l.unref(f.ElIcon),{key:2,class:l.normalizeClass([l.unref(y).e("icon"),l.unref(y).e("password")]),onClick:oe},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(l.unref(x))))]),_:1},8,["class"])):l.createCommentVNode("v-if",!0),l.unref(W)?(l.openBlock(),l.createElementBlock("span",{key:3,class:l.normalizeClass(l.unref(y).e("count"))},[l.createElementVNode("span",{class:l.normalizeClass(l.unref(y).e("count-inner"))},l.toDisplayString(l.unref(L))+" / "+l.toDisplayString(I.maxlength),3)],2)):l.createCommentVNode("v-if",!0),l.unref(M)&&l.unref(P)&&l.unref(k)?(l.openBlock(),l.createBlock(l.unref(f.ElIcon),{key:4,class:l.normalizeClass([l.unref(y).e("icon"),l.unref(y).e("validateIcon"),l.unref(y).is("loading",l.unref(M)==="validating")])},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(l.unref(P))))]),_:1},8,["class"])):l.createCommentVNode("v-if",!0)],2)],2)):l.createCommentVNode("v-if",!0)],2),l.createCommentVNode(" append slot "),I.$slots.append?(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(l.unref(y).be("group","append"))},[l.renderSlot(I.$slots,"append")],2)):l.createCommentVNode("v-if",!0)],64)):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createCommentVNode(" textarea "),l.createElementVNode("textarea",l.mergeProps({id:l.unref(d),ref_key:"textarea",ref:E,class:[l.unref(b).e("inner"),l.unref(y).is("focus",l.unref(O))]},l.unref(o),{minlength:I.minlength,maxlength:I.maxlength,tabindex:I.tabindex,disabled:l.unref(m),readonly:I.readonly,autocomplete:I.autocomplete,style:l.unref(R),"aria-label":I.ariaLabel,placeholder:I.placeholder,form:I.form,autofocus:I.autofocus,rows:I.rows,role:I.containerRole,onCompositionstart:l.unref(ot),onCompositionupdate:l.unref(J),onCompositionend:l.unref(X),onInput:j,onFocus:l.unref(C),onBlur:l.unref(B),onChange:we,onKeydown:$}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),l.unref(W)?(l.openBlock(),l.createElementBlock("span",{key:0,style:l.normalizeStyle(S.value),class:l.normalizeClass(l.unref(y).e("count"))},l.toDisplayString(l.unref(L))+" / "+l.toDisplayString(I.maxlength),7)):l.createCommentVNode("v-if",!0)],64))],38))}});var is=f._export_sfc(rs,[["__file","input.vue"]]);const ai=f.withInstall(is),Qt="focus-trap.focus-after-trapped",en="focus-trap.focus-after-released",os="focus-trap.focusout-prevented",sr={cancelable:!0,bubbles:!1},ss={cancelable:!0,bubbles:!1},ar="focusAfterTrapped",lr="focusAfterReleased",li=Symbol("elFocusTrap"),Cn=l.ref(),Ut=l.ref(0),In=l.ref(0);let Et=0;const ui=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},ur=(e,t)=>{for(const n of e)if(!as(n,t))return n},as=(e,t)=>{if(process.env.NODE_ENV==="test")return!1;if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},ls=e=>{const t=ui(e),n=ur(t,e),r=ur(t.reverse(),e);return[n,r]},us=e=>e instanceof HTMLInputElement&&"select"in e,ke=(e,t)=>{if(e&&e.focus){const n=document.activeElement;let r=!1;f.isElement(e)&&!$t(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),r=!0),e.focus({preventScroll:!0}),In.value=window.performance.now(),e!==n&&us(e)&&t&&e.select(),f.isElement(e)&&r&&e.removeAttribute("tabindex")}};function cr(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const cs=()=>{let e=[];return{push:r=>{const i=e[0];i&&r!==i&&i.pause(),e=cr(e,r),e.unshift(r)},remove:r=>{var i,o;e=cr(e,r),(o=(i=e[0])==null?void 0:i.resume)==null||o.call(i)}}},fs=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(ke(r,t),document.activeElement!==n)return},fr=cs(),hs=()=>Ut.value>In.value,St=()=>{Cn.value="pointer",Ut.value=window.performance.now()},hr=()=>{Cn.value="keyboard",Ut.value=window.performance.now()},ds=()=>(l.onMounted(()=>{Et===0&&(document.addEventListener("mousedown",St),document.addEventListener("touchstart",St),document.addEventListener("keydown",hr)),Et++}),l.onBeforeUnmount(()=>{Et--,Et<=0&&(document.removeEventListener("mousedown",St),document.removeEventListener("touchstart",St),document.removeEventListener("keydown",hr))}),{focusReason:Cn,lastUserFocusTimestamp:Ut,lastAutomatedFocusTimestamp:In}),Tt=e=>new CustomEvent(os,{...ss,detail:e});let qe=[];const dr=e=>{e.code===f.EVENT_CODE.esc&&qe.forEach(t=>t(e))},ps=e=>{l.onMounted(()=>{qe.length===0&&document.addEventListener("keydown",dr),f.isClient&&qe.push(e)}),l.onBeforeUnmount(()=>{qe=qe.filter(t=>t!==e),qe.length===0&&f.isClient&&document.removeEventListener("keydown",dr)})},gs=l.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[ar,lr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=l.ref();let r,i;const{focusReason:o}=ds();ps(y=>{e.trapped&&!s.paused&&t("release-requested",y)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},a=y=>{if(!e.loop&&!e.trapped||s.paused)return;const{code:b,altKey:g,ctrlKey:E,metaKey:T,currentTarget:N,shiftKey:S}=y,{loop:A}=e,v=b===f.EVENT_CODE.tab&&!g&&!E&&!T,w=document.activeElement;if(v&&w){const O=N,[C,B]=ls(O);if(C&&B){if(!S&&w===B){const M=Tt({focusReason:o.value});t("focusout-prevented",M),M.defaultPrevented||(y.preventDefault(),A&&ke(C,!0))}else if(S&&[C,O].includes(w)){const M=Tt({focusReason:o.value});t("focusout-prevented",M),M.defaultPrevented||(y.preventDefault(),A&&ke(B,!0))}}else if(w===O){const M=Tt({focusReason:o.value});t("focusout-prevented",M),M.defaultPrevented||y.preventDefault()}}};l.provide(li,{focusTrapRef:n,onKeydown:a}),l.watch(()=>e.focusTrapEl,y=>{y&&(n.value=y)},{immediate:!0}),l.watch([n],([y],[b])=>{y&&(y.addEventListener("keydown",a),y.addEventListener("focusin",h),y.addEventListener("focusout",d)),b&&(b.removeEventListener("keydown",a),b.removeEventListener("focusin",h),b.removeEventListener("focusout",d))});const c=y=>{t(ar,y)},u=y=>t(lr,y),h=y=>{const b=l.unref(n);if(!b)return;const g=y.target,E=y.relatedTarget,T=g&&b.contains(g);e.trapped||E&&b.contains(E)||(r=E),T&&t("focusin",y),!s.paused&&e.trapped&&(T?i=g:ke(i,!0))},d=y=>{const b=l.unref(n);if(!(s.paused||!b))if(e.trapped){const g=y.relatedTarget;!f.isNil(g)&&!b.contains(g)&&setTimeout(()=>{if(!s.paused&&e.trapped){const E=Tt({focusReason:o.value});t("focusout-prevented",E),E.defaultPrevented||ke(i,!0)}},0)}else{const g=y.target;g&&b.contains(g)||t("focusout",y)}};async function p(){await l.nextTick();const y=l.unref(n);if(y){fr.push(s);const b=y.contains(document.activeElement)?r:document.activeElement;if(r=b,!y.contains(b)){const E=new Event(Qt,sr);y.addEventListener(Qt,c),y.dispatchEvent(E),E.defaultPrevented||l.nextTick(()=>{let T=e.focusStartEl;f.isString(T)||(ke(T),document.activeElement!==T&&(T="first")),T==="first"&&fs(ui(y),!0),(document.activeElement===b||T==="container")&&ke(y)})}}}function m(){const y=l.unref(n);if(y){y.removeEventListener(Qt,c);const b=new CustomEvent(en,{...sr,detail:{focusReason:o.value}});y.addEventListener(en,u),y.dispatchEvent(b),!b.defaultPrevented&&(o.value=="keyboard"||!hs()||y.contains(document.activeElement))&&ke(r??document.body),y.removeEventListener(en,u),fr.remove(s)}}return l.onMounted(()=>{e.trapped&&p(),l.watch(()=>e.trapped,y=>{y?p():m()})}),l.onBeforeUnmount(()=>{e.trapped&&m(),n.value&&(n.value.removeEventListener("keydown",a),n.value.removeEventListener("focusin",h),n.value.removeEventListener("focusout",d),n.value=void 0)}),{onKeydown:a}}});function ys(e,t,n,r,i,o){return l.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var ci=f._export_sfc(gs,[["render",ys],["__file","focus-trap.vue"]]);const fi=Symbol("buttonGroupContextKey"),hi=({from:e,replacement:t,scope:n,version:r,ref:i,type:o="API"},s)=>{l.watch(()=>l.unref(s),a=>{a&&f.debugWarn(n,`[${o}] ${e} is about to be deprecated in version ${r}, please use ${t} instead.
6
+ For more detail, please visit: ${i}
7
+ `)},{immediate:!0})},vs=(e,t)=>{hi({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},l.computed(()=>e.type==="text"));const n=l.inject(fi,void 0),r=f.useGlobalConfig("button"),{form:i}=An(),o=kn(l.computed(()=>n==null?void 0:n.size)),s=gt(),a=l.ref(),c=l.useSlots(),u=l.computed(()=>{var g;return e.type||(n==null?void 0:n.type)||((g=r.value)==null?void 0:g.type)||""}),h=l.computed(()=>{var g,E,T;return(T=(E=e.autoInsertSpace)!=null?E:(g=r.value)==null?void 0:g.autoInsertSpace)!=null?T:!1}),d=l.computed(()=>{var g,E,T;return(T=(E=e.plain)!=null?E:(g=r.value)==null?void 0:g.plain)!=null?T:!1}),p=l.computed(()=>{var g,E,T;return(T=(E=e.round)!=null?E:(g=r.value)==null?void 0:g.round)!=null?T:!1}),m=l.computed(()=>e.tag==="button"?{ariaDisabled:s.value||e.loading,disabled:s.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),y=l.computed(()=>{var g;const E=(g=c.default)==null?void 0:g.call(c);if(h.value&&(E==null?void 0:E.length)===1){const T=E[0];if((T==null?void 0:T.type)===l.Text){const N=T.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(N.trim())}}return!1});return{_disabled:s,_size:o,_type:u,_ref:a,_props:m,_plain:d,_round:p,shouldAddSpace:y,handleClick:g=>{if(s.value||e.loading){g.stopPropagation();return}e.nativeType==="reset"&&(i==null||i.resetFields()),t("click",g)}}},di=["default","primary","success","warning","info","danger","text",""],ms=["button","submit","reset"],dn=f.buildProps({size:f.useSizeProp,disabled:Boolean,type:{type:String,values:di,default:""},icon:{type:f.iconPropType},nativeType:{type:String,values:ms,default:"button"},loading:Boolean,loadingIcon:{type:f.iconPropType,default:()=>f.loading_default},plain:{type:Boolean,default:void 0},text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:f.definePropType([String,Object]),default:"button"}}),bs={click:e=>e instanceof MouseEvent};function ue(e,t){Es(e)&&(e="100%");var n=Ss(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function wt(e){return Math.min(1,Math.max(0,e))}function Es(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Ss(e){return typeof e=="string"&&e.indexOf("%")!==-1}function pi(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Dt(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Fe(e){return e.length===1?"0"+e:String(e)}function Ts(e,t,n){return{r:ue(e,255)*255,g:ue(t,255)*255,b:ue(n,255)*255}}function pr(e,t,n){e=ue(e,255),t=ue(t,255),n=ue(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,s=0,a=(r+i)/2;if(r===i)s=0,o=0;else{var c=r-i;switch(s=a>.5?c/(2-r-i):c/(r+i),r){case e:o=(t-n)/c+(t<n?6:0);break;case t:o=(n-e)/c+2;break;case n:o=(e-t)/c+4;break}o/=6}return{h:o,s,l:a}}function tn(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ws(e,t,n){var r,i,o;if(e=ue(e,360),t=ue(t,100),n=ue(n,100),t===0)i=n,o=n,r=n;else{var s=n<.5?n*(1+t):n+t-n*t,a=2*n-s;r=tn(a,s,e+1/3),i=tn(a,s,e),o=tn(a,s,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function gr(e,t,n){e=ue(e,255),t=ue(t,255),n=ue(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,s=r,a=r-i,c=r===0?0:a/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/a+(t<n?6:0);break;case t:o=(n-e)/a+2;break;case n:o=(e-t)/a+4;break}o/=6}return{h:o,s:c,v:s}}function Ds(e,t,n){e=ue(e,360)*6,t=ue(t,100),n=ue(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),s=n*(1-i*t),a=n*(1-(1-i)*t),c=r%6,u=[n,s,o,o,a,n][c],h=[a,n,n,s,o,o][c],d=[o,o,a,n,n,s][c];return{r:u*255,g:h*255,b:d*255}}function yr(e,t,n,r){var i=[Fe(Math.round(e).toString(16)),Fe(Math.round(t).toString(16)),Fe(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function As(e,t,n,r,i){var o=[Fe(Math.round(e).toString(16)),Fe(Math.round(t).toString(16)),Fe(Math.round(n).toString(16)),Fe(ks(r))];return i&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function ks(e){return Math.round(parseFloat(e)*255).toString(16)}function vr(e){return ge(e)/255}function ge(e){return parseInt(e,16)}function Cs(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var pn={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",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:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",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:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",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:"#ff0000",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:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Is(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,s=!1,a=!1;return typeof e=="string"&&(e=Rs(e)),typeof e=="object"&&(Ae(e.r)&&Ae(e.g)&&Ae(e.b)?(t=Ts(e.r,e.g,e.b),s=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ae(e.h)&&Ae(e.s)&&Ae(e.v)?(r=Dt(e.s),i=Dt(e.v),t=Ds(e.h,r,i),s=!0,a="hsv"):Ae(e.h)&&Ae(e.s)&&Ae(e.l)&&(r=Dt(e.s),o=Dt(e.l),t=ws(e.h,r,o),s=!0,a="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=pi(n),{ok:s,format:e.format||a,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var Bs="[-\\+]?\\d+%?",xs="[-\\+]?\\d*\\.\\d+%?",Ne="(?:".concat(xs,")|(?:").concat(Bs,")"),nn="[\\s|\\(]+(".concat(Ne,")[,|\\s]+(").concat(Ne,")[,|\\s]+(").concat(Ne,")\\s*\\)?"),rn="[\\s|\\(]+(".concat(Ne,")[,|\\s]+(").concat(Ne,")[,|\\s]+(").concat(Ne,")[,|\\s]+(").concat(Ne,")\\s*\\)?"),Se={CSS_UNIT:new RegExp(Ne),rgb:new RegExp("rgb"+nn),rgba:new RegExp("rgba"+rn),hsl:new RegExp("hsl"+nn),hsla:new RegExp("hsla"+rn),hsv:new RegExp("hsv"+nn),hsva:new RegExp("hsva"+rn),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Rs(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(pn[e])e=pn[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Se.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Se.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Se.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Se.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Se.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Se.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Se.hex8.exec(e),n?{r:ge(n[1]),g:ge(n[2]),b:ge(n[3]),a:vr(n[4]),format:t?"name":"hex8"}:(n=Se.hex6.exec(e),n?{r:ge(n[1]),g:ge(n[2]),b:ge(n[3]),format:t?"name":"hex"}:(n=Se.hex4.exec(e),n?{r:ge(n[1]+n[1]),g:ge(n[2]+n[2]),b:ge(n[3]+n[3]),a:vr(n[4]+n[4]),format:t?"name":"hex8"}:(n=Se.hex3.exec(e),n?{r:ge(n[1]+n[1]),g:ge(n[2]+n[2]),b:ge(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Ae(e){return!!Se.CSS_UNIT.exec(String(e))}var gi=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=Cs(t)),this.originalInput=t;var i=Is(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,i,o=t.r/255,s=t.g/255,a=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),s<=.03928?r=s/12.92:r=Math.pow((s+.055)/1.055,2.4),a<=.03928?i=a/12.92:i=Math.pow((a+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=pi(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=gr(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=gr(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=pr(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=pr(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),yr(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),As(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(ue(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(ue(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+yr(this.r,this.g,this.b,!1),n=0,r=Object.entries(pn);n<r.length;n++){var i=r[n],o=i[0],s=i[1];if(t===s)return o}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,i=this.a<1&&this.a>=0,o=!n&&i&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=wt(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=wt(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=wt(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=wt(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),o=n/100,s={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return new e(s)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,o=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,o=n.v,s=[],a=1/t;t--;)s.push(new e({h:r,s:i,v:o})),o=(o+a)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],o=360/t,s=1;s<t;s++)i.push(new e({h:(r+s*o)%360,s:n.s,l:n.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Ie(e,t=20){return e.mix("#141414",t).toString()}function Ns(e){const t=gt(),n=f.useNamespace("button");return l.computed(()=>{let r={},i=e.color;if(i){const o=i.match(/var\((.*?)\)/);o&&(i=window.getComputedStyle(window.document.documentElement).getPropertyValue(o[1]));const s=new gi(i),a=e.dark?s.tint(20).toString():Ie(s,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?Ie(s,90):s.tint(90).toString(),"text-color":i,"border-color":e.dark?Ie(s,50):s.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":i,"hover-border-color":i,"active-bg-color":a,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":a}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?Ie(s,90):s.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?Ie(s,50):s.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?Ie(s,80):s.tint(80).toString());else{const c=e.dark?Ie(s,30):s.tint(30).toString(),u=s.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":i,"text-color":u,"border-color":i,"hover-bg-color":c,"hover-text-color":u,"hover-border-color":c,"active-bg-color":a,"active-border-color":a}),t.value){const h=e.dark?Ie(s,50):s.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=h,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=h}}}return r})}const Ms=l.defineComponent({name:"ElButton"}),Os=l.defineComponent({...Ms,props:dn,emits:bs,setup(e,{expose:t,emit:n}){const r=e,i=Ns(r),o=f.useNamespace("button"),{_ref:s,_size:a,_type:c,_disabled:u,_props:h,_plain:d,_round:p,shouldAddSpace:m,handleClick:y}=vs(r,n),b=l.computed(()=>[o.b(),o.m(c.value),o.m(a.value),o.is("disabled",u.value),o.is("loading",r.loading),o.is("plain",d.value),o.is("round",p.value),o.is("circle",r.circle),o.is("text",r.text),o.is("link",r.link),o.is("has-bg",r.bg)]);return t({ref:s,size:a,type:c,disabled:u,shouldAddSpace:m}),(g,E)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(g.tag),l.mergeProps({ref_key:"_ref",ref:s},l.unref(h),{class:l.unref(b),style:l.unref(i),onClick:l.unref(y)}),{default:l.withCtx(()=>[g.loading?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[g.$slots.loading?l.renderSlot(g.$slots,"loading",{key:0}):(l.openBlock(),l.createBlock(l.unref(f.ElIcon),{key:1,class:l.normalizeClass(l.unref(o).is("loading"))},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(g.loadingIcon)))]),_:1},8,["class"]))],64)):g.icon||g.$slots.icon?(l.openBlock(),l.createBlock(l.unref(f.ElIcon),{key:1},{default:l.withCtx(()=>[g.icon?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(g.icon),{key:0})):l.renderSlot(g.$slots,"icon",{key:1})]),_:3})):l.createCommentVNode("v-if",!0),g.$slots.default?(l.openBlock(),l.createElementBlock("span",{key:2,class:l.normalizeClass({[l.unref(o).em("text","expand")]:l.unref(m)})},[l.renderSlot(g.$slots,"default")],2)):l.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var Ps=f._export_sfc(Os,[["__file","button.vue"]]);const Vs={size:dn.size,type:dn.type},Fs=l.defineComponent({name:"ElButtonGroup"}),Ks=l.defineComponent({...Fs,props:Vs,setup(e){const t=e;l.provide(fi,l.reactive({size:l.toRef(t,"size"),type:l.toRef(t,"type")}));const n=f.useNamespace("button");return(r,i)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(l.unref(n).b("group"))},[l.renderSlot(r.$slots,"default")],2))}});var yi=f._export_sfc(Ks,[["__file","button-group.vue"]]);const vi=f.withInstall(Ps,{ButtonGroup:yi}),Ls=f.withNoopInstall(yi),_s="utils/vue/vnode";var ut=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(ut||{});function mi(e){return l.isVNode(e)&&e.type===l.Fragment}function Hs(e){return l.isVNode(e)&&e.type===l.Comment}function zs(e){return l.isVNode(e)&&!mi(e)&&!Hs(e)}const $s=e=>{if(!l.isVNode(e))return f.debugWarn(_s,"[getNormalizedProps] must be a VNode"),{};const t=e.props||{},n=(l.isVNode(e.type)?e.type.props:void 0)||{},r={};return Object.keys(n).forEach(i=>{f.hasOwn(n[i],"default")&&(r[i]=n[i].default)}),Object.keys(t).forEach(i=>{r[f.camelize(i)]=t[i]}),r},Us=e=>{if(!f.isArray$1(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},at=e=>{const t=f.isArray$1(e)?e:[e],n=[];return t.forEach(r=>{var i;f.isArray$1(r)?n.push(...at(r)):l.isVNode(r)&&((i=r.component)!=null&&i.subTree)?n.push(r,...at(r.component.subTree)):l.isVNode(r)&&f.isArray$1(r.children)?n.push(...at(r.children)):l.isVNode(r)&&r.shapeFlag===2?n.push(...at(r.type())):n.push(r)}),n},Bn=e=>{if(!e)return{onClick:f.NOOP,onMousedown:f.NOOP,onMouseup:f.NOOP};let t=!1,n=!1;return{onClick:s=>{t&&n&&e(s),t=n=!1},onMousedown:s=>{t=s.target===s.currentTarget},onMouseup:s=>{n=s.target===s.currentTarget}}},qs=f.buildProps({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:f.definePropType([String,Array,Object])},zIndex:{type:f.definePropType([String,Number])}}),js={click:e=>e instanceof MouseEvent},Gs="overlay";var Ws=l.defineComponent({name:"ElOverlay",props:qs,emits:js,setup(e,{slots:t,emit:n}){const r=f.useNamespace(Gs),i=c=>{n("click",c)},{onClick:o,onMousedown:s,onMouseup:a}=Bn(e.customMaskEvent?void 0:i);return()=>e.mask?l.createVNode("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:o,onMousedown:s,onMouseup:a},[l.renderSlot(t,"default")],ut.STYLE|ut.CLASS|ut.PROPS,["onClick","onMouseup","onMousedown"]):l.h("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[l.renderSlot(t,"default")])}});const bi=Ws,Ei=(e,t,n,r)=>{const i={offsetX:0,offsetY:0},o=(d,p)=>{if(e.value){const{offsetX:m,offsetY:y}=i,b=e.value.getBoundingClientRect(),g=b.left,E=b.top,T=b.width,N=b.height,S=document.documentElement.clientWidth,A=document.documentElement.clientHeight,v=-g+m,w=-E+y,O=S-g-T+m,C=A-E-(N<A?N:0)+y;r!=null&&r.value||(d=Math.min(Math.max(d,v),O),p=Math.min(Math.max(p,w),C)),i.offsetX=d,i.offsetY=p,e.value.style.transform=`translate(${f.addUnit(d)}, ${f.addUnit(p)})`}},s=d=>{const p=d.clientX,m=d.clientY,{offsetX:y,offsetY:b}=i,g=T=>{const N=y+T.clientX-p,S=b+T.clientY-m;o(N,S)},E=()=>{document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",E)};document.addEventListener("mousemove",g),document.addEventListener("mouseup",E)},a=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",s),window.addEventListener("resize",h))},c=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",s),window.removeEventListener("resize",h))},u=()=>{i.offsetX=0,i.offsetY=0,e.value&&(e.value.style.transform="")},h=()=>{const{offsetX:d,offsetY:p}=i;o(d,p)};return l.onMounted(()=>{l.watchEffect(()=>{n.value?a():c()})}),l.onBeforeUnmount(()=>{c()}),{resetPosition:u,updatePosition:h}},Si=(e,t={})=>{l.isRef(e)||f.throwError("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||f.useNamespace("popup"),r=l.computed(()=>n.bm("parent","hidden"));if(!f.isClient||f.hasClass(document.body,r.value))return;let i=0,o=!1,s="0";const a=()=>{setTimeout(()=>{typeof document>"u"||o&&document&&(document.body.style.width=s,f.removeClass(document.body,r.value))},200)};l.watch(e,c=>{if(!c){a();return}o=!f.hasClass(document.body,r.value),o&&(s=document.body.style.width,f.addClass(document.body,r.value)),i=Yr(n.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,h=f.getStyle(document.body,"overflowY");i>0&&(u||h==="scroll")&&o&&(document.body.style.width=`calc(100% - ${i}px)`)}),l.onScopeDispose(()=>a())},Ti=e=>["",...f.componentSizes].includes(e),gn="_trap-focus-children",Ke=[],mr=e=>{var t;if(Ke.length===0)return;const n=Ke[Ke.length-1][gn];if(n.length>0&&e.code===f.EVENT_CODE.tab){if(n.length===1){e.preventDefault(),document.activeElement!==n[0]&&n[0].focus();return}const r=e.shiftKey,i=e.target===n[0],o=e.target===n[n.length-1];if(i&&r&&(e.preventDefault(),n[n.length-1].focus()),o&&!r&&(e.preventDefault(),n[0].focus()),process.env.NODE_ENV==="test"){const s=n.indexOf(e.target);s!==-1&&((t=n[r?s-1:s+1])==null||t.focus())}}},Ys={beforeMount(e){e[gn]=or(e),Ke.push(e),Ke.length<=1&&document.addEventListener("keydown",mr)},updated(e){l.nextTick(()=>{e[gn]=or(e)})},unmounted(){Ke.shift(),Ke.length===0&&document.removeEventListener("keydown",mr)}},Zs=l.defineComponent({name:"ElMessageBox",directives:{TrapFocus:Ys},components:{ElButton:vi,ElFocusTrap:ci,ElInput:ai,ElOverlay:bi,ElIcon:f.ElIcon,...f.TypeComponents},inheritAttrs:!1,props:{buttonSize:{type:String,validator:Ti},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:r,ns:i,size:o}=f.useGlobalComponentSettings("message-box",l.computed(()=>e.buttonSize)),{t:s}=n,{nextZIndex:a}=r,c=l.ref(!1),u=l.reactive({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",closeIcon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:l.markRaw(f.loading_default),cancelButtonLoadingIcon:l.markRaw(f.loading_default),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:a()}),h=l.computed(()=>{const R=u.type;return{[i.bm("icon",R)]:R&&f.TypeComponentsMap[R]}}),d=Ot(),p=Ot(),m=l.computed(()=>{const R=u.type;return u.icon||R&&f.TypeComponentsMap[R]||""}),y=l.computed(()=>!!u.message),b=l.ref(),g=l.ref(),E=l.ref(),T=l.ref(),N=l.ref(),S=l.computed(()=>u.confirmButtonClass);l.watch(()=>u.inputValue,async R=>{await l.nextTick(),e.boxType==="prompt"&&R&&M()},{immediate:!0}),l.watch(()=>c.value,R=>{var V,H;R&&(e.boxType!=="prompt"&&(u.autofocus?E.value=(H=(V=N.value)==null?void 0:V.$el)!=null?H:b.value:E.value=b.value),u.zIndex=a()),e.boxType==="prompt"&&(R?l.nextTick().then(()=>{var ee;T.value&&T.value.$el&&(u.autofocus?E.value=(ee=P())!=null?ee:b.value:E.value=b.value)}):(u.editorErrorMessage="",u.validateError=!1))});const A=l.computed(()=>e.draggable),v=l.computed(()=>e.overflow);Ei(b,g,A,v),l.onMounted(async()=>{await l.nextTick(),e.closeOnHashChange&&window.addEventListener("hashchange",w)}),l.onBeforeUnmount(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",w)});function w(){c.value&&(c.value=!1,l.nextTick(()=>{u.action&&t("action",u.action)}))}const O=()=>{e.closeOnClickModal&&k(u.distinguishCancelAndClose?"close":"cancel")},C=Bn(O),B=R=>{if(u.inputType!=="textarea")return R.preventDefault(),k("confirm")},k=R=>{var V;e.boxType==="prompt"&&R==="confirm"&&!M()||(u.action=R,u.beforeClose?(V=u.beforeClose)==null||V.call(u,R,u,w):w())},M=()=>{if(e.boxType==="prompt"){const R=u.inputPattern;if(R&&!R.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||s("el.messagebox.error"),u.validateError=!0,!1;const V=u.inputValidator;if(f.isFunction(V)){const H=V(u.inputValue);if(H===!1)return u.editorErrorMessage=u.inputErrorMessage||s("el.messagebox.error"),u.validateError=!0,!1;if(f.isString(H))return u.editorErrorMessage=H,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},P=()=>{var R,V;const H=(R=T.value)==null?void 0:R.$refs;return(V=H==null?void 0:H.input)!=null?V:H==null?void 0:H.textarea},x=()=>{k("close")},F=()=>{e.closeOnPressEscape&&x()};return e.lockScroll&&Si(c),{...l.toRefs(u),ns:i,overlayEvent:C,visible:c,hasMessage:y,typeClass:h,contentId:d,inputId:p,btnSize:o,iconComponent:m,confirmButtonClasses:S,rootRef:b,focusStartRef:E,headerRef:g,inputRef:T,confirmRef:N,doClose:w,handleClose:x,onCloseRequested:F,handleWrapperClick:O,handleInputEnter:B,handleAction:k,t:s}}});function Js(e,t,n,r,i,o){const s=l.resolveComponent("el-icon"),a=l.resolveComponent("el-input"),c=l.resolveComponent("el-button"),u=l.resolveComponent("el-focus-trap"),h=l.resolveComponent("el-overlay");return l.openBlock(),l.createBlock(l.Transition,{name:"fade-in-linear",onAfterLeave:d=>e.$emit("vanish"),persisted:""},{default:l.withCtx(()=>[l.withDirectives(l.createVNode(h,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:l.withCtx(()=>[l.createElementVNode("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:l.normalizeClass(`${e.ns.namespace.value}-overlay-message-box`),onClick:e.overlayEvent.onClick,onMousedown:e.overlayEvent.onMousedown,onMouseup:e.overlayEvent.onMouseup},[l.createVNode(u,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:l.withCtx(()=>[l.createElementVNode("div",{ref:"rootRef",class:l.normalizeClass([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:l.normalizeStyle(e.customStyle),tabindex:"-1",onClick:l.withModifiers(()=>{},["stop"])},[e.title!==null&&e.title!==void 0?(l.openBlock(),l.createElementBlock("div",{key:0,ref:"headerRef",class:l.normalizeClass([e.ns.e("header"),{"show-close":e.showClose}])},[l.createElementVNode("div",{class:l.normalizeClass(e.ns.e("title"))},[e.iconComponent&&e.center?(l.openBlock(),l.createBlock(s,{key:0,class:l.normalizeClass([e.ns.e("status"),e.typeClass])},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):l.createCommentVNode("v-if",!0),l.createElementVNode("span",null,l.toDisplayString(e.title),1)],2),e.showClose?(l.openBlock(),l.createElementBlock("button",{key:0,type:"button",class:l.normalizeClass(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:d=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),onKeydown:l.withKeys(l.withModifiers(d=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[l.createVNode(s,{class:l.normalizeClass(e.ns.e("close"))},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.closeIcon||"close")))]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):l.createCommentVNode("v-if",!0)],2)):l.createCommentVNode("v-if",!0),l.createElementVNode("div",{id:e.contentId,class:l.normalizeClass(e.ns.e("content"))},[l.createElementVNode("div",{class:l.normalizeClass(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(l.openBlock(),l.createBlock(s,{key:0,class:l.normalizeClass([e.ns.e("status"),e.typeClass])},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):l.createCommentVNode("v-if",!0),e.hasMessage?(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(e.ns.e("message"))},[l.renderSlot(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):l.createCommentVNode("v-if",!0)],2),l.withDirectives(l.createElementVNode("div",{class:l.normalizeClass(e.ns.e("input"))},[l.createVNode(a,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":d=>e.inputValue=d,type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:l.normalizeClass({invalid:e.validateError}),onKeydown:l.withKeys(e.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),l.createElementVNode("div",{class:l.normalizeClass(e.ns.e("errormsg")),style:l.normalizeStyle({visibility:e.editorErrorMessage?"visible":"hidden"})},l.toDisplayString(e.editorErrorMessage),7)],2),[[l.vShow,e.showInput]])],10,["id"]),l.createElementVNode("div",{class:l.normalizeClass(e.ns.e("btns"))},[e.showCancelButton?(l.openBlock(),l.createBlock(c,{key:0,loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:l.normalizeClass([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:d=>e.handleAction("cancel"),onKeydown:l.withKeys(l.withModifiers(d=>e.handleAction("cancel"),["prevent"]),["enter"])},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):l.createCommentVNode("v-if",!0),l.withDirectives(l.createVNode(c,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:l.normalizeClass([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:d=>e.handleAction("confirm"),onKeydown:l.withKeys(l.withModifiers(d=>e.handleAction("confirm"),["prevent"]),["enter"])},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[l.vShow,e.showConfirmButton]])],2)],14,["onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,["aria-label","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["z-index","overlay-class","mask"]),[[l.vShow,e.visible]])]),_:3},8,["onAfterLeave"])}var Xs=f._export_sfc(Zs,[["render",Js],["__file","index.vue"]]);const dt=new Map,Qs=e=>{let t=document.body;return e.appendTo&&(f.isString(e.appendTo)&&(t=document.querySelector(e.appendTo)),f.isElement(e.appendTo)&&(t=e.appendTo),f.isElement(t)||(f.debugWarn("ElMessageBox","the appendTo option is not an HTMLElement. Falling back to document.body."),t=document.body)),t},ea=(e,t,n=null)=>{const r=l.createVNode(Xs,e,f.isFunction(e.message)||l.isVNode(e.message)?{default:f.isFunction(e.message)?e.message:()=>e.message}:null);return r.appContext=n,l.render(r,t),Qs(e).appendChild(t.firstElementChild),r.component},ta=()=>document.createElement("div"),na=(e,t)=>{const n=ta();e.onVanish=()=>{l.render(null,n),dt.delete(i)},e.onAction=o=>{const s=dt.get(i);let a;e.showInput?a={value:i.inputValue,action:o}:a=o,e.callback?e.callback(a,r.proxy):o==="cancel"||o==="close"?e.distinguishCancelAndClose&&o!=="cancel"?s.reject("close"):s.reject("cancel"):s.resolve(a)};const r=ea(e,n,t),i=r.proxy;for(const o in e)f.hasOwn(e,o)&&!f.hasOwn(i.$props,o)&&(o==="closeIcon"&&f.isObject$1(e[o])?i[o]=l.markRaw(e[o]):i[o]=e[o]);return i.visible=!0,i};function nt(e,t=null){if(!f.isClient)return Promise.reject();let n;return f.isString(e)||l.isVNode(e)?e={message:e}:n=e.callback,new Promise((r,i)=>{const o=na(e,t??nt._context);dt.set(o,{options:e,callback:n,resolve:r,reject:i})})}const ra=["alert","confirm","prompt"],ia={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};ra.forEach(e=>{nt[e]=oa(e)});function oa(e){return(t,n,r,i)=>{let o="";return f.isObject$1(n)?(r=n,o=""):f.isUndefined(n)?o="":o=n,nt(Object.assign({title:o,message:t,type:"",...ia[e]},r,{boxType:e}),i)}}nt.close=()=>{dt.forEach((e,t)=>{t.doClose()}),dt.clear()};nt._context=null;const Be=nt;Be.install=e=>{Be._context=e._context,e.config.globalProperties.$msgbox=Be,e.config.globalProperties.$messageBox=Be,e.config.globalProperties.$alert=Be.alert,e.config.globalProperties.$confirm=Be.confirm,e.config.globalProperties.$prompt=Be.prompt};const wi=Be,sa=[{title:"系统维护",path:"系统维护",level:0,icon:"平台管理",carryData:!1,show:!0,childMenus:[{title:"登录日志",path:"/系统维护/登录日志",show:!0,level:1,icon:"菜单管理",carryData:!0,isRouter:!0},{title:"操作日志",path:"/系统维护/操作日志",show:!0,level:1,icon:"主菜单管理",carryData:!0,isRouter:!0}]}],yt=f.defineStore("menuState",{state:()=>({isRefreshMenus:!1,activeMenuStructureIds:[],cacheInputMenu:{},configMenu:{form:{},options:[],structure:[]},cacheStructures:[],rawMenus:[],menus:[],activeTopMenuPath:"",activeMenuPath:"",activeOldMenuPath:"",activeMainMenu:{},activeAsideMenu:{},activeMenuOpenPaths:[],systemKey:"",buttonTriggerType:"contentConfig",menuTriggerType:"open",permissionSideMenus:[],importLoading:!1,contentLoading:!1,asideMenuLoading:!1,asideMenus:[],platform:"browser",platName:"",childMenu:""}),actions:{setAsideMenuLoading(e){this.asideMenuLoading=e},setCacheStructures(e){var n,r;const t=(n=this.cacheStructures)==null?void 0:n.map(i=>i.key);e?t!=null&&t.includes(e==null?void 0:e.key)?this.cacheStructures=(r=this.cacheStructures)==null?void 0:r.map(i=>i.key===(e==null?void 0:e.key)?{...i,data:e==null?void 0:e.data}:i):this.cacheStructures.push(e):this.cacheStructures=[]},setChildMenu(e){this.childMenu=e},async setConfigMenu(e){this.configMenu=e},setActiveMainMenu(e){this.activeMainMenu=e},setContentLoading(e){this.contentLoading=e},setActiveAsideMenu(e){this.activeAsideMenu=e},setActiveTopMenuPath(e){this.activeTopMenuPath=e},setCacheInputMenu(e){this.cacheInputMenu=e},setIsRefreshMenus(e){this.isRefreshMenus=e},setButtonTriggerType(e){this.buttonTriggerType=e},setAsideMenus(e){this.asideMenus=e},setMenus(e){this.menus=e},setPlatName(e){this.platName=e},setImportLoading(e){this.importLoading=e},setPlatform(e){this.platform=e},getPlatform(){return this.platform},setMenuTriggerType(e){this.menuTriggerType=e},setSystemKey(e){this.systemKey=e},setActiveMenuPath(e){this.activeOldMenuPath=f.cloneDeep(this.activeMenuPath),this.activeMenuPath=e},setActiveMenuOpenPaths(e){this.activeMenuOpenPaths=e},setRawMenus(e){this.rawMenus=e,this.permissionSideMenus=sa}}}),Le=(e,t)=>e==null?void 0:e.map(r=>{var i,o,s,a,c,u;if(Array.isArray(r)?r=r:r=[r],(i=r==null?void 0:r.filter(h=>!(h!=null&&h.id)||typeof(h==null?void 0:h.id)=="string"))!=null&&i.every(h=>typeof h!="object"||h===null))return r;if((o=r==null?void 0:r.filter(h=>!(h!=null&&h.id)||typeof(h==null?void 0:h.id)=="string"))!=null&&o.some(h=>Array.isArray(h)))return r;{let h=[];if(h.push(r==null?void 0:r.find(d=>(d==null?void 0:d.id)&&typeof(d==null?void 0:d.id)=="number")),Array.isArray(t==null?void 0:t[0])){const d=(s=r==null?void 0:r.filter(p=>!(p!=null&&p.id)||typeof(p==null?void 0:p.id)=="string"))==null?void 0:s[0];(a=Sn(f.cloneDeep(t==null?void 0:t[0])))==null||a.forEach(p=>{h.push(d==null?void 0:d[(p==null?void 0:p.prop)??(p==null?void 0:p.label)??p])})}else{const d=(c=r==null?void 0:r.filter(p=>!(p!=null&&p.id)||typeof(p==null?void 0:p.id)=="string"))==null?void 0:c[0];(u=Sn(f.cloneDeep(t)))==null||u.forEach(p=>{h.push(d==null?void 0:d[(p==null?void 0:p.prop)??(p==null?void 0:p.label)??p])})}return h}}),aa=e=>{try{return JSON.parse(e),!0}catch{return!1}},br=(e,t)=>qr(e,t),_e=e=>{let t=[];function n(i){Array.isArray(i)&&(i==null||i.forEach(o=>{Array.isArray(o)||(o=[o]),o==null||o.forEach(s=>{!(s!=null&&s.children)||s.children.length===0?t.push(s.prop):r(s.children)})}))}function r(i){i==null||i.forEach(o=>{!(o!=null&&o.children)||o.children.length===0?t.push(o.prop):r(o.children)})}return n(e),t},la=(e,t,n)=>{var i;let r=(i=f.cloneDeep(e))==null?void 0:i.map(o=>(o=o.filter(s=>!(s!=null&&s.id)),o));return r=r==null?void 0:r.map(o=>{var s;return o=(s=o.map((a,c)=>{let u={};if(n!=null&&n.find(h=>h===t[c]))return u[t[c]]=a,u}))==null?void 0:s.filter(a=>a),o}),r},ua=(e,t)=>{var s,a;const n=f.cloneDeep(e),r=(s=n==null?void 0:n.find(c=>(c==null?void 0:c.key)==="header"))==null?void 0:s.contents,i=(a=n==null?void 0:n.find(c=>(c==null?void 0:c.key)==="tableContents"))==null?void 0:a.contents;return la(i,_e(r).slice(0,_e(r).length-1),t)},ca=e=>{let t={};return e==null||e.forEach(n=>{t[n.key]=n.value}),t},fa=async e=>{var n,r,i,o;let t="";if((r=(n=f.cloneDeep(e))==null?void 0:n.split("/"))==null||r.forEach((s,a)=>{var c,u;a!==((u=(c=f.cloneDeep(e))==null?void 0:c.split("/"))==null?void 0:u.length)-1&&(t=t===""?t+s:t+"/"+s)}),t!==""){let s="";const a=await Xe(t,sessionStorage.getItem("systemKey"),"");(o=(i=a==null?void 0:a[0])==null?void 0:i.compData)==null||o.forEach(c=>{var u;(c==null?void 0:c.key)==="tableContents"&&((u=c==null?void 0:c.contents)==null||u.forEach((h,d)=>{if(d===0){let p=h==null?void 0:h.filter(m=>!(m!=null&&m.id));s=t+"/"+(p==null?void 0:p[0])}}))}),await qi(s,e)}},ha=e=>{var i,o,s,a;const t=e;let n=[];t.compData=(i=t.compData)==null?void 0:i.filter(c=>(c==null?void 0:c.key)!=="tableContents"&&(c==null?void 0:c.key)!=="tableIndex");const r=(s=(o=f.cloneDeep(t.compData))==null?void 0:o.find(c=>(c==null?void 0:c.key)==="tableIndexColumn"))==null?void 0:s.contents;return(a=f.cloneDeep(t.compData))==null||a.forEach(c=>{if((c==null?void 0:c.key)!=="tableIndexColumn"&&(c==null?void 0:c.key)!=="header")n.push(c);else if((c==null?void 0:c.key)==="header"){let u=c.contents;r&&(u!=null&&u.every(h=>Array.isArray(h))?u==null||u[0].unshift({label:r}):u.unshift({label:r})),n.push({key:"header",contents:u})}}),t.compData=n,t},da=e=>{var o,s,a,c,u;const t=(o=e.compData)==null?void 0:o.filter(h=>(h==null?void 0:h.key)==="tableContents"||(h==null?void 0:h.key)==="tableIndex"),n=(a=(s=t==null?void 0:t.find(h=>(h==null?void 0:h.key)==="tableIndex"))==null?void 0:s.contents)==null?void 0:a.map(h=>h.label),r=(c=t==null?void 0:t.find(h=>(h==null?void 0:h.key)==="tableContents"))==null?void 0:c.contents;let i=[];return(n==null?void 0:n.length)>0&&(r!=null&&r.every(h=>Array.isArray(h)))?i=n==null?void 0:n.map((h,d)=>r[d]?[h,...r[d]]:[h]):Array.isArray(r==null?void 0:r[0])&&((u=r==null?void 0:r[0])!=null&&u.every(h=>Array.isArray(h)))?i=r==null?void 0:r[0]:Array.isArray(r==null?void 0:r[0])?i=r:i.push(r),i},pa=e=>{const t=[];function n(r){!r||r.length===0||(t.push(r==null?void 0:r.map(i=>({label:i.label}))),r==null||r.forEach(i=>{i!=null&&i.children&&(i==null?void 0:i.children.length)>0&&n(i==null?void 0:i.children)}))}return n(e),t},ga=e=>{const t=[];function n(r,i=[]){!r||r.length===0||(t.push({key:i==null?void 0:i.filter(o=>!Array.isArray(o)),value:r}),r==null||r.forEach(o=>{o!=null&&o.some(s=>Array.isArray(s))&&n(o.find(s=>Array.isArray(s)),o)}))}return n(e),t},ya=e=>{const t=[];function n(r){!r||r.length===0||(t.push(r==null?void 0:r.map(i=>i==null?void 0:i.filter(o=>!Array.isArray(o)))),r==null||r.forEach(i=>{i!=null&&i.some(o=>Array.isArray(o))&&n(i.find(o=>Array.isArray(o)))}))}return n(e),t},va=e=>{const t=[];function n(r){var i;!r||r.length===0||(r!=null&&r.every(o=>!Array.isArray(o))?t.push(r):(t.push((i=r==null?void 0:r.map(o=>o==null?void 0:o.filter(s=>!Array.isArray(s))))==null?void 0:i[0]),r==null||r.forEach(o=>{o!=null&&o.some(s=>Array.isArray(s))&&n(o.find(s=>Array.isArray(s)))})))}return n(e),t},ma=(e,t)=>{let n;function r(i,o,s=1){var c;if(!i||i.length===0)return;const a=(c=f.cloneDeep(o))==null?void 0:c.map(u=>u==null?void 0:u.filter(h=>!Array.isArray(h)));return a!=null&&a.find(u=>br(u,i==null?void 0:i.key))?(o==null||o.forEach(u=>{!r(i,u.find(d=>Array.isArray(d)))&&br(u.filter(d=>!Array.isArray(d)),i==null?void 0:i.key)&&(n={type:s,contents:u.filter(d=>!Array.isArray(d))})}),!0):!1}return r(e,t,0),n},Er=(e,t)=>{function n(r,i){return!r||r.length===0||r==null?void 0:r.map((s,a)=>{var u,h;let c=s;return c.unshift((u=i==null?void 0:i[a])==null?void 0:u.label),c.some(d=>Array.isArray(d))&&(c[c.length-1]=n(c.find(d=>Array.isArray(d)),(h=i==null?void 0:i[a])==null?void 0:h.children)),c})}return n(e,t)},ba=e=>{var n,r,i,o,s,a,c,u,h,d,p,m,y,b,g,E,T,N,S,A,v,w,O,C,B;const t=e;if((e==null?void 0:e.comp)==="Table"){if((i=(r=(n=e.compData)==null?void 0:n.find(k=>(k==null?void 0:k.key)==="tableIndex"))==null?void 0:r.contents)!=null&&i.every(k=>!(k!=null&&k.children))||!((o=e.compData)!=null&&o.find(k=>(k==null?void 0:k.key)==="tableIndex")))return((c=(a=(s=t.compData)==null?void 0:s.find(k=>(k==null?void 0:k.key)==="tableContents"))==null?void 0:a.contents)==null?void 0:c.length)===1&&((p=(d=(h=(u=t.compData)==null?void 0:u.find(k=>(k==null?void 0:k.key)==="tableContents"))==null?void 0:h.contents)==null?void 0:d[0])!=null&&p.every(k=>Array.isArray(k)))?(t.compData=(m=t.compData)==null?void 0:m.map(k=>{var M;return(k==null?void 0:k.key)==="tableContents"&&(k.contents=(M=k.contents)==null?void 0:M[0]),k}),[t]):[t];{let k=[];const M=t.compData,P=(y=f.cloneDeep(M))==null?void 0:y.find(L=>(L==null?void 0:L.key)==="tableIndexColumn"),x=(b=f.cloneDeep(M))==null?void 0:b.find(L=>(L==null?void 0:L.key)==="extraButton"),F=(g=f.cloneDeep(M))==null?void 0:g.find(L=>(L==null?void 0:L.key)==="rowButton"),R=va((T=(E=f.cloneDeep(M))==null?void 0:E.find(L=>(L==null?void 0:L.key)==="header"))==null?void 0:T.contents),V=(N=f.cloneDeep(M))==null?void 0:N.find(L=>(L==null?void 0:L.key)==="tableIndex"),H=ya((A=(S=f.cloneDeep(M))==null?void 0:S.find(L=>(L==null?void 0:L.key)==="tableContents"))==null?void 0:A.contents),ee=Er((w=(v=f.cloneDeep(M))==null?void 0:v.find(L=>(L==null?void 0:L.key)==="tableContents"))==null?void 0:w.contents,V==null?void 0:V.contents),W=ga(Er((C=(O=f.cloneDeep(M))==null?void 0:O.find(L=>(L==null?void 0:L.key)==="tableContents"))==null?void 0:C.contents,V==null?void 0:V.contents));if(V)return(B=pa(V.contents))==null||B.forEach((L,ne)=>{var Y;let re=[];re.push({key:"tableIndex",contents:L}),re.push(P),re.push(x),re.push(F),re.push({key:"tableContents",contents:H[ne]}),re.push({key:"header",contents:R!=null&&R[ne]?[R==null?void 0:R[ne]]:[R==null?void 0:R[0]]}),k.push({comp:"Table",compData:re,name:"",parentTableContents:((Y=ma(W[ne],ee))==null?void 0:Y.contents)??""})}),k}}else return[t]},et=(e,t)=>{let n={};return Array.isArray(e)?e==null||e.forEach((r,i)=>{t!=null&&t[i]&&(n[t[i]]=r)}):[e].forEach((r,i)=>{n[t[i]]=r}),n},Ea=e=>{var n,r;let t="";return(r=(n=f.cloneDeep(e))==null?void 0:n.split("/"))==null||r.forEach((i,o)=>{var s,a;o<((a=(s=f.cloneDeep(e))==null?void 0:s.split("/"))==null?void 0:a.length)-1&&(t=t===""?t+i:t+"/"+i)}),t},Sa=async e=>{const t=f.cloneDeep(e);let n=[],r=[];t==null||t.forEach(i=>{!(r!=null&&r.find(o=>(o==null?void 0:o.parentKey)===(i==null?void 0:i.parentKey)))&&(i==null?void 0:i.parentKey)!==""&&r.push(i)}),r=r==null?void 0:r.map(i=>{var o;return i.content=(o=i.content)==null?void 0:o.map(s=>{var a;return s.key={pageKey:(i==null?void 0:i.parentKey)??"",systemKey:((a=s.key)==null?void 0:a.systemKey)??"",version:1,type:"subStructure"},s}),i.content}),(r==null?void 0:r.length)>0&&(n=r==null?void 0:r.map(async i=>{let o;return(i==null?void 0:i.length)>0&&(o=await f.batchAddInsofDataApi({dataList:i})),o})),await Promise.all(n)},qt=f.defineStore("modelComp",{state:()=>({itemData:[],originalData:[],extraContents:[],nodeDev:"",isEdit:"view",isRefreshCurStructure:!1,isSubmitCurStructure:!1,curStructureCompIds:[],systemPath:"",freshContent:!1,routeToChildPath:"",cacheUpdatingData:null,tableViewContents:[],activeItemIndex:-1}),actions:{setItemData(e){this.itemData=e},setTableViewContents(e){this.tableViewContents=e},setCacheUpdatingData(e){this.cacheUpdatingData=e},setFreshContent(e){this.freshContent=e},setRouteToChildPath(e){this.routeToChildPath=e},setSubmitCurStructure(e){this.isSubmitCurStructure=e},setCurStructureCompIds(e){this.curStructureCompIds=e},setRefreshCurStructure(e){this.isRefreshCurStructure=e},setOriginalData(e){this.originalData=e},setExtraContents(e){this.extraContents=e},setNodeDev(e){this.nodeDev=e},setIsEdit(e){this.isEdit=e},setSystemPath(e){this.systemPath=e},setActiveItemIndex(e){this.activeItemIndex=e}}}),xn=f.defineStore("authorityState",{state:()=>({routerPageStructures:[]}),actions:{setRouterPageStructure(e){this.routerPageStructures=e}}}),Ta=yt(f.pinia),{activeMenuPath:Ve}=f.storeToRefs(Ta),Di=f.useLoginState(f.pinia),{structureData:wa,loginUserInfo:on}=f.storeToRefs(Di),Da=xn(f.pinia),{routerPageStructures:Aa}=f.storeToRefs(Da),yn=qt(f.pinia),ka=l.ref([{label:"角色名称",value:"",name:"roleName"}]),Ca=l.ref([{label:"查询"},{label:"重置"}]),Sr=l.reactive({isFilter:!1,filterForm:{}}),Ia=l.ref(!1),Ba=e=>{Sr.isFilter=!0,Sr.filterForm=e},Ai=l.ref([]),ki=l.ref([]),Ci=l.ref(""),xa=l.computed(()=>{var t,n,r,i,o;const e=(t=Aa.value)==null?void 0:t.find(s=>{var a;return((a=s==null?void 0:s.comp)==null?void 0:a.toUpperCase())==="TABLE"});if(e){Ci.value=e.name,ki.value=(i=(r=(n=e==null?void 0:e.compData)==null?void 0:n.find(a=>(a==null?void 0:a.key)==="header"))==null?void 0:r.contents)==null?void 0:i.filter(a=>(a==null?void 0:a.label)!=="操作");const s=(o=e==null?void 0:e.compData)==null?void 0:o.map(a=>{var c;if((a==null?void 0:a.key)==="rowButton"){let u=[];return ft.value?u=[...a==null?void 0:a.contents,{label:"授权"}]:u=a==null?void 0:a.contents,{...a,contents:u}}return(a==null?void 0:a.key)==="header"?{...a,contents:(c=a==null?void 0:a.contents)==null?void 0:c.map(u=>{var h,d;return{...u,isTableColHidden:(h=u==null?void 0:u.prop)==null?void 0:h.includes("授权"),isFormColHidden:(d=u==null?void 0:u.prop)==null?void 0:d.includes("授权")}})}:a});return Ri(s),s}return[]}),Ra=e=>{Kn(e.singleContent,e.buttonName,Gt.value,e==null?void 0:e.selectItems)},Ge=l.ref({}),Rn=l.ref(),ct=async(e,t,n)=>{var r,i;try{const o=await e(t);return((r=o==null?void 0:o.data)==null?void 0:r.code)===200?(n!=="查询"&&await Di.setLogRecordAsync({type:n,data:t},Ve.value),yn.setRefreshCurStructure(!0),o.data.result||((i=o==null?void 0:o.data)==null?void 0:i.code)===200):null}catch(o){f.ElMessage.error(o)}finally{yn.setCacheUpdatingData(null)}},Ii=(e,t)=>{const n=[];for(const r of e)t!=null&&t.has(r.path)&&n.push(r),r.children&&n.push(...Ii(r.children,t));return n},Na=(e,t)=>{var n,r;try{const i=new Map(e==null?void 0:e.map(a=>[a.path,a.checkedButtons])),o=Ii(t,i),s=(n=o==null?void 0:o.filter(a=>{var c,u;return((c=a==null?void 0:a.checkedButtons)==null?void 0:c.length)===((u=a==null?void 0:a.renderButtons)==null?void 0:u.length)}))==null?void 0:n.map(a=>a==null?void 0:a.path);(r=Rn.value)==null||r.setCheckedKeys(s)}catch{throw new Error("数据显示处理失败")}},Ma=(e,t)=>{const n=new Map(t==null?void 0:t.map(i=>[i.path,i.checkedButtons]));function r(i){var s,a;const o=(s=i==null?void 0:i.path)!=null&&s.startsWith("/")?(a=i==null?void 0:i.path)==null?void 0:a.substring(1):i==null?void 0:i.path;n.has(o)&&(i.checkedButtons=n.get(o)),i.children&&i.children.length>0&&i.children.forEach(r)}e.forEach(r)},Bi=e=>e==null?void 0:e.map(t=>{var r;const n={...t,checkedButtons:[]};return n.children&&((r=n.children)==null?void 0:r.length)>0&&(n.children=Bi(n.children)),n}),Nn=e=>{for(const t in e)if(Array.isArray(e[t]))return t;return""},xi=e=>{const t=[];let n=0;for(;n<e.length;)if(typeof e[n]=="string"){const r={title:e[n]};n+1<e.length&&Array.isArray(e[n+1])?(r.children=xi(e[n+1]),n+=2):n+=1,t.push(r)}return t},Mn=e=>{const t=[];let n=0;for(;n<(e==null?void 0:e.length);){const r={title:e==null?void 0:e[n]};n+1<(e==null?void 0:e.length)&&Array.isArray(e==null?void 0:e[n+1])?(r.children=xi(e==null?void 0:e[n+1]),n+=2):n+=1,t.push(r)}return t},jt=(e,t="",n=new Map)=>e==null?void 0:e.map(r=>{const i=t?`${t}/${r.title}`:r.title;if(n.has(i))return n.get(i);const o={...r,path:i};return r.children&&r.children.length>0&&(o.children=jt(r.children,i,n)),n.set(i,o),o}),On=(e,t)=>e.reduce((n,r)=>{const i=r[t];return n[i]||(n[i]=[]),n[i].push(r),n},{}),Pn=e=>{const t=[];function n(r,i){!r.children||r.children.length===0?t.push({...r,parentPath:i||""}):r.children.forEach(o=>n(o,r.path||i))}return e.forEach(r=>n(r,"")),t},Vn=e=>Object.entries(e).map(([n,r])=>({path:n,checkedButtons:r==null?void 0:r.map(i=>i==null?void 0:i.path)})),Oa=e=>Object.prototype.toString.call(e)==="[object Object]"&&e!==null,Pa=(e,t)=>{const n={},r=Array.isArray(e)?e==null?void 0:e.filter(i=>{var o;return!(Oa(i)&&((o=Object.keys(i))!=null&&o.includes("id")))}):null;return r&&(r==null||r.forEach((i,o)=>{var s;n[(s=t[o])==null?void 0:s.prop]=i})),n},We=l.ref(""),Ri=e=>{var o;const t=e==null?void 0:e.find(s=>(s==null?void 0:s.key)==="tableContents"),n=e==null?void 0:e.find(s=>(s==null?void 0:s.key)==="header");if(!t||!n)return"";const r=(o=t==null?void 0:t.contents)==null?void 0:o[0],i=Pa(r,n==null?void 0:n.contents);We.value=Nn(i)},Va=e=>{if(!Array.isArray(e))return!1;for(let t of e){if(typeof t!="object"||t===null||typeof t.path!="string"||!Array.isArray(t.checkedButtons))return!1;for(let n of t.checkedButtons)if(typeof n!="string")return!1}return!0},Fa=e=>{const t=[];for(const n in e)e[n].forEach(i=>{var c,u;const o=(c=i.path)!=null&&c.startsWith("/")?(u=i.path)==null?void 0:u.substring(1):i.path,s=o==null?void 0:o.split("/");let a=t;s.forEach(h=>{let d=a.find(p=>p.title===h);d||(d={title:h,path:i.path,children:[]},a.push(d)),a=d.children})});return t},Ka=e=>{const t={};return e.forEach(n=>{const{path:r,checkedButtons:i}=n,o=r,s=i.map(a=>({title:a.split("/").pop()||"",path:a,parentPath:o}));t[o]=s}),t},Ni=e=>{let t=[];for(const n of e){let r=[n.title];if(n.children&&Array.isArray(n.children)){let i=Ni(n.children);i.length>0&&r.push(i)}t.push(r)}return t},La=e=>{const t=[];for(const n of e){if(!Array.isArray(n)||n.length!==2)continue;const[r,i]=n,o=Mi(i),s=t.indexOf(r);s===-1?t.push(r,o):t[s+1]=Oi(t[s+1],o)}return t},Mi=e=>{const t=[];for(const n of e)if(Array.isArray(n)){if(n.length===1&&typeof n[0]=="string")t.push(n[0]);else if(n.length===2&&typeof n[0]=="string"){const[r,i]=n;t.push(r,Mi(i))}}return t},Oi=(e,t)=>{const n=[...e];let r=0;for(;r<t.length;){const i=t[r];if(typeof i=="string"){const o=n.indexOf(i);o===-1?n.push(i,t[r+1]):n[o+1]=Oi(n[o+1],t[r+1]),r+=2}else n.push(i),r+=1}return n},_a=async(e,t)=>{var n;if(Ge.value=f.cloneDeep(t),yn.setRefreshCurStructure(!1),(n=Ye.value)==null||n.splice(0),e==="授权"){if(!We.value){f.ElMessage.error("请正确定义角色权限");return}const r=Va(Ge.value[We.value]);let i;if(r)i=Ge.value[We.value];else{const o=Mn(Ge.value[We.value]),s=jt(o),a=Pn(s),c=On(a,"parentPath");i=Vn(c)}if(!i||!Array.isArray(i)){f.ElMessage.error("权限数据处理出错了,请联系管理员");return}He.title=`【${t.角色名称}】授权`,He.show=!0,await l.nextTick(),Ma(tt.value,i),Na(i,tt.value)}},Ha=()=>{He.show=!1},Pt=l.ref(),za=async e=>{const t=await ct(f.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:e}},"查询"),n=t==null?void 0:t.map(r=>{var i;return{id:r.id,tableData:(i=r==null?void 0:r.value)==null?void 0:i.tableData}});return n==null?void 0:n.map(r=>{var i;if(Array.isArray(r==null?void 0:r.tableData)){let o={id:r.id};return(i=r==null?void 0:r.tableData)==null||i.forEach((s,a)=>{o[`a${a}`]=s}),o}else return{...r.tableData,id:r.id}})},Fn=(e,t)=>{let n={};return t==null||t.forEach(r=>{r.label&&e&&(n[r.label]=(e==null?void 0:e[r==null?void 0:r.prop])??null)}),n},Kn=(e,t,n,r)=>{var s,a,c,u,h,d,p;const i=f.cloneDeep(e);i!=null&&i.id&&delete i.id;const o=Fn(i,ki.value);if(t==="新增")ct(f.createInsofDataApi,{key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:(s=Ve.value)!=null&&s.startsWith("/")?(a=Ve.value)==null?void 0:a.substring(1):Ve.value,tableId:n,createUserId:(c=on.value)==null?void 0:c.id,createUserOrg:((u=on.value)==null?void 0:u.dept)||((h=on.value)==null?void 0:h.部门名称)},value:{tableData:o}},t).then(m=>{Pt.value={...e,newId:m}});else if(t==="编辑")ct(f.updateInsofDataApi,{id:e.id,key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:(d=Ve.value)!=null&&d.startsWith("/")?(p=Ve.value)==null?void 0:p.substring(1):Ve.value,tableId:n},value:{tableData:o}},t).then(m=>{He.show=!1});else if(t!=null&&t.includes("删除")){const m=t!=null&&t.includes("批量")?f.batchDeleteInsofDataApi:f.deleteInsofDataApi,y=t!=null&&t.includes("批量")?{ids:r&&(r==null?void 0:r.length)>0?r==null?void 0:r.map(b=>b==null?void 0:b.id):[]}:{id:e.id};ct(m,y,t).then(b=>{t&&b&&f.ElMessage.success(t+"成功")})}},Pi=e=>{let t=[];return e==null||e.forEach(n=>{var r;if(n.checkedButtons&&((r=n.checkedButtons)==null?void 0:r.length)>0){const i={path:n.path,checkedButtons:n.checkedButtons};t=t.concat(i)}n.children&&(t=t.concat(Pi(n.children)))}),t},$a=()=>{const e=Pi(tt.value),t=Ka(e),n=Fa(t),r=Ni(n),i=La(r);Pt.value={...Ge.value,[We.value]:i},l.nextTick(()=>{Kn(Pt.value,"编辑",Gt.value)})},He=l.reactive({show:!1,title:"角色授权",width:"50%",draggable:!0}),Ua=({isPenultimate:e},t)=>{var n,r;return console.log("isPenultimate",e,t),((r=(n=t==null?void 0:t.data)==null?void 0:n.renderButtons)==null?void 0:r.length)>0?"is-penultimate":""},Gt=l.ref(0),Vi=async e=>{var r,i,o,s,a;let t;const n=await f.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:e!=null&&e.startsWith("/")?e==null?void 0:e.substring(1):e}});return((r=n==null?void 0:n.data)==null?void 0:r.code)===200&&(i=n==null?void 0:n.data)!=null&&i.result&&((o=n==null?void 0:n.data)==null?void 0:o.result.length)>0&&(t=(a=(s=n==null?void 0:n.data.result)==null?void 0:s[0])==null?void 0:a.id,Gt.value=t),t},tt=l.ref([]),qa=l.ref([{path:"资源管理",buttons:["查询","新增","编辑","删除"]},{path:"资源管理/人员",buttons:["查询","新增","编辑","删除"]}]),ja=(e,t)=>{var n;e.checkedButtons=t?(n=e.renderButtons)==null?void 0:n.map(r=>r.path):[]},Ye=l.ref([]),Ga=(e,t)=>{var n,r,i;t.checkedButtons=e,((n=t.checkedButtons)==null?void 0:n.length)===((r=t.renderButtons)==null?void 0:r.length)?Ye.value.push(t.path):(e==null?void 0:e.length)===0&&(Ye.value=(i=Ye.value)==null?void 0:i.filter(o=>o!==t.path))};l.watch(()=>Ye.value.length,()=>{var e;(e=Rn.value)==null||e.setCheckedKeys([...Ye.value])});l.watch(()=>He.show,e=>{e||(tt.value=Bi(tt.value))});const Fi=l.computed(()=>{var n;const e=(n=f.cloneDeep(wa.value))==null?void 0:n.filter(r=>{var i,o;return((o=(i=r==null?void 0:r.key)==null?void 0:i.pageKey)==null?void 0:o.toUpperCase())!=="MENU"});return[...e==null?void 0:e.map(r=>{var s,a,c,u,h,d,p,m;const i=/button/i;let o=(c=(a=(s=r==null?void 0:r.value)==null?void 0:s.pageData)==null?void 0:a.compData)==null?void 0:c.filter(y=>i.test(y==null?void 0:y.key));return o=Array.from(new Set(o==null?void 0:o.flatMap(y=>y.contents.map(b=>b.label)))),{path:(h=(u=r==null?void 0:r.key)==null?void 0:u.pageKey)!=null&&h.startsWith("/")?(p=(d=r==null?void 0:r.key)==null?void 0:d.pageKey)==null?void 0:p.substring(1):(m=r==null?void 0:r.key)==null?void 0:m.pageKey,buttons:o}}),...Ki.value]}),Ki=l.ref([]),Wa=(e,t,n)=>{const i=[e==null?void 0:e.find(o=>(o==null?void 0:o.title)===t)].flatMap(o=>o==null?void 0:o.children);return i==null?void 0:i.map(o=>{var s,a;return{path:(s=o==null?void 0:o.path)!=null&&s.startsWith("/")?(a=o==null?void 0:o.path)==null?void 0:a.substring(1):o==null?void 0:o.path,buttons:n}})},Tr=(e,t)=>{var n;if(e.carryData){if(e.path==="系统管理/个人中心"){const r=["基本信息","上传头像","签名","修改密码"];return r==null?void 0:r.map(i=>{var o,s;return{title:i,path:(o=e==null?void 0:e.path)!=null&&o.startsWith("/")?((s=e==null?void 0:e.path)==null?void 0:s.substring(1))+"/"+i:e.path+"/"+i}})}return(n=t==null?void 0:t.buttons)==null?void 0:n.map(r=>{var i,o;return{title:r,path:(i=e==null?void 0:e.path)!=null&&i.startsWith("/")?((o=e==null?void 0:e.path)==null?void 0:o.substring(1))+"/"+r:e.path+"/"+r}})}return[]},Li=(e,t)=>{if(Array.isArray(e))return e==null?void 0:e.map(n=>{var o,s;const r=(o=n==null?void 0:n.path)!=null&&o.startsWith("/")?(s=n==null?void 0:n.path)==null?void 0:s.substring(1):n==null?void 0:n.path,i=t==null?void 0:t.find(a=>(a==null?void 0:a.path)===r);return n.children&&n.children.length>0?{...n,renderButtons:Tr(n,i),checkedButtons:[],children:Li(n.children,Fi.value)}:{...n,renderButtons:Tr(n,i),checkedButtons:[]}})},Ya={comp:"Group",name:"/系统管理/角色管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:Ai.value,name:""}]}]},Za=Object.freeze(Object.defineProperty({__proto__:null,addButtonsToTree:Li,addPathToTree:jt,authorizeDialog:He,buttonValue:Ca,changedRow:Pt,clickRow:Ge,clickRowButton:_a,clickSubmitAuthority:$a,closeAuthorizeDialog:Ha,compName:Ci,convertArrayToTree:Mn,convertIndexToLabel:Fn,customNodeClass:Ua,getActivePageStructureId:Vi,getAuthorityKey:Ri,getFirstArrayProperty:Nn,getLeafNodesRecursive:Pn,getPageDataAsync:za,groupByField:On,handleAddSysMenusButtons:Wa,handleItemDataChange:Ra,handleNodeBtnChange:Ga,handleNodeCheckChange:ja,handleQueryChange:Ba,handleRowAuthorityRender:Vn,handleSubmitAsync:ct,isPageDataExist:Ia,menuData:tt,menusButtons:qa,pageData:Ai,pageDataFiltered:xa,queryFormData:ka,structureButtons:Fi,structureId:Gt,submitTableAsyncByVerify:Kn,tempRolePageData:Ya,tempSysMenus:Ki,treeRef:Rn},Symbol.toStringTag,{value:"Module"}));var Ja="0123456789abcdefghijklmnopqrstuvwxyz";function Ce(e){return Ja.charAt(e)}function Xa(e,t){return e&t}function At(e,t){return e|t}function wr(e,t){return e^t}function Dr(e,t){return e&~t}function Qa(e){if(e==0)return-1;var t=0;return(e&65535)==0&&(e>>=16,t+=16),(e&255)==0&&(e>>=8,t+=8),(e&15)==0&&(e>>=4,t+=4),(e&3)==0&&(e>>=2,t+=2),(e&1)==0&&++t,t}function el(e){for(var t=0;e!=0;)e&=e-1,++t;return t}var je="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_i="=";function Vt(e){var t,n,r="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),r+=je.charAt(n>>6)+je.charAt(n&63);for(t+1==e.length?(n=parseInt(e.substring(t,t+1),16),r+=je.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),r+=je.charAt(n>>2)+je.charAt((n&3)<<4));(r.length&3)>0;)r+=_i;return r}function Ar(e){var t="",n,r=0,i=0;for(n=0;n<e.length&&e.charAt(n)!=_i;++n){var o=je.indexOf(e.charAt(n));o<0||(r==0?(t+=Ce(o>>2),i=o&3,r=1):r==1?(t+=Ce(i<<2|o>>4),i=o&15,r=2):r==2?(t+=Ce(i),t+=Ce(o>>2),i=o&3,r=3):(t+=Ce(i<<2|o>>4),t+=Ce(o&15),r=0))}return r==1&&(t+=Ce(i<<2)),t}var $e,tl={decode:function(e){var t;if($e===void 0){var n="0123456789ABCDEF",r=` \f
8
+ \r  \u2028\u2029`;for($e={},t=0;t<16;++t)$e[n.charAt(t)]=t;for(n=n.toLowerCase(),t=10;t<16;++t)$e[n.charAt(t)]=t;for(t=0;t<r.length;++t)$e[r.charAt(t)]=-1}var i=[],o=0,s=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if(a=="=")break;if(a=$e[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);o|=a,++s>=2?(i[i.length]=o,o=0,s=0):o<<=4}}if(s)throw new Error("Hex encoding incomplete: 4 bits missing");return i}},Pe,vn={decode:function(e){var t;if(Pe===void 0){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=`= \f
9
+ \r  \u2028\u2029`;for(Pe=Object.create(null),t=0;t<64;++t)Pe[n.charAt(t)]=t;for(Pe["-"]=62,Pe._=63,t=0;t<r.length;++t)Pe[r.charAt(t)]=-1}var i=[],o=0,s=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if(a=="=")break;if(a=Pe[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);o|=a,++s>=4?(i[i.length]=o>>16,i[i.length]=o>>8&255,i[i.length]=o&255,o=0,s=0):o<<=6}}switch(s){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:i[i.length]=o>>10;break;case 3:i[i.length]=o>>16,i[i.length]=o>>8&255;break}return i},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=vn.re.exec(e);if(t)if(t[1])e=t[1];else if(t[2])e=t[2];else throw new Error("RegExp out of sync");return vn.decode(e)}},Ue=1e13,lt=function(){function e(t){this.buf=[+t||0]}return e.prototype.mulAdd=function(t,n){var r=this.buf,i=r.length,o,s;for(o=0;o<i;++o)s=r[o]*t+n,s<Ue?n=0:(n=0|s/Ue,s-=n*Ue),r[o]=s;n>0&&(r[o]=n)},e.prototype.sub=function(t){var n=this.buf,r=n.length,i,o;for(i=0;i<r;++i)o=n[i]-t,o<0?(o+=Ue,t=1):t=0,n[i]=o;for(;n[n.length-1]===0;)n.pop()},e.prototype.toString=function(t){if((t||10)!=10)throw new Error("only base 10 is supported");for(var n=this.buf,r=n[n.length-1].toString(),i=n.length-2;i>=0;--i)r+=(Ue+n[i]).toString().substring(1);return r},e.prototype.valueOf=function(){for(var t=this.buf,n=0,r=t.length-1;r>=0;--r)n=n*Ue+t[r];return n},e.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},e}(),Hi="…",nl=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,rl=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function Ze(e,t){return e.length>t&&(e=e.substring(0,t)+Hi),e}var sn=function(){function e(t,n){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=n)}return e.prototype.get=function(t){if(t===void 0&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(t):this.enc[t]},e.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(t&15)},e.prototype.hexDump=function(t,n,r){for(var i="",o=t;o<n;++o)if(i+=this.hexByte(this.get(o)),r!==!0)switch(o&15){case 7:i+=" ";break;case 15:i+=`
10
+ `;break;default:i+=" "}return i},e.prototype.isASCII=function(t,n){for(var r=t;r<n;++r){var i=this.get(r);if(i<32||i>176)return!1}return!0},e.prototype.parseStringISO=function(t,n){for(var r="",i=t;i<n;++i)r+=String.fromCharCode(this.get(i));return r},e.prototype.parseStringUTF=function(t,n){for(var r="",i=t;i<n;){var o=this.get(i++);o<128?r+=String.fromCharCode(o):o>191&&o<224?r+=String.fromCharCode((o&31)<<6|this.get(i++)&63):r+=String.fromCharCode((o&15)<<12|(this.get(i++)&63)<<6|this.get(i++)&63)}return r},e.prototype.parseStringBMP=function(t,n){for(var r="",i,o,s=t;s<n;)i=this.get(s++),o=this.get(s++),r+=String.fromCharCode(i<<8|o);return r},e.prototype.parseTime=function(t,n,r){var i=this.parseStringISO(t,n),o=(r?nl:rl).exec(i);return o?(r&&(o[1]=+o[1],o[1]+=+o[1]<70?2e3:1900),i=o[1]+"-"+o[2]+"-"+o[3]+" "+o[4],o[5]&&(i+=":"+o[5],o[6]&&(i+=":"+o[6],o[7]&&(i+="."+o[7]))),o[8]&&(i+=" UTC",o[8]!="Z"&&(i+=o[8],o[9]&&(i+=":"+o[9]))),i):"Unrecognized time: "+i},e.prototype.parseInteger=function(t,n){for(var r=this.get(t),i=r>127,o=i?255:0,s,a="";r==o&&++t<n;)r=this.get(t);if(s=n-t,s===0)return i?-1:0;if(s>4){for(a=r,s<<=3;((+a^o)&128)==0;)a=+a<<1,--s;a="("+s+` bit)
11
+ `}i&&(r=r-256);for(var c=new lt(r),u=t+1;u<n;++u)c.mulAdd(256,this.get(u));return a+c.toString()},e.prototype.parseBitString=function(t,n,r){for(var i=this.get(t),o=(n-t-1<<3)-i,s="("+o+` bit)
12
+ `,a="",c=t+1;c<n;++c){for(var u=this.get(c),h=c==n-1?i:0,d=7;d>=h;--d)a+=u>>d&1?"1":"0";if(a.length>r)return s+Ze(a,r)}return s+a},e.prototype.parseOctetString=function(t,n,r){if(this.isASCII(t,n))return Ze(this.parseStringISO(t,n),r);var i=n-t,o="("+i+` byte)
13
+ `;r/=2,i>r&&(n=t+r);for(var s=t;s<n;++s)o+=this.hexByte(this.get(s));return i>r&&(o+=Hi),o},e.prototype.parseOID=function(t,n,r){for(var i="",o=new lt,s=0,a=t;a<n;++a){var c=this.get(a);if(o.mulAdd(128,c&127),s+=7,!(c&128)){if(i==="")if(o=o.simplify(),o instanceof lt)o.sub(80),i="2."+o.toString();else{var u=o<80?o<40?0:1:2;i=u+"."+(o-u*40)}else i+="."+o.toString();if(i.length>r)return Ze(i,r);o=new lt,s=0}}return s>0&&(i+=".incomplete"),i},e}(),il=function(){function e(t,n,r,i,o){if(!(i instanceof kr))throw new Error("Invalid tag value.");this.stream=t,this.header=n,this.length=r,this.tag=i,this.sub=o}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(t){if(this.tag===void 0)return null;t===void 0&&(t=1/0);var n=this.posContent(),r=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(n,n+r,t);switch(this.tag.tagNumber){case 1:return this.stream.get(n)===0?"false":"true";case 2:return this.stream.parseInteger(n,n+r);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(n,n+r,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(n,n+r,t);case 6:return this.stream.parseOID(n,n+r,t);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return Ze(this.stream.parseStringUTF(n,n+r),t);case 18:case 19:case 20:case 21:case 22:case 26:return Ze(this.stream.parseStringISO(n,n+r),t);case 30:return Ze(this.stream.parseStringBMP(n,n+r),t);case 23:case 24:return this.stream.parseTime(n,n+r,this.tag.tagNumber==23)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(t){t===void 0&&(t="");var n=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(n+="+"),n+=this.length,this.tag.tagConstructed?n+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(n+=" (encapsulates)"),n+=`
14
+ `,this.sub!==null){t+=" ";for(var r=0,i=this.sub.length;r<i;++r)n+=this.sub[r].toPrettyString(t)}return n},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(t){var n=t.get(),r=n&127;if(r==n)return r;if(r>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(r===0)return null;n=0;for(var i=0;i<r;++i)n=n*256+t.get();return n},e.prototype.getHexStringValue=function(){var t=this.toHexString(),n=this.header*2,r=this.length*2;return t.substr(n,r)},e.decode=function(t){var n;t instanceof sn?n=t:n=new sn(t,0);var r=new sn(n),i=new kr(n),o=e.decodeLength(n),s=n.pos,a=s-r.pos,c=null,u=function(){var d=[];if(o!==null){for(var p=s+o;n.pos<p;)d[d.length]=e.decode(n);if(n.pos!=p)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var m=e.decode(n);if(m.tag.isEOC())break;d[d.length]=m}o=s-n.pos}catch(y){throw new Error("Exception while decoding undefined length content: "+y)}return d};if(i.tagConstructed)c=u();else if(i.isUniversal()&&(i.tagNumber==3||i.tagNumber==4))try{if(i.tagNumber==3&&n.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");c=u();for(var h=0;h<c.length;++h)if(c[h].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{c=null}if(c===null){if(o===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+s);n.pos=s+Math.abs(o)}return new e(r,a,o,i,c)},e}(),kr=function(){function e(t){var n=t.get();if(this.tagClass=n>>6,this.tagConstructed=(n&32)!==0,this.tagNumber=n&31,this.tagNumber==31){var r=new lt;do n=t.get(),r.mulAdd(128,n&127);while(n&128);this.tagNumber=r.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e}(),Oe,ol=0xdeadbeefcafe,Cr=(ol&16777215)==15715070,he=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],sl=(1<<26)/he[he.length-1],U=function(){function e(t,n,r){t!=null&&(typeof t=="number"?this.fromNumber(t,n,r):n==null&&typeof t!="string"?this.fromString(t,256):this.fromString(t,n))}return e.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var n;if(t==16)n=4;else if(t==8)n=3;else if(t==2)n=1;else if(t==32)n=5;else if(t==4)n=2;else return this.toRadix(t);var r=(1<<n)-1,i,o=!1,s="",a=this.t,c=this.DB-a*this.DB%n;if(a-- >0)for(c<this.DB&&(i=this[a]>>c)>0&&(o=!0,s=Ce(i));a>=0;)c<n?(i=(this[a]&(1<<c)-1)<<n-c,i|=this[--a]>>(c+=this.DB-n)):(i=this[a]>>(c-=n)&r,c<=0&&(c+=this.DB,--a)),i>0&&(o=!0),o&&(s+=Ce(i));return o?s:"0"},e.prototype.negate=function(){var t=q();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(t){var n=this.s-t.s;if(n!=0)return n;var r=this.t;if(n=r-t.t,n!=0)return this.s<0?-n:n;for(;--r>=0;)if((n=this[r]-t[r])!=0)return n;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+kt(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var n=q();return this.abs().divRemTo(t,null,n),this.s<0&&n.compareTo(e.ZERO)>0&&t.subTo(n,n),n},e.prototype.modPowInt=function(t,n){var r;return t<256||n.isEven()?r=new Ir(n):r=new Br(n),this.exp(t,r)},e.prototype.clone=function(){var t=q();return this.copyTo(t),t},e.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var t=this.t,n=[];n[0]=this.s;var r=this.DB-t*this.DB%8,i,o=0;if(t-- >0)for(r<this.DB&&(i=this[t]>>r)!=(this.s&this.DM)>>r&&(n[o++]=i|this.s<<this.DB-r);t>=0;)r<8?(i=(this[t]&(1<<r)-1)<<8-r,i|=this[--t]>>(r+=this.DB-8)):(i=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),(i&128)!=0&&(i|=-256),o==0&&(this.s&128)!=(i&128)&&++o,(o>0||i!=this.s)&&(n[o++]=i);return n},e.prototype.equals=function(t){return this.compareTo(t)==0},e.prototype.min=function(t){return this.compareTo(t)<0?this:t},e.prototype.max=function(t){return this.compareTo(t)>0?this:t},e.prototype.and=function(t){var n=q();return this.bitwiseTo(t,Xa,n),n},e.prototype.or=function(t){var n=q();return this.bitwiseTo(t,At,n),n},e.prototype.xor=function(t){var n=q();return this.bitwiseTo(t,wr,n),n},e.prototype.andNot=function(t){var n=q();return this.bitwiseTo(t,Dr,n),n},e.prototype.not=function(){for(var t=q(),n=0;n<this.t;++n)t[n]=this.DM&~this[n];return t.t=this.t,t.s=~this.s,t},e.prototype.shiftLeft=function(t){var n=q();return t<0?this.rShiftTo(-t,n):this.lShiftTo(t,n),n},e.prototype.shiftRight=function(t){var n=q();return t<0?this.lShiftTo(-t,n):this.rShiftTo(t,n),n},e.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(this[t]!=0)return t*this.DB+Qa(this[t]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var t=0,n=this.s&this.DM,r=0;r<this.t;++r)t+=el(this[r]^n);return t},e.prototype.testBit=function(t){var n=Math.floor(t/this.DB);return n>=this.t?this.s!=0:(this[n]&1<<t%this.DB)!=0},e.prototype.setBit=function(t){return this.changeBit(t,At)},e.prototype.clearBit=function(t){return this.changeBit(t,Dr)},e.prototype.flipBit=function(t){return this.changeBit(t,wr)},e.prototype.add=function(t){var n=q();return this.addTo(t,n),n},e.prototype.subtract=function(t){var n=q();return this.subTo(t,n),n},e.prototype.multiply=function(t){var n=q();return this.multiplyTo(t,n),n},e.prototype.divide=function(t){var n=q();return this.divRemTo(t,n,null),n},e.prototype.remainder=function(t){var n=q();return this.divRemTo(t,null,n),n},e.prototype.divideAndRemainder=function(t){var n=q(),r=q();return this.divRemTo(t,n,r),[n,r]},e.prototype.modPow=function(t,n){var r=t.bitLength(),i,o=xe(1),s;if(r<=0)return o;r<18?i=1:r<48?i=3:r<144?i=4:r<768?i=5:i=6,r<8?s=new Ir(n):n.isEven()?s=new ll(n):s=new Br(n);var a=[],c=3,u=i-1,h=(1<<i)-1;if(a[1]=s.convert(this),i>1){var d=q();for(s.sqrTo(a[1],d);c<=h;)a[c]=q(),s.mulTo(d,a[c-2],a[c]),c+=2}var p=t.t-1,m,y=!0,b=q(),g;for(r=kt(t[p])-1;p>=0;){for(r>=u?m=t[p]>>r-u&h:(m=(t[p]&(1<<r+1)-1)<<u-r,p>0&&(m|=t[p-1]>>this.DB+r-u)),c=i;(m&1)==0;)m>>=1,--c;if((r-=c)<0&&(r+=this.DB,--p),y)a[m].copyTo(o),y=!1;else{for(;c>1;)s.sqrTo(o,b),s.sqrTo(b,o),c-=2;c>0?s.sqrTo(o,b):(g=o,o=b,b=g),s.mulTo(b,a[m],o)}for(;p>=0&&(t[p]&1<<r)==0;)s.sqrTo(o,b),g=o,o=b,b=g,--r<0&&(r=this.DB-1,--p)}return s.revert(o)},e.prototype.modInverse=function(t){var n=t.isEven();if(this.isEven()&&n||t.signum()==0)return e.ZERO;for(var r=t.clone(),i=this.clone(),o=xe(1),s=xe(0),a=xe(0),c=xe(1);r.signum()!=0;){for(;r.isEven();)r.rShiftTo(1,r),n?((!o.isEven()||!s.isEven())&&(o.addTo(this,o),s.subTo(t,s)),o.rShiftTo(1,o)):s.isEven()||s.subTo(t,s),s.rShiftTo(1,s);for(;i.isEven();)i.rShiftTo(1,i),n?((!a.isEven()||!c.isEven())&&(a.addTo(this,a),c.subTo(t,c)),a.rShiftTo(1,a)):c.isEven()||c.subTo(t,c),c.rShiftTo(1,c);r.compareTo(i)>=0?(r.subTo(i,r),n&&o.subTo(a,o),s.subTo(c,s)):(i.subTo(r,i),n&&a.subTo(o,a),c.subTo(s,c))}if(i.compareTo(e.ONE)!=0)return e.ZERO;if(c.compareTo(t)>=0)return c.subtract(t);if(c.signum()<0)c.addTo(t,c);else return c;return c.signum()<0?c.add(t):c},e.prototype.pow=function(t){return this.exp(t,new al)},e.prototype.gcd=function(t){var n=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(n.compareTo(r)<0){var i=n;n=r,r=i}var o=n.getLowestSetBit(),s=r.getLowestSetBit();if(s<0)return n;for(o<s&&(s=o),s>0&&(n.rShiftTo(s,n),r.rShiftTo(s,r));n.signum()>0;)(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r));return s>0&&r.lShiftTo(s,r),r},e.prototype.isProbablePrime=function(t){var n,r=this.abs();if(r.t==1&&r[0]<=he[he.length-1]){for(n=0;n<he.length;++n)if(r[0]==he[n])return!0;return!1}if(r.isEven())return!1;for(n=1;n<he.length;){for(var i=he[n],o=n+1;o<he.length&&i<sl;)i*=he[o++];for(i=r.modInt(i);n<o;)if(i%he[n++]==0)return!1}return r.millerRabin(t)},e.prototype.copyTo=function(t){for(var n=this.t-1;n>=0;--n)t[n]=this[n];t.t=this.t,t.s=this.s},e.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},e.prototype.fromString=function(t,n){var r;if(n==16)r=4;else if(n==8)r=3;else if(n==256)r=8;else if(n==2)r=1;else if(n==32)r=5;else if(n==4)r=2;else{this.fromRadix(t,n);return}this.t=0,this.s=0;for(var i=t.length,o=!1,s=0;--i>=0;){var a=r==8?+t[i]&255:Rr(t,i);if(a<0){t.charAt(i)=="-"&&(o=!0);continue}o=!1,s==0?this[this.t++]=a:s+r>this.DB?(this[this.t-1]|=(a&(1<<this.DB-s)-1)<<s,this[this.t++]=a>>this.DB-s):this[this.t-1]|=a<<s,s+=r,s>=this.DB&&(s-=this.DB)}r==8&&(+t[0]&128)!=0&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),o&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},e.prototype.dlShiftTo=function(t,n){var r;for(r=this.t-1;r>=0;--r)n[r+t]=this[r];for(r=t-1;r>=0;--r)n[r]=0;n.t=this.t+t,n.s=this.s},e.prototype.drShiftTo=function(t,n){for(var r=t;r<this.t;++r)n[r-t]=this[r];n.t=Math.max(this.t-t,0),n.s=this.s},e.prototype.lShiftTo=function(t,n){for(var r=t%this.DB,i=this.DB-r,o=(1<<i)-1,s=Math.floor(t/this.DB),a=this.s<<r&this.DM,c=this.t-1;c>=0;--c)n[c+s+1]=this[c]>>i|a,a=(this[c]&o)<<r;for(var c=s-1;c>=0;--c)n[c]=0;n[s]=a,n.t=this.t+s+1,n.s=this.s,n.clamp()},e.prototype.rShiftTo=function(t,n){n.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t){n.t=0;return}var i=t%this.DB,o=this.DB-i,s=(1<<i)-1;n[0]=this[r]>>i;for(var a=r+1;a<this.t;++a)n[a-r-1]|=(this[a]&s)<<o,n[a-r]=this[a]>>i;i>0&&(n[this.t-r-1]|=(this.s&s)<<o),n.t=this.t-r,n.clamp()},e.prototype.subTo=function(t,n){for(var r=0,i=0,o=Math.min(t.t,this.t);r<o;)i+=this[r]-t[r],n[r++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i-=t.s;r<this.t;)i+=this[r],n[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<t.t;)i-=t[r],n[r++]=i&this.DM,i>>=this.DB;i-=t.s}n.s=i<0?-1:0,i<-1?n[r++]=this.DV+i:i>0&&(n[r++]=i),n.t=r,n.clamp()},e.prototype.multiplyTo=function(t,n){var r=this.abs(),i=t.abs(),o=r.t;for(n.t=o+i.t;--o>=0;)n[o]=0;for(o=0;o<i.t;++o)n[o+r.t]=r.am(0,i[o],n,o,0,r.t);n.s=0,n.clamp(),this.s!=t.s&&e.ZERO.subTo(n,n)},e.prototype.squareTo=function(t){for(var n=this.abs(),r=t.t=2*n.t;--r>=0;)t[r]=0;for(r=0;r<n.t-1;++r){var i=n.am(r,n[r],t,2*r,0,1);(t[r+n.t]+=n.am(r+1,2*n[r],t,2*r+1,i,n.t-r-1))>=n.DV&&(t[r+n.t]-=n.DV,t[r+n.t+1]=1)}t.t>0&&(t[t.t-1]+=n.am(r,n[r],t,2*r,0,1)),t.s=0,t.clamp()},e.prototype.divRemTo=function(t,n,r){var i=t.abs();if(!(i.t<=0)){var o=this.abs();if(o.t<i.t){n!=null&&n.fromInt(0),r!=null&&this.copyTo(r);return}r==null&&(r=q());var s=q(),a=this.s,c=t.s,u=this.DB-kt(i[i.t-1]);u>0?(i.lShiftTo(u,s),o.lShiftTo(u,r)):(i.copyTo(s),o.copyTo(r));var h=s.t,d=s[h-1];if(d!=0){var p=d*(1<<this.F1)+(h>1?s[h-2]>>this.F2:0),m=this.FV/p,y=(1<<this.F1)/p,b=1<<this.F2,g=r.t,E=g-h,T=n??q();for(s.dlShiftTo(E,T),r.compareTo(T)>=0&&(r[r.t++]=1,r.subTo(T,r)),e.ONE.dlShiftTo(h,T),T.subTo(s,s);s.t<h;)s[s.t++]=0;for(;--E>=0;){var N=r[--g]==d?this.DM:Math.floor(r[g]*m+(r[g-1]+b)*y);if((r[g]+=s.am(0,N,r,E,0,h))<N)for(s.dlShiftTo(E,T),r.subTo(T,r);r[g]<--N;)r.subTo(T,r)}n!=null&&(r.drShiftTo(h,n),a!=c&&e.ZERO.subTo(n,n)),r.t=h,r.clamp(),u>0&&r.rShiftTo(u,r),a<0&&e.ZERO.subTo(r,r)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if((t&1)==0)return 0;var n=t&3;return n=n*(2-(t&15)*n)&15,n=n*(2-(t&255)*n)&255,n=n*(2-((t&65535)*n&65535))&65535,n=n*(2-t*n%this.DV)%this.DV,n>0?this.DV-n:-n},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(t,n){if(t>4294967295||t<1)return e.ONE;var r=q(),i=q(),o=n.convert(this),s=kt(t)-1;for(o.copyTo(r);--s>=0;)if(n.sqrTo(r,i),(t&1<<s)>0)n.mulTo(i,o,r);else{var a=r;r=i,i=a}return n.revert(r)},e.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},e.prototype.toRadix=function(t){if(t==null&&(t=10),this.signum()==0||t<2||t>36)return"0";var n=this.chunkSize(t),r=Math.pow(t,n),i=xe(r),o=q(),s=q(),a="";for(this.divRemTo(i,o,s);o.signum()>0;)a=(r+s.intValue()).toString(t).substr(1)+a,o.divRemTo(i,o,s);return s.intValue().toString(t)+a},e.prototype.fromRadix=function(t,n){this.fromInt(0),n==null&&(n=10);for(var r=this.chunkSize(n),i=Math.pow(n,r),o=!1,s=0,a=0,c=0;c<t.length;++c){var u=Rr(t,c);if(u<0){t.charAt(c)=="-"&&this.signum()==0&&(o=!0);continue}a=n*a+u,++s>=r&&(this.dMultiply(i),this.dAddOffset(a,0),s=0,a=0)}s>0&&(this.dMultiply(Math.pow(n,s)),this.dAddOffset(a,0)),o&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,n,r){if(typeof n=="number")if(t<2)this.fromInt(1);else for(this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),At,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this);else{var i=[],o=t&7;i.length=(t>>3)+1,n.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},e.prototype.bitwiseTo=function(t,n,r){var i,o,s=Math.min(t.t,this.t);for(i=0;i<s;++i)r[i]=n(this[i],t[i]);if(t.t<this.t){for(o=t.s&this.DM,i=s;i<this.t;++i)r[i]=n(this[i],o);r.t=this.t}else{for(o=this.s&this.DM,i=s;i<t.t;++i)r[i]=n(o,t[i]);r.t=t.t}r.s=n(this.s,t.s),r.clamp()},e.prototype.changeBit=function(t,n){var r=e.ONE.shiftLeft(t);return this.bitwiseTo(r,n,r),r},e.prototype.addTo=function(t,n){for(var r=0,i=0,o=Math.min(t.t,this.t);r<o;)i+=this[r]+t[r],n[r++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i+=t.s;r<this.t;)i+=this[r],n[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<t.t;)i+=t[r],n[r++]=i&this.DM,i>>=this.DB;i+=t.s}n.s=i<0?-1:0,i>0?n[r++]=i:i<-1&&(n[r++]=this.DV+i),n.t=r,n.clamp()},e.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(t,n){if(t!=0){for(;this.t<=n;)this[this.t++]=0;for(this[n]+=t;this[n]>=this.DV;)this[n]-=this.DV,++n>=this.t&&(this[this.t++]=0),++this[n]}},e.prototype.multiplyLowerTo=function(t,n,r){var i=Math.min(this.t+t.t,n);for(r.s=0,r.t=i;i>0;)r[--i]=0;for(var o=r.t-this.t;i<o;++i)r[i+this.t]=this.am(0,t[i],r,i,0,this.t);for(var o=Math.min(t.t,n);i<o;++i)this.am(0,t[i],r,i,0,n-i);r.clamp()},e.prototype.multiplyUpperTo=function(t,n,r){--n;var i=r.t=this.t+t.t-n;for(r.s=0;--i>=0;)r[i]=0;for(i=Math.max(n-this.t,0);i<t.t;++i)r[this.t+i-n]=this.am(n-i,t[i],r,0,0,this.t+i-n);r.clamp(),r.drShiftTo(1,r)},e.prototype.modInt=function(t){if(t<=0)return 0;var n=this.DV%t,r=this.s<0?t-1:0;if(this.t>0)if(n==0)r=this[0]%t;else for(var i=this.t-1;i>=0;--i)r=(n*r+this[i])%t;return r},e.prototype.millerRabin=function(t){var n=this.subtract(e.ONE),r=n.getLowestSetBit();if(r<=0)return!1;var i=n.shiftRight(r);t=t+1>>1,t>he.length&&(t=he.length);for(var o=q(),s=0;s<t;++s){o.fromInt(he[Math.floor(Math.random()*he.length)]);var a=o.modPow(i,this);if(a.compareTo(e.ONE)!=0&&a.compareTo(n)!=0){for(var c=1;c++<r&&a.compareTo(n)!=0;)if(a=a.modPowInt(2,this),a.compareTo(e.ONE)==0)return!1;if(a.compareTo(n)!=0)return!1}}return!0},e.prototype.square=function(){var t=q();return this.squareTo(t),t},e.prototype.gcda=function(t,n){var r=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(r.compareTo(i)<0){var o=r;r=i,i=o}var s=r.getLowestSetBit(),a=i.getLowestSetBit();if(a<0){n(r);return}s<a&&(a=s),a>0&&(r.rShiftTo(a,r),i.rShiftTo(a,i));var c=function(){(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),(s=i.getLowestSetBit())>0&&i.rShiftTo(s,i),r.compareTo(i)>=0?(r.subTo(i,r),r.rShiftTo(1,r)):(i.subTo(r,i),i.rShiftTo(1,i)),r.signum()>0?setTimeout(c,0):(a>0&&i.lShiftTo(a,i),setTimeout(function(){n(i)},0))};setTimeout(c,10)},e.prototype.fromNumberAsync=function(t,n,r,i){if(typeof n=="number")if(t<2)this.fromInt(1);else{this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),At,this),this.isEven()&&this.dAddOffset(1,0);var o=this,s=function(){o.dAddOffset(2,0),o.bitLength()>t&&o.subTo(e.ONE.shiftLeft(t-1),o),o.isProbablePrime(n)?setTimeout(function(){i()},0):setTimeout(s,0)};setTimeout(s,0)}else{var a=[],c=t&7;a.length=(t>>3)+1,n.nextBytes(a),c>0?a[0]&=(1<<c)-1:a[0]=0,this.fromString(a,256)}},e}(),al=function(){function e(){}return e.prototype.convert=function(t){return t},e.prototype.revert=function(t){return t},e.prototype.mulTo=function(t,n,r){t.multiplyTo(n,r)},e.prototype.sqrTo=function(t,n){t.squareTo(n)},e}(),Ir=function(){function e(t){this.m=t}return e.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},e.prototype.revert=function(t){return t},e.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},e.prototype.mulTo=function(t,n,r){t.multiplyTo(n,r),this.reduce(r)},e.prototype.sqrTo=function(t,n){t.squareTo(n),this.reduce(n)},e}(),Br=function(){function e(t){this.m=t,this.mp=t.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return e.prototype.convert=function(t){var n=q();return t.abs().dlShiftTo(this.m.t,n),n.divRemTo(this.m,null,n),t.s<0&&n.compareTo(U.ZERO)>0&&this.m.subTo(n,n),n},e.prototype.revert=function(t){var n=q();return t.copyTo(n),this.reduce(n),n},e.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var n=0;n<this.m.t;++n){var r=t[n]&32767,i=r*this.mpl+((r*this.mph+(t[n]>>15)*this.mpl&this.um)<<15)&t.DM;for(r=n+this.m.t,t[r]+=this.m.am(0,i,t,n,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},e.prototype.mulTo=function(t,n,r){t.multiplyTo(n,r),this.reduce(r)},e.prototype.sqrTo=function(t,n){t.squareTo(n),this.reduce(n)},e}(),ll=function(){function e(t){this.m=t,this.r2=q(),this.q3=q(),U.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return e.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var n=q();return t.copyTo(n),this.reduce(n),n},e.prototype.revert=function(t){return t},e.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},e.prototype.mulTo=function(t,n,r){t.multiplyTo(n,r),this.reduce(r)},e.prototype.sqrTo=function(t,n){t.squareTo(n),this.reduce(n)},e}();function q(){return new U(null)}function ie(e,t){return new U(e,t)}var xr=typeof navigator<"u";xr&&Cr&&navigator.appName=="Microsoft Internet Explorer"?(U.prototype.am=function(t,n,r,i,o,s){for(var a=n&32767,c=n>>15;--s>=0;){var u=this[t]&32767,h=this[t++]>>15,d=c*u+h*a;u=a*u+((d&32767)<<15)+r[i]+(o&1073741823),o=(u>>>30)+(d>>>15)+c*h+(o>>>30),r[i++]=u&1073741823}return o},Oe=30):xr&&Cr&&navigator.appName!="Netscape"?(U.prototype.am=function(t,n,r,i,o,s){for(;--s>=0;){var a=n*this[t++]+r[i]+o;o=Math.floor(a/67108864),r[i++]=a&67108863}return o},Oe=26):(U.prototype.am=function(t,n,r,i,o,s){for(var a=n&16383,c=n>>14;--s>=0;){var u=this[t]&16383,h=this[t++]>>14,d=c*u+h*a;u=a*u+((d&16383)<<14)+r[i]+o,o=(u>>28)+(d>>14)+c*h,r[i++]=u&268435455}return o},Oe=28);U.prototype.DB=Oe;U.prototype.DM=(1<<Oe)-1;U.prototype.DV=1<<Oe;var Ln=52;U.prototype.FV=Math.pow(2,Ln);U.prototype.F1=Ln-Oe;U.prototype.F2=2*Oe-Ln;var Wt=[],rt,Ee;rt=48;for(Ee=0;Ee<=9;++Ee)Wt[rt++]=Ee;rt=97;for(Ee=10;Ee<36;++Ee)Wt[rt++]=Ee;rt=65;for(Ee=10;Ee<36;++Ee)Wt[rt++]=Ee;function Rr(e,t){var n=Wt[e.charCodeAt(t)];return n??-1}function xe(e){var t=q();return t.fromInt(e),t}function kt(e){var t=1,n;return(n=e>>>16)!=0&&(e=n,t+=16),(n=e>>8)!=0&&(e=n,t+=8),(n=e>>4)!=0&&(e=n,t+=4),(n=e>>2)!=0&&(e=n,t+=2),(n=e>>1)!=0&&(e=n,t+=1),t}U.ZERO=xe(0);U.ONE=xe(1);var ul=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(t){var n,r,i;for(n=0;n<256;++n)this.S[n]=n;for(r=0,n=0;n<256;++n)r=r+this.S[n]+t[n%t.length]&255,i=this.S[n],this.S[n]=this.S[r],this.S[r]=i;this.i=0,this.j=0},e.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},e}();function cl(){return new ul}var zi=256,Ct,Me=null,Te;if(Me==null){Me=[],Te=0;var It=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var an=new Uint32Array(256);for(window.crypto.getRandomValues(an),It=0;It<an.length;++It)Me[Te++]=an[It]&255}var Bt=0,xt=function(e){if(Bt=Bt||0,Bt>=256||Te>=zi){window.removeEventListener?window.removeEventListener("mousemove",xt,!1):window.detachEvent&&window.detachEvent("onmousemove",xt);return}try{var t=e.x+e.y;Me[Te++]=t&255,Bt+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",xt,!1):window.attachEvent&&window.attachEvent("onmousemove",xt))}function fl(){if(Ct==null){for(Ct=cl();Te<zi;){var e=Math.floor(65536*Math.random());Me[Te++]=e&255}for(Ct.init(Me),Te=0;Te<Me.length;++Te)Me[Te]=0;Te=0}return Ct.next()}var mn=function(){function e(){}return e.prototype.nextBytes=function(t){for(var n=0;n<t.length;++n)t[n]=fl()},e}();function hl(e,t){if(t<e.length+22)return console.error("Message too long for RSA"),null;for(var n=t-e.length-6,r="",i=0;i<n;i+=2)r+="ff";var o="0001"+r+"00"+e;return ie(o,16)}function dl(e,t){if(t<e.length+11)return console.error("Message too long for RSA"),null;for(var n=[],r=e.length-1;r>=0&&t>0;){var i=e.charCodeAt(r--);i<128?n[--t]=i:i>127&&i<2048?(n[--t]=i&63|128,n[--t]=i>>6|192):(n[--t]=i&63|128,n[--t]=i>>6&63|128,n[--t]=i>>12|224)}n[--t]=0;for(var o=new mn,s=[];t>2;){for(s[0]=0;s[0]==0;)o.nextBytes(s);n[--t]=s[0]}return n[--t]=2,n[--t]=0,new U(n)}var pl=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(t){if(this.p==null||this.q==null)return t.modPow(this.d,this.n);for(var n=t.mod(this.p).modPow(this.dmp1,this.p),r=t.mod(this.q).modPow(this.dmq1,this.q);n.compareTo(r)<0;)n=n.add(this.p);return n.subtract(r).multiply(this.coeff).mod(this.p).multiply(this.q).add(r)},e.prototype.setPublic=function(t,n){t!=null&&n!=null&&t.length>0&&n.length>0?(this.n=ie(t,16),this.e=parseInt(n,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(t){var n=this.n.bitLength()+7>>3,r=dl(t,n);if(r==null)return null;var i=this.doPublic(r);if(i==null)return null;for(var o=i.toString(16),s=o.length,a=0;a<n*2-s;a++)o="0"+o;return o},e.prototype.setPrivate=function(t,n,r){t!=null&&n!=null&&t.length>0&&n.length>0?(this.n=ie(t,16),this.e=parseInt(n,16),this.d=ie(r,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(t,n,r,i,o,s,a,c){t!=null&&n!=null&&t.length>0&&n.length>0?(this.n=ie(t,16),this.e=parseInt(n,16),this.d=ie(r,16),this.p=ie(i,16),this.q=ie(o,16),this.dmp1=ie(s,16),this.dmq1=ie(a,16),this.coeff=ie(c,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(t,n){var r=new mn,i=t>>1;this.e=parseInt(n,16);for(var o=new U(n,16);;){for(;this.p=new U(t-i,1,r),!(this.p.subtract(U.ONE).gcd(o).compareTo(U.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new U(i,1,r),!(this.q.subtract(U.ONE).gcd(o).compareTo(U.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q,this.q=s}var a=this.p.subtract(U.ONE),c=this.q.subtract(U.ONE),u=a.multiply(c);if(u.gcd(o).compareTo(U.ONE)==0){this.n=this.p.multiply(this.q),this.d=o.modInverse(u),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(c),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(t){var n=ie(t,16),r=this.doPrivate(n);return r==null?null:gl(r,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(t,n,r){var i=new mn,o=t>>1;this.e=parseInt(n,16);var s=new U(n,16),a=this,c=function(){var u=function(){if(a.p.compareTo(a.q)<=0){var p=a.p;a.p=a.q,a.q=p}var m=a.p.subtract(U.ONE),y=a.q.subtract(U.ONE),b=m.multiply(y);b.gcd(s).compareTo(U.ONE)==0?(a.n=a.p.multiply(a.q),a.d=s.modInverse(b),a.dmp1=a.d.mod(m),a.dmq1=a.d.mod(y),a.coeff=a.q.modInverse(a.p),setTimeout(function(){r()},0)):setTimeout(c,0)},h=function(){a.q=q(),a.q.fromNumberAsync(o,1,i,function(){a.q.subtract(U.ONE).gcda(s,function(p){p.compareTo(U.ONE)==0&&a.q.isProbablePrime(10)?setTimeout(u,0):setTimeout(h,0)})})},d=function(){a.p=q(),a.p.fromNumberAsync(t-o,1,i,function(){a.p.subtract(U.ONE).gcda(s,function(p){p.compareTo(U.ONE)==0&&a.p.isProbablePrime(10)?setTimeout(h,0):setTimeout(d,0)})})};setTimeout(d,0)};setTimeout(c,0)},e.prototype.sign=function(t,n,r){var i=yl(r),o=i+n(t).toString(),s=hl(o,this.n.bitLength()/4);if(s==null)return null;var a=this.doPrivate(s);if(a==null)return null;var c=a.toString(16);return(c.length&1)==0?c:"0"+c},e.prototype.verify=function(t,n,r){var i=ie(n,16),o=this.doPublic(i);if(o==null)return null;var s=o.toString(16).replace(/^1f+00/,""),a=vl(s);return a==r(t).toString()},e}();function gl(e,t){for(var n=e.toByteArray(),r=0;r<n.length&&n[r]==0;)++r;if(n.length-r!=t-1||n[r]!=2)return null;for(++r;n[r]!=0;)if(++r>=n.length)return null;for(var i="";++r<n.length;){var o=n[r]&255;o<128?i+=String.fromCharCode(o):o>191&&o<224?(i+=String.fromCharCode((o&31)<<6|n[r+1]&63),++r):(i+=String.fromCharCode((o&15)<<12|(n[r+1]&63)<<6|n[r+2]&63),r+=2)}return i}var Nt={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function yl(e){return Nt[e]||""}function vl(e){for(var t in Nt)if(Nt.hasOwnProperty(t)){var n=Nt[t],r=n.length;if(e.substr(0,r)==n)return e.substr(r)}return e}/*!
15
+ Copyright (c) 2011, Yahoo! Inc. All rights reserved.
16
+ Code licensed under the BSD License:
17
+ http://developer.yahoo.com/yui/license.html
18
+ version: 2.9.0
19
+ */var se={};se.lang={extend:function(e,t,n){if(!t||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),n){var i;for(i in n)e.prototype[i]=n[i];var o=function(){},s=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(o=function(a,c){for(i=0;i<s.length;i=i+1){var u=s[i],h=c[u];typeof h=="function"&&h!=Object.prototype[u]&&(a[u]=h)}})}catch{}o(e.prototype,n)}}};/**
20
+ * @fileOverview
21
+ * @name asn1-1.0.js
22
+ * @author Kenji Urushima kenji.urushima@gmail.com
23
+ * @version asn1 1.0.13 (2017-Jun-02)
24
+ * @since jsrsasign 2.1
25
+ * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
26
+ */var D={};(typeof D.asn1>"u"||!D.asn1)&&(D.asn1={});D.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if(t.substr(0,1)!="-")t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var n=t.substr(1),r=n.length;r%2==1?r+=1:t.match(/^[0-7]/)||(r+=2);for(var i="",o=0;o<r;o++)i+="f";var s=new U(i,16),a=s.xor(e).add(U.ONE);t=a.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=D,n=t.asn1,r=n.DERBoolean,i=n.DERInteger,o=n.DERBitString,s=n.DEROctetString,a=n.DERNull,c=n.DERObjectIdentifier,u=n.DEREnumerated,h=n.DERUTF8String,d=n.DERNumericString,p=n.DERPrintableString,m=n.DERTeletexString,y=n.DERIA5String,b=n.DERUTCTime,g=n.DERGeneralizedTime,E=n.DERSequence,T=n.DERSet,N=n.DERTaggedObject,S=n.ASN1Util.newObject,A=Object.keys(e);if(A.length!=1)throw"key of param shall be only one.";var v=A[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+v+":")==-1)throw"undefined key: "+v;if(v=="bool")return new r(e[v]);if(v=="int")return new i(e[v]);if(v=="bitstr")return new o(e[v]);if(v=="octstr")return new s(e[v]);if(v=="null")return new a(e[v]);if(v=="oid")return new c(e[v]);if(v=="enum")return new u(e[v]);if(v=="utf8str")return new h(e[v]);if(v=="numstr")return new d(e[v]);if(v=="prnstr")return new p(e[v]);if(v=="telstr")return new m(e[v]);if(v=="ia5str")return new y(e[v]);if(v=="utctime")return new b(e[v]);if(v=="gentime")return new g(e[v]);if(v=="seq"){for(var w=e[v],O=[],C=0;C<w.length;C++){var B=S(w[C]);O.push(B)}return new E({array:O})}if(v=="set"){for(var w=e[v],O=[],C=0;C<w.length;C++){var B=S(w[C]);O.push(B)}return new T({array:O})}if(v=="tag"){var k=e[v];if(Object.prototype.toString.call(k)==="[object Array]"&&k.length==3){var M=S(k[2]);return new N({tag:k[0],explicit:k[1],obj:M})}else{var P={};if(k.explicit!==void 0&&(P.explicit=k.explicit),k.tag!==void 0&&(P.tag=k.tag),k.obj===void 0)throw"obj shall be specified for 'tag'.";return P.obj=S(k.obj),new N(P)}}},this.jsonToASN1HEX=function(e){var t=this.newObject(e);return t.getEncodedHex()}};D.asn1.ASN1Util.oidHexToInt=function(e){for(var i="",t=parseInt(e.substr(0,2),16),n=Math.floor(t/40),r=t%40,i=n+"."+r,o="",s=2;s<e.length;s+=2){var a=parseInt(e.substr(s,2),16),c=("00000000"+a.toString(2)).slice(-8);if(o=o+c.substr(1,7),c.substr(0,1)=="0"){var u=new U(o,2);i=i+"."+u.toString(10),o=""}}return i};D.asn1.ASN1Util.oidIntToHex=function(e){var t=function(a){var c=a.toString(16);return c.length==1&&(c="0"+c),c},n=function(a){var c="",u=new U(a,10),h=u.toString(2),d=7-h.length%7;d==7&&(d=0);for(var p="",m=0;m<d;m++)p+="0";h=p+h;for(var m=0;m<h.length-1;m+=7){var y=h.substr(m,7);m!=h.length-7&&(y="1"+y),c+=t(parseInt(y,2))}return c};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var r="",i=e.split("."),o=parseInt(i[0])*40+parseInt(i[1]);r+=t(o),i.splice(0,2);for(var s=0;s<i.length;s++)r+=n(i[s]);return r};D.asn1.ASN1Object=function(){var e="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+e.length+",v="+this.hV;var t=this.hV.length/2,n=t.toString(16);if(n.length%2==1&&(n="0"+n),t<128)return n;var r=n.length/2;if(r>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);var i=128+r;return i.toString(16)+n},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}};D.asn1.DERAbstractString=function(e){D.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"?this.setString(e):typeof e.str<"u"?this.setString(e.str):typeof e.hex<"u"&&this.setStringHex(e.hex))};se.lang.extend(D.asn1.DERAbstractString,D.asn1.ASN1Object);D.asn1.DERAbstractTime=function(e){D.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){utc=t.getTime()+t.getTimezoneOffset()*6e4;var n=new Date(utc);return n},this.formatDate=function(t,n,r){var i=this.zeroPadding,o=this.localDateToUTC(t),s=String(o.getFullYear());n=="utc"&&(s=s.substr(2,2));var a=i(String(o.getMonth()+1),2),c=i(String(o.getDate()),2),u=i(String(o.getHours()),2),h=i(String(o.getMinutes()),2),d=i(String(o.getSeconds()),2),p=s+a+c+u+h+d;if(r===!0){var m=o.getMilliseconds();if(m!=0){var y=i(String(m),3);y=y.replace(/[0]+$/,""),p=p+"."+y}}return p+"Z"},this.zeroPadding=function(t,n){return t.length>=n?t:new Array(n-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,n,r,i,o,s){var a=new Date(Date.UTC(t,n-1,r,i,o,s,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}};se.lang.extend(D.asn1.DERAbstractTime,D.asn1.ASN1Object);D.asn1.DERAbstractStructured=function(e){D.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,typeof e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)};se.lang.extend(D.asn1.DERAbstractStructured,D.asn1.ASN1Object);D.asn1.DERBoolean=function(){D.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"};se.lang.extend(D.asn1.DERBoolean,D.asn1.ASN1Object);D.asn1.DERInteger=function(e){D.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=D.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var n=new U(String(t),10);this.setByBigInteger(n)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.bigint<"u"?this.setByBigInteger(e.bigint):typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))};se.lang.extend(D.asn1.DERInteger,D.asn1.ASN1Object);D.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=D.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}D.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(n){this.hTLV=null,this.isModified=!0,this.hV=n},this.setUnusedBitsAndHexValue=function(n,r){if(n<0||7<n)throw"unused bits shall be from 0 to 7: u = "+n;var i="0"+n;this.hTLV=null,this.isModified=!0,this.hV=i+r},this.setByBinaryString=function(n){n=n.replace(/0+$/,"");var r=8-n.length%8;r==8&&(r=0);for(var i=0;i<=r;i++)n+="0";for(var o="",i=0;i<n.length-1;i+=8){var s=n.substr(i,8),a=parseInt(s,2).toString(16);a.length==1&&(a="0"+a),o+=a}this.hTLV=null,this.isModified=!0,this.hV="0"+r+o},this.setByBooleanArray=function(n){for(var r="",i=0;i<n.length;i++)n[i]==!0?r+="1":r+="0";this.setByBinaryString(r)},this.newFalseArray=function(n){for(var r=new Array(n),i=0;i<n;i++)r[i]=!1;return r},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):typeof e.hex<"u"?this.setHexValueIncludingUnusedBits(e.hex):typeof e.bin<"u"?this.setByBinaryString(e.bin):typeof e.array<"u"&&this.setByBooleanArray(e.array))};se.lang.extend(D.asn1.DERBitString,D.asn1.ASN1Object);D.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=D.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}D.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"};se.lang.extend(D.asn1.DEROctetString,D.asn1.DERAbstractString);D.asn1.DERNull=function(){D.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"};se.lang.extend(D.asn1.DERNull,D.asn1.ASN1Object);D.asn1.DERObjectIdentifier=function(e){var t=function(r){var i=r.toString(16);return i.length==1&&(i="0"+i),i},n=function(r){var i="",o=new U(r,10),s=o.toString(2),a=7-s.length%7;a==7&&(a=0);for(var c="",u=0;u<a;u++)c+="0";s=c+s;for(var u=0;u<s.length-1;u+=7){var h=s.substr(u,7);u!=s.length-7&&(h="1"+h),i+=t(parseInt(h,2))}return i};D.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(r){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueOidString=function(r){if(!r.match(/^[0-9.]+$/))throw"malformed oid string: "+r;var i="",o=r.split("."),s=parseInt(o[0])*40+parseInt(o[1]);i+=t(s),o.splice(0,2);for(var a=0;a<o.length;a++)i+=n(o[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(r){var i=D.asn1.x509.OID.name2oid(r);if(i!=="")this.setValueOidString(i);else throw"DERObjectIdentifier oidName undefined: "+r},this.getFreshValueHex=function(){return this.hV},e!==void 0&&(typeof e=="string"?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):e.oid!==void 0?this.setValueOidString(e.oid):e.hex!==void 0?this.setValueHex(e.hex):e.name!==void 0&&this.setValueName(e.name))};se.lang.extend(D.asn1.DERObjectIdentifier,D.asn1.ASN1Object);D.asn1.DEREnumerated=function(e){D.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=D.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var n=new U(String(t),10);this.setByBigInteger(n)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))};se.lang.extend(D.asn1.DEREnumerated,D.asn1.ASN1Object);D.asn1.DERUTF8String=function(e){D.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"};se.lang.extend(D.asn1.DERUTF8String,D.asn1.DERAbstractString);D.asn1.DERNumericString=function(e){D.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"};se.lang.extend(D.asn1.DERNumericString,D.asn1.DERAbstractString);D.asn1.DERPrintableString=function(e){D.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"};se.lang.extend(D.asn1.DERPrintableString,D.asn1.DERAbstractString);D.asn1.DERTeletexString=function(e){D.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"};se.lang.extend(D.asn1.DERTeletexString,D.asn1.DERAbstractString);D.asn1.DERIA5String=function(e){D.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"};se.lang.extend(D.asn1.DERIA5String,D.asn1.DERAbstractString);D.asn1.DERUTCTime=function(e){D.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{12}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date))};se.lang.extend(D.asn1.DERUTCTime,D.asn1.DERAbstractTime);D.asn1.DERGeneralizedTime=function(e){D.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{14}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date),e.millis===!0&&(this.withMillis=!0))};se.lang.extend(D.asn1.DERGeneralizedTime,D.asn1.DERAbstractTime);D.asn1.DERSequence=function(e){D.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var t="",n=0;n<this.asn1Array.length;n++){var r=this.asn1Array[n];t+=r.getEncodedHex()}return this.hV=t,this.hV}};se.lang.extend(D.asn1.DERSequence,D.asn1.DERAbstractStructured);D.asn1.DERSet=function(e){D.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,n=0;n<this.asn1Array.length;n++){var r=this.asn1Array[n];t.push(r.getEncodedHex())}return this.sortFlag==!0&&t.sort(),this.hV=t.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&e.sortflag==!1&&(this.sortFlag=!1)};se.lang.extend(D.asn1.DERSet,D.asn1.DERAbstractStructured);D.asn1.DERTaggedObject=function(e){D.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,n,r){this.hT=n,this.isExplicit=t,this.asn1Object=r,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=r.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,n),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.tag<"u"&&(this.hT=e.tag),typeof e.explicit<"u"&&(this.isExplicit=e.explicit),typeof e.obj<"u"&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))};se.lang.extend(D.asn1.DERTaggedObject,D.asn1.ASN1Object);var ml=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Nr=function(e){ml(t,e);function t(n){var r=e.call(this)||this;return n&&(typeof n=="string"?r.parseKey(n):(t.hasPrivateKeyProperty(n)||t.hasPublicKeyProperty(n))&&r.parsePropertiesFrom(n)),r}return t.prototype.parseKey=function(n){try{var r=0,i=0,o=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,s=o.test(n)?tl.decode(n):vn.unarmor(n),a=il.decode(s);if(a.sub.length===3&&(a=a.sub[2].sub[0]),a.sub.length===9){r=a.sub[1].getHexStringValue(),this.n=ie(r,16),i=a.sub[2].getHexStringValue(),this.e=parseInt(i,16);var c=a.sub[3].getHexStringValue();this.d=ie(c,16);var u=a.sub[4].getHexStringValue();this.p=ie(u,16);var h=a.sub[5].getHexStringValue();this.q=ie(h,16);var d=a.sub[6].getHexStringValue();this.dmp1=ie(d,16);var p=a.sub[7].getHexStringValue();this.dmq1=ie(p,16);var m=a.sub[8].getHexStringValue();this.coeff=ie(m,16)}else if(a.sub.length===2)if(a.sub[0].sub){var y=a.sub[1],b=y.sub[0];r=b.sub[0].getHexStringValue(),this.n=ie(r,16),i=b.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else r=a.sub[0].getHexStringValue(),this.n=ie(r,16),i=a.sub[1].getHexStringValue(),this.e=parseInt(i,16);else return!1;return!0}catch{return!1}},t.prototype.getPrivateBaseKey=function(){var n={array:[new D.asn1.DERInteger({int:0}),new D.asn1.DERInteger({bigint:this.n}),new D.asn1.DERInteger({int:this.e}),new D.asn1.DERInteger({bigint:this.d}),new D.asn1.DERInteger({bigint:this.p}),new D.asn1.DERInteger({bigint:this.q}),new D.asn1.DERInteger({bigint:this.dmp1}),new D.asn1.DERInteger({bigint:this.dmq1}),new D.asn1.DERInteger({bigint:this.coeff})]},r=new D.asn1.DERSequence(n);return r.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return Vt(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var n=new D.asn1.DERSequence({array:[new D.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new D.asn1.DERNull]}),r=new D.asn1.DERSequence({array:[new D.asn1.DERInteger({bigint:this.n}),new D.asn1.DERInteger({int:this.e})]}),i=new D.asn1.DERBitString({hex:"00"+r.getEncodedHex()}),o=new D.asn1.DERSequence({array:[n,i]});return o.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return Vt(this.getPublicBaseKey())},t.wordwrap=function(n,r){if(r=r||64,!n)return n;var i="(.{1,"+r+`})( +|$
27
+ ?)|(.{1,`+r+"})";return n.match(RegExp(i,"g")).join(`
28
+ `)},t.prototype.getPrivateKey=function(){var n=`-----BEGIN RSA PRIVATE KEY-----
29
+ `;return n+=t.wordwrap(this.getPrivateBaseKeyB64())+`
30
+ `,n+="-----END RSA PRIVATE KEY-----",n},t.prototype.getPublicKey=function(){var n=`-----BEGIN PUBLIC KEY-----
31
+ `;return n+=t.wordwrap(this.getPublicBaseKeyB64())+`
32
+ `,n+="-----END PUBLIC KEY-----",n},t.hasPublicKeyProperty=function(n){return n=n||{},n.hasOwnProperty("n")&&n.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(n){return n=n||{},n.hasOwnProperty("n")&&n.hasOwnProperty("e")&&n.hasOwnProperty("d")&&n.hasOwnProperty("p")&&n.hasOwnProperty("q")&&n.hasOwnProperty("dmp1")&&n.hasOwnProperty("dmq1")&&n.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(n){this.n=n.n,this.e=n.e,n.hasOwnProperty("d")&&(this.d=n.d,this.p=n.p,this.q=n.q,this.dmp1=n.dmp1,this.dmq1=n.dmq1,this.coeff=n.coeff)},t}(pl),ln,bl=typeof process<"u"?(ln=process.env)===null||ln===void 0?void 0:ln.npm_package_version:void 0,Yt=function(){function e(t){t===void 0&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return e.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new Nr(t)},e.prototype.setPrivateKey=function(t){this.setKey(t)},e.prototype.setPublicKey=function(t){this.setKey(t)},e.prototype.decrypt=function(t){try{return this.getKey().decrypt(Ar(t))}catch{return!1}},e.prototype.encrypt=function(t){try{return Vt(this.getKey().encrypt(t))}catch{return!1}},e.prototype.sign=function(t,n,r){try{return Vt(this.getKey().sign(t,n,r))}catch{return!1}},e.prototype.verify=function(t,n,r){try{return this.getKey().verify(t,Ar(n),r)}catch{return!1}},e.prototype.getKey=function(t){if(!this.key){if(this.key=new Nr,t&&{}.toString.call(t)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=bl,e}();function El(){const e=new Yt({default_key_size:"2048"});return{publicKey:e.getPublicKey(),privateKey:e.getPrivateKey()}}function bn(e,t){const n=new Yt;return n.setPublicKey(t),n.encrypt(e)||""}function Zt(e,t){const n=new Yt;return n.setPrivateKey(t),n.decrypt(e)||""}function Sl(){return typeof new Yt().encrypt=="function"}const $i=f.useLoginState(f.pinia),{superAdminInfo:Tl,cryptoInfo:be}=f.storeToRefs($i),wl=yt(f.pinia),{activeMenuPath:Re}=f.storeToRefs(wl),Ft=qt(f.pinia),pt="123456",Dl=xn(f.pinia),{routerPageStructures:Al}=f.storeToRefs(Dl),_n=l.ref(0),kl=l.ref([{label:"用户名称",value:"",name:"userName"}]),ft=l.computed(()=>{const e=sessionStorage.getItem("isSuperAdmin");return e?JSON.parse(e):!1}),Cl=e=>{console.log("handleQueryChange",e)},Hn=l.ref([]),Ui=l.ref(""),Kt=l.computed(()=>{var t,n,r,i,o;Ft.setRefreshCurStructure(!1);const e=(t=Al.value)==null?void 0:t.find(s=>{var a;return((a=s==null?void 0:s.comp)==null?void 0:a.toUpperCase())==="TABLE"});return e?(Ui.value=e.name,Hn.value=(i=(r=(n=e==null?void 0:e.compData)==null?void 0:n.find(a=>(a==null?void 0:a.key)==="header"))==null?void 0:r.contents)==null?void 0:i.filter(a=>(a==null?void 0:a.label)!=="操作"),(o=e==null?void 0:e.compData)==null?void 0:o.map(a=>{if((a==null?void 0:a.key)==="rowButton"){const c=[...a==null?void 0:a.contents,{label:"重置密码"}];return{...a,contents:c}}return a})):[]}),Il=e=>{Jt(e.singleContent,e.buttonName,_n.value,e==null?void 0:e.selectItems)},Lt=l.ref(),Bl=e=>{console.log("onDoubleClick",e)},xl=(e,t)=>{e==="重置密码"&&wi.confirm(`该操作将会重置【${t==null?void 0:t.account}】的密码,确认重置?`,"警告",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{Lt.value={...t,password:pt},Jt(Lt.value,e,_n.value)}).catch(()=>{f.ElMessage.info("取消重置")})},Rl=()=>{_t(Re.value).then(e=>{var n;const t=Array.isArray(e)&&(e==null?void 0:e.filter(r=>(r==null?void 0:r.account)!==Tl.value.account));Kt.value=(n=Kt.value)==null?void 0:n.map(r=>r.key==="tableContents"?{...r,contents:t==null?void 0:t.map(i=>{var o;return{...i,password:Zt(i==null?void 0:i.password,(o=be==null?void 0:be.value)==null?void 0:o.privateKey)}})}:r)})},Je=async(e,t,n)=>{var r,i;try{const o=await e(t);return((r=o==null?void 0:o.data)==null?void 0:r.code)===200?(n!=="查询"&&await $i.setLogRecordAsync({type:n,data:t},Re.value),Ft.setRefreshCurStructure(!0),o.data.result||((i=o==null?void 0:o.data)==null?void 0:i.code)===200):null}catch(o){f.ElMessage.error(o)}finally{Ft.setCacheUpdatingData(null)}},Jt=(e,t,n,r)=>{var s,a,c,u,h,d;const i=f.cloneDeep(e);i!=null&&i.id&&delete i.id;const o=Fn(i,Hn.value);if(Sl()&&o&&(!o.password&&ft.value?o.password=bn(pt,(s=be==null?void 0:be.value)==null?void 0:s.publicKey):o.password&&ft.value&&(o.password=bn(o==null?void 0:o.password,(a=be==null?void 0:be.value)==null?void 0:a.publicKey))),t==="新增")Je(f.createInsofDataApi,{key:{type:"data",layer:o==null?void 0:o.layer,systemKey:sessionStorage.getItem("systemKey"),pageKey:(c=Re.value)!=null&&c.startsWith("/")?(u=Re.value)==null?void 0:u.substring(1):Re.value,tableId:n},value:{tableData:o}},t).then(p=>{var m;Lt.value={...e,newId:p,password:ft.value?Zt((e==null?void 0:e.password)??pt,(m=be==null?void 0:be.value)==null?void 0:m.privateKey):e==null?void 0:e.password}});else if(t==="编辑"||t==="重置密码")Je(f.updateInsofDataApi,{id:e.id,key:{type:"data",layer:o==null?void 0:o.layer,systemKey:sessionStorage.getItem("systemKey"),pageKey:(h=Re.value)!=null&&h.startsWith("/")?(d=Re.value)==null?void 0:d.substring(1):Re.value,tableId:n},value:{tableData:o}},t).then(()=>{t==="重置密码"&&Ft.setRefreshCurStructure(!0),He.show=!1});else if(t!=null&&t.includes("删除")){const p=t!=null&&t.includes("批量")?f.batchDeleteInsofDataApi:f.deleteInsofDataApi,m=t!=null&&t.includes("批量")?{ids:r&&(r==null?void 0:r.length)>0?r==null?void 0:r.map(y=>y==null?void 0:y.id):[]}:{id:e.id};Je(p,m,t).then(y=>{t&&y&&f.ElMessage.success(t+"成功")})}},_t=async e=>{const t=await Je(f.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:e}},"查询"),n=t==null?void 0:t.map(r=>{var i,o;return{id:r.id,layer:(i=r.key)==null?void 0:i.layer,tableData:(o=r==null?void 0:r.value)==null?void 0:o.tableData}});return n==null?void 0:n.map(r=>{var i;if(!Array.isArray(r==null?void 0:r.tableData))return{...r.tableData,layer:(i=r.key)==null?void 0:i.layer,id:r.id}})},Nl={comp:"Group",name:"/系统管理/用户管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:Kt.value,name:""}]}]},Ml=Object.freeze(Object.defineProperty({__proto__:null,changedRow:Lt,clickRowButton:xl,columns:Hn,compName:Ui,getPageDataAsync:_t,handleItemDataChange:Il,handleQueryChange:Cl,handleSubmitAsync:Je,loginUserIsSuper:ft,onDoubleClick:Bl,pageData:Kt,queryFormData:kl,refreshUserTableData:Rl,resetPassword:pt,structureId:_n,submitTableAsyncByVerify:Jt,tempUserPageData:Nl},Symbol.toStringTag,{value:"Module"})),Ol=qt(f.pinia),{routeToChildPath:Mr}=f.storeToRefs(Ol),Pl=f.useLoginState(f.pinia),{loginUserInfo:Or,cryptoInfo:un}=f.storeToRefs(Pl),Vl=e=>{var t,n,r;return((n=(t=Or.value)==null?void 0:t.layer)==null?void 0:n.toUpperCase())==="SUPERADMIN"?!0:((r=Or.value)==null?void 0:r.account)===(e==null?void 0:e.account)},Fl=async(e,t,n)=>{const r=_t("/系统管理/角色管理"),i=_t("/系统管理/部门管理");return await Promise.all([r,i]).then(s=>{var u,h;const a=(u=s==null?void 0:s[0])==null?void 0:u.map(d=>({label:d==null?void 0:d.roleName,value:d==null?void 0:d.roleName})),c=(h=s==null?void 0:s[1])==null?void 0:h.map(d=>({label:d==null?void 0:d.deptName,value:d==null?void 0:d.deptName}));return e==null?void 0:e.map(d=>{var p;return{...d,compData:(p=d==null?void 0:d.compData)==null?void 0:p.map(m=>{var y,b;return(m==null?void 0:m.key)==="header"?{...m,contents:(y=m==null?void 0:m.contents)==null?void 0:y.map(g=>g.prop==="userDept"?{...g,options:c}:g.prop==="userRoles"?{...g,options:a}:g)}:(m==null?void 0:m.key)==="tableContents"?{...m,contents:(b=m==null?void 0:m.contents)==null?void 0:b.map(g=>{var E;return{...g,password:Vl(g)?Zt(g==null?void 0:g.password,(E=un==null?void 0:un.value)==null?void 0:E.privateKey):g==null?void 0:g.password}})}:m})}})})},Kl=async(e,t)=>{const n=sessionStorage.getItem("authority"),r=JSON.parse(n||"");if(Array.isArray(r)){let i;Mr.value?i=Array.isArray(r)&&(r==null?void 0:r.filter(a=>(a==null?void 0:a.includes(e))||(a==null?void 0:a.includes(Mr.value)))):i=Array.isArray(r)&&(r==null?void 0:r.filter(a=>a==null?void 0:a.includes(e)));const o=i==null?void 0:i.map(a=>{var c;return((c=a==null?void 0:a.split("/"))==null?void 0:c.pop())||""});return t==null?void 0:t.map(a=>{var c;return{...a,compData:(c=a==null?void 0:a.compData)==null?void 0:c.map(u=>{var h;return(u==null?void 0:u.key)==="rowButton"||(u==null?void 0:u.key)==="extraButton"?{...u,contents:(h=u==null?void 0:u.contents)==null?void 0:h.filter(d=>o==null?void 0:o.includes(d==null?void 0:d.label))}:u})}})}else return typeof r=="string"&&(r==null?void 0:r.toUpperCase())==="SUPERADMIN"?e==="/系统管理/用户管理"?await Fl(t):t:[]},En=yt(f.pinia),{activeMenuPath:Ll}=f.storeToRefs(En),_l=async(e,t,n)=>{var m,y,b,g,E,T,N,S,A,v,w,O,C,B,k,M,P,x,F,R,V,H,ee,W,L,ne,re,Y,_,z,Z,pe,ae,j,we,it,ot;const r=(y=(m=e==null?void 0:e.find(J=>(J==null?void 0:J.key)==="header"))==null?void 0:m.contents)==null?void 0:y.find(J=>J==null?void 0:J.columnPath);let i=(A=(S=(N=(T=(b=f.cloneDeep(r==null?void 0:r.columnPath))==null?void 0:b.split("["))==null?void 0:T[((E=(g=r==null?void 0:r.columnPath)==null?void 0:g.split("["))==null?void 0:E.length)-1])==null?void 0:N.split("]"))==null?void 0:S[0])==null?void 0:A.replaceAll("'",""),o=(w=(v=f.cloneDeep(r==null?void 0:r.columnPath))==null?void 0:v.split("['"+i+"']"))==null?void 0:w[0],s="",a="",c="";if(o.includes("[")){let J=(k=(B=(C=(O=o==null?void 0:o.split("["))==null?void 0:O[1])==null?void 0:C.split("]"))==null?void 0:B[0])==null?void 0:k.split("/");a=o,s=(x=(P=(M=o==null?void 0:o.split("["))==null?void 0:M[1])==null?void 0:P.split("]"))==null?void 0:x[0];let X="";n==null||n.forEach(oe=>{var fe,ye,ve,De,$;((ye=(fe=oe==null?void 0:oe.value)==null?void 0:fe.pageData)==null?void 0:ye.name)===(J==null?void 0:J[0])&&(($=(De=(ve=oe==null?void 0:oe.value)==null?void 0:ve.pageData)==null?void 0:De.compData)==null||$.forEach(te=>{var ce;(te==null?void 0:te.key)==="formContent"&&((ce=te==null?void 0:te.contents)==null||ce.forEach(I=>{(I==null?void 0:I.prop)===(J==null?void 0:J[1])&&(X=I==null?void 0:I.value)}))}))}),c=X,o=((F=o==null?void 0:o.split("["))==null?void 0:F[0])+X}let u=[];const h=await f.getInsofDataApi({key:{pageKey:o,systemKey:sessionStorage.getItem("systemKey"),type:"structure"}}),d=await f.getInsofDataApi({key:{pageKey:Ll.value,systemKey:sessionStorage.getItem("systemKey"),tableId:parseInt(t),type:"data"}}),p=[];if((V=(R=d==null?void 0:d.data)==null?void 0:R.result)==null||V.forEach(J=>{p.push([{id:J==null?void 0:J.id},J.value.tableData])}),Array.isArray((H=h==null?void 0:h.data)==null?void 0:H.result)&&((W=(ee=h==null?void 0:h.data)==null?void 0:ee.result)==null?void 0:W.length)>0){let J;(ne=(L=h==null?void 0:h.data)==null?void 0:L.result)!=null&&ne.find(X=>{var oe,fe;return((fe=(oe=X==null?void 0:X.value)==null?void 0:oe.pageData)==null?void 0:fe.name)===i})&&(J=await((Y=(re=h==null?void 0:h.data)==null?void 0:re.result)==null?void 0:Y.map(async X=>{var oe,fe,ye,ve,De,$,te,ce,I,G,me,le,st,zn,$n,Un,qn,jn,Gn,Wn,Yn,Zn;if(((fe=(oe=X==null?void 0:X.value)==null?void 0:oe.pageData)==null?void 0:fe.name)===i){u=f.cloneDeep((ve=(ye=X==null?void 0:X.value)==null?void 0:ye.pageData)==null?void 0:ve.compData);const ze=await f.getInsofDataApi({key:{pageKey:o,systemKey:sessionStorage.getItem("systemKey"),tableId:X==null?void 0:X.id,type:"data"}});let vt;if((($=(De=ze==null?void 0:ze.data)==null?void 0:De.result)==null?void 0:$.length)>0)vt=(ce=(te=ze==null?void 0:ze.data)==null?void 0:te.result)==null?void 0:ce.map(K=>{var Jn;let Q=[];return Q.push({id:K==null?void 0:K.id}),Q.push((Jn=K==null?void 0:K.value)==null?void 0:Jn.tableData),Q}),u.push({key:"tableContents",contents:Le(vt,(le=(me=(G=(I=X==null?void 0:X.value)==null?void 0:I.pageData)==null?void 0:G.compData)==null?void 0:me.find(K=>(K==null?void 0:K.key)==="header"))==null?void 0:le.contents)}),u.push({key:"contentTableId",contents:X==null?void 0:X.id});else{let K=await Xe(o,sessionStorage.getItem("systemKey"),"");u=(zn=(st=K==null?void 0:K.find(Q=>(Q==null?void 0:Q.name)===i))==null?void 0:st.compData)==null?void 0:zn.filter(Q=>(Q==null?void 0:Q.key)!=="tableContents"),K=(qn=(Un=($n=K==null?void 0:K.find(Q=>(Q==null?void 0:Q.name)===i))==null?void 0:$n.compData)==null?void 0:Un.find(Q=>(Q==null?void 0:Q.key)==="tableContents"))==null?void 0:qn.contents,vt=K,u.push({key:"tableContents",contents:Le(vt,(Wn=(Gn=(jn=K==null?void 0:K.find(Q=>(Q==null?void 0:Q.name)===i))==null?void 0:jn.compData)==null?void 0:Gn.find(Q=>(Q==null?void 0:Q.key)==="header"))==null?void 0:Wn.contents)}),u.push({key:"contentTableId",contents:(K==null?void 0:K.length)!==0?(Zn=(Yn=K==null?void 0:K.find(Q=>(Q==null?void 0:Q.name)===i))==null?void 0:Yn.compData)==null?void 0:Zn.id:X==null?void 0:X.id})}s!==""&&(u!=null&&u.find(K=>(K==null?void 0:K.key)==="pageColumn")&&(u=u==null?void 0:u.filter(K=>(K==null?void 0:K.key)!=="pageColumn")),u.push({key:"pageColumn",contents:a}),u!=null&&u.find(K=>(K==null?void 0:K.key)==="columnPath")&&(u=u==null?void 0:u.filter(K=>(K==null?void 0:K.key)!=="columnPath")),u.push({key:"columnPath",contents:s}),u!=null&&u.find(K=>(K==null?void 0:K.key)==="columnUsingPath")&&(u=u==null?void 0:u.filter(K=>(K==null?void 0:K.key)!=="columnUsingPath")),u.push({key:"columnUsingPath",contents:c}),u!=null&&u.find(K=>(K==null?void 0:K.key)==="pageGroup")&&(u=u==null?void 0:u.filter(K=>(K==null?void 0:K.key)!=="pageGroup")),u.push({key:"pageGroup",contents:i}))}})),await Promise.all(J))}else{let J="",X="";(_=o==null?void 0:o.split("/"))==null||_.forEach(($,te)=>{var ce;te<((ce=o==null?void 0:o.split("/"))==null?void 0:ce.length)-1?J=J===""?J+$:J+"/"+$:X=$});let oe=await Xe(J,sessionStorage.getItem("systemKey"),""),fe;(ae=(pe=(Z=(z=oe==null?void 0:oe[0])==null?void 0:z.compData)==null?void 0:Z.find($=>($==null?void 0:$.key)==="header"))==null?void 0:pe.contents)==null||ae.forEach(($,te)=>{$!=null&&$.isMainKey&&(fe=te)});let ye=[];(ot=(it=(we=(j=oe==null?void 0:oe[0])==null?void 0:j.compData)==null?void 0:we.find($=>($==null?void 0:$.key)==="tableContents"))==null?void 0:it.contents)==null||ot.forEach($=>{$.find(te=>te===X)&&(fe||fe===0)&&ye.push($==null?void 0:$[fe])});let ve=[],De=await(ye==null?void 0:ye.map(async $=>{let te=await Xe(J+"/"+$,sessionStorage.getItem("systemKey"),""),ce=te==null?void 0:te.find(I=>(I==null?void 0:I.name)===i);ve.push(ce)}));await Promise.all(De),ve==null||ve.forEach($=>{var ce,I,G,me;let te=f.cloneDeep($==null?void 0:$.compData);te=te==null?void 0:te.filter(le=>(le==null?void 0:le.key)!=="tableContents"),te.push({key:"tableContents",contents:Le((I=(ce=$==null?void 0:$.compData)==null?void 0:ce.find(le=>(le==null?void 0:le.key)==="tableContents"))==null?void 0:I.contents,(me=(G=$==null?void 0:$.compData)==null?void 0:G.find(le=>(le==null?void 0:le.key)==="header"))==null?void 0:me.contents)}),te.push({key:"contentTableId",contents:$==null?void 0:$.id}),u.push(te)})}return u},Xe=async(e,t,n="",r=!1,i,o)=>{var b,g,E,T,N,S,A;let s,a=await f.getInsofDataApi({key:{systemKey:t}}),c=new WeakMap;(g=(b=a.data.result)==null?void 0:b.filter(v=>{var w,O;return((w=v==null?void 0:v.key)==null?void 0:w.pageKey)!=="menu"&&((O=v==null?void 0:v.key)==null?void 0:O.pageKey)!=="secret"}))==null||g.forEach(v=>{c[v.key.pageKey]?c[v.key.pageKey]=[...c[v.key.pageKey],v]:c[v.key.pageKey]=[v]}),(!r||!i)&&(s=(E=c[e])==null?void 0:E.filter(v=>{var w;return((w=v==null?void 0:v.key)==null?void 0:w.parentTable)===n}));const u=(T=c[e])==null?void 0:T.filter(v=>{var w;return((w=v==null?void 0:v.key)==null?void 0:w.type)==="structureMethod"}),h=s==null?void 0:s.map(v=>v.id);if(!h)return;let d=(N=c[e])==null?void 0:N.filter(v=>{var w,O;return((w=v==null?void 0:v.key)==null?void 0:w.type)==="data"&&h.includes((O=v==null?void 0:v.key)==null?void 0:O.tableId)}),p=[];d==null||d.forEach(v=>{var C;const w=Array.isArray(v.value.tableData)?v.value.tableData:[v.value.tableData];w.unshift({id:v.id});const O=(C=v==null?void 0:v.key)==null?void 0:C.tableId;p!=null&&p.find(B=>(B==null?void 0:B.key)===O)?p=p==null?void 0:p.map(B=>((B==null?void 0:B.key)===O&&(B.contents=[...B.contents,w]),B)):p.push({key:O,contents:[w]})});let m=[];const y=await(s==null?void 0:s.map(async v=>{var B,k,M,P,x,F,R,V,H,ee,W,L,ne,re,Y;const w=v.value.pageData,O=v==null?void 0:v.id;let C=(B=f.cloneDeep(w==null?void 0:w.compData))==null?void 0:B.filter(_=>(_==null?void 0:_.key)!=="tableContents");if(C&&(C!=null&&C.find(_=>(_==null?void 0:_.key)==="header"))&&((M=(k=C==null?void 0:C.find(_=>(_==null?void 0:_.key)==="header"))==null?void 0:k.contents)!=null&&M.every(_=>!(_!=null&&_.columnPath)))){let _=Le((P=p==null?void 0:p.find(z=>(z==null?void 0:z.key)===v.id))==null?void 0:P.contents,(x=C==null?void 0:C.find(z=>(z==null?void 0:z.key)==="header"))==null?void 0:x.contents);if(!_||(_==null?void 0:_.length)===0){let z=await iu((F=C==null?void 0:C.find(Z=>(Z==null?void 0:Z.key)==="header"))==null?void 0:F.contents,e,(R=C==null?void 0:C.find(Z=>(Z==null?void 0:Z.key)==="tableFilter"))==null?void 0:R.contents,c);z!=null&&z.mainKeys&&C.push({key:"mainRouters",contents:z==null?void 0:z.mainKeys}),z!=null&&z.tableContents?(C.push({key:"tableContents",contents:Le(z==null?void 0:z.tableContents,(V=C==null?void 0:C.find(Z=>(Z==null?void 0:Z.key)==="header"))==null?void 0:V.contents)}),C=C==null?void 0:C.map(Z=>{var pe;return(Z==null?void 0:Z.key)==="header"&&(Z.contents=(pe=Z.contents)==null?void 0:pe.map(ae=>((ae==null?void 0:ae.prop)===(z==null?void 0:z.mainKey)&&(ae.isMainKey=!0),ae))),Z})):C.push({key:"tableContents",contents:Le(z,(H=C==null?void 0:C.find(Z=>(Z==null?void 0:Z.key)==="header"))==null?void 0:H.contents)})}else C.push({key:"tableContents",contents:_})}else C&&(C!=null&&C.find(_=>(_==null?void 0:_.key)==="header"))&&(C=await _l(f.cloneDeep(C),O,s),w.tableId=(ee=C==null?void 0:C.find(_=>(_==null?void 0:_.key)==="contentTableId"))==null?void 0:ee.contents);if(w.id=v==null?void 0:v.id,w.isShow=(L=(W=v==null?void 0:v.value)==null?void 0:W.pageData)==null?void 0:L.isShow,w.compData=C,((ne=v.key)==null?void 0:ne.type)!=="method")(re=w==null?void 0:w.compData)!=null&&re.every(_=>Array.isArray(_))?(Y=w==null?void 0:w.compData)==null||Y.forEach((_,z)=>{z===0?m.push({comp:w==null?void 0:w.comp,compData:_,id:w==null?void 0:w.id,name:w==null?void 0:w.name,isShow:w==null?void 0:w.isShow}):m.push({comp:w==null?void 0:w.comp,compData:_,id:w==null?void 0:w.id,name:"",isShow:w==null?void 0:w.isShow})}):m.push(w);else{let _;_={name:"",compData:[w],comp:"calculator"},m.push(_)}}));return await Promise.all(y),((S=u==null?void 0:u.map(v=>v.value.pageData))==null?void 0:S.filter(v=>Object.values(v).length>0).length)>0&&m.push({comp:"methodButton",name:"",compData:(A=u==null?void 0:u.map(v=>v.value.pageData))==null?void 0:A.filter(v=>Object.values(v).length>0)}),m=m.sort((v,w)=>v.id-w.id),o?m:await Kl(e,m)},Hl=async e=>{await f.deleteInsofDataApi({id:e})},zl=async(e,t,n,r,i,o,s)=>{var c,u,h,d,p,m,y,b,g,E,T,N,S,A,v,w,O,C,B;let a=((u=(c=s==null?void 0:s.content)==null?void 0:c[0])==null?void 0:u.id)??"";if(a!==""&&((h=s==null?void 0:s.content)==null?void 0:h.length)>1){const k=await f.getInsofDataApi({id:a});let M=((y=(m=(p=(d=k==null?void 0:k.data)==null?void 0:d.result)==null?void 0:p[0])==null?void 0:m.key)==null?void 0:y.tableId)??"",P=((T=(E=(g=(b=k==null?void 0:k.data)==null?void 0:b.result)==null?void 0:g[0])==null?void 0:E.key)==null?void 0:T.pageKey)??"";const x=await f.createInsofDataApi({key:{type:e,pageKey:P,tableId:M,systemKey:r},value:{tableData:et(i,(N=_e(o))==null?void 0:N.filter(F=>F!=="操作"))}});((S=x==null?void 0:x.data)==null?void 0:S.code)===200?f.ElMessage.success("保存成功"):f.ElMessage.error("保存响应失败")}else{let k;if(s!=null&&s.parentTableId){let P=await f.getInsofDataApi({id:s==null?void 0:s.parentTableId});k=(O=(w=(v=(A=P==null?void 0:P.data)==null?void 0:A.result)==null?void 0:v[0])==null?void 0:w.key)==null?void 0:O.pageKey}const M=await f.createInsofDataApi({key:{type:e,pageKey:k||t,tableId:s!=null&&s.parentTableId?s==null?void 0:s.parentTableId:n,systemKey:r},value:{tableData:et(i,(C=_e(o))==null?void 0:C.filter(P=>P!=="操作"))}});((B=M==null?void 0:M.data)==null?void 0:B.code)===200?f.ElMessage.success("保存成功"):f.ElMessage.error("保存响应失败")}},$l=async(e,t,n,r,i,o,s)=>{var h,d,p,m,y,b,g,E,T,N,S,A;const a=await f.getInsofDataApi({id:r});let c=((m=(p=(d=(h=a==null?void 0:a.data)==null?void 0:h.result)==null?void 0:d[0])==null?void 0:p.key)==null?void 0:m.tableId)??"",u=((E=(g=(b=(y=a==null?void 0:a.data)==null?void 0:y.result)==null?void 0:b[0])==null?void 0:g.key)==null?void 0:E.pageKey)??"";if(c&&c!==""){const v=await f.updateInsofDataApi({key:{type:e,pageKey:u,tableId:c,systemKey:i},value:{tableData:et(o,(T=_e(s))==null?void 0:T.filter(w=>w!=="操作"))},id:r});((N=v==null?void 0:v.data)==null?void 0:N.code)===200?f.ElMessage.success("保存成功"):f.ElMessage.error("保存响应失败")}else{const v=await f.updateInsofDataApi({key:{type:e,pageKey:t,tableId:n,systemKey:i},value:{tableData:et(o,(S=_e(s))==null?void 0:S.filter(w=>w!=="操作"))},id:r});((A=v==null?void 0:v.data)==null?void 0:A.code)===200?f.ElMessage.success("保存成功"):f.ElMessage.error("保存响应失败")}},Ul=async(e,t)=>{await f.updateInsofDataApi({value:{pageData:t},id:e})},ql=async(e,t)=>await f.getInsofDataApi({key:e,valueLikes:t}),jl=async()=>{var e,t,n,r,i,o,s,a,c;try{const u=await f.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),layer:"superAdmin"}});((e=u==null?void 0:u.data)==null?void 0:e.code)===200&&(En.setPlatform(((i=(r=(n=(t=u==null?void 0:u.data)==null?void 0:t.result)==null?void 0:n[0])==null?void 0:r.key)==null?void 0:i.systemType)==="制造系统"?"client":"browser"),En.setPlatName(((c=(a=(s=(o=u==null?void 0:u.data)==null?void 0:o.result)==null?void 0:s[0])==null?void 0:a.key)==null?void 0:c.name)??""))}catch(u){return Promise.reject(u)}},Qe=l.ref(0),Gl=yt(f.pinia),Wl=f.useLoginState(f.pinia),{loginUserInfo:Rt}=f.storeToRefs(Wl),{activeMenuPath:ou}=f.storeToRefs(Gl),Ht=e=>e==null?void 0:e.map(n=>(Qe.value++,Array.isArray(n)?Ht(n):{label:(n==null?void 0:n.label)??"",prop:(n==null?void 0:n.label)==="操作"?"operate":(n==null?void 0:n.prop)??"a"+Qe.value,width:(n==null?void 0:n.label)==="操作"?"200":n!=null&&n.width?parseInt(n.width):"",fixed:(n==null?void 0:n.fixed)??void 0,sortable:(n==null?void 0:n.sortable)??!1,align:(n==null?void 0:n.align)??"left",showOverflowTooltip:(n==null?void 0:n.showOverflowTooltip)??!0,isNotDrag:(n==null?void 0:n.isNotDrag)??!1,isEditCol:(n==null?void 0:n.isEditCol)??!1,isOperate:(n==null?void 0:n.isOperate)??!1,id:(n==null?void 0:n.id)??Qe.value,type:(n==null?void 0:n.label)==="操作"?"operate":void 0,formType:(n==null?void 0:n.formType)??"",isHidden:n==null?void 0:n.isHidden,options:(n==null?void 0:n.options)??[],children:Ht(n.children)??void 0})),Yl=e=>{const t=[];function n(r){if(Array.isArray(r))for(const i of r)!i.children||i.children.length===0?t.push(i):n(i.children)}return n(e),t},Zl=e=>f.cloneDeep(e).map(n=>(Array.isArray(n)&&(n=n.map(r=>(Array.isArray(r)?r=Ht(r):(r={label:(r==null?void 0:r.label)??"",prop:(r==null?void 0:r.label)==="操作"?"operate":(r==null?void 0:r.prop)??"a"+Qe.value,width:(r==null?void 0:r.label)==="操作"?"200":r!=null&&r.width?parseInt(r.width):"",fixed:(r==null?void 0:r.fixed)??void 0,sortable:(r==null?void 0:r.sortable)??!1,align:(r==null?void 0:r.align)??"left",showOverflowTooltip:(r==null?void 0:r.showOverflowTooltip)??!0,isNotDrag:(r==null?void 0:r.isNotDrag)??!1,isEditCol:(r==null?void 0:r.isEditCol)??!1,isOperate:(r==null?void 0:r.isOperate)??!1,id:(r==null?void 0:r.id)??Qe.value,type:(r==null?void 0:r.label)==="操作"?"operate":void 0,formType:(r==null?void 0:r.formType)??"",isHidden:r==null?void 0:r.isHidden,options:(r==null?void 0:r.options)??[],children:Ht(r.children)},Qe.value++),r))),n)),Sn=e=>{function t(n,r=[]){if(!n||n.length===0)return[];let i=r;return Array.isArray(n)&&(n==null||n.forEach(o=>{var s;o!=null&&o.children&&((s=o.children)==null?void 0:s.length)>0?i=t(o==null?void 0:o.children,i):i.push(o)})),i}return t(e)},Jl=e=>{let t=f.cloneDeep(e);return t=t==null?void 0:t.map(n=>((n==null?void 0:n.type)==="Select"&&(n={label:n==null?void 0:n.label,name:n==null?void 0:n.name,type:n==null?void 0:n.type,value:"",optionUrl:{groupSelect:n==null?void 0:n.groupSelect,menuSelect:n==null?void 0:n.menuSelect,type:"Select",selectRelateType:n==null?void 0:n.selectRelateType,multiple:n==null?void 0:n.multiple}}),n)),t},Xl=e=>{var t,n,r,i,o,s;if(((t=e==null?void 0:e.pageData)==null?void 0:t.comp)==="Form"){let a=(r=(n=e==null?void 0:e.pageData)==null?void 0:n.compData)==null?void 0:r.map(u=>{var h;return(u==null?void 0:u.key)==="formContent"&&(u.contents=(h=u.contents)==null?void 0:h.map(d=>d)),u});return{pageData:{comp:(i=e==null?void 0:e.pageData)==null?void 0:i.comp,compData:a,name:(o=e==null?void 0:e.pageData)==null?void 0:o.name,isShow:(s=e==null?void 0:e.pageData)==null?void 0:s.isShow}}}else return e},Ql=(e,t)=>{var r,i,o,s,a,c,u,h,d;let n=(o=(i=(r=t==null?void 0:t.pageData)==null?void 0:r.compData)==null?void 0:i.find(p=>(p==null?void 0:p.key)==="formContent"))==null?void 0:o.contents;if(((s=e==null?void 0:e.pageData)==null?void 0:s.comp)==="Form"){let p=(c=(a=e==null?void 0:e.pageData)==null?void 0:a.compData)==null?void 0:c.map(y=>{var b;return(y==null?void 0:y.key)==="formContent"&&(y.contents=(b=y.contents)==null?void 0:b.map(g=>{var E;return g.value=(E=n==null?void 0:n.find(T=>(T==null?void 0:T.key)===(g==null?void 0:g.key)))==null?void 0:E.value,g})),y});return{pageData:{comp:(u=e==null?void 0:e.pageData)==null?void 0:u.comp,compData:p,name:(h=e==null?void 0:e.pageData)==null?void 0:h.name,isShow:(d=e==null?void 0:e.pageData)==null?void 0:d.isShow}}}else return e},qi=async(e,t,n,r)=>{var m,y,b,g,E,T,N,S,A,v,w,O,C,B,k,M,P;let i=e;(i==null?void 0:i[(i==null?void 0:i.length)-1])!=="/"&&(i="",(y=(m=f.cloneDeep(e))==null?void 0:m.split("/"))==null||y.forEach((x,F)=>{var R,V;F!==((V=(R=f.cloneDeep(e))==null?void 0:R.split("/"))==null?void 0:V.length)-1&&(i=i===""?i+x:i+"/"+x)}),i=i+"/");let o=[];const s=await f.getInsofDataApi({key:{pageKey:e,type:"structure",systemKey:sessionStorage.getItem("systemKey")}});let a;(e==null?void 0:e[(e==null?void 0:e.length)-1])!=="/"&&(a=await f.getInsofDataApi({key:{pageKey:i,type:"structure",systemKey:sessionStorage.getItem("systemKey")}}),((g=(b=a==null?void 0:a.data)==null?void 0:b.result)==null?void 0:g.length)>0&&(a=(T=(E=f.cloneDeep(a))==null?void 0:E.data)==null?void 0:T.result));const c=await f.getInsofDataApi({key:{pageKey:i,systemKey:sessionStorage.getItem("systemKey"),type:"structureMethod"}}),u=await f.getInsofDataApi({key:{pageKey:e,type:"data",systemKey:sessionStorage.getItem("systemKey")}});if((e==null?void 0:e[(e==null?void 0:e.length)-1])!=="/"){let x=(N=s==null?void 0:s.data)==null?void 0:N.result;if(!Array.isArray(a))return;a==null||a.forEach(F=>{var V,H,ee,W,L;let R=(V=x==null?void 0:x.find(ne=>{var re,Y,_,z;return((Y=(re=F==null?void 0:F.value)==null?void 0:re.pageData)==null?void 0:Y.name)===((z=(_=ne==null?void 0:ne.value)==null?void 0:_.pageData)==null?void 0:z.name)}))==null?void 0:V.value;R?R=R:R=void 0,o.push({key:{pageKey:t,parentTable:((H=R==null?void 0:R.key)==null?void 0:H.parentTable)??"",systemKey:(ee=F==null?void 0:F.key)==null?void 0:ee.systemKey,type:((W=R==null?void 0:R.key)==null?void 0:W.type)??((L=F==null?void 0:F.key)==null?void 0:L.type),version:1},value:Ql(F==null?void 0:F.value,R)})})}else(A=(S=s==null?void 0:s.data)==null?void 0:S.result)==null||A.forEach(x=>{var F,R,V;o.push({key:{pageKey:t,parentTable:(F=x==null?void 0:x.key)==null?void 0:F.parentTable,systemKey:(R=x==null?void 0:x.key)==null?void 0:R.systemKey,type:(V=x==null?void 0:x.key)==null?void 0:V.type,version:1},value:Xl(x==null?void 0:x.value)})});(w=(v=c==null?void 0:c.data)==null?void 0:v.result)==null||w.forEach(x=>{var F,R;o.push({key:{pageKey:t,systemKey:(F=x==null?void 0:x.key)==null?void 0:F.systemKey,type:(R=x==null?void 0:x.key)==null?void 0:R.type,version:1},value:x==null?void 0:x.value})}),o=o==null?void 0:o.map(x=>{var F,R,V;return((R=(F=x==null?void 0:x.value)==null?void 0:F.pageData)==null?void 0:R.comp)==="Form"&&(x.value.pageData.compData=(V=x.value.pageData.compData)==null?void 0:V.map(H=>{var ee;return(H==null?void 0:H.key)==="formContent"&&(H.contents=(ee=H.contents)==null?void 0:ee.map(W=>(n!=null&&n[W==null?void 0:W.key]&&(W.value=n[W.key]),W))),H}),r&&x.value.pageData.compData.push({key:"parentFormPath",contents:r})),x}),(o==null?void 0:o.length)>0&&await f.batchAddInsofDataApi({dataList:o});let h={};const d=await f.getInsofDataApi({key:{pageKey:t,type:"structure",systemKey:sessionStorage.getItem("systemKey")}});((C=(O=s==null?void 0:s.data)==null?void 0:O.result)==null?void 0:C.length)>0&&((k=(B=s==null?void 0:s.data)==null?void 0:B.result)==null||k.forEach(x=>{var F,R,V;h[x.id]=(V=(R=(F=d==null?void 0:d.data)==null?void 0:F.result)==null?void 0:R.find(H=>{var ee,W,L,ne;return((W=(ee=H==null?void 0:H.value)==null?void 0:ee.pageData)==null?void 0:W.name)===((ne=(L=x==null?void 0:x.value)==null?void 0:L.pageData)==null?void 0:ne.name)}))==null?void 0:V.id}));let p=[];(P=(M=u==null?void 0:u.data)==null?void 0:M.result)==null||P.forEach(x=>{var F,R,V;p.push({key:{pageKey:t,tableId:h[(F=x==null?void 0:x.key)==null?void 0:F.tableId],systemKey:(R=x==null?void 0:x.key)==null?void 0:R.systemKey,type:(V=x==null?void 0:x.key)==null?void 0:V.type},value:x==null?void 0:x.value})}),(p==null?void 0:p.length)>0&&await f.batchAddInsofDataApi({dataList:p})},ji=(e,t)=>{let n=f.cloneDeep(e);return n=n==null?void 0:n.map(i=>{var c,u,h;let o=[],s=[];for(let d in t)if(d!=null&&d.includes((u=(c=f.cloneDeep(i))==null?void 0:c.key)==null?void 0:u.pageKey)){let p=(h=t[d])==null?void 0:h.filter(m=>{var y,b,g;return((y=m==null?void 0:m.key)==null?void 0:y.type)==="data"&&((b=m==null?void 0:m.key)==null?void 0:b.tableId)===((g=f.cloneDeep(i))==null?void 0:g.id)});s=[...s,...p]}(s==null?void 0:s.length)>0&&(s==null||s.forEach(d=>{o.push(d.value.tableData)}));let a=f.cloneDeep(i).value.pageData.compData;return a.push({key:"tableContents",contents:o}),i.value.pageData.compData=a,i}),n},eu=(e,t)=>{if(!(e!=null&&e.includes("[")))return e;let n=e==null?void 0:e.replaceAll("[","").replaceAll("]","").split(":"),r=t==null?void 0:t.map(o=>{var s;return(s=o==null?void 0:o.value)==null?void 0:s.pageData}),i="";return r==null||r.forEach(o=>{var s;(o==null?void 0:o.name)===(n==null?void 0:n[0])&&((s=o==null?void 0:o.compData)==null||s.forEach(a=>{var c;(a==null?void 0:a.key)==="header"&&((c=a==null?void 0:a.contents)==null||c.forEach((u,h)=>{(u==null?void 0:u.prop)===(n==null?void 0:n[1])&&(i=h)}))}))}),i},tu=(e,t)=>{if(!(e!=null&&e.includes("[")))return e;let n=e==null?void 0:e.replaceAll("[","").replaceAll("]","").split(":"),r=t==null?void 0:t.map(o=>{var s;return(s=o==null?void 0:o.value)==null?void 0:s.pageData}),i="";return r==null||r.forEach(o=>{var s;(o==null?void 0:o.name)===(n==null?void 0:n[0])&&((s=o==null?void 0:o.compData)==null||s.forEach(a=>{var c;(a==null?void 0:a.key)==="formContent"&&((c=a==null?void 0:a.contents)==null||c.forEach(u=>{(u==null?void 0:u.prop)===(n==null?void 0:n[1])&&(i=u==null?void 0:u.value)}))}))}),i},Pr=(e,t,n,r)=>{var c,u,h;let i=(c=e==null?void 0:e[0])==null?void 0:c.formMenuSelect,o=e==null?void 0:e.map(d=>{var p,m;return(m=(p=d.groupSelect)==null?void 0:p.split(":"))==null?void 0:m[1]}),s="";i==null||i.forEach(d=>{s=s===""?s+d:s+"/"+d});let a=[];for(let d in t)if(d!=null&&d.includes(s)){let p=(u=t[d])==null?void 0:u.filter(m=>{var y,b;return((y=m==null?void 0:m.key)==null?void 0:y.type)==="structure"&&((b=m==null?void 0:m.key)==null?void 0:b.parentTable)===""});a=[...a,...p]}if((a==null?void 0:a.length)>0){let d=a==null?void 0:a.filter(g=>{var E,T,N;return((E=g==null?void 0:g.key)==null?void 0:E.pageKey)!==s&&((N=(T=g==null?void 0:g.value)==null?void 0:T.pageData)==null?void 0:N.comp)==="Form"}),p=a==null?void 0:a.filter(g=>{var E,T,N;return((E=g==null?void 0:g.key)==null?void 0:E.pageKey)!==s&&((N=(T=g==null?void 0:g.value)==null?void 0:T.pageData)==null?void 0:N.comp)==="Table"});p=ji(f.cloneDeep(p),t),d=[...f.cloneDeep(d),...p],d=d==null?void 0:d.map(g=>({[g.key.pageKey]:g}));let m=0;d=d.reduce((g,E)=>(Object.keys(E).forEach(T=>{g[T]||(g[T]=[],g[T].push({index:m})),g[T].push(E[T])}),m++,g),{});let y=(h=Object.values(d))==null?void 0:h.sort((g,E)=>{var S,A;let T=(S=g==null?void 0:g.find(v=>v==null?void 0:v.index))==null?void 0:S.index,N=(A=E==null?void 0:E.find(v=>v==null?void 0:v.index))==null?void 0:A.index;return T-N});d=y==null?void 0:y.map(g=>g==null?void 0:g.filter(E=>{var T,N,S,A;return!(E!=null&&E.index)&&(E==null?void 0:E.index)!==0&&!((N=(T=E==null?void 0:E.key)==null?void 0:T.pageKey)!=null&&N.includes("updateLoading"))&&!((A=(S=E==null?void 0:E.key)==null?void 0:S.pageKey)!=null&&A.includes("loading"))}));let b=[];if(d==null||d.forEach(g=>{var N,S,A,v,w,O,C,B,k,M;const E=g==null?void 0:g.find(P=>{var x,F,R,V,H;return((F=(x=P==null?void 0:P.value)==null?void 0:x.pageData)==null?void 0:F.name)===((H=(V=(R=e==null?void 0:e[0])==null?void 0:R.groupSelect)==null?void 0:V.split(":"))==null?void 0:H[0])});let T=(w=(v=(A=(S=(N=f.cloneDeep(E))==null?void 0:N.value)==null?void 0:S.pageData)==null?void 0:A.compData)==null?void 0:v.find(P=>(P==null?void 0:P.key)==="formContent"))==null?void 0:w.contents;if(T){let P=[];o==null||o.forEach((x,F)=>{var H,ee,W,L,ne,re;let R=g==null?void 0:g.find(Y=>{var _,z,Z,pe,ae;return((z=(_=Y==null?void 0:Y.value)==null?void 0:_.pageData)==null?void 0:z.name)===((ae=(pe=(Z=e==null?void 0:e[F])==null?void 0:Z.groupSelect)==null?void 0:pe.split(":"))==null?void 0:ae[0])}),V=(ne=(L=(W=(ee=(H=f.cloneDeep(R))==null?void 0:H.value)==null?void 0:ee.pageData)==null?void 0:W.compData)==null?void 0:L.find(Y=>(Y==null?void 0:Y.key)==="formContent"))==null?void 0:ne.contents;V!=null&&V.find(Y=>(Y==null?void 0:Y.key)===x)?P.push((re=V==null?void 0:V.find(Y=>(Y==null?void 0:Y.key)===x))==null?void 0:re.value):P.push("")}),b.push(P)}else T=(M=(k=(B=(C=(O=f.cloneDeep(E))==null?void 0:O.value)==null?void 0:C.pageData)==null?void 0:B.compData)==null?void 0:k.find(P=>(P==null?void 0:P.key)==="tableContents"))==null?void 0:M.contents,T==null||T.forEach(P=>{let x=[];o==null||o.forEach(F=>{P!=null&&P[F]&&x.push(P==null?void 0:P[F])}),b.push(x)})}),(n==null?void 0:n.length)>0){let g={};n==null||n.forEach(E=>{var T;for(let N in E){let S=f.cloneDeep(N);if(!(S!=null&&S.includes("[")))(T=E[N])!=null&&T.includes("[")||(g[S]=E[N]);else{let A=tu(S,t[r]),v=eu(E[N],t[r]);g[A]=v}}});for(let E in g)b=b==null?void 0:b.filter(T=>T[g[E]]===E)}return b}},nu=(e,t,n,r)=>{var a,c,u,h,d;let i=f.cloneDeep(e),o=t==null?void 0:t.map(p=>p==null?void 0:p.prop),s=[];for(let p in n)if(p!=null&&p.includes(i)){let m=(a=n[p])==null?void 0:a.filter(y=>{var b,g;return((b=y==null?void 0:y.key)==null?void 0:b.type)==="structure"&&((g=y==null?void 0:y.key)==null?void 0:g.parentTable)===""});s=[...s,...m]}if((s==null?void 0:s.length)>0){let p=s==null?void 0:s.filter(S=>{var A,v,w,O;return((A=S==null?void 0:S.key)==null?void 0:A.pageKey)!==i&&((w=(v=S==null?void 0:S.value)==null?void 0:v.pageData)==null?void 0:w.comp)==="Form"&&(S==null?void 0:S.key.pageKey.includes(i+"/"))&&!((O=S==null?void 0:S.key.pageKey)!=null&&O.includes("@"))}),m=s==null?void 0:s.filter(S=>{var A,v,w,O;return((A=S==null?void 0:S.key)==null?void 0:A.pageKey)!==i&&((w=(v=S==null?void 0:S.value)==null?void 0:v.pageData)==null?void 0:w.comp)==="Table"&&(S==null?void 0:S.key.pageKey.includes(i+"/"))&&!((O=S==null?void 0:S.key.pageKey)!=null&&O.includes("@"))});m=ji(f.cloneDeep(m),n),p=[...f.cloneDeep(p),...m],p=p==null?void 0:p.map(S=>({[S.key.pageKey]:S}));let y=0;p=p.reduce((S,A)=>(Object.keys(A).forEach(v=>{S[v]||(S[v]=[],S[v].push({index:y})),S[v].push(A[v])}),y++,S),{});let b=(c=Object.values(p))==null?void 0:c.sort((S,A)=>{var O,C;let v=(O=S==null?void 0:S.find(B=>B==null?void 0:B.index))==null?void 0:O.index,w=(C=A==null?void 0:A.find(B=>B==null?void 0:B.index))==null?void 0:C.index;return v-w});p=b==null?void 0:b.map(S=>S==null?void 0:S.filter(A=>!(A!=null&&A.index)&&(A==null?void 0:A.index)!==0));let g=(u=f.cloneDeep(p))==null?void 0:u.filter(S=>S==null?void 0:S.find(A=>{var v,w,O,C;return((C=(v=A==null?void 0:A.key)==null?void 0:v.pageKey)==null?void 0:C[((O=(w=A==null?void 0:A.key)==null?void 0:w.pageKey)==null?void 0:O.length)-1])==="/"}));p=p==null?void 0:p.filter(S=>!(S!=null&&S.find(A=>{var v,w,O,C,B,k,M,P;return((C=(v=A==null?void 0:A.key)==null?void 0:v.pageKey)==null?void 0:C[((O=(w=A==null?void 0:A.key)==null?void 0:w.pageKey)==null?void 0:O.length)-1])==="/"||((k=(B=A==null?void 0:A.key)==null?void 0:B.pageKey)==null?void 0:k.includes("updateLoading"))||((P=(M=A==null?void 0:A.key)==null?void 0:M.pageKey)==null?void 0:P.includes("loading"))})));let E=[],T=[];(h=g==null?void 0:g[0])==null||h.forEach(S=>{var A,v,w,O,C;((v=(A=S==null?void 0:S.value)==null?void 0:A.pageData)==null?void 0:v.comp)==="Form"&&((C=(O=(w=S==null?void 0:S.value)==null?void 0:w.pageData)==null?void 0:O.compData)==null||C.forEach(B=>{(B==null?void 0:B.key)==="formContent"&&(T=[...T,...B==null?void 0:B.contents])}))});let N=(d=T==null?void 0:T.find(S=>(S==null?void 0:S.isMain)===!0))==null?void 0:d.key;return p==null||p.forEach(S=>{let A=[];S==null||S.forEach(w=>{var O,C,B,k,M;((C=(O=w==null?void 0:w.value)==null?void 0:O.pageData)==null?void 0:C.comp)==="Form"&&((M=(k=(B=w==null?void 0:w.value)==null?void 0:B.pageData)==null?void 0:k.compData)==null||M.forEach(P=>{(P==null?void 0:P.key)==="formContent"&&(A=[...A,...P==null?void 0:P.contents])}))});let v=[];o==null||o.forEach(w=>{var O;v.push(((O=A==null?void 0:A.find(C=>(C==null?void 0:C.key)===w))==null?void 0:O.value)??"")}),E.push(v)}),(r==null?void 0:r.length)>0,{mainKey:N,tableContents:E}}},ru=async(e,t,n,r)=>{var s,a,c,u,h,d,p,m,y;let i=(a=(s=f.cloneDeep(e))==null?void 0:s.split("/"))==null?void 0:a[0],o=[];for(let b in r)if(b!=null&&b.includes(i)){let g=(c=r[b])==null?void 0:c.filter(E=>{var T,N;return((T=E==null?void 0:E.key)==null?void 0:T.type)==="structure"&&((N=E==null?void 0:E.key)==null?void 0:N.parentTable)===""});o=[...o,...g]}if((o==null?void 0:o.length)>0){let b=(d=(h=(u=o==null?void 0:o.filter(T=>{var N;return((N=T==null?void 0:T.key)==null?void 0:N.pageKey)===i}))==null?void 0:u[0])==null?void 0:h.key)==null?void 0:d.parentPageKey,g=[];for(let T in r)if(T!=null&&T.includes(b)){let N=(p=r[T])==null?void 0:p.filter(S=>{var A,v;return((A=S==null?void 0:S.key)==null?void 0:A.type)==="structure"&&((v=S==null?void 0:S.key)==null?void 0:v.parentTable)===""});g=[...g,...N]}let E="";if((g==null?void 0:g.length)>0){let T=[],N=(m=g==null?void 0:g.filter(B=>{var k,M,P,x,F,R;return((P=(M=(k=B==null?void 0:B.key)==null?void 0:k.pageKey)==null?void 0:M.split("/"))==null?void 0:P[0])===b&&((R=(F=(x=B==null?void 0:B.key)==null?void 0:x.pageKey)==null?void 0:F.split("/"))==null?void 0:R.length)===2}))==null?void 0:m.map(B=>{var k;return(k=B==null?void 0:B.key)==null?void 0:k.pageKey}),S=(y=f.cloneDeep(N))==null?void 0:y.map(async B=>{var F,R,V,H,ee,W,L,ne,re,Y,_,z,Z,pe,ae;let k=await Xe(B,sessionStorage.getItem("systemKey")),M=(H=(V=(R=(F=f.cloneDeep(k))==null?void 0:F[0])==null?void 0:R.compData)==null?void 0:V.find(j=>(j==null?void 0:j.key)==="tableContents"))==null?void 0:H.contents,P=(Y=(re=(ne=(L=(W=(ee=f.cloneDeep(k))==null?void 0:ee[0])==null?void 0:W.compData)==null?void 0:L.find(j=>(j==null?void 0:j.key)==="header"))==null?void 0:ne.contents)==null?void 0:re.filter(j=>(j==null?void 0:j.label)!=="操作"))==null?void 0:Y.map(j=>j==null?void 0:j.prop),x=[];return(ae=(pe=(Z=(z=(_=f.cloneDeep(k))==null?void 0:_[0])==null?void 0:z.compData)==null?void 0:Z.find(j=>(j==null?void 0:j.key)==="header"))==null?void 0:pe.contents)==null||ae.forEach(j=>{(j==null?void 0:j.isMainKey)===!0&&(E=j==null?void 0:j.prop)}),M==null||M.forEach(j=>{let we=et(j,P);x.push(we),T.push({key:we==null?void 0:we[E],routerContent:B})}),x}),A=await Promise.all(S),v=[];A==null||A.forEach(B=>{(B==null?void 0:B.length)>0&&(B==null||B.forEach(k=>{v.push(k)}))});let w=[];w=t==null?void 0:t.map(B=>{var M,P,x,F;let k={};for(let R in B)B[R].toUpperCase()==="@LOGINUSER"?k[R]=(M=Rt.value)!=null&&M.account?(P=Rt.value)==null?void 0:P.account:((x=Rt.value)==null?void 0:x.姓名)??((F=Rt.value)==null?void 0:F.账号):k[R]=B[R];return k});let O=[];v==null||v.forEach(B=>{let k=[];w==null||w.forEach(M=>{let P=[];for(let x in M)P.push(B[x]===M[x]);k.push(P)}),k.find(M=>M==null?void 0:M.every(P=>P===!0))&&O.push(B)});let C=[];return O==null||O.forEach(B=>{let k={};n==null||n.forEach(M=>{k[M.prop]=B[M.prop]??""}),C.push(k)}),C=C==null?void 0:C.map(B=>Object.values(B)),{mainKey:E,tableContents:C,mainKeys:T}}else return}else return},iu=async(e,t,n,r)=>{var o,s,a,c;let i=(o=f.cloneDeep(e))==null?void 0:o.filter(u=>(u==null?void 0:u.label)!=="操作");if((n==null?void 0:n.length)>0&&(i!=null&&i.every(u=>!(u!=null&&u.formMenuSelect)))){let u=await ru(t,n,i,r);return u&&((s=u==null?void 0:u.tableContents)==null?void 0:s.length)>0?u:[]}if(!(i!=null&&i.every(u=>{var h,d,p,m;return((h=u==null?void 0:u.formMenuSelect)==null?void 0:h.length)>0&&((p=(d=u==null?void 0:u.groupSelect)==null?void 0:d.split(":"))==null?void 0:p.length)>0||((m=u==null?void 0:u.formMenuGroup)==null?void 0:m.length)>0})))return nu(t,i,r,n);if(i!=null&&i.every(u=>!(u!=null&&u.formMenuGroup)))return Pr(i,r,n,t);{let u=[];(c=(a=i==null?void 0:i[0])==null?void 0:a.formMenuGroup)==null||c.forEach((m,y)=>{let b=[];i==null||i.forEach(g=>{var E,T,N,S,A,v;b.push({columnPath:g==null?void 0:g.columnPath,formMenuSelect:(N=((E=g==null?void 0:g.formMenuGroup)==null?void 0:E[y])??((T=g==null?void 0:g.formMenuGroup)==null?void 0:T[0]))==null?void 0:N.formMenuSelect,groupSelect:(v=((S=g==null?void 0:g.formMenuGroup)==null?void 0:S[y])??((A=g==null?void 0:g.formMenuGroup)==null?void 0:A[0]))==null?void 0:v.groupSelect,isRoute:g==null?void 0:g.isRoute,label:g==null?void 0:g.label,prop:g==null?void 0:g.label})}),u.push(b)});let h=[],p=u==null?void 0:u.map(async m=>Pr(m,r,n,t));return p==null||p.forEach(m=>{m==null||m.forEach(y=>{h.push(y)})}),h}};exports.CHANGE_EVENT=cn;exports.ElButton=vi;exports.ElButtonGroup=Ls;exports.ElFocusTrap=ci;exports.ElInput=ai;exports.ElMessageBox=wi;exports.ElOverlay=bi;exports.FOCUS_TRAP_INJECTION_KEY=li;exports.INPUT_EVENT=fn;exports.IsJson=aa;exports.PatchFlags=ut;exports.SetCache=ht;exports.State=Ml;exports.State$1=Za;exports.TinyColor=gi;exports.UPDATE_MODEL_EVENT=Mt;exports.addPathToTree=jt;exports.addTableContents=zl;exports.animateScrollTo=Ko;exports.baseFlatten=Tn;exports.baseIsEqual=wn;exports.buttonTypes=di;exports.cAF=Wr;exports.cacheHas=Hr;exports.convertArrayToTree=Mn;exports.decryptData=Zt;exports.deleteTableContents=Hl;exports.encryptData=bn;exports.ensureOnlyChild=Us;exports.filterContents=ql;exports.fixFormContents=Ul;exports.fixTableContents=$l;exports.flatRest=_r;exports.flattedChildren=at;exports.flatten=Lr;exports.focusNode=Qo;exports.formContextKey=zt;exports.formItemContextKey=Dn;exports.generateKeyPair=El;exports.getActivePageStructureId=Vi;exports.getAllLeafNodes=Yl;exports.getColumnChild=Sn;exports.getColumnContents=_e;exports.getFirstArrayProperty=Nn;exports.getFormContents=ca;exports.getGradeColumns=Zl;exports.getItemData=Xe;exports.getLeafNodesRecursive=Pn;exports.getNormalizedProps=$s;exports.getParentConstruct=Sa;exports.getParentContents=fa;exports.getParentKey=Ea;exports.getScrollBarWidth=Yr;exports.getScrollContainer=Vo;exports.getScrollElement=Lo;exports.getScrollTop=_o;exports.getSibling=Xo;exports.getTableContents=Le;exports.getTableFormToForm=Jl;exports.getValueToObjectValue=et;exports.groupByField=On;exports.handleRowAuthorityRender=Vn;exports.handleSubmitAsync=Je;exports.hasIn=Ur;exports.identity=Vr;exports.inputProps=Xr;exports.isEqual=qr;exports.isFirefox=Zr;exports.isFocusable=$t;exports.isFragment=mi;exports.isLeaf=ri;exports.isValidComponentSize=Ti;exports.isValidElementNode=zs;exports.loadingConstruct=qi;exports.loadingSystemType=jl;exports.methodTableToContent=ua;exports.overRest=Kr;exports.pick=jr;exports.rAF=Gr;exports.resetPassword=pt;exports.scrollIntoView=Fo;exports.setToArray=$r;exports.setToString=Fr;exports.submitTableAsyncByVerify=Jt;exports.tableEveryContents=ba;exports.tableToContents=da;exports.tableToStruct=ha;exports.triggerEvent=Jo;exports.tryFocus=ke;exports.useAriaProps=Jr;exports.useAttrs=Qr;exports.useAuthorityState=xn;exports.useComposition=oi;exports.useDeprecated=hi;exports.useDraggable=Ei;exports.useFocusController=ii;exports.useFormDisabled=gt;exports.useFormItem=An;exports.useFormItemInputId=ti;exports.useFormSize=kn;exports.useId=Ot;exports.useIdInjection=ei;exports.useLockscreen=Si;exports.useMenuState=yt;exports.useModelComp=qt;exports.useSameTarget=Bn;