ss-component-new 1.2.331 → 1.2.333

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 (123) hide show
  1. package/dist/{MTLLoader-wwr1B193.cjs → MTLLoader-C9zwOo5R.cjs} +1 -1
  2. package/dist/{MTLLoader-Cp2efv7h.js → MTLLoader-DEhuJ8cA.js} +1 -1
  3. package/dist/{OrbitControls-Dk0u7TVO.cjs → OrbitControls-CrWBKSTk.cjs} +1 -1
  4. package/dist/{OrbitControls-RSLz2S0b.js → OrbitControls-hKxTuAne.js} +1 -1
  5. package/dist/{URDFLoader-CkO4RJLO.cjs → URDFLoader-BHqq00po.cjs} +1 -1
  6. package/dist/{URDFLoader-BpUMfsF6.js → URDFLoader-BU46gp7K.js} +2 -2
  7. package/dist/{animationData-C7ciTI7m.js → animationData-BbL90xGU.js} +2 -2
  8. package/dist/{animationData-BoxVqycf.cjs → animationData-BpQQZnbj.cjs} +1 -1
  9. package/dist/array-CbS69fPx.cjs +1 -0
  10. package/dist/{array-CVIR-i--.js → array-g-BzIhKE.js} +12 -12
  11. package/dist/{iconfont-C2QDZzSl.js → iconfont-gpkjnIRx.js} +2 -2
  12. package/dist/{iconfont-TZ8GIkZM.cjs → iconfont-m2r8ESph.cjs} +1 -1
  13. package/dist/{index-Bp1PEp0W.js → index-1ax1erqY.js} +5 -5
  14. package/dist/{index-DfZf-0j4.js → index-4cqyGWUU.js} +2 -2
  15. package/dist/{index-BFxYIpIU.js → index-95RC0SB0.js} +8 -9
  16. package/dist/{index-Bog5kQji.js → index-B0lFT37d.js} +1 -1
  17. package/dist/{index-081NeEuV.cjs → index-B4XQbv4q.cjs} +1 -1
  18. package/dist/index-BDGC3yIw.cjs +42 -0
  19. package/dist/index-BGP7aEbi.cjs +1 -0
  20. package/dist/{index-CiO2uT4E.cjs → index-BHaaYQfC.cjs} +12 -12
  21. package/dist/{index-CkO99t26.cjs → index-BQTrub6X.cjs} +1 -1
  22. package/dist/{index-BGmdJ8Zg.js → index-BS0-LNeC.js} +7 -7
  23. package/dist/{index-Bos1deWK.cjs → index-BV6P_J2D.cjs} +1 -1
  24. package/dist/{index-DPeOjfU1.cjs → index-BWIBX9Sl.cjs} +1 -1
  25. package/dist/index-BfeqiijR.cjs +1 -0
  26. package/dist/{index-CzKMGoa-.js → index-Bh66WJwb.js} +15 -15
  27. package/dist/{index-DRvE5S23.js → index-BqjG1Y2Y.js} +16 -17
  28. package/dist/{index-BWBPdata.cjs → index-C6K5EORF.cjs} +1 -1
  29. package/dist/index-C9a63MeW.cjs +13 -0
  30. package/dist/index-CEhfRVcG.cjs +1 -0
  31. package/dist/index-CErvylUA.cjs +1 -0
  32. package/dist/{index-DkIWU9Bu.js → index-CGefc7Ak.js} +769 -766
  33. package/dist/{index-uN57qZre.cjs → index-CHxsrbXy.cjs} +1 -1
  34. package/dist/{index-B2GT4T1e.cjs → index-CIybeMPI.cjs} +1 -1
  35. package/dist/index-CKgsrRZt.js +10442 -0
  36. package/dist/{index-i5Ue_JoA.cjs → index-CKwnphQR.cjs} +1 -1
  37. package/dist/{index-C2_KHquo.js → index-CM-E1W8F.js} +7 -7
  38. package/dist/{index-DEF6SrBV.js → index-CUNUX64A.js} +4 -4
  39. package/dist/{index-BGB8AN7S.js → index-CXx07mqc.js} +38 -38
  40. package/dist/{index-X2bwtZbV.js → index-CbJ39TR9.js} +14 -14
  41. package/dist/index-Cbp2cz1D.cjs +1 -0
  42. package/dist/index-CdqgG6z_.cjs +1 -0
  43. package/dist/{index-B_SWTmBD.cjs → index-Cexe1_nR.cjs} +1 -1
  44. package/dist/{index-DdBe7pKL.cjs → index-Cgt2DO86.cjs} +1 -1
  45. package/dist/{index-DHf9fOS7.js → index-Ch1TDVys.js} +18 -18
  46. package/dist/{index-DkEJVaAX.js → index-ChKY9Q_c.js} +8 -8
  47. package/dist/index-Cp8dl8Y4.cjs +1 -0
  48. package/dist/{index-CkUnZ2se.cjs → index-CzrqxMQq.cjs} +1 -1
  49. package/dist/{index-DSt_Eqwk.js → index-D-v_mH2L.js} +326 -326
  50. package/dist/{index-D3oj5RSK.js → index-D7Ejivyg.js} +12 -12
  51. package/dist/{index-DU4iimmS.cjs → index-D7p_01Bm.cjs} +1 -1
  52. package/dist/{index-u30t7l7e.js → index-DAw-JFPy.js} +4 -4
  53. package/dist/{index-DVf8au0C.cjs → index-DJMikZ6m.cjs} +1 -1
  54. package/dist/{index-Dw0CPCgX.js → index-DJv0U7ep.js} +8 -8
  55. package/dist/index-DL-scY6_.js +8211 -0
  56. package/dist/index-DRjfXii0.cjs +1 -0
  57. package/dist/{index-Z8iuWbfd.js → index-DhBrMxH5.js} +2 -2
  58. package/dist/index-DjOAHJHD.cjs +11 -0
  59. package/dist/{index-CY36YclZ.js → index-DkGjjjvX.js} +51 -51
  60. package/dist/{index-TdIk51gx.js → index-Du5EVvZy.js} +1 -1
  61. package/dist/{index-BqAHAwh3.js → index-FTgRHaEc.js} +2 -2
  62. package/dist/{index-CF2oTbnv.js → index-HoGtZJB5.js} +2 -2
  63. package/dist/{index-CRhbl-Xs.cjs → index-L3o91yA1.cjs} +1 -1
  64. package/dist/{index-H-RrS-FV.js → index-N7UyY0Cn.js} +8 -9
  65. package/dist/{index-BAnu2IcW.js → index-OmrdMljT.js} +36 -37
  66. package/dist/{index-DKKKZSMe.cjs → index-V1en5J1m.cjs} +1 -1
  67. package/dist/index-cGDJIpua.cjs +11 -0
  68. package/dist/{index-CDseWBxW.js → index-ihdYLrfi.js} +13 -13
  69. package/dist/{index-Bg3lrziJ.js → index-mhd92owW.js} +1 -1
  70. package/dist/index-xkAnmSfa.cjs +1 -0
  71. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BDXu7acs.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BYcd0jgi.cjs} +147 -147
  72. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BXs-wWd7.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CUjt37hI.js} +14 -14
  73. package/dist/index.vue_vue_type_style_index_1_lang-D3aPbrch.cjs +3 -0
  74. package/dist/{index.vue_vue_type_style_index_1_lang-BzNe13gn.js → index.vue_vue_type_style_index_1_lang-D4T1pSpg.js} +8 -8
  75. package/dist/{isString-DDsphIfV.cjs → isString-BM0aTbV9.cjs} +1 -1
  76. package/dist/{isString-D0BsYbM3.js → isString-DkWdJm3P.js} +1 -1
  77. package/dist/main-BAe55yT4.cjs +11 -0
  78. package/dist/{main-BEgGvauC.js → main-DLYiVNbO.js} +9 -10
  79. package/dist/{menuIndex-BLcswWB-.js → menuIndex-4B2w4mPA.js} +1 -1
  80. package/dist/{menuIndex-bwSbtzjl.cjs → menuIndex-CJYZx11j.cjs} +1 -1
  81. package/dist/ss-component.cjs +1 -1
  82. package/dist/ss-component.css +1 -1
  83. package/dist/ss-component.js +11 -11
  84. package/dist/ss-component2.cjs +1 -1
  85. package/dist/ss-component2.js +12 -12
  86. package/dist/{threeModel-CsoaXy4U.cjs → threeModel-5zOGJMgA.cjs} +1 -1
  87. package/dist/{threeModel-o-U3qE_Y.js → threeModel-CGM-saVm.js} +6 -6
  88. package/dist/{threePreview-B9pRhKDM.js → threePreview-BRK8_lKV.js} +7 -6
  89. package/dist/threePreview-BkKC0IgX.cjs +1 -0
  90. package/dist/{threeSceneView-DRPX8OYV.js → threeSceneView-5V5smS73.js} +53 -53
  91. package/dist/{threeSceneView-DN8Xyzfv.cjs → threeSceneView-BCQKeoTk.cjs} +1 -1
  92. package/dist/{threeSceneViewForCPMPIP-BCTxqfOq.cjs → threeSceneViewForCPMPIP-DVqwxUS8.cjs} +1 -1
  93. package/dist/{threeSceneViewForCPMPIP-B_SeEcU9.js → threeSceneViewForCPMPIP-DqG9ZYEL.js} +15 -15
  94. package/dist/threeTrackPathView-BrBEbTGo.cjs +1 -0
  95. package/dist/{threeTrackPathView-C-bjSsJM.js → threeTrackPathView-CBKRfkly.js} +8 -7
  96. package/dist/{threeViewerHost-irhPdb16.js → threeViewerHost-CTAXJC99.js} +10 -11
  97. package/dist/threeViewerHost-QHAFlASe.cjs +1 -0
  98. package/dist/{urdfTree-5g-HLyvW.js → urdfTree-DAM1Wv4K.js} +1 -1
  99. package/dist/{urdfTree-S5yUGyZL.cjs → urdfTree-DNQtn8Y5.cjs} +1 -1
  100. package/dist/{workpieceTreePanel-BaLWAZDy.js → workpieceTreePanel-B8WM9_Wb.js} +4 -4
  101. package/dist/{workpieceTreePanel-hlLH8y_h.cjs → workpieceTreePanel-DKMsi2D-.cjs} +1 -1
  102. package/package.json +1 -1
  103. package/dist/array-Bi-wunyk.cjs +0 -1
  104. package/dist/index-BEqVDCR5.cjs +0 -1
  105. package/dist/index-BVMFNtUY.cjs +0 -11
  106. package/dist/index-BV_kcZph.js +0 -12765
  107. package/dist/index-Bc85VROV.cjs +0 -32
  108. package/dist/index-BhpB-M-v.cjs +0 -13
  109. package/dist/index-BxQs7JCB.cjs +0 -1
  110. package/dist/index-CQ5cuVUq.cjs +0 -1
  111. package/dist/index-CjrO5PEa.cjs +0 -1
  112. package/dist/index-CoaLtkUJ.cjs +0 -1
  113. package/dist/index-Df5Gg8qa.cjs +0 -1
  114. package/dist/index-DmDnw4T-.cjs +0 -1
  115. package/dist/index-UbLqf_y6.cjs +0 -1
  116. package/dist/index-cx0rUqLg.js +0 -5929
  117. package/dist/index-k04UdLA7.cjs +0 -1
  118. package/dist/index-pSTYzLRc.cjs +0 -21
  119. package/dist/index.vue_vue_type_style_index_1_lang-OiQttjIF.cjs +0 -3
  120. package/dist/main-BDV5VAB6.cjs +0 -11
  121. package/dist/threePreview-CGRM7OHr.cjs +0 -1
  122. package/dist/threeTrackPathView-Dkc-x5Po.cjs +0 -1
  123. package/dist/threeViewerHost-e0FA2tJj.cjs +0 -1
@@ -1,32 +0,0 @@
1
- "use strict";const o=require("vue"),f=require("./index-pSTYzLRc.cjs");function Er(e){return e}var kt=f.getNative(f.root,"WeakMap"),xn=Object.create,Ps=function(){function e(){}return function(t){if(!f.isObject(t))return{};if(xn)return xn(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Vs(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 Ls=800,_s=16,Fs=Date.now;function $s(e){var t=0,n=0;return function(){var r=Fs(),s=_s-(r-n);if(n=r,s>0){if(++t>=Ls)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function js(e){return function(){return e}}var rt=function(){try{var e=f.getNative(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Hs=rt?function(e,t){return rt(e,"toString",{configurable:!0,enumerable:!1,value:js(t),writable:!0})}:Er,wr=$s(Hs);function Ks(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Us=9007199254740991,zs=/^(?:0|[1-9]\d*)$/;function ut(e,t){var n=typeof e;return t=t??Us,!!t&&(n=="number"||n!="symbol"&&zs.test(e))&&e>-1&&e%1==0&&e<t}function Cr(e,t,n){t=="__proto__"&&rt?rt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var qs=Object.prototype,Gs=qs.hasOwnProperty;function Gt(e,t,n){var r=e[t];(!(Gs.call(e,t)&&f.eq(r,n))||n===void 0&&!(t in e))&&Cr(e,t,n)}var Bn=Math.max;function Ar(e,t,n){return t=Bn(t===void 0?e.length-1:t,0),function(){for(var r=arguments,s=-1,i=Bn(r.length-t,0),u=Array(i);++s<i;)u[s]=r[t+s];s=-1;for(var a=Array(t+1);++s<t;)a[s]=r[s];return a[t]=n(u),Vs(e,this,a)}}var Ws=9007199254740991;function Wt(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ws}function xr(e){return e!=null&&Wt(e.length)&&!f.isFunction(e)}var Ys=Object.prototype;function Yt(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Ys;return e===n}function Zs(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Xs="[object Arguments]";function Dn(e){return f.isObjectLike(e)&&f.baseGetTag(e)==Xs}var Br=Object.prototype,Js=Br.hasOwnProperty,Qs=Br.propertyIsEnumerable,lt=Dn(function(){return arguments}())?Dn:function(e){return f.isObjectLike(e)&&Js.call(e,"callee")&&!Qs.call(e,"callee")};function ei(){return!1}var Dr=typeof exports=="object"&&exports&&!exports.nodeType&&exports,In=Dr&&typeof module=="object"&&module&&!module.nodeType&&module,ti=In&&In.exports===Dr,kn=ti?f.root.Buffer:void 0,ni=kn?kn.isBuffer:void 0,Zt=ni||ei,ri="[object Arguments]",si="[object Array]",ii="[object Boolean]",oi="[object Date]",ai="[object Error]",ui="[object Function]",li="[object Map]",ci="[object Number]",fi="[object Object]",hi="[object RegExp]",di="[object Set]",pi="[object String]",vi="[object WeakMap]",gi="[object ArrayBuffer]",yi="[object DataView]",bi="[object Float32Array]",mi="[object Float64Array]",Si="[object Int8Array]",Ti="[object Int16Array]",Ei="[object Int32Array]",wi="[object Uint8Array]",Ci="[object Uint8ClampedArray]",Ai="[object Uint16Array]",xi="[object Uint32Array]",I={};I[bi]=I[mi]=I[Si]=I[Ti]=I[Ei]=I[wi]=I[Ci]=I[Ai]=I[xi]=!0;I[ri]=I[si]=I[gi]=I[ii]=I[yi]=I[oi]=I[ai]=I[ui]=I[li]=I[ci]=I[fi]=I[hi]=I[di]=I[pi]=I[vi]=!1;function Bi(e){return f.isObjectLike(e)&&Wt(e.length)&&!!I[f.baseGetTag(e)]}function ct(e){return function(t){return e(t)}}var Ir=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Pe=Ir&&typeof module=="object"&&module&&!module.nodeType&&module,Di=Pe&&Pe.exports===Ir,mt=Di&&f.freeGlobal.process,fe=function(){try{var e=Pe&&Pe.require&&Pe.require("util").types;return e||mt&&mt.binding&&mt.binding("util")}catch{}}(),Mn=fe&&fe.isTypedArray,kr=Mn?ct(Mn):Bi,Ii=Object.prototype,ki=Ii.hasOwnProperty;function Mr(e,t){var n=f.isArray(e),r=!n&&lt(e),s=!n&&!r&&Zt(e),i=!n&&!r&&!s&&kr(e),u=n||r||s||i,a=u?Zs(e.length,String):[],l=a.length;for(var c in e)(t||ki.call(e,c))&&!(u&&(c=="length"||s&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||ut(c,l)))&&a.push(c);return a}function Rr(e,t){return function(n){return e(t(n))}}var Mi=Rr(Object.keys,Object),Ri=Object.prototype,Oi=Ri.hasOwnProperty;function Ni(e){if(!Yt(e))return Mi(e);var t=[];for(var n in Object(e))Oi.call(e,n)&&n!="constructor"&&t.push(n);return t}function Pi(e){return xr(e)?Mr(e):Ni(e)}function Or(e,t){for(var n=-1,r=t.length,s=e.length;++n<r;)e[s+n]=t[n];return e}var Rn=f.Symbol?f.Symbol.isConcatSpreadable:void 0;function Vi(e){return f.isArray(e)||lt(e)||!!(Rn&&e&&e[Rn])}function Li(e,t,n,r,s){var i=-1,u=e.length;for(n||(n=Vi),s||(s=[]);++i<u;){var a=e[i];n(a)?Or(s,a):s[s.length]=a}return s}function _i(e){var t=e==null?0:e.length;return t?Li(e):[]}function Fi(e){return wr(Ar(e,void 0,_i),e+"")}var Nr=Rr(Object.getPrototypeOf,Object);function $i(){this.__data__=new f.ListCache,this.size=0}function ji(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Hi(e){return this.__data__.get(e)}function Ki(e){return this.__data__.has(e)}var Ui=200;function zi(e,t){var n=this.__data__;if(n instanceof f.ListCache){var r=n.__data__;if(!f.Map||r.length<Ui-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new f.MapCache(r)}return n.set(e,t),this.size=n.size,this}function de(e){var t=this.__data__=new f.ListCache(e);this.size=t.size}de.prototype.clear=$i;de.prototype.delete=ji;de.prototype.get=Hi;de.prototype.has=Ki;de.prototype.set=zi;var Pr=typeof exports=="object"&&exports&&!exports.nodeType&&exports,On=Pr&&typeof module=="object"&&module&&!module.nodeType&&module,qi=On&&On.exports===Pr,Nn=qi?f.root.Buffer:void 0,Pn=Nn?Nn.allocUnsafe:void 0;function Vr(e,t){if(t)return e.slice();var n=e.length,r=Pn?Pn(n):new e.constructor(n);return e.copy(r),r}function Gi(e,t){for(var n=-1,r=e==null?0:e.length,s=0,i=[];++n<r;){var u=e[n];t(u,n,e)&&(i[s++]=u)}return i}function Wi(){return[]}var Yi=Object.prototype,Zi=Yi.propertyIsEnumerable,Vn=Object.getOwnPropertySymbols,Xi=Vn?function(e){return e==null?[]:(e=Object(e),Gi(Vn(e),function(t){return Zi.call(e,t)}))}:Wi;function Ji(e,t,n){var r=t(e);return f.isArray(e)?r:Or(r,n(e))}function Lr(e){return Ji(e,Pi,Xi)}var Mt=f.getNative(f.root,"DataView"),Rt=f.getNative(f.root,"Promise"),Ot=f.getNative(f.root,"Set"),Ln="[object Map]",Qi="[object Object]",_n="[object Promise]",Fn="[object Set]",$n="[object WeakMap]",jn="[object DataView]",eo=f.toSource(Mt),to=f.toSource(f.Map),no=f.toSource(Rt),ro=f.toSource(Ot),so=f.toSource(kt);exports.getTag=f.baseGetTag;(Mt&&exports.getTag(new Mt(new ArrayBuffer(1)))!=jn||f.Map&&exports.getTag(new f.Map)!=Ln||Rt&&exports.getTag(Rt.resolve())!=_n||Ot&&exports.getTag(new Ot)!=Fn||kt&&exports.getTag(new kt)!=$n)&&(exports.getTag=function(e){var t=f.baseGetTag(e),n=t==Qi?e.constructor:void 0,r=n?f.toSource(n):"";if(r)switch(r){case eo:return jn;case to:return Ln;case no:return _n;case ro:return Fn;case so:return $n}return t});var io=Object.prototype,oo=io.hasOwnProperty;function ao(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&oo.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Nt=f.root.Uint8Array;function Xt(e){var t=new e.constructor(e.byteLength);return new Nt(t).set(new Nt(e)),t}function uo(e,t){var n=Xt(e.buffer);return new e.constructor(n,e.byteOffset,e.byteLength)}var lo=/\w*$/;function co(e){var t=new e.constructor(e.source,lo.exec(e));return t.lastIndex=e.lastIndex,t}var Hn=f.Symbol?f.Symbol.prototype:void 0,Kn=Hn?Hn.valueOf:void 0;function fo(e){return Kn?Object(Kn.call(e)):{}}function _r(e,t){var n=t?Xt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var ho="[object Boolean]",po="[object Date]",vo="[object Map]",go="[object Number]",yo="[object RegExp]",bo="[object Set]",mo="[object String]",So="[object Symbol]",To="[object ArrayBuffer]",Eo="[object DataView]",wo="[object Float32Array]",Co="[object Float64Array]",Ao="[object Int8Array]",xo="[object Int16Array]",Bo="[object Int32Array]",Do="[object Uint8Array]",Io="[object Uint8ClampedArray]",ko="[object Uint16Array]",Mo="[object Uint32Array]";function Ro(e,t,n){var r=e.constructor;switch(t){case To:return Xt(e);case ho:case po:return new r(+e);case Eo:return uo(e);case wo:case Co:case Ao:case xo:case Bo:case Do:case Io:case ko:case Mo:return _r(e,n);case vo:return new r;case go:case mo:return new r(e);case yo:return co(e);case bo:return new r;case So:return fo(e)}}function Fr(e){return typeof e.constructor=="function"&&!Yt(e)?Ps(Nr(e)):{}}var Oo="[object Map]";function No(e){return f.isObjectLike(e)&&exports.getTag(e)==Oo}var Un=fe&&fe.isMap,Po=Un?ct(Un):No,Vo="[object Set]";function Lo(e){return f.isObjectLike(e)&&exports.getTag(e)==Vo}var zn=fe&&fe.isSet,_o=zn?ct(zn):Lo,Fo=1,$r="[object Arguments]",$o="[object Array]",jo="[object Boolean]",Ho="[object Date]",Ko="[object Error]",jr="[object Function]",Uo="[object GeneratorFunction]",zo="[object Map]",qo="[object Number]",Hr="[object Object]",Go="[object RegExp]",Wo="[object Set]",Yo="[object String]",Zo="[object Symbol]",Xo="[object WeakMap]",Jo="[object ArrayBuffer]",Qo="[object DataView]",ea="[object Float32Array]",ta="[object Float64Array]",na="[object Int8Array]",ra="[object Int16Array]",sa="[object Int32Array]",ia="[object Uint8Array]",oa="[object Uint8ClampedArray]",aa="[object Uint16Array]",ua="[object Uint32Array]",D={};D[$r]=D[$o]=D[Jo]=D[Qo]=D[jo]=D[Ho]=D[ea]=D[ta]=D[na]=D[ra]=D[sa]=D[zo]=D[qo]=D[Hr]=D[Go]=D[Wo]=D[Yo]=D[Zo]=D[ia]=D[oa]=D[aa]=D[ua]=!0;D[Ko]=D[jr]=D[Xo]=!1;function Qe(e,t,n,r,s,i){var u,a=t&Fo;if(u!==void 0)return u;if(!f.isObject(e))return e;var l=f.isArray(e);if(l)u=ao(e);else{var c=exports.getTag(e),d=c==jr||c==Uo;if(Zt(e))return Vr(e,a);if(c==Hr||c==$r||d&&!s)u=d?{}:Fr(e);else{if(!D[c])return s?e:{};u=Ro(e,c,a)}}i||(i=new de);var p=i.get(e);if(p)return p;i.set(e,u),_o(e)?e.forEach(function(h){u.add(Qe(h,t,n,h,e,i))}):Po(e)&&e.forEach(function(h,m){u.set(m,Qe(h,t,n,m,e,i))});var b=Lr,g=l?void 0:b(e);return Ks(g||e,function(h,m){g&&(m=h,h=e[m]),Gt(u,m,Qe(h,t,n,m,e,i))}),u}var la=1,ca=4;function ae(e){return Qe(e,la|ca)}function fa(e,t){return e!=null&&t in Object(e)}function ha(e,t,n){t=f.castPath(t,e);for(var r=-1,s=t.length,i=!1;++r<s;){var u=f.toKey(t[r]);if(!(i=e!=null&&n(e,u)))break;e=e[u]}return i||++r!=s?i:(s=e==null?0:e.length,!!s&&Wt(s)&&ut(u,s)&&(f.isArray(e)||lt(e)))}function da(e,t){return e!=null&&ha(e,t,fa)}function Jt(e){return e==null}function pa(e,t,n,r){if(!f.isObject(e))return e;t=f.castPath(t,e);for(var s=-1,i=t.length,u=i-1,a=e;a!=null&&++s<i;){var l=f.toKey(t[s]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(s!=u){var d=a[l];c=void 0,c===void 0&&(c=f.isObject(d)?d:ut(t[s+1])?[]:{})}Gt(a,l,c),a=a[l]}return e}function va(e,t,n){for(var r=-1,s=t.length,i={};++r<s;){var u=t[r],a=f.baseGet(e,u);n(a,u)&&pa(i,f.castPath(u,e),a)}return i}function ga(e,t){return va(e,t,function(n,r){return da(e,r)})}var ya=Fi(function(e,t){return e==null?{}:ga(e,t)});const Pt="update:modelValue",qn="change",Gn="input";let je;const ba=e=>{var t;if(!f.isClient)return 0;if(je!==void 0)return je;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 s=document.createElement("div");s.style.width="100%",n.appendChild(s);const i=s.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),je=r-i,je},ma=()=>f.isClient&&/firefox/i.test(window.navigator.userAgent);let z;const Sa={height:"0",visibility:"hidden",overflow:ma()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},Ta=["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 Ea(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),s=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:Ta.map(u=>[u,t.getPropertyValue(u)]),paddingSize:r,borderSize:s,boxSizing:n}}function Wn(e,t=1,n){var r;z||(z=document.createElement("textarea"),document.body.appendChild(z));const{paddingSize:s,borderSize:i,boxSizing:u,contextStyle:a}=Ea(e);a.forEach(([p,b])=>z==null?void 0:z.style.setProperty(p,b)),Object.entries(Sa).forEach(([p,b])=>z==null?void 0:z.style.setProperty(p,b,"important")),z.value=e.value||e.placeholder||"";let l=z.scrollHeight;const c={};u==="border-box"?l=l+i:u==="content-box"&&(l=l-s),z.value="";const d=z.scrollHeight-s;if(f.isNumber(t)){let p=d*t;u==="border-box"&&(p=p+s+i),l=Math.max(p,l),c.minHeight=`${p}px`}if(f.isNumber(n)){let p=d*n;u==="border-box"&&(p=p+s+i),l=Math.min(p,l)}return c.height=`${l}px`,(r=z.parentNode)==null||r.removeChild(z),z=void 0,c}const wa=f.buildProps({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Ca=e=>ya(wa,e),Aa=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},...Ca(["ariaLabel"])}),xa={[Pt]: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},Ba=["class","style"],Da=/^on[A-Z]/,Ia=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=o.computed(()=>((n==null?void 0:n.value)||[]).concat(Ba)),s=o.getCurrentInstance();return s?o.computed(()=>{var i;return f.fromPairs(Object.entries((i=s.proxy)==null?void 0:i.$attrs).filter(([u])=>!r.value.includes(u)&&!(t&&Da.test(u))))}):(f.debugWarn("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),o.computed(()=>({})))},Vt={prefix:Math.floor(Math.random()*1e4),current:0},ka=Symbol("elIdInjection"),Ma=()=>o.getCurrentInstance()?o.inject(ka,Vt):Vt,Lt=e=>{const t=Ma();!f.isClient&&t===Vt&&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(()=>o.unref(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},Qt=Symbol("formContextKey"),Kr=Symbol("formItemContextKey"),Ur=()=>{const e=o.inject(Qt,void 0),t=o.inject(Kr,void 0);return{form:e,formItem:t}},Ra=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=o.ref(!1)),r||(r=o.ref(!1));const s=o.ref();let i;const u=o.computed(()=>{var a;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((a=t.inputIds)==null?void 0:a.length)<=1)});return o.onMounted(()=>{i=o.watch([o.toRef(e,"id"),n],([a,l])=>{const c=a??(l?void 0:Lt().value);c!==s.value&&(t!=null&&t.removeInputId&&(s.value&&t.removeInputId(s.value),!(r!=null&&r.value)&&!l&&c&&t.addInputId(c)),s.value=c)},{immediate:!0})}),o.onUnmounted(()=>{i&&i(),t!=null&&t.removeInputId&&s.value&&t.removeInputId(s.value)}),{isLabeledByFormItem:u,inputId:s}},zr=e=>{const t=o.getCurrentInstance();return o.computed(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})},qr=(e,t={})=>{const n=o.ref(void 0),r=t.prop?n:zr("size"),s=t.global?n:f.useGlobalSize(),i=t.form?{size:void 0}:o.inject(Qt,void 0),u=t.formItem?{size:void 0}:o.inject(Kr,void 0);return o.computed(()=>r.value||o.unref(e)||(u==null?void 0:u.size)||(i==null?void 0:i.size)||s.value||"")},ft=e=>{const t=zr("disabled"),n=o.inject(Qt,void 0);return o.computed(()=>t.value||o.unref(e)||(n==null?void 0:n.disabled)||!1)},Oa='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',Na=e=>process.env.NODE_ENV==="test"?!0:getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,Yn=e=>Array.from(e.querySelectorAll(Oa)).filter(t=>en(t)&&Na(t)),en=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}};function Pa(e,{beforeFocus:t,afterFocus:n,beforeBlur:r,afterBlur:s}={}){const i=o.getCurrentInstance(),{emit:u}=i,a=o.shallowRef(),l=ft(),c=o.ref(!1),d=g=>{f.isFunction$1(t)&&t(g)||c.value||(c.value=!0,u("focus",g),n==null||n())},p=g=>{var h;f.isFunction$1(r)&&r(g)||g.relatedTarget&&((h=a.value)!=null&&h.contains(g.relatedTarget))||(c.value=!1,u("blur",g),s==null||s())},b=g=>{var h,m;(h=a.value)!=null&&h.contains(document.activeElement)&&a.value!==document.activeElement||en(g.target)||l.value||(m=e.value)==null||m.focus()};return o.watch([a,l],([g,h])=>{g&&(h?g.removeAttribute("tabindex"):g.setAttribute("tabindex","-1"))}),f.useEventListener(a,"focus",d,!0),f.useEventListener(a,"blur",p,!0),f.useEventListener(a,"click",b,!0),process.env.NODE_ENV==="test"&&o.onMounted(()=>{const g=f.isElement(e.value)?e.value:document.querySelector("input,textarea");g&&(f.useEventListener(g,"focus",d,!0),f.useEventListener(g,"blur",p,!0))}),{isFocused:c,wrapperRef:a,handleFocus:d,handleBlur:p}}const Va=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e);function La({afterComposition:e,emit:t}){const n=o.ref(!1),r=a=>{t==null||t("compositionstart",a),n.value=!0},s=a=>{var l;t==null||t("compositionupdate",a);const c=(l=a.target)==null?void 0:l.value,d=c[c.length-1]||"";n.value=!Va(d)},i=a=>{t==null||t("compositionend",a),n.value&&(n.value=!1,o.nextTick(()=>e(a)))};return{isComposing:n,handleComposition:a=>{a.type==="compositionend"?i(a):s(a)},handleCompositionStart:r,handleCompositionUpdate:s,handleCompositionEnd:i}}function _a(e){let t;function n(){if(e.value==null)return;const{selectionStart:s,selectionEnd:i,value:u}=e.value;if(s==null||i==null)return;const a=u.slice(0,Math.max(0,s)),l=u.slice(Math.max(0,i));t={selectionStart:s,selectionEnd:i,value:u,beforeTxt:a,afterTxt:l}}function r(){if(e.value==null||t==null)return;const{value:s}=e.value,{beforeTxt:i,afterTxt:u,selectionStart:a}=t;if(i==null||u==null||a==null)return;let l=s.length;if(s.endsWith(u))l=s.length-u.length;else if(s.startsWith(i))l=i.length;else{const c=i[a-1],d=s.indexOf(c,a-1);d!==-1&&(l=d+1)}e.value.setSelectionRange(l,l)}return[n,r]}const Gr="ElInput",Fa=o.defineComponent({name:Gr,inheritAttrs:!1}),$a=o.defineComponent({...Fa,props:Aa,emits:xa,setup(e,{expose:t,emit:n}){const r=e,s=o.useAttrs(),i=Ia(),u=o.useSlots(),a=o.computed(()=>[r.type==="textarea"?m.b():h.b(),h.m(b.value),h.is("disabled",g.value),h.is("exceed",xs.value),{[h.b("group")]:u.prepend||u.append,[h.m("prefix")]:u.prefix||r.prefixIcon,[h.m("suffix")]:u.suffix||r.suffixIcon||r.clearable||r.showPassword,[h.bm("suffix","password-clear")]:j.value&&pe.value,[h.b("hidden")]:r.type==="hidden"},s.class]),l=o.computed(()=>[h.e("wrapper"),h.is("focus",L.value)]),{form:c,formItem:d}=Ur(),{inputId:p}=Ra(r,{formItemContext:d}),b=qr(),g=ft(),h=f.useNamespace("input"),m=f.useNamespace("textarea"),S=o.shallowRef(),T=o.shallowRef(),E=o.ref(!1),k=o.ref(!1),$=o.ref(),H=o.shallowRef(r.inputStyle),w=o.computed(()=>S.value||T.value),{wrapperRef:O,isFocused:L,handleFocus:_,handleBlur:W}=Pa(w,{beforeFocus(){return g.value},afterBlur(){var y;r.validateEvent&&((y=d==null?void 0:d.validate)==null||y.call(d,"blur").catch(x=>f.debugWarn(x)))}}),N=o.computed(()=>{var y;return(y=c==null?void 0:c.statusIcon)!=null?y:!1}),P=o.computed(()=>(d==null?void 0:d.validateState)||""),X=o.computed(()=>P.value&&f.ValidateComponentsMap[P.value]),$e=o.computed(()=>k.value?f.view_default:f.hide_default),gt=o.computed(()=>[s.style]),B=o.computed(()=>[r.inputStyle,H.value,{resize:r.resize}]),V=o.computed(()=>Jt(r.modelValue)?"":String(r.modelValue)),j=o.computed(()=>r.clearable&&!g.value&&!r.readonly&&!!V.value&&(L.value||E.value)),pe=o.computed(()=>r.showPassword&&!g.value&&!!V.value),ve=o.computed(()=>r.showWordLimit&&!!r.maxlength&&(r.type==="text"||r.type==="textarea")&&!g.value&&!r.readonly&&!r.showPassword),yt=o.computed(()=>V.value.length),xs=o.computed(()=>!!ve.value&&yt.value>Number(r.maxlength)),Bs=o.computed(()=>!!u.suffix||!!r.suffixIcon||j.value||r.showPassword||ve.value||!!P.value&&N.value),[vn,gn]=_a(S);f.useResizeObserver(T,y=>{if(Ds(),!ve.value||r.resize!=="both")return;const x=y[0],{width:ge}=x.contentRect;$.value={right:`calc(100% - ${ge+15+6}px)`}});const Me=()=>{const{type:y,autosize:x}=r;if(!(!f.isClient||y!=="textarea"||!T.value))if(x){const ge=f.isObject$1(x)?x.minRows:void 0,Cn=f.isObject$1(x)?x.maxRows:void 0,An=Wn(T.value,ge,Cn);H.value={overflowY:"hidden",...An},o.nextTick(()=>{T.value.offsetHeight,H.value=An})}else H.value={minHeight:Wn(T.value).minHeight}},Ds=(y=>{let x=!1;return()=>{var ge;if(x||!r.autosize)return;((ge=T.value)==null?void 0:ge.offsetParent)===null||(y(),x=!0)}})(Me),Re=()=>{const y=w.value,x=r.formatter?r.formatter(V.value):V.value;!y||y.value===x||(y.value=x)},bt=async y=>{vn();let{value:x}=y.target;if(r.formatter&&r.parser&&(x=r.parser(x)),!bn.value){if(x===V.value){Re();return}n(Pt,x),n(Gn,x),await o.nextTick(),Re(),gn()}},yn=y=>{let{value:x}=y.target;r.formatter&&r.parser&&(x=r.parser(x)),n(qn,x)},{isComposing:bn,handleCompositionStart:mn,handleCompositionUpdate:Sn,handleCompositionEnd:Tn}=La({emit:n,afterComposition:bt}),Is=()=>{vn(),k.value=!k.value,setTimeout(gn)},ks=()=>{var y;return(y=w.value)==null?void 0:y.focus()},Ms=()=>{var y;return(y=w.value)==null?void 0:y.blur()},Rs=y=>{E.value=!1,n("mouseleave",y)},Os=y=>{E.value=!0,n("mouseenter",y)},En=y=>{n("keydown",y)},Ns=()=>{var y;(y=w.value)==null||y.select()},wn=()=>{n(Pt,""),n(qn,""),n("clear"),n(Gn,"")};return o.watch(()=>r.modelValue,()=>{var y;o.nextTick(()=>Me()),r.validateEvent&&((y=d==null?void 0:d.validate)==null||y.call(d,"change").catch(x=>f.debugWarn(x)))}),o.watch(V,()=>Re()),o.watch(()=>r.type,async()=>{await o.nextTick(),Re(),Me()}),o.onMounted(()=>{!r.formatter&&r.parser&&f.debugWarn(Gr,"If you set the parser, you also need to set the formatter."),Re(),o.nextTick(Me)}),t({input:S,textarea:T,ref:w,textareaStyle:B,autosize:o.toRef(r,"autosize"),isComposing:bn,focus:ks,blur:Ms,select:Ns,clear:wn,resizeTextarea:Me}),(y,x)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass([o.unref(a),{[o.unref(h).bm("group","append")]:y.$slots.append,[o.unref(h).bm("group","prepend")]:y.$slots.prepend}]),style:o.normalizeStyle(o.unref(gt)),onMouseenter:Os,onMouseleave:Rs},[o.createCommentVNode(" input "),y.type!=="textarea"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createCommentVNode(" prepend slot "),y.$slots.prepend?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(o.unref(h).be("group","prepend"))},[o.renderSlot(y.$slots,"prepend")],2)):o.createCommentVNode("v-if",!0),o.createElementVNode("div",{ref_key:"wrapperRef",ref:O,class:o.normalizeClass(o.unref(l))},[o.createCommentVNode(" prefix slot "),y.$slots.prefix||y.prefixIcon?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(o.unref(h).e("prefix"))},[o.createElementVNode("span",{class:o.normalizeClass(o.unref(h).e("prefix-inner"))},[o.renderSlot(y.$slots,"prefix"),y.prefixIcon?(o.openBlock(),o.createBlock(o.unref(f.ElIcon),{key:0,class:o.normalizeClass(o.unref(h).e("icon"))},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(y.prefixIcon)))]),_:1},8,["class"])):o.createCommentVNode("v-if",!0)],2)],2)):o.createCommentVNode("v-if",!0),o.createElementVNode("input",o.mergeProps({id:o.unref(p),ref_key:"input",ref:S,class:o.unref(h).e("inner")},o.unref(i),{minlength:y.minlength,maxlength:y.maxlength,type:y.showPassword?k.value?"text":"password":y.type,disabled:o.unref(g),readonly:y.readonly,autocomplete:y.autocomplete,tabindex:y.tabindex,"aria-label":y.ariaLabel,placeholder:y.placeholder,style:y.inputStyle,form:y.form,autofocus:y.autofocus,role:y.containerRole,onCompositionstart:o.unref(mn),onCompositionupdate:o.unref(Sn),onCompositionend:o.unref(Tn),onInput:bt,onChange:yn,onKeydown:En}),null,16,["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","onCompositionstart","onCompositionupdate","onCompositionend"]),o.createCommentVNode(" suffix slot "),o.unref(Bs)?(o.openBlock(),o.createElementBlock("span",{key:1,class:o.normalizeClass(o.unref(h).e("suffix"))},[o.createElementVNode("span",{class:o.normalizeClass(o.unref(h).e("suffix-inner"))},[!o.unref(j)||!o.unref(pe)||!o.unref(ve)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.renderSlot(y.$slots,"suffix"),y.suffixIcon?(o.openBlock(),o.createBlock(o.unref(f.ElIcon),{key:0,class:o.normalizeClass(o.unref(h).e("icon"))},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(y.suffixIcon)))]),_:1},8,["class"])):o.createCommentVNode("v-if",!0)],64)):o.createCommentVNode("v-if",!0),o.unref(j)?(o.openBlock(),o.createBlock(o.unref(f.ElIcon),{key:1,class:o.normalizeClass([o.unref(h).e("icon"),o.unref(h).e("clear")]),onMousedown:o.withModifiers(o.unref(f.NOOP),["prevent"]),onClick:wn},{default:o.withCtx(()=>[o.createVNode(o.unref(f.circle_close_default))]),_:1},8,["class","onMousedown"])):o.createCommentVNode("v-if",!0),o.unref(pe)?(o.openBlock(),o.createBlock(o.unref(f.ElIcon),{key:2,class:o.normalizeClass([o.unref(h).e("icon"),o.unref(h).e("password")]),onClick:Is},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(o.unref($e))))]),_:1},8,["class"])):o.createCommentVNode("v-if",!0),o.unref(ve)?(o.openBlock(),o.createElementBlock("span",{key:3,class:o.normalizeClass(o.unref(h).e("count"))},[o.createElementVNode("span",{class:o.normalizeClass(o.unref(h).e("count-inner"))},o.toDisplayString(o.unref(yt))+" / "+o.toDisplayString(y.maxlength),3)],2)):o.createCommentVNode("v-if",!0),o.unref(P)&&o.unref(X)&&o.unref(N)?(o.openBlock(),o.createBlock(o.unref(f.ElIcon),{key:4,class:o.normalizeClass([o.unref(h).e("icon"),o.unref(h).e("validateIcon"),o.unref(h).is("loading",o.unref(P)==="validating")])},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(o.unref(X))))]),_:1},8,["class"])):o.createCommentVNode("v-if",!0)],2)],2)):o.createCommentVNode("v-if",!0)],2),o.createCommentVNode(" append slot "),y.$slots.append?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(o.unref(h).be("group","append"))},[o.renderSlot(y.$slots,"append")],2)):o.createCommentVNode("v-if",!0)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createCommentVNode(" textarea "),o.createElementVNode("textarea",o.mergeProps({id:o.unref(p),ref_key:"textarea",ref:T,class:[o.unref(m).e("inner"),o.unref(h).is("focus",o.unref(L))]},o.unref(i),{minlength:y.minlength,maxlength:y.maxlength,tabindex:y.tabindex,disabled:o.unref(g),readonly:y.readonly,autocomplete:y.autocomplete,style:o.unref(B),"aria-label":y.ariaLabel,placeholder:y.placeholder,form:y.form,autofocus:y.autofocus,rows:y.rows,role:y.containerRole,onCompositionstart:o.unref(mn),onCompositionupdate:o.unref(Sn),onCompositionend:o.unref(Tn),onInput:bt,onFocus:o.unref(_),onBlur:o.unref(W),onChange:yn,onKeydown:En}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),o.unref(ve)?(o.openBlock(),o.createElementBlock("span",{key:0,style:o.normalizeStyle($.value),class:o.normalizeClass(o.unref(h).e("count"))},o.toDisplayString(o.unref(yt))+" / "+o.toDisplayString(y.maxlength),7)):o.createCommentVNode("v-if",!0)],64))],38))}});var ja=f._export_sfc($a,[["__file","input.vue"]]);const Ha=f.withInstall(ja),St="focus-trap.focus-after-trapped",Tt="focus-trap.focus-after-released",Ka="focus-trap.focusout-prevented",Zn={cancelable:!0,bubbles:!1},Ua={cancelable:!0,bubbles:!1},Xn="focusAfterTrapped",Jn="focusAfterReleased",za=Symbol("elFocusTrap"),tn=o.ref(),ht=o.ref(0),nn=o.ref(0);let He=0;const Wr=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},Qn=(e,t)=>{for(const n of e)if(!qa(n,t))return n},qa=(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},Ga=e=>{const t=Wr(e),n=Qn(t,e),r=Qn(t.reverse(),e);return[n,r]},Wa=e=>e instanceof HTMLInputElement&&"select"in e,te=(e,t)=>{if(e&&e.focus){const n=document.activeElement;let r=!1;f.isElement(e)&&!en(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),r=!0),e.focus({preventScroll:!0}),nn.value=window.performance.now(),e!==n&&Wa(e)&&t&&e.select(),f.isElement(e)&&r&&e.removeAttribute("tabindex")}};function er(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const Ya=()=>{let e=[];return{push:r=>{const s=e[0];s&&r!==s&&s.pause(),e=er(e,r),e.unshift(r)},remove:r=>{var s,i;e=er(e,r),(i=(s=e[0])==null?void 0:s.resume)==null||i.call(s)}}},Za=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(te(r,t),document.activeElement!==n)return},tr=Ya(),Xa=()=>ht.value>nn.value,Ke=()=>{tn.value="pointer",ht.value=window.performance.now()},nr=()=>{tn.value="keyboard",ht.value=window.performance.now()},Ja=()=>(o.onMounted(()=>{He===0&&(document.addEventListener("mousedown",Ke),document.addEventListener("touchstart",Ke),document.addEventListener("keydown",nr)),He++}),o.onBeforeUnmount(()=>{He--,He<=0&&(document.removeEventListener("mousedown",Ke),document.removeEventListener("touchstart",Ke),document.removeEventListener("keydown",nr))}),{focusReason:tn,lastUserFocusTimestamp:ht,lastAutomatedFocusTimestamp:nn}),Ue=e=>new CustomEvent(Ka,{...Ua,detail:e});let me=[];const rr=e=>{e.code===f.EVENT_CODE.esc&&me.forEach(t=>t(e))},Qa=e=>{o.onMounted(()=>{me.length===0&&document.addEventListener("keydown",rr),f.isClient&&me.push(e)}),o.onBeforeUnmount(()=>{me=me.filter(t=>t!==e),me.length===0&&f.isClient&&document.removeEventListener("keydown",rr)})},eu=o.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Xn,Jn,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=o.ref();let r,s;const{focusReason:i}=Ja();Qa(h=>{e.trapped&&!u.paused&&t("release-requested",h)});const u={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},a=h=>{if(!e.loop&&!e.trapped||u.paused)return;const{code:m,altKey:S,ctrlKey:T,metaKey:E,currentTarget:k,shiftKey:$}=h,{loop:H}=e,w=m===f.EVENT_CODE.tab&&!S&&!T&&!E,O=document.activeElement;if(w&&O){const L=k,[_,W]=Ga(L);if(_&&W){if(!$&&O===W){const P=Ue({focusReason:i.value});t("focusout-prevented",P),P.defaultPrevented||(h.preventDefault(),H&&te(_,!0))}else if($&&[_,L].includes(O)){const P=Ue({focusReason:i.value});t("focusout-prevented",P),P.defaultPrevented||(h.preventDefault(),H&&te(W,!0))}}else if(O===L){const P=Ue({focusReason:i.value});t("focusout-prevented",P),P.defaultPrevented||h.preventDefault()}}};o.provide(za,{focusTrapRef:n,onKeydown:a}),o.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),o.watch([n],([h],[m])=>{h&&(h.addEventListener("keydown",a),h.addEventListener("focusin",d),h.addEventListener("focusout",p)),m&&(m.removeEventListener("keydown",a),m.removeEventListener("focusin",d),m.removeEventListener("focusout",p))});const l=h=>{t(Xn,h)},c=h=>t(Jn,h),d=h=>{const m=o.unref(n);if(!m)return;const S=h.target,T=h.relatedTarget,E=S&&m.contains(S);e.trapped||T&&m.contains(T)||(r=T),E&&t("focusin",h),!u.paused&&e.trapped&&(E?s=S:te(s,!0))},p=h=>{const m=o.unref(n);if(!(u.paused||!m))if(e.trapped){const S=h.relatedTarget;!Jt(S)&&!m.contains(S)&&setTimeout(()=>{if(!u.paused&&e.trapped){const T=Ue({focusReason:i.value});t("focusout-prevented",T),T.defaultPrevented||te(s,!0)}},0)}else{const S=h.target;S&&m.contains(S)||t("focusout",h)}};async function b(){await o.nextTick();const h=o.unref(n);if(h){tr.push(u);const m=h.contains(document.activeElement)?r:document.activeElement;if(r=m,!h.contains(m)){const T=new Event(St,Zn);h.addEventListener(St,l),h.dispatchEvent(T),T.defaultPrevented||o.nextTick(()=>{let E=e.focusStartEl;f.isString(E)||(te(E),document.activeElement!==E&&(E="first")),E==="first"&&Za(Wr(h),!0),(document.activeElement===m||E==="container")&&te(h)})}}}function g(){const h=o.unref(n);if(h){h.removeEventListener(St,l);const m=new CustomEvent(Tt,{...Zn,detail:{focusReason:i.value}});h.addEventListener(Tt,c),h.dispatchEvent(m),!m.defaultPrevented&&(i.value=="keyboard"||!Xa()||h.contains(document.activeElement))&&te(r??document.body),h.removeEventListener(Tt,c),tr.remove(u)}}return o.onMounted(()=>{e.trapped&&b(),o.watch(()=>e.trapped,h=>{h?b():g()})}),o.onBeforeUnmount(()=>{e.trapped&&g(),n.value&&(n.value.removeEventListener("keydown",a),n.value.removeEventListener("focusin",d),n.value.removeEventListener("focusout",p),n.value=void 0)}),{onKeydown:a}}});function tu(e,t,n,r,s,i){return o.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var nu=f._export_sfc(eu,[["render",tu],["__file","focus-trap.vue"]]);const Yr=Symbol("buttonGroupContextKey"),ru=({from:e,replacement:t,scope:n,version:r,ref:s,type:i="API"},u)=>{o.watch(()=>o.unref(u),a=>{a&&f.debugWarn(n,`[${i}] ${e} is about to be deprecated in version ${r}, please use ${t} instead.
6
- For more detail, please visit: ${s}
7
- `)},{immediate:!0})},su=(e,t)=>{ru({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},o.computed(()=>e.type==="text"));const n=o.inject(Yr,void 0),r=f.useGlobalConfig("button"),{form:s}=Ur(),i=qr(o.computed(()=>n==null?void 0:n.size)),u=ft(),a=o.ref(),l=o.useSlots(),c=o.computed(()=>{var S;return e.type||(n==null?void 0:n.type)||((S=r.value)==null?void 0:S.type)||""}),d=o.computed(()=>{var S,T,E;return(E=(T=e.autoInsertSpace)!=null?T:(S=r.value)==null?void 0:S.autoInsertSpace)!=null?E:!1}),p=o.computed(()=>{var S,T,E;return(E=(T=e.plain)!=null?T:(S=r.value)==null?void 0:S.plain)!=null?E:!1}),b=o.computed(()=>{var S,T,E;return(E=(T=e.round)!=null?T:(S=r.value)==null?void 0:S.round)!=null?E:!1}),g=o.computed(()=>e.tag==="button"?{ariaDisabled:u.value||e.loading,disabled:u.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),h=o.computed(()=>{var S;const T=(S=l.default)==null?void 0:S.call(l);if(d.value&&(T==null?void 0:T.length)===1){const E=T[0];if((E==null?void 0:E.type)===o.Text){const k=E.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(k.trim())}}return!1});return{_disabled:u,_size:i,_type:c,_ref:a,_props:g,_plain:p,_round:b,shouldAddSpace:h,handleClick:S=>{if(u.value||e.loading){S.stopPropagation();return}e.nativeType==="reset"&&(s==null||s.resetFields()),t("click",S)}}},iu=["default","primary","success","warning","info","danger","text",""],ou=["button","submit","reset"],_t=f.buildProps({size:f.useSizeProp,disabled:Boolean,type:{type:String,values:iu,default:""},icon:{type:f.iconPropType},nativeType:{type:String,values:ou,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"}}),au={click:e=>e instanceof MouseEvent};function F(e,t){uu(e)&&(e="100%");var n=lu(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 ze(e){return Math.min(1,Math.max(0,e))}function uu(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function lu(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Zr(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function qe(e){return e<=1?"".concat(Number(e)*100,"%"):e}function le(e){return e.length===1?"0"+e:String(e)}function cu(e,t,n){return{r:F(e,255)*255,g:F(t,255)*255,b:F(n,255)*255}}function sr(e,t,n){e=F(e,255),t=F(t,255),n=F(n,255);var r=Math.max(e,t,n),s=Math.min(e,t,n),i=0,u=0,a=(r+s)/2;if(r===s)u=0,i=0;else{var l=r-s;switch(u=a>.5?l/(2-r-s):l/(r+s),r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4;break}i/=6}return{h:i,s:u,l:a}}function Et(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 fu(e,t,n){var r,s,i;if(e=F(e,360),t=F(t,100),n=F(n,100),t===0)s=n,i=n,r=n;else{var u=n<.5?n*(1+t):n+t-n*t,a=2*n-u;r=Et(a,u,e+1/3),s=Et(a,u,e),i=Et(a,u,e-1/3)}return{r:r*255,g:s*255,b:i*255}}function ir(e,t,n){e=F(e,255),t=F(t,255),n=F(n,255);var r=Math.max(e,t,n),s=Math.min(e,t,n),i=0,u=r,a=r-s,l=r===0?0:a/r;if(r===s)i=0;else{switch(r){case e:i=(t-n)/a+(t<n?6:0);break;case t:i=(n-e)/a+2;break;case n:i=(e-t)/a+4;break}i/=6}return{h:i,s:l,v:u}}function hu(e,t,n){e=F(e,360)*6,t=F(t,100),n=F(n,100);var r=Math.floor(e),s=e-r,i=n*(1-t),u=n*(1-s*t),a=n*(1-(1-s)*t),l=r%6,c=[n,u,i,i,a,n][l],d=[a,n,n,u,i,i][l],p=[i,i,a,n,n,u][l];return{r:c*255,g:d*255,b:p*255}}function or(e,t,n,r){var s=[le(Math.round(e).toString(16)),le(Math.round(t).toString(16)),le(Math.round(n).toString(16))];return r&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0):s.join("")}function du(e,t,n,r,s){var i=[le(Math.round(e).toString(16)),le(Math.round(t).toString(16)),le(Math.round(n).toString(16)),le(pu(r))];return s&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function pu(e){return Math.round(parseFloat(e)*255).toString(16)}function ar(e){return q(e)/255}function q(e){return parseInt(e,16)}function vu(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Ft={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 gu(e){var t={r:0,g:0,b:0},n=1,r=null,s=null,i=null,u=!1,a=!1;return typeof e=="string"&&(e=mu(e)),typeof e=="object"&&(J(e.r)&&J(e.g)&&J(e.b)?(t=cu(e.r,e.g,e.b),u=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):J(e.h)&&J(e.s)&&J(e.v)?(r=qe(e.s),s=qe(e.v),t=hu(e.h,r,s),u=!0,a="hsv"):J(e.h)&&J(e.s)&&J(e.l)&&(r=qe(e.s),i=qe(e.l),t=fu(e.h,r,i),u=!0,a="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Zr(n),{ok:u,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 yu="[-\\+]?\\d+%?",bu="[-\\+]?\\d*\\.\\d+%?",se="(?:".concat(bu,")|(?:").concat(yu,")"),wt="[\\s|\\(]+(".concat(se,")[,|\\s]+(").concat(se,")[,|\\s]+(").concat(se,")\\s*\\)?"),Ct="[\\s|\\(]+(".concat(se,")[,|\\s]+(").concat(se,")[,|\\s]+(").concat(se,")[,|\\s]+(").concat(se,")\\s*\\)?"),Y={CSS_UNIT:new RegExp(se),rgb:new RegExp("rgb"+wt),rgba:new RegExp("rgba"+Ct),hsl:new RegExp("hsl"+wt),hsla:new RegExp("hsla"+Ct),hsv:new RegExp("hsv"+wt),hsva:new RegExp("hsva"+Ct),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 mu(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Ft[e])e=Ft[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Y.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Y.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Y.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Y.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Y.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Y.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Y.hex8.exec(e),n?{r:q(n[1]),g:q(n[2]),b:q(n[3]),a:ar(n[4]),format:t?"name":"hex8"}:(n=Y.hex6.exec(e),n?{r:q(n[1]),g:q(n[2]),b:q(n[3]),format:t?"name":"hex"}:(n=Y.hex4.exec(e),n?{r:q(n[1]+n[1]),g:q(n[2]+n[2]),b:q(n[3]+n[3]),a:ar(n[4]+n[4]),format:t?"name":"hex8"}:(n=Y.hex3.exec(e),n?{r:q(n[1]+n[1]),g:q(n[2]+n[2]),b:q(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function J(e){return!!Y.CSS_UNIT.exec(String(e))}var Su=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=vu(t)),this.originalInput=t;var s=gu(t);this.originalInput=t,this.r=s.r,this.g=s.g,this.b=s.b,this.a=s.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:s.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=s.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,s,i=t.r/255,u=t.g/255,a=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),u<=.03928?r=u/12.92:r=Math.pow((u+.055)/1.055,2.4),a<=.03928?s=a/12.92:s=Math.pow((a+.055)/1.055,2.4),.2126*n+.7152*r+.0722*s},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Zr(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=ir(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=ir(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),s=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(s,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(s,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=sr(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=sr(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),s=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(s,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(s,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),or(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),du(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(F(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(F(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="#"+or(this.r,this.g,this.b,!1),n=0,r=Object.entries(Ft);n<r.length;n++){var s=r[n],i=s[0],u=s[1];if(t===u)return i}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,s=this.a<1&&this.a>=0,i=!n&&s&&(t.startsWith("hex")||t==="name");return i?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=ze(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=ze(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=ze(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=ze(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(),s=new e(t).toRgb(),i=n/100,u={r:(s.r-r.r)*i+r.r,g:(s.g-r.g)*i+r.g,b:(s.b-r.b)*i+r.b,a:(s.a-r.a)*i+r.a};return new e(u)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),s=360/n,i=[this];for(r.h=(r.h-(s*t>>1)+720)%360;--t;)r.h=(r.h+s)%360,i.push(new e(r));return i},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,s=n.s,i=n.v,u=[],a=1/t;t--;)u.push(new e({h:r,s,v:i})),i=(i+a)%1;return u},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(),s=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/s,g:(n.g*n.a+r.g*r.a*(1-n.a))/s,b:(n.b*n.a+r.b*r.a*(1-n.a))/s,a:s})},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,s=[this],i=360/t,u=1;u<t;u++)s.push(new e({h:(r+u*i)%360,s:n.s,l:n.l}));return s},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function ee(e,t=20){return e.mix("#141414",t).toString()}function Tu(e){const t=ft(),n=f.useNamespace("button");return o.computed(()=>{let r={},s=e.color;if(s){const i=s.match(/var\((.*?)\)/);i&&(s=window.getComputedStyle(window.document.documentElement).getPropertyValue(i[1]));const u=new Su(s),a=e.dark?u.tint(20).toString():ee(u,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?ee(u,90):u.tint(90).toString(),"text-color":s,"border-color":e.dark?ee(u,50):u.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":s,"hover-border-color":s,"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?ee(u,90):u.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?ee(u,50):u.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?ee(u,80):u.tint(80).toString());else{const l=e.dark?ee(u,30):u.tint(30).toString(),c=u.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":s,"text-color":c,"border-color":s,"hover-bg-color":l,"hover-text-color":c,"hover-border-color":l,"active-bg-color":a,"active-border-color":a}),t.value){const d=e.dark?ee(u,50):u.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=d,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")]=d}}}return r})}const Eu=o.defineComponent({name:"ElButton"}),wu=o.defineComponent({...Eu,props:_t,emits:au,setup(e,{expose:t,emit:n}){const r=e,s=Tu(r),i=f.useNamespace("button"),{_ref:u,_size:a,_type:l,_disabled:c,_props:d,_plain:p,_round:b,shouldAddSpace:g,handleClick:h}=su(r,n),m=o.computed(()=>[i.b(),i.m(l.value),i.m(a.value),i.is("disabled",c.value),i.is("loading",r.loading),i.is("plain",p.value),i.is("round",b.value),i.is("circle",r.circle),i.is("text",r.text),i.is("link",r.link),i.is("has-bg",r.bg)]);return t({ref:u,size:a,type:l,disabled:c,shouldAddSpace:g}),(S,T)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(S.tag),o.mergeProps({ref_key:"_ref",ref:u},o.unref(d),{class:o.unref(m),style:o.unref(s),onClick:o.unref(h)}),{default:o.withCtx(()=>[S.loading?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[S.$slots.loading?o.renderSlot(S.$slots,"loading",{key:0}):(o.openBlock(),o.createBlock(o.unref(f.ElIcon),{key:1,class:o.normalizeClass(o.unref(i).is("loading"))},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(S.loadingIcon)))]),_:1},8,["class"]))],64)):S.icon||S.$slots.icon?(o.openBlock(),o.createBlock(o.unref(f.ElIcon),{key:1},{default:o.withCtx(()=>[S.icon?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(S.icon),{key:0})):o.renderSlot(S.$slots,"icon",{key:1})]),_:3})):o.createCommentVNode("v-if",!0),S.$slots.default?(o.openBlock(),o.createElementBlock("span",{key:2,class:o.normalizeClass({[o.unref(i).em("text","expand")]:o.unref(g)})},[o.renderSlot(S.$slots,"default")],2)):o.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var Cu=f._export_sfc(wu,[["__file","button.vue"]]);const Au={size:_t.size,type:_t.type},xu=o.defineComponent({name:"ElButtonGroup"}),Bu=o.defineComponent({...xu,props:Au,setup(e){const t=e;o.provide(Yr,o.reactive({size:o.toRef(t,"size"),type:o.toRef(t,"type")}));const n=f.useNamespace("button");return(r,s)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(o.unref(n).b("group"))},[o.renderSlot(r.$slots,"default")],2))}});var Xr=f._export_sfc(Bu,[["__file","button-group.vue"]]);const Du=f.withInstall(Cu,{ButtonGroup:Xr});f.withNoopInstall(Xr);var et=(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))(et||{});const Jr=e=>{if(!e)return{onClick:f.NOOP,onMousedown:f.NOOP,onMouseup:f.NOOP};let t=!1,n=!1;return{onClick:u=>{t&&n&&e(u),t=n=!1},onMousedown:u=>{t=u.target===u.currentTarget},onMouseup:u=>{n=u.target===u.currentTarget}}},Iu=f.buildProps({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:f.definePropType([String,Array,Object])},zIndex:{type:f.definePropType([String,Number])}}),ku={click:e=>e instanceof MouseEvent},Mu="overlay";var Ru=o.defineComponent({name:"ElOverlay",props:Iu,emits:ku,setup(e,{slots:t,emit:n}){const r=f.useNamespace(Mu),s=l=>{n("click",l)},{onClick:i,onMousedown:u,onMouseup:a}=Jr(e.customMaskEvent?void 0:s);return()=>e.mask?o.createVNode("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:u,onMouseup:a},[o.renderSlot(t,"default")],et.STYLE|et.CLASS|et.PROPS,["onClick","onMouseup","onMousedown"]):o.h("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[o.renderSlot(t,"default")])}});const Ou=Ru,Nu=(e,t,n,r)=>{const s={offsetX:0,offsetY:0},i=(p,b)=>{if(e.value){const{offsetX:g,offsetY:h}=s,m=e.value.getBoundingClientRect(),S=m.left,T=m.top,E=m.width,k=m.height,$=document.documentElement.clientWidth,H=document.documentElement.clientHeight,w=-S+g,O=-T+h,L=$-S-E+g,_=H-T-(k<H?k:0)+h;r!=null&&r.value||(p=Math.min(Math.max(p,w),L),b=Math.min(Math.max(b,O),_)),s.offsetX=p,s.offsetY=b,e.value.style.transform=`translate(${f.addUnit(p)}, ${f.addUnit(b)})`}},u=p=>{const b=p.clientX,g=p.clientY,{offsetX:h,offsetY:m}=s,S=E=>{const k=h+E.clientX-b,$=m+E.clientY-g;i(k,$)},T=()=>{document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",T)};document.addEventListener("mousemove",S),document.addEventListener("mouseup",T)},a=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",u),window.addEventListener("resize",d))},l=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",u),window.removeEventListener("resize",d))},c=()=>{s.offsetX=0,s.offsetY=0,e.value&&(e.value.style.transform="")},d=()=>{const{offsetX:p,offsetY:b}=s;i(p,b)};return o.onMounted(()=>{o.watchEffect(()=>{n.value?a():l()})}),o.onBeforeUnmount(()=>{l()}),{resetPosition:c,updatePosition:d}},Pu=(e,t={})=>{o.isRef(e)||f.throwError("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||f.useNamespace("popup"),r=o.computed(()=>n.bm("parent","hidden"));if(!f.isClient||f.hasClass(document.body,r.value))return;let s=0,i=!1,u="0";const a=()=>{setTimeout(()=>{typeof document>"u"||i&&document&&(document.body.style.width=u,f.removeClass(document.body,r.value))},200)};o.watch(e,l=>{if(!l){a();return}i=!f.hasClass(document.body,r.value),i&&(u=document.body.style.width,f.addClass(document.body,r.value)),s=ba(n.namespace.value);const c=document.documentElement.clientHeight<document.body.scrollHeight,d=f.getStyle(document.body,"overflowY");s>0&&(c||d==="scroll")&&i&&(document.body.style.width=`calc(100% - ${s}px)`)}),o.onScopeDispose(()=>a())},Vu=e=>["",...f.componentSizes].includes(e),$t="_trap-focus-children",ce=[],ur=e=>{var t;if(ce.length===0)return;const n=ce[ce.length-1][$t];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,s=e.target===n[0],i=e.target===n[n.length-1];if(s&&r&&(e.preventDefault(),n[n.length-1].focus()),i&&!r&&(e.preventDefault(),n[0].focus()),process.env.NODE_ENV==="test"){const u=n.indexOf(e.target);u!==-1&&((t=n[r?u-1:u+1])==null||t.focus())}}},Lu={beforeMount(e){e[$t]=Yn(e),ce.push(e),ce.length<=1&&document.addEventListener("keydown",ur)},updated(e){o.nextTick(()=>{e[$t]=Yn(e)})},unmounted(){ce.shift(),ce.length===0&&document.removeEventListener("keydown",ur)}},_u=o.defineComponent({name:"ElMessageBox",directives:{TrapFocus:Lu},components:{ElButton:Du,ElFocusTrap:nu,ElInput:Ha,ElOverlay:Ou,ElIcon:f.ElIcon,...f.TypeComponents},inheritAttrs:!1,props:{buttonSize:{type:String,validator:Vu},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:s,size:i}=f.useGlobalComponentSettings("message-box",o.computed(()=>e.buttonSize)),{t:u}=n,{nextZIndex:a}=r,l=o.ref(!1),c=o.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:o.markRaw(f.loading_default),cancelButtonLoadingIcon:o.markRaw(f.loading_default),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:a()}),d=o.computed(()=>{const B=c.type;return{[s.bm("icon",B)]:B&&f.TypeComponentsMap[B]}}),p=Lt(),b=Lt(),g=o.computed(()=>{const B=c.type;return c.icon||B&&f.TypeComponentsMap[B]||""}),h=o.computed(()=>!!c.message),m=o.ref(),S=o.ref(),T=o.ref(),E=o.ref(),k=o.ref(),$=o.computed(()=>c.confirmButtonClass);o.watch(()=>c.inputValue,async B=>{await o.nextTick(),e.boxType==="prompt"&&B&&P()},{immediate:!0}),o.watch(()=>l.value,B=>{var V,j;B&&(e.boxType!=="prompt"&&(c.autofocus?T.value=(j=(V=k.value)==null?void 0:V.$el)!=null?j:m.value:T.value=m.value),c.zIndex=a()),e.boxType==="prompt"&&(B?o.nextTick().then(()=>{var pe;E.value&&E.value.$el&&(c.autofocus?T.value=(pe=X())!=null?pe:m.value:T.value=m.value)}):(c.editorErrorMessage="",c.validateError=!1))});const H=o.computed(()=>e.draggable),w=o.computed(()=>e.overflow);Nu(m,S,H,w),o.onMounted(async()=>{await o.nextTick(),e.closeOnHashChange&&window.addEventListener("hashchange",O)}),o.onBeforeUnmount(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",O)});function O(){l.value&&(l.value=!1,o.nextTick(()=>{c.action&&t("action",c.action)}))}const L=()=>{e.closeOnClickModal&&N(c.distinguishCancelAndClose?"close":"cancel")},_=Jr(L),W=B=>{if(c.inputType!=="textarea")return B.preventDefault(),N("confirm")},N=B=>{var V;e.boxType==="prompt"&&B==="confirm"&&!P()||(c.action=B,c.beforeClose?(V=c.beforeClose)==null||V.call(c,B,c,O):O())},P=()=>{if(e.boxType==="prompt"){const B=c.inputPattern;if(B&&!B.test(c.inputValue||""))return c.editorErrorMessage=c.inputErrorMessage||u("el.messagebox.error"),c.validateError=!0,!1;const V=c.inputValidator;if(f.isFunction$1(V)){const j=V(c.inputValue);if(j===!1)return c.editorErrorMessage=c.inputErrorMessage||u("el.messagebox.error"),c.validateError=!0,!1;if(f.isString(j))return c.editorErrorMessage=j,c.validateError=!0,!1}}return c.editorErrorMessage="",c.validateError=!1,!0},X=()=>{var B,V;const j=(B=E.value)==null?void 0:B.$refs;return(V=j==null?void 0:j.input)!=null?V:j==null?void 0:j.textarea},$e=()=>{N("close")},gt=()=>{e.closeOnPressEscape&&$e()};return e.lockScroll&&Pu(l),{...o.toRefs(c),ns:s,overlayEvent:_,visible:l,hasMessage:h,typeClass:d,contentId:p,inputId:b,btnSize:i,iconComponent:g,confirmButtonClasses:$,rootRef:m,focusStartRef:T,headerRef:S,inputRef:E,confirmRef:k,doClose:O,handleClose:$e,onCloseRequested:gt,handleWrapperClick:L,handleInputEnter:W,handleAction:N,t:u}}});function Fu(e,t,n,r,s,i){const u=o.resolveComponent("el-icon"),a=o.resolveComponent("el-input"),l=o.resolveComponent("el-button"),c=o.resolveComponent("el-focus-trap"),d=o.resolveComponent("el-overlay");return o.openBlock(),o.createBlock(o.Transition,{name:"fade-in-linear",onAfterLeave:p=>e.$emit("vanish"),persisted:""},{default:o.withCtx(()=>[o.withDirectives(o.createVNode(d,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:o.withCtx(()=>[o.createElementVNode("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:o.normalizeClass(`${e.ns.namespace.value}-overlay-message-box`),onClick:e.overlayEvent.onClick,onMousedown:e.overlayEvent.onMousedown,onMouseup:e.overlayEvent.onMouseup},[o.createVNode(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:o.withCtx(()=>[o.createElementVNode("div",{ref:"rootRef",class:o.normalizeClass([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:o.normalizeStyle(e.customStyle),tabindex:"-1",onClick:o.withModifiers(()=>{},["stop"])},[e.title!==null&&e.title!==void 0?(o.openBlock(),o.createElementBlock("div",{key:0,ref:"headerRef",class:o.normalizeClass([e.ns.e("header"),{"show-close":e.showClose}])},[o.createElementVNode("div",{class:o.normalizeClass(e.ns.e("title"))},[e.iconComponent&&e.center?(o.openBlock(),o.createBlock(u,{key:0,class:o.normalizeClass([e.ns.e("status"),e.typeClass])},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):o.createCommentVNode("v-if",!0),o.createElementVNode("span",null,o.toDisplayString(e.title),1)],2),e.showClose?(o.openBlock(),o.createElementBlock("button",{key:0,type:"button",class:o.normalizeClass(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:p=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),onKeydown:o.withKeys(o.withModifiers(p=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[o.createVNode(u,{class:o.normalizeClass(e.ns.e("close"))},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.closeIcon||"close")))]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):o.createCommentVNode("v-if",!0)],2)):o.createCommentVNode("v-if",!0),o.createElementVNode("div",{id:e.contentId,class:o.normalizeClass(e.ns.e("content"))},[o.createElementVNode("div",{class:o.normalizeClass(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(o.openBlock(),o.createBlock(u,{key:0,class:o.normalizeClass([e.ns.e("status"),e.typeClass])},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):o.createCommentVNode("v-if",!0),e.hasMessage?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(e.ns.e("message"))},[o.renderSlot(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):o.createCommentVNode("v-if",!0)],2),o.withDirectives(o.createElementVNode("div",{class:o.normalizeClass(e.ns.e("input"))},[o.createVNode(a,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":p=>e.inputValue=p,type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:o.normalizeClass({invalid:e.validateError}),onKeydown:o.withKeys(e.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),o.createElementVNode("div",{class:o.normalizeClass(e.ns.e("errormsg")),style:o.normalizeStyle({visibility:e.editorErrorMessage?"visible":"hidden"})},o.toDisplayString(e.editorErrorMessage),7)],2),[[o.vShow,e.showInput]])],10,["id"]),o.createElementVNode("div",{class:o.normalizeClass(e.ns.e("btns"))},[e.showCancelButton?(o.openBlock(),o.createBlock(l,{key:0,loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:o.normalizeClass([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:p=>e.handleAction("cancel"),onKeydown:o.withKeys(o.withModifiers(p=>e.handleAction("cancel"),["prevent"]),["enter"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):o.createCommentVNode("v-if",!0),o.withDirectives(o.createVNode(l,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:o.normalizeClass([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:p=>e.handleAction("confirm"),onKeydown:o.withKeys(o.withModifiers(p=>e.handleAction("confirm"),["prevent"]),["enter"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[o.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"]),[[o.vShow,e.visible]])]),_:3},8,["onAfterLeave"])}var $u=f._export_sfc(_u,[["render",Fu],["__file","index.vue"]]);const Le=new Map,ju=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},Hu=(e,t,n=null)=>{const r=o.createVNode($u,e,f.isFunction$1(e.message)||o.isVNode(e.message)?{default:f.isFunction$1(e.message)?e.message:()=>e.message}:null);return r.appContext=n,o.render(r,t),ju(e).appendChild(t.firstElementChild),r.component},Ku=()=>document.createElement("div"),Uu=(e,t)=>{const n=Ku();e.onVanish=()=>{o.render(null,n),Le.delete(s)},e.onAction=i=>{const u=Le.get(s);let a;e.showInput?a={value:s.inputValue,action:i}:a=i,e.callback?e.callback(a,r.proxy):i==="cancel"||i==="close"?e.distinguishCancelAndClose&&i!=="cancel"?u.reject("close"):u.reject("cancel"):u.resolve(a)};const r=Hu(e,n,t),s=r.proxy;for(const i in e)f.hasOwn(e,i)&&!f.hasOwn(s.$props,i)&&(i==="closeIcon"&&f.isObject$1(e[i])?s[i]=o.markRaw(e[i]):s[i]=e[i]);return s.visible=!0,s};function Ie(e,t=null){if(!f.isClient)return Promise.reject();let n;return f.isString(e)||o.isVNode(e)?e={message:e}:n=e.callback,new Promise((r,s)=>{const i=Uu(e,t??Ie._context);Le.set(i,{options:e,callback:n,resolve:r,reject:s})})}const zu=["alert","confirm","prompt"],qu={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};zu.forEach(e=>{Ie[e]=Gu(e)});function Gu(e){return(t,n,r,s)=>{let i="";return f.isObject$1(n)?(r=n,i=""):f.isUndefined(n)?i="":i=n,Ie(Object.assign({title:i,message:t,type:"",...qu[e]},r,{boxType:e}),s)}}Ie.close=()=>{Le.forEach((e,t)=>{t.doClose()}),Le.clear()};Ie._context=null;const ne=Ie;ne.install=e=>{ne._context=e._context,e.config.globalProperties.$msgbox=ne,e.config.globalProperties.$messageBox=ne,e.config.globalProperties.$alert=ne.alert,e.config.globalProperties.$confirm=ne.confirm,e.config.globalProperties.$prompt=ne.prompt};const Qr=ne,Wu=[],rn=f.defineStore("menuState",{state:()=>({isRefreshMenus:!1,activeMenuStructureIds:[],cacheInputMenu:{},configMenu:{form:{},options:[],structure:[]},cacheStructures:[],rawMenus:[],menus:[],activeTopMenuPath:"",updateMenuStatus:!0,activeMenuPath:"",activeOldMenuPath:"",activeMainMenu:{},activeAsideMenu:{},activeMenuOpenPaths:[],systemKey:"",buttonTriggerType:"contentConfig",menuTriggerType:"open",permissionSideMenus:[],importLoading:!1,contentLoading:!1,asideMenuLoading:!1,asideMenus:[],platform:"browser",platName:"",childMenu:"",linkMenuInfo:null}),actions:{setUpdateMenuStatus(e){this.updateMenuStatus=e},setLinkMenuInfo(e){this.linkMenuInfo=e},setAsideMenuLoading(e){this.asideMenuLoading=e},setCacheStructures(e){var n,r;const t=(n=this.cacheStructures)==null?void 0:n.map(s=>s.key);e?t!=null&&t.includes(e==null?void 0:e.key)?this.cacheStructures=(r=this.cacheStructures)==null?void 0:r.map(s=>s.key===(e==null?void 0:e.key)?{...s,data:e==null?void 0:e.data}:s):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){!e&&e!==null||(this.activeOldMenuPath=ae(this.activeMenuPath),this.activeMenuPath=e)},setActiveMenuOpenPaths(e){this.activeMenuOpenPaths=e},setRawMenus(e){this.rawMenus=e,this.permissionSideMenus=Wu}}}),sn=f.defineStore("loginState",{state:()=>({superAdminInfo:{},cryptoInfo:{publicKey:"",privateKey:""},loginUserInfo:{},structureData:[],isStructureExist:!1,systemKey:"",systemInfo:null}),actions:{setSystemInfo(e){this.systemInfo=e},setSystemKey(e){this.systemKey=e},setSuperAdminInfo(e){this.superAdminInfo=e},setLoginUserInfo(e){this.loginUserInfo=e},setStructureData(e){this.structureData=e},setIsStructureExist(e){this.isStructureExist=e},async getModelSecretAsync(e){var n,r,s,i,u,a,l,c,d,p,b,g,h;const t=await f.getInsofDataApi({key:{systemKey:e?e.systemKey:sessionStorage.getItem("systemKey"),pageKey:"secret",type:"system"}});return((n=t==null?void 0:t.data)==null?void 0:n.code)===200&&(r=t==null?void 0:t.data)!=null&&r.result&&Array.isArray((s=t==null?void 0:t.data)==null?void 0:s.result)&&((u=(i=t==null?void 0:t.data)==null?void 0:i.result)==null?void 0:u.length)>0&&(this.cryptoInfo.publicKey=(d=(c=(l=(a=t.data)==null?void 0:a.result[0])==null?void 0:l.value)==null?void 0:c.cryptoInfo)==null?void 0:d.publicKey,this.cryptoInfo.privateKey=(h=(g=(b=(p=t.data)==null?void 0:p.result[0])==null?void 0:b.value)==null?void 0:g.cryptoInfo)==null?void 0:h.privateKey),{publicKey:this.cryptoInfo.publicKey,privateKey:this.cryptoInfo.privateKey}},async setLogRecordAsync(e,t,n="operate"){}},persist:[{key:"loginState",storage:localStorage,pick:["superAdminInfo"]}]}),on=f.defineStore("modelComp",{state:()=>({lockingPage:"",itemData:[],itemGridData:[],itemExtendData:{},originalData:[],extraContents:[],nodeDev:"",isEdit:"view",isRefreshCurStructure:!1,isSubmitCurStructure:!1,curStructureCompIds:[],systemPath:"",freshContent:!1,routeToChildPath:"",cacheUpdatingData:null,tableViewContents:[],activeItemIndex:-1,tableLoading:!1,pageMapState:{},payloadTypes:"data,structure,structureMethod,gridLayout,extend,related",fixMenuStatus:!1}),actions:{setLockingPage(e){this.lockingPage=e},setFixMenuStatus(e){this.fixMenuStatus=e},setPageMapState(e){this.pageMapState=e},setItemGridData(e){this.itemGridData=e},setItemExtendData(e){this.itemExtendData=e},setItemData(e){this.itemData=e},setTableLoading(e){this.tableLoading=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}}}),an=f.defineStore("authorityState",{state:()=>({routerPageStructures:[]}),actions:{setRouterPageStructure(e){this.routerPageStructures=e}}}),Yu=rn(f.pinia),{activeMenuPath:tt}=f.storeToRefs(Yu),es=sn(f.pinia),{structureData:Zu,loginUserInfo:At}=f.storeToRefs(es),Xu=an(f.pinia),{routerPageStructures:Ju}=f.storeToRefs(Xu),st=on(f.pinia),Qu=o.ref([{label:"角色名称",value:"",name:"roleName"}]),el=o.ref([{label:"查询"},{label:"重置"}]),lr=o.reactive({isFilter:!1,filterForm:{}}),tl=o.ref(!1),nl=e=>{lr.isFilter=!0,lr.filterForm=e},ts=o.ref([]),jt=o.ref([]),ns=o.ref(""),rl=o.computed(()=>{var t,n,r,s,i;const e=(t=Ju.value)==null?void 0:t.find(u=>{var a;return((a=u==null?void 0:u.comp)==null?void 0:a.toUpperCase())==="TABLE"});if(e){ns.value=e.name,jt.value=(s=(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:s.filter(a=>(a==null?void 0:a.label)!=="操作");const u=(i=e==null?void 0:e.compData)==null?void 0:i.map(a=>{var l;if((a==null?void 0:a.key)==="rowButton"){let c=[];return we.value?c=[...a==null?void 0:a.contents,{label:"授权"}]:c=a==null?void 0:a.contents,{...a,contents:c}}return(a==null?void 0:a.key)==="header"?{...a,contents:(l=a==null?void 0:a.contents)==null?void 0:l.map(c=>{var d,p;return{...c,isTableColHidden:(d=c==null?void 0:c.prop)==null?void 0:d.includes("授权"),isFormColHidden:(p=c==null?void 0:c.prop)==null?void 0:p.includes("授权")}})}:a});return fs(u),u}return[]}),sl=e=>{st.setRefreshCurStructure(!1),cn(e.singleContent,e.buttonName,dt.value,e==null?void 0:e.selectItems)},Te=o.ref({}),un=o.ref(),_e=async(e,t,n)=>{var r,s;try{const i=await e(t);return((r=i==null?void 0:i.data)==null?void 0:r.code)===200?(n!=="查询"&&await es.setLogRecordAsync({type:n,data:t},tt.value),f.ElMessage.success("保存成功"),st.setRefreshCurStructure(!0),i.data.result||((s=i==null?void 0:i.data)==null?void 0:s.code)===200):null}catch(i){f.ElMessage.error(i)}finally{st.setCacheUpdatingData(null)}},rs=(e,t)=>{const n=[];for(const r of e)t!=null&&t.has(r.path)&&n.push(r),r.children&&n.push(...rs(r.children,t));return n},il=(e,t)=>{var n,r;try{const s=new Map(e==null?void 0:e.map(a=>[a.path,a.checkedButtons])),i=rs(t,s),u=(n=i==null?void 0:i.filter(a=>{var l,c;return((l=a==null?void 0:a.checkedButtons)==null?void 0:l.length)===((c=a==null?void 0:a.renderButtons)==null?void 0:c.length)}))==null?void 0:n.map(a=>a==null?void 0:a.path);(r=un.value)==null||r.setCheckedKeys(u)}catch{throw new Error("数据显示处理失败")}},ol=(e,t)=>{const n=new Map(t==null?void 0:t.map(s=>[s.path,s.checkedButtons]));function r(s){var u,a;const i=(u=s==null?void 0:s.path)!=null&&u.startsWith("/")?(a=s==null?void 0:s.path)==null?void 0:a.substring(1):s==null?void 0:s.path;n.has(i)&&(s.checkedButtons=n.get(i)),s.children&&s.children.length>0&&s.children.forEach(r)}e.forEach(r)},ss=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=ss(n.children)),n}),is=e=>{for(const t in e)if(Array.isArray(e[t]))return t;return""},os=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=os(e[n+1]),n+=2):n+=1,t.push(r)}return t},as=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=os(e==null?void 0:e[n+1]),n+=2):n+=1,t.push(r)}return t},ln=(e,t="",n=new Map)=>e==null?void 0:e.map(r=>{const s=t?`${t}/${r.title}`:r.title;if(n.has(s))return n.get(s);const i={...r,path:s};return r.children&&r.children.length>0&&(i.children=ln(r.children,s,n)),n.set(s,i),i}),us=(e,t)=>e.reduce((n,r)=>{const s=r[t];return n[s]||(n[s]=[]),n[s].push(r),n},{}),ls=e=>{const t=[];function n(r,s){!r.children||r.children.length===0?t.push({...r,parentPath:s||""}):r.children.forEach(i=>n(i,r.path||s))}return e.forEach(r=>n(r,"")),t},cs=e=>Object.entries(e).map(([n,r])=>({path:n,checkedButtons:r==null?void 0:r.map(s=>s==null?void 0:s.path)})),al=e=>Object.prototype.toString.call(e)==="[object Object]"&&e!==null,ul=(e,t)=>{const n={},r=Array.isArray(e)?e==null?void 0:e.filter(s=>{var i;return!(al(s)&&((i=Object.keys(s))!=null&&i.includes("id")))}):null;return r&&(r==null||r.forEach((s,i)=>{var u;n[(u=t[i])==null?void 0:u.prop]=s})),n},Ee=o.ref(""),fs=e=>{var i;const t=e==null?void 0:e.find(u=>(u==null?void 0:u.key)==="tableContents"),n=e==null?void 0:e.find(u=>(u==null?void 0:u.key)==="header");if(!t||!n)return"";const r=(i=t==null?void 0:t.contents)==null?void 0:i[0],s=ul(r,n==null?void 0:n.contents);Ee.value=is(s)},ll=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},cl=e=>{const t=[];for(const n in e)e[n].forEach(s=>{var l,c;const i=(l=s.path)!=null&&l.startsWith("/")?(c=s.path)==null?void 0:c.substring(1):s.path,u=i==null?void 0:i.split("/");let a=t;u.forEach(d=>{let p=a.find(b=>b.title===d);p||(p={title:d,path:s.path,children:[]},a.push(p)),a=p.children})});return t},fl=e=>{const t={};return e.forEach(n=>{const{path:r,checkedButtons:s}=n,i=r,u=s.map(a=>({title:a.split("/").pop()||"",path:a,parentPath:i}));t[i]=u}),t},hs=e=>{let t=[];for(const n of e){let r=[n.title];if(n.children&&Array.isArray(n.children)){let s=hs(n.children);s.length>0&&r.push(s)}t.push(r)}return t},hl=e=>{const t=[];for(const n of e){if(!Array.isArray(n)||n.length!==2)continue;const[r,s]=n,i=ds(s),u=t.indexOf(r);u===-1?t.push(r,i):t[u+1]=ps(t[u+1],i)}return t},ds=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,s]=n;t.push(r,ds(s))}}return t},ps=(e,t)=>{const n=[...e];let r=0;for(;r<t.length;){const s=t[r];if(typeof s=="string"){const i=n.indexOf(s);i===-1?n.push(s,t[r+1]):n[i+1]=ps(n[i+1],t[r+1]),r+=2}else n.push(s),r+=1}return n},dl=async(e,t)=>{var n;if(Te.value=ae(t),st.setRefreshCurStructure(!1),(n=Ce.value)==null||n.splice(0),e==="授权"){if(!Ee.value){f.ElMessage.error("请正确定义角色权限");return}const r=ll(Te.value[Ee.value]);let s;if(r)s=Te.value[Ee.value];else{const i=as(Te.value[Ee.value]),u=ln(i),a=ls(u),l=us(a,"parentPath");s=cs(l)}if(!s||!Array.isArray(s)){f.ElMessage.error("权限数据处理出错了,请联系管理员");return}he.title=`【${t.角色名称}】授权`,he.show=!0,await o.nextTick(),ol(xe.value,s),il(s,xe.value)}},pl=()=>{he.show=!1},Ht=o.ref(),vl=async e=>{const t=await _e(f.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:e}},"查询"),n=t==null?void 0:t.map(r=>{var s;return{id:r.id,tableData:(s=r==null?void 0:r.value)==null?void 0:s.tableData}});return n==null?void 0:n.map(r=>{var s;if(Array.isArray(r==null?void 0:r.tableData)){let i={id:r.id};return(s=r==null?void 0:r.tableData)==null||s.forEach((u,a)=>{i[`a${a}`]=u}),i}else return{...r.tableData,id:r.id}})},Fe=(e,t)=>{let n={};if(t==null||t.forEach(r=>{r.label&&e&&(n[r.label]=(e==null?void 0:e[r==null?void 0:r.prop])??null)}),n!=null&&n.id){const{id:r,...s}=n;return s}return n},gl=async(e,t)=>{var i,u;let n=[];Array.isArray(e)?n=ae(e):n=[ae(e)];const r=(i=n==null?void 0:n.filter(a=>typeof(a==null?void 0:a.id)=="string"))==null?void 0:i.map(a=>{var l,c,d,p,b;return{key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:(l=tt.value)!=null&&l.startsWith("/")?(c=tt.value)==null?void 0:c.substring(1):tt.value,tableId:t,createUserId:(d=At.value)==null?void 0:d.id,createUserOrg:((p=At.value)==null?void 0:p.dept)||((b=At.value)==null?void 0:b.部门名称)},value:{tableData:Fe(a,jt.value)}}}),s=(u=n==null?void 0:n.filter(a=>typeof(a==null?void 0:a.id)=="number"))==null?void 0:u.map(a=>({id:a==null?void 0:a.id,value:{tableData:Fe(a,jt.value)}}));r.length>0&&await _e(f.batchAddInsofDataApi,{dataList:r},"新增"),s.length>0&&(await _e(f.batchUpdateInsofDataApi,{dataList:s},"编辑"),he.show=!1)},cn=async(e,t,n,r)=>{if(!(t!=null&&t.includes("删除")))await gl(e,n);else{let s=[];t!=null&&t.includes("批量")?s=r&&(r==null?void 0:r.length)>0?r==null?void 0:r.map(i=>i==null?void 0:i.id):[]:s=[e==null?void 0:e.id],await _e(f.batchDeleteInsofDataApi,{ids:s},"编辑")}},vs=e=>{let t=[];return e==null||e.forEach(n=>{var r;if(n.checkedButtons&&((r=n.checkedButtons)==null?void 0:r.length)>0){const s={path:n.path,checkedButtons:n.checkedButtons};t=t.concat(s)}n.children&&(t=t.concat(vs(n.children)))}),t},yl=()=>{const e=vs(xe.value),t=fl(e),n=cl(t),r=hs(n),s=hl(r);Ht.value={...Te.value,[Ee.value]:s},o.nextTick(()=>{cn(Ht.value,"编辑",dt.value)})},he=o.reactive({show:!1,title:"角色授权",width:"30%",draggable:!0}),bl=({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":""},dt=o.ref(0),gs=async e=>{var r,s,i,u,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&&(s=n==null?void 0:n.data)!=null&&s.result&&((i=n==null?void 0:n.data)==null?void 0:i.result.length)>0&&(t=(a=(u=n==null?void 0:n.data.result)==null?void 0:u[0])==null?void 0:a.id,dt.value=t),t},xe=o.ref([]),ml=o.ref([{path:"资源管理",buttons:["查询","新增","编辑","删除"]},{path:"资源管理/人员",buttons:["查询","新增","编辑","删除"]}]),Sl=(e,t)=>{var n;e.checkedButtons=t?(n=e.renderButtons)==null?void 0:n.map(r=>r.path):[]},Ce=o.ref([]),Tl=(e,t)=>{var n,r,s;t.checkedButtons=e,((n=t.checkedButtons)==null?void 0:n.length)===((r=t.renderButtons)==null?void 0:r.length)?Ce.value.push(t.path):(e==null?void 0:e.length)===0&&(Ce.value=(s=Ce.value)==null?void 0:s.filter(i=>i!==t.path))};o.watch(()=>Ce.value.length,()=>{var e;(e=un.value)==null||e.setCheckedKeys([...Ce.value])});o.watch(()=>he.show,e=>{e||(xe.value=ss(xe.value))});const ys=o.computed(()=>{var n;const e=(n=ae(Zu.value))==null?void 0:n.filter(r=>{var s,i;return((i=(s=r==null?void 0:r.key)==null?void 0:s.pageKey)==null?void 0:i.toUpperCase())!=="MENU"});return[...e==null?void 0:e.map(r=>{var u,a,l,c,d,p,b,g;const s=/button/i;let i=(l=(a=(u=r==null?void 0:r.value)==null?void 0:u.pageData)==null?void 0:a.compData)==null?void 0:l.filter(h=>s.test(h==null?void 0:h.key));return i=Array.from(new Set(i==null?void 0:i.flatMap(h=>h.contents.map(m=>m.label)))),{path:(d=(c=r==null?void 0:r.key)==null?void 0:c.pageKey)!=null&&d.startsWith("/")?(b=(p=r==null?void 0:r.key)==null?void 0:p.pageKey)==null?void 0:b.substring(1):(g=r==null?void 0:r.key)==null?void 0:g.pageKey,buttons:i}}),...bs.value]}),bs=o.ref([]),El=(e,t,n)=>{const s=[e==null?void 0:e.find(i=>(i==null?void 0:i.title)===t)].flatMap(i=>i==null?void 0:i.children);return s==null?void 0:s.map(i=>{var u,a;return{path:(u=i==null?void 0:i.path)!=null&&u.startsWith("/")?(a=i==null?void 0:i.path)==null?void 0:a.substring(1):i==null?void 0:i.path,buttons:n}})},cr=(e,t)=>{var n;if(e.carryData){if(e.path==="系统管理/个人中心"){const s=["基本信息","上传头像","签名","修改密码"];return s==null?void 0:s.map(i=>{var u,a;return{title:i,path:(u=e==null?void 0:e.path)!=null&&u.startsWith("/")?((a=e==null?void 0:e.path)==null?void 0:a.substring(1))+"/"+i:e.path+"/"+i}})}if(!(t!=null&&t.buttons)||!Array.isArray(t==null?void 0:t.buttons))return[];const r=(n=t==null?void 0:t.buttons)!=null&&n.includes("查看")?t==null?void 0:t.buttons:["查看",...t==null?void 0:t.buttons];return r==null?void 0:r.map(s=>{var i,u;return{title:s,path:(i=e==null?void 0:e.path)!=null&&i.startsWith("/")?((u=e==null?void 0:e.path)==null?void 0:u.substring(1))+"/"+s:e.path+"/"+s}})}return[]},ms=(e,t)=>{if(Array.isArray(e))return e==null?void 0:e.map(n=>{var i,u;const r=(i=n==null?void 0:n.path)!=null&&i.startsWith("/")?(u=n==null?void 0:n.path)==null?void 0:u.substring(1):n==null?void 0:n.path,s=t==null?void 0:t.find(a=>(a==null?void 0:a.path)===r);return n.children&&n.children.length>0?{...n,renderButtons:cr(n,s),checkedButtons:[],children:ms(n.children,ys.value)}:{...n,renderButtons:cr(n,s),checkedButtons:[]}})},wl={comp:"Group",name:"/系统管理/角色管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:ts.value,name:""}]}]},Cl=Object.freeze(Object.defineProperty({__proto__:null,addButtonsToTree:ms,addPathToTree:ln,authorizeDialog:he,buttonValue:el,changedRow:Ht,clickRow:Te,clickRowButton:dl,clickSubmitAuthority:yl,closeAuthorizeDialog:pl,compName:ns,convertArrayToTree:as,convertIndexToLabel:Fe,customNodeClass:bl,getActivePageStructureId:gs,getAuthorityKey:fs,getFirstArrayProperty:is,getLeafNodesRecursive:ls,getPageDataAsync:vl,groupByField:us,handleAddSysMenusButtons:El,handleItemDataChange:sl,handleNodeBtnChange:Tl,handleNodeCheckChange:Sl,handleQueryChange:nl,handleRowAuthorityRender:cs,handleSubmitAsync:_e,isPageDataExist:tl,menuData:xe,menusButtons:ml,pageData:ts,pageDataFiltered:rl,queryFormData:Qu,structureButtons:ys,structureId:dt,submitTableAsyncByVerify:cn,tempRolePageData:wl,tempSysMenus:bs,treeRef:un},Symbol.toStringTag,{value:"Module"}));var Al="0123456789abcdefghijklmnopqrstuvwxyz";function Q(e){return Al.charAt(e)}function xl(e,t){return e&t}function Ge(e,t){return e|t}function fr(e,t){return e^t}function hr(e,t){return e&~t}function Bl(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 Dl(e){for(var t=0;e!=0;)e&=e-1,++t;return t}var Se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ss="=";function it(e){var t,n,r="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),r+=Se.charAt(n>>6)+Se.charAt(n&63);for(t+1==e.length?(n=parseInt(e.substring(t,t+1),16),r+=Se.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),r+=Se.charAt(n>>2)+Se.charAt((n&3)<<4));(r.length&3)>0;)r+=Ss;return r}function dr(e){var t="",n,r=0,s=0;for(n=0;n<e.length&&e.charAt(n)!=Ss;++n){var i=Se.indexOf(e.charAt(n));i<0||(r==0?(t+=Q(i>>2),s=i&3,r=1):r==1?(t+=Q(s<<2|i>>4),s=i&15,r=2):r==2?(t+=Q(s),t+=Q(i>>2),s=i&3,r=3):(t+=Q(s<<2|i>>4),t+=Q(i&15),r=0))}return r==1&&(t+=Q(s<<2)),t}var ye,Il={decode:function(e){var t;if(ye===void 0){var n="0123456789ABCDEF",r=` \f
8
- \r  \u2028\u2029`;for(ye={},t=0;t<16;++t)ye[n.charAt(t)]=t;for(n=n.toLowerCase(),t=10;t<16;++t)ye[n.charAt(t)]=t;for(t=0;t<r.length;++t)ye[r.charAt(t)]=-1}var s=[],i=0,u=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if(a=="=")break;if(a=ye[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);i|=a,++u>=2?(s[s.length]=i,i=0,u=0):i<<=4}}if(u)throw new Error("Hex encoding incomplete: 4 bits missing");return s}},ue,Kt={decode:function(e){var t;if(ue===void 0){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=`= \f
9
- \r  \u2028\u2029`;for(ue=Object.create(null),t=0;t<64;++t)ue[n.charAt(t)]=t;for(ue["-"]=62,ue._=63,t=0;t<r.length;++t)ue[r.charAt(t)]=-1}var s=[],i=0,u=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if(a=="=")break;if(a=ue[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);i|=a,++u>=4?(s[s.length]=i>>16,s[s.length]=i>>8&255,s[s.length]=i&255,i=0,u=0):i<<=6}}switch(u){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:s[s.length]=i>>10;break;case 3:s[s.length]=i>>16,s[s.length]=i>>8&255;break}return s},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=Kt.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 Kt.decode(e)}},be=1e13,Oe=function(){function e(t){this.buf=[+t||0]}return e.prototype.mulAdd=function(t,n){var r=this.buf,s=r.length,i,u;for(i=0;i<s;++i)u=r[i]*t+n,u<be?n=0:(n=0|u/be,u-=n*be),r[i]=u;n>0&&(r[i]=n)},e.prototype.sub=function(t){var n=this.buf,r=n.length,s,i;for(s=0;s<r;++s)i=n[s]-t,i<0?(i+=be,t=1):t=0,n[s]=i;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(),s=n.length-2;s>=0;--s)r+=(be+n[s]).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*be+t[r];return n},e.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},e}(),Ts="…",kl=/^(\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)?)?$/,Ml=/^(\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 Ae(e,t){return e.length>t&&(e=e.substring(0,t)+Ts),e}var xt=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 s="",i=t;i<n;++i)if(s+=this.hexByte(this.get(i)),r!==!0)switch(i&15){case 7:s+=" ";break;case 15:s+=`
10
- `;break;default:s+=" "}return s},e.prototype.isASCII=function(t,n){for(var r=t;r<n;++r){var s=this.get(r);if(s<32||s>176)return!1}return!0},e.prototype.parseStringISO=function(t,n){for(var r="",s=t;s<n;++s)r+=String.fromCharCode(this.get(s));return r},e.prototype.parseStringUTF=function(t,n){for(var r="",s=t;s<n;){var i=this.get(s++);i<128?r+=String.fromCharCode(i):i>191&&i<224?r+=String.fromCharCode((i&31)<<6|this.get(s++)&63):r+=String.fromCharCode((i&15)<<12|(this.get(s++)&63)<<6|this.get(s++)&63)}return r},e.prototype.parseStringBMP=function(t,n){for(var r="",s,i,u=t;u<n;)s=this.get(u++),i=this.get(u++),r+=String.fromCharCode(s<<8|i);return r},e.prototype.parseTime=function(t,n,r){var s=this.parseStringISO(t,n),i=(r?kl:Ml).exec(s);return i?(r&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),s=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(s+=":"+i[5],i[6]&&(s+=":"+i[6],i[7]&&(s+="."+i[7]))),i[8]&&(s+=" UTC",i[8]!="Z"&&(s+=i[8],i[9]&&(s+=":"+i[9]))),s):"Unrecognized time: "+s},e.prototype.parseInteger=function(t,n){for(var r=this.get(t),s=r>127,i=s?255:0,u,a="";r==i&&++t<n;)r=this.get(t);if(u=n-t,u===0)return s?-1:0;if(u>4){for(a=r,u<<=3;((+a^i)&128)==0;)a=+a<<1,--u;a="("+u+` bit)
11
- `}s&&(r=r-256);for(var l=new Oe(r),c=t+1;c<n;++c)l.mulAdd(256,this.get(c));return a+l.toString()},e.prototype.parseBitString=function(t,n,r){for(var s=this.get(t),i=(n-t-1<<3)-s,u="("+i+` bit)
12
- `,a="",l=t+1;l<n;++l){for(var c=this.get(l),d=l==n-1?s:0,p=7;p>=d;--p)a+=c>>p&1?"1":"0";if(a.length>r)return u+Ae(a,r)}return u+a},e.prototype.parseOctetString=function(t,n,r){if(this.isASCII(t,n))return Ae(this.parseStringISO(t,n),r);var s=n-t,i="("+s+` byte)
13
- `;r/=2,s>r&&(n=t+r);for(var u=t;u<n;++u)i+=this.hexByte(this.get(u));return s>r&&(i+=Ts),i},e.prototype.parseOID=function(t,n,r){for(var s="",i=new Oe,u=0,a=t;a<n;++a){var l=this.get(a);if(i.mulAdd(128,l&127),u+=7,!(l&128)){if(s==="")if(i=i.simplify(),i instanceof Oe)i.sub(80),s="2."+i.toString();else{var c=i<80?i<40?0:1:2;s=c+"."+(i-c*40)}else s+="."+i.toString();if(s.length>r)return Ae(s,r);i=new Oe,u=0}}return u>0&&(s+=".incomplete"),s},e}(),Rl=function(){function e(t,n,r,s,i){if(!(s instanceof pr))throw new Error("Invalid tag value.");this.stream=t,this.header=n,this.length=r,this.tag=s,this.sub=i}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 Ae(this.stream.parseStringUTF(n,n+r),t);case 18:case 19:case 20:case 21:case 22:case 26:return Ae(this.stream.parseStringISO(n,n+r),t);case 30:return Ae(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,s=this.sub.length;r<s;++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 s=0;s<r;++s)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 xt?n=t:n=new xt(t,0);var r=new xt(n),s=new pr(n),i=e.decodeLength(n),u=n.pos,a=u-r.pos,l=null,c=function(){var p=[];if(i!==null){for(var b=u+i;n.pos<b;)p[p.length]=e.decode(n);if(n.pos!=b)throw new Error("Content size is not correct for container starting at offset "+u)}else try{for(;;){var g=e.decode(n);if(g.tag.isEOC())break;p[p.length]=g}i=u-n.pos}catch(h){throw new Error("Exception while decoding undefined length content: "+h)}return p};if(s.tagConstructed)l=c();else if(s.isUniversal()&&(s.tagNumber==3||s.tagNumber==4))try{if(s.tagNumber==3&&n.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");l=c();for(var d=0;d<l.length;++d)if(l[d].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{l=null}if(l===null){if(i===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+u);n.pos=u+Math.abs(i)}return new e(r,a,i,s,l)},e}(),pr=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 Oe;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,vr=(Ol&16777215)==15715070,K=[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],Nl=(1<<26)/K[K.length-1],C=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,s,i=!1,u="",a=this.t,l=this.DB-a*this.DB%n;if(a-- >0)for(l<this.DB&&(s=this[a]>>l)>0&&(i=!0,u=Q(s));a>=0;)l<n?(s=(this[a]&(1<<l)-1)<<n-l,s|=this[--a]>>(l+=this.DB-n)):(s=this[a]>>(l-=n)&r,l<=0&&(l+=this.DB,--a)),s>0&&(i=!0),i&&(u+=Q(s));return i?u:"0"},e.prototype.negate=function(){var t=A();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)+We(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var n=A();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 gr(n):r=new yr(n),this.exp(t,r)},e.prototype.clone=function(){var t=A();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,s,i=0;if(t-- >0)for(r<this.DB&&(s=this[t]>>r)!=(this.s&this.DM)>>r&&(n[i++]=s|this.s<<this.DB-r);t>=0;)r<8?(s=(this[t]&(1<<r)-1)<<8-r,s|=this[--t]>>(r+=this.DB-8)):(s=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),(s&128)!=0&&(s|=-256),i==0&&(this.s&128)!=(s&128)&&++i,(i>0||s!=this.s)&&(n[i++]=s);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=A();return this.bitwiseTo(t,xl,n),n},e.prototype.or=function(t){var n=A();return this.bitwiseTo(t,Ge,n),n},e.prototype.xor=function(t){var n=A();return this.bitwiseTo(t,fr,n),n},e.prototype.andNot=function(t){var n=A();return this.bitwiseTo(t,hr,n),n},e.prototype.not=function(){for(var t=A(),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=A();return t<0?this.rShiftTo(-t,n):this.lShiftTo(t,n),n},e.prototype.shiftRight=function(t){var n=A();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+Bl(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+=Dl(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,Ge)},e.prototype.clearBit=function(t){return this.changeBit(t,hr)},e.prototype.flipBit=function(t){return this.changeBit(t,fr)},e.prototype.add=function(t){var n=A();return this.addTo(t,n),n},e.prototype.subtract=function(t){var n=A();return this.subTo(t,n),n},e.prototype.multiply=function(t){var n=A();return this.multiplyTo(t,n),n},e.prototype.divide=function(t){var n=A();return this.divRemTo(t,n,null),n},e.prototype.remainder=function(t){var n=A();return this.divRemTo(t,null,n),n},e.prototype.divideAndRemainder=function(t){var n=A(),r=A();return this.divRemTo(t,n,r),[n,r]},e.prototype.modPow=function(t,n){var r=t.bitLength(),s,i=re(1),u;if(r<=0)return i;r<18?s=1:r<48?s=3:r<144?s=4:r<768?s=5:s=6,r<8?u=new gr(n):n.isEven()?u=new Vl(n):u=new yr(n);var a=[],l=3,c=s-1,d=(1<<s)-1;if(a[1]=u.convert(this),s>1){var p=A();for(u.sqrTo(a[1],p);l<=d;)a[l]=A(),u.mulTo(p,a[l-2],a[l]),l+=2}var b=t.t-1,g,h=!0,m=A(),S;for(r=We(t[b])-1;b>=0;){for(r>=c?g=t[b]>>r-c&d:(g=(t[b]&(1<<r+1)-1)<<c-r,b>0&&(g|=t[b-1]>>this.DB+r-c)),l=s;(g&1)==0;)g>>=1,--l;if((r-=l)<0&&(r+=this.DB,--b),h)a[g].copyTo(i),h=!1;else{for(;l>1;)u.sqrTo(i,m),u.sqrTo(m,i),l-=2;l>0?u.sqrTo(i,m):(S=i,i=m,m=S),u.mulTo(m,a[g],i)}for(;b>=0&&(t[b]&1<<r)==0;)u.sqrTo(i,m),S=i,i=m,m=S,--r<0&&(r=this.DB-1,--b)}return u.revert(i)},e.prototype.modInverse=function(t){var n=t.isEven();if(this.isEven()&&n||t.signum()==0)return e.ZERO;for(var r=t.clone(),s=this.clone(),i=re(1),u=re(0),a=re(0),l=re(1);r.signum()!=0;){for(;r.isEven();)r.rShiftTo(1,r),n?((!i.isEven()||!u.isEven())&&(i.addTo(this,i),u.subTo(t,u)),i.rShiftTo(1,i)):u.isEven()||u.subTo(t,u),u.rShiftTo(1,u);for(;s.isEven();)s.rShiftTo(1,s),n?((!a.isEven()||!l.isEven())&&(a.addTo(this,a),l.subTo(t,l)),a.rShiftTo(1,a)):l.isEven()||l.subTo(t,l),l.rShiftTo(1,l);r.compareTo(s)>=0?(r.subTo(s,r),n&&i.subTo(a,i),u.subTo(l,u)):(s.subTo(r,s),n&&a.subTo(i,a),l.subTo(u,l))}if(s.compareTo(e.ONE)!=0)return e.ZERO;if(l.compareTo(t)>=0)return l.subtract(t);if(l.signum()<0)l.addTo(t,l);else return l;return l.signum()<0?l.add(t):l},e.prototype.pow=function(t){return this.exp(t,new Pl)},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 s=n;n=r,r=s}var i=n.getLowestSetBit(),u=r.getLowestSetBit();if(u<0)return n;for(i<u&&(u=i),u>0&&(n.rShiftTo(u,n),r.rShiftTo(u,r));n.signum()>0;)(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r));return u>0&&r.lShiftTo(u,r),r},e.prototype.isProbablePrime=function(t){var n,r=this.abs();if(r.t==1&&r[0]<=K[K.length-1]){for(n=0;n<K.length;++n)if(r[0]==K[n])return!0;return!1}if(r.isEven())return!1;for(n=1;n<K.length;){for(var s=K[n],i=n+1;i<K.length&&s<Nl;)s*=K[i++];for(s=r.modInt(s);n<i;)if(s%K[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 s=t.length,i=!1,u=0;--s>=0;){var a=r==8?+t[s]&255:mr(t,s);if(a<0){t.charAt(s)=="-"&&(i=!0);continue}i=!1,u==0?this[this.t++]=a:u+r>this.DB?(this[this.t-1]|=(a&(1<<this.DB-u)-1)<<u,this[this.t++]=a>>this.DB-u):this[this.t-1]|=a<<u,u+=r,u>=this.DB&&(u-=this.DB)}r==8&&(+t[0]&128)!=0&&(this.s=-1,u>0&&(this[this.t-1]|=(1<<this.DB-u)-1<<u)),this.clamp(),i&&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,s=this.DB-r,i=(1<<s)-1,u=Math.floor(t/this.DB),a=this.s<<r&this.DM,l=this.t-1;l>=0;--l)n[l+u+1]=this[l]>>s|a,a=(this[l]&i)<<r;for(var l=u-1;l>=0;--l)n[l]=0;n[u]=a,n.t=this.t+u+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 s=t%this.DB,i=this.DB-s,u=(1<<s)-1;n[0]=this[r]>>s;for(var a=r+1;a<this.t;++a)n[a-r-1]|=(this[a]&u)<<i,n[a-r]=this[a]>>s;s>0&&(n[this.t-r-1]|=(this.s&u)<<i),n.t=this.t-r,n.clamp()},e.prototype.subTo=function(t,n){for(var r=0,s=0,i=Math.min(t.t,this.t);r<i;)s+=this[r]-t[r],n[r++]=s&this.DM,s>>=this.DB;if(t.t<this.t){for(s-=t.s;r<this.t;)s+=this[r],n[r++]=s&this.DM,s>>=this.DB;s+=this.s}else{for(s+=this.s;r<t.t;)s-=t[r],n[r++]=s&this.DM,s>>=this.DB;s-=t.s}n.s=s<0?-1:0,s<-1?n[r++]=this.DV+s:s>0&&(n[r++]=s),n.t=r,n.clamp()},e.prototype.multiplyTo=function(t,n){var r=this.abs(),s=t.abs(),i=r.t;for(n.t=i+s.t;--i>=0;)n[i]=0;for(i=0;i<s.t;++i)n[i+r.t]=r.am(0,s[i],n,i,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 s=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,s,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 s=t.abs();if(!(s.t<=0)){var i=this.abs();if(i.t<s.t){n!=null&&n.fromInt(0),r!=null&&this.copyTo(r);return}r==null&&(r=A());var u=A(),a=this.s,l=t.s,c=this.DB-We(s[s.t-1]);c>0?(s.lShiftTo(c,u),i.lShiftTo(c,r)):(s.copyTo(u),i.copyTo(r));var d=u.t,p=u[d-1];if(p!=0){var b=p*(1<<this.F1)+(d>1?u[d-2]>>this.F2:0),g=this.FV/b,h=(1<<this.F1)/b,m=1<<this.F2,S=r.t,T=S-d,E=n??A();for(u.dlShiftTo(T,E),r.compareTo(E)>=0&&(r[r.t++]=1,r.subTo(E,r)),e.ONE.dlShiftTo(d,E),E.subTo(u,u);u.t<d;)u[u.t++]=0;for(;--T>=0;){var k=r[--S]==p?this.DM:Math.floor(r[S]*g+(r[S-1]+m)*h);if((r[S]+=u.am(0,k,r,T,0,d))<k)for(u.dlShiftTo(T,E),r.subTo(E,r);r[S]<--k;)r.subTo(E,r)}n!=null&&(r.drShiftTo(d,n),a!=l&&e.ZERO.subTo(n,n)),r.t=d,r.clamp(),c>0&&r.rShiftTo(c,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=A(),s=A(),i=n.convert(this),u=We(t)-1;for(i.copyTo(r);--u>=0;)if(n.sqrTo(r,s),(t&1<<u)>0)n.mulTo(s,i,r);else{var a=r;r=s,s=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),s=re(r),i=A(),u=A(),a="";for(this.divRemTo(s,i,u);i.signum()>0;)a=(r+u.intValue()).toString(t).substr(1)+a,i.divRemTo(s,i,u);return u.intValue().toString(t)+a},e.prototype.fromRadix=function(t,n){this.fromInt(0),n==null&&(n=10);for(var r=this.chunkSize(n),s=Math.pow(n,r),i=!1,u=0,a=0,l=0;l<t.length;++l){var c=mr(t,l);if(c<0){t.charAt(l)=="-"&&this.signum()==0&&(i=!0);continue}a=n*a+c,++u>=r&&(this.dMultiply(s),this.dAddOffset(a,0),u=0,a=0)}u>0&&(this.dMultiply(Math.pow(n,u)),this.dAddOffset(a,0)),i&&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),Ge,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 s=[],i=t&7;s.length=(t>>3)+1,n.nextBytes(s),i>0?s[0]&=(1<<i)-1:s[0]=0,this.fromString(s,256)}},e.prototype.bitwiseTo=function(t,n,r){var s,i,u=Math.min(t.t,this.t);for(s=0;s<u;++s)r[s]=n(this[s],t[s]);if(t.t<this.t){for(i=t.s&this.DM,s=u;s<this.t;++s)r[s]=n(this[s],i);r.t=this.t}else{for(i=this.s&this.DM,s=u;s<t.t;++s)r[s]=n(i,t[s]);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,s=0,i=Math.min(t.t,this.t);r<i;)s+=this[r]+t[r],n[r++]=s&this.DM,s>>=this.DB;if(t.t<this.t){for(s+=t.s;r<this.t;)s+=this[r],n[r++]=s&this.DM,s>>=this.DB;s+=this.s}else{for(s+=this.s;r<t.t;)s+=t[r],n[r++]=s&this.DM,s>>=this.DB;s+=t.s}n.s=s<0?-1:0,s>0?n[r++]=s:s<-1&&(n[r++]=this.DV+s),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 s=Math.min(this.t+t.t,n);for(r.s=0,r.t=s;s>0;)r[--s]=0;for(var i=r.t-this.t;s<i;++s)r[s+this.t]=this.am(0,t[s],r,s,0,this.t);for(var i=Math.min(t.t,n);s<i;++s)this.am(0,t[s],r,s,0,n-s);r.clamp()},e.prototype.multiplyUpperTo=function(t,n,r){--n;var s=r.t=this.t+t.t-n;for(r.s=0;--s>=0;)r[s]=0;for(s=Math.max(n-this.t,0);s<t.t;++s)r[this.t+s-n]=this.am(n-s,t[s],r,0,0,this.t+s-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 s=this.t-1;s>=0;--s)r=(n*r+this[s])%t;return r},e.prototype.millerRabin=function(t){var n=this.subtract(e.ONE),r=n.getLowestSetBit();if(r<=0)return!1;var s=n.shiftRight(r);t=t+1>>1,t>K.length&&(t=K.length);for(var i=A(),u=0;u<t;++u){i.fromInt(K[Math.floor(Math.random()*K.length)]);var a=i.modPow(s,this);if(a.compareTo(e.ONE)!=0&&a.compareTo(n)!=0){for(var l=1;l++<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=A();return this.squareTo(t),t},e.prototype.gcda=function(t,n){var r=this.s<0?this.negate():this.clone(),s=t.s<0?t.negate():t.clone();if(r.compareTo(s)<0){var i=r;r=s,s=i}var u=r.getLowestSetBit(),a=s.getLowestSetBit();if(a<0){n(r);return}u<a&&(a=u),a>0&&(r.rShiftTo(a,r),s.rShiftTo(a,s));var l=function(){(u=r.getLowestSetBit())>0&&r.rShiftTo(u,r),(u=s.getLowestSetBit())>0&&s.rShiftTo(u,s),r.compareTo(s)>=0?(r.subTo(s,r),r.rShiftTo(1,r)):(s.subTo(r,s),s.rShiftTo(1,s)),r.signum()>0?setTimeout(l,0):(a>0&&s.lShiftTo(a,s),setTimeout(function(){n(s)},0))};setTimeout(l,10)},e.prototype.fromNumberAsync=function(t,n,r,s){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),Ge,this),this.isEven()&&this.dAddOffset(1,0);var i=this,u=function(){i.dAddOffset(2,0),i.bitLength()>t&&i.subTo(e.ONE.shiftLeft(t-1),i),i.isProbablePrime(n)?setTimeout(function(){s()},0):setTimeout(u,0)};setTimeout(u,0)}else{var a=[],l=t&7;a.length=(t>>3)+1,n.nextBytes(a),l>0?a[0]&=(1<<l)-1:a[0]=0,this.fromString(a,256)}},e}(),Pl=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}(),gr=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}(),yr=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=A();return t.abs().dlShiftTo(this.m.t,n),n.divRemTo(this.m,null,n),t.s<0&&n.compareTo(C.ZERO)>0&&this.m.subTo(n,n),n},e.prototype.revert=function(t){var n=A();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,s=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,s,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}(),Vl=function(){function e(t){this.m=t,this.r2=A(),this.q3=A(),C.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=A();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 A(){return new C(null)}function M(e,t){return new C(e,t)}var br=typeof navigator<"u";br&&vr&&navigator.appName=="Microsoft Internet Explorer"?(C.prototype.am=function(t,n,r,s,i,u){for(var a=n&32767,l=n>>15;--u>=0;){var c=this[t]&32767,d=this[t++]>>15,p=l*c+d*a;c=a*c+((p&32767)<<15)+r[s]+(i&1073741823),i=(c>>>30)+(p>>>15)+l*d+(i>>>30),r[s++]=c&1073741823}return i},oe=30):br&&vr&&navigator.appName!="Netscape"?(C.prototype.am=function(t,n,r,s,i,u){for(;--u>=0;){var a=n*this[t++]+r[s]+i;i=Math.floor(a/67108864),r[s++]=a&67108863}return i},oe=26):(C.prototype.am=function(t,n,r,s,i,u){for(var a=n&16383,l=n>>14;--u>=0;){var c=this[t]&16383,d=this[t++]>>14,p=l*c+d*a;c=a*c+((p&16383)<<14)+r[s]+i,i=(c>>28)+(p>>14)+l*d,r[s++]=c&268435455}return i},oe=28);C.prototype.DB=oe;C.prototype.DM=(1<<oe)-1;C.prototype.DV=1<<oe;var fn=52;C.prototype.FV=Math.pow(2,fn);C.prototype.F1=fn-oe;C.prototype.F2=2*oe-fn;var pt=[],ke,G;ke=48;for(G=0;G<=9;++G)pt[ke++]=G;ke=97;for(G=10;G<36;++G)pt[ke++]=G;ke=65;for(G=10;G<36;++G)pt[ke++]=G;function mr(e,t){var n=pt[e.charCodeAt(t)];return n??-1}function re(e){var t=A();return t.fromInt(e),t}function We(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}C.ZERO=re(0);C.ONE=re(1);var Ll=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(t){var n,r,s;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,s=this.S[n],this.S[n]=this.S[r],this.S[r]=s;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 _l(){return new Ll}var Es=256,Ye,ie=null,Z;if(ie==null){ie=[],Z=0;var Ze=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var Bt=new Uint32Array(256);for(window.crypto.getRandomValues(Bt),Ze=0;Ze<Bt.length;++Ze)ie[Z++]=Bt[Ze]&255}var Xe=0,Je=function(e){if(Xe=Xe||0,Xe>=256||Z>=Es){window.removeEventListener?window.removeEventListener("mousemove",Je,!1):window.detachEvent&&window.detachEvent("onmousemove",Je);return}try{var t=e.x+e.y;ie[Z++]=t&255,Xe+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",Je,!1):window.attachEvent&&window.attachEvent("onmousemove",Je))}function Fl(){if(Ye==null){for(Ye=_l();Z<Es;){var e=Math.floor(65536*Math.random());ie[Z++]=e&255}for(Ye.init(ie),Z=0;Z<ie.length;++Z)ie[Z]=0;Z=0}return Ye.next()}var Ut=function(){function e(){}return e.prototype.nextBytes=function(t){for(var n=0;n<t.length;++n)t[n]=Fl()},e}();function $l(e,t){if(t<e.length+22)return console.error("Message too long for RSA"),null;for(var n=t-e.length-6,r="",s=0;s<n;s+=2)r+="ff";var i="0001"+r+"00"+e;return M(i,16)}function jl(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 s=e.charCodeAt(r--);s<128?n[--t]=s:s>127&&s<2048?(n[--t]=s&63|128,n[--t]=s>>6|192):(n[--t]=s&63|128,n[--t]=s>>6&63|128,n[--t]=s>>12|224)}n[--t]=0;for(var i=new Ut,u=[];t>2;){for(u[0]=0;u[0]==0;)i.nextBytes(u);n[--t]=u[0]}return n[--t]=2,n[--t]=0,new C(n)}var Hl=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=M(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=jl(t,n);if(r==null)return null;var s=this.doPublic(r);if(s==null)return null;for(var i=s.toString(16),u=i.length,a=0;a<n*2-u;a++)i="0"+i;return i},e.prototype.setPrivate=function(t,n,r){t!=null&&n!=null&&t.length>0&&n.length>0?(this.n=M(t,16),this.e=parseInt(n,16),this.d=M(r,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(t,n,r,s,i,u,a,l){t!=null&&n!=null&&t.length>0&&n.length>0?(this.n=M(t,16),this.e=parseInt(n,16),this.d=M(r,16),this.p=M(s,16),this.q=M(i,16),this.dmp1=M(u,16),this.dmq1=M(a,16),this.coeff=M(l,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(t,n){var r=new Ut,s=t>>1;this.e=parseInt(n,16);for(var i=new C(n,16);;){for(;this.p=new C(t-s,1,r),!(this.p.subtract(C.ONE).gcd(i).compareTo(C.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new C(s,1,r),!(this.q.subtract(C.ONE).gcd(i).compareTo(C.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var u=this.p;this.p=this.q,this.q=u}var a=this.p.subtract(C.ONE),l=this.q.subtract(C.ONE),c=a.multiply(l);if(c.gcd(i).compareTo(C.ONE)==0){this.n=this.p.multiply(this.q),this.d=i.modInverse(c),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(l),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(t){var n=M(t,16),r=this.doPrivate(n);return r==null?null:Kl(r,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(t,n,r){var s=new Ut,i=t>>1;this.e=parseInt(n,16);var u=new C(n,16),a=this,l=function(){var c=function(){if(a.p.compareTo(a.q)<=0){var b=a.p;a.p=a.q,a.q=b}var g=a.p.subtract(C.ONE),h=a.q.subtract(C.ONE),m=g.multiply(h);m.gcd(u).compareTo(C.ONE)==0?(a.n=a.p.multiply(a.q),a.d=u.modInverse(m),a.dmp1=a.d.mod(g),a.dmq1=a.d.mod(h),a.coeff=a.q.modInverse(a.p),setTimeout(function(){r()},0)):setTimeout(l,0)},d=function(){a.q=A(),a.q.fromNumberAsync(i,1,s,function(){a.q.subtract(C.ONE).gcda(u,function(b){b.compareTo(C.ONE)==0&&a.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(d,0)})})},p=function(){a.p=A(),a.p.fromNumberAsync(t-i,1,s,function(){a.p.subtract(C.ONE).gcda(u,function(b){b.compareTo(C.ONE)==0&&a.p.isProbablePrime(10)?setTimeout(d,0):setTimeout(p,0)})})};setTimeout(p,0)};setTimeout(l,0)},e.prototype.sign=function(t,n,r){var s=Ul(r),i=s+n(t).toString(),u=$l(i,this.n.bitLength()/4);if(u==null)return null;var a=this.doPrivate(u);if(a==null)return null;var l=a.toString(16);return(l.length&1)==0?l:"0"+l},e.prototype.verify=function(t,n,r){var s=M(n,16),i=this.doPublic(s);if(i==null)return null;var u=i.toString(16).replace(/^1f+00/,""),a=zl(u);return a==r(t).toString()},e}();function Kl(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 s="";++r<n.length;){var i=n[r]&255;i<128?s+=String.fromCharCode(i):i>191&&i<224?(s+=String.fromCharCode((i&31)<<6|n[r+1]&63),++r):(s+=String.fromCharCode((i&15)<<12|(n[r+1]&63)<<6|n[r+2]&63),r+=2)}return s}var nt={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Ul(e){return nt[e]||""}function zl(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 R={};R.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 s;for(s in n)e.prototype[s]=n[s];var i=function(){},u=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(i=function(a,l){for(s=0;s<u.length;s=s+1){var c=u[s],d=l[c];typeof d=="function"&&d!=Object.prototype[c]&&(a[c]=d)}})}catch{}i(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 v={};(typeof v.asn1>"u"||!v.asn1)&&(v.asn1={});v.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 s="",i=0;i<r;i++)s+="f";var u=new C(s,16),a=u.xor(e).add(C.ONE);t=a.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=v,n=t.asn1,r=n.DERBoolean,s=n.DERInteger,i=n.DERBitString,u=n.DEROctetString,a=n.DERNull,l=n.DERObjectIdentifier,c=n.DEREnumerated,d=n.DERUTF8String,p=n.DERNumericString,b=n.DERPrintableString,g=n.DERTeletexString,h=n.DERIA5String,m=n.DERUTCTime,S=n.DERGeneralizedTime,T=n.DERSequence,E=n.DERSet,k=n.DERTaggedObject,$=n.ASN1Util.newObject,H=Object.keys(e);if(H.length!=1)throw"key of param shall be only one.";var w=H[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+w+":")==-1)throw"undefined key: "+w;if(w=="bool")return new r(e[w]);if(w=="int")return new s(e[w]);if(w=="bitstr")return new i(e[w]);if(w=="octstr")return new u(e[w]);if(w=="null")return new a(e[w]);if(w=="oid")return new l(e[w]);if(w=="enum")return new c(e[w]);if(w=="utf8str")return new d(e[w]);if(w=="numstr")return new p(e[w]);if(w=="prnstr")return new b(e[w]);if(w=="telstr")return new g(e[w]);if(w=="ia5str")return new h(e[w]);if(w=="utctime")return new m(e[w]);if(w=="gentime")return new S(e[w]);if(w=="seq"){for(var O=e[w],L=[],_=0;_<O.length;_++){var W=$(O[_]);L.push(W)}return new T({array:L})}if(w=="set"){for(var O=e[w],L=[],_=0;_<O.length;_++){var W=$(O[_]);L.push(W)}return new E({array:L})}if(w=="tag"){var N=e[w];if(Object.prototype.toString.call(N)==="[object Array]"&&N.length==3){var P=$(N[2]);return new k({tag:N[0],explicit:N[1],obj:P})}else{var X={};if(N.explicit!==void 0&&(X.explicit=N.explicit),N.tag!==void 0&&(X.tag=N.tag),N.obj===void 0)throw"obj shall be specified for 'tag'.";return X.obj=$(N.obj),new k(X)}}},this.jsonToASN1HEX=function(e){var t=this.newObject(e);return t.getEncodedHex()}};v.asn1.ASN1Util.oidHexToInt=function(e){for(var s="",t=parseInt(e.substr(0,2),16),n=Math.floor(t/40),r=t%40,s=n+"."+r,i="",u=2;u<e.length;u+=2){var a=parseInt(e.substr(u,2),16),l=("00000000"+a.toString(2)).slice(-8);if(i=i+l.substr(1,7),l.substr(0,1)=="0"){var c=new C(i,2);s=s+"."+c.toString(10),i=""}}return s};v.asn1.ASN1Util.oidIntToHex=function(e){var t=function(a){var l=a.toString(16);return l.length==1&&(l="0"+l),l},n=function(a){var l="",c=new C(a,10),d=c.toString(2),p=7-d.length%7;p==7&&(p=0);for(var b="",g=0;g<p;g++)b+="0";d=b+d;for(var g=0;g<d.length-1;g+=7){var h=d.substr(g,7);g!=d.length-7&&(h="1"+h),l+=t(parseInt(h,2))}return l};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var r="",s=e.split("."),i=parseInt(s[0])*40+parseInt(s[1]);r+=t(i),s.splice(0,2);for(var u=0;u<s.length;u++)r+=n(s[u]);return r};v.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 s=128+r;return s.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""}};v.asn1.DERAbstractString=function(e){v.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))};R.lang.extend(v.asn1.DERAbstractString,v.asn1.ASN1Object);v.asn1.DERAbstractTime=function(e){v.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 s=this.zeroPadding,i=this.localDateToUTC(t),u=String(i.getFullYear());n=="utc"&&(u=u.substr(2,2));var a=s(String(i.getMonth()+1),2),l=s(String(i.getDate()),2),c=s(String(i.getHours()),2),d=s(String(i.getMinutes()),2),p=s(String(i.getSeconds()),2),b=u+a+l+c+d+p;if(r===!0){var g=i.getMilliseconds();if(g!=0){var h=s(String(g),3);h=h.replace(/[0]+$/,""),b=b+"."+h}}return b+"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,s,i,u){var a=new Date(Date.UTC(t,n-1,r,s,i,u,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}};R.lang.extend(v.asn1.DERAbstractTime,v.asn1.ASN1Object);v.asn1.DERAbstractStructured=function(e){v.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)};R.lang.extend(v.asn1.DERAbstractStructured,v.asn1.ASN1Object);v.asn1.DERBoolean=function(){v.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"};R.lang.extend(v.asn1.DERBoolean,v.asn1.ASN1Object);v.asn1.DERInteger=function(e){v.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=v.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var n=new C(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))};R.lang.extend(v.asn1.DERInteger,v.asn1.ASN1Object);v.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=v.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}v.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 s="0"+n;this.hTLV=null,this.isModified=!0,this.hV=s+r},this.setByBinaryString=function(n){n=n.replace(/0+$/,"");var r=8-n.length%8;r==8&&(r=0);for(var s=0;s<=r;s++)n+="0";for(var i="",s=0;s<n.length-1;s+=8){var u=n.substr(s,8),a=parseInt(u,2).toString(16);a.length==1&&(a="0"+a),i+=a}this.hTLV=null,this.isModified=!0,this.hV="0"+r+i},this.setByBooleanArray=function(n){for(var r="",s=0;s<n.length;s++)n[s]==!0?r+="1":r+="0";this.setByBinaryString(r)},this.newFalseArray=function(n){for(var r=new Array(n),s=0;s<n;s++)r[s]=!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))};R.lang.extend(v.asn1.DERBitString,v.asn1.ASN1Object);v.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=v.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}v.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"};R.lang.extend(v.asn1.DEROctetString,v.asn1.DERAbstractString);v.asn1.DERNull=function(){v.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"};R.lang.extend(v.asn1.DERNull,v.asn1.ASN1Object);v.asn1.DERObjectIdentifier=function(e){var t=function(r){var s=r.toString(16);return s.length==1&&(s="0"+s),s},n=function(r){var s="",i=new C(r,10),u=i.toString(2),a=7-u.length%7;a==7&&(a=0);for(var l="",c=0;c<a;c++)l+="0";u=l+u;for(var c=0;c<u.length-1;c+=7){var d=u.substr(c,7);c!=u.length-7&&(d="1"+d),s+=t(parseInt(d,2))}return s};v.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 s="",i=r.split("."),u=parseInt(i[0])*40+parseInt(i[1]);s+=t(u),i.splice(0,2);for(var a=0;a<i.length;a++)s+=n(i[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=s},this.setValueName=function(r){var s=v.asn1.x509.OID.name2oid(r);if(s!=="")this.setValueOidString(s);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))};R.lang.extend(v.asn1.DERObjectIdentifier,v.asn1.ASN1Object);v.asn1.DEREnumerated=function(e){v.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=v.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var n=new C(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))};R.lang.extend(v.asn1.DEREnumerated,v.asn1.ASN1Object);v.asn1.DERUTF8String=function(e){v.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"};R.lang.extend(v.asn1.DERUTF8String,v.asn1.DERAbstractString);v.asn1.DERNumericString=function(e){v.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"};R.lang.extend(v.asn1.DERNumericString,v.asn1.DERAbstractString);v.asn1.DERPrintableString=function(e){v.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"};R.lang.extend(v.asn1.DERPrintableString,v.asn1.DERAbstractString);v.asn1.DERTeletexString=function(e){v.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"};R.lang.extend(v.asn1.DERTeletexString,v.asn1.DERAbstractString);v.asn1.DERIA5String=function(e){v.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"};R.lang.extend(v.asn1.DERIA5String,v.asn1.DERAbstractString);v.asn1.DERUTCTime=function(e){v.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))};R.lang.extend(v.asn1.DERUTCTime,v.asn1.DERAbstractTime);v.asn1.DERGeneralizedTime=function(e){v.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))};R.lang.extend(v.asn1.DERGeneralizedTime,v.asn1.DERAbstractTime);v.asn1.DERSequence=function(e){v.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}};R.lang.extend(v.asn1.DERSequence,v.asn1.DERAbstractStructured);v.asn1.DERSet=function(e){v.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)};R.lang.extend(v.asn1.DERSet,v.asn1.DERAbstractStructured);v.asn1.DERTaggedObject=function(e){v.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)))};R.lang.extend(v.asn1.DERTaggedObject,v.asn1.ASN1Object);var ql=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]=s[i])},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)}}(),Sr=function(e){ql(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,s=0,i=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,u=i.test(n)?Il.decode(n):Kt.unarmor(n),a=Rl.decode(u);if(a.sub.length===3&&(a=a.sub[2].sub[0]),a.sub.length===9){r=a.sub[1].getHexStringValue(),this.n=M(r,16),s=a.sub[2].getHexStringValue(),this.e=parseInt(s,16);var l=a.sub[3].getHexStringValue();this.d=M(l,16);var c=a.sub[4].getHexStringValue();this.p=M(c,16);var d=a.sub[5].getHexStringValue();this.q=M(d,16);var p=a.sub[6].getHexStringValue();this.dmp1=M(p,16);var b=a.sub[7].getHexStringValue();this.dmq1=M(b,16);var g=a.sub[8].getHexStringValue();this.coeff=M(g,16)}else if(a.sub.length===2)if(a.sub[0].sub){var h=a.sub[1],m=h.sub[0];r=m.sub[0].getHexStringValue(),this.n=M(r,16),s=m.sub[1].getHexStringValue(),this.e=parseInt(s,16)}else r=a.sub[0].getHexStringValue(),this.n=M(r,16),s=a.sub[1].getHexStringValue(),this.e=parseInt(s,16);else return!1;return!0}catch{return!1}},t.prototype.getPrivateBaseKey=function(){var n={array:[new v.asn1.DERInteger({int:0}),new v.asn1.DERInteger({bigint:this.n}),new v.asn1.DERInteger({int:this.e}),new v.asn1.DERInteger({bigint:this.d}),new v.asn1.DERInteger({bigint:this.p}),new v.asn1.DERInteger({bigint:this.q}),new v.asn1.DERInteger({bigint:this.dmp1}),new v.asn1.DERInteger({bigint:this.dmq1}),new v.asn1.DERInteger({bigint:this.coeff})]},r=new v.asn1.DERSequence(n);return r.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return it(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var n=new v.asn1.DERSequence({array:[new v.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new v.asn1.DERNull]}),r=new v.asn1.DERSequence({array:[new v.asn1.DERInteger({bigint:this.n}),new v.asn1.DERInteger({int:this.e})]}),s=new v.asn1.DERBitString({hex:"00"+r.getEncodedHex()}),i=new v.asn1.DERSequence({array:[n,s]});return i.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return it(this.getPublicBaseKey())},t.wordwrap=function(n,r){if(r=r||64,!n)return n;var s="(.{1,"+r+`})( +|$
27
- ?)|(.{1,`+r+"})";return n.match(RegExp(s,"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}(Hl),Dt,Gl=typeof process<"u"?(Dt=process.env)===null||Dt===void 0?void 0:Dt.npm_package_version:void 0,hn=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 Sr(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(dr(t))}catch{return!1}},e.prototype.encrypt=function(t){try{return it(this.getKey().encrypt(t))}catch{return!1}},e.prototype.sign=function(t,n,r){try{return it(this.getKey().sign(t,n,r))}catch{return!1}},e.prototype.verify=function(t,n,r){try{return this.getKey().verify(t,dr(n),r)}catch{return!1}},e.prototype.getKey=function(t){if(!this.key){if(this.key=new Sr,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=Gl,e}();function Ne(e,t){const n=new hn;return n.setPublicKey(t),n.encrypt(e)||""}function ws(e,t){const n=new hn;return n.setPrivateKey(t),n.decrypt(e)||""}function Tr(){return typeof new hn().encrypt=="function"}const Cs=sn(f.pinia),{superAdminInfo:Wl,cryptoInfo:U,loginUserInfo:It}=f.storeToRefs(Cs),Yl=rn(f.pinia),{activeMenuPath:Ve}=f.storeToRefs(Yl),zt=on(f.pinia),Be="123456",Zl=an(f.pinia),{routerPageStructures:Xl}=f.storeToRefs(Zl),dn=o.ref(0),Jl=o.ref([{label:"用户名称",value:"",name:"userName"}]),we=o.computed(()=>{const e=sessionStorage.getItem("isSuperAdmin");return e?JSON.parse(e):!1}),Ql=e=>{console.log("handleQueryChange",e)},ot=o.ref([]),As=o.ref(""),at=o.computed(()=>{var t,n,r,s,i;const e=(t=Xl.value)==null?void 0:t.find(u=>{var a;return((a=u==null?void 0:u.comp)==null?void 0:a.toUpperCase())==="TABLE"});return e?(As.value=e.name,ot.value=(s=(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:s.filter(a=>(a==null?void 0:a.label)!=="操作"),(i=e==null?void 0:e.compData)==null?void 0:i.map(a=>{var l;if((a==null?void 0:a.key)==="rowButton"){const c=[...a==null?void 0:a.contents,{label:"重置密码"}];return{...a,contents:c}}return(a==null?void 0:a.key)==="header"?{...a,contents:(l=a==null?void 0:a.contents)==null?void 0:l.map(c=>{var d,p,b,g;return{...c,isTableColHidden:((d=c==null?void 0:c.prop)==null?void 0:d.includes("头像"))||((p=c==null?void 0:c.prop)==null?void 0:p.includes("签名")),isFormColHidden:((b=c==null?void 0:c.prop)==null?void 0:b.includes("头像"))||((g=c==null?void 0:c.prop)==null?void 0:g.includes("签名"))}})}:a})):[]}),ec=e=>{zt.setRefreshCurStructure(!1),vt(e.singleContent,e.buttonName,dn.value,e==null?void 0:e.selectItems)},qt=o.ref(),tc=e=>{console.log("onDoubleClick",e)},nc=(e,t)=>{e==="重置密码"&&Qr.confirm(`该操作将会重置【${(t==null?void 0:t.account)||(t==null?void 0:t.账号)}】的密码为【${Be}】,确认重置?`,"警告",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{qt.value={...t,password:Be},vt(qt.value,e,dn.value)}).catch(()=>{f.ElMessage.info("取消重置")})},rc=()=>{pn(Ve.value).then(e=>{var n;const t=Array.isArray(e)&&(e==null?void 0:e.filter(r=>(r==null?void 0:r.account)!==Wl.value.account));at.value=(n=at.value)==null?void 0:n.map(r=>r.key==="tableContents"?{...r,contents:t==null?void 0:t.map(s=>{var i;return{...s,password:ws(s==null?void 0:s.password,(i=U==null?void 0:U.value)==null?void 0:i.privateKey)}})}:r)})},De=async(e,t,n)=>{var r,s;try{const i=await e(t);return((r=i==null?void 0:i.data)==null?void 0:r.code)===200?(n!=="查询"&&await Cs.setLogRecordAsync({type:n,data:t},Ve.value),f.ElMessage.success("保存成功"),zt.setRefreshCurStructure(!0),i.data.result||((s=i==null?void 0:i.data)==null?void 0:s.code)===200):null}catch(i){f.ElMessage.error(i)}finally{zt.setCacheUpdatingData(null)}},sc=async(e,t)=>{var i,u;let n=[];Array.isArray(e)?n=ae(e):n=[ae(e)];const r=(i=n==null?void 0:n.filter(a=>typeof(a==null?void 0:a.id)=="string"))==null?void 0:i.map(a=>{var c,d,p,b,g,h,m;const l=Fe(a,ot.value);return Tr()&&l&&(!l.password&&we.value?l.password=Ne(Be,(c=U==null?void 0:U.value)==null?void 0:c.publicKey):l.password&&we.value&&(l.password=Ne(l==null?void 0:l.password,(d=U==null?void 0:U.value)==null?void 0:d.publicKey))),{key:{type:"data",layer:a==null?void 0:a.layer,systemKey:sessionStorage.getItem("systemKey"),pageKey:(p=Ve.value)!=null&&p.startsWith("/")?(b=Ve.value)==null?void 0:b.substring(1):Ve.value,tableId:t,createUserId:(g=It.value)==null?void 0:g.id,createUserOrg:((h=It.value)==null?void 0:h.dept)||((m=It.value)==null?void 0:m.部门名称)},value:{tableData:l}}}),s=(u=n==null?void 0:n.filter(a=>typeof(a==null?void 0:a.id)=="number"))==null?void 0:u.map(a=>{var c,d;const l=Fe(a,ot.value);return Tr()&&l&&(!l.password&&we.value?l.password=Ne(Be,(c=U==null?void 0:U.value)==null?void 0:c.publicKey):l.password&&we.value&&(l.password=Ne(l==null?void 0:l.password,(d=U==null?void 0:U.value)==null?void 0:d.publicKey))),{id:a==null?void 0:a.id,value:{tableData:l}}});r.length>0&&await De(f.batchAddInsofDataApi,{dataList:r},"新增"),s.length>0&&(await De(f.batchUpdateInsofDataApi,{dataList:s},"编辑"),he.show=!1)},vt=async(e,t,n,r)=>{if(!(t!=null&&t.includes("删除")))await sc(e,n);else{let s=[];t!=null&&t.includes("批量")?s=r&&(r==null?void 0:r.length)>0?r==null?void 0:r.map(i=>i==null?void 0:i.id):[]:s=[e==null?void 0:e.id],await De(f.batchDeleteInsofDataApi,{ids:s},"编辑")}},pn=async e=>{const t=await De(f.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:e}},"查询"),n=t==null?void 0:t.map(r=>{var s,i;return{id:r.id,layer:(s=r.key)==null?void 0:s.layer,tableData:(i=r==null?void 0:r.value)==null?void 0:i.tableData}});return n==null?void 0:n.map(r=>{var s;if(!Array.isArray(r==null?void 0:r.tableData))return{...r.tableData,layer:(s=r.key)==null?void 0:s.layer,id:r.id}})},ic={comp:"Group",name:"/系统管理/用户管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:at.value,name:""}]}]},oc=Object.freeze(Object.defineProperty({__proto__:null,changedRow:qt,clickRowButton:nc,columns:ot,compName:As,getPageDataAsync:pn,handleItemDataChange:ec,handleQueryChange:Ql,handleSubmitAsync:De,loginUserIsSuper:we,onDoubleClick:tc,pageData:at,queryFormData:Jl,refreshUserTableData:rc,resetPassword:Be,structureId:dn,submitTableAsyncByVerify:vt,tempUserPageData:ic},Symbol.toStringTag,{value:"Module"}));exports.ElMessageBox=Qr;exports.Stack=de;exports.State=oc;exports.State$1=Cl;exports.Uint8Array=Nt;exports.arrayLikeKeys=Mr;exports.assignValue=Gt;exports.baseAssignValue=Cr;exports.baseUnary=ct;exports.cloneBuffer=Vr;exports.cloneDeep=ae;exports.cloneTypedArray=_r;exports.decryptData=ws;exports.encryptData=Ne;exports.getActivePageStructureId=gs;exports.getAllKeys=Lr;exports.getPageDataAsync=pn;exports.getPrototype=Nr;exports.handleSubmitAsync=De;exports.identity=Er;exports.initCloneObject=Fr;exports.isArguments=lt;exports.isArrayLike=xr;exports.isBuffer=Zt;exports.isIndex=ut;exports.isNil=Jt;exports.isPrototype=Yt;exports.isTypedArray=kr;exports.nodeUtil=fe;exports.overRest=Ar;exports.resetPassword=Be;exports.setToString=wr;exports.submitTableAsyncByVerify=vt;exports.useAuthorityState=an;exports.useLoginState=sn;exports.useMenuState=rn;exports.useModelComp=on;