ss-component-new 1.3.13 → 1.3.14

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 (99) hide show
  1. package/dist/{MTLLoader-C_XCtjSi.cjs → MTLLoader-B3diP_CH.cjs} +1 -1
  2. package/dist/{MTLLoader-YR-bfx1D.js → MTLLoader-D0AtmWHn.js} +37 -37
  3. package/dist/{OrbitControls-CktvE4iE.cjs → OrbitControls-BEMjDphC.cjs} +1 -1
  4. package/dist/{OrbitControls-BGsXD_A7.js → OrbitControls-C2bjXeWs.js} +1 -1
  5. package/dist/{URDFLoader-10oVp_KW.cjs → URDFLoader-GlKgq4QK.cjs} +1 -1
  6. package/dist/{URDFLoader-m1gMdnSQ.js → URDFLoader-qmyg9fYK.js} +189 -189
  7. package/dist/{animationData-CpK8d_Vm.js → animationData-Bi3_TyWE.js} +26 -26
  8. package/dist/{animationData-Cr2ra7rm.cjs → animationData-IwjfXQMn.cjs} +1 -1
  9. package/dist/{array-DSgiHp_j.cjs → array-DUQ3K_U3.cjs} +1 -1
  10. package/dist/{array-Bg-M1dRR.js → array-UVmZuEFZ.js} +46 -46
  11. package/dist/{iconfont-DsF7kuG5.cjs → iconfont-CAsy8t6b.cjs} +1 -1
  12. package/dist/{iconfont-0yJB130V.js → iconfont-DSIYZm9L.js} +29 -29
  13. package/dist/{index-i0GbQYT8.js → index-34N9MmAJ.js} +3 -3
  14. package/dist/{index-D8HD14bz.js → index-B2ktP1tY.js} +1 -1
  15. package/dist/{index-Ez8Heyym.js → index-B8Plk6_G.js} +915 -924
  16. package/dist/{index-BJPBBWWH.cjs → index-BLxE_tkf.cjs} +1 -1
  17. package/dist/{index-gfdgTjvQ.js → index-BNjvOnNL.js} +3 -3
  18. package/dist/{index-Ddoq7kRQ.js → index-BT6DSXQW.js} +9 -9
  19. package/dist/{index-CVXrjDFh.cjs → index-BWaSs-dx.cjs} +1 -1
  20. package/dist/{index-DIo9kT8l.cjs → index-BYJp0q3a.cjs} +1 -1
  21. package/dist/{index-DaoKeyl8.cjs → index-BaZ8Dz9C.cjs} +12 -12
  22. package/dist/{index-DHZOXdHe.js → index-BbZzjjV4.js} +7 -7
  23. package/dist/{index-BXUByyre.js → index-BfJ9-vQE.js} +2 -2
  24. package/dist/{index-DNmw0pc6.js → index-BoPqoH3C.js} +41 -41
  25. package/dist/index-BteE57Nz.js +103 -0
  26. package/dist/{index-dQFlJRrM.js → index-C-1cJ11C.js} +7 -7
  27. package/dist/{index-h_-N0ZtQ.js → index-C00SsoBw.js} +7 -7
  28. package/dist/{index-BcipoSQA.js → index-C5Q1KlY_.js} +2 -2
  29. package/dist/{index-Cwt7s25B.cjs → index-C7G7qNVy.cjs} +1 -1
  30. package/dist/index-C8FzkPpO.cjs +1 -0
  31. package/dist/{index-DRTxe12U.cjs → index-C8fMwErX.cjs} +13 -13
  32. package/dist/{index-N6U5R7pz.cjs → index-CD3-vCG-.cjs} +1 -1
  33. package/dist/{index-nr6V1FzX.js → index-CEq2QX9L.js} +7 -7
  34. package/dist/{index-CXiOVgoz.js → index-CEzEaG0d.js} +1 -1
  35. package/dist/{index-AgxmhjXT.js → index-CFZzQ_84.js} +8 -8
  36. package/dist/{index-Cjqg29ul.cjs → index-CIrXKpNl.cjs} +1 -1
  37. package/dist/{index-CBJCu7IU.cjs → index-Cd1xYGsa.cjs} +1 -1
  38. package/dist/{index-D_Yhv_HV.cjs → index-CdV2vSOK.cjs} +1 -1
  39. package/dist/index-CnuuKF1t.js +12544 -0
  40. package/dist/{index-C9SfnCpQ.js → index-CvqHcSC4.js} +2 -2
  41. package/dist/{index-DU9e5EhS.cjs → index-Cw4Pm2PQ.cjs} +1 -1
  42. package/dist/{index-bwtexcx2.cjs → index-D1X1OeUR.cjs} +1 -1
  43. package/dist/{index-gzS894Xb.cjs → index-DGIfO1LO.cjs} +1 -1
  44. package/dist/{index-Va8AOLWi.js → index-DGRL8SEt.js} +1 -1
  45. package/dist/{index-D3ixok8t.cjs → index-DJjHIf5F.cjs} +1 -1
  46. package/dist/{index-Bi76KPTH.js → index-DLF_1ATs.js} +5 -5
  47. package/dist/{index-DaIE9uY1.cjs → index-DMHNlcTB.cjs} +1 -1
  48. package/dist/{index-BfpxkTBr.cjs → index-DnMehixw.cjs} +1 -1
  49. package/dist/index-DowlDm_R.cjs +11 -0
  50. package/dist/{index-BTVKWZt_.js → index-DppPsJwa.js} +2 -2
  51. package/dist/{index-BPwYtuzg.cjs → index-Dy5qQAC3.cjs} +1 -1
  52. package/dist/{index-DS-YTop9.cjs → index-Jytyg12u.cjs} +1 -1
  53. package/dist/{index-CJJzXv2E.cjs → index-L_qyO2xf.cjs} +1 -1
  54. package/dist/{index-DhEfvV0x.js → index-US_KTUv7.js} +5 -5
  55. package/dist/{index-CtiuIHrN.cjs → index-bmTqenMO.cjs} +1 -1
  56. package/dist/{index-D7054IS6.cjs → index-dSga-Sqb.cjs} +1 -1
  57. package/dist/{index-NaWMtdUV.js → index-fuCgJzzm.js} +2 -2
  58. package/dist/{index-DVNEBZvu.js → index-fuVLvPhz.js} +3 -3
  59. package/dist/index-hh3Ozhvs.cjs +1 -0
  60. package/dist/{index-DBh5Z73C.js → index-i7Q6x7Zz.js} +1 -1
  61. package/dist/{index-B-SYbelE.js → index-jDCU1Wp9.js} +2 -2
  62. package/dist/{index-COQpDVsv.js → index-sMsCzNtW.js} +1535 -1570
  63. package/dist/{index-BWCv7zxy.cjs → index-vCTVD7cV.cjs} +1 -1
  64. package/dist/{index-Bo9X-gZk.cjs → index-wIeZl5t7.cjs} +1 -1
  65. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1pEFQ04s.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BRc8dG0E.js} +31601 -32166
  66. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-ZMwIbmlN.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CbFQ2oZH.cjs} +394 -404
  67. package/dist/{index.vue_vue_type_style_index_1_lang-CNh42_ZH.js → index.vue_vue_type_style_index_1_lang-Cqe1NPUQ.js} +78 -78
  68. package/dist/{index.vue_vue_type_style_index_1_lang--4T7j9qz.cjs → index.vue_vue_type_style_index_1_lang-D5dZrna1.cjs} +1 -1
  69. package/dist/{main-CwhQ7pet.cjs → main-DMEkPrPQ.cjs} +1 -1
  70. package/dist/{main-DQ4rxh2x.js → main-JQX3whvo.js} +4 -4
  71. package/dist/{menuIndex-D52EAwtb.cjs → menuIndex-8RF_0N_y.cjs} +1 -1
  72. package/dist/{menuIndex-DYaogp2R.js → menuIndex-BwWrdu20.js} +1 -1
  73. package/dist/ss-component.cjs +1 -1
  74. package/dist/ss-component.css +1 -1
  75. package/dist/ss-component.js +10 -10
  76. package/dist/ss-component2.cjs +1 -1
  77. package/dist/ss-component2.js +11 -11
  78. package/dist/{threeModel-B28hvnHw.js → threeModel-BYeWWze5.js} +45 -45
  79. package/dist/{threeModel-DnKfIIgn.cjs → threeModel-cUS9-ww3.cjs} +1 -1
  80. package/dist/{threePreview-DOD9HOZn.cjs → threePreview-BtspqluS.cjs} +1 -1
  81. package/dist/{threePreview-CkKl3frr.js → threePreview-CZI4Z6PT.js} +103 -103
  82. package/dist/{threeSceneView-DZvOLWv6.cjs → threeSceneView-B5L-Drf9.cjs} +1 -1
  83. package/dist/{threeSceneView-DlL9pZlj.js → threeSceneView-Cr_KXNx5.js} +38 -38
  84. package/dist/{threeSceneViewForCPMPIP-DB0Eczbs.js → threeSceneViewForCPMPIP-BuuDHRI4.js} +8 -8
  85. package/dist/{threeSceneViewForCPMPIP-CZvKvfDx.cjs → threeSceneViewForCPMPIP-Dp8auXh3.cjs} +1 -1
  86. package/dist/{threeTrackPathView-DgyAEYfV.cjs → threeTrackPathView-78ve4cJ3.cjs} +1 -1
  87. package/dist/{threeTrackPathView-Eb1bvUXJ.js → threeTrackPathView-DWMtEQZW.js} +66 -66
  88. package/dist/{threeViewerHost-BMU1tg9c.cjs → threeViewerHost-Mm-Ez-7E.cjs} +1 -1
  89. package/dist/{threeViewerHost-Bdzv9iPb.js → threeViewerHost-Yx0xoLgc.js} +20 -20
  90. package/dist/{urdfTree-hLtm0aFY.js → urdfTree-DMMvqDhp.js} +10 -10
  91. package/dist/{urdfTree-CoK2r17Y.cjs → urdfTree-npoVarfp.cjs} +1 -1
  92. package/dist/{workpieceTreePanel-mWvCQyyw.cjs → workpieceTreePanel-B2ICcFLW.cjs} +1 -1
  93. package/dist/{workpieceTreePanel-Ne_ACq86.js → workpieceTreePanel-C6ceilqa.js} +56 -56
  94. package/package.json +1 -1
  95. package/dist/index-Bb1M3ASi.cjs +0 -1
  96. package/dist/index-CpbBe_mV.cjs +0 -1
  97. package/dist/index-DIWralYr.js +0 -67
  98. package/dist/index-DbnDlzwg.cjs +0 -1
  99. package/dist/index-Dw4-rPvA.js +0 -11883
@@ -1,27 +1,27 @@
1
- "use strict";const d=require("./index-C5pQXH0_.cjs"),u=require("vue");function li(e){return e}var Mn=d.getNative(d.root,"WeakMap"),to=Object.create,gu=function(){function e(){}return function(t){if(!d.isObject(t))return{};if(to)return to(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function vu(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 yu=800,mu=16,Eu=Date.now;function bu(e){var t=0,n=0;return function(){var r=Eu(),o=mu-(r-n);if(n=r,o>0){if(++t>=yu)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function _u(e){return function(){return e}}var nn=function(){try{var e=d.getNative(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Su=nn?function(e,t){return nn(e,"toString",{configurable:!0,enumerable:!1,value:_u(t),writable:!0})}:li,ci=bu(Su);function Tu(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var wu=9007199254740991,Au=/^(?:0|[1-9]\d*)$/;function cn(e,t){var n=typeof e;return t=t??wu,!!t&&(n=="number"||n!="symbol"&&Au.test(e))&&e>-1&&e%1==0&&e<t}function fi(e,t,n){t=="__proto__"&&nn?nn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Cu=Object.prototype,Ou=Cu.hasOwnProperty;function fr(e,t,n){var r=e[t];(!(Ou.call(e,t)&&d.eq(r,n))||n===void 0&&!(t in e))&&fi(e,t,n)}var no=Math.max;function di(e,t,n){return t=no(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,s=no(r.length-t,0),i=Array(s);++o<s;)i[o]=r[t+o];o=-1;for(var a=Array(t+1);++o<t;)a[o]=r[o];return a[t]=n(i),vu(e,this,a)}}var Du=9007199254740991;function dr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Du}function hi(e){return e!=null&&dr(e.length)&&!d.isFunction(e)}var Iu=Object.prototype;function hr(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Iu;return e===n}function ku(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var xu="[object Arguments]";function ro(e){return d.isObjectLike(e)&&d.baseGetTag(e)==xu}var pi=Object.prototype,Ru=pi.hasOwnProperty,Nu=pi.propertyIsEnumerable,fn=ro(function(){return arguments}())?ro:function(e){return d.isObjectLike(e)&&Ru.call(e,"callee")&&!Nu.call(e,"callee")};function Bu(){return!1}var gi=typeof exports=="object"&&exports&&!exports.nodeType&&exports,oo=gi&&typeof module=="object"&&module&&!module.nodeType&&module,Pu=oo&&oo.exports===gi,so=Pu?d.root.Buffer:void 0,Vu=so?so.isBuffer:void 0,pr=Vu||Bu,Mu="[object Arguments]",Fu="[object Array]",Lu="[object Boolean]",Uu="[object Date]",$u="[object Error]",ju="[object Function]",Hu="[object Map]",Ku="[object Number]",zu="[object Object]",qu="[object RegExp]",Gu="[object Set]",Wu="[object String]",Yu="[object WeakMap]",Zu="[object ArrayBuffer]",Xu="[object DataView]",Ju="[object Float32Array]",Qu="[object Float64Array]",el="[object Int8Array]",tl="[object Int16Array]",nl="[object Int32Array]",rl="[object Uint8Array]",ol="[object Uint8ClampedArray]",sl="[object Uint16Array]",il="[object Uint32Array]",H={};H[Ju]=H[Qu]=H[el]=H[tl]=H[nl]=H[rl]=H[ol]=H[sl]=H[il]=!0;H[Mu]=H[Fu]=H[Zu]=H[Lu]=H[Xu]=H[Uu]=H[$u]=H[ju]=H[Hu]=H[Ku]=H[zu]=H[qu]=H[Gu]=H[Wu]=H[Yu]=!1;function al(e){return d.isObjectLike(e)&&dr(e.length)&&!!H[d.baseGetTag(e)]}function dn(e){return function(t){return e(t)}}var vi=typeof exports=="object"&&exports&&!exports.nodeType&&exports,bt=vi&&typeof module=="object"&&module&&!module.nodeType&&module,ul=bt&&bt.exports===vi,Sn=ul&&d.freeGlobal.process,Me=function(){try{var e=bt&&bt.require&&bt.require("util").types;return e||Sn&&Sn.binding&&Sn.binding("util")}catch{}}(),io=Me&&Me.isTypedArray,yi=io?dn(io):al,ll=Object.prototype,cl=ll.hasOwnProperty;function mi(e,t){var n=d.isArray(e),r=!n&&fn(e),o=!n&&!r&&pr(e),s=!n&&!r&&!o&&yi(e),i=n||r||o||s,a=i?ku(e.length,String):[],l=a.length;for(var c in e)(t||cl.call(e,c))&&!(i&&(c=="length"||o&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||cn(c,l)))&&a.push(c);return a}function Ei(e,t){return function(n){return e(t(n))}}var fl=Ei(Object.keys,Object),dl=Object.prototype,hl=dl.hasOwnProperty;function pl(e){if(!hr(e))return fl(e);var t=[];for(var n in Object(e))hl.call(e,n)&&n!="constructor"&&t.push(n);return t}function gl(e){return hi(e)?mi(e):pl(e)}function bi(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var ao=d.Symbol?d.Symbol.isConcatSpreadable:void 0;function vl(e){return d.isArray(e)||fn(e)||!!(ao&&e&&e[ao])}function yl(e,t,n,r,o){var s=-1,i=e.length;for(n||(n=vl),o||(o=[]);++s<i;){var a=e[s];n(a)?bi(o,a):o[o.length]=a}return o}function ml(e){var t=e==null?0:e.length;return t?yl(e):[]}function El(e){return ci(di(e,void 0,ml),e+"")}var _i=Ei(Object.getPrototypeOf,Object);function bl(){this.__data__=new d.ListCache,this.size=0}function _l(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Sl(e){return this.__data__.get(e)}function Tl(e){return this.__data__.has(e)}var wl=200;function Al(e,t){var n=this.__data__;if(n instanceof d.ListCache){var r=n.__data__;if(!d.Map||r.length<wl-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new d.MapCache(r)}return n.set(e,t),this.size=n.size,this}function $e(e){var t=this.__data__=new d.ListCache(e);this.size=t.size}$e.prototype.clear=bl;$e.prototype.delete=_l;$e.prototype.get=Sl;$e.prototype.has=Tl;$e.prototype.set=Al;var Si=typeof exports=="object"&&exports&&!exports.nodeType&&exports,uo=Si&&typeof module=="object"&&module&&!module.nodeType&&module,Cl=uo&&uo.exports===Si,lo=Cl?d.root.Buffer:void 0,co=lo?lo.allocUnsafe:void 0;function Ti(e,t){if(t)return e.slice();var n=e.length,r=co?co(n):new e.constructor(n);return e.copy(r),r}function Ol(e,t){for(var n=-1,r=e==null?0:e.length,o=0,s=[];++n<r;){var i=e[n];t(i,n,e)&&(s[o++]=i)}return s}function Dl(){return[]}var Il=Object.prototype,kl=Il.propertyIsEnumerable,fo=Object.getOwnPropertySymbols,xl=fo?function(e){return e==null?[]:(e=Object(e),Ol(fo(e),function(t){return kl.call(e,t)}))}:Dl;function Rl(e,t,n){var r=t(e);return d.isArray(e)?r:bi(r,n(e))}function wi(e){return Rl(e,gl,xl)}var Fn=d.getNative(d.root,"DataView"),Ln=d.getNative(d.root,"Promise"),Un=d.getNative(d.root,"Set"),ho="[object Map]",Nl="[object Object]",po="[object Promise]",go="[object Set]",vo="[object WeakMap]",yo="[object DataView]",Bl=d.toSource(Fn),Pl=d.toSource(d.Map),Vl=d.toSource(Ln),Ml=d.toSource(Un),Fl=d.toSource(Mn);exports.getTag=d.baseGetTag;(Fn&&exports.getTag(new Fn(new ArrayBuffer(1)))!=yo||d.Map&&exports.getTag(new d.Map)!=ho||Ln&&exports.getTag(Ln.resolve())!=po||Un&&exports.getTag(new Un)!=go||Mn&&exports.getTag(new Mn)!=vo)&&(exports.getTag=function(e){var t=d.baseGetTag(e),n=t==Nl?e.constructor:void 0,r=n?d.toSource(n):"";if(r)switch(r){case Bl:return yo;case Pl:return ho;case Vl:return po;case Ml:return go;case Fl:return vo}return t});var Ll=Object.prototype,Ul=Ll.hasOwnProperty;function $l(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Ul.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var $n=d.root.Uint8Array;function gr(e){var t=new e.constructor(e.byteLength);return new $n(t).set(new $n(e)),t}function jl(e,t){var n=gr(e.buffer);return new e.constructor(n,e.byteOffset,e.byteLength)}var Hl=/\w*$/;function Kl(e){var t=new e.constructor(e.source,Hl.exec(e));return t.lastIndex=e.lastIndex,t}var mo=d.Symbol?d.Symbol.prototype:void 0,Eo=mo?mo.valueOf:void 0;function zl(e){return Eo?Object(Eo.call(e)):{}}function Ai(e,t){var n=t?gr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var ql="[object Boolean]",Gl="[object Date]",Wl="[object Map]",Yl="[object Number]",Zl="[object RegExp]",Xl="[object Set]",Jl="[object String]",Ql="[object Symbol]",ec="[object ArrayBuffer]",tc="[object DataView]",nc="[object Float32Array]",rc="[object Float64Array]",oc="[object Int8Array]",sc="[object Int16Array]",ic="[object Int32Array]",ac="[object Uint8Array]",uc="[object Uint8ClampedArray]",lc="[object Uint16Array]",cc="[object Uint32Array]";function fc(e,t,n){var r=e.constructor;switch(t){case ec:return gr(e);case ql:case Gl:return new r(+e);case tc:return jl(e);case nc:case rc:case oc:case sc:case ic:case ac:case uc:case lc:case cc:return Ai(e,n);case Wl:return new r;case Yl:case Jl:return new r(e);case Zl:return Kl(e);case Xl:return new r;case Ql:return zl(e)}}function Ci(e){return typeof e.constructor=="function"&&!hr(e)?gu(_i(e)):{}}var dc="[object Map]";function hc(e){return d.isObjectLike(e)&&exports.getTag(e)==dc}var bo=Me&&Me.isMap,pc=bo?dn(bo):hc,gc="[object Set]";function vc(e){return d.isObjectLike(e)&&exports.getTag(e)==gc}var _o=Me&&Me.isSet,yc=_o?dn(_o):vc,mc=1,Oi="[object Arguments]",Ec="[object Array]",bc="[object Boolean]",_c="[object Date]",Sc="[object Error]",Di="[object Function]",Tc="[object GeneratorFunction]",wc="[object Map]",Ac="[object Number]",Ii="[object Object]",Cc="[object RegExp]",Oc="[object Set]",Dc="[object String]",Ic="[object Symbol]",kc="[object WeakMap]",xc="[object ArrayBuffer]",Rc="[object DataView]",Nc="[object Float32Array]",Bc="[object Float64Array]",Pc="[object Int8Array]",Vc="[object Int16Array]",Mc="[object Int32Array]",Fc="[object Uint8Array]",Lc="[object Uint8ClampedArray]",Uc="[object Uint16Array]",$c="[object Uint32Array]",$={};$[Oi]=$[Ec]=$[xc]=$[Rc]=$[bc]=$[_c]=$[Nc]=$[Bc]=$[Pc]=$[Vc]=$[Mc]=$[wc]=$[Ac]=$[Ii]=$[Cc]=$[Oc]=$[Dc]=$[Ic]=$[Fc]=$[Lc]=$[Uc]=$[$c]=!0;$[Sc]=$[Di]=$[kc]=!1;function qt(e,t,n,r,o,s){var i,a=t&mc;if(i!==void 0)return i;if(!d.isObject(e))return e;var l=d.isArray(e);if(l)i=$l(e);else{var c=exports.getTag(e),p=c==Di||c==Tc;if(pr(e))return Ti(e,a);if(c==Ii||c==Oi||p&&!o)i=p?{}:Ci(e);else{if(!$[c])return o?e:{};i=fc(e,c,a)}}s||(s=new $e);var h=s.get(e);if(h)return h;s.set(e,i),yc(e)?e.forEach(function(f){i.add(qt(f,t,n,f,e,s))}):pc(e)&&e.forEach(function(f,m){i.set(m,qt(f,t,n,m,e,s))});var y=wi,g=l?void 0:y(e);return Tu(g||e,function(f,m){g&&(m=f,f=e[m]),fr(i,m,qt(f,t,n,m,e,s))}),i}var jc=1,Hc=4;function Ie(e){return qt(e,jc|Hc)}function Kc(e,t){return e!=null&&t in Object(e)}function zc(e,t,n){t=d.castPath(t,e);for(var r=-1,o=t.length,s=!1;++r<o;){var i=d.toKey(t[r]);if(!(s=e!=null&&n(e,i)))break;e=e[i]}return s||++r!=o?s:(o=e==null?0:e.length,!!o&&dr(o)&&cn(i,o)&&(d.isArray(e)||fn(e)))}function qc(e,t){return e!=null&&zc(e,t,Kc)}function vr(e){return e==null}function Gc(e,t,n,r){if(!d.isObject(e))return e;t=d.castPath(t,e);for(var o=-1,s=t.length,i=s-1,a=e;a!=null&&++o<s;){var l=d.toKey(t[o]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(o!=i){var p=a[l];c=void 0,c===void 0&&(c=d.isObject(p)?p:cn(t[o+1])?[]:{})}fr(a,l,c),a=a[l]}return e}function Wc(e,t,n){for(var r=-1,o=t.length,s={};++r<o;){var i=t[r],a=d.baseGet(e,i);n(a,i)&&Gc(s,d.castPath(i,e),a)}return s}function Yc(e,t){return Wc(e,t,function(n,r){return qc(e,r)})}var Zc=El(function(e,t){return e==null?{}:Yc(e,t)});const jn="update:modelValue",So="change",To="input";let Nt;const Xc=e=>{var t;if(!d.isClient)return 0;if(Nt!==void 0)return Nt;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 o=document.createElement("div");o.style.width="100%",n.appendChild(o);const s=o.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),Nt=r-s,Nt},Jc=()=>d.isClient&&/firefox/i.test(window.navigator.userAgent);let ne;const Qc={height:"0",visibility:"hidden",overflow:Jc()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},ef=["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 tf(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:ef.map(i=>[i,t.getPropertyValue(i)]),paddingSize:r,borderSize:o,boxSizing:n}}function wo(e,t=1,n){var r;ne||(ne=document.createElement("textarea"),document.body.appendChild(ne));const{paddingSize:o,borderSize:s,boxSizing:i,contextStyle:a}=tf(e);a.forEach(([h,y])=>ne==null?void 0:ne.style.setProperty(h,y)),Object.entries(Qc).forEach(([h,y])=>ne==null?void 0:ne.style.setProperty(h,y,"important")),ne.value=e.value||e.placeholder||"";let l=ne.scrollHeight;const c={};i==="border-box"?l=l+s:i==="content-box"&&(l=l-o),ne.value="";const p=ne.scrollHeight-o;if(d.isNumber(t)){let h=p*t;i==="border-box"&&(h=h+o+s),l=Math.max(h,l),c.minHeight=`${h}px`}if(d.isNumber(n)){let h=p*n;i==="border-box"&&(h=h+o+s),l=Math.min(h,l)}return c.height=`${l}px`,(r=ne.parentNode)==null||r.removeChild(ne),ne=void 0,c}const nf=d.buildProps({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),rf=e=>Zc(nf,e),of=d.buildProps({id:{type:String,default:void 0},size:d.useSizeProp,disabled:Boolean,modelValue:{type:d.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:d.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:d.iconPropType},prefixIcon:{type:d.iconPropType},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:d.definePropType([Object,Array,String]),default:()=>d.mutable({})},autofocus:Boolean,rows:{type:Number,default:2},...rf(["ariaLabel"])}),sf={[jn]:e=>d.isString(e),input:e=>d.isString(e),change:e=>d.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},af=["class","style"],uf=/^on[A-Z]/,lf=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=u.computed(()=>((n==null?void 0:n.value)||[]).concat(af)),o=u.getCurrentInstance();return o?u.computed(()=>{var s;return d.fromPairs(Object.entries((s=o.proxy)==null?void 0:s.$attrs).filter(([i])=>!r.value.includes(i)&&!(t&&uf.test(i))))}):(d.debugWarn("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),u.computed(()=>({})))},Hn={prefix:Math.floor(Math.random()*1e4),current:0},cf=Symbol("elIdInjection"),ff=()=>u.getCurrentInstance()?u.inject(cf,Hn):Hn,Kn=e=>{const t=ff();!d.isClient&&t===Hn&&d.debugWarn("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
1
+ "use strict";const u=require("vue"),h=require("./index-C5pQXH0_.cjs");function li(e){return e}var Mn=h.getNative(h.root,"WeakMap"),to=Object.create,gu=function(){function e(){}return function(t){if(!h.isObject(t))return{};if(to)return to(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function vu(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 yu=800,mu=16,Eu=Date.now;function bu(e){var t=0,n=0;return function(){var r=Eu(),o=mu-(r-n);if(n=r,o>0){if(++t>=yu)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function _u(e){return function(){return e}}var nn=function(){try{var e=h.getNative(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Su=nn?function(e,t){return nn(e,"toString",{configurable:!0,enumerable:!1,value:_u(t),writable:!0})}:li,ci=bu(Su);function Tu(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var wu=9007199254740991,Au=/^(?:0|[1-9]\d*)$/;function cn(e,t){var n=typeof e;return t=t??wu,!!t&&(n=="number"||n!="symbol"&&Au.test(e))&&e>-1&&e%1==0&&e<t}function fi(e,t,n){t=="__proto__"&&nn?nn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Cu=Object.prototype,Ou=Cu.hasOwnProperty;function fr(e,t,n){var r=e[t];(!(Ou.call(e,t)&&h.eq(r,n))||n===void 0&&!(t in e))&&fi(e,t,n)}var no=Math.max;function di(e,t,n){return t=no(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,s=no(r.length-t,0),i=Array(s);++o<s;)i[o]=r[t+o];o=-1;for(var a=Array(t+1);++o<t;)a[o]=r[o];return a[t]=n(i),vu(e,this,a)}}var Du=9007199254740991;function dr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Du}function hi(e){return e!=null&&dr(e.length)&&!h.isFunction(e)}var Iu=Object.prototype;function hr(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Iu;return e===n}function ku(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var xu="[object Arguments]";function ro(e){return h.isObjectLike(e)&&h.baseGetTag(e)==xu}var pi=Object.prototype,Ru=pi.hasOwnProperty,Nu=pi.propertyIsEnumerable,fn=ro(function(){return arguments}())?ro:function(e){return h.isObjectLike(e)&&Ru.call(e,"callee")&&!Nu.call(e,"callee")};function Bu(){return!1}var gi=typeof exports=="object"&&exports&&!exports.nodeType&&exports,oo=gi&&typeof module=="object"&&module&&!module.nodeType&&module,Pu=oo&&oo.exports===gi,so=Pu?h.root.Buffer:void 0,Vu=so?so.isBuffer:void 0,pr=Vu||Bu,Mu="[object Arguments]",Fu="[object Array]",Lu="[object Boolean]",Uu="[object Date]",$u="[object Error]",ju="[object Function]",Hu="[object Map]",Ku="[object Number]",zu="[object Object]",qu="[object RegExp]",Gu="[object Set]",Wu="[object String]",Yu="[object WeakMap]",Zu="[object ArrayBuffer]",Xu="[object DataView]",Ju="[object Float32Array]",Qu="[object Float64Array]",el="[object Int8Array]",tl="[object Int16Array]",nl="[object Int32Array]",rl="[object Uint8Array]",ol="[object Uint8ClampedArray]",sl="[object Uint16Array]",il="[object Uint32Array]",H={};H[Ju]=H[Qu]=H[el]=H[tl]=H[nl]=H[rl]=H[ol]=H[sl]=H[il]=!0;H[Mu]=H[Fu]=H[Zu]=H[Lu]=H[Xu]=H[Uu]=H[$u]=H[ju]=H[Hu]=H[Ku]=H[zu]=H[qu]=H[Gu]=H[Wu]=H[Yu]=!1;function al(e){return h.isObjectLike(e)&&dr(e.length)&&!!H[h.baseGetTag(e)]}function dn(e){return function(t){return e(t)}}var vi=typeof exports=="object"&&exports&&!exports.nodeType&&exports,bt=vi&&typeof module=="object"&&module&&!module.nodeType&&module,ul=bt&&bt.exports===vi,Sn=ul&&h.freeGlobal.process,Me=function(){try{var e=bt&&bt.require&&bt.require("util").types;return e||Sn&&Sn.binding&&Sn.binding("util")}catch{}}(),io=Me&&Me.isTypedArray,yi=io?dn(io):al,ll=Object.prototype,cl=ll.hasOwnProperty;function mi(e,t){var n=h.isArray(e),r=!n&&fn(e),o=!n&&!r&&pr(e),s=!n&&!r&&!o&&yi(e),i=n||r||o||s,a=i?ku(e.length,String):[],l=a.length;for(var c in e)(t||cl.call(e,c))&&!(i&&(c=="length"||o&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||cn(c,l)))&&a.push(c);return a}function Ei(e,t){return function(n){return e(t(n))}}var fl=Ei(Object.keys,Object),dl=Object.prototype,hl=dl.hasOwnProperty;function pl(e){if(!hr(e))return fl(e);var t=[];for(var n in Object(e))hl.call(e,n)&&n!="constructor"&&t.push(n);return t}function gl(e){return hi(e)?mi(e):pl(e)}function bi(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var ao=h.Symbol?h.Symbol.isConcatSpreadable:void 0;function vl(e){return h.isArray(e)||fn(e)||!!(ao&&e&&e[ao])}function yl(e,t,n,r,o){var s=-1,i=e.length;for(n||(n=vl),o||(o=[]);++s<i;){var a=e[s];n(a)?bi(o,a):o[o.length]=a}return o}function ml(e){var t=e==null?0:e.length;return t?yl(e):[]}function El(e){return ci(di(e,void 0,ml),e+"")}var _i=Ei(Object.getPrototypeOf,Object);function bl(){this.__data__=new h.ListCache,this.size=0}function _l(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Sl(e){return this.__data__.get(e)}function Tl(e){return this.__data__.has(e)}var wl=200;function Al(e,t){var n=this.__data__;if(n instanceof h.ListCache){var r=n.__data__;if(!h.Map||r.length<wl-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new h.MapCache(r)}return n.set(e,t),this.size=n.size,this}function $e(e){var t=this.__data__=new h.ListCache(e);this.size=t.size}$e.prototype.clear=bl;$e.prototype.delete=_l;$e.prototype.get=Sl;$e.prototype.has=Tl;$e.prototype.set=Al;var Si=typeof exports=="object"&&exports&&!exports.nodeType&&exports,uo=Si&&typeof module=="object"&&module&&!module.nodeType&&module,Cl=uo&&uo.exports===Si,lo=Cl?h.root.Buffer:void 0,co=lo?lo.allocUnsafe:void 0;function Ti(e,t){if(t)return e.slice();var n=e.length,r=co?co(n):new e.constructor(n);return e.copy(r),r}function Ol(e,t){for(var n=-1,r=e==null?0:e.length,o=0,s=[];++n<r;){var i=e[n];t(i,n,e)&&(s[o++]=i)}return s}function Dl(){return[]}var Il=Object.prototype,kl=Il.propertyIsEnumerable,fo=Object.getOwnPropertySymbols,xl=fo?function(e){return e==null?[]:(e=Object(e),Ol(fo(e),function(t){return kl.call(e,t)}))}:Dl;function Rl(e,t,n){var r=t(e);return h.isArray(e)?r:bi(r,n(e))}function wi(e){return Rl(e,gl,xl)}var Fn=h.getNative(h.root,"DataView"),Ln=h.getNative(h.root,"Promise"),Un=h.getNative(h.root,"Set"),ho="[object Map]",Nl="[object Object]",po="[object Promise]",go="[object Set]",vo="[object WeakMap]",yo="[object DataView]",Bl=h.toSource(Fn),Pl=h.toSource(h.Map),Vl=h.toSource(Ln),Ml=h.toSource(Un),Fl=h.toSource(Mn);exports.getTag=h.baseGetTag;(Fn&&exports.getTag(new Fn(new ArrayBuffer(1)))!=yo||h.Map&&exports.getTag(new h.Map)!=ho||Ln&&exports.getTag(Ln.resolve())!=po||Un&&exports.getTag(new Un)!=go||Mn&&exports.getTag(new Mn)!=vo)&&(exports.getTag=function(e){var t=h.baseGetTag(e),n=t==Nl?e.constructor:void 0,r=n?h.toSource(n):"";if(r)switch(r){case Bl:return yo;case Pl:return ho;case Vl:return po;case Ml:return go;case Fl:return vo}return t});var Ll=Object.prototype,Ul=Ll.hasOwnProperty;function $l(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Ul.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var $n=h.root.Uint8Array;function gr(e){var t=new e.constructor(e.byteLength);return new $n(t).set(new $n(e)),t}function jl(e,t){var n=gr(e.buffer);return new e.constructor(n,e.byteOffset,e.byteLength)}var Hl=/\w*$/;function Kl(e){var t=new e.constructor(e.source,Hl.exec(e));return t.lastIndex=e.lastIndex,t}var mo=h.Symbol?h.Symbol.prototype:void 0,Eo=mo?mo.valueOf:void 0;function zl(e){return Eo?Object(Eo.call(e)):{}}function Ai(e,t){var n=t?gr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var ql="[object Boolean]",Gl="[object Date]",Wl="[object Map]",Yl="[object Number]",Zl="[object RegExp]",Xl="[object Set]",Jl="[object String]",Ql="[object Symbol]",ec="[object ArrayBuffer]",tc="[object DataView]",nc="[object Float32Array]",rc="[object Float64Array]",oc="[object Int8Array]",sc="[object Int16Array]",ic="[object Int32Array]",ac="[object Uint8Array]",uc="[object Uint8ClampedArray]",lc="[object Uint16Array]",cc="[object Uint32Array]";function fc(e,t,n){var r=e.constructor;switch(t){case ec:return gr(e);case ql:case Gl:return new r(+e);case tc:return jl(e);case nc:case rc:case oc:case sc:case ic:case ac:case uc:case lc:case cc:return Ai(e,n);case Wl:return new r;case Yl:case Jl:return new r(e);case Zl:return Kl(e);case Xl:return new r;case Ql:return zl(e)}}function Ci(e){return typeof e.constructor=="function"&&!hr(e)?gu(_i(e)):{}}var dc="[object Map]";function hc(e){return h.isObjectLike(e)&&exports.getTag(e)==dc}var bo=Me&&Me.isMap,pc=bo?dn(bo):hc,gc="[object Set]";function vc(e){return h.isObjectLike(e)&&exports.getTag(e)==gc}var _o=Me&&Me.isSet,yc=_o?dn(_o):vc,mc=1,Oi="[object Arguments]",Ec="[object Array]",bc="[object Boolean]",_c="[object Date]",Sc="[object Error]",Di="[object Function]",Tc="[object GeneratorFunction]",wc="[object Map]",Ac="[object Number]",Ii="[object Object]",Cc="[object RegExp]",Oc="[object Set]",Dc="[object String]",Ic="[object Symbol]",kc="[object WeakMap]",xc="[object ArrayBuffer]",Rc="[object DataView]",Nc="[object Float32Array]",Bc="[object Float64Array]",Pc="[object Int8Array]",Vc="[object Int16Array]",Mc="[object Int32Array]",Fc="[object Uint8Array]",Lc="[object Uint8ClampedArray]",Uc="[object Uint16Array]",$c="[object Uint32Array]",$={};$[Oi]=$[Ec]=$[xc]=$[Rc]=$[bc]=$[_c]=$[Nc]=$[Bc]=$[Pc]=$[Vc]=$[Mc]=$[wc]=$[Ac]=$[Ii]=$[Cc]=$[Oc]=$[Dc]=$[Ic]=$[Fc]=$[Lc]=$[Uc]=$[$c]=!0;$[Sc]=$[Di]=$[kc]=!1;function qt(e,t,n,r,o,s){var i,a=t&mc;if(i!==void 0)return i;if(!h.isObject(e))return e;var l=h.isArray(e);if(l)i=$l(e);else{var c=exports.getTag(e),p=c==Di||c==Tc;if(pr(e))return Ti(e,a);if(c==Ii||c==Oi||p&&!o)i=p?{}:Ci(e);else{if(!$[c])return o?e:{};i=fc(e,c,a)}}s||(s=new $e);var d=s.get(e);if(d)return d;s.set(e,i),yc(e)?e.forEach(function(f){i.add(qt(f,t,n,f,e,s))}):pc(e)&&e.forEach(function(f,m){i.set(m,qt(f,t,n,m,e,s))});var y=wi,g=l?void 0:y(e);return Tu(g||e,function(f,m){g&&(m=f,f=e[m]),fr(i,m,qt(f,t,n,m,e,s))}),i}var jc=1,Hc=4;function Ie(e){return qt(e,jc|Hc)}function Kc(e,t){return e!=null&&t in Object(e)}function zc(e,t,n){t=h.castPath(t,e);for(var r=-1,o=t.length,s=!1;++r<o;){var i=h.toKey(t[r]);if(!(s=e!=null&&n(e,i)))break;e=e[i]}return s||++r!=o?s:(o=e==null?0:e.length,!!o&&dr(o)&&cn(i,o)&&(h.isArray(e)||fn(e)))}function qc(e,t){return e!=null&&zc(e,t,Kc)}function vr(e){return e==null}function Gc(e,t,n,r){if(!h.isObject(e))return e;t=h.castPath(t,e);for(var o=-1,s=t.length,i=s-1,a=e;a!=null&&++o<s;){var l=h.toKey(t[o]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(o!=i){var p=a[l];c=void 0,c===void 0&&(c=h.isObject(p)?p:cn(t[o+1])?[]:{})}fr(a,l,c),a=a[l]}return e}function Wc(e,t,n){for(var r=-1,o=t.length,s={};++r<o;){var i=t[r],a=h.baseGet(e,i);n(a,i)&&Gc(s,h.castPath(i,e),a)}return s}function Yc(e,t){return Wc(e,t,function(n,r){return qc(e,r)})}var Zc=El(function(e,t){return e==null?{}:Yc(e,t)});const jn="update:modelValue",So="change",To="input";let Nt;const Xc=e=>{var t;if(!h.isClient)return 0;if(Nt!==void 0)return Nt;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 o=document.createElement("div");o.style.width="100%",n.appendChild(o);const s=o.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),Nt=r-s,Nt},Jc=()=>h.isClient&&/firefox/i.test(window.navigator.userAgent);let ne;const Qc={height:"0",visibility:"hidden",overflow:Jc()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},ef=["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 tf(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:ef.map(i=>[i,t.getPropertyValue(i)]),paddingSize:r,borderSize:o,boxSizing:n}}function wo(e,t=1,n){var r;ne||(ne=document.createElement("textarea"),document.body.appendChild(ne));const{paddingSize:o,borderSize:s,boxSizing:i,contextStyle:a}=tf(e);a.forEach(([d,y])=>ne==null?void 0:ne.style.setProperty(d,y)),Object.entries(Qc).forEach(([d,y])=>ne==null?void 0:ne.style.setProperty(d,y,"important")),ne.value=e.value||e.placeholder||"";let l=ne.scrollHeight;const c={};i==="border-box"?l=l+s:i==="content-box"&&(l=l-o),ne.value="";const p=ne.scrollHeight-o;if(h.isNumber(t)){let d=p*t;i==="border-box"&&(d=d+o+s),l=Math.max(d,l),c.minHeight=`${d}px`}if(h.isNumber(n)){let d=p*n;i==="border-box"&&(d=d+o+s),l=Math.min(d,l)}return c.height=`${l}px`,(r=ne.parentNode)==null||r.removeChild(ne),ne=void 0,c}const nf=h.buildProps({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),rf=e=>Zc(nf,e),of=h.buildProps({id:{type:String,default:void 0},size:h.useSizeProp,disabled:Boolean,modelValue:{type:h.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:h.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:h.iconPropType},prefixIcon:{type:h.iconPropType},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:h.definePropType([Object,Array,String]),default:()=>h.mutable({})},autofocus:Boolean,rows:{type:Number,default:2},...rf(["ariaLabel"])}),sf={[jn]:e=>h.isString(e),input:e=>h.isString(e),change:e=>h.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},af=["class","style"],uf=/^on[A-Z]/,lf=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=u.computed(()=>((n==null?void 0:n.value)||[]).concat(af)),o=u.getCurrentInstance();return o?u.computed(()=>{var s;return h.fromPairs(Object.entries((s=o.proxy)==null?void 0:s.$attrs).filter(([i])=>!r.value.includes(i)&&!(t&&uf.test(i))))}):(h.debugWarn("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),u.computed(()=>({})))},Hn={prefix:Math.floor(Math.random()*1e4),current:0},cf=Symbol("elIdInjection"),ff=()=>u.getCurrentInstance()?u.inject(cf,Hn):Hn,Kn=e=>{const t=ff();!h.isClient&&t===Hn&&h.debugWarn("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
2
2
  usage: app.provide(ID_INJECTION_KEY, {
3
3
  prefix: number,
4
4
  current: number,
5
- })`);const n=d.useGetDerivedNamespace();return d.computedEager(()=>u.unref(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},yr=Symbol("formContextKey"),ki=Symbol("formItemContextKey"),xi=()=>{const e=u.inject(yr,void 0),t=u.inject(ki,void 0);return{form:e,formItem:t}},df=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=u.ref(!1)),r||(r=u.ref(!1));const o=u.ref();let s;const i=u.computed(()=>{var a;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((a=t.inputIds)==null?void 0:a.length)<=1)});return u.onMounted(()=>{s=u.watch([u.toRef(e,"id"),n],([a,l])=>{const c=a??(l?void 0:Kn().value);c!==o.value&&(t!=null&&t.removeInputId&&(o.value&&t.removeInputId(o.value),!(r!=null&&r.value)&&!l&&c&&t.addInputId(c)),o.value=c)},{immediate:!0})}),u.onUnmounted(()=>{s&&s(),t!=null&&t.removeInputId&&o.value&&t.removeInputId(o.value)}),{isLabeledByFormItem:i,inputId:o}},Ri=e=>{const t=u.getCurrentInstance();return u.computed(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})},Ni=(e,t={})=>{const n=u.ref(void 0),r=t.prop?n:Ri("size"),o=t.global?n:d.useGlobalSize(),s=t.form?{size:void 0}:u.inject(yr,void 0),i=t.formItem?{size:void 0}:u.inject(ki,void 0);return u.computed(()=>r.value||u.unref(e)||(i==null?void 0:i.size)||(s==null?void 0:s.size)||o.value||"")},hn=e=>{const t=Ri("disabled"),n=u.inject(yr,void 0);return u.computed(()=>t.value||u.unref(e)||(n==null?void 0:n.disabled)||!1)},hf='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',pf=e=>process.env.NODE_ENV==="test"?!0:getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,Ao=e=>Array.from(e.querySelectorAll(hf)).filter(t=>mr(t)&&pf(t)),mr=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 gf(e,{beforeFocus:t,afterFocus:n,beforeBlur:r,afterBlur:o}={}){const s=u.getCurrentInstance(),{emit:i}=s,a=u.shallowRef(),l=hn(),c=u.ref(!1),p=g=>{d.isFunction$1(t)&&t(g)||c.value||(c.value=!0,i("focus",g),n==null||n())},h=g=>{var f;d.isFunction$1(r)&&r(g)||g.relatedTarget&&((f=a.value)!=null&&f.contains(g.relatedTarget))||(c.value=!1,i("blur",g),o==null||o())},y=g=>{var f,m;(f=a.value)!=null&&f.contains(document.activeElement)&&a.value!==document.activeElement||mr(g.target)||l.value||(m=e.value)==null||m.focus()};return u.watch([a,l],([g,f])=>{g&&(f?g.removeAttribute("tabindex"):g.setAttribute("tabindex","-1"))}),d.useEventListener(a,"focus",p,!0),d.useEventListener(a,"blur",h,!0),d.useEventListener(a,"click",y,!0),process.env.NODE_ENV==="test"&&u.onMounted(()=>{const g=d.isElement(e.value)?e.value:document.querySelector("input,textarea");g&&(d.useEventListener(g,"focus",p,!0),d.useEventListener(g,"blur",h,!0))}),{isFocused:c,wrapperRef:a,handleFocus:p,handleBlur:h}}const vf=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e);function yf({afterComposition:e,emit:t}){const n=u.ref(!1),r=a=>{t==null||t("compositionstart",a),n.value=!0},o=a=>{var l;t==null||t("compositionupdate",a);const c=(l=a.target)==null?void 0:l.value,p=c[c.length-1]||"";n.value=!vf(p)},s=a=>{t==null||t("compositionend",a),n.value&&(n.value=!1,u.nextTick(()=>e(a)))};return{isComposing:n,handleComposition:a=>{a.type==="compositionend"?s(a):o(a)},handleCompositionStart:r,handleCompositionUpdate:o,handleCompositionEnd:s}}function mf(e){let t;function n(){if(e.value==null)return;const{selectionStart:o,selectionEnd:s,value:i}=e.value;if(o==null||s==null)return;const a=i.slice(0,Math.max(0,o)),l=i.slice(Math.max(0,s));t={selectionStart:o,selectionEnd:s,value:i,beforeTxt:a,afterTxt:l}}function r(){if(e.value==null||t==null)return;const{value:o}=e.value,{beforeTxt:s,afterTxt:i,selectionStart:a}=t;if(s==null||i==null||a==null)return;let l=o.length;if(o.endsWith(i))l=o.length-i.length;else if(o.startsWith(s))l=s.length;else{const c=s[a-1],p=o.indexOf(c,a-1);p!==-1&&(l=p+1)}e.value.setSelectionRange(l,l)}return[n,r]}const Bi="ElInput",Ef=u.defineComponent({name:Bi,inheritAttrs:!1}),bf=u.defineComponent({...Ef,props:of,emits:sf,setup(e,{expose:t,emit:n}){const r=e,o=u.useAttrs(),s=lf(),i=u.useSlots(),a=u.computed(()=>[r.type==="textarea"?m.b():f.b(),f.m(y.value),f.is("disabled",g.value),f.is("exceed",oe.value),{[f.b("group")]:i.prepend||i.append,[f.m("prefix")]:i.prefix||r.prefixIcon,[f.m("suffix")]:i.suffix||r.suffixIcon||r.clearable||r.showPassword,[f.bm("suffix","password-clear")]:U.value&&M.value,[f.b("hidden")]:r.type==="hidden"},o.class]),l=u.computed(()=>[f.e("wrapper"),f.is("focus",z.value)]),{form:c,formItem:p}=xi(),{inputId:h}=df(r,{formItemContext:p}),y=Ni(),g=hn(),f=d.useNamespace("input"),m=d.useNamespace("textarea"),v=u.shallowRef(),E=u.shallowRef(),w=u.ref(!1),k=u.ref(!1),V=u.ref(),K=u.shallowRef(r.inputStyle),D=u.computed(()=>v.value||E.value),{wrapperRef:O,isFocused:z,handleFocus:P,handleBlur:A}=gf(D,{beforeFocus(){return g.value},afterBlur(){var T;r.validateEvent&&((T=p==null?void 0:p.validate)==null||T.call(p,"blur").catch(L=>d.debugWarn(L)))}}),S=u.computed(()=>{var T;return(T=c==null?void 0:c.statusIcon)!=null?T:!1}),x=u.computed(()=>(p==null?void 0:p.validateState)||""),F=u.computed(()=>x.value&&d.ValidateComponentsMap[x.value]),Z=u.computed(()=>k.value?d.view_default:d.hide_default),he=u.computed(()=>[o.style]),N=u.computed(()=>[r.inputStyle,K.value,{resize:r.resize}]),I=u.computed(()=>vr(r.modelValue)?"":String(r.modelValue)),U=u.computed(()=>r.clearable&&!g.value&&!r.readonly&&!!I.value&&(z.value||w.value)),M=u.computed(()=>r.showPassword&&!g.value&&!!I.value),re=u.computed(()=>r.showWordLimit&&!!r.maxlength&&(r.type==="text"||r.type==="textarea")&&!g.value&&!r.readonly&&!r.showPassword),ae=u.computed(()=>I.value.length),oe=u.computed(()=>!!re.value&&ae.value>Number(r.maxlength)),xe=u.computed(()=>!!i.suffix||!!r.suffixIcon||U.value||r.showPassword||re.value||!!x.value&&S.value),[ht,He]=mf(v);d.useResizeObserver(E,T=>{if(uu(),!re.value||r.resize!=="both")return;const L=T[0],{width:Ke}=L.contentRect;V.value={right:`calc(100% - ${Ke+15+6}px)`}});const pt=()=>{const{type:T,autosize:L}=r;if(!(!d.isClient||T!=="textarea"||!E.value))if(L){const Ke=d.isObject$1(L)?L.minRows:void 0,Qr=d.isObject$1(L)?L.maxRows:void 0,eo=wo(E.value,Ke,Qr);K.value={overflowY:"hidden",...eo},u.nextTick(()=>{E.value.offsetHeight,K.value=eo})}else K.value={minHeight:wo(E.value).minHeight}},uu=(T=>{let L=!1;return()=>{var Ke;if(L||!r.autosize)return;((Ke=E.value)==null?void 0:Ke.offsetParent)===null||(T(),L=!0)}})(pt),gt=()=>{const T=D.value,L=r.formatter?r.formatter(I.value):I.value;!T||T.value===L||(T.value=L)},_n=async T=>{ht();let{value:L}=T.target;if(r.formatter&&r.parser&&(L=r.parser(L)),!Gr.value){if(L===I.value){gt();return}n(jn,L),n(To,L),await u.nextTick(),gt(),He()}},qr=T=>{let{value:L}=T.target;r.formatter&&r.parser&&(L=r.parser(L)),n(So,L)},{isComposing:Gr,handleCompositionStart:Wr,handleCompositionUpdate:Yr,handleCompositionEnd:Zr}=yf({emit:n,afterComposition:_n}),lu=()=>{ht(),k.value=!k.value,setTimeout(He)},cu=()=>{var T;return(T=D.value)==null?void 0:T.focus()},fu=()=>{var T;return(T=D.value)==null?void 0:T.blur()},du=T=>{w.value=!1,n("mouseleave",T)},hu=T=>{w.value=!0,n("mouseenter",T)},Xr=T=>{n("keydown",T)},pu=()=>{var T;(T=D.value)==null||T.select()},Jr=()=>{n(jn,""),n(So,""),n("clear"),n(To,"")};return u.watch(()=>r.modelValue,()=>{var T;u.nextTick(()=>pt()),r.validateEvent&&((T=p==null?void 0:p.validate)==null||T.call(p,"change").catch(L=>d.debugWarn(L)))}),u.watch(I,()=>gt()),u.watch(()=>r.type,async()=>{await u.nextTick(),gt(),pt()}),u.onMounted(()=>{!r.formatter&&r.parser&&d.debugWarn(Bi,"If you set the parser, you also need to set the formatter."),gt(),u.nextTick(pt)}),t({input:v,textarea:E,ref:D,textareaStyle:N,autosize:u.toRef(r,"autosize"),isComposing:Gr,focus:cu,blur:fu,select:pu,clear:Jr,resizeTextarea:pt}),(T,L)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass([u.unref(a),{[u.unref(f).bm("group","append")]:T.$slots.append,[u.unref(f).bm("group","prepend")]:T.$slots.prepend}]),style:u.normalizeStyle(u.unref(he)),onMouseenter:hu,onMouseleave:du},[u.createCommentVNode(" input "),T.type!=="textarea"?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[u.createCommentVNode(" prepend slot "),T.$slots.prepend?(u.openBlock(),u.createElementBlock("div",{key:0,class:u.normalizeClass(u.unref(f).be("group","prepend"))},[u.renderSlot(T.$slots,"prepend")],2)):u.createCommentVNode("v-if",!0),u.createElementVNode("div",{ref_key:"wrapperRef",ref:O,class:u.normalizeClass(u.unref(l))},[u.createCommentVNode(" prefix slot "),T.$slots.prefix||T.prefixIcon?(u.openBlock(),u.createElementBlock("span",{key:0,class:u.normalizeClass(u.unref(f).e("prefix"))},[u.createElementVNode("span",{class:u.normalizeClass(u.unref(f).e("prefix-inner"))},[u.renderSlot(T.$slots,"prefix"),T.prefixIcon?(u.openBlock(),u.createBlock(u.unref(d.ElIcon),{key:0,class:u.normalizeClass(u.unref(f).e("icon"))},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(T.prefixIcon)))]),_:1},8,["class"])):u.createCommentVNode("v-if",!0)],2)],2)):u.createCommentVNode("v-if",!0),u.createElementVNode("input",u.mergeProps({id:u.unref(h),ref_key:"input",ref:v,class:u.unref(f).e("inner")},u.unref(s),{minlength:T.minlength,maxlength:T.maxlength,type:T.showPassword?k.value?"text":"password":T.type,disabled:u.unref(g),readonly:T.readonly,autocomplete:T.autocomplete,tabindex:T.tabindex,"aria-label":T.ariaLabel,placeholder:T.placeholder,style:T.inputStyle,form:T.form,autofocus:T.autofocus,role:T.containerRole,onCompositionstart:u.unref(Wr),onCompositionupdate:u.unref(Yr),onCompositionend:u.unref(Zr),onInput:_n,onChange:qr,onKeydown:Xr}),null,16,["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","onCompositionstart","onCompositionupdate","onCompositionend"]),u.createCommentVNode(" suffix slot "),u.unref(xe)?(u.openBlock(),u.createElementBlock("span",{key:1,class:u.normalizeClass(u.unref(f).e("suffix"))},[u.createElementVNode("span",{class:u.normalizeClass(u.unref(f).e("suffix-inner"))},[!u.unref(U)||!u.unref(M)||!u.unref(re)?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[u.renderSlot(T.$slots,"suffix"),T.suffixIcon?(u.openBlock(),u.createBlock(u.unref(d.ElIcon),{key:0,class:u.normalizeClass(u.unref(f).e("icon"))},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(T.suffixIcon)))]),_:1},8,["class"])):u.createCommentVNode("v-if",!0)],64)):u.createCommentVNode("v-if",!0),u.unref(U)?(u.openBlock(),u.createBlock(u.unref(d.ElIcon),{key:1,class:u.normalizeClass([u.unref(f).e("icon"),u.unref(f).e("clear")]),onMousedown:u.withModifiers(u.unref(d.NOOP),["prevent"]),onClick:Jr},{default:u.withCtx(()=>[u.createVNode(u.unref(d.circle_close_default))]),_:1},8,["class","onMousedown"])):u.createCommentVNode("v-if",!0),u.unref(M)?(u.openBlock(),u.createBlock(u.unref(d.ElIcon),{key:2,class:u.normalizeClass([u.unref(f).e("icon"),u.unref(f).e("password")]),onClick:lu},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(u.unref(Z))))]),_:1},8,["class"])):u.createCommentVNode("v-if",!0),u.unref(re)?(u.openBlock(),u.createElementBlock("span",{key:3,class:u.normalizeClass(u.unref(f).e("count"))},[u.createElementVNode("span",{class:u.normalizeClass(u.unref(f).e("count-inner"))},u.toDisplayString(u.unref(ae))+" / "+u.toDisplayString(T.maxlength),3)],2)):u.createCommentVNode("v-if",!0),u.unref(x)&&u.unref(F)&&u.unref(S)?(u.openBlock(),u.createBlock(u.unref(d.ElIcon),{key:4,class:u.normalizeClass([u.unref(f).e("icon"),u.unref(f).e("validateIcon"),u.unref(f).is("loading",u.unref(x)==="validating")])},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(u.unref(F))))]),_:1},8,["class"])):u.createCommentVNode("v-if",!0)],2)],2)):u.createCommentVNode("v-if",!0)],2),u.createCommentVNode(" append slot "),T.$slots.append?(u.openBlock(),u.createElementBlock("div",{key:1,class:u.normalizeClass(u.unref(f).be("group","append"))},[u.renderSlot(T.$slots,"append")],2)):u.createCommentVNode("v-if",!0)],64)):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createCommentVNode(" textarea "),u.createElementVNode("textarea",u.mergeProps({id:u.unref(h),ref_key:"textarea",ref:E,class:[u.unref(m).e("inner"),u.unref(f).is("focus",u.unref(z))]},u.unref(s),{minlength:T.minlength,maxlength:T.maxlength,tabindex:T.tabindex,disabled:u.unref(g),readonly:T.readonly,autocomplete:T.autocomplete,style:u.unref(N),"aria-label":T.ariaLabel,placeholder:T.placeholder,form:T.form,autofocus:T.autofocus,rows:T.rows,role:T.containerRole,onCompositionstart:u.unref(Wr),onCompositionupdate:u.unref(Yr),onCompositionend:u.unref(Zr),onInput:_n,onFocus:u.unref(P),onBlur:u.unref(A),onChange:qr,onKeydown:Xr}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),u.unref(re)?(u.openBlock(),u.createElementBlock("span",{key:0,style:u.normalizeStyle(V.value),class:u.normalizeClass(u.unref(f).e("count"))},u.toDisplayString(u.unref(ae))+" / "+u.toDisplayString(T.maxlength),7)):u.createCommentVNode("v-if",!0)],64))],38))}});var _f=d._export_sfc(bf,[["__file","input.vue"]]);const Sf=d.withInstall(_f),Tn="focus-trap.focus-after-trapped",wn="focus-trap.focus-after-released",Tf="focus-trap.focusout-prevented",Co={cancelable:!0,bubbles:!1},wf={cancelable:!0,bubbles:!1},Oo="focusAfterTrapped",Do="focusAfterReleased",Af=Symbol("elFocusTrap"),Er=u.ref(),pn=u.ref(0),br=u.ref(0);let Bt=0;const Pi=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},Io=(e,t)=>{for(const n of e)if(!Cf(n,t))return n},Cf=(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},Of=e=>{const t=Pi(e),n=Io(t,e),r=Io(t.reverse(),e);return[n,r]},Df=e=>e instanceof HTMLInputElement&&"select"in e,_e=(e,t)=>{if(e&&e.focus){const n=document.activeElement;let r=!1;d.isElement(e)&&!mr(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),r=!0),e.focus({preventScroll:!0}),br.value=window.performance.now(),e!==n&&Df(e)&&t&&e.select(),d.isElement(e)&&r&&e.removeAttribute("tabindex")}};function ko(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const If=()=>{let e=[];return{push:r=>{const o=e[0];o&&r!==o&&o.pause(),e=ko(e,r),e.unshift(r)},remove:r=>{var o,s;e=ko(e,r),(s=(o=e[0])==null?void 0:o.resume)==null||s.call(o)}}},kf=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(_e(r,t),document.activeElement!==n)return},xo=If(),xf=()=>pn.value>br.value,Pt=()=>{Er.value="pointer",pn.value=window.performance.now()},Ro=()=>{Er.value="keyboard",pn.value=window.performance.now()},Rf=()=>(u.onMounted(()=>{Bt===0&&(document.addEventListener("mousedown",Pt),document.addEventListener("touchstart",Pt),document.addEventListener("keydown",Ro)),Bt++}),u.onBeforeUnmount(()=>{Bt--,Bt<=0&&(document.removeEventListener("mousedown",Pt),document.removeEventListener("touchstart",Pt),document.removeEventListener("keydown",Ro))}),{focusReason:Er,lastUserFocusTimestamp:pn,lastAutomatedFocusTimestamp:br}),Vt=e=>new CustomEvent(Tf,{...wf,detail:e});let We=[];const No=e=>{e.code===d.EVENT_CODE.esc&&We.forEach(t=>t(e))},Nf=e=>{u.onMounted(()=>{We.length===0&&document.addEventListener("keydown",No),d.isClient&&We.push(e)}),u.onBeforeUnmount(()=>{We=We.filter(t=>t!==e),We.length===0&&d.isClient&&document.removeEventListener("keydown",No)})},Bf=u.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Oo,Do,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=u.ref();let r,o;const{focusReason:s}=Rf();Nf(f=>{e.trapped&&!i.paused&&t("release-requested",f)});const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},a=f=>{if(!e.loop&&!e.trapped||i.paused)return;const{code:m,altKey:v,ctrlKey:E,metaKey:w,currentTarget:k,shiftKey:V}=f,{loop:K}=e,D=m===d.EVENT_CODE.tab&&!v&&!E&&!w,O=document.activeElement;if(D&&O){const z=k,[P,A]=Of(z);if(P&&A){if(!V&&O===A){const x=Vt({focusReason:s.value});t("focusout-prevented",x),x.defaultPrevented||(f.preventDefault(),K&&_e(P,!0))}else if(V&&[P,z].includes(O)){const x=Vt({focusReason:s.value});t("focusout-prevented",x),x.defaultPrevented||(f.preventDefault(),K&&_e(A,!0))}}else if(O===z){const x=Vt({focusReason:s.value});t("focusout-prevented",x),x.defaultPrevented||f.preventDefault()}}};u.provide(Af,{focusTrapRef:n,onKeydown:a}),u.watch(()=>e.focusTrapEl,f=>{f&&(n.value=f)},{immediate:!0}),u.watch([n],([f],[m])=>{f&&(f.addEventListener("keydown",a),f.addEventListener("focusin",p),f.addEventListener("focusout",h)),m&&(m.removeEventListener("keydown",a),m.removeEventListener("focusin",p),m.removeEventListener("focusout",h))});const l=f=>{t(Oo,f)},c=f=>t(Do,f),p=f=>{const m=u.unref(n);if(!m)return;const v=f.target,E=f.relatedTarget,w=v&&m.contains(v);e.trapped||E&&m.contains(E)||(r=E),w&&t("focusin",f),!i.paused&&e.trapped&&(w?o=v:_e(o,!0))},h=f=>{const m=u.unref(n);if(!(i.paused||!m))if(e.trapped){const v=f.relatedTarget;!vr(v)&&!m.contains(v)&&setTimeout(()=>{if(!i.paused&&e.trapped){const E=Vt({focusReason:s.value});t("focusout-prevented",E),E.defaultPrevented||_e(o,!0)}},0)}else{const v=f.target;v&&m.contains(v)||t("focusout",f)}};async function y(){await u.nextTick();const f=u.unref(n);if(f){xo.push(i);const m=f.contains(document.activeElement)?r:document.activeElement;if(r=m,!f.contains(m)){const E=new Event(Tn,Co);f.addEventListener(Tn,l),f.dispatchEvent(E),E.defaultPrevented||u.nextTick(()=>{let w=e.focusStartEl;d.isString(w)||(_e(w),document.activeElement!==w&&(w="first")),w==="first"&&kf(Pi(f),!0),(document.activeElement===m||w==="container")&&_e(f)})}}}function g(){const f=u.unref(n);if(f){f.removeEventListener(Tn,l);const m=new CustomEvent(wn,{...Co,detail:{focusReason:s.value}});f.addEventListener(wn,c),f.dispatchEvent(m),!m.defaultPrevented&&(s.value=="keyboard"||!xf()||f.contains(document.activeElement))&&_e(r??document.body),f.removeEventListener(wn,c),xo.remove(i)}}return u.onMounted(()=>{e.trapped&&y(),u.watch(()=>e.trapped,f=>{f?y():g()})}),u.onBeforeUnmount(()=>{e.trapped&&g(),n.value&&(n.value.removeEventListener("keydown",a),n.value.removeEventListener("focusin",p),n.value.removeEventListener("focusout",h),n.value=void 0)}),{onKeydown:a}}});function Pf(e,t,n,r,o,s){return u.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var Vf=d._export_sfc(Bf,[["render",Pf],["__file","focus-trap.vue"]]);const Vi=Symbol("buttonGroupContextKey"),Mf=({from:e,replacement:t,scope:n,version:r,ref:o,type:s="API"},i)=>{u.watch(()=>u.unref(i),a=>{a&&d.debugWarn(n,`[${s}] ${e} is about to be deprecated in version ${r}, please use ${t} instead.
5
+ })`);const n=h.useGetDerivedNamespace();return h.computedEager(()=>u.unref(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},yr=Symbol("formContextKey"),ki=Symbol("formItemContextKey"),xi=()=>{const e=u.inject(yr,void 0),t=u.inject(ki,void 0);return{form:e,formItem:t}},df=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=u.ref(!1)),r||(r=u.ref(!1));const o=u.ref();let s;const i=u.computed(()=>{var a;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((a=t.inputIds)==null?void 0:a.length)<=1)});return u.onMounted(()=>{s=u.watch([u.toRef(e,"id"),n],([a,l])=>{const c=a??(l?void 0:Kn().value);c!==o.value&&(t!=null&&t.removeInputId&&(o.value&&t.removeInputId(o.value),!(r!=null&&r.value)&&!l&&c&&t.addInputId(c)),o.value=c)},{immediate:!0})}),u.onUnmounted(()=>{s&&s(),t!=null&&t.removeInputId&&o.value&&t.removeInputId(o.value)}),{isLabeledByFormItem:i,inputId:o}},Ri=e=>{const t=u.getCurrentInstance();return u.computed(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})},Ni=(e,t={})=>{const n=u.ref(void 0),r=t.prop?n:Ri("size"),o=t.global?n:h.useGlobalSize(),s=t.form?{size:void 0}:u.inject(yr,void 0),i=t.formItem?{size:void 0}:u.inject(ki,void 0);return u.computed(()=>r.value||u.unref(e)||(i==null?void 0:i.size)||(s==null?void 0:s.size)||o.value||"")},hn=e=>{const t=Ri("disabled"),n=u.inject(yr,void 0);return u.computed(()=>t.value||u.unref(e)||(n==null?void 0:n.disabled)||!1)},hf='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',pf=e=>process.env.NODE_ENV==="test"?!0:getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,Ao=e=>Array.from(e.querySelectorAll(hf)).filter(t=>mr(t)&&pf(t)),mr=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 gf(e,{beforeFocus:t,afterFocus:n,beforeBlur:r,afterBlur:o}={}){const s=u.getCurrentInstance(),{emit:i}=s,a=u.shallowRef(),l=hn(),c=u.ref(!1),p=g=>{h.isFunction$1(t)&&t(g)||c.value||(c.value=!0,i("focus",g),n==null||n())},d=g=>{var f;h.isFunction$1(r)&&r(g)||g.relatedTarget&&((f=a.value)!=null&&f.contains(g.relatedTarget))||(c.value=!1,i("blur",g),o==null||o())},y=g=>{var f,m;(f=a.value)!=null&&f.contains(document.activeElement)&&a.value!==document.activeElement||mr(g.target)||l.value||(m=e.value)==null||m.focus()};return u.watch([a,l],([g,f])=>{g&&(f?g.removeAttribute("tabindex"):g.setAttribute("tabindex","-1"))}),h.useEventListener(a,"focus",p,!0),h.useEventListener(a,"blur",d,!0),h.useEventListener(a,"click",y,!0),process.env.NODE_ENV==="test"&&u.onMounted(()=>{const g=h.isElement(e.value)?e.value:document.querySelector("input,textarea");g&&(h.useEventListener(g,"focus",p,!0),h.useEventListener(g,"blur",d,!0))}),{isFocused:c,wrapperRef:a,handleFocus:p,handleBlur:d}}const vf=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e);function yf({afterComposition:e,emit:t}){const n=u.ref(!1),r=a=>{t==null||t("compositionstart",a),n.value=!0},o=a=>{var l;t==null||t("compositionupdate",a);const c=(l=a.target)==null?void 0:l.value,p=c[c.length-1]||"";n.value=!vf(p)},s=a=>{t==null||t("compositionend",a),n.value&&(n.value=!1,u.nextTick(()=>e(a)))};return{isComposing:n,handleComposition:a=>{a.type==="compositionend"?s(a):o(a)},handleCompositionStart:r,handleCompositionUpdate:o,handleCompositionEnd:s}}function mf(e){let t;function n(){if(e.value==null)return;const{selectionStart:o,selectionEnd:s,value:i}=e.value;if(o==null||s==null)return;const a=i.slice(0,Math.max(0,o)),l=i.slice(Math.max(0,s));t={selectionStart:o,selectionEnd:s,value:i,beforeTxt:a,afterTxt:l}}function r(){if(e.value==null||t==null)return;const{value:o}=e.value,{beforeTxt:s,afterTxt:i,selectionStart:a}=t;if(s==null||i==null||a==null)return;let l=o.length;if(o.endsWith(i))l=o.length-i.length;else if(o.startsWith(s))l=s.length;else{const c=s[a-1],p=o.indexOf(c,a-1);p!==-1&&(l=p+1)}e.value.setSelectionRange(l,l)}return[n,r]}const Bi="ElInput",Ef=u.defineComponent({name:Bi,inheritAttrs:!1}),bf=u.defineComponent({...Ef,props:of,emits:sf,setup(e,{expose:t,emit:n}){const r=e,o=u.useAttrs(),s=lf(),i=u.useSlots(),a=u.computed(()=>[r.type==="textarea"?m.b():f.b(),f.m(y.value),f.is("disabled",g.value),f.is("exceed",oe.value),{[f.b("group")]:i.prepend||i.append,[f.m("prefix")]:i.prefix||r.prefixIcon,[f.m("suffix")]:i.suffix||r.suffixIcon||r.clearable||r.showPassword,[f.bm("suffix","password-clear")]:U.value&&M.value,[f.b("hidden")]:r.type==="hidden"},o.class]),l=u.computed(()=>[f.e("wrapper"),f.is("focus",z.value)]),{form:c,formItem:p}=xi(),{inputId:d}=df(r,{formItemContext:p}),y=Ni(),g=hn(),f=h.useNamespace("input"),m=h.useNamespace("textarea"),v=u.shallowRef(),E=u.shallowRef(),w=u.ref(!1),k=u.ref(!1),V=u.ref(),K=u.shallowRef(r.inputStyle),D=u.computed(()=>v.value||E.value),{wrapperRef:O,isFocused:z,handleFocus:P,handleBlur:A}=gf(D,{beforeFocus(){return g.value},afterBlur(){var T;r.validateEvent&&((T=p==null?void 0:p.validate)==null||T.call(p,"blur").catch(L=>h.debugWarn(L)))}}),S=u.computed(()=>{var T;return(T=c==null?void 0:c.statusIcon)!=null?T:!1}),x=u.computed(()=>(p==null?void 0:p.validateState)||""),F=u.computed(()=>x.value&&h.ValidateComponentsMap[x.value]),Z=u.computed(()=>k.value?h.view_default:h.hide_default),he=u.computed(()=>[o.style]),N=u.computed(()=>[r.inputStyle,K.value,{resize:r.resize}]),I=u.computed(()=>vr(r.modelValue)?"":String(r.modelValue)),U=u.computed(()=>r.clearable&&!g.value&&!r.readonly&&!!I.value&&(z.value||w.value)),M=u.computed(()=>r.showPassword&&!g.value&&!!I.value),re=u.computed(()=>r.showWordLimit&&!!r.maxlength&&(r.type==="text"||r.type==="textarea")&&!g.value&&!r.readonly&&!r.showPassword),ae=u.computed(()=>I.value.length),oe=u.computed(()=>!!re.value&&ae.value>Number(r.maxlength)),xe=u.computed(()=>!!i.suffix||!!r.suffixIcon||U.value||r.showPassword||re.value||!!x.value&&S.value),[ht,He]=mf(v);h.useResizeObserver(E,T=>{if(uu(),!re.value||r.resize!=="both")return;const L=T[0],{width:Ke}=L.contentRect;V.value={right:`calc(100% - ${Ke+15+6}px)`}});const pt=()=>{const{type:T,autosize:L}=r;if(!(!h.isClient||T!=="textarea"||!E.value))if(L){const Ke=h.isObject$1(L)?L.minRows:void 0,Qr=h.isObject$1(L)?L.maxRows:void 0,eo=wo(E.value,Ke,Qr);K.value={overflowY:"hidden",...eo},u.nextTick(()=>{E.value.offsetHeight,K.value=eo})}else K.value={minHeight:wo(E.value).minHeight}},uu=(T=>{let L=!1;return()=>{var Ke;if(L||!r.autosize)return;((Ke=E.value)==null?void 0:Ke.offsetParent)===null||(T(),L=!0)}})(pt),gt=()=>{const T=D.value,L=r.formatter?r.formatter(I.value):I.value;!T||T.value===L||(T.value=L)},_n=async T=>{ht();let{value:L}=T.target;if(r.formatter&&r.parser&&(L=r.parser(L)),!Gr.value){if(L===I.value){gt();return}n(jn,L),n(To,L),await u.nextTick(),gt(),He()}},qr=T=>{let{value:L}=T.target;r.formatter&&r.parser&&(L=r.parser(L)),n(So,L)},{isComposing:Gr,handleCompositionStart:Wr,handleCompositionUpdate:Yr,handleCompositionEnd:Zr}=yf({emit:n,afterComposition:_n}),lu=()=>{ht(),k.value=!k.value,setTimeout(He)},cu=()=>{var T;return(T=D.value)==null?void 0:T.focus()},fu=()=>{var T;return(T=D.value)==null?void 0:T.blur()},du=T=>{w.value=!1,n("mouseleave",T)},hu=T=>{w.value=!0,n("mouseenter",T)},Xr=T=>{n("keydown",T)},pu=()=>{var T;(T=D.value)==null||T.select()},Jr=()=>{n(jn,""),n(So,""),n("clear"),n(To,"")};return u.watch(()=>r.modelValue,()=>{var T;u.nextTick(()=>pt()),r.validateEvent&&((T=p==null?void 0:p.validate)==null||T.call(p,"change").catch(L=>h.debugWarn(L)))}),u.watch(I,()=>gt()),u.watch(()=>r.type,async()=>{await u.nextTick(),gt(),pt()}),u.onMounted(()=>{!r.formatter&&r.parser&&h.debugWarn(Bi,"If you set the parser, you also need to set the formatter."),gt(),u.nextTick(pt)}),t({input:v,textarea:E,ref:D,textareaStyle:N,autosize:u.toRef(r,"autosize"),isComposing:Gr,focus:cu,blur:fu,select:pu,clear:Jr,resizeTextarea:pt}),(T,L)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass([u.unref(a),{[u.unref(f).bm("group","append")]:T.$slots.append,[u.unref(f).bm("group","prepend")]:T.$slots.prepend}]),style:u.normalizeStyle(u.unref(he)),onMouseenter:hu,onMouseleave:du},[u.createCommentVNode(" input "),T.type!=="textarea"?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[u.createCommentVNode(" prepend slot "),T.$slots.prepend?(u.openBlock(),u.createElementBlock("div",{key:0,class:u.normalizeClass(u.unref(f).be("group","prepend"))},[u.renderSlot(T.$slots,"prepend")],2)):u.createCommentVNode("v-if",!0),u.createElementVNode("div",{ref_key:"wrapperRef",ref:O,class:u.normalizeClass(u.unref(l))},[u.createCommentVNode(" prefix slot "),T.$slots.prefix||T.prefixIcon?(u.openBlock(),u.createElementBlock("span",{key:0,class:u.normalizeClass(u.unref(f).e("prefix"))},[u.createElementVNode("span",{class:u.normalizeClass(u.unref(f).e("prefix-inner"))},[u.renderSlot(T.$slots,"prefix"),T.prefixIcon?(u.openBlock(),u.createBlock(u.unref(h.ElIcon),{key:0,class:u.normalizeClass(u.unref(f).e("icon"))},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(T.prefixIcon)))]),_:1},8,["class"])):u.createCommentVNode("v-if",!0)],2)],2)):u.createCommentVNode("v-if",!0),u.createElementVNode("input",u.mergeProps({id:u.unref(d),ref_key:"input",ref:v,class:u.unref(f).e("inner")},u.unref(s),{minlength:T.minlength,maxlength:T.maxlength,type:T.showPassword?k.value?"text":"password":T.type,disabled:u.unref(g),readonly:T.readonly,autocomplete:T.autocomplete,tabindex:T.tabindex,"aria-label":T.ariaLabel,placeholder:T.placeholder,style:T.inputStyle,form:T.form,autofocus:T.autofocus,role:T.containerRole,onCompositionstart:u.unref(Wr),onCompositionupdate:u.unref(Yr),onCompositionend:u.unref(Zr),onInput:_n,onChange:qr,onKeydown:Xr}),null,16,["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","onCompositionstart","onCompositionupdate","onCompositionend"]),u.createCommentVNode(" suffix slot "),u.unref(xe)?(u.openBlock(),u.createElementBlock("span",{key:1,class:u.normalizeClass(u.unref(f).e("suffix"))},[u.createElementVNode("span",{class:u.normalizeClass(u.unref(f).e("suffix-inner"))},[!u.unref(U)||!u.unref(M)||!u.unref(re)?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[u.renderSlot(T.$slots,"suffix"),T.suffixIcon?(u.openBlock(),u.createBlock(u.unref(h.ElIcon),{key:0,class:u.normalizeClass(u.unref(f).e("icon"))},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(T.suffixIcon)))]),_:1},8,["class"])):u.createCommentVNode("v-if",!0)],64)):u.createCommentVNode("v-if",!0),u.unref(U)?(u.openBlock(),u.createBlock(u.unref(h.ElIcon),{key:1,class:u.normalizeClass([u.unref(f).e("icon"),u.unref(f).e("clear")]),onMousedown:u.withModifiers(u.unref(h.NOOP),["prevent"]),onClick:Jr},{default:u.withCtx(()=>[u.createVNode(u.unref(h.circle_close_default))]),_:1},8,["class","onMousedown"])):u.createCommentVNode("v-if",!0),u.unref(M)?(u.openBlock(),u.createBlock(u.unref(h.ElIcon),{key:2,class:u.normalizeClass([u.unref(f).e("icon"),u.unref(f).e("password")]),onClick:lu},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(u.unref(Z))))]),_:1},8,["class"])):u.createCommentVNode("v-if",!0),u.unref(re)?(u.openBlock(),u.createElementBlock("span",{key:3,class:u.normalizeClass(u.unref(f).e("count"))},[u.createElementVNode("span",{class:u.normalizeClass(u.unref(f).e("count-inner"))},u.toDisplayString(u.unref(ae))+" / "+u.toDisplayString(T.maxlength),3)],2)):u.createCommentVNode("v-if",!0),u.unref(x)&&u.unref(F)&&u.unref(S)?(u.openBlock(),u.createBlock(u.unref(h.ElIcon),{key:4,class:u.normalizeClass([u.unref(f).e("icon"),u.unref(f).e("validateIcon"),u.unref(f).is("loading",u.unref(x)==="validating")])},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(u.unref(F))))]),_:1},8,["class"])):u.createCommentVNode("v-if",!0)],2)],2)):u.createCommentVNode("v-if",!0)],2),u.createCommentVNode(" append slot "),T.$slots.append?(u.openBlock(),u.createElementBlock("div",{key:1,class:u.normalizeClass(u.unref(f).be("group","append"))},[u.renderSlot(T.$slots,"append")],2)):u.createCommentVNode("v-if",!0)],64)):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createCommentVNode(" textarea "),u.createElementVNode("textarea",u.mergeProps({id:u.unref(d),ref_key:"textarea",ref:E,class:[u.unref(m).e("inner"),u.unref(f).is("focus",u.unref(z))]},u.unref(s),{minlength:T.minlength,maxlength:T.maxlength,tabindex:T.tabindex,disabled:u.unref(g),readonly:T.readonly,autocomplete:T.autocomplete,style:u.unref(N),"aria-label":T.ariaLabel,placeholder:T.placeholder,form:T.form,autofocus:T.autofocus,rows:T.rows,role:T.containerRole,onCompositionstart:u.unref(Wr),onCompositionupdate:u.unref(Yr),onCompositionend:u.unref(Zr),onInput:_n,onFocus:u.unref(P),onBlur:u.unref(A),onChange:qr,onKeydown:Xr}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),u.unref(re)?(u.openBlock(),u.createElementBlock("span",{key:0,style:u.normalizeStyle(V.value),class:u.normalizeClass(u.unref(f).e("count"))},u.toDisplayString(u.unref(ae))+" / "+u.toDisplayString(T.maxlength),7)):u.createCommentVNode("v-if",!0)],64))],38))}});var _f=h._export_sfc(bf,[["__file","input.vue"]]);const Sf=h.withInstall(_f),Tn="focus-trap.focus-after-trapped",wn="focus-trap.focus-after-released",Tf="focus-trap.focusout-prevented",Co={cancelable:!0,bubbles:!1},wf={cancelable:!0,bubbles:!1},Oo="focusAfterTrapped",Do="focusAfterReleased",Af=Symbol("elFocusTrap"),Er=u.ref(),pn=u.ref(0),br=u.ref(0);let Bt=0;const Pi=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},Io=(e,t)=>{for(const n of e)if(!Cf(n,t))return n},Cf=(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},Of=e=>{const t=Pi(e),n=Io(t,e),r=Io(t.reverse(),e);return[n,r]},Df=e=>e instanceof HTMLInputElement&&"select"in e,_e=(e,t)=>{if(e&&e.focus){const n=document.activeElement;let r=!1;h.isElement(e)&&!mr(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),r=!0),e.focus({preventScroll:!0}),br.value=window.performance.now(),e!==n&&Df(e)&&t&&e.select(),h.isElement(e)&&r&&e.removeAttribute("tabindex")}};function ko(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const If=()=>{let e=[];return{push:r=>{const o=e[0];o&&r!==o&&o.pause(),e=ko(e,r),e.unshift(r)},remove:r=>{var o,s;e=ko(e,r),(s=(o=e[0])==null?void 0:o.resume)==null||s.call(o)}}},kf=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(_e(r,t),document.activeElement!==n)return},xo=If(),xf=()=>pn.value>br.value,Pt=()=>{Er.value="pointer",pn.value=window.performance.now()},Ro=()=>{Er.value="keyboard",pn.value=window.performance.now()},Rf=()=>(u.onMounted(()=>{Bt===0&&(document.addEventListener("mousedown",Pt),document.addEventListener("touchstart",Pt),document.addEventListener("keydown",Ro)),Bt++}),u.onBeforeUnmount(()=>{Bt--,Bt<=0&&(document.removeEventListener("mousedown",Pt),document.removeEventListener("touchstart",Pt),document.removeEventListener("keydown",Ro))}),{focusReason:Er,lastUserFocusTimestamp:pn,lastAutomatedFocusTimestamp:br}),Vt=e=>new CustomEvent(Tf,{...wf,detail:e});let We=[];const No=e=>{e.code===h.EVENT_CODE.esc&&We.forEach(t=>t(e))},Nf=e=>{u.onMounted(()=>{We.length===0&&document.addEventListener("keydown",No),h.isClient&&We.push(e)}),u.onBeforeUnmount(()=>{We=We.filter(t=>t!==e),We.length===0&&h.isClient&&document.removeEventListener("keydown",No)})},Bf=u.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Oo,Do,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=u.ref();let r,o;const{focusReason:s}=Rf();Nf(f=>{e.trapped&&!i.paused&&t("release-requested",f)});const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},a=f=>{if(!e.loop&&!e.trapped||i.paused)return;const{code:m,altKey:v,ctrlKey:E,metaKey:w,currentTarget:k,shiftKey:V}=f,{loop:K}=e,D=m===h.EVENT_CODE.tab&&!v&&!E&&!w,O=document.activeElement;if(D&&O){const z=k,[P,A]=Of(z);if(P&&A){if(!V&&O===A){const x=Vt({focusReason:s.value});t("focusout-prevented",x),x.defaultPrevented||(f.preventDefault(),K&&_e(P,!0))}else if(V&&[P,z].includes(O)){const x=Vt({focusReason:s.value});t("focusout-prevented",x),x.defaultPrevented||(f.preventDefault(),K&&_e(A,!0))}}else if(O===z){const x=Vt({focusReason:s.value});t("focusout-prevented",x),x.defaultPrevented||f.preventDefault()}}};u.provide(Af,{focusTrapRef:n,onKeydown:a}),u.watch(()=>e.focusTrapEl,f=>{f&&(n.value=f)},{immediate:!0}),u.watch([n],([f],[m])=>{f&&(f.addEventListener("keydown",a),f.addEventListener("focusin",p),f.addEventListener("focusout",d)),m&&(m.removeEventListener("keydown",a),m.removeEventListener("focusin",p),m.removeEventListener("focusout",d))});const l=f=>{t(Oo,f)},c=f=>t(Do,f),p=f=>{const m=u.unref(n);if(!m)return;const v=f.target,E=f.relatedTarget,w=v&&m.contains(v);e.trapped||E&&m.contains(E)||(r=E),w&&t("focusin",f),!i.paused&&e.trapped&&(w?o=v:_e(o,!0))},d=f=>{const m=u.unref(n);if(!(i.paused||!m))if(e.trapped){const v=f.relatedTarget;!vr(v)&&!m.contains(v)&&setTimeout(()=>{if(!i.paused&&e.trapped){const E=Vt({focusReason:s.value});t("focusout-prevented",E),E.defaultPrevented||_e(o,!0)}},0)}else{const v=f.target;v&&m.contains(v)||t("focusout",f)}};async function y(){await u.nextTick();const f=u.unref(n);if(f){xo.push(i);const m=f.contains(document.activeElement)?r:document.activeElement;if(r=m,!f.contains(m)){const E=new Event(Tn,Co);f.addEventListener(Tn,l),f.dispatchEvent(E),E.defaultPrevented||u.nextTick(()=>{let w=e.focusStartEl;h.isString(w)||(_e(w),document.activeElement!==w&&(w="first")),w==="first"&&kf(Pi(f),!0),(document.activeElement===m||w==="container")&&_e(f)})}}}function g(){const f=u.unref(n);if(f){f.removeEventListener(Tn,l);const m=new CustomEvent(wn,{...Co,detail:{focusReason:s.value}});f.addEventListener(wn,c),f.dispatchEvent(m),!m.defaultPrevented&&(s.value=="keyboard"||!xf()||f.contains(document.activeElement))&&_e(r??document.body),f.removeEventListener(wn,c),xo.remove(i)}}return u.onMounted(()=>{e.trapped&&y(),u.watch(()=>e.trapped,f=>{f?y():g()})}),u.onBeforeUnmount(()=>{e.trapped&&g(),n.value&&(n.value.removeEventListener("keydown",a),n.value.removeEventListener("focusin",p),n.value.removeEventListener("focusout",d),n.value=void 0)}),{onKeydown:a}}});function Pf(e,t,n,r,o,s){return u.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var Vf=h._export_sfc(Bf,[["render",Pf],["__file","focus-trap.vue"]]);const Vi=Symbol("buttonGroupContextKey"),Mf=({from:e,replacement:t,scope:n,version:r,ref:o,type:s="API"},i)=>{u.watch(()=>u.unref(i),a=>{a&&h.debugWarn(n,`[${s}] ${e} is about to be deprecated in version ${r}, please use ${t} instead.
6
6
  For more detail, please visit: ${o}
7
- `)},{immediate:!0})},Ff=(e,t)=>{Mf({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},u.computed(()=>e.type==="text"));const n=u.inject(Vi,void 0),r=d.useGlobalConfig("button"),{form:o}=xi(),s=Ni(u.computed(()=>n==null?void 0:n.size)),i=hn(),a=u.ref(),l=u.useSlots(),c=u.computed(()=>{var v;return e.type||(n==null?void 0:n.type)||((v=r.value)==null?void 0:v.type)||""}),p=u.computed(()=>{var v,E,w;return(w=(E=e.autoInsertSpace)!=null?E:(v=r.value)==null?void 0:v.autoInsertSpace)!=null?w:!1}),h=u.computed(()=>{var v,E,w;return(w=(E=e.plain)!=null?E:(v=r.value)==null?void 0:v.plain)!=null?w:!1}),y=u.computed(()=>{var v,E,w;return(w=(E=e.round)!=null?E:(v=r.value)==null?void 0:v.round)!=null?w:!1}),g=u.computed(()=>e.tag==="button"?{ariaDisabled:i.value||e.loading,disabled:i.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),f=u.computed(()=>{var v;const E=(v=l.default)==null?void 0:v.call(l);if(p.value&&(E==null?void 0:E.length)===1){const w=E[0];if((w==null?void 0:w.type)===u.Text){const k=w.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(k.trim())}}return!1});return{_disabled:i,_size:s,_type:c,_ref:a,_props:g,_plain:h,_round:y,shouldAddSpace:f,handleClick:v=>{if(i.value||e.loading){v.stopPropagation();return}e.nativeType==="reset"&&(o==null||o.resetFields()),t("click",v)}}},Lf=["default","primary","success","warning","info","danger","text",""],Uf=["button","submit","reset"],zn=d.buildProps({size:d.useSizeProp,disabled:Boolean,type:{type:String,values:Lf,default:""},icon:{type:d.iconPropType},nativeType:{type:String,values:Uf,default:"button"},loading:Boolean,loadingIcon:{type:d.iconPropType,default:()=>d.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:d.definePropType([String,Object]),default:"button"}}),$f={click:e=>e instanceof MouseEvent};function X(e,t){jf(e)&&(e="100%");var n=Hf(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 Mt(e){return Math.min(1,Math.max(0,e))}function jf(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Hf(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Mi(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ft(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Be(e){return e.length===1?"0"+e:String(e)}function Kf(e,t,n){return{r:X(e,255)*255,g:X(t,255)*255,b:X(n,255)*255}}function Bo(e,t,n){e=X(e,255),t=X(t,255),n=X(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),s=0,i=0,a=(r+o)/2;if(r===o)i=0,s=0;else{var l=r-o;switch(i=a>.5?l/(2-r-o):l/(r+o),r){case e:s=(t-n)/l+(t<n?6:0);break;case t:s=(n-e)/l+2;break;case n:s=(e-t)/l+4;break}s/=6}return{h:s,s:i,l:a}}function An(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 zf(e,t,n){var r,o,s;if(e=X(e,360),t=X(t,100),n=X(n,100),t===0)o=n,s=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,a=2*n-i;r=An(a,i,e+1/3),o=An(a,i,e),s=An(a,i,e-1/3)}return{r:r*255,g:o*255,b:s*255}}function Po(e,t,n){e=X(e,255),t=X(t,255),n=X(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),s=0,i=r,a=r-o,l=r===0?0:a/r;if(r===o)s=0;else{switch(r){case e:s=(t-n)/a+(t<n?6:0);break;case t:s=(n-e)/a+2;break;case n:s=(e-t)/a+4;break}s/=6}return{h:s,s:l,v:i}}function qf(e,t,n){e=X(e,360)*6,t=X(t,100),n=X(n,100);var r=Math.floor(e),o=e-r,s=n*(1-t),i=n*(1-o*t),a=n*(1-(1-o)*t),l=r%6,c=[n,i,s,s,a,n][l],p=[a,n,n,i,s,s][l],h=[s,s,a,n,n,i][l];return{r:c*255,g:p*255,b:h*255}}function Vo(e,t,n,r){var o=[Be(Math.round(e).toString(16)),Be(Math.round(t).toString(16)),Be(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Gf(e,t,n,r,o){var s=[Be(Math.round(e).toString(16)),Be(Math.round(t).toString(16)),Be(Math.round(n).toString(16)),Be(Wf(r))];return o&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))&&s[3].startsWith(s[3].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0)+s[3].charAt(0):s.join("")}function Wf(e){return Math.round(parseFloat(e)*255).toString(16)}function Mo(e){return se(e)/255}function se(e){return parseInt(e,16)}function Yf(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var qn={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 Zf(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,s=null,i=!1,a=!1;return typeof e=="string"&&(e=Qf(e)),typeof e=="object"&&(ye(e.r)&&ye(e.g)&&ye(e.b)?(t=Kf(e.r,e.g,e.b),i=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ye(e.h)&&ye(e.s)&&ye(e.v)?(r=Ft(e.s),o=Ft(e.v),t=qf(e.h,r,o),i=!0,a="hsv"):ye(e.h)&&ye(e.s)&&ye(e.l)&&(r=Ft(e.s),s=Ft(e.l),t=zf(e.h,r,s),i=!0,a="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Mi(n),{ok:i,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 Xf="[-\\+]?\\d+%?",Jf="[-\\+]?\\d*\\.\\d+%?",we="(?:".concat(Jf,")|(?:").concat(Xf,")"),Cn="[\\s|\\(]+(".concat(we,")[,|\\s]+(").concat(we,")[,|\\s]+(").concat(we,")\\s*\\)?"),On="[\\s|\\(]+(".concat(we,")[,|\\s]+(").concat(we,")[,|\\s]+(").concat(we,")[,|\\s]+(").concat(we,")\\s*\\)?"),ce={CSS_UNIT:new RegExp(we),rgb:new RegExp("rgb"+Cn),rgba:new RegExp("rgba"+On),hsl:new RegExp("hsl"+Cn),hsla:new RegExp("hsla"+On),hsv:new RegExp("hsv"+Cn),hsva:new RegExp("hsva"+On),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 Qf(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(qn[e])e=qn[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=ce.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=ce.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ce.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=ce.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ce.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=ce.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ce.hex8.exec(e),n?{r:se(n[1]),g:se(n[2]),b:se(n[3]),a:Mo(n[4]),format:t?"name":"hex8"}:(n=ce.hex6.exec(e),n?{r:se(n[1]),g:se(n[2]),b:se(n[3]),format:t?"name":"hex"}:(n=ce.hex4.exec(e),n?{r:se(n[1]+n[1]),g:se(n[2]+n[2]),b:se(n[3]+n[3]),a:Mo(n[4]+n[4]),format:t?"name":"hex8"}:(n=ce.hex3.exec(e),n?{r:se(n[1]+n[1]),g:se(n[2]+n[2]),b:se(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function ye(e){return!!ce.CSS_UNIT.exec(String(e))}var ed=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=Yf(t)),this.originalInput=t;var o=Zf(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.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=o.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,o,s=t.r/255,i=t.g/255,a=t.b/255;return s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),a<=.03928?o=a/12.92:o=Math.pow((a+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Mi(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=Po(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=Po(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Bo(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=Bo(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Vo(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),Gf(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(X(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(X(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="#"+Vo(this.r,this.g,this.b,!1),n=0,r=Object.entries(qn);n<r.length;n++){var o=r[n],s=o[0],i=o[1];if(t===i)return s}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,s=!n&&o&&(t.startsWith("hex")||t==="name");return s?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=Mt(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=Mt(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=Mt(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=Mt(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(),o=new e(t).toRgb(),s=n/100,i={r:(o.r-r.r)*s+r.r,g:(o.g-r.g)*s+r.g,b:(o.b-r.b)*s+r.b,a:(o.a-r.a)*s+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,s=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,s.push(new e(r));return s},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,o=n.s,s=n.v,i=[],a=1/t;t--;)i.push(new e({h:r,s:o,v:s})),s=(s+a)%1;return i},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(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},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,o=[this],s=360/t,i=1;i<t;i++)o.push(new e({h:(r+i*s)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function be(e,t=20){return e.mix("#141414",t).toString()}function td(e){const t=hn(),n=d.useNamespace("button");return u.computed(()=>{let r={},o=e.color;if(o){const s=o.match(/var\((.*?)\)/);s&&(o=window.getComputedStyle(window.document.documentElement).getPropertyValue(s[1]));const i=new ed(o),a=e.dark?i.tint(20).toString():be(i,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?be(i,90):i.tint(90).toString(),"text-color":o,"border-color":e.dark?be(i,50):i.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"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?be(i,90):i.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?be(i,50):i.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?be(i,80):i.tint(80).toString());else{const l=e.dark?be(i,30):i.tint(30).toString(),c=i.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":o,"text-color":c,"border-color":o,"hover-bg-color":l,"hover-text-color":c,"hover-border-color":l,"active-bg-color":a,"active-border-color":a}),t.value){const p=e.dark?be(i,50):i.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=p,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")]=p}}}return r})}const nd=u.defineComponent({name:"ElButton"}),rd=u.defineComponent({...nd,props:zn,emits:$f,setup(e,{expose:t,emit:n}){const r=e,o=td(r),s=d.useNamespace("button"),{_ref:i,_size:a,_type:l,_disabled:c,_props:p,_plain:h,_round:y,shouldAddSpace:g,handleClick:f}=Ff(r,n),m=u.computed(()=>[s.b(),s.m(l.value),s.m(a.value),s.is("disabled",c.value),s.is("loading",r.loading),s.is("plain",h.value),s.is("round",y.value),s.is("circle",r.circle),s.is("text",r.text),s.is("link",r.link),s.is("has-bg",r.bg)]);return t({ref:i,size:a,type:l,disabled:c,shouldAddSpace:g}),(v,E)=>(u.openBlock(),u.createBlock(u.resolveDynamicComponent(v.tag),u.mergeProps({ref_key:"_ref",ref:i},u.unref(p),{class:u.unref(m),style:u.unref(o),onClick:u.unref(f)}),{default:u.withCtx(()=>[v.loading?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[v.$slots.loading?u.renderSlot(v.$slots,"loading",{key:0}):(u.openBlock(),u.createBlock(u.unref(d.ElIcon),{key:1,class:u.normalizeClass(u.unref(s).is("loading"))},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(v.loadingIcon)))]),_:1},8,["class"]))],64)):v.icon||v.$slots.icon?(u.openBlock(),u.createBlock(u.unref(d.ElIcon),{key:1},{default:u.withCtx(()=>[v.icon?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(v.icon),{key:0})):u.renderSlot(v.$slots,"icon",{key:1})]),_:3})):u.createCommentVNode("v-if",!0),v.$slots.default?(u.openBlock(),u.createElementBlock("span",{key:2,class:u.normalizeClass({[u.unref(s).em("text","expand")]:u.unref(g)})},[u.renderSlot(v.$slots,"default")],2)):u.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var od=d._export_sfc(rd,[["__file","button.vue"]]);const sd={size:zn.size,type:zn.type},id=u.defineComponent({name:"ElButtonGroup"}),ad=u.defineComponent({...id,props:sd,setup(e){const t=e;u.provide(Vi,u.reactive({size:u.toRef(t,"size"),type:u.toRef(t,"type")}));const n=d.useNamespace("button");return(r,o)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(u.unref(n).b("group"))},[u.renderSlot(r.$slots,"default")],2))}});var Fi=d._export_sfc(ad,[["__file","button-group.vue"]]);const ud=d.withInstall(od,{ButtonGroup:Fi});d.withNoopInstall(Fi);var Gt=(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))(Gt||{});const Li=e=>{if(!e)return{onClick:d.NOOP,onMousedown:d.NOOP,onMouseup:d.NOOP};let t=!1,n=!1;return{onClick:i=>{t&&n&&e(i),t=n=!1},onMousedown:i=>{t=i.target===i.currentTarget},onMouseup:i=>{n=i.target===i.currentTarget}}},ld=d.buildProps({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:d.definePropType([String,Array,Object])},zIndex:{type:d.definePropType([String,Number])}}),cd={click:e=>e instanceof MouseEvent},fd="overlay";var dd=u.defineComponent({name:"ElOverlay",props:ld,emits:cd,setup(e,{slots:t,emit:n}){const r=d.useNamespace(fd),o=l=>{n("click",l)},{onClick:s,onMousedown:i,onMouseup:a}=Li(e.customMaskEvent?void 0:o);return()=>e.mask?u.createVNode("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:s,onMousedown:i,onMouseup:a},[u.renderSlot(t,"default")],Gt.STYLE|Gt.CLASS|Gt.PROPS,["onClick","onMouseup","onMousedown"]):u.h("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[u.renderSlot(t,"default")])}});const hd=dd,pd=(e,t,n,r)=>{const o={offsetX:0,offsetY:0},s=(h,y)=>{if(e.value){const{offsetX:g,offsetY:f}=o,m=e.value.getBoundingClientRect(),v=m.left,E=m.top,w=m.width,k=m.height,V=document.documentElement.clientWidth,K=document.documentElement.clientHeight,D=-v+g,O=-E+f,z=V-v-w+g,P=K-E-(k<K?k:0)+f;r!=null&&r.value||(h=Math.min(Math.max(h,D),z),y=Math.min(Math.max(y,O),P)),o.offsetX=h,o.offsetY=y,e.value.style.transform=`translate(${d.addUnit(h)}, ${d.addUnit(y)})`}},i=h=>{const y=h.clientX,g=h.clientY,{offsetX:f,offsetY:m}=o,v=w=>{const k=f+w.clientX-y,V=m+w.clientY-g;s(k,V)},E=()=>{document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",E)};document.addEventListener("mousemove",v),document.addEventListener("mouseup",E)},a=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",i),window.addEventListener("resize",p))},l=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",i),window.removeEventListener("resize",p))},c=()=>{o.offsetX=0,o.offsetY=0,e.value&&(e.value.style.transform="")},p=()=>{const{offsetX:h,offsetY:y}=o;s(h,y)};return u.onMounted(()=>{u.watchEffect(()=>{n.value?a():l()})}),u.onBeforeUnmount(()=>{l()}),{resetPosition:c,updatePosition:p}},gd=(e,t={})=>{u.isRef(e)||d.throwError("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||d.useNamespace("popup"),r=u.computed(()=>n.bm("parent","hidden"));if(!d.isClient||d.hasClass(document.body,r.value))return;let o=0,s=!1,i="0";const a=()=>{setTimeout(()=>{typeof document>"u"||s&&document&&(document.body.style.width=i,d.removeClass(document.body,r.value))},200)};u.watch(e,l=>{if(!l){a();return}s=!d.hasClass(document.body,r.value),s&&(i=document.body.style.width,d.addClass(document.body,r.value)),o=Xc(n.namespace.value);const c=document.documentElement.clientHeight<document.body.scrollHeight,p=d.getStyle(document.body,"overflowY");o>0&&(c||p==="scroll")&&s&&(document.body.style.width=`calc(100% - ${o}px)`)}),u.onScopeDispose(()=>a())},vd=e=>["",...d.componentSizes].includes(e),Gn="_trap-focus-children",Pe=[],Fo=e=>{var t;if(Pe.length===0)return;const n=Pe[Pe.length-1][Gn];if(n.length>0&&e.code===d.EVENT_CODE.tab){if(n.length===1){e.preventDefault(),document.activeElement!==n[0]&&n[0].focus();return}const r=e.shiftKey,o=e.target===n[0],s=e.target===n[n.length-1];if(o&&r&&(e.preventDefault(),n[n.length-1].focus()),s&&!r&&(e.preventDefault(),n[0].focus()),process.env.NODE_ENV==="test"){const i=n.indexOf(e.target);i!==-1&&((t=n[r?i-1:i+1])==null||t.focus())}}},yd={beforeMount(e){e[Gn]=Ao(e),Pe.push(e),Pe.length<=1&&document.addEventListener("keydown",Fo)},updated(e){u.nextTick(()=>{e[Gn]=Ao(e)})},unmounted(){Pe.shift(),Pe.length===0&&document.removeEventListener("keydown",Fo)}},md=u.defineComponent({name:"ElMessageBox",directives:{TrapFocus:yd},components:{ElButton:ud,ElFocusTrap:Vf,ElInput:Sf,ElOverlay:hd,ElIcon:d.ElIcon,...d.TypeComponents},inheritAttrs:!1,props:{buttonSize:{type:String,validator:vd},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:o,size:s}=d.useGlobalComponentSettings("message-box",u.computed(()=>e.buttonSize)),{t:i}=n,{nextZIndex:a}=r,l=u.ref(!1),c=u.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:u.markRaw(d.loading_default),cancelButtonLoadingIcon:u.markRaw(d.loading_default),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:a()}),p=u.computed(()=>{const N=c.type;return{[o.bm("icon",N)]:N&&d.TypeComponentsMap[N]}}),h=Kn(),y=Kn(),g=u.computed(()=>{const N=c.type;return c.icon||N&&d.TypeComponentsMap[N]||""}),f=u.computed(()=>!!c.message),m=u.ref(),v=u.ref(),E=u.ref(),w=u.ref(),k=u.ref(),V=u.computed(()=>c.confirmButtonClass);u.watch(()=>c.inputValue,async N=>{await u.nextTick(),e.boxType==="prompt"&&N&&x()},{immediate:!0}),u.watch(()=>l.value,N=>{var I,U;N&&(e.boxType!=="prompt"&&(c.autofocus?E.value=(U=(I=k.value)==null?void 0:I.$el)!=null?U:m.value:E.value=m.value),c.zIndex=a()),e.boxType==="prompt"&&(N?u.nextTick().then(()=>{var M;w.value&&w.value.$el&&(c.autofocus?E.value=(M=F())!=null?M:m.value:E.value=m.value)}):(c.editorErrorMessage="",c.validateError=!1))});const K=u.computed(()=>e.draggable),D=u.computed(()=>e.overflow);pd(m,v,K,D),u.onMounted(async()=>{await u.nextTick(),e.closeOnHashChange&&window.addEventListener("hashchange",O)}),u.onBeforeUnmount(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",O)});function O(){l.value&&(l.value=!1,u.nextTick(()=>{c.action&&t("action",c.action)}))}const z=()=>{e.closeOnClickModal&&S(c.distinguishCancelAndClose?"close":"cancel")},P=Li(z),A=N=>{if(c.inputType!=="textarea")return N.preventDefault(),S("confirm")},S=N=>{var I;e.boxType==="prompt"&&N==="confirm"&&!x()||(c.action=N,c.beforeClose?(I=c.beforeClose)==null||I.call(c,N,c,O):O())},x=()=>{if(e.boxType==="prompt"){const N=c.inputPattern;if(N&&!N.test(c.inputValue||""))return c.editorErrorMessage=c.inputErrorMessage||i("el.messagebox.error"),c.validateError=!0,!1;const I=c.inputValidator;if(d.isFunction$1(I)){const U=I(c.inputValue);if(U===!1)return c.editorErrorMessage=c.inputErrorMessage||i("el.messagebox.error"),c.validateError=!0,!1;if(d.isString(U))return c.editorErrorMessage=U,c.validateError=!0,!1}}return c.editorErrorMessage="",c.validateError=!1,!0},F=()=>{var N,I;const U=(N=w.value)==null?void 0:N.$refs;return(I=U==null?void 0:U.input)!=null?I:U==null?void 0:U.textarea},Z=()=>{S("close")},he=()=>{e.closeOnPressEscape&&Z()};return e.lockScroll&&gd(l),{...u.toRefs(c),ns:o,overlayEvent:P,visible:l,hasMessage:f,typeClass:p,contentId:h,inputId:y,btnSize:s,iconComponent:g,confirmButtonClasses:V,rootRef:m,focusStartRef:E,headerRef:v,inputRef:w,confirmRef:k,doClose:O,handleClose:Z,onCloseRequested:he,handleWrapperClick:z,handleInputEnter:A,handleAction:S,t:i}}});function Ed(e,t,n,r,o,s){const i=u.resolveComponent("el-icon"),a=u.resolveComponent("el-input"),l=u.resolveComponent("el-button"),c=u.resolveComponent("el-focus-trap"),p=u.resolveComponent("el-overlay");return u.openBlock(),u.createBlock(u.Transition,{name:"fade-in-linear",onAfterLeave:h=>e.$emit("vanish"),persisted:""},{default:u.withCtx(()=>[u.withDirectives(u.createVNode(p,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:u.withCtx(()=>[u.createElementVNode("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:u.normalizeClass(`${e.ns.namespace.value}-overlay-message-box`),onClick:e.overlayEvent.onClick,onMousedown:e.overlayEvent.onMousedown,onMouseup:e.overlayEvent.onMouseup},[u.createVNode(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:u.withCtx(()=>[u.createElementVNode("div",{ref:"rootRef",class:u.normalizeClass([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:u.normalizeStyle(e.customStyle),tabindex:"-1",onClick:u.withModifiers(()=>{},["stop"])},[e.title!==null&&e.title!==void 0?(u.openBlock(),u.createElementBlock("div",{key:0,ref:"headerRef",class:u.normalizeClass([e.ns.e("header"),{"show-close":e.showClose}])},[u.createElementVNode("div",{class:u.normalizeClass(e.ns.e("title"))},[e.iconComponent&&e.center?(u.openBlock(),u.createBlock(i,{key:0,class:u.normalizeClass([e.ns.e("status"),e.typeClass])},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):u.createCommentVNode("v-if",!0),u.createElementVNode("span",null,u.toDisplayString(e.title),1)],2),e.showClose?(u.openBlock(),u.createElementBlock("button",{key:0,type:"button",class:u.normalizeClass(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:h=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),onKeydown:u.withKeys(u.withModifiers(h=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[u.createVNode(i,{class:u.normalizeClass(e.ns.e("close"))},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.closeIcon||"close")))]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):u.createCommentVNode("v-if",!0)],2)):u.createCommentVNode("v-if",!0),u.createElementVNode("div",{id:e.contentId,class:u.normalizeClass(e.ns.e("content"))},[u.createElementVNode("div",{class:u.normalizeClass(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(u.openBlock(),u.createBlock(i,{key:0,class:u.normalizeClass([e.ns.e("status"),e.typeClass])},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):u.createCommentVNode("v-if",!0),e.hasMessage?(u.openBlock(),u.createElementBlock("div",{key:1,class:u.normalizeClass(e.ns.e("message"))},[u.renderSlot(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):u.createCommentVNode("v-if",!0)],2),u.withDirectives(u.createElementVNode("div",{class:u.normalizeClass(e.ns.e("input"))},[u.createVNode(a,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":h=>e.inputValue=h,type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:u.normalizeClass({invalid:e.validateError}),onKeydown:u.withKeys(e.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),u.createElementVNode("div",{class:u.normalizeClass(e.ns.e("errormsg")),style:u.normalizeStyle({visibility:e.editorErrorMessage?"visible":"hidden"})},u.toDisplayString(e.editorErrorMessage),7)],2),[[u.vShow,e.showInput]])],10,["id"]),u.createElementVNode("div",{class:u.normalizeClass(e.ns.e("btns"))},[e.showCancelButton?(u.openBlock(),u.createBlock(l,{key:0,loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:u.normalizeClass([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:h=>e.handleAction("cancel"),onKeydown:u.withKeys(u.withModifiers(h=>e.handleAction("cancel"),["prevent"]),["enter"])},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):u.createCommentVNode("v-if",!0),u.withDirectives(u.createVNode(l,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:u.normalizeClass([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:h=>e.handleAction("confirm"),onKeydown:u.withKeys(u.withModifiers(h=>e.handleAction("confirm"),["prevent"]),["enter"])},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[u.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"]),[[u.vShow,e.visible]])]),_:3},8,["onAfterLeave"])}var bd=d._export_sfc(md,[["render",Ed],["__file","index.vue"]]);const Tt=new Map,_d=e=>{let t=document.body;return e.appendTo&&(d.isString(e.appendTo)&&(t=document.querySelector(e.appendTo)),d.isElement(e.appendTo)&&(t=e.appendTo),d.isElement(t)||(d.debugWarn("ElMessageBox","the appendTo option is not an HTMLElement. Falling back to document.body."),t=document.body)),t},Sd=(e,t,n=null)=>{const r=u.createVNode(bd,e,d.isFunction$1(e.message)||u.isVNode(e.message)?{default:d.isFunction$1(e.message)?e.message:()=>e.message}:null);return r.appContext=n,u.render(r,t),_d(e).appendChild(t.firstElementChild),r.component},Td=()=>document.createElement("div"),wd=(e,t)=>{const n=Td();e.onVanish=()=>{u.render(null,n),Tt.delete(o)},e.onAction=s=>{const i=Tt.get(o);let a;e.showInput?a={value:o.inputValue,action:s}:a=s,e.callback?e.callback(a,r.proxy):s==="cancel"||s==="close"?e.distinguishCancelAndClose&&s!=="cancel"?i.reject("close"):i.reject("cancel"):i.resolve(a)};const r=Sd(e,n,t),o=r.proxy;for(const s in e)d.hasOwn(e,s)&&!d.hasOwn(o.$props,s)&&(s==="closeIcon"&&d.isObject$1(e[s])?o[s]=u.markRaw(e[s]):o[s]=e[s]);return o.visible=!0,o};function lt(e,t=null){if(!d.isClient)return Promise.reject();let n;return d.isString(e)||u.isVNode(e)?e={message:e}:n=e.callback,new Promise((r,o)=>{const s=wd(e,t??lt._context);Tt.set(s,{options:e,callback:n,resolve:r,reject:o})})}const Ad=["alert","confirm","prompt"],Cd={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};Ad.forEach(e=>{lt[e]=Od(e)});function Od(e){return(t,n,r,o)=>{let s="";return d.isObject$1(n)?(r=n,s=""):d.isUndefined(n)?s="":s=n,lt(Object.assign({title:s,message:t,type:"",...Cd[e]},r,{boxType:e}),o)}}lt.close=()=>{Tt.forEach((e,t)=>{t.doClose()}),Tt.clear()};lt._context=null;const Se=lt;Se.install=e=>{Se._context=e._context,e.config.globalProperties.$msgbox=Se,e.config.globalProperties.$messageBox=Se,e.config.globalProperties.$alert=Se.alert,e.config.globalProperties.$confirm=Se.confirm,e.config.globalProperties.$prompt=Se.prompt};const Ui=Se;function Dd(e){return d.axios.post("http://222.92.178.198:63002/platform/create",e)}function Id(e){return d.axios.post("http://222.92.178.198:63002/platform/get",e)}function kd(e){return d.axios.post("http://222.92.178.198:63002/platform/getPage",e)}function xd(e){return d.axios.post("http://222.92.178.198:63002/platform/delete",e)}function Rd(e){return d.axios.post("http://222.92.178.198:63002/platform/page/add",e)}var Nd=Object.create,$i=Object.defineProperty,Bd=Object.getOwnPropertyDescriptor,_r=Object.getOwnPropertyNames,Pd=Object.getPrototypeOf,Vd=Object.prototype.hasOwnProperty,Md=(e,t)=>function(){return e&&(t=(0,e[_r(e)[0]])(e=0)),t},Fd=(e,t)=>function(){return t||(0,e[_r(e)[0]])((t={exports:{}}).exports,t),t.exports},Ld=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of _r(t))!Vd.call(e,o)&&o!==n&&$i(e,o,{get:()=>t[o],enumerable:!(r=Bd(t,o))||r.enumerable});return e},Ud=(e,t,n)=>(n=e!=null?Nd(Pd(e)):{},Ld($i(n,"default",{value:e,enumerable:!0}),e)),xt=Md({"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"(){}}),$d=Fd({"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(e,t){xt(),t.exports=r;function n(s){return s instanceof Buffer?Buffer.from(s):new s.constructor(s.buffer.slice(),s.byteOffset,s.length)}function r(s){if(s=s||{},s.circles)return o(s);const i=new Map;if(i.set(Date,h=>new Date(h)),i.set(Map,(h,y)=>new Map(l(Array.from(h),y))),i.set(Set,(h,y)=>new Set(l(Array.from(h),y))),s.constructorHandlers)for(const h of s.constructorHandlers)i.set(h[0],h[1]);let a=null;return s.proto?p:c;function l(h,y){const g=Object.keys(h),f=new Array(g.length);for(let m=0;m<g.length;m++){const v=g[m],E=h[v];typeof E!="object"||E===null?f[v]=E:E.constructor!==Object&&(a=i.get(E.constructor))?f[v]=a(E,y):ArrayBuffer.isView(E)?f[v]=n(E):f[v]=y(E)}return f}function c(h){if(typeof h!="object"||h===null)return h;if(Array.isArray(h))return l(h,c);if(h.constructor!==Object&&(a=i.get(h.constructor)))return a(h,c);const y={};for(const g in h){if(Object.hasOwnProperty.call(h,g)===!1)continue;const f=h[g];typeof f!="object"||f===null?y[g]=f:f.constructor!==Object&&(a=i.get(f.constructor))?y[g]=a(f,c):ArrayBuffer.isView(f)?y[g]=n(f):y[g]=c(f)}return y}function p(h){if(typeof h!="object"||h===null)return h;if(Array.isArray(h))return l(h,p);if(h.constructor!==Object&&(a=i.get(h.constructor)))return a(h,p);const y={};for(const g in h){const f=h[g];typeof f!="object"||f===null?y[g]=f:f.constructor!==Object&&(a=i.get(f.constructor))?y[g]=a(f,p):ArrayBuffer.isView(f)?y[g]=n(f):y[g]=p(f)}return y}}function o(s){const i=[],a=[],l=new Map;if(l.set(Date,g=>new Date(g)),l.set(Map,(g,f)=>new Map(p(Array.from(g),f))),l.set(Set,(g,f)=>new Set(p(Array.from(g),f))),s.constructorHandlers)for(const g of s.constructorHandlers)l.set(g[0],g[1]);let c=null;return s.proto?y:h;function p(g,f){const m=Object.keys(g),v=new Array(m.length);for(let E=0;E<m.length;E++){const w=m[E],k=g[w];if(typeof k!="object"||k===null)v[w]=k;else if(k.constructor!==Object&&(c=l.get(k.constructor)))v[w]=c(k,f);else if(ArrayBuffer.isView(k))v[w]=n(k);else{const V=i.indexOf(k);V!==-1?v[w]=a[V]:v[w]=f(k)}}return v}function h(g){if(typeof g!="object"||g===null)return g;if(Array.isArray(g))return p(g,h);if(g.constructor!==Object&&(c=l.get(g.constructor)))return c(g,h);const f={};i.push(g),a.push(f);for(const m in g){if(Object.hasOwnProperty.call(g,m)===!1)continue;const v=g[m];if(typeof v!="object"||v===null)f[m]=v;else if(v.constructor!==Object&&(c=l.get(v.constructor)))f[m]=c(v,h);else if(ArrayBuffer.isView(v))f[m]=n(v);else{const E=i.indexOf(v);E!==-1?f[m]=a[E]:f[m]=h(v)}}return i.pop(),a.pop(),f}function y(g){if(typeof g!="object"||g===null)return g;if(Array.isArray(g))return p(g,y);if(g.constructor!==Object&&(c=l.get(g.constructor)))return c(g,y);const f={};i.push(g),a.push(f);for(const m in g){const v=g[m];if(typeof v!="object"||v===null)f[m]=v;else if(v.constructor!==Object&&(c=l.get(v.constructor)))f[m]=c(v,y);else if(ArrayBuffer.isView(v))f[m]=n(v);else{const E=i.indexOf(v);E!==-1?f[m]=a[E]:f[m]=y(v)}}return i.pop(),a.pop(),f}}}});xt();xt();xt();var ji=typeof navigator<"u",C=typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof global<"u"?global:{};typeof C.chrome<"u"&&C.chrome.devtools;ji&&(C.self,C.top);var Lo;typeof navigator<"u"&&((Lo=navigator.userAgent)==null||Lo.toLowerCase().includes("electron"));xt();var jd=Ud($d()),Hd=/(?:^|[-_/])(\w)/g;function Kd(e,t){return t?t.toUpperCase():""}function zd(e){return e&&`${e}`.replace(Hd,Kd)}function qd(e,t){let n=e.replace(/^[a-z]:/i,"").replace(/\\/g,"/");n.endsWith(`index${t}`)&&(n=n.replace(`/index${t}`,t));const r=n.lastIndexOf("/"),o=n.substring(r+1);{const s=o.lastIndexOf(t);return o.substring(0,s)}}var Uo=(0,jd.default)({circles:!0});const Gd={trailing:!0};function rt(e,t=25,n={}){if(n={...Gd,...n},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let r,o,s=[],i,a;const l=(c,p)=>(i=Wd(e,c,p),i.finally(()=>{if(i=null,n.trailing&&a&&!o){const h=l(c,a);return a=null,h}}),i);return function(...c){return i?(n.trailing&&(a=c),i):new Promise(p=>{const h=!o&&n.leading;clearTimeout(o),o=setTimeout(()=>{o=null;const y=n.leading?r:l(this,c);for(const g of s)g(y);s=[]},t),h?(r=l(this,c),p(r)):s.push(p)})}}async function Wd(e,t,n){return await e.apply(t,n)}function Wn(e,t={},n){for(const r in e){const o=e[r],s=n?`${n}:${r}`:r;typeof o=="object"&&o!==null?Wn(o,t,s):typeof o=="function"&&(t[s]=o)}return t}const Yd={run:e=>e()},Zd=()=>Yd,Hi=typeof console.createTask<"u"?console.createTask:Zd;function Xd(e,t){const n=t.shift(),r=Hi(n);return e.reduce((o,s)=>o.then(()=>r.run(()=>s(...t))),Promise.resolve())}function Jd(e,t){const n=t.shift(),r=Hi(n);return Promise.all(e.map(o=>r.run(()=>o(...t))))}function Dn(e,t){for(const n of[...e])n(t)}class Qd{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const o=t;let s;for(;this._deprecatedHooks[t];)s=this._deprecatedHooks[t],t=s.to;if(s&&!r.allowDeprecated){let i=s.message;i||(i=`${o} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,o=(...s)=>(typeof r=="function"&&r(),r=void 0,o=void 0,n(...s));return r=this.hook(t,o),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const o of r)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=Wn(t),r=Object.keys(n).map(o=>this.hook(o,n[o]));return()=>{for(const o of r.splice(0,r.length))o()}}removeHooks(t){const n=Wn(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(Xd,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Jd,t,...n)}callHookWith(t,n,...r){const o=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&Dn(this._before,o);const s=t(n in this._hooks?[...this._hooks[n]]:[],r);return s instanceof Promise?s.finally(()=>{this._after&&o&&Dn(this._after,o)}):(this._after&&o&&Dn(this._after,o),s)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function Ki(){return new Qd}var eh=Object.create,zi=Object.defineProperty,th=Object.getOwnPropertyDescriptor,Sr=Object.getOwnPropertyNames,nh=Object.getPrototypeOf,rh=Object.prototype.hasOwnProperty,oh=(e,t)=>function(){return e&&(t=(0,e[Sr(e)[0]])(e=0)),t},qi=(e,t)=>function(){return t||(0,e[Sr(e)[0]])((t={exports:{}}).exports,t),t.exports},sh=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Sr(t))!rh.call(e,o)&&o!==n&&zi(e,o,{get:()=>t[o],enumerable:!(r=th(t,o))||r.enumerable});return e},ih=(e,t,n)=>(n=e!=null?eh(nh(e)):{},sh(zi(n,"default",{value:e,enumerable:!0}),e)),_=oh({"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"(){}}),ah=qi({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(e,t){_(),function(n){var r={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"Ae",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"Oe",Ő:"O",Ø:"O",Ù:"U",Ú:"U",Û:"U",Ü:"Ue",Ű:"U",Ý:"Y",Þ:"TH",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"ae",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"oe",ő:"o",ø:"o",ù:"u",ú:"u",û:"u",ü:"ue",ű:"u",ý:"y",þ:"th",ÿ:"y","ẞ":"SS",ا:"a",أ:"a",إ:"i",آ:"aa",ؤ:"u",ئ:"e",ء:"a",ب:"b",ت:"t",ث:"th",ج:"j",ح:"h",خ:"kh",د:"d",ذ:"th",ر:"r",ز:"z",س:"s",ش:"sh",ص:"s",ض:"dh",ط:"t",ظ:"z",ع:"a",غ:"gh",ف:"f",ق:"q",ك:"k",ل:"l",م:"m",ن:"n",ه:"h",و:"w",ي:"y",ى:"a",ة:"h",ﻻ:"la",ﻷ:"laa",ﻹ:"lai",ﻵ:"laa",گ:"g",چ:"ch",پ:"p",ژ:"zh",ک:"k",ی:"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9",က:"k",ခ:"kh",ဂ:"g",ဃ:"ga",င:"ng",စ:"s",ဆ:"sa",ဇ:"z","စျ":"za",ည:"ny",ဋ:"t",ဌ:"ta",ဍ:"d",ဎ:"da",ဏ:"na",တ:"t",ထ:"ta",ဒ:"d",ဓ:"da",န:"n",ပ:"p",ဖ:"pa",ဗ:"b",ဘ:"ba",မ:"m",ယ:"y",ရ:"ya",လ:"l",ဝ:"w",သ:"th",ဟ:"h",ဠ:"la",အ:"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h",ဧ:"e","၏":"-e",ဣ:"i",ဤ:"-i",ဉ:"u",ဦ:"-u",ဩ:"aw","သြော":"aw",ဪ:"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"",č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z",ހ:"h",ށ:"sh",ނ:"n",ރ:"r",ބ:"b",ޅ:"lh",ކ:"k",އ:"a",ވ:"v",މ:"m",ފ:"f",ދ:"dh",ތ:"th",ލ:"l",ގ:"g",ޏ:"gn",ސ:"s",ޑ:"d",ޒ:"z",ޓ:"t",ޔ:"y",ޕ:"p",ޖ:"j",ޗ:"ch",ޘ:"tt",ޙ:"hh",ޚ:"kh",ޛ:"th",ޜ:"z",ޝ:"sh",ޞ:"s",ޟ:"d",ޠ:"t",ޡ:"z",ޢ:"a",ޣ:"gh",ޤ:"q",ޥ:"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"",ა:"a",ბ:"b",გ:"g",დ:"d",ე:"e",ვ:"v",ზ:"z",თ:"t",ი:"i",კ:"k",ლ:"l",მ:"m",ნ:"n",ო:"o",პ:"p",ჟ:"zh",რ:"r",ს:"s",ტ:"t",უ:"u",ფ:"p",ქ:"k",ღ:"gh",ყ:"q",შ:"sh",ჩ:"ch",ც:"ts",ძ:"dz",წ:"ts",ჭ:"ch",ხ:"kh",ჯ:"j",ჰ:"h",α:"a",β:"v",γ:"g",δ:"d",ε:"e",ζ:"z",η:"i",θ:"th",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"ks",ο:"o",π:"p",ρ:"r",σ:"s",τ:"t",υ:"y",φ:"f",χ:"x",ψ:"ps",ω:"o",ά:"a",έ:"e",ί:"i",ό:"o",ύ:"y",ή:"i",ώ:"o",ς:"s",ϊ:"i",ΰ:"y",ϋ:"y",ΐ:"i",Α:"A",Β:"B",Γ:"G",Δ:"D",Ε:"E",Ζ:"Z",Η:"I",Θ:"TH",Ι:"I",Κ:"K",Λ:"L",Μ:"M",Ν:"N",Ξ:"KS",Ο:"O",Π:"P",Ρ:"R",Σ:"S",Τ:"T",Υ:"Y",Φ:"F",Χ:"X",Ψ:"PS",Ω:"O",Ά:"A",Έ:"E",Ί:"I",Ό:"O",Ύ:"Y",Ή:"I",Ώ:"O",Ϊ:"I",Ϋ:"Y",ā:"a",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",ū:"u",Ā:"A",Ē:"E",Ģ:"G",Ī:"I",Ķ:"k",Ļ:"L",Ņ:"N",Ū:"U",Ќ:"Kj",ќ:"kj",Љ:"Lj",љ:"lj",Њ:"Nj",њ:"nj",Тс:"Ts",тс:"ts",ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"E",Ł:"L",Ń:"N",Ś:"S",Ź:"Z",Ż:"Z",Є:"Ye",І:"I",Ї:"Yi",Ґ:"G",є:"ye",і:"i",ї:"yi",ґ:"g",ă:"a",Ă:"A",ș:"s",Ș:"S",ț:"t",Ț:"T",ţ:"t",Ţ:"T",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"i",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"kh",ц:"c",ч:"ch",ш:"sh",щ:"sh",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"Yo",Ж:"Zh",З:"Z",И:"I",Й:"I",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"Kh",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sh",Ъ:"",Ы:"Y",Ь:"",Э:"E",Ю:"Yu",Я:"Ya",ђ:"dj",ј:"j",ћ:"c",џ:"dz",Ђ:"Dj",Ј:"j",Ћ:"C",Џ:"Dz",ľ:"l",ĺ:"l",ŕ:"r",Ľ:"L",Ĺ:"L",Ŕ:"R",ş:"s",Ş:"S",ı:"i",İ:"I",ğ:"g",Ğ:"G",ả:"a",Ả:"A",ẳ:"a",Ẳ:"A",ẩ:"a",Ẩ:"A",đ:"d",Đ:"D",ẹ:"e",Ẹ:"E",ẽ:"e",Ẽ:"E",ẻ:"e",Ẻ:"E",ế:"e",Ế:"E",ề:"e",Ề:"E",ệ:"e",Ệ:"E",ễ:"e",Ễ:"E",ể:"e",Ể:"E",ỏ:"o",ọ:"o",Ọ:"o",ố:"o",Ố:"O",ồ:"o",Ồ:"O",ổ:"o",Ổ:"O",ộ:"o",Ộ:"O",ỗ:"o",Ỗ:"O",ơ:"o",Ơ:"O",ớ:"o",Ớ:"O",ờ:"o",Ờ:"O",ợ:"o",Ợ:"O",ỡ:"o",Ỡ:"O",Ở:"o",ở:"o",ị:"i",Ị:"I",ĩ:"i",Ĩ:"I",ỉ:"i",Ỉ:"i",ủ:"u",Ủ:"U",ụ:"u",Ụ:"U",ũ:"u",Ũ:"U",ư:"u",Ư:"U",ứ:"u",Ứ:"U",ừ:"u",Ừ:"U",ự:"u",Ự:"U",ữ:"u",Ữ:"U",ử:"u",Ử:"ư",ỷ:"y",Ỷ:"y",ỳ:"y",Ỳ:"Y",ỵ:"y",Ỵ:"Y",ỹ:"y",Ỹ:"Y",ạ:"a",Ạ:"A",ấ:"a",Ấ:"A",ầ:"a",Ầ:"A",ậ:"a",Ậ:"A",ẫ:"a",Ẫ:"A",ắ:"a",Ắ:"A",ằ:"a",Ằ:"A",ặ:"a",Ặ:"A",ẵ:"a",Ẵ:"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d",ƒ:"f","™":"(TM)","©":"(C)",œ:"oe",Œ:"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o",º:"o",ª:"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY",元:"CNY",円:"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN",лв:"BGN","៛":"KHR","₡":"CRC","₸":"KZT",ден:"MKD",zł:"PLN","₽":"RUB","₾":"GEL"},o=["်","ް"],s={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},i={en:{},az:{ç:"c",ə:"e",ğ:"g",ı:"i",ö:"o",ş:"s",ü:"u",Ç:"C",Ə:"E",Ğ:"G",İ:"I",Ö:"O",Ş:"S",Ü:"U"},cs:{č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z"},fi:{ä:"a",Ä:"A",ö:"o",Ö:"O"},hu:{ä:"a",Ä:"A",ö:"o",Ö:"O",ü:"u",Ü:"U",ű:"u",Ű:"U"},lt:{ą:"a",č:"c",ę:"e",ė:"e",į:"i",š:"s",ų:"u",ū:"u",ž:"z",Ą:"A",Č:"C",Ę:"E",Ė:"E",Į:"I",Š:"S",Ų:"U",Ū:"U"},lv:{ā:"a",č:"c",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",š:"s",ū:"u",ž:"z",Ā:"A",Č:"C",Ē:"E",Ģ:"G",Ī:"i",Ķ:"k",Ļ:"L",Ņ:"N",Š:"S",Ū:"u",Ž:"Z"},pl:{ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ó:"o",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"e",Ł:"L",Ń:"N",Ó:"O",Ś:"S",Ź:"Z",Ż:"Z"},sv:{ä:"a",Ä:"A",ö:"o",Ö:"O"},sk:{ä:"a",Ä:"A"},sr:{љ:"lj",њ:"nj",Љ:"Lj",Њ:"Nj",đ:"dj",Đ:"Dj"},tr:{Ü:"U",Ö:"O",ü:"u",ö:"o"}},a={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","¤":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}},l=[";","?",":","@","&","=","+","$",",","/"].join(""),c=[";","?",":","@","&","=","+","$",","].join(""),p=[".","!","~","*","'","(",")"].join(""),h=function(v,E){var w="-",k="",V="",K=!0,D={},O,z,P,A,S,x,F,Z,he,N,I,U,M,re,ae="";if(typeof v!="string")return"";if(typeof E=="string"&&(w=E),F=a.en,Z=i.en,typeof E=="object"){O=E.maintainCase||!1,D=E.custom&&typeof E.custom=="object"?E.custom:D,P=+E.truncate>1&&E.truncate||!1,A=E.uric||!1,S=E.uricNoSlash||!1,x=E.mark||!1,K=!(E.symbols===!1||E.lang===!1),w=E.separator||w,A&&(ae+=l),S&&(ae+=c),x&&(ae+=p),F=E.lang&&a[E.lang]&&K?a[E.lang]:K?a.en:{},Z=E.lang&&i[E.lang]?i[E.lang]:E.lang===!1||E.lang===!0?{}:i.en,E.titleCase&&typeof E.titleCase.length=="number"&&Array.prototype.toString.call(E.titleCase)?(E.titleCase.forEach(function(oe){D[oe+""]=oe+""}),z=!0):z=!!E.titleCase,E.custom&&typeof E.custom.length=="number"&&Array.prototype.toString.call(E.custom)&&E.custom.forEach(function(oe){D[oe+""]=oe+""}),Object.keys(D).forEach(function(oe){var xe;oe.length>1?xe=new RegExp("\\b"+g(oe)+"\\b","gi"):xe=new RegExp(g(oe),"gi"),v=v.replace(xe,D[oe])});for(I in D)ae+=I}for(ae+=w,ae=g(ae),v=v.replace(/(^\s+|\s+$)/g,""),M=!1,re=!1,N=0,U=v.length;N<U;N++)I=v[N],f(I,D)?M=!1:Z[I]?(I=M&&Z[I].match(/[A-Za-z0-9]/)?" "+Z[I]:Z[I],M=!1):I in r?(N+1<U&&o.indexOf(v[N+1])>=0?(V+=I,I=""):re===!0?(I=s[V]+r[I],V=""):I=M&&r[I].match(/[A-Za-z0-9]/)?" "+r[I]:r[I],M=!1,re=!1):I in s?(V+=I,I="",N===U-1&&(I=s[V]),re=!0):F[I]&&!(A&&l.indexOf(I)!==-1)&&!(S&&c.indexOf(I)!==-1)?(I=M||k.substr(-1).match(/[A-Za-z0-9]/)?w+F[I]:F[I],I+=v[N+1]!==void 0&&v[N+1].match(/[A-Za-z0-9]/)?w:"",M=!0):(re===!0?(I=s[V]+I,V="",re=!1):M&&(/[A-Za-z0-9]/.test(I)||k.substr(-1).match(/A-Za-z0-9]/))&&(I=" "+I),M=!1),k+=I.replace(new RegExp("[^\\w\\s"+ae+"_-]","g"),w);return z&&(k=k.replace(/(\w)(\S*)/g,function(oe,xe,ht){var He=xe.toUpperCase()+(ht!==null?ht:"");return Object.keys(D).indexOf(He.toLowerCase())<0?He:He.toLowerCase()})),k=k.replace(/\s+/g,w).replace(new RegExp("\\"+w+"+","g"),w).replace(new RegExp("(^\\"+w+"+|\\"+w+"+$)","g"),""),P&&k.length>P&&(he=k.charAt(P)===w,k=k.slice(0,P),he||(k=k.slice(0,k.lastIndexOf(w)))),!O&&!z&&(k=k.toLowerCase()),k},y=function(v){return function(w){return h(w,v)}},g=function(v){return v.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},f=function(m,v){for(var E in v)if(v[E]===m)return!0};if(typeof t<"u"&&t.exports)t.exports=h,t.exports.createSlug=y;else if(typeof define<"u"&&define.amd)define([],function(){return h});else try{if(n.getSlug||n.createSlug)throw"speakingurl: globals exists /(getSlug|createSlug)/";n.getSlug=h,n.createSlug=y}catch{}}(e)}}),uh=qi({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(e,t){_(),t.exports=ah()}});_();_();_();_();_();_();_();_();function lh(e){var t;const n=e.name||e._componentTag||e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||e.__name;return n==="index"&&((t=e.__file)!=null&&t.endsWith("index.vue"))?"":n}function ch(e){const t=e.__file;if(t)return zd(qd(t,".vue"))}function $o(e,t){return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=t,t}function Tr(e){if(e.__VUE_DEVTOOLS_NEXT_APP_RECORD__)return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(e.root)return e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__}function Gi(e){var t,n;const r=(t=e.subTree)==null?void 0:t.type,o=Tr(e);return o?((n=o==null?void 0:o.types)==null?void 0:n.Fragment)===r:!1}function gn(e){var t,n,r;const o=lh((e==null?void 0:e.type)||{});if(o)return o;if((e==null?void 0:e.root)===e)return"Root";for(const i in(n=(t=e.parent)==null?void 0:t.type)==null?void 0:n.components)if(e.parent.type.components[i]===(e==null?void 0:e.type))return $o(e,i);for(const i in(r=e.appContext)==null?void 0:r.components)if(e.appContext.components[i]===(e==null?void 0:e.type))return $o(e,i);const s=ch((e==null?void 0:e.type)||{});return s||"Anonymous Component"}function fh(e){var t,n,r;const o=(r=(n=(t=e==null?void 0:e.appContext)==null?void 0:t.app)==null?void 0:n.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__)!=null?r:0,s=e===(e==null?void 0:e.root)?"root":e.uid;return`${o}:${s}`}function Yn(e,t){return t=t||`${e.id}:root`,e.instanceMap.get(t)||e.instanceMap.get(":root")}function dh(){const e={top:0,bottom:0,left:0,right:0,get width(){return e.right-e.left},get height(){return e.bottom-e.top}};return e}var Lt;function hh(e){return Lt||(Lt=document.createRange()),Lt.selectNode(e),Lt.getBoundingClientRect()}function ph(e){const t=dh();if(!e.children)return t;for(let n=0,r=e.children.length;n<r;n++){const o=e.children[n];let s;if(o.component)s=Fe(o.component);else if(o.el){const i=o.el;i.nodeType===1||i.getBoundingClientRect?s=i.getBoundingClientRect():i.nodeType===3&&i.data.trim()&&(s=hh(i))}s&&gh(t,s)}return t}function gh(e,t){return(!e.top||t.top<e.top)&&(e.top=t.top),(!e.bottom||t.bottom>e.bottom)&&(e.bottom=t.bottom),(!e.left||t.left<e.left)&&(e.left=t.left),(!e.right||t.right>e.right)&&(e.right=t.right),e}var jo={top:0,left:0,right:0,bottom:0,width:0,height:0};function Fe(e){const t=e.subTree.el;return typeof window>"u"?jo:Gi(e)?ph(e.subTree):(t==null?void 0:t.nodeType)===1?t==null?void 0:t.getBoundingClientRect():e.subTree.component?Fe(e.subTree.component):jo}_();function wr(e){return Gi(e)?vh(e.subTree):e.subTree?[e.subTree.el]:[]}function vh(e){if(!e.children)return[];const t=[];return e.children.forEach(n=>{n.component?t.push(...wr(n.component)):n!=null&&n.el&&t.push(n.el)}),t}var Wi="__vue-devtools-component-inspector__",Yi="__vue-devtools-component-inspector__card__",Zi="__vue-devtools-component-inspector__name__",Xi="__vue-devtools-component-inspector__indicator__",Ji={display:"block",zIndex:2147483640,position:"fixed",backgroundColor:"#42b88325",border:"1px solid #42b88350",borderRadius:"5px",transition:"all 0.1s ease-in",pointerEvents:"none"},yh={fontFamily:"Arial, Helvetica, sans-serif",padding:"5px 8px",borderRadius:"4px",textAlign:"left",position:"absolute",left:0,color:"#e9e9e9",fontSize:"14px",fontWeight:600,lineHeight:"24px",backgroundColor:"#42b883",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},mh={display:"inline-block",fontWeight:400,fontStyle:"normal",fontSize:"12px",opacity:.7};function ct(){return document.getElementById(Wi)}function Eh(){return document.getElementById(Yi)}function bh(){return document.getElementById(Xi)}function _h(){return document.getElementById(Zi)}function Ar(e){return{left:`${Math.round(e.left*100)/100}px`,top:`${Math.round(e.top*100)/100}px`,width:`${Math.round(e.width*100)/100}px`,height:`${Math.round(e.height*100)/100}px`}}function Cr(e){var t;const n=document.createElement("div");n.id=(t=e.elementId)!=null?t:Wi,Object.assign(n.style,{...Ji,...Ar(e.bounds),...e.style});const r=document.createElement("span");r.id=Yi,Object.assign(r.style,{...yh,top:e.bounds.top<35?0:"-35px"});const o=document.createElement("span");o.id=Zi,o.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`;const s=document.createElement("i");return s.id=Xi,s.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`,Object.assign(s.style,mh),r.appendChild(o),r.appendChild(s),n.appendChild(r),document.body.appendChild(n),n}function Or(e){const t=ct(),n=Eh(),r=_h(),o=bh();t&&(Object.assign(t.style,{...Ji,...Ar(e.bounds)}),Object.assign(n.style,{top:e.bounds.top<35?0:"-35px"}),r.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`,o.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`)}function Sh(e){const t=Fe(e);if(!t.width&&!t.height)return;const n=gn(e);ct()?Or({bounds:t,name:n}):Cr({bounds:t,name:n})}function Qi(){const e=ct();e&&(e.style.display="none")}var Zn=null;function Xn(e){const t=e.target;if(t){const n=t.__vueParentComponent;if(n&&(Zn=n,n.vnode.el)){const o=Fe(n),s=gn(n);ct()?Or({bounds:o,name:s}):Cr({bounds:o,name:s})}}}function Th(e,t){if(e.preventDefault(),e.stopPropagation(),Zn){const n=fh(Zn);t(n)}}var rn=null;function wh(){Qi(),window.removeEventListener("mouseover",Xn),window.removeEventListener("click",rn,!0),rn=null}function Ah(){return window.addEventListener("mouseover",Xn),new Promise(e=>{function t(n){n.preventDefault(),n.stopPropagation(),Th(n,r=>{window.removeEventListener("click",t,!0),rn=null,window.removeEventListener("mouseover",Xn);const o=ct();o&&(o.style.display="none"),e(JSON.stringify({id:r}))})}rn=t,window.addEventListener("click",t,!0)})}function Ch(e){const t=Yn(te.value,e.id);if(t){const[n]=wr(t);if(typeof n.scrollIntoView=="function")n.scrollIntoView({behavior:"smooth"});else{const r=Fe(t),o=document.createElement("div"),s={...Ar(r),position:"absolute"};Object.assign(o.style,s),document.body.appendChild(o),o.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{document.body.removeChild(o)},2e3)}setTimeout(()=>{const r=Fe(t);if(r.width||r.height){const o=gn(t),s=ct();s?Or({...e,name:o,bounds:r}):Cr({...e,name:o,bounds:r}),setTimeout(()=>{s&&(s.style.display="none")},1500)}},1200)}}_();var Ho,Ko;(Ko=(Ho=C).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__)!=null||(Ho.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__=!0);function Oh(e){let t=0;const n=setInterval(()=>{C.__VUE_INSPECTOR__&&(clearInterval(n),t+=30,e()),t>=5e3&&clearInterval(n)},30)}function Dh(){const e=C.__VUE_INSPECTOR__,t=e.openInEditor;e.openInEditor=async(...n)=>{e.disable(),t(...n)}}function Ih(){return new Promise(e=>{function t(){Dh(),e(C.__VUE_INSPECTOR__)}C.__VUE_INSPECTOR__?t():Oh(()=>{t()})})}_();_();function kh(e){return!!(e&&e.__v_isReadonly)}function ea(e){return kh(e)?ea(e.__v_raw):!!(e&&e.__v_isReactive)}function In(e){return!!(e&&e.__v_isRef===!0)}function vt(e){const t=e&&e.__v_raw;return t?vt(t):e}var xh=class{constructor(){this.refEditor=new Rh}set(e,t,n,r){const o=Array.isArray(t)?t:t.split(".");for(;o.length>1;){const a=o.shift();e instanceof Map?e=e.get(a):e instanceof Set?e=Array.from(e.values())[a]:e=e[a],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}const s=o[0],i=this.refEditor.get(e)[s];r?r(e,s,n):this.refEditor.isRef(i)?this.refEditor.set(i,n):e[s]=n}get(e,t){const n=Array.isArray(t)?t:t.split(".");for(let r=0;r<n.length;r++)if(e instanceof Map?e=e.get(n[r]):e=e[n[r]],this.refEditor.isRef(e)&&(e=this.refEditor.get(e)),!e)return;return e}has(e,t,n=!1){if(typeof e>"u")return!1;const r=Array.isArray(t)?t.slice():t.split("."),o=n?2:1;for(;e&&r.length>o;){const s=r.shift();e=e[s],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}return e!=null&&Object.prototype.hasOwnProperty.call(e,r[0])}createDefaultSetCallback(e){return(t,n,r)=>{if((e.remove||e.newKey)&&(Array.isArray(t)?t.splice(n,1):vt(t)instanceof Map?t.delete(n):vt(t)instanceof Set?t.delete(Array.from(t.values())[n]):Reflect.deleteProperty(t,n)),!e.remove){const o=t[e.newKey||n];this.refEditor.isRef(o)?this.refEditor.set(o,r):vt(t)instanceof Map?t.set(e.newKey||n,r):vt(t)instanceof Set?t.add(r):t[e.newKey||n]=r}}}},Rh=class{set(e,t){if(In(e))e.value=t;else{if(e instanceof Set&&Array.isArray(t)){e.clear(),t.forEach(o=>e.add(o));return}const n=Object.keys(t);if(e instanceof Map){const o=new Set(e.keys());n.forEach(s=>{e.set(s,Reflect.get(t,s)),o.delete(s)}),o.forEach(s=>e.delete(s));return}const r=new Set(Object.keys(e));n.forEach(o=>{Reflect.set(e,o,Reflect.get(t,o)),r.delete(o)}),r.forEach(o=>Reflect.deleteProperty(e,o))}}get(e){return In(e)?e.value:e}isRef(e){return In(e)||ea(e)}};_();_();_();var Nh="__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";function Bh(){if(!ji||typeof localStorage>"u"||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""};const e=localStorage.getItem(Nh);return e?JSON.parse(e):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""}}_();_();_();var zo,qo;(qo=(zo=C).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS)!=null||(zo.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS=[]);var Ph=new Proxy(C.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(e,t,n){return Reflect.get(e,t,n)}});function Vh(e,t){W.timelineLayersState[t.id]=!1,Ph.push({...e,descriptorId:t.id,appRecord:Tr(t.app)})}var Go,Wo;(Wo=(Go=C).__VUE_DEVTOOLS_KIT_INSPECTOR__)!=null||(Go.__VUE_DEVTOOLS_KIT_INSPECTOR__=[]);var Dr=new Proxy(C.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(e,t,n){return Reflect.get(e,t,n)}}),ta=rt(()=>{ft.hooks.callHook("sendInspectorToClient",na())});function Mh(e,t){var n,r;Dr.push({options:e,descriptor:t,treeFilterPlaceholder:(n=e.treeFilterPlaceholder)!=null?n:"Search tree...",stateFilterPlaceholder:(r=e.stateFilterPlaceholder)!=null?r:"Search state...",treeFilter:"",selectedNodeId:"",appRecord:Tr(t.app)}),ta()}function na(){return Dr.filter(e=>e.descriptor.app===te.value.app).filter(e=>e.descriptor.id!=="components").map(e=>{var t;const n=e.descriptor,r=e.options;return{id:r.id,label:r.label,logo:n.logo,icon:`custom-ic-baseline-${(t=r==null?void 0:r.icon)==null?void 0:t.replace(/_/g,"-")}`,packageName:n.packageName,homepage:n.homepage,pluginId:n.id}})}function Wt(e,t){return Dr.find(n=>n.options.id===e&&(t?n.descriptor.app===t:!0))}function Fh(){const e=Ki();e.hook("addInspector",({inspector:r,plugin:o})=>{Mh(r,o.descriptor)});const t=rt(async({inspectorId:r,plugin:o})=>{var s;if(!r||!((s=o==null?void 0:o.descriptor)!=null&&s.app)||W.highPerfModeEnabled)return;const i=Wt(r,o.descriptor.app),a={app:o.descriptor.app,inspectorId:r,filter:(i==null?void 0:i.treeFilter)||"",rootNodes:[]};await new Promise(l=>{e.callHookWith(async c=>{await Promise.all(c.map(p=>p(a))),l()},"getInspectorTree")}),e.callHookWith(async l=>{await Promise.all(l.map(c=>c({inspectorId:r,rootNodes:a.rootNodes})))},"sendInspectorTreeToClient")},120);e.hook("sendInspectorTree",t);const n=rt(async({inspectorId:r,plugin:o})=>{var s;if(!r||!((s=o==null?void 0:o.descriptor)!=null&&s.app)||W.highPerfModeEnabled)return;const i=Wt(r,o.descriptor.app),a={app:o.descriptor.app,inspectorId:r,nodeId:(i==null?void 0:i.selectedNodeId)||"",state:null},l={currentTab:`custom-inspector:${r}`};a.nodeId&&await new Promise(c=>{e.callHookWith(async p=>{await Promise.all(p.map(h=>h(a,l))),c()},"getInspectorState")}),e.callHookWith(async c=>{await Promise.all(c.map(p=>p({inspectorId:r,nodeId:a.nodeId,state:a.state})))},"sendInspectorStateToClient")},120);return e.hook("sendInspectorState",n),e.hook("customInspectorSelectNode",({inspectorId:r,nodeId:o,plugin:s})=>{const i=Wt(r,s.descriptor.app);i&&(i.selectedNodeId=o)}),e.hook("timelineLayerAdded",({options:r,plugin:o})=>{Vh(r,o.descriptor)}),e.hook("timelineEventAdded",({options:r,plugin:o})=>{var s;const i=["performance","component-event","keyboard","mouse"];W.highPerfModeEnabled||!((s=W.timelineLayersState)!=null&&s[o.descriptor.id])&&!i.includes(r.layerId)||e.callHookWith(async a=>{await Promise.all(a.map(l=>l(r)))},"sendTimelineEventToClient")}),e.hook("getComponentInstances",async({app:r})=>{const o=r.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!o)return null;const s=o.id.toString();return[...o.instanceMap].filter(([a])=>a.split(":")[0]===s).map(([,a])=>a)}),e.hook("getComponentBounds",async({instance:r})=>Fe(r)),e.hook("getComponentName",({instance:r})=>gn(r)),e.hook("componentHighlight",({uid:r})=>{const o=te.value.instanceMap.get(r);o&&Sh(o)}),e.hook("componentUnhighlight",()=>{Qi()}),e}var Yo,Zo;(Zo=(Yo=C).__VUE_DEVTOOLS_KIT_APP_RECORDS__)!=null||(Yo.__VUE_DEVTOOLS_KIT_APP_RECORDS__=[]);var Xo,Jo;(Jo=(Xo=C).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__)!=null||(Xo.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__={});var Qo,es;(es=(Qo=C).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__)!=null||(Qo.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__="");var ts,ns;(ns=(ts=C).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__)!=null||(ts.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__=[]);var rs,os;(os=(rs=C).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__)!=null||(rs.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__=[]);var Ve="__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";function Lh(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:"",tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:Bh()}}var ss,is;(is=(ss=C)[Ve])!=null||(ss[Ve]=Lh());var Uh=rt(e=>{ft.hooks.callHook("devtoolsStateUpdated",{state:e})});rt((e,t)=>{ft.hooks.callHook("devtoolsConnectedUpdated",{state:e,oldState:t})});var vn=new Proxy(C.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get(e,t,n){return t==="value"?C.__VUE_DEVTOOLS_KIT_APP_RECORDS__:C.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t]}}),te=new Proxy(C.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get(e,t,n){return t==="value"?C.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:t==="id"?C.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:C.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t]}});function ra(){Uh({...C[Ve],appRecords:vn.value,activeAppRecordId:te.id,tabs:C.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:C.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function $h(e){C.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=e,ra()}function jh(e){C.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=e,ra()}var W=new Proxy(C[Ve],{get(e,t){return t==="appRecords"?vn:t==="activeAppRecordId"?te.id:t==="tabs"?C.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:t==="commands"?C.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:C[Ve][t]},deleteProperty(e,t){return delete e[t],!0},set(e,t,n){return{...C[Ve]},e[t]=n,C[Ve][t]=n,!0}});function Hh(e={}){var t,n,r;const{file:o,host:s,baseUrl:i=window.location.origin,line:a=0,column:l=0}=e;if(o){if(s==="chrome-extension"){const c=o.replace(/\\/g,"\\\\"),p=(n=(t=window.VUE_DEVTOOLS_CONFIG)==null?void 0:t.openInEditorHost)!=null?n:"/";fetch(`${p}__open-in-editor?file=${encodeURI(o)}`).then(h=>{if(!h.ok){const y=`Opening component ${c} failed`;console.log(`%c${y}`,"color:red")}})}else if(W.vitePluginDetected){const c=(r=C.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__)!=null?r:i;C.__VUE_INSPECTOR__.openInEditor(c,o,a,l)}}}_();_();_();_();_();var as,us;(us=(as=C).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__)!=null||(as.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__=[]);var Ir=new Proxy(C.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(e,t,n){return Reflect.get(e,t,n)}});function Jn(e){const t={};return Object.keys(e).forEach(n=>{t[n]=e[n].defaultValue}),t}function kr(e){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`}function Kh(e){var t,n,r;const o=(n=(t=Ir.find(s=>{var i;return s[0].id===e&&!!((i=s[0])!=null&&i.settings)}))==null?void 0:t[0])!=null?n:null;return(r=o==null?void 0:o.settings)!=null?r:null}function oa(e,t){var n,r,o;const s=kr(e);if(s){const i=localStorage.getItem(s);if(i)return JSON.parse(i)}if(e){const i=(r=(n=Ir.find(a=>a[0].id===e))==null?void 0:n[0])!=null?r:null;return Jn((o=i==null?void 0:i.settings)!=null?o:{})}return Jn(t)}function zh(e,t){const n=kr(e);localStorage.getItem(n)||localStorage.setItem(n,JSON.stringify(Jn(t)))}function qh(e,t,n){const r=kr(e),o=localStorage.getItem(r),s=JSON.parse(o||"{}"),i={...s,[t]:n};localStorage.setItem(r,JSON.stringify(i)),ft.hooks.callHookWith(a=>{a.forEach(l=>l({pluginId:e,key:t,oldValue:s[t],newValue:n,settings:i}))},"setPluginSettings")}_();_();_();_();_();_();_();_();_();_();_();var ls,cs,ie=(cs=(ls=C).__VUE_DEVTOOLS_HOOK)!=null?cs:ls.__VUE_DEVTOOLS_HOOK=Ki(),Gh={vueAppInit(e){ie.hook("app:init",e)},vueAppUnmount(e){ie.hook("app:unmount",e)},vueAppConnected(e){ie.hook("app:connected",e)},componentAdded(e){return ie.hook("component:added",e)},componentEmit(e){return ie.hook("component:emit",e)},componentUpdated(e){return ie.hook("component:updated",e)},componentRemoved(e){return ie.hook("component:removed",e)},setupDevtoolsPlugin(e){ie.hook("devtools-plugin:setup",e)},perfStart(e){return ie.hook("perf:start",e)},perfEnd(e){return ie.hook("perf:end",e)}},sa={on:Gh,setupDevToolsPlugin(e,t){return ie.callHook("devtools-plugin:setup",e,t)}},Wh=class{constructor({plugin:e,ctx:t}){this.hooks=t.hooks,this.plugin=e}get on(){return{visitComponentTree:e=>{this.hooks.hook("visitComponentTree",e)},inspectComponent:e=>{this.hooks.hook("inspectComponent",e)},editComponentState:e=>{this.hooks.hook("editComponentState",e)},getInspectorTree:e=>{this.hooks.hook("getInspectorTree",e)},getInspectorState:e=>{this.hooks.hook("getInspectorState",e)},editInspectorState:e=>{this.hooks.hook("editInspectorState",e)},inspectTimelineEvent:e=>{this.hooks.hook("inspectTimelineEvent",e)},timelineCleared:e=>{this.hooks.hook("timelineCleared",e)},setPluginSettings:e=>{this.hooks.hook("setPluginSettings",e)}}}notifyComponentUpdate(e){var t;if(W.highPerfModeEnabled)return;const n=na().find(r=>r.packageName===this.plugin.descriptor.packageName);if(n!=null&&n.id){if(e){const r=[e.appContext.app,e.uid,(t=e.parent)==null?void 0:t.uid,e];ie.callHook("component:updated",...r)}else ie.callHook("component:updated");this.hooks.callHook("sendInspectorState",{inspectorId:n.id,plugin:this.plugin})}}addInspector(e){this.hooks.callHook("addInspector",{inspector:e,plugin:this.plugin}),this.plugin.descriptor.settings&&zh(e.id,this.plugin.descriptor.settings)}sendInspectorTree(e){W.highPerfModeEnabled||this.hooks.callHook("sendInspectorTree",{inspectorId:e,plugin:this.plugin})}sendInspectorState(e){W.highPerfModeEnabled||this.hooks.callHook("sendInspectorState",{inspectorId:e,plugin:this.plugin})}selectInspectorNode(e,t){this.hooks.callHook("customInspectorSelectNode",{inspectorId:e,nodeId:t,plugin:this.plugin})}visitComponentTree(e){return this.hooks.callHook("visitComponentTree",e)}now(){return W.highPerfModeEnabled?0:Date.now()}addTimelineLayer(e){this.hooks.callHook("timelineLayerAdded",{options:e,plugin:this.plugin})}addTimelineEvent(e){W.highPerfModeEnabled||this.hooks.callHook("timelineEventAdded",{options:e,plugin:this.plugin})}getSettings(e){return oa(e??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(e){return this.hooks.callHook("getComponentInstances",{app:e})}getComponentBounds(e){return this.hooks.callHook("getComponentBounds",{instance:e})}getComponentName(e){return this.hooks.callHook("getComponentName",{instance:e})}highlightElement(e){const t=e.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook("componentHighlight",{uid:t})}unhighlightElement(){return this.hooks.callHook("componentUnhighlight")}},Yh=Wh;_();_();_();_();var Zh="__vue_devtool_undefined__",Xh="__vue_devtool_infinity__",Jh="__vue_devtool_negative_infinity__",Qh="__vue_devtool_nan__";_();_();var ep={[Zh]:"undefined",[Qh]:"NaN",[Xh]:"Infinity",[Jh]:"-Infinity"};Object.entries(ep).reduce((e,[t,n])=>(e[n]=t,e),{});_();_();_();_();_();var fs,ds;(ds=(fs=C).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__)!=null||(fs.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__=new Set);function ia(e,t){return sa.setupDevToolsPlugin(e,t)}function tp(e,t){const[n,r]=e;if(n.app!==t)return;const o=new Yh({plugin:{setupFn:r,descriptor:n},ctx:ft});n.packageName==="vuex"&&o.on.editInspectorState(s=>{o.sendInspectorState(s.inspectorId)}),r(o)}function aa(e,t){C.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e)||W.highPerfModeEnabled&&!(t!=null&&t.inspectingComponent)||(C.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),Ir.forEach(n=>{tp(n,e)}))}_();_();var wt="__VUE_DEVTOOLS_ROUTER__",ot="__VUE_DEVTOOLS_ROUTER_INFO__",hs,ps;(ps=(hs=C)[ot])!=null||(hs[ot]={currentRoute:null,routes:[]});var gs,vs;(vs=(gs=C)[wt])!=null||(gs[wt]={});new Proxy(C[ot],{get(e,t){return C[ot][t]}});new Proxy(C[wt],{get(e,t){if(t==="value")return C[wt]}});function np(e){const t=new Map;return((e==null?void 0:e.getRoutes())||[]).filter(n=>!t.has(n.path)&&t.set(n.path,1))}function xr(e){return e.map(t=>{let{path:n,name:r,children:o,meta:s}=t;return o!=null&&o.length&&(o=xr(o)),{path:n,name:r,children:o,meta:s}})}function rp(e){if(e){const{fullPath:t,hash:n,href:r,path:o,name:s,matched:i,params:a,query:l}=e;return{fullPath:t,hash:n,href:r,path:o,name:s,params:a,query:l,matched:xr(i)}}return e}function op(e,t){function n(){var r;const o=(r=e.app)==null?void 0:r.config.globalProperties.$router,s=rp(o==null?void 0:o.currentRoute.value),i=xr(np(o)),a=console.warn;console.warn=()=>{},C[ot]={currentRoute:s?Uo(s):{},routes:Uo(i)},C[wt]=o,console.warn=a}n(),sa.on.componentUpdated(rt(()=>{var r;((r=t.value)==null?void 0:r.app)===e.app&&(n(),!W.highPerfModeEnabled&&ft.hooks.callHook("routerInfoUpdated",{state:C[ot]}))},200))}function sp(e){return{async getInspectorTree(t){const n={...t,app:te.value.app,rootNodes:[]};return await new Promise(r=>{e.callHookWith(async o=>{await Promise.all(o.map(s=>s(n))),r()},"getInspectorTree")}),n.rootNodes},async getInspectorState(t){const n={...t,app:te.value.app,state:null},r={currentTab:`custom-inspector:${t.inspectorId}`};return await new Promise(o=>{e.callHookWith(async s=>{await Promise.all(s.map(i=>i(n,r))),o()},"getInspectorState")}),n.state},editInspectorState(t){const n=new xh,r={...t,app:te.value.app,set:(o,s=t.path,i=t.state.value,a)=>{n.set(o,s,i,a||n.createDefaultSetCallback(t.state))}};e.callHookWith(o=>{o.forEach(s=>s(r))},"editInspectorState")},sendInspectorState(t){const n=Wt(t);e.callHook("sendInspectorState",{inspectorId:t,plugin:{descriptor:n.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return Ah()},cancelInspectComponentInspector(){return wh()},getComponentRenderCode(t){const n=Yn(te.value,t);if(n)return typeof(n==null?void 0:n.type)!="function"?n.render.toString():n.type.toString()},scrollToComponent(t){return Ch({id:t})},openInEditor:Hh,getVueInspector:Ih,toggleApp(t,n){const r=vn.value.find(o=>o.id===t);r&&(jh(t),$h(r),op(r,te),ta(),aa(r.app,n))},inspectDOM(t){const n=Yn(te.value,t);if(n){const[r]=wr(n);r&&(C.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=r)}},updatePluginSettings(t,n,r){qh(t,n,r)},getPluginSettings(t){return{options:Kh(t),values:oa(t)}}}}_();var ys,ms;(ms=(ys=C).__VUE_DEVTOOLS_ENV__)!=null||(ys.__VUE_DEVTOOLS_ENV__={vitePluginDetected:!1});var Es=Fh(),bs,_s;(_s=(bs=C).__VUE_DEVTOOLS_KIT_CONTEXT__)!=null||(bs.__VUE_DEVTOOLS_KIT_CONTEXT__={hooks:Es,get state(){return{...W,activeAppRecordId:te.id,activeAppRecord:te.value,appRecords:vn.value}},api:sp(Es)});var ft=C.__VUE_DEVTOOLS_KIT_CONTEXT__;_();ih(uh());var Ss,Ts;(Ts=(Ss=C).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__)!=null||(Ss.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__={id:0,appIds:new Set});_();_();function ip(e){W.highPerfModeEnabled=e??!W.highPerfModeEnabled,!e&&te.value&&aa(te.value.app)}_();_();_();function ap(e){W.devtoolsClientDetected={...W.devtoolsClientDetected,...e};const t=Object.values(W.devtoolsClientDetected).some(Boolean);ip(!t)}var ws,As;(As=(ws=C).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__)!=null||(ws.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__=ap);_();_();_();_();_();_();_();var up=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},ua=class{constructor(e){this.generateIdentifier=e,this.kv=new up}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},lp=class extends ua{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){typeof t=="object"?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};_();_();function cp(e){if("values"in Object)return Object.values(e);const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function fp(e,t){const n=cp(e);if("find"in n)return n.find(t);const r=n;for(let o=0;o<r.length;o++){const s=r[o];if(t(s))return s}}function st(e,t){Object.entries(e).forEach(([n,r])=>t(r,n))}function Yt(e,t){return e.indexOf(t)!==-1}function Cs(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(t(r))return r}}var dp=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return fp(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}};_();_();var hp=e=>Object.prototype.toString.call(e).slice(8,-1),la=e=>typeof e>"u",pp=e=>e===null,At=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,Qn=e=>At(e)&&Object.keys(e).length===0,ke=e=>Array.isArray(e),gp=e=>typeof e=="string",vp=e=>typeof e=="number"&&!isNaN(e),yp=e=>typeof e=="boolean",mp=e=>e instanceof RegExp,Ct=e=>e instanceof Map,Ot=e=>e instanceof Set,ca=e=>hp(e)==="Symbol",Ep=e=>e instanceof Date&&!isNaN(e.valueOf()),bp=e=>e instanceof Error,Os=e=>typeof e=="number"&&isNaN(e),_p=e=>yp(e)||pp(e)||la(e)||vp(e)||gp(e)||ca(e),Sp=e=>typeof e=="bigint",Tp=e=>e===1/0||e===-1/0,wp=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),Ap=e=>e instanceof URL;_();var fa=e=>e.replace(/\./g,"\\."),kn=e=>e.map(String).map(fa).join("."),_t=e=>{const t=[];let n="";for(let o=0;o<e.length;o++){let s=e.charAt(o);if(s==="\\"&&e.charAt(o+1)==="."){n+=".",o++;continue}if(s==="."){t.push(n),n="";continue}n+=s}const r=n;return t.push(r),t};_();function pe(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var da=[pe(la,"undefined",()=>null,()=>{}),pe(Sp,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)),pe(Ep,"Date",e=>e.toISOString(),e=>new Date(e)),pe(bp,"Error",(e,t)=>{const n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n},(e,t)=>{const n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n}),pe(mp,"regexp",e=>""+e,e=>{const t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),pe(Ot,"set",e=>[...e.values()],e=>new Set(e)),pe(Ct,"map",e=>[...e.entries()],e=>new Map(e)),pe(e=>Os(e)||Tp(e),"number",e=>Os(e)?"NaN":e>0?"Infinity":"-Infinity",Number),pe(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),pe(Ap,"URL",e=>e.toString(),e=>new URL(e))];function yn(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var ha=yn((e,t)=>ca(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{const r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),Cp=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),pa=yn(wp,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{const n=Cp[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function ga(e,t){return e!=null&&e.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}var va=yn(ga,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{const n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};const r={};return n.forEach(o=>{r[o]=e[o]}),r},(e,t,n)=>{const r=n.classRegistry.getValue(t[1]);if(!r)throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(r.prototype),e)}),ya=yn((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{const r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),Op=[va,ha,ya,pa],Ds=(e,t)=>{const n=Cs(Op,o=>o.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};const r=Cs(da,o=>o.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation}},ma={};da.forEach(e=>{ma[e.annotation]=e});var Dp=(e,t,n)=>{if(ke(t))switch(t[0]){case"symbol":return ha.untransform(e,t,n);case"class":return va.untransform(e,t,n);case"custom":return ya.untransform(e,t,n);case"typed-array":return pa.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{const r=ma[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}};_();var Ze=(e,t)=>{if(t>e.size)throw new Error("index out of bounds");const n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function Ea(e){if(Yt(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Yt(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Yt(e,"constructor"))throw new Error("constructor is not allowed as a property")}var Ip=(e,t)=>{Ea(t);for(let n=0;n<t.length;n++){const r=t[n];if(Ot(e))e=Ze(e,+r);else if(Ct(e)){const o=+r,s=+t[++n]==0?"key":"value",i=Ze(e,o);switch(s){case"key":e=i;break;case"value":e=e.get(i);break}}else e=e[r]}return e},er=(e,t,n)=>{if(Ea(t),t.length===0)return n(e);let r=e;for(let s=0;s<t.length-1;s++){const i=t[s];if(ke(r)){const a=+i;r=r[a]}else if(At(r))r=r[i];else if(Ot(r)){const a=+i;r=Ze(r,a)}else if(Ct(r)){if(s===t.length-2)break;const l=+i,c=+t[++s]==0?"key":"value",p=Ze(r,l);switch(c){case"key":r=p;break;case"value":r=r.get(p);break}}}const o=t[t.length-1];if(ke(r)?r[+o]=n(r[+o]):At(r)&&(r[o]=n(r[o])),Ot(r)){const s=Ze(r,+o),i=n(s);s!==i&&(r.delete(s),r.add(i))}if(Ct(r)){const s=+t[t.length-2],i=Ze(r,s);switch(+o==0?"key":"value"){case"key":{const l=n(i);r.set(l,r.get(i)),l!==i&&r.delete(i);break}case"value":{r.set(i,n(r.get(i)));break}}}return e};function tr(e,t,n=[]){if(!e)return;if(!ke(e)){st(e,(s,i)=>tr(s,t,[...n,..._t(i)]));return}const[r,o]=e;o&&st(o,(s,i)=>{tr(s,t,[...n,..._t(i)])}),t(r,n)}function kp(e,t,n){return tr(t,(r,o)=>{e=er(e,o,s=>Dp(s,r,n))}),e}function xp(e,t){function n(r,o){const s=Ip(e,_t(o));r.map(_t).forEach(i=>{e=er(e,i,()=>s)})}if(ke(t)){const[r,o]=t;r.forEach(s=>{e=er(e,_t(s),()=>e)}),o&&st(o,n)}else st(t,n);return e}var Rp=(e,t)=>At(e)||ke(e)||Ct(e)||Ot(e)||ga(e,t);function Np(e,t,n){const r=n.get(e);r?r.push(t):n.set(e,[t])}function Bp(e,t){const n={};let r;return e.forEach(o=>{if(o.length<=1)return;t||(o=o.map(a=>a.map(String)).sort((a,l)=>a.length-l.length));const[s,...i]=o;s.length===0?r=i.map(kn):n[kn(s)]=i.map(kn)}),r?Qn(n)?[r]:[r,n]:Qn(n)?void 0:n}var ba=(e,t,n,r,o=[],s=[],i=new Map)=>{var a;const l=_p(e);if(!l){Np(e,o,t);const f=i.get(e);if(f)return r?{transformedValue:null}:f}if(!Rp(e,n)){const f=Ds(e,n),m=f?{transformedValue:f.value,annotations:[f.type]}:{transformedValue:e};return l||i.set(e,m),m}if(Yt(s,e))return{transformedValue:null};const c=Ds(e,n),p=(a=c==null?void 0:c.value)!=null?a:e,h=ke(p)?[]:{},y={};st(p,(f,m)=>{if(m==="__proto__"||m==="constructor"||m==="prototype")throw new Error(`Detected property ${m}. This is a prototype pollution risk, please remove it from your object.`);const v=ba(f,t,n,r,[...o,m],[...s,e],i);h[m]=v.transformedValue,ke(v.annotations)?y[m]=v.annotations:At(v.annotations)&&st(v.annotations,(E,w)=>{y[fa(m)+"."+w]=E})});const g=Qn(y)?{transformedValue:h,annotations:c?[c.type]:void 0}:{transformedValue:h,annotations:c?[c.type,y]:y};return l||i.set(e,g),g};_();_();function _a(e){return Object.prototype.toString.call(e).slice(8,-1)}function Is(e){return _a(e)==="Array"}function Pp(e){if(_a(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Vp(e,t,n,r,o){const s={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";s==="enumerable"&&(e[t]=n),o&&s==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function nr(e,t={}){if(Is(e))return e.map(o=>nr(o,t));if(!Pp(e))return e;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((o,s)=>{if(Is(t.props)&&!t.props.includes(s))return o;const i=e[s],a=nr(i,t);return Vp(o,s,a,e,t.nonenumerable),o},{})}var j=class{constructor({dedupe:e=!1}={}){this.classRegistry=new lp,this.symbolRegistry=new ua(t=>{var n;return(n=t.description)!=null?n:""}),this.customTransformerRegistry=new dp,this.allowedErrorProps=[],this.dedupe=e}serialize(e){const t=new Map,n=ba(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta={...r.meta,values:n.annotations});const o=Bp(t,this.dedupe);return o&&(r.meta={...r.meta,referentialEqualities:o}),r}deserialize(e){const{json:t,meta:n}=e;let r=nr(t);return n!=null&&n.values&&(r=kp(r,n.values,this)),n!=null&&n.referentialEqualities&&(r=xp(r,n.referentialEqualities)),r}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};j.defaultInstance=new j;j.serialize=j.defaultInstance.serialize.bind(j.defaultInstance);j.deserialize=j.defaultInstance.deserialize.bind(j.defaultInstance);j.stringify=j.defaultInstance.stringify.bind(j.defaultInstance);j.parse=j.defaultInstance.parse.bind(j.defaultInstance);j.registerClass=j.defaultInstance.registerClass.bind(j.defaultInstance);j.registerSymbol=j.defaultInstance.registerSymbol.bind(j.defaultInstance);j.registerCustom=j.defaultInstance.registerCustom.bind(j.defaultInstance);j.allowErrorProps=j.defaultInstance.allowErrorProps.bind(j.defaultInstance);_();_();_();_();_();_();_();_();_();_();_();_();_();_();_();_();_();_();_();_();_();_();_();var ks,xs;(xs=(ks=C).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__)!=null||(ks.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__=[]);var Rs,Ns;(Ns=(Rs=C).__VUE_DEVTOOLS_KIT_RPC_CLIENT__)!=null||(Rs.__VUE_DEVTOOLS_KIT_RPC_CLIENT__=null);var Bs,Ps;(Ps=(Bs=C).__VUE_DEVTOOLS_KIT_RPC_SERVER__)!=null||(Bs.__VUE_DEVTOOLS_KIT_RPC_SERVER__=null);var Vs,Ms;(Ms=(Vs=C).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__)!=null||(Vs.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__=null);var Fs,Ls;(Ls=(Fs=C).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__)!=null||(Fs.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__=null);var Us,$s;($s=(Us=C).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__)!=null||(Us.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__=null);_();_();_();_();_();_();_();/*!
7
+ `)},{immediate:!0})},Ff=(e,t)=>{Mf({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},u.computed(()=>e.type==="text"));const n=u.inject(Vi,void 0),r=h.useGlobalConfig("button"),{form:o}=xi(),s=Ni(u.computed(()=>n==null?void 0:n.size)),i=hn(),a=u.ref(),l=u.useSlots(),c=u.computed(()=>{var v;return e.type||(n==null?void 0:n.type)||((v=r.value)==null?void 0:v.type)||""}),p=u.computed(()=>{var v,E,w;return(w=(E=e.autoInsertSpace)!=null?E:(v=r.value)==null?void 0:v.autoInsertSpace)!=null?w:!1}),d=u.computed(()=>{var v,E,w;return(w=(E=e.plain)!=null?E:(v=r.value)==null?void 0:v.plain)!=null?w:!1}),y=u.computed(()=>{var v,E,w;return(w=(E=e.round)!=null?E:(v=r.value)==null?void 0:v.round)!=null?w:!1}),g=u.computed(()=>e.tag==="button"?{ariaDisabled:i.value||e.loading,disabled:i.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),f=u.computed(()=>{var v;const E=(v=l.default)==null?void 0:v.call(l);if(p.value&&(E==null?void 0:E.length)===1){const w=E[0];if((w==null?void 0:w.type)===u.Text){const k=w.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(k.trim())}}return!1});return{_disabled:i,_size:s,_type:c,_ref:a,_props:g,_plain:d,_round:y,shouldAddSpace:f,handleClick:v=>{if(i.value||e.loading){v.stopPropagation();return}e.nativeType==="reset"&&(o==null||o.resetFields()),t("click",v)}}},Lf=["default","primary","success","warning","info","danger","text",""],Uf=["button","submit","reset"],zn=h.buildProps({size:h.useSizeProp,disabled:Boolean,type:{type:String,values:Lf,default:""},icon:{type:h.iconPropType},nativeType:{type:String,values:Uf,default:"button"},loading:Boolean,loadingIcon:{type:h.iconPropType,default:()=>h.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:h.definePropType([String,Object]),default:"button"}}),$f={click:e=>e instanceof MouseEvent};function X(e,t){jf(e)&&(e="100%");var n=Hf(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 Mt(e){return Math.min(1,Math.max(0,e))}function jf(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Hf(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Mi(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ft(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Be(e){return e.length===1?"0"+e:String(e)}function Kf(e,t,n){return{r:X(e,255)*255,g:X(t,255)*255,b:X(n,255)*255}}function Bo(e,t,n){e=X(e,255),t=X(t,255),n=X(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),s=0,i=0,a=(r+o)/2;if(r===o)i=0,s=0;else{var l=r-o;switch(i=a>.5?l/(2-r-o):l/(r+o),r){case e:s=(t-n)/l+(t<n?6:0);break;case t:s=(n-e)/l+2;break;case n:s=(e-t)/l+4;break}s/=6}return{h:s,s:i,l:a}}function An(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 zf(e,t,n){var r,o,s;if(e=X(e,360),t=X(t,100),n=X(n,100),t===0)o=n,s=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,a=2*n-i;r=An(a,i,e+1/3),o=An(a,i,e),s=An(a,i,e-1/3)}return{r:r*255,g:o*255,b:s*255}}function Po(e,t,n){e=X(e,255),t=X(t,255),n=X(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),s=0,i=r,a=r-o,l=r===0?0:a/r;if(r===o)s=0;else{switch(r){case e:s=(t-n)/a+(t<n?6:0);break;case t:s=(n-e)/a+2;break;case n:s=(e-t)/a+4;break}s/=6}return{h:s,s:l,v:i}}function qf(e,t,n){e=X(e,360)*6,t=X(t,100),n=X(n,100);var r=Math.floor(e),o=e-r,s=n*(1-t),i=n*(1-o*t),a=n*(1-(1-o)*t),l=r%6,c=[n,i,s,s,a,n][l],p=[a,n,n,i,s,s][l],d=[s,s,a,n,n,i][l];return{r:c*255,g:p*255,b:d*255}}function Vo(e,t,n,r){var o=[Be(Math.round(e).toString(16)),Be(Math.round(t).toString(16)),Be(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Gf(e,t,n,r,o){var s=[Be(Math.round(e).toString(16)),Be(Math.round(t).toString(16)),Be(Math.round(n).toString(16)),Be(Wf(r))];return o&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))&&s[3].startsWith(s[3].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0)+s[3].charAt(0):s.join("")}function Wf(e){return Math.round(parseFloat(e)*255).toString(16)}function Mo(e){return se(e)/255}function se(e){return parseInt(e,16)}function Yf(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var qn={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 Zf(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,s=null,i=!1,a=!1;return typeof e=="string"&&(e=Qf(e)),typeof e=="object"&&(ye(e.r)&&ye(e.g)&&ye(e.b)?(t=Kf(e.r,e.g,e.b),i=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ye(e.h)&&ye(e.s)&&ye(e.v)?(r=Ft(e.s),o=Ft(e.v),t=qf(e.h,r,o),i=!0,a="hsv"):ye(e.h)&&ye(e.s)&&ye(e.l)&&(r=Ft(e.s),s=Ft(e.l),t=zf(e.h,r,s),i=!0,a="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Mi(n),{ok:i,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 Xf="[-\\+]?\\d+%?",Jf="[-\\+]?\\d*\\.\\d+%?",we="(?:".concat(Jf,")|(?:").concat(Xf,")"),Cn="[\\s|\\(]+(".concat(we,")[,|\\s]+(").concat(we,")[,|\\s]+(").concat(we,")\\s*\\)?"),On="[\\s|\\(]+(".concat(we,")[,|\\s]+(").concat(we,")[,|\\s]+(").concat(we,")[,|\\s]+(").concat(we,")\\s*\\)?"),ce={CSS_UNIT:new RegExp(we),rgb:new RegExp("rgb"+Cn),rgba:new RegExp("rgba"+On),hsl:new RegExp("hsl"+Cn),hsla:new RegExp("hsla"+On),hsv:new RegExp("hsv"+Cn),hsva:new RegExp("hsva"+On),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 Qf(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(qn[e])e=qn[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=ce.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=ce.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ce.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=ce.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ce.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=ce.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ce.hex8.exec(e),n?{r:se(n[1]),g:se(n[2]),b:se(n[3]),a:Mo(n[4]),format:t?"name":"hex8"}:(n=ce.hex6.exec(e),n?{r:se(n[1]),g:se(n[2]),b:se(n[3]),format:t?"name":"hex"}:(n=ce.hex4.exec(e),n?{r:se(n[1]+n[1]),g:se(n[2]+n[2]),b:se(n[3]+n[3]),a:Mo(n[4]+n[4]),format:t?"name":"hex8"}:(n=ce.hex3.exec(e),n?{r:se(n[1]+n[1]),g:se(n[2]+n[2]),b:se(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function ye(e){return!!ce.CSS_UNIT.exec(String(e))}var ed=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=Yf(t)),this.originalInput=t;var o=Zf(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.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=o.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,o,s=t.r/255,i=t.g/255,a=t.b/255;return s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),a<=.03928?o=a/12.92:o=Math.pow((a+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Mi(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=Po(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=Po(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Bo(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=Bo(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Vo(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),Gf(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(X(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(X(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="#"+Vo(this.r,this.g,this.b,!1),n=0,r=Object.entries(qn);n<r.length;n++){var o=r[n],s=o[0],i=o[1];if(t===i)return s}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,s=!n&&o&&(t.startsWith("hex")||t==="name");return s?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=Mt(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=Mt(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=Mt(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=Mt(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(),o=new e(t).toRgb(),s=n/100,i={r:(o.r-r.r)*s+r.r,g:(o.g-r.g)*s+r.g,b:(o.b-r.b)*s+r.b,a:(o.a-r.a)*s+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,s=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,s.push(new e(r));return s},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,o=n.s,s=n.v,i=[],a=1/t;t--;)i.push(new e({h:r,s:o,v:s})),s=(s+a)%1;return i},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(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},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,o=[this],s=360/t,i=1;i<t;i++)o.push(new e({h:(r+i*s)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function be(e,t=20){return e.mix("#141414",t).toString()}function td(e){const t=hn(),n=h.useNamespace("button");return u.computed(()=>{let r={},o=e.color;if(o){const s=o.match(/var\((.*?)\)/);s&&(o=window.getComputedStyle(window.document.documentElement).getPropertyValue(s[1]));const i=new ed(o),a=e.dark?i.tint(20).toString():be(i,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?be(i,90):i.tint(90).toString(),"text-color":o,"border-color":e.dark?be(i,50):i.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"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?be(i,90):i.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?be(i,50):i.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?be(i,80):i.tint(80).toString());else{const l=e.dark?be(i,30):i.tint(30).toString(),c=i.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":o,"text-color":c,"border-color":o,"hover-bg-color":l,"hover-text-color":c,"hover-border-color":l,"active-bg-color":a,"active-border-color":a}),t.value){const p=e.dark?be(i,50):i.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=p,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")]=p}}}return r})}const nd=u.defineComponent({name:"ElButton"}),rd=u.defineComponent({...nd,props:zn,emits:$f,setup(e,{expose:t,emit:n}){const r=e,o=td(r),s=h.useNamespace("button"),{_ref:i,_size:a,_type:l,_disabled:c,_props:p,_plain:d,_round:y,shouldAddSpace:g,handleClick:f}=Ff(r,n),m=u.computed(()=>[s.b(),s.m(l.value),s.m(a.value),s.is("disabled",c.value),s.is("loading",r.loading),s.is("plain",d.value),s.is("round",y.value),s.is("circle",r.circle),s.is("text",r.text),s.is("link",r.link),s.is("has-bg",r.bg)]);return t({ref:i,size:a,type:l,disabled:c,shouldAddSpace:g}),(v,E)=>(u.openBlock(),u.createBlock(u.resolveDynamicComponent(v.tag),u.mergeProps({ref_key:"_ref",ref:i},u.unref(p),{class:u.unref(m),style:u.unref(o),onClick:u.unref(f)}),{default:u.withCtx(()=>[v.loading?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[v.$slots.loading?u.renderSlot(v.$slots,"loading",{key:0}):(u.openBlock(),u.createBlock(u.unref(h.ElIcon),{key:1,class:u.normalizeClass(u.unref(s).is("loading"))},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(v.loadingIcon)))]),_:1},8,["class"]))],64)):v.icon||v.$slots.icon?(u.openBlock(),u.createBlock(u.unref(h.ElIcon),{key:1},{default:u.withCtx(()=>[v.icon?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(v.icon),{key:0})):u.renderSlot(v.$slots,"icon",{key:1})]),_:3})):u.createCommentVNode("v-if",!0),v.$slots.default?(u.openBlock(),u.createElementBlock("span",{key:2,class:u.normalizeClass({[u.unref(s).em("text","expand")]:u.unref(g)})},[u.renderSlot(v.$slots,"default")],2)):u.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var od=h._export_sfc(rd,[["__file","button.vue"]]);const sd={size:zn.size,type:zn.type},id=u.defineComponent({name:"ElButtonGroup"}),ad=u.defineComponent({...id,props:sd,setup(e){const t=e;u.provide(Vi,u.reactive({size:u.toRef(t,"size"),type:u.toRef(t,"type")}));const n=h.useNamespace("button");return(r,o)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(u.unref(n).b("group"))},[u.renderSlot(r.$slots,"default")],2))}});var Fi=h._export_sfc(ad,[["__file","button-group.vue"]]);const ud=h.withInstall(od,{ButtonGroup:Fi});h.withNoopInstall(Fi);var Gt=(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))(Gt||{});const Li=e=>{if(!e)return{onClick:h.NOOP,onMousedown:h.NOOP,onMouseup:h.NOOP};let t=!1,n=!1;return{onClick:i=>{t&&n&&e(i),t=n=!1},onMousedown:i=>{t=i.target===i.currentTarget},onMouseup:i=>{n=i.target===i.currentTarget}}},ld=h.buildProps({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:h.definePropType([String,Array,Object])},zIndex:{type:h.definePropType([String,Number])}}),cd={click:e=>e instanceof MouseEvent},fd="overlay";var dd=u.defineComponent({name:"ElOverlay",props:ld,emits:cd,setup(e,{slots:t,emit:n}){const r=h.useNamespace(fd),o=l=>{n("click",l)},{onClick:s,onMousedown:i,onMouseup:a}=Li(e.customMaskEvent?void 0:o);return()=>e.mask?u.createVNode("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:s,onMousedown:i,onMouseup:a},[u.renderSlot(t,"default")],Gt.STYLE|Gt.CLASS|Gt.PROPS,["onClick","onMouseup","onMousedown"]):u.h("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[u.renderSlot(t,"default")])}});const hd=dd,pd=(e,t,n,r)=>{const o={offsetX:0,offsetY:0},s=(d,y)=>{if(e.value){const{offsetX:g,offsetY:f}=o,m=e.value.getBoundingClientRect(),v=m.left,E=m.top,w=m.width,k=m.height,V=document.documentElement.clientWidth,K=document.documentElement.clientHeight,D=-v+g,O=-E+f,z=V-v-w+g,P=K-E-(k<K?k:0)+f;r!=null&&r.value||(d=Math.min(Math.max(d,D),z),y=Math.min(Math.max(y,O),P)),o.offsetX=d,o.offsetY=y,e.value.style.transform=`translate(${h.addUnit(d)}, ${h.addUnit(y)})`}},i=d=>{const y=d.clientX,g=d.clientY,{offsetX:f,offsetY:m}=o,v=w=>{const k=f+w.clientX-y,V=m+w.clientY-g;s(k,V)},E=()=>{document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",E)};document.addEventListener("mousemove",v),document.addEventListener("mouseup",E)},a=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",i),window.addEventListener("resize",p))},l=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",i),window.removeEventListener("resize",p))},c=()=>{o.offsetX=0,o.offsetY=0,e.value&&(e.value.style.transform="")},p=()=>{const{offsetX:d,offsetY:y}=o;s(d,y)};return u.onMounted(()=>{u.watchEffect(()=>{n.value?a():l()})}),u.onBeforeUnmount(()=>{l()}),{resetPosition:c,updatePosition:p}},gd=(e,t={})=>{u.isRef(e)||h.throwError("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||h.useNamespace("popup"),r=u.computed(()=>n.bm("parent","hidden"));if(!h.isClient||h.hasClass(document.body,r.value))return;let o=0,s=!1,i="0";const a=()=>{setTimeout(()=>{typeof document>"u"||s&&document&&(document.body.style.width=i,h.removeClass(document.body,r.value))},200)};u.watch(e,l=>{if(!l){a();return}s=!h.hasClass(document.body,r.value),s&&(i=document.body.style.width,h.addClass(document.body,r.value)),o=Xc(n.namespace.value);const c=document.documentElement.clientHeight<document.body.scrollHeight,p=h.getStyle(document.body,"overflowY");o>0&&(c||p==="scroll")&&s&&(document.body.style.width=`calc(100% - ${o}px)`)}),u.onScopeDispose(()=>a())},vd=e=>["",...h.componentSizes].includes(e),Gn="_trap-focus-children",Pe=[],Fo=e=>{var t;if(Pe.length===0)return;const n=Pe[Pe.length-1][Gn];if(n.length>0&&e.code===h.EVENT_CODE.tab){if(n.length===1){e.preventDefault(),document.activeElement!==n[0]&&n[0].focus();return}const r=e.shiftKey,o=e.target===n[0],s=e.target===n[n.length-1];if(o&&r&&(e.preventDefault(),n[n.length-1].focus()),s&&!r&&(e.preventDefault(),n[0].focus()),process.env.NODE_ENV==="test"){const i=n.indexOf(e.target);i!==-1&&((t=n[r?i-1:i+1])==null||t.focus())}}},yd={beforeMount(e){e[Gn]=Ao(e),Pe.push(e),Pe.length<=1&&document.addEventListener("keydown",Fo)},updated(e){u.nextTick(()=>{e[Gn]=Ao(e)})},unmounted(){Pe.shift(),Pe.length===0&&document.removeEventListener("keydown",Fo)}},md=u.defineComponent({name:"ElMessageBox",directives:{TrapFocus:yd},components:{ElButton:ud,ElFocusTrap:Vf,ElInput:Sf,ElOverlay:hd,ElIcon:h.ElIcon,...h.TypeComponents},inheritAttrs:!1,props:{buttonSize:{type:String,validator:vd},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:o,size:s}=h.useGlobalComponentSettings("message-box",u.computed(()=>e.buttonSize)),{t:i}=n,{nextZIndex:a}=r,l=u.ref(!1),c=u.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:u.markRaw(h.loading_default),cancelButtonLoadingIcon:u.markRaw(h.loading_default),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:a()}),p=u.computed(()=>{const N=c.type;return{[o.bm("icon",N)]:N&&h.TypeComponentsMap[N]}}),d=Kn(),y=Kn(),g=u.computed(()=>{const N=c.type;return c.icon||N&&h.TypeComponentsMap[N]||""}),f=u.computed(()=>!!c.message),m=u.ref(),v=u.ref(),E=u.ref(),w=u.ref(),k=u.ref(),V=u.computed(()=>c.confirmButtonClass);u.watch(()=>c.inputValue,async N=>{await u.nextTick(),e.boxType==="prompt"&&N&&x()},{immediate:!0}),u.watch(()=>l.value,N=>{var I,U;N&&(e.boxType!=="prompt"&&(c.autofocus?E.value=(U=(I=k.value)==null?void 0:I.$el)!=null?U:m.value:E.value=m.value),c.zIndex=a()),e.boxType==="prompt"&&(N?u.nextTick().then(()=>{var M;w.value&&w.value.$el&&(c.autofocus?E.value=(M=F())!=null?M:m.value:E.value=m.value)}):(c.editorErrorMessage="",c.validateError=!1))});const K=u.computed(()=>e.draggable),D=u.computed(()=>e.overflow);pd(m,v,K,D),u.onMounted(async()=>{await u.nextTick(),e.closeOnHashChange&&window.addEventListener("hashchange",O)}),u.onBeforeUnmount(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",O)});function O(){l.value&&(l.value=!1,u.nextTick(()=>{c.action&&t("action",c.action)}))}const z=()=>{e.closeOnClickModal&&S(c.distinguishCancelAndClose?"close":"cancel")},P=Li(z),A=N=>{if(c.inputType!=="textarea")return N.preventDefault(),S("confirm")},S=N=>{var I;e.boxType==="prompt"&&N==="confirm"&&!x()||(c.action=N,c.beforeClose?(I=c.beforeClose)==null||I.call(c,N,c,O):O())},x=()=>{if(e.boxType==="prompt"){const N=c.inputPattern;if(N&&!N.test(c.inputValue||""))return c.editorErrorMessage=c.inputErrorMessage||i("el.messagebox.error"),c.validateError=!0,!1;const I=c.inputValidator;if(h.isFunction$1(I)){const U=I(c.inputValue);if(U===!1)return c.editorErrorMessage=c.inputErrorMessage||i("el.messagebox.error"),c.validateError=!0,!1;if(h.isString(U))return c.editorErrorMessage=U,c.validateError=!0,!1}}return c.editorErrorMessage="",c.validateError=!1,!0},F=()=>{var N,I;const U=(N=w.value)==null?void 0:N.$refs;return(I=U==null?void 0:U.input)!=null?I:U==null?void 0:U.textarea},Z=()=>{S("close")},he=()=>{e.closeOnPressEscape&&Z()};return e.lockScroll&&gd(l),{...u.toRefs(c),ns:o,overlayEvent:P,visible:l,hasMessage:f,typeClass:p,contentId:d,inputId:y,btnSize:s,iconComponent:g,confirmButtonClasses:V,rootRef:m,focusStartRef:E,headerRef:v,inputRef:w,confirmRef:k,doClose:O,handleClose:Z,onCloseRequested:he,handleWrapperClick:z,handleInputEnter:A,handleAction:S,t:i}}});function Ed(e,t,n,r,o,s){const i=u.resolveComponent("el-icon"),a=u.resolveComponent("el-input"),l=u.resolveComponent("el-button"),c=u.resolveComponent("el-focus-trap"),p=u.resolveComponent("el-overlay");return u.openBlock(),u.createBlock(u.Transition,{name:"fade-in-linear",onAfterLeave:d=>e.$emit("vanish"),persisted:""},{default:u.withCtx(()=>[u.withDirectives(u.createVNode(p,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:u.withCtx(()=>[u.createElementVNode("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:u.normalizeClass(`${e.ns.namespace.value}-overlay-message-box`),onClick:e.overlayEvent.onClick,onMousedown:e.overlayEvent.onMousedown,onMouseup:e.overlayEvent.onMouseup},[u.createVNode(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:u.withCtx(()=>[u.createElementVNode("div",{ref:"rootRef",class:u.normalizeClass([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:u.normalizeStyle(e.customStyle),tabindex:"-1",onClick:u.withModifiers(()=>{},["stop"])},[e.title!==null&&e.title!==void 0?(u.openBlock(),u.createElementBlock("div",{key:0,ref:"headerRef",class:u.normalizeClass([e.ns.e("header"),{"show-close":e.showClose}])},[u.createElementVNode("div",{class:u.normalizeClass(e.ns.e("title"))},[e.iconComponent&&e.center?(u.openBlock(),u.createBlock(i,{key:0,class:u.normalizeClass([e.ns.e("status"),e.typeClass])},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):u.createCommentVNode("v-if",!0),u.createElementVNode("span",null,u.toDisplayString(e.title),1)],2),e.showClose?(u.openBlock(),u.createElementBlock("button",{key:0,type:"button",class:u.normalizeClass(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:d=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),onKeydown:u.withKeys(u.withModifiers(d=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[u.createVNode(i,{class:u.normalizeClass(e.ns.e("close"))},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.closeIcon||"close")))]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):u.createCommentVNode("v-if",!0)],2)):u.createCommentVNode("v-if",!0),u.createElementVNode("div",{id:e.contentId,class:u.normalizeClass(e.ns.e("content"))},[u.createElementVNode("div",{class:u.normalizeClass(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(u.openBlock(),u.createBlock(i,{key:0,class:u.normalizeClass([e.ns.e("status"),e.typeClass])},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):u.createCommentVNode("v-if",!0),e.hasMessage?(u.openBlock(),u.createElementBlock("div",{key:1,class:u.normalizeClass(e.ns.e("message"))},[u.renderSlot(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):u.createCommentVNode("v-if",!0)],2),u.withDirectives(u.createElementVNode("div",{class:u.normalizeClass(e.ns.e("input"))},[u.createVNode(a,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":d=>e.inputValue=d,type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:u.normalizeClass({invalid:e.validateError}),onKeydown:u.withKeys(e.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),u.createElementVNode("div",{class:u.normalizeClass(e.ns.e("errormsg")),style:u.normalizeStyle({visibility:e.editorErrorMessage?"visible":"hidden"})},u.toDisplayString(e.editorErrorMessage),7)],2),[[u.vShow,e.showInput]])],10,["id"]),u.createElementVNode("div",{class:u.normalizeClass(e.ns.e("btns"))},[e.showCancelButton?(u.openBlock(),u.createBlock(l,{key:0,loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:u.normalizeClass([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:d=>e.handleAction("cancel"),onKeydown:u.withKeys(u.withModifiers(d=>e.handleAction("cancel"),["prevent"]),["enter"])},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):u.createCommentVNode("v-if",!0),u.withDirectives(u.createVNode(l,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:u.normalizeClass([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:d=>e.handleAction("confirm"),onKeydown:u.withKeys(u.withModifiers(d=>e.handleAction("confirm"),["prevent"]),["enter"])},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[u.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"]),[[u.vShow,e.visible]])]),_:3},8,["onAfterLeave"])}var bd=h._export_sfc(md,[["render",Ed],["__file","index.vue"]]);const Tt=new Map,_d=e=>{let t=document.body;return e.appendTo&&(h.isString(e.appendTo)&&(t=document.querySelector(e.appendTo)),h.isElement(e.appendTo)&&(t=e.appendTo),h.isElement(t)||(h.debugWarn("ElMessageBox","the appendTo option is not an HTMLElement. Falling back to document.body."),t=document.body)),t},Sd=(e,t,n=null)=>{const r=u.createVNode(bd,e,h.isFunction$1(e.message)||u.isVNode(e.message)?{default:h.isFunction$1(e.message)?e.message:()=>e.message}:null);return r.appContext=n,u.render(r,t),_d(e).appendChild(t.firstElementChild),r.component},Td=()=>document.createElement("div"),wd=(e,t)=>{const n=Td();e.onVanish=()=>{u.render(null,n),Tt.delete(o)},e.onAction=s=>{const i=Tt.get(o);let a;e.showInput?a={value:o.inputValue,action:s}:a=s,e.callback?e.callback(a,r.proxy):s==="cancel"||s==="close"?e.distinguishCancelAndClose&&s!=="cancel"?i.reject("close"):i.reject("cancel"):i.resolve(a)};const r=Sd(e,n,t),o=r.proxy;for(const s in e)h.hasOwn(e,s)&&!h.hasOwn(o.$props,s)&&(s==="closeIcon"&&h.isObject$1(e[s])?o[s]=u.markRaw(e[s]):o[s]=e[s]);return o.visible=!0,o};function lt(e,t=null){if(!h.isClient)return Promise.reject();let n;return h.isString(e)||u.isVNode(e)?e={message:e}:n=e.callback,new Promise((r,o)=>{const s=wd(e,t??lt._context);Tt.set(s,{options:e,callback:n,resolve:r,reject:o})})}const Ad=["alert","confirm","prompt"],Cd={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};Ad.forEach(e=>{lt[e]=Od(e)});function Od(e){return(t,n,r,o)=>{let s="";return h.isObject$1(n)?(r=n,s=""):h.isUndefined(n)?s="":s=n,lt(Object.assign({title:s,message:t,type:"",...Cd[e]},r,{boxType:e}),o)}}lt.close=()=>{Tt.forEach((e,t)=>{t.doClose()}),Tt.clear()};lt._context=null;const Se=lt;Se.install=e=>{Se._context=e._context,e.config.globalProperties.$msgbox=Se,e.config.globalProperties.$messageBox=Se,e.config.globalProperties.$alert=Se.alert,e.config.globalProperties.$confirm=Se.confirm,e.config.globalProperties.$prompt=Se.prompt};const Ui=Se;var Dd=Object.create,$i=Object.defineProperty,Id=Object.getOwnPropertyDescriptor,_r=Object.getOwnPropertyNames,kd=Object.getPrototypeOf,xd=Object.prototype.hasOwnProperty,Rd=(e,t)=>function(){return e&&(t=(0,e[_r(e)[0]])(e=0)),t},Nd=(e,t)=>function(){return t||(0,e[_r(e)[0]])((t={exports:{}}).exports,t),t.exports},Bd=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of _r(t))!xd.call(e,o)&&o!==n&&$i(e,o,{get:()=>t[o],enumerable:!(r=Id(t,o))||r.enumerable});return e},Pd=(e,t,n)=>(n=e!=null?Dd(kd(e)):{},Bd($i(n,"default",{value:e,enumerable:!0}),e)),xt=Rd({"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"(){}}),Vd=Nd({"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(e,t){xt(),t.exports=r;function n(s){return s instanceof Buffer?Buffer.from(s):new s.constructor(s.buffer.slice(),s.byteOffset,s.length)}function r(s){if(s=s||{},s.circles)return o(s);const i=new Map;if(i.set(Date,d=>new Date(d)),i.set(Map,(d,y)=>new Map(l(Array.from(d),y))),i.set(Set,(d,y)=>new Set(l(Array.from(d),y))),s.constructorHandlers)for(const d of s.constructorHandlers)i.set(d[0],d[1]);let a=null;return s.proto?p:c;function l(d,y){const g=Object.keys(d),f=new Array(g.length);for(let m=0;m<g.length;m++){const v=g[m],E=d[v];typeof E!="object"||E===null?f[v]=E:E.constructor!==Object&&(a=i.get(E.constructor))?f[v]=a(E,y):ArrayBuffer.isView(E)?f[v]=n(E):f[v]=y(E)}return f}function c(d){if(typeof d!="object"||d===null)return d;if(Array.isArray(d))return l(d,c);if(d.constructor!==Object&&(a=i.get(d.constructor)))return a(d,c);const y={};for(const g in d){if(Object.hasOwnProperty.call(d,g)===!1)continue;const f=d[g];typeof f!="object"||f===null?y[g]=f:f.constructor!==Object&&(a=i.get(f.constructor))?y[g]=a(f,c):ArrayBuffer.isView(f)?y[g]=n(f):y[g]=c(f)}return y}function p(d){if(typeof d!="object"||d===null)return d;if(Array.isArray(d))return l(d,p);if(d.constructor!==Object&&(a=i.get(d.constructor)))return a(d,p);const y={};for(const g in d){const f=d[g];typeof f!="object"||f===null?y[g]=f:f.constructor!==Object&&(a=i.get(f.constructor))?y[g]=a(f,p):ArrayBuffer.isView(f)?y[g]=n(f):y[g]=p(f)}return y}}function o(s){const i=[],a=[],l=new Map;if(l.set(Date,g=>new Date(g)),l.set(Map,(g,f)=>new Map(p(Array.from(g),f))),l.set(Set,(g,f)=>new Set(p(Array.from(g),f))),s.constructorHandlers)for(const g of s.constructorHandlers)l.set(g[0],g[1]);let c=null;return s.proto?y:d;function p(g,f){const m=Object.keys(g),v=new Array(m.length);for(let E=0;E<m.length;E++){const w=m[E],k=g[w];if(typeof k!="object"||k===null)v[w]=k;else if(k.constructor!==Object&&(c=l.get(k.constructor)))v[w]=c(k,f);else if(ArrayBuffer.isView(k))v[w]=n(k);else{const V=i.indexOf(k);V!==-1?v[w]=a[V]:v[w]=f(k)}}return v}function d(g){if(typeof g!="object"||g===null)return g;if(Array.isArray(g))return p(g,d);if(g.constructor!==Object&&(c=l.get(g.constructor)))return c(g,d);const f={};i.push(g),a.push(f);for(const m in g){if(Object.hasOwnProperty.call(g,m)===!1)continue;const v=g[m];if(typeof v!="object"||v===null)f[m]=v;else if(v.constructor!==Object&&(c=l.get(v.constructor)))f[m]=c(v,d);else if(ArrayBuffer.isView(v))f[m]=n(v);else{const E=i.indexOf(v);E!==-1?f[m]=a[E]:f[m]=d(v)}}return i.pop(),a.pop(),f}function y(g){if(typeof g!="object"||g===null)return g;if(Array.isArray(g))return p(g,y);if(g.constructor!==Object&&(c=l.get(g.constructor)))return c(g,y);const f={};i.push(g),a.push(f);for(const m in g){const v=g[m];if(typeof v!="object"||v===null)f[m]=v;else if(v.constructor!==Object&&(c=l.get(v.constructor)))f[m]=c(v,y);else if(ArrayBuffer.isView(v))f[m]=n(v);else{const E=i.indexOf(v);E!==-1?f[m]=a[E]:f[m]=y(v)}}return i.pop(),a.pop(),f}}}});xt();xt();xt();var ji=typeof navigator<"u",C=typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof global<"u"?global:{};typeof C.chrome<"u"&&C.chrome.devtools;ji&&(C.self,C.top);var Lo;typeof navigator<"u"&&((Lo=navigator.userAgent)==null||Lo.toLowerCase().includes("electron"));xt();var Md=Pd(Vd()),Fd=/(?:^|[-_/])(\w)/g;function Ld(e,t){return t?t.toUpperCase():""}function Ud(e){return e&&`${e}`.replace(Fd,Ld)}function $d(e,t){let n=e.replace(/^[a-z]:/i,"").replace(/\\/g,"/");n.endsWith(`index${t}`)&&(n=n.replace(`/index${t}`,t));const r=n.lastIndexOf("/"),o=n.substring(r+1);{const s=o.lastIndexOf(t);return o.substring(0,s)}}var Uo=(0,Md.default)({circles:!0});const jd={trailing:!0};function rt(e,t=25,n={}){if(n={...jd,...n},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let r,o,s=[],i,a;const l=(c,p)=>(i=Hd(e,c,p),i.finally(()=>{if(i=null,n.trailing&&a&&!o){const d=l(c,a);return a=null,d}}),i);return function(...c){return i?(n.trailing&&(a=c),i):new Promise(p=>{const d=!o&&n.leading;clearTimeout(o),o=setTimeout(()=>{o=null;const y=n.leading?r:l(this,c);for(const g of s)g(y);s=[]},t),d?(r=l(this,c),p(r)):s.push(p)})}}async function Hd(e,t,n){return await e.apply(t,n)}function Wn(e,t={},n){for(const r in e){const o=e[r],s=n?`${n}:${r}`:r;typeof o=="object"&&o!==null?Wn(o,t,s):typeof o=="function"&&(t[s]=o)}return t}const Kd={run:e=>e()},zd=()=>Kd,Hi=typeof console.createTask<"u"?console.createTask:zd;function qd(e,t){const n=t.shift(),r=Hi(n);return e.reduce((o,s)=>o.then(()=>r.run(()=>s(...t))),Promise.resolve())}function Gd(e,t){const n=t.shift(),r=Hi(n);return Promise.all(e.map(o=>r.run(()=>o(...t))))}function Dn(e,t){for(const n of[...e])n(t)}class Wd{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const o=t;let s;for(;this._deprecatedHooks[t];)s=this._deprecatedHooks[t],t=s.to;if(s&&!r.allowDeprecated){let i=s.message;i||(i=`${o} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,o=(...s)=>(typeof r=="function"&&r(),r=void 0,o=void 0,n(...s));return r=this.hook(t,o),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const o of r)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=Wn(t),r=Object.keys(n).map(o=>this.hook(o,n[o]));return()=>{for(const o of r.splice(0,r.length))o()}}removeHooks(t){const n=Wn(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(qd,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Gd,t,...n)}callHookWith(t,n,...r){const o=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&Dn(this._before,o);const s=t(n in this._hooks?[...this._hooks[n]]:[],r);return s instanceof Promise?s.finally(()=>{this._after&&o&&Dn(this._after,o)}):(this._after&&o&&Dn(this._after,o),s)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function Ki(){return new Wd}var Yd=Object.create,zi=Object.defineProperty,Zd=Object.getOwnPropertyDescriptor,Sr=Object.getOwnPropertyNames,Xd=Object.getPrototypeOf,Jd=Object.prototype.hasOwnProperty,Qd=(e,t)=>function(){return e&&(t=(0,e[Sr(e)[0]])(e=0)),t},qi=(e,t)=>function(){return t||(0,e[Sr(e)[0]])((t={exports:{}}).exports,t),t.exports},eh=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Sr(t))!Jd.call(e,o)&&o!==n&&zi(e,o,{get:()=>t[o],enumerable:!(r=Zd(t,o))||r.enumerable});return e},th=(e,t,n)=>(n=e!=null?Yd(Xd(e)):{},eh(zi(n,"default",{value:e,enumerable:!0}),e)),_=Qd({"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"(){}}),nh=qi({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(e,t){_(),function(n){var r={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"Ae",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"Oe",Ő:"O",Ø:"O",Ù:"U",Ú:"U",Û:"U",Ü:"Ue",Ű:"U",Ý:"Y",Þ:"TH",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"ae",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"oe",ő:"o",ø:"o",ù:"u",ú:"u",û:"u",ü:"ue",ű:"u",ý:"y",þ:"th",ÿ:"y","ẞ":"SS",ا:"a",أ:"a",إ:"i",آ:"aa",ؤ:"u",ئ:"e",ء:"a",ب:"b",ت:"t",ث:"th",ج:"j",ح:"h",خ:"kh",د:"d",ذ:"th",ر:"r",ز:"z",س:"s",ش:"sh",ص:"s",ض:"dh",ط:"t",ظ:"z",ع:"a",غ:"gh",ف:"f",ق:"q",ك:"k",ل:"l",م:"m",ن:"n",ه:"h",و:"w",ي:"y",ى:"a",ة:"h",ﻻ:"la",ﻷ:"laa",ﻹ:"lai",ﻵ:"laa",گ:"g",چ:"ch",پ:"p",ژ:"zh",ک:"k",ی:"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9",က:"k",ခ:"kh",ဂ:"g",ဃ:"ga",င:"ng",စ:"s",ဆ:"sa",ဇ:"z","စျ":"za",ည:"ny",ဋ:"t",ဌ:"ta",ဍ:"d",ဎ:"da",ဏ:"na",တ:"t",ထ:"ta",ဒ:"d",ဓ:"da",န:"n",ပ:"p",ဖ:"pa",ဗ:"b",ဘ:"ba",မ:"m",ယ:"y",ရ:"ya",လ:"l",ဝ:"w",သ:"th",ဟ:"h",ဠ:"la",အ:"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h",ဧ:"e","၏":"-e",ဣ:"i",ဤ:"-i",ဉ:"u",ဦ:"-u",ဩ:"aw","သြော":"aw",ဪ:"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"",č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z",ހ:"h",ށ:"sh",ނ:"n",ރ:"r",ބ:"b",ޅ:"lh",ކ:"k",އ:"a",ވ:"v",މ:"m",ފ:"f",ދ:"dh",ތ:"th",ލ:"l",ގ:"g",ޏ:"gn",ސ:"s",ޑ:"d",ޒ:"z",ޓ:"t",ޔ:"y",ޕ:"p",ޖ:"j",ޗ:"ch",ޘ:"tt",ޙ:"hh",ޚ:"kh",ޛ:"th",ޜ:"z",ޝ:"sh",ޞ:"s",ޟ:"d",ޠ:"t",ޡ:"z",ޢ:"a",ޣ:"gh",ޤ:"q",ޥ:"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"",ა:"a",ბ:"b",გ:"g",დ:"d",ე:"e",ვ:"v",ზ:"z",თ:"t",ი:"i",კ:"k",ლ:"l",მ:"m",ნ:"n",ო:"o",პ:"p",ჟ:"zh",რ:"r",ს:"s",ტ:"t",უ:"u",ფ:"p",ქ:"k",ღ:"gh",ყ:"q",შ:"sh",ჩ:"ch",ც:"ts",ძ:"dz",წ:"ts",ჭ:"ch",ხ:"kh",ჯ:"j",ჰ:"h",α:"a",β:"v",γ:"g",δ:"d",ε:"e",ζ:"z",η:"i",θ:"th",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"ks",ο:"o",π:"p",ρ:"r",σ:"s",τ:"t",υ:"y",φ:"f",χ:"x",ψ:"ps",ω:"o",ά:"a",έ:"e",ί:"i",ό:"o",ύ:"y",ή:"i",ώ:"o",ς:"s",ϊ:"i",ΰ:"y",ϋ:"y",ΐ:"i",Α:"A",Β:"B",Γ:"G",Δ:"D",Ε:"E",Ζ:"Z",Η:"I",Θ:"TH",Ι:"I",Κ:"K",Λ:"L",Μ:"M",Ν:"N",Ξ:"KS",Ο:"O",Π:"P",Ρ:"R",Σ:"S",Τ:"T",Υ:"Y",Φ:"F",Χ:"X",Ψ:"PS",Ω:"O",Ά:"A",Έ:"E",Ί:"I",Ό:"O",Ύ:"Y",Ή:"I",Ώ:"O",Ϊ:"I",Ϋ:"Y",ā:"a",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",ū:"u",Ā:"A",Ē:"E",Ģ:"G",Ī:"I",Ķ:"k",Ļ:"L",Ņ:"N",Ū:"U",Ќ:"Kj",ќ:"kj",Љ:"Lj",љ:"lj",Њ:"Nj",њ:"nj",Тс:"Ts",тс:"ts",ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"E",Ł:"L",Ń:"N",Ś:"S",Ź:"Z",Ż:"Z",Є:"Ye",І:"I",Ї:"Yi",Ґ:"G",є:"ye",і:"i",ї:"yi",ґ:"g",ă:"a",Ă:"A",ș:"s",Ș:"S",ț:"t",Ț:"T",ţ:"t",Ţ:"T",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"i",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"kh",ц:"c",ч:"ch",ш:"sh",щ:"sh",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"Yo",Ж:"Zh",З:"Z",И:"I",Й:"I",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"Kh",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sh",Ъ:"",Ы:"Y",Ь:"",Э:"E",Ю:"Yu",Я:"Ya",ђ:"dj",ј:"j",ћ:"c",џ:"dz",Ђ:"Dj",Ј:"j",Ћ:"C",Џ:"Dz",ľ:"l",ĺ:"l",ŕ:"r",Ľ:"L",Ĺ:"L",Ŕ:"R",ş:"s",Ş:"S",ı:"i",İ:"I",ğ:"g",Ğ:"G",ả:"a",Ả:"A",ẳ:"a",Ẳ:"A",ẩ:"a",Ẩ:"A",đ:"d",Đ:"D",ẹ:"e",Ẹ:"E",ẽ:"e",Ẽ:"E",ẻ:"e",Ẻ:"E",ế:"e",Ế:"E",ề:"e",Ề:"E",ệ:"e",Ệ:"E",ễ:"e",Ễ:"E",ể:"e",Ể:"E",ỏ:"o",ọ:"o",Ọ:"o",ố:"o",Ố:"O",ồ:"o",Ồ:"O",ổ:"o",Ổ:"O",ộ:"o",Ộ:"O",ỗ:"o",Ỗ:"O",ơ:"o",Ơ:"O",ớ:"o",Ớ:"O",ờ:"o",Ờ:"O",ợ:"o",Ợ:"O",ỡ:"o",Ỡ:"O",Ở:"o",ở:"o",ị:"i",Ị:"I",ĩ:"i",Ĩ:"I",ỉ:"i",Ỉ:"i",ủ:"u",Ủ:"U",ụ:"u",Ụ:"U",ũ:"u",Ũ:"U",ư:"u",Ư:"U",ứ:"u",Ứ:"U",ừ:"u",Ừ:"U",ự:"u",Ự:"U",ữ:"u",Ữ:"U",ử:"u",Ử:"ư",ỷ:"y",Ỷ:"y",ỳ:"y",Ỳ:"Y",ỵ:"y",Ỵ:"Y",ỹ:"y",Ỹ:"Y",ạ:"a",Ạ:"A",ấ:"a",Ấ:"A",ầ:"a",Ầ:"A",ậ:"a",Ậ:"A",ẫ:"a",Ẫ:"A",ắ:"a",Ắ:"A",ằ:"a",Ằ:"A",ặ:"a",Ặ:"A",ẵ:"a",Ẵ:"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d",ƒ:"f","™":"(TM)","©":"(C)",œ:"oe",Œ:"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o",º:"o",ª:"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY",元:"CNY",円:"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN",лв:"BGN","៛":"KHR","₡":"CRC","₸":"KZT",ден:"MKD",zł:"PLN","₽":"RUB","₾":"GEL"},o=["်","ް"],s={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},i={en:{},az:{ç:"c",ə:"e",ğ:"g",ı:"i",ö:"o",ş:"s",ü:"u",Ç:"C",Ə:"E",Ğ:"G",İ:"I",Ö:"O",Ş:"S",Ü:"U"},cs:{č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z"},fi:{ä:"a",Ä:"A",ö:"o",Ö:"O"},hu:{ä:"a",Ä:"A",ö:"o",Ö:"O",ü:"u",Ü:"U",ű:"u",Ű:"U"},lt:{ą:"a",č:"c",ę:"e",ė:"e",į:"i",š:"s",ų:"u",ū:"u",ž:"z",Ą:"A",Č:"C",Ę:"E",Ė:"E",Į:"I",Š:"S",Ų:"U",Ū:"U"},lv:{ā:"a",č:"c",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",š:"s",ū:"u",ž:"z",Ā:"A",Č:"C",Ē:"E",Ģ:"G",Ī:"i",Ķ:"k",Ļ:"L",Ņ:"N",Š:"S",Ū:"u",Ž:"Z"},pl:{ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ó:"o",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"e",Ł:"L",Ń:"N",Ó:"O",Ś:"S",Ź:"Z",Ż:"Z"},sv:{ä:"a",Ä:"A",ö:"o",Ö:"O"},sk:{ä:"a",Ä:"A"},sr:{љ:"lj",њ:"nj",Љ:"Lj",Њ:"Nj",đ:"dj",Đ:"Dj"},tr:{Ü:"U",Ö:"O",ü:"u",ö:"o"}},a={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","¤":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}},l=[";","?",":","@","&","=","+","$",",","/"].join(""),c=[";","?",":","@","&","=","+","$",","].join(""),p=[".","!","~","*","'","(",")"].join(""),d=function(v,E){var w="-",k="",V="",K=!0,D={},O,z,P,A,S,x,F,Z,he,N,I,U,M,re,ae="";if(typeof v!="string")return"";if(typeof E=="string"&&(w=E),F=a.en,Z=i.en,typeof E=="object"){O=E.maintainCase||!1,D=E.custom&&typeof E.custom=="object"?E.custom:D,P=+E.truncate>1&&E.truncate||!1,A=E.uric||!1,S=E.uricNoSlash||!1,x=E.mark||!1,K=!(E.symbols===!1||E.lang===!1),w=E.separator||w,A&&(ae+=l),S&&(ae+=c),x&&(ae+=p),F=E.lang&&a[E.lang]&&K?a[E.lang]:K?a.en:{},Z=E.lang&&i[E.lang]?i[E.lang]:E.lang===!1||E.lang===!0?{}:i.en,E.titleCase&&typeof E.titleCase.length=="number"&&Array.prototype.toString.call(E.titleCase)?(E.titleCase.forEach(function(oe){D[oe+""]=oe+""}),z=!0):z=!!E.titleCase,E.custom&&typeof E.custom.length=="number"&&Array.prototype.toString.call(E.custom)&&E.custom.forEach(function(oe){D[oe+""]=oe+""}),Object.keys(D).forEach(function(oe){var xe;oe.length>1?xe=new RegExp("\\b"+g(oe)+"\\b","gi"):xe=new RegExp(g(oe),"gi"),v=v.replace(xe,D[oe])});for(I in D)ae+=I}for(ae+=w,ae=g(ae),v=v.replace(/(^\s+|\s+$)/g,""),M=!1,re=!1,N=0,U=v.length;N<U;N++)I=v[N],f(I,D)?M=!1:Z[I]?(I=M&&Z[I].match(/[A-Za-z0-9]/)?" "+Z[I]:Z[I],M=!1):I in r?(N+1<U&&o.indexOf(v[N+1])>=0?(V+=I,I=""):re===!0?(I=s[V]+r[I],V=""):I=M&&r[I].match(/[A-Za-z0-9]/)?" "+r[I]:r[I],M=!1,re=!1):I in s?(V+=I,I="",N===U-1&&(I=s[V]),re=!0):F[I]&&!(A&&l.indexOf(I)!==-1)&&!(S&&c.indexOf(I)!==-1)?(I=M||k.substr(-1).match(/[A-Za-z0-9]/)?w+F[I]:F[I],I+=v[N+1]!==void 0&&v[N+1].match(/[A-Za-z0-9]/)?w:"",M=!0):(re===!0?(I=s[V]+I,V="",re=!1):M&&(/[A-Za-z0-9]/.test(I)||k.substr(-1).match(/A-Za-z0-9]/))&&(I=" "+I),M=!1),k+=I.replace(new RegExp("[^\\w\\s"+ae+"_-]","g"),w);return z&&(k=k.replace(/(\w)(\S*)/g,function(oe,xe,ht){var He=xe.toUpperCase()+(ht!==null?ht:"");return Object.keys(D).indexOf(He.toLowerCase())<0?He:He.toLowerCase()})),k=k.replace(/\s+/g,w).replace(new RegExp("\\"+w+"+","g"),w).replace(new RegExp("(^\\"+w+"+|\\"+w+"+$)","g"),""),P&&k.length>P&&(he=k.charAt(P)===w,k=k.slice(0,P),he||(k=k.slice(0,k.lastIndexOf(w)))),!O&&!z&&(k=k.toLowerCase()),k},y=function(v){return function(w){return d(w,v)}},g=function(v){return v.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},f=function(m,v){for(var E in v)if(v[E]===m)return!0};if(typeof t<"u"&&t.exports)t.exports=d,t.exports.createSlug=y;else if(typeof define<"u"&&define.amd)define([],function(){return d});else try{if(n.getSlug||n.createSlug)throw"speakingurl: globals exists /(getSlug|createSlug)/";n.getSlug=d,n.createSlug=y}catch{}}(e)}}),rh=qi({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(e,t){_(),t.exports=nh()}});_();_();_();_();_();_();_();_();function oh(e){var t;const n=e.name||e._componentTag||e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||e.__name;return n==="index"&&((t=e.__file)!=null&&t.endsWith("index.vue"))?"":n}function sh(e){const t=e.__file;if(t)return Ud($d(t,".vue"))}function $o(e,t){return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=t,t}function Tr(e){if(e.__VUE_DEVTOOLS_NEXT_APP_RECORD__)return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(e.root)return e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__}function Gi(e){var t,n;const r=(t=e.subTree)==null?void 0:t.type,o=Tr(e);return o?((n=o==null?void 0:o.types)==null?void 0:n.Fragment)===r:!1}function gn(e){var t,n,r;const o=oh((e==null?void 0:e.type)||{});if(o)return o;if((e==null?void 0:e.root)===e)return"Root";for(const i in(n=(t=e.parent)==null?void 0:t.type)==null?void 0:n.components)if(e.parent.type.components[i]===(e==null?void 0:e.type))return $o(e,i);for(const i in(r=e.appContext)==null?void 0:r.components)if(e.appContext.components[i]===(e==null?void 0:e.type))return $o(e,i);const s=sh((e==null?void 0:e.type)||{});return s||"Anonymous Component"}function ih(e){var t,n,r;const o=(r=(n=(t=e==null?void 0:e.appContext)==null?void 0:t.app)==null?void 0:n.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__)!=null?r:0,s=e===(e==null?void 0:e.root)?"root":e.uid;return`${o}:${s}`}function Yn(e,t){return t=t||`${e.id}:root`,e.instanceMap.get(t)||e.instanceMap.get(":root")}function ah(){const e={top:0,bottom:0,left:0,right:0,get width(){return e.right-e.left},get height(){return e.bottom-e.top}};return e}var Lt;function uh(e){return Lt||(Lt=document.createRange()),Lt.selectNode(e),Lt.getBoundingClientRect()}function lh(e){const t=ah();if(!e.children)return t;for(let n=0,r=e.children.length;n<r;n++){const o=e.children[n];let s;if(o.component)s=Fe(o.component);else if(o.el){const i=o.el;i.nodeType===1||i.getBoundingClientRect?s=i.getBoundingClientRect():i.nodeType===3&&i.data.trim()&&(s=uh(i))}s&&ch(t,s)}return t}function ch(e,t){return(!e.top||t.top<e.top)&&(e.top=t.top),(!e.bottom||t.bottom>e.bottom)&&(e.bottom=t.bottom),(!e.left||t.left<e.left)&&(e.left=t.left),(!e.right||t.right>e.right)&&(e.right=t.right),e}var jo={top:0,left:0,right:0,bottom:0,width:0,height:0};function Fe(e){const t=e.subTree.el;return typeof window>"u"?jo:Gi(e)?lh(e.subTree):(t==null?void 0:t.nodeType)===1?t==null?void 0:t.getBoundingClientRect():e.subTree.component?Fe(e.subTree.component):jo}_();function wr(e){return Gi(e)?fh(e.subTree):e.subTree?[e.subTree.el]:[]}function fh(e){if(!e.children)return[];const t=[];return e.children.forEach(n=>{n.component?t.push(...wr(n.component)):n!=null&&n.el&&t.push(n.el)}),t}var Wi="__vue-devtools-component-inspector__",Yi="__vue-devtools-component-inspector__card__",Zi="__vue-devtools-component-inspector__name__",Xi="__vue-devtools-component-inspector__indicator__",Ji={display:"block",zIndex:2147483640,position:"fixed",backgroundColor:"#42b88325",border:"1px solid #42b88350",borderRadius:"5px",transition:"all 0.1s ease-in",pointerEvents:"none"},dh={fontFamily:"Arial, Helvetica, sans-serif",padding:"5px 8px",borderRadius:"4px",textAlign:"left",position:"absolute",left:0,color:"#e9e9e9",fontSize:"14px",fontWeight:600,lineHeight:"24px",backgroundColor:"#42b883",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},hh={display:"inline-block",fontWeight:400,fontStyle:"normal",fontSize:"12px",opacity:.7};function ct(){return document.getElementById(Wi)}function ph(){return document.getElementById(Yi)}function gh(){return document.getElementById(Xi)}function vh(){return document.getElementById(Zi)}function Ar(e){return{left:`${Math.round(e.left*100)/100}px`,top:`${Math.round(e.top*100)/100}px`,width:`${Math.round(e.width*100)/100}px`,height:`${Math.round(e.height*100)/100}px`}}function Cr(e){var t;const n=document.createElement("div");n.id=(t=e.elementId)!=null?t:Wi,Object.assign(n.style,{...Ji,...Ar(e.bounds),...e.style});const r=document.createElement("span");r.id=Yi,Object.assign(r.style,{...dh,top:e.bounds.top<35?0:"-35px"});const o=document.createElement("span");o.id=Zi,o.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`;const s=document.createElement("i");return s.id=Xi,s.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`,Object.assign(s.style,hh),r.appendChild(o),r.appendChild(s),n.appendChild(r),document.body.appendChild(n),n}function Or(e){const t=ct(),n=ph(),r=vh(),o=gh();t&&(Object.assign(t.style,{...Ji,...Ar(e.bounds)}),Object.assign(n.style,{top:e.bounds.top<35?0:"-35px"}),r.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`,o.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`)}function yh(e){const t=Fe(e);if(!t.width&&!t.height)return;const n=gn(e);ct()?Or({bounds:t,name:n}):Cr({bounds:t,name:n})}function Qi(){const e=ct();e&&(e.style.display="none")}var Zn=null;function Xn(e){const t=e.target;if(t){const n=t.__vueParentComponent;if(n&&(Zn=n,n.vnode.el)){const o=Fe(n),s=gn(n);ct()?Or({bounds:o,name:s}):Cr({bounds:o,name:s})}}}function mh(e,t){if(e.preventDefault(),e.stopPropagation(),Zn){const n=ih(Zn);t(n)}}var rn=null;function Eh(){Qi(),window.removeEventListener("mouseover",Xn),window.removeEventListener("click",rn,!0),rn=null}function bh(){return window.addEventListener("mouseover",Xn),new Promise(e=>{function t(n){n.preventDefault(),n.stopPropagation(),mh(n,r=>{window.removeEventListener("click",t,!0),rn=null,window.removeEventListener("mouseover",Xn);const o=ct();o&&(o.style.display="none"),e(JSON.stringify({id:r}))})}rn=t,window.addEventListener("click",t,!0)})}function _h(e){const t=Yn(te.value,e.id);if(t){const[n]=wr(t);if(typeof n.scrollIntoView=="function")n.scrollIntoView({behavior:"smooth"});else{const r=Fe(t),o=document.createElement("div"),s={...Ar(r),position:"absolute"};Object.assign(o.style,s),document.body.appendChild(o),o.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{document.body.removeChild(o)},2e3)}setTimeout(()=>{const r=Fe(t);if(r.width||r.height){const o=gn(t),s=ct();s?Or({...e,name:o,bounds:r}):Cr({...e,name:o,bounds:r}),setTimeout(()=>{s&&(s.style.display="none")},1500)}},1200)}}_();var Ho,Ko;(Ko=(Ho=C).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__)!=null||(Ho.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__=!0);function Sh(e){let t=0;const n=setInterval(()=>{C.__VUE_INSPECTOR__&&(clearInterval(n),t+=30,e()),t>=5e3&&clearInterval(n)},30)}function Th(){const e=C.__VUE_INSPECTOR__,t=e.openInEditor;e.openInEditor=async(...n)=>{e.disable(),t(...n)}}function wh(){return new Promise(e=>{function t(){Th(),e(C.__VUE_INSPECTOR__)}C.__VUE_INSPECTOR__?t():Sh(()=>{t()})})}_();_();function Ah(e){return!!(e&&e.__v_isReadonly)}function ea(e){return Ah(e)?ea(e.__v_raw):!!(e&&e.__v_isReactive)}function In(e){return!!(e&&e.__v_isRef===!0)}function vt(e){const t=e&&e.__v_raw;return t?vt(t):e}var Ch=class{constructor(){this.refEditor=new Oh}set(e,t,n,r){const o=Array.isArray(t)?t:t.split(".");for(;o.length>1;){const a=o.shift();e instanceof Map?e=e.get(a):e instanceof Set?e=Array.from(e.values())[a]:e=e[a],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}const s=o[0],i=this.refEditor.get(e)[s];r?r(e,s,n):this.refEditor.isRef(i)?this.refEditor.set(i,n):e[s]=n}get(e,t){const n=Array.isArray(t)?t:t.split(".");for(let r=0;r<n.length;r++)if(e instanceof Map?e=e.get(n[r]):e=e[n[r]],this.refEditor.isRef(e)&&(e=this.refEditor.get(e)),!e)return;return e}has(e,t,n=!1){if(typeof e>"u")return!1;const r=Array.isArray(t)?t.slice():t.split("."),o=n?2:1;for(;e&&r.length>o;){const s=r.shift();e=e[s],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}return e!=null&&Object.prototype.hasOwnProperty.call(e,r[0])}createDefaultSetCallback(e){return(t,n,r)=>{if((e.remove||e.newKey)&&(Array.isArray(t)?t.splice(n,1):vt(t)instanceof Map?t.delete(n):vt(t)instanceof Set?t.delete(Array.from(t.values())[n]):Reflect.deleteProperty(t,n)),!e.remove){const o=t[e.newKey||n];this.refEditor.isRef(o)?this.refEditor.set(o,r):vt(t)instanceof Map?t.set(e.newKey||n,r):vt(t)instanceof Set?t.add(r):t[e.newKey||n]=r}}}},Oh=class{set(e,t){if(In(e))e.value=t;else{if(e instanceof Set&&Array.isArray(t)){e.clear(),t.forEach(o=>e.add(o));return}const n=Object.keys(t);if(e instanceof Map){const o=new Set(e.keys());n.forEach(s=>{e.set(s,Reflect.get(t,s)),o.delete(s)}),o.forEach(s=>e.delete(s));return}const r=new Set(Object.keys(e));n.forEach(o=>{Reflect.set(e,o,Reflect.get(t,o)),r.delete(o)}),r.forEach(o=>Reflect.deleteProperty(e,o))}}get(e){return In(e)?e.value:e}isRef(e){return In(e)||ea(e)}};_();_();_();var Dh="__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";function Ih(){if(!ji||typeof localStorage>"u"||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""};const e=localStorage.getItem(Dh);return e?JSON.parse(e):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""}}_();_();_();var zo,qo;(qo=(zo=C).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS)!=null||(zo.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS=[]);var kh=new Proxy(C.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(e,t,n){return Reflect.get(e,t,n)}});function xh(e,t){W.timelineLayersState[t.id]=!1,kh.push({...e,descriptorId:t.id,appRecord:Tr(t.app)})}var Go,Wo;(Wo=(Go=C).__VUE_DEVTOOLS_KIT_INSPECTOR__)!=null||(Go.__VUE_DEVTOOLS_KIT_INSPECTOR__=[]);var Dr=new Proxy(C.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(e,t,n){return Reflect.get(e,t,n)}}),ta=rt(()=>{ft.hooks.callHook("sendInspectorToClient",na())});function Rh(e,t){var n,r;Dr.push({options:e,descriptor:t,treeFilterPlaceholder:(n=e.treeFilterPlaceholder)!=null?n:"Search tree...",stateFilterPlaceholder:(r=e.stateFilterPlaceholder)!=null?r:"Search state...",treeFilter:"",selectedNodeId:"",appRecord:Tr(t.app)}),ta()}function na(){return Dr.filter(e=>e.descriptor.app===te.value.app).filter(e=>e.descriptor.id!=="components").map(e=>{var t;const n=e.descriptor,r=e.options;return{id:r.id,label:r.label,logo:n.logo,icon:`custom-ic-baseline-${(t=r==null?void 0:r.icon)==null?void 0:t.replace(/_/g,"-")}`,packageName:n.packageName,homepage:n.homepage,pluginId:n.id}})}function Wt(e,t){return Dr.find(n=>n.options.id===e&&(t?n.descriptor.app===t:!0))}function Nh(){const e=Ki();e.hook("addInspector",({inspector:r,plugin:o})=>{Rh(r,o.descriptor)});const t=rt(async({inspectorId:r,plugin:o})=>{var s;if(!r||!((s=o==null?void 0:o.descriptor)!=null&&s.app)||W.highPerfModeEnabled)return;const i=Wt(r,o.descriptor.app),a={app:o.descriptor.app,inspectorId:r,filter:(i==null?void 0:i.treeFilter)||"",rootNodes:[]};await new Promise(l=>{e.callHookWith(async c=>{await Promise.all(c.map(p=>p(a))),l()},"getInspectorTree")}),e.callHookWith(async l=>{await Promise.all(l.map(c=>c({inspectorId:r,rootNodes:a.rootNodes})))},"sendInspectorTreeToClient")},120);e.hook("sendInspectorTree",t);const n=rt(async({inspectorId:r,plugin:o})=>{var s;if(!r||!((s=o==null?void 0:o.descriptor)!=null&&s.app)||W.highPerfModeEnabled)return;const i=Wt(r,o.descriptor.app),a={app:o.descriptor.app,inspectorId:r,nodeId:(i==null?void 0:i.selectedNodeId)||"",state:null},l={currentTab:`custom-inspector:${r}`};a.nodeId&&await new Promise(c=>{e.callHookWith(async p=>{await Promise.all(p.map(d=>d(a,l))),c()},"getInspectorState")}),e.callHookWith(async c=>{await Promise.all(c.map(p=>p({inspectorId:r,nodeId:a.nodeId,state:a.state})))},"sendInspectorStateToClient")},120);return e.hook("sendInspectorState",n),e.hook("customInspectorSelectNode",({inspectorId:r,nodeId:o,plugin:s})=>{const i=Wt(r,s.descriptor.app);i&&(i.selectedNodeId=o)}),e.hook("timelineLayerAdded",({options:r,plugin:o})=>{xh(r,o.descriptor)}),e.hook("timelineEventAdded",({options:r,plugin:o})=>{var s;const i=["performance","component-event","keyboard","mouse"];W.highPerfModeEnabled||!((s=W.timelineLayersState)!=null&&s[o.descriptor.id])&&!i.includes(r.layerId)||e.callHookWith(async a=>{await Promise.all(a.map(l=>l(r)))},"sendTimelineEventToClient")}),e.hook("getComponentInstances",async({app:r})=>{const o=r.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!o)return null;const s=o.id.toString();return[...o.instanceMap].filter(([a])=>a.split(":")[0]===s).map(([,a])=>a)}),e.hook("getComponentBounds",async({instance:r})=>Fe(r)),e.hook("getComponentName",({instance:r})=>gn(r)),e.hook("componentHighlight",({uid:r})=>{const o=te.value.instanceMap.get(r);o&&yh(o)}),e.hook("componentUnhighlight",()=>{Qi()}),e}var Yo,Zo;(Zo=(Yo=C).__VUE_DEVTOOLS_KIT_APP_RECORDS__)!=null||(Yo.__VUE_DEVTOOLS_KIT_APP_RECORDS__=[]);var Xo,Jo;(Jo=(Xo=C).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__)!=null||(Xo.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__={});var Qo,es;(es=(Qo=C).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__)!=null||(Qo.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__="");var ts,ns;(ns=(ts=C).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__)!=null||(ts.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__=[]);var rs,os;(os=(rs=C).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__)!=null||(rs.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__=[]);var Ve="__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";function Bh(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:"",tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:Ih()}}var ss,is;(is=(ss=C)[Ve])!=null||(ss[Ve]=Bh());var Ph=rt(e=>{ft.hooks.callHook("devtoolsStateUpdated",{state:e})});rt((e,t)=>{ft.hooks.callHook("devtoolsConnectedUpdated",{state:e,oldState:t})});var vn=new Proxy(C.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get(e,t,n){return t==="value"?C.__VUE_DEVTOOLS_KIT_APP_RECORDS__:C.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t]}}),te=new Proxy(C.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get(e,t,n){return t==="value"?C.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:t==="id"?C.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:C.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t]}});function ra(){Ph({...C[Ve],appRecords:vn.value,activeAppRecordId:te.id,tabs:C.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:C.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function Vh(e){C.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=e,ra()}function Mh(e){C.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=e,ra()}var W=new Proxy(C[Ve],{get(e,t){return t==="appRecords"?vn:t==="activeAppRecordId"?te.id:t==="tabs"?C.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:t==="commands"?C.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:C[Ve][t]},deleteProperty(e,t){return delete e[t],!0},set(e,t,n){return{...C[Ve]},e[t]=n,C[Ve][t]=n,!0}});function Fh(e={}){var t,n,r;const{file:o,host:s,baseUrl:i=window.location.origin,line:a=0,column:l=0}=e;if(o){if(s==="chrome-extension"){const c=o.replace(/\\/g,"\\\\"),p=(n=(t=window.VUE_DEVTOOLS_CONFIG)==null?void 0:t.openInEditorHost)!=null?n:"/";fetch(`${p}__open-in-editor?file=${encodeURI(o)}`).then(d=>{if(!d.ok){const y=`Opening component ${c} failed`;console.log(`%c${y}`,"color:red")}})}else if(W.vitePluginDetected){const c=(r=C.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__)!=null?r:i;C.__VUE_INSPECTOR__.openInEditor(c,o,a,l)}}}_();_();_();_();_();var as,us;(us=(as=C).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__)!=null||(as.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__=[]);var Ir=new Proxy(C.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(e,t,n){return Reflect.get(e,t,n)}});function Jn(e){const t={};return Object.keys(e).forEach(n=>{t[n]=e[n].defaultValue}),t}function kr(e){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`}function Lh(e){var t,n,r;const o=(n=(t=Ir.find(s=>{var i;return s[0].id===e&&!!((i=s[0])!=null&&i.settings)}))==null?void 0:t[0])!=null?n:null;return(r=o==null?void 0:o.settings)!=null?r:null}function oa(e,t){var n,r,o;const s=kr(e);if(s){const i=localStorage.getItem(s);if(i)return JSON.parse(i)}if(e){const i=(r=(n=Ir.find(a=>a[0].id===e))==null?void 0:n[0])!=null?r:null;return Jn((o=i==null?void 0:i.settings)!=null?o:{})}return Jn(t)}function Uh(e,t){const n=kr(e);localStorage.getItem(n)||localStorage.setItem(n,JSON.stringify(Jn(t)))}function $h(e,t,n){const r=kr(e),o=localStorage.getItem(r),s=JSON.parse(o||"{}"),i={...s,[t]:n};localStorage.setItem(r,JSON.stringify(i)),ft.hooks.callHookWith(a=>{a.forEach(l=>l({pluginId:e,key:t,oldValue:s[t],newValue:n,settings:i}))},"setPluginSettings")}_();_();_();_();_();_();_();_();_();_();_();var ls,cs,ie=(cs=(ls=C).__VUE_DEVTOOLS_HOOK)!=null?cs:ls.__VUE_DEVTOOLS_HOOK=Ki(),jh={vueAppInit(e){ie.hook("app:init",e)},vueAppUnmount(e){ie.hook("app:unmount",e)},vueAppConnected(e){ie.hook("app:connected",e)},componentAdded(e){return ie.hook("component:added",e)},componentEmit(e){return ie.hook("component:emit",e)},componentUpdated(e){return ie.hook("component:updated",e)},componentRemoved(e){return ie.hook("component:removed",e)},setupDevtoolsPlugin(e){ie.hook("devtools-plugin:setup",e)},perfStart(e){return ie.hook("perf:start",e)},perfEnd(e){return ie.hook("perf:end",e)}},sa={on:jh,setupDevToolsPlugin(e,t){return ie.callHook("devtools-plugin:setup",e,t)}},Hh=class{constructor({plugin:e,ctx:t}){this.hooks=t.hooks,this.plugin=e}get on(){return{visitComponentTree:e=>{this.hooks.hook("visitComponentTree",e)},inspectComponent:e=>{this.hooks.hook("inspectComponent",e)},editComponentState:e=>{this.hooks.hook("editComponentState",e)},getInspectorTree:e=>{this.hooks.hook("getInspectorTree",e)},getInspectorState:e=>{this.hooks.hook("getInspectorState",e)},editInspectorState:e=>{this.hooks.hook("editInspectorState",e)},inspectTimelineEvent:e=>{this.hooks.hook("inspectTimelineEvent",e)},timelineCleared:e=>{this.hooks.hook("timelineCleared",e)},setPluginSettings:e=>{this.hooks.hook("setPluginSettings",e)}}}notifyComponentUpdate(e){var t;if(W.highPerfModeEnabled)return;const n=na().find(r=>r.packageName===this.plugin.descriptor.packageName);if(n!=null&&n.id){if(e){const r=[e.appContext.app,e.uid,(t=e.parent)==null?void 0:t.uid,e];ie.callHook("component:updated",...r)}else ie.callHook("component:updated");this.hooks.callHook("sendInspectorState",{inspectorId:n.id,plugin:this.plugin})}}addInspector(e){this.hooks.callHook("addInspector",{inspector:e,plugin:this.plugin}),this.plugin.descriptor.settings&&Uh(e.id,this.plugin.descriptor.settings)}sendInspectorTree(e){W.highPerfModeEnabled||this.hooks.callHook("sendInspectorTree",{inspectorId:e,plugin:this.plugin})}sendInspectorState(e){W.highPerfModeEnabled||this.hooks.callHook("sendInspectorState",{inspectorId:e,plugin:this.plugin})}selectInspectorNode(e,t){this.hooks.callHook("customInspectorSelectNode",{inspectorId:e,nodeId:t,plugin:this.plugin})}visitComponentTree(e){return this.hooks.callHook("visitComponentTree",e)}now(){return W.highPerfModeEnabled?0:Date.now()}addTimelineLayer(e){this.hooks.callHook("timelineLayerAdded",{options:e,plugin:this.plugin})}addTimelineEvent(e){W.highPerfModeEnabled||this.hooks.callHook("timelineEventAdded",{options:e,plugin:this.plugin})}getSettings(e){return oa(e??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(e){return this.hooks.callHook("getComponentInstances",{app:e})}getComponentBounds(e){return this.hooks.callHook("getComponentBounds",{instance:e})}getComponentName(e){return this.hooks.callHook("getComponentName",{instance:e})}highlightElement(e){const t=e.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook("componentHighlight",{uid:t})}unhighlightElement(){return this.hooks.callHook("componentUnhighlight")}},Kh=Hh;_();_();_();_();var zh="__vue_devtool_undefined__",qh="__vue_devtool_infinity__",Gh="__vue_devtool_negative_infinity__",Wh="__vue_devtool_nan__";_();_();var Yh={[zh]:"undefined",[Wh]:"NaN",[qh]:"Infinity",[Gh]:"-Infinity"};Object.entries(Yh).reduce((e,[t,n])=>(e[n]=t,e),{});_();_();_();_();_();var fs,ds;(ds=(fs=C).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__)!=null||(fs.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__=new Set);function ia(e,t){return sa.setupDevToolsPlugin(e,t)}function Zh(e,t){const[n,r]=e;if(n.app!==t)return;const o=new Kh({plugin:{setupFn:r,descriptor:n},ctx:ft});n.packageName==="vuex"&&o.on.editInspectorState(s=>{o.sendInspectorState(s.inspectorId)}),r(o)}function aa(e,t){C.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e)||W.highPerfModeEnabled&&!(t!=null&&t.inspectingComponent)||(C.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),Ir.forEach(n=>{Zh(n,e)}))}_();_();var wt="__VUE_DEVTOOLS_ROUTER__",ot="__VUE_DEVTOOLS_ROUTER_INFO__",hs,ps;(ps=(hs=C)[ot])!=null||(hs[ot]={currentRoute:null,routes:[]});var gs,vs;(vs=(gs=C)[wt])!=null||(gs[wt]={});new Proxy(C[ot],{get(e,t){return C[ot][t]}});new Proxy(C[wt],{get(e,t){if(t==="value")return C[wt]}});function Xh(e){const t=new Map;return((e==null?void 0:e.getRoutes())||[]).filter(n=>!t.has(n.path)&&t.set(n.path,1))}function xr(e){return e.map(t=>{let{path:n,name:r,children:o,meta:s}=t;return o!=null&&o.length&&(o=xr(o)),{path:n,name:r,children:o,meta:s}})}function Jh(e){if(e){const{fullPath:t,hash:n,href:r,path:o,name:s,matched:i,params:a,query:l}=e;return{fullPath:t,hash:n,href:r,path:o,name:s,params:a,query:l,matched:xr(i)}}return e}function Qh(e,t){function n(){var r;const o=(r=e.app)==null?void 0:r.config.globalProperties.$router,s=Jh(o==null?void 0:o.currentRoute.value),i=xr(Xh(o)),a=console.warn;console.warn=()=>{},C[ot]={currentRoute:s?Uo(s):{},routes:Uo(i)},C[wt]=o,console.warn=a}n(),sa.on.componentUpdated(rt(()=>{var r;((r=t.value)==null?void 0:r.app)===e.app&&(n(),!W.highPerfModeEnabled&&ft.hooks.callHook("routerInfoUpdated",{state:C[ot]}))},200))}function ep(e){return{async getInspectorTree(t){const n={...t,app:te.value.app,rootNodes:[]};return await new Promise(r=>{e.callHookWith(async o=>{await Promise.all(o.map(s=>s(n))),r()},"getInspectorTree")}),n.rootNodes},async getInspectorState(t){const n={...t,app:te.value.app,state:null},r={currentTab:`custom-inspector:${t.inspectorId}`};return await new Promise(o=>{e.callHookWith(async s=>{await Promise.all(s.map(i=>i(n,r))),o()},"getInspectorState")}),n.state},editInspectorState(t){const n=new Ch,r={...t,app:te.value.app,set:(o,s=t.path,i=t.state.value,a)=>{n.set(o,s,i,a||n.createDefaultSetCallback(t.state))}};e.callHookWith(o=>{o.forEach(s=>s(r))},"editInspectorState")},sendInspectorState(t){const n=Wt(t);e.callHook("sendInspectorState",{inspectorId:t,plugin:{descriptor:n.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return bh()},cancelInspectComponentInspector(){return Eh()},getComponentRenderCode(t){const n=Yn(te.value,t);if(n)return typeof(n==null?void 0:n.type)!="function"?n.render.toString():n.type.toString()},scrollToComponent(t){return _h({id:t})},openInEditor:Fh,getVueInspector:wh,toggleApp(t,n){const r=vn.value.find(o=>o.id===t);r&&(Mh(t),Vh(r),Qh(r,te),ta(),aa(r.app,n))},inspectDOM(t){const n=Yn(te.value,t);if(n){const[r]=wr(n);r&&(C.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=r)}},updatePluginSettings(t,n,r){$h(t,n,r)},getPluginSettings(t){return{options:Lh(t),values:oa(t)}}}}_();var ys,ms;(ms=(ys=C).__VUE_DEVTOOLS_ENV__)!=null||(ys.__VUE_DEVTOOLS_ENV__={vitePluginDetected:!1});var Es=Nh(),bs,_s;(_s=(bs=C).__VUE_DEVTOOLS_KIT_CONTEXT__)!=null||(bs.__VUE_DEVTOOLS_KIT_CONTEXT__={hooks:Es,get state(){return{...W,activeAppRecordId:te.id,activeAppRecord:te.value,appRecords:vn.value}},api:ep(Es)});var ft=C.__VUE_DEVTOOLS_KIT_CONTEXT__;_();th(rh());var Ss,Ts;(Ts=(Ss=C).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__)!=null||(Ss.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__={id:0,appIds:new Set});_();_();function tp(e){W.highPerfModeEnabled=e??!W.highPerfModeEnabled,!e&&te.value&&aa(te.value.app)}_();_();_();function np(e){W.devtoolsClientDetected={...W.devtoolsClientDetected,...e};const t=Object.values(W.devtoolsClientDetected).some(Boolean);tp(!t)}var ws,As;(As=(ws=C).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__)!=null||(ws.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__=np);_();_();_();_();_();_();_();var rp=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},ua=class{constructor(e){this.generateIdentifier=e,this.kv=new rp}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},op=class extends ua{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){typeof t=="object"?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};_();_();function sp(e){if("values"in Object)return Object.values(e);const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function ip(e,t){const n=sp(e);if("find"in n)return n.find(t);const r=n;for(let o=0;o<r.length;o++){const s=r[o];if(t(s))return s}}function st(e,t){Object.entries(e).forEach(([n,r])=>t(r,n))}function Yt(e,t){return e.indexOf(t)!==-1}function Cs(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(t(r))return r}}var ap=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return ip(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}};_();_();var up=e=>Object.prototype.toString.call(e).slice(8,-1),la=e=>typeof e>"u",lp=e=>e===null,At=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,Qn=e=>At(e)&&Object.keys(e).length===0,ke=e=>Array.isArray(e),cp=e=>typeof e=="string",fp=e=>typeof e=="number"&&!isNaN(e),dp=e=>typeof e=="boolean",hp=e=>e instanceof RegExp,Ct=e=>e instanceof Map,Ot=e=>e instanceof Set,ca=e=>up(e)==="Symbol",pp=e=>e instanceof Date&&!isNaN(e.valueOf()),gp=e=>e instanceof Error,Os=e=>typeof e=="number"&&isNaN(e),vp=e=>dp(e)||lp(e)||la(e)||fp(e)||cp(e)||ca(e),yp=e=>typeof e=="bigint",mp=e=>e===1/0||e===-1/0,Ep=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),bp=e=>e instanceof URL;_();var fa=e=>e.replace(/\./g,"\\."),kn=e=>e.map(String).map(fa).join("."),_t=e=>{const t=[];let n="";for(let o=0;o<e.length;o++){let s=e.charAt(o);if(s==="\\"&&e.charAt(o+1)==="."){n+=".",o++;continue}if(s==="."){t.push(n),n="";continue}n+=s}const r=n;return t.push(r),t};_();function pe(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var da=[pe(la,"undefined",()=>null,()=>{}),pe(yp,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)),pe(pp,"Date",e=>e.toISOString(),e=>new Date(e)),pe(gp,"Error",(e,t)=>{const n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n},(e,t)=>{const n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n}),pe(hp,"regexp",e=>""+e,e=>{const t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),pe(Ot,"set",e=>[...e.values()],e=>new Set(e)),pe(Ct,"map",e=>[...e.entries()],e=>new Map(e)),pe(e=>Os(e)||mp(e),"number",e=>Os(e)?"NaN":e>0?"Infinity":"-Infinity",Number),pe(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),pe(bp,"URL",e=>e.toString(),e=>new URL(e))];function yn(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var ha=yn((e,t)=>ca(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{const r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),_p=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),pa=yn(Ep,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{const n=_p[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function ga(e,t){return e!=null&&e.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}var va=yn(ga,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{const n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};const r={};return n.forEach(o=>{r[o]=e[o]}),r},(e,t,n)=>{const r=n.classRegistry.getValue(t[1]);if(!r)throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(r.prototype),e)}),ya=yn((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{const r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),Sp=[va,ha,ya,pa],Ds=(e,t)=>{const n=Cs(Sp,o=>o.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};const r=Cs(da,o=>o.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation}},ma={};da.forEach(e=>{ma[e.annotation]=e});var Tp=(e,t,n)=>{if(ke(t))switch(t[0]){case"symbol":return ha.untransform(e,t,n);case"class":return va.untransform(e,t,n);case"custom":return ya.untransform(e,t,n);case"typed-array":return pa.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{const r=ma[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}};_();var Ze=(e,t)=>{if(t>e.size)throw new Error("index out of bounds");const n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function Ea(e){if(Yt(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Yt(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Yt(e,"constructor"))throw new Error("constructor is not allowed as a property")}var wp=(e,t)=>{Ea(t);for(let n=0;n<t.length;n++){const r=t[n];if(Ot(e))e=Ze(e,+r);else if(Ct(e)){const o=+r,s=+t[++n]==0?"key":"value",i=Ze(e,o);switch(s){case"key":e=i;break;case"value":e=e.get(i);break}}else e=e[r]}return e},er=(e,t,n)=>{if(Ea(t),t.length===0)return n(e);let r=e;for(let s=0;s<t.length-1;s++){const i=t[s];if(ke(r)){const a=+i;r=r[a]}else if(At(r))r=r[i];else if(Ot(r)){const a=+i;r=Ze(r,a)}else if(Ct(r)){if(s===t.length-2)break;const l=+i,c=+t[++s]==0?"key":"value",p=Ze(r,l);switch(c){case"key":r=p;break;case"value":r=r.get(p);break}}}const o=t[t.length-1];if(ke(r)?r[+o]=n(r[+o]):At(r)&&(r[o]=n(r[o])),Ot(r)){const s=Ze(r,+o),i=n(s);s!==i&&(r.delete(s),r.add(i))}if(Ct(r)){const s=+t[t.length-2],i=Ze(r,s);switch(+o==0?"key":"value"){case"key":{const l=n(i);r.set(l,r.get(i)),l!==i&&r.delete(i);break}case"value":{r.set(i,n(r.get(i)));break}}}return e};function tr(e,t,n=[]){if(!e)return;if(!ke(e)){st(e,(s,i)=>tr(s,t,[...n,..._t(i)]));return}const[r,o]=e;o&&st(o,(s,i)=>{tr(s,t,[...n,..._t(i)])}),t(r,n)}function Ap(e,t,n){return tr(t,(r,o)=>{e=er(e,o,s=>Tp(s,r,n))}),e}function Cp(e,t){function n(r,o){const s=wp(e,_t(o));r.map(_t).forEach(i=>{e=er(e,i,()=>s)})}if(ke(t)){const[r,o]=t;r.forEach(s=>{e=er(e,_t(s),()=>e)}),o&&st(o,n)}else st(t,n);return e}var Op=(e,t)=>At(e)||ke(e)||Ct(e)||Ot(e)||ga(e,t);function Dp(e,t,n){const r=n.get(e);r?r.push(t):n.set(e,[t])}function Ip(e,t){const n={};let r;return e.forEach(o=>{if(o.length<=1)return;t||(o=o.map(a=>a.map(String)).sort((a,l)=>a.length-l.length));const[s,...i]=o;s.length===0?r=i.map(kn):n[kn(s)]=i.map(kn)}),r?Qn(n)?[r]:[r,n]:Qn(n)?void 0:n}var ba=(e,t,n,r,o=[],s=[],i=new Map)=>{var a;const l=vp(e);if(!l){Dp(e,o,t);const f=i.get(e);if(f)return r?{transformedValue:null}:f}if(!Op(e,n)){const f=Ds(e,n),m=f?{transformedValue:f.value,annotations:[f.type]}:{transformedValue:e};return l||i.set(e,m),m}if(Yt(s,e))return{transformedValue:null};const c=Ds(e,n),p=(a=c==null?void 0:c.value)!=null?a:e,d=ke(p)?[]:{},y={};st(p,(f,m)=>{if(m==="__proto__"||m==="constructor"||m==="prototype")throw new Error(`Detected property ${m}. This is a prototype pollution risk, please remove it from your object.`);const v=ba(f,t,n,r,[...o,m],[...s,e],i);d[m]=v.transformedValue,ke(v.annotations)?y[m]=v.annotations:At(v.annotations)&&st(v.annotations,(E,w)=>{y[fa(m)+"."+w]=E})});const g=Qn(y)?{transformedValue:d,annotations:c?[c.type]:void 0}:{transformedValue:d,annotations:c?[c.type,y]:y};return l||i.set(e,g),g};_();_();function _a(e){return Object.prototype.toString.call(e).slice(8,-1)}function Is(e){return _a(e)==="Array"}function kp(e){if(_a(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function xp(e,t,n,r,o){const s={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";s==="enumerable"&&(e[t]=n),o&&s==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function nr(e,t={}){if(Is(e))return e.map(o=>nr(o,t));if(!kp(e))return e;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((o,s)=>{if(Is(t.props)&&!t.props.includes(s))return o;const i=e[s],a=nr(i,t);return xp(o,s,a,e,t.nonenumerable),o},{})}var j=class{constructor({dedupe:e=!1}={}){this.classRegistry=new op,this.symbolRegistry=new ua(t=>{var n;return(n=t.description)!=null?n:""}),this.customTransformerRegistry=new ap,this.allowedErrorProps=[],this.dedupe=e}serialize(e){const t=new Map,n=ba(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta={...r.meta,values:n.annotations});const o=Ip(t,this.dedupe);return o&&(r.meta={...r.meta,referentialEqualities:o}),r}deserialize(e){const{json:t,meta:n}=e;let r=nr(t);return n!=null&&n.values&&(r=Ap(r,n.values,this)),n!=null&&n.referentialEqualities&&(r=Cp(r,n.referentialEqualities)),r}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};j.defaultInstance=new j;j.serialize=j.defaultInstance.serialize.bind(j.defaultInstance);j.deserialize=j.defaultInstance.deserialize.bind(j.defaultInstance);j.stringify=j.defaultInstance.stringify.bind(j.defaultInstance);j.parse=j.defaultInstance.parse.bind(j.defaultInstance);j.registerClass=j.defaultInstance.registerClass.bind(j.defaultInstance);j.registerSymbol=j.defaultInstance.registerSymbol.bind(j.defaultInstance);j.registerCustom=j.defaultInstance.registerCustom.bind(j.defaultInstance);j.allowErrorProps=j.defaultInstance.allowErrorProps.bind(j.defaultInstance);_();_();_();_();_();_();_();_();_();_();_();_();_();_();_();_();_();_();_();_();_();_();_();var ks,xs;(xs=(ks=C).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__)!=null||(ks.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__=[]);var Rs,Ns;(Ns=(Rs=C).__VUE_DEVTOOLS_KIT_RPC_CLIENT__)!=null||(Rs.__VUE_DEVTOOLS_KIT_RPC_CLIENT__=null);var Bs,Ps;(Ps=(Bs=C).__VUE_DEVTOOLS_KIT_RPC_SERVER__)!=null||(Bs.__VUE_DEVTOOLS_KIT_RPC_SERVER__=null);var Vs,Ms;(Ms=(Vs=C).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__)!=null||(Vs.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__=null);var Fs,Ls;(Ls=(Fs=C).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__)!=null||(Fs.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__=null);var Us,$s;($s=(Us=C).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__)!=null||(Us.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__=null);_();_();_();_();_();_();_();/*!
8
8
  * pinia v3.0.3
9
9
  * (c) 2025 Eduardo San Martin Morote
10
10
  * @license MIT
11
- */let yt;const Dt=e=>yt=e,Sa=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function Le(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var ge;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(ge||(ge={}));const Ae=typeof window<"u",js=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null};function Mp(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function Rr(e,t,n){const r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){Aa(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function Ta(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Zt(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const n=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(n)}}const Xt=typeof navigator=="object"?navigator:{userAgent:""},wa=/Macintosh/.test(Xt.userAgent)&&/AppleWebKit/.test(Xt.userAgent)&&!/Safari/.test(Xt.userAgent),Aa=Ae?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!wa?Fp:"msSaveOrOpenBlob"in Xt?Lp:Up:()=>{};function Fp(e,t="download",n){const r=document.createElement("a");r.download=t,r.rel="noopener",typeof e=="string"?(r.href=e,r.origin!==location.origin?Ta(r.href)?Rr(e,t,n):(r.target="_blank",Zt(r)):Zt(r)):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){Zt(r)},0))}function Lp(e,t="download",n){if(typeof e=="string")if(Ta(e))Rr(e,t,n);else{const r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){Zt(r)})}else navigator.msSaveOrOpenBlob(Mp(e,n),t)}function Up(e,t,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return Rr(e,t,n);const o=e.type==="application/octet-stream",s=/constructor/i.test(String(js.HTMLElement))||"safari"in js,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||o&&s||wa)&&typeof FileReader<"u"){const a=new FileReader;a.onloadend=function(){let l=a.result;if(typeof l!="string")throw r=null,new Error("Wrong reader.result type");l=i?l:l.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=l:location.assign(l),r=null},a.readAsDataURL(e)}else{const a=URL.createObjectURL(e);r?r.location.assign(a):location.href=a,r=null,setTimeout(function(){URL.revokeObjectURL(a)},4e4)}}function Y(e,t){const n="🍍 "+e;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,t):t==="error"?console.error(n):t==="warn"?console.warn(n):console.log(n)}function Nr(e){return"_a"in e&&"install"in e}function Ca(){if(!("clipboard"in navigator))return Y("Your browser doesn't support the Clipboard API","error"),!0}function Oa(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(Y('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function $p(e){if(!Ca())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),Y("Global state copied to clipboard.")}catch(t){if(Oa(t))return;Y("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function jp(e){if(!Ca())try{Da(e,JSON.parse(await navigator.clipboard.readText())),Y("Global state pasted from clipboard.")}catch(t){if(Oa(t))return;Y("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function Hp(e){try{Aa(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){Y("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let me;function Kp(){me||(me=document.createElement("input"),me.type="file",me.accept=".json");function e(){return new Promise((t,n)=>{me.onchange=async()=>{const r=me.files;if(!r)return t(null);const o=r.item(0);return t(o?{text:await o.text(),file:o}:null)},me.oncancel=()=>t(null),me.onerror=n,me.click()})}return e}async function zp(e){try{const n=await Kp()();if(!n)return;const{text:r,file:o}=n;Da(e,JSON.parse(r)),Y(`Global state imported from "${o.name}".`)}catch(t){Y("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function Da(e,t){for(const n in t){const r=e.state.value[n];r?Object.assign(r,t[n]):e.state.value[n]=t[n]}}function fe(e){return{_custom:{display:e}}}const Ia="🍍 Pinia (root)",Jt="_root";function qp(e){return Nr(e)?{id:Jt,label:Ia}:{id:e.$id,label:e.$id}}function Gp(e){if(Nr(e)){const n=Array.from(e._s.keys()),r=e._s;return{state:n.map(s=>({editable:!0,key:s,value:e.state.value[s]})),getters:n.filter(s=>r.get(s)._getters).map(s=>{const i=r.get(s);return{editable:!1,key:s,value:i._getters.reduce((a,l)=>(a[l]=i[l],a),{})}})}}const t={state:Object.keys(e.$state).map(n=>({editable:!0,key:n,value:e.$state[n]}))};return e._getters&&e._getters.length&&(t.getters=e._getters.map(n=>({editable:!1,key:n,value:e[n]}))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map(n=>({editable:!0,key:n,value:e[n]}))),t}function Wp(e){return e?Array.isArray(e)?e.reduce((t,n)=>(t.keys.push(n.key),t.operations.push(n.type),t.oldValue[n.key]=n.oldValue,t.newValue[n.key]=n.newValue,t),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:fe(e.type),key:fe(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function Yp(e){switch(e){case ge.direct:return"mutation";case ge.patchFunction:return"$patch";case ge.patchObject:return"$patch";default:return"unknown"}}let Xe=!0;const Qt=[],Ne="pinia:mutations",J="pinia",{assign:Zp}=Object,on=e=>"🍍 "+e;function Xp(e,t){ia({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Qt,app:e},n=>{typeof n.now!="function"&&Y("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:Ne,label:"Pinia 🍍",color:15064968}),n.addInspector({id:J,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{$p(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await jp(t),n.sendInspectorTree(J),n.sendInspectorState(J)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{Hp(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await zp(t),n.sendInspectorTree(J),n.sendInspectorState(J)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:r=>{const o=t._s.get(r);o?typeof o.$reset!="function"?Y(`Cannot reset "${r}" store because it doesn't have a "$reset" method implemented.`,"warn"):(o.$reset(),Y(`Store "${r}" reset.`)):Y(`Cannot reset "${r}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent(r=>{const o=r.componentInstance&&r.componentInstance.proxy;if(o&&o._pStores){const s=r.componentInstance.proxy._pStores;Object.values(s).forEach(i=>{r.instanceData.state.push({type:on(i.$id),key:"state",editable:!0,value:i._isOptionsAPI?{_custom:{value:u.toRaw(i.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>i.$reset()}]}}:Object.keys(i.$state).reduce((a,l)=>(a[l]=i.$state[l],a),{})}),i._getters&&i._getters.length&&r.instanceData.state.push({type:on(i.$id),key:"getters",editable:!1,value:i._getters.reduce((a,l)=>{try{a[l]=i[l]}catch(c){a[l]=c}return a},{})})})}}),n.on.getInspectorTree(r=>{if(r.app===e&&r.inspectorId===J){let o=[t];o=o.concat(Array.from(t._s.values())),r.rootNodes=(r.filter?o.filter(s=>"$id"in s?s.$id.toLowerCase().includes(r.filter.toLowerCase()):Ia.toLowerCase().includes(r.filter.toLowerCase())):o).map(qp)}}),globalThis.$pinia=t,n.on.getInspectorState(r=>{if(r.app===e&&r.inspectorId===J){const o=r.nodeId===Jt?t:t._s.get(r.nodeId);if(!o)return;o&&(r.nodeId!==Jt&&(globalThis.$store=u.toRaw(o)),r.state=Gp(o))}}),n.on.editInspectorState(r=>{if(r.app===e&&r.inspectorId===J){const o=r.nodeId===Jt?t:t._s.get(r.nodeId);if(!o)return Y(`store "${r.nodeId}" not found`,"error");const{path:s}=r;Nr(o)?s.unshift("state"):(s.length!==1||!o._customProperties.has(s[0])||s[0]in o.$state)&&s.unshift("$state"),Xe=!1,r.set(o,s,r.state.value),Xe=!0}}),n.on.editComponentState(r=>{if(r.type.startsWith("🍍")){const o=r.type.replace(/^🍍\s*/,""),s=t._s.get(o);if(!s)return Y(`store "${o}" not found`,"error");const{path:i}=r;if(i[0]!=="state")return Y(`Invalid path for store "${o}":
11
+ */let yt;const Dt=e=>yt=e,Sa=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function Le(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var ge;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(ge||(ge={}));const Ae=typeof window<"u",js=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null};function Rp(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function Rr(e,t,n){const r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){Aa(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function Ta(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Zt(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const n=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(n)}}const Xt=typeof navigator=="object"?navigator:{userAgent:""},wa=/Macintosh/.test(Xt.userAgent)&&/AppleWebKit/.test(Xt.userAgent)&&!/Safari/.test(Xt.userAgent),Aa=Ae?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!wa?Np:"msSaveOrOpenBlob"in Xt?Bp:Pp:()=>{};function Np(e,t="download",n){const r=document.createElement("a");r.download=t,r.rel="noopener",typeof e=="string"?(r.href=e,r.origin!==location.origin?Ta(r.href)?Rr(e,t,n):(r.target="_blank",Zt(r)):Zt(r)):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){Zt(r)},0))}function Bp(e,t="download",n){if(typeof e=="string")if(Ta(e))Rr(e,t,n);else{const r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){Zt(r)})}else navigator.msSaveOrOpenBlob(Rp(e,n),t)}function Pp(e,t,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return Rr(e,t,n);const o=e.type==="application/octet-stream",s=/constructor/i.test(String(js.HTMLElement))||"safari"in js,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||o&&s||wa)&&typeof FileReader<"u"){const a=new FileReader;a.onloadend=function(){let l=a.result;if(typeof l!="string")throw r=null,new Error("Wrong reader.result type");l=i?l:l.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=l:location.assign(l),r=null},a.readAsDataURL(e)}else{const a=URL.createObjectURL(e);r?r.location.assign(a):location.href=a,r=null,setTimeout(function(){URL.revokeObjectURL(a)},4e4)}}function Y(e,t){const n="🍍 "+e;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,t):t==="error"?console.error(n):t==="warn"?console.warn(n):console.log(n)}function Nr(e){return"_a"in e&&"install"in e}function Ca(){if(!("clipboard"in navigator))return Y("Your browser doesn't support the Clipboard API","error"),!0}function Oa(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(Y('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function Vp(e){if(!Ca())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),Y("Global state copied to clipboard.")}catch(t){if(Oa(t))return;Y("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function Mp(e){if(!Ca())try{Da(e,JSON.parse(await navigator.clipboard.readText())),Y("Global state pasted from clipboard.")}catch(t){if(Oa(t))return;Y("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function Fp(e){try{Aa(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){Y("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let me;function Lp(){me||(me=document.createElement("input"),me.type="file",me.accept=".json");function e(){return new Promise((t,n)=>{me.onchange=async()=>{const r=me.files;if(!r)return t(null);const o=r.item(0);return t(o?{text:await o.text(),file:o}:null)},me.oncancel=()=>t(null),me.onerror=n,me.click()})}return e}async function Up(e){try{const n=await Lp()();if(!n)return;const{text:r,file:o}=n;Da(e,JSON.parse(r)),Y(`Global state imported from "${o.name}".`)}catch(t){Y("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function Da(e,t){for(const n in t){const r=e.state.value[n];r?Object.assign(r,t[n]):e.state.value[n]=t[n]}}function fe(e){return{_custom:{display:e}}}const Ia="🍍 Pinia (root)",Jt="_root";function $p(e){return Nr(e)?{id:Jt,label:Ia}:{id:e.$id,label:e.$id}}function jp(e){if(Nr(e)){const n=Array.from(e._s.keys()),r=e._s;return{state:n.map(s=>({editable:!0,key:s,value:e.state.value[s]})),getters:n.filter(s=>r.get(s)._getters).map(s=>{const i=r.get(s);return{editable:!1,key:s,value:i._getters.reduce((a,l)=>(a[l]=i[l],a),{})}})}}const t={state:Object.keys(e.$state).map(n=>({editable:!0,key:n,value:e.$state[n]}))};return e._getters&&e._getters.length&&(t.getters=e._getters.map(n=>({editable:!1,key:n,value:e[n]}))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map(n=>({editable:!0,key:n,value:e[n]}))),t}function Hp(e){return e?Array.isArray(e)?e.reduce((t,n)=>(t.keys.push(n.key),t.operations.push(n.type),t.oldValue[n.key]=n.oldValue,t.newValue[n.key]=n.newValue,t),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:fe(e.type),key:fe(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function Kp(e){switch(e){case ge.direct:return"mutation";case ge.patchFunction:return"$patch";case ge.patchObject:return"$patch";default:return"unknown"}}let Xe=!0;const Qt=[],Ne="pinia:mutations",J="pinia",{assign:zp}=Object,on=e=>"🍍 "+e;function qp(e,t){ia({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Qt,app:e},n=>{typeof n.now!="function"&&Y("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:Ne,label:"Pinia 🍍",color:15064968}),n.addInspector({id:J,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{Vp(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await Mp(t),n.sendInspectorTree(J),n.sendInspectorState(J)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{Fp(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await Up(t),n.sendInspectorTree(J),n.sendInspectorState(J)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:r=>{const o=t._s.get(r);o?typeof o.$reset!="function"?Y(`Cannot reset "${r}" store because it doesn't have a "$reset" method implemented.`,"warn"):(o.$reset(),Y(`Store "${r}" reset.`)):Y(`Cannot reset "${r}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent(r=>{const o=r.componentInstance&&r.componentInstance.proxy;if(o&&o._pStores){const s=r.componentInstance.proxy._pStores;Object.values(s).forEach(i=>{r.instanceData.state.push({type:on(i.$id),key:"state",editable:!0,value:i._isOptionsAPI?{_custom:{value:u.toRaw(i.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>i.$reset()}]}}:Object.keys(i.$state).reduce((a,l)=>(a[l]=i.$state[l],a),{})}),i._getters&&i._getters.length&&r.instanceData.state.push({type:on(i.$id),key:"getters",editable:!1,value:i._getters.reduce((a,l)=>{try{a[l]=i[l]}catch(c){a[l]=c}return a},{})})})}}),n.on.getInspectorTree(r=>{if(r.app===e&&r.inspectorId===J){let o=[t];o=o.concat(Array.from(t._s.values())),r.rootNodes=(r.filter?o.filter(s=>"$id"in s?s.$id.toLowerCase().includes(r.filter.toLowerCase()):Ia.toLowerCase().includes(r.filter.toLowerCase())):o).map($p)}}),globalThis.$pinia=t,n.on.getInspectorState(r=>{if(r.app===e&&r.inspectorId===J){const o=r.nodeId===Jt?t:t._s.get(r.nodeId);if(!o)return;o&&(r.nodeId!==Jt&&(globalThis.$store=u.toRaw(o)),r.state=jp(o))}}),n.on.editInspectorState(r=>{if(r.app===e&&r.inspectorId===J){const o=r.nodeId===Jt?t:t._s.get(r.nodeId);if(!o)return Y(`store "${r.nodeId}" not found`,"error");const{path:s}=r;Nr(o)?s.unshift("state"):(s.length!==1||!o._customProperties.has(s[0])||s[0]in o.$state)&&s.unshift("$state"),Xe=!1,r.set(o,s,r.state.value),Xe=!0}}),n.on.editComponentState(r=>{if(r.type.startsWith("🍍")){const o=r.type.replace(/^🍍\s*/,""),s=t._s.get(o);if(!s)return Y(`store "${o}" not found`,"error");const{path:i}=r;if(i[0]!=="state")return Y(`Invalid path for store "${o}":
12
12
  ${i}
13
- Only state can be modified.`);i[0]="$state",Xe=!1,r.set(s,i,r.state.value),Xe=!0}})})}function Jp(e,t){Qt.includes(on(t.$id))||Qt.push(on(t.$id)),ia({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Qt,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const r=typeof n.now=="function"?n.now.bind(n):Date.now;t.$onAction(({after:i,onError:a,name:l,args:c})=>{const p=ka++;n.addTimelineEvent({layerId:Ne,event:{time:r(),title:"🛫 "+l,subtitle:"start",data:{store:fe(t.$id),action:fe(l),args:c},groupId:p}}),i(h=>{Ce=void 0,n.addTimelineEvent({layerId:Ne,event:{time:r(),title:"🛬 "+l,subtitle:"end",data:{store:fe(t.$id),action:fe(l),args:c,result:h},groupId:p}})}),a(h=>{Ce=void 0,n.addTimelineEvent({layerId:Ne,event:{time:r(),logType:"error",title:"💥 "+l,subtitle:"end",data:{store:fe(t.$id),action:fe(l),args:c,error:h},groupId:p}})})},!0),t._customProperties.forEach(i=>{u.watch(()=>u.unref(t[i]),(a,l)=>{n.notifyComponentUpdate(),n.sendInspectorState(J),Xe&&n.addTimelineEvent({layerId:Ne,event:{time:r(),title:"Change",subtitle:i,data:{newValue:a,oldValue:l},groupId:Ce}})},{deep:!0})}),t.$subscribe(({events:i,type:a},l)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(J),!Xe)return;const c={time:r(),title:Yp(a),data:Zp({store:fe(t.$id)},Wp(i)),groupId:Ce};a===ge.patchFunction?c.subtitle="⤵️":a===ge.patchObject?c.subtitle="🧩":i&&!Array.isArray(i)&&(c.subtitle=i.type),i&&(c.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:i}}),n.addTimelineEvent({layerId:Ne,event:c})},{detached:!0,flush:"sync"});const o=t._hotUpdate;t._hotUpdate=u.markRaw(i=>{o(i),n.addTimelineEvent({layerId:Ne,event:{time:r(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:fe(t.$id),info:fe("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(J),n.sendInspectorState(J)});const{$dispose:s}=t;t.$dispose=()=>{s(),n.notifyComponentUpdate(),n.sendInspectorTree(J),n.sendInspectorState(J),n.getSettings().logStoreChanges&&Y(`Disposed "${t.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(J),n.sendInspectorState(J),n.getSettings().logStoreChanges&&Y(`"${t.$id}" store installed 🆕`)})}let ka=0,Ce;function Hs(e,t,n){const r=t.reduce((o,s)=>(o[s]=u.toRaw(e)[s],o),{});for(const o in r)e[o]=function(){const s=ka,i=n?new Proxy(e,{get(...l){return Ce=s,Reflect.get(...l)},set(...l){return Ce=s,Reflect.set(...l)}}):e;Ce=s;const a=r[o].apply(i,arguments);return Ce=void 0,a}}function Qp({app:e,store:t,options:n}){if(!t.$id.startsWith("__hot:")){if(t._isOptionsAPI=!!n.state,!t._p._testing){Hs(t,Object.keys(n.actions),t._isOptionsAPI);const r=t._hotUpdate;u.toRaw(t)._hotUpdate=function(o){r.apply(this,arguments),Hs(t,Object.keys(o._hmrPayload.actions),!!t._isOptionsAPI)}}Jp(e,t)}}function e0(){const e=u.effectScope(!0),t=e.run(()=>u.ref({}));let n=[],r=[];const o=u.markRaw({install(s){Dt(o),o._a=s,s.provide(Sa,o),s.config.globalProperties.$pinia=o,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Ae&&Xp(s,o),r.forEach(i=>n.push(i)),r=[]},use(s){return this._a?n.push(s):r.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Ae&&typeof Proxy<"u"&&o.use(Qp),o}function xa(e,t){for(const n in t){const r=t[n];if(!(n in e))continue;const o=e[n];Le(o)&&Le(r)&&!u.isRef(r)&&!u.isReactive(r)?e[n]=xa(o,r):e[n]=r}return e}const Ra=()=>{};function Ks(e,t,n,r=Ra){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&u.getCurrentScope()&&u.onScopeDispose(o),o}function ze(e,...t){e.slice().forEach(n=>{n(...t)})}const t0=e=>e(),zs=Symbol(),xn=Symbol();function rr(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];Le(o)&&Le(r)&&e.hasOwnProperty(n)&&!u.isRef(r)&&!u.isReactive(r)?e[n]=rr(o,r):e[n]=r}return e}const n0=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function r0(e){return!Le(e)||!Object.prototype.hasOwnProperty.call(e,n0)}const{assign:ue}=Object;function qs(e){return!!(u.isRef(e)&&e.effect)}function Gs(e,t,n,r){const{state:o,actions:s,getters:i}=t,a=n.state.value[e];let l;function c(){!a&&(process.env.NODE_ENV==="production"||!r)&&(n.state.value[e]=o?o():{});const p=process.env.NODE_ENV!=="production"&&r?u.toRefs(u.ref(o?o():{}).value):u.toRefs(n.state.value[e]);return ue(p,s,Object.keys(i||{}).reduce((h,y)=>(process.env.NODE_ENV!=="production"&&y in p&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${y}" in store "${e}".`),h[y]=u.markRaw(u.computed(()=>{Dt(n);const g=n._s.get(e);return i[y].call(g,g)})),h),{}))}return l=or(e,c,t,n,r,!0),l}function or(e,t,n={},r,o,s){let i;const a=ue({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!r._e.active)throw new Error("Pinia destroyed");const l={deep:!0};process.env.NODE_ENV!=="production"&&(l.onTrigger=A=>{c?g=A:c==!1&&!O._hotUpdating&&(Array.isArray(g)?g.push(A):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let c,p,h=[],y=[],g;const f=r.state.value[e];!s&&!f&&(process.env.NODE_ENV==="production"||!o)&&(r.state.value[e]={});const m=u.ref({});let v;function E(A){let S;c=p=!1,process.env.NODE_ENV!=="production"&&(g=[]),typeof A=="function"?(A(r.state.value[e]),S={type:ge.patchFunction,storeId:e,events:g}):(rr(r.state.value[e],A),S={type:ge.patchObject,payload:A,storeId:e,events:g});const x=v=Symbol();u.nextTick().then(()=>{v===x&&(c=!0)}),p=!0,ze(h,S,r.state.value[e])}const w=s?function(){const{state:S}=n,x=S?S():{};this.$patch(F=>{ue(F,x)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:Ra;function k(){i.stop(),h=[],y=[],r._s.delete(e)}const V=(A,S="")=>{if(zs in A)return A[xn]=S,A;const x=function(){Dt(r);const F=Array.from(arguments),Z=[],he=[];function N(M){Z.push(M)}function I(M){he.push(M)}ze(y,{args:F,name:x[xn],store:O,after:N,onError:I});let U;try{U=A.apply(this&&this.$id===e?this:O,F)}catch(M){throw ze(he,M),M}return U instanceof Promise?U.then(M=>(ze(Z,M),M)).catch(M=>(ze(he,M),Promise.reject(M))):(ze(Z,U),U)};return x[zs]=!0,x[xn]=S,x},K=u.markRaw({actions:{},getters:{},state:[],hotState:m}),D={_p:r,$id:e,$onAction:Ks.bind(null,y),$patch:E,$reset:w,$subscribe(A,S={}){const x=Ks(h,A,S.detached,()=>F()),F=i.run(()=>u.watch(()=>r.state.value[e],Z=>{(S.flush==="sync"?p:c)&&A({storeId:e,type:ge.direct,events:g},Z)},ue({},l,S)));return x},$dispose:k},O=u.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Ae?ue({_hmrPayload:K,_customProperties:u.markRaw(new Set)},D):D);r._s.set(e,O);const P=(r._a&&r._a.runWithContext||t0)(()=>r._e.run(()=>(i=u.effectScope()).run(()=>t({action:V}))));for(const A in P){const S=P[A];if(u.isRef(S)&&!qs(S)||u.isReactive(S))process.env.NODE_ENV!=="production"&&o?m.value[A]=u.toRef(P,A):s||(f&&r0(S)&&(u.isRef(S)?S.value=f[A]:rr(S,f[A])),r.state.value[e][A]=S),process.env.NODE_ENV!=="production"&&K.state.push(A);else if(typeof S=="function"){const x=process.env.NODE_ENV!=="production"&&o?S:V(S,A);P[A]=x,process.env.NODE_ENV!=="production"&&(K.actions[A]=S),a.actions[A]=S}else process.env.NODE_ENV!=="production"&&qs(S)&&(K.getters[A]=s?n.getters[A]:S,Ae&&(P._getters||(P._getters=u.markRaw([]))).push(A))}if(ue(O,P),ue(u.toRaw(O),P),Object.defineProperty(O,"$state",{get:()=>process.env.NODE_ENV!=="production"&&o?m.value:r.state.value[e],set:A=>{if(process.env.NODE_ENV!=="production"&&o)throw new Error("cannot set hotState");E(S=>{ue(S,A)})}}),process.env.NODE_ENV!=="production"&&(O._hotUpdate=u.markRaw(A=>{O._hotUpdating=!0,A._hmrPayload.state.forEach(S=>{if(S in O.$state){const x=A.$state[S],F=O.$state[S];typeof x=="object"&&Le(x)&&Le(F)?xa(x,F):A.$state[S]=F}O[S]=u.toRef(A.$state,S)}),Object.keys(O.$state).forEach(S=>{S in A.$state||delete O[S]}),c=!1,p=!1,r.state.value[e]=u.toRef(A._hmrPayload,"hotState"),p=!0,u.nextTick().then(()=>{c=!0});for(const S in A._hmrPayload.actions){const x=A[S];O[S]=V(x,S)}for(const S in A._hmrPayload.getters){const x=A._hmrPayload.getters[S],F=s?u.computed(()=>(Dt(r),x.call(O,O))):x;O[S]=F}Object.keys(O._hmrPayload.getters).forEach(S=>{S in A._hmrPayload.getters||delete O[S]}),Object.keys(O._hmrPayload.actions).forEach(S=>{S in A._hmrPayload.actions||delete O[S]}),O._hmrPayload=A._hmrPayload,O._getters=A._getters,O._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Ae){const A={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(S=>{Object.defineProperty(O,S,ue({value:O[S]},A))})}return r._p.forEach(A=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Ae){const S=i.run(()=>A({store:O,app:r._a,pinia:r,options:a}));Object.keys(S||{}).forEach(x=>O._customProperties.add(x)),ue(O,S)}else ue(O,i.run(()=>A({store:O,app:r._a,pinia:r,options:a})))}),process.env.NODE_ENV!=="production"&&O.$state&&typeof O.$state=="object"&&typeof O.$state.constructor=="function"&&!O.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
13
+ Only state can be modified.`);i[0]="$state",Xe=!1,r.set(s,i,r.state.value),Xe=!0}})})}function Gp(e,t){Qt.includes(on(t.$id))||Qt.push(on(t.$id)),ia({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Qt,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const r=typeof n.now=="function"?n.now.bind(n):Date.now;t.$onAction(({after:i,onError:a,name:l,args:c})=>{const p=ka++;n.addTimelineEvent({layerId:Ne,event:{time:r(),title:"🛫 "+l,subtitle:"start",data:{store:fe(t.$id),action:fe(l),args:c},groupId:p}}),i(d=>{Ce=void 0,n.addTimelineEvent({layerId:Ne,event:{time:r(),title:"🛬 "+l,subtitle:"end",data:{store:fe(t.$id),action:fe(l),args:c,result:d},groupId:p}})}),a(d=>{Ce=void 0,n.addTimelineEvent({layerId:Ne,event:{time:r(),logType:"error",title:"💥 "+l,subtitle:"end",data:{store:fe(t.$id),action:fe(l),args:c,error:d},groupId:p}})})},!0),t._customProperties.forEach(i=>{u.watch(()=>u.unref(t[i]),(a,l)=>{n.notifyComponentUpdate(),n.sendInspectorState(J),Xe&&n.addTimelineEvent({layerId:Ne,event:{time:r(),title:"Change",subtitle:i,data:{newValue:a,oldValue:l},groupId:Ce}})},{deep:!0})}),t.$subscribe(({events:i,type:a},l)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(J),!Xe)return;const c={time:r(),title:Kp(a),data:zp({store:fe(t.$id)},Hp(i)),groupId:Ce};a===ge.patchFunction?c.subtitle="⤵️":a===ge.patchObject?c.subtitle="🧩":i&&!Array.isArray(i)&&(c.subtitle=i.type),i&&(c.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:i}}),n.addTimelineEvent({layerId:Ne,event:c})},{detached:!0,flush:"sync"});const o=t._hotUpdate;t._hotUpdate=u.markRaw(i=>{o(i),n.addTimelineEvent({layerId:Ne,event:{time:r(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:fe(t.$id),info:fe("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(J),n.sendInspectorState(J)});const{$dispose:s}=t;t.$dispose=()=>{s(),n.notifyComponentUpdate(),n.sendInspectorTree(J),n.sendInspectorState(J),n.getSettings().logStoreChanges&&Y(`Disposed "${t.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(J),n.sendInspectorState(J),n.getSettings().logStoreChanges&&Y(`"${t.$id}" store installed 🆕`)})}let ka=0,Ce;function Hs(e,t,n){const r=t.reduce((o,s)=>(o[s]=u.toRaw(e)[s],o),{});for(const o in r)e[o]=function(){const s=ka,i=n?new Proxy(e,{get(...l){return Ce=s,Reflect.get(...l)},set(...l){return Ce=s,Reflect.set(...l)}}):e;Ce=s;const a=r[o].apply(i,arguments);return Ce=void 0,a}}function Wp({app:e,store:t,options:n}){if(!t.$id.startsWith("__hot:")){if(t._isOptionsAPI=!!n.state,!t._p._testing){Hs(t,Object.keys(n.actions),t._isOptionsAPI);const r=t._hotUpdate;u.toRaw(t)._hotUpdate=function(o){r.apply(this,arguments),Hs(t,Object.keys(o._hmrPayload.actions),!!t._isOptionsAPI)}}Gp(e,t)}}function Yp(){const e=u.effectScope(!0),t=e.run(()=>u.ref({}));let n=[],r=[];const o=u.markRaw({install(s){Dt(o),o._a=s,s.provide(Sa,o),s.config.globalProperties.$pinia=o,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Ae&&qp(s,o),r.forEach(i=>n.push(i)),r=[]},use(s){return this._a?n.push(s):r.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Ae&&typeof Proxy<"u"&&o.use(Wp),o}function xa(e,t){for(const n in t){const r=t[n];if(!(n in e))continue;const o=e[n];Le(o)&&Le(r)&&!u.isRef(r)&&!u.isReactive(r)?e[n]=xa(o,r):e[n]=r}return e}const Ra=()=>{};function Ks(e,t,n,r=Ra){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&u.getCurrentScope()&&u.onScopeDispose(o),o}function ze(e,...t){e.slice().forEach(n=>{n(...t)})}const Zp=e=>e(),zs=Symbol(),xn=Symbol();function rr(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];Le(o)&&Le(r)&&e.hasOwnProperty(n)&&!u.isRef(r)&&!u.isReactive(r)?e[n]=rr(o,r):e[n]=r}return e}const Xp=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Jp(e){return!Le(e)||!Object.prototype.hasOwnProperty.call(e,Xp)}const{assign:ue}=Object;function qs(e){return!!(u.isRef(e)&&e.effect)}function Gs(e,t,n,r){const{state:o,actions:s,getters:i}=t,a=n.state.value[e];let l;function c(){!a&&(process.env.NODE_ENV==="production"||!r)&&(n.state.value[e]=o?o():{});const p=process.env.NODE_ENV!=="production"&&r?u.toRefs(u.ref(o?o():{}).value):u.toRefs(n.state.value[e]);return ue(p,s,Object.keys(i||{}).reduce((d,y)=>(process.env.NODE_ENV!=="production"&&y in p&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${y}" in store "${e}".`),d[y]=u.markRaw(u.computed(()=>{Dt(n);const g=n._s.get(e);return i[y].call(g,g)})),d),{}))}return l=or(e,c,t,n,r,!0),l}function or(e,t,n={},r,o,s){let i;const a=ue({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!r._e.active)throw new Error("Pinia destroyed");const l={deep:!0};process.env.NODE_ENV!=="production"&&(l.onTrigger=A=>{c?g=A:c==!1&&!O._hotUpdating&&(Array.isArray(g)?g.push(A):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let c,p,d=[],y=[],g;const f=r.state.value[e];!s&&!f&&(process.env.NODE_ENV==="production"||!o)&&(r.state.value[e]={});const m=u.ref({});let v;function E(A){let S;c=p=!1,process.env.NODE_ENV!=="production"&&(g=[]),typeof A=="function"?(A(r.state.value[e]),S={type:ge.patchFunction,storeId:e,events:g}):(rr(r.state.value[e],A),S={type:ge.patchObject,payload:A,storeId:e,events:g});const x=v=Symbol();u.nextTick().then(()=>{v===x&&(c=!0)}),p=!0,ze(d,S,r.state.value[e])}const w=s?function(){const{state:S}=n,x=S?S():{};this.$patch(F=>{ue(F,x)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:Ra;function k(){i.stop(),d=[],y=[],r._s.delete(e)}const V=(A,S="")=>{if(zs in A)return A[xn]=S,A;const x=function(){Dt(r);const F=Array.from(arguments),Z=[],he=[];function N(M){Z.push(M)}function I(M){he.push(M)}ze(y,{args:F,name:x[xn],store:O,after:N,onError:I});let U;try{U=A.apply(this&&this.$id===e?this:O,F)}catch(M){throw ze(he,M),M}return U instanceof Promise?U.then(M=>(ze(Z,M),M)).catch(M=>(ze(he,M),Promise.reject(M))):(ze(Z,U),U)};return x[zs]=!0,x[xn]=S,x},K=u.markRaw({actions:{},getters:{},state:[],hotState:m}),D={_p:r,$id:e,$onAction:Ks.bind(null,y),$patch:E,$reset:w,$subscribe(A,S={}){const x=Ks(d,A,S.detached,()=>F()),F=i.run(()=>u.watch(()=>r.state.value[e],Z=>{(S.flush==="sync"?p:c)&&A({storeId:e,type:ge.direct,events:g},Z)},ue({},l,S)));return x},$dispose:k},O=u.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Ae?ue({_hmrPayload:K,_customProperties:u.markRaw(new Set)},D):D);r._s.set(e,O);const P=(r._a&&r._a.runWithContext||Zp)(()=>r._e.run(()=>(i=u.effectScope()).run(()=>t({action:V}))));for(const A in P){const S=P[A];if(u.isRef(S)&&!qs(S)||u.isReactive(S))process.env.NODE_ENV!=="production"&&o?m.value[A]=u.toRef(P,A):s||(f&&Jp(S)&&(u.isRef(S)?S.value=f[A]:rr(S,f[A])),r.state.value[e][A]=S),process.env.NODE_ENV!=="production"&&K.state.push(A);else if(typeof S=="function"){const x=process.env.NODE_ENV!=="production"&&o?S:V(S,A);P[A]=x,process.env.NODE_ENV!=="production"&&(K.actions[A]=S),a.actions[A]=S}else process.env.NODE_ENV!=="production"&&qs(S)&&(K.getters[A]=s?n.getters[A]:S,Ae&&(P._getters||(P._getters=u.markRaw([]))).push(A))}if(ue(O,P),ue(u.toRaw(O),P),Object.defineProperty(O,"$state",{get:()=>process.env.NODE_ENV!=="production"&&o?m.value:r.state.value[e],set:A=>{if(process.env.NODE_ENV!=="production"&&o)throw new Error("cannot set hotState");E(S=>{ue(S,A)})}}),process.env.NODE_ENV!=="production"&&(O._hotUpdate=u.markRaw(A=>{O._hotUpdating=!0,A._hmrPayload.state.forEach(S=>{if(S in O.$state){const x=A.$state[S],F=O.$state[S];typeof x=="object"&&Le(x)&&Le(F)?xa(x,F):A.$state[S]=F}O[S]=u.toRef(A.$state,S)}),Object.keys(O.$state).forEach(S=>{S in A.$state||delete O[S]}),c=!1,p=!1,r.state.value[e]=u.toRef(A._hmrPayload,"hotState"),p=!0,u.nextTick().then(()=>{c=!0});for(const S in A._hmrPayload.actions){const x=A[S];O[S]=V(x,S)}for(const S in A._hmrPayload.getters){const x=A._hmrPayload.getters[S],F=s?u.computed(()=>(Dt(r),x.call(O,O))):x;O[S]=F}Object.keys(O._hmrPayload.getters).forEach(S=>{S in A._hmrPayload.getters||delete O[S]}),Object.keys(O._hmrPayload.actions).forEach(S=>{S in A._hmrPayload.actions||delete O[S]}),O._hmrPayload=A._hmrPayload,O._getters=A._getters,O._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Ae){const A={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(S=>{Object.defineProperty(O,S,ue({value:O[S]},A))})}return r._p.forEach(A=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Ae){const S=i.run(()=>A({store:O,app:r._a,pinia:r,options:a}));Object.keys(S||{}).forEach(x=>O._customProperties.add(x)),ue(O,S)}else ue(O,i.run(()=>A({store:O,app:r._a,pinia:r,options:a})))}),process.env.NODE_ENV!=="production"&&O.$state&&typeof O.$state=="object"&&typeof O.$state.constructor=="function"&&!O.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
14
14
  state: () => new MyClass()
15
15
  Found in store "${O.$id}".`),f&&s&&n.hydrate&&n.hydrate(O.$state,f),c=!0,p=!0,O}/*! #__NO_SIDE_EFFECTS__ */function Rt(e,t,n){let r;const o=typeof t=="function";r=o?n:t;function s(i,a){const l=u.hasInjectionContext();if(i=(process.env.NODE_ENV==="test"&&yt&&yt._testing?null:i)||(l?u.inject(Sa,null):null),i&&Dt(i),process.env.NODE_ENV!=="production"&&!yt)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
16
16
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
17
- This will fail in production.`);i=yt,i._s.has(e)||(o?or(e,t,r,i):Gs(e,r,i),process.env.NODE_ENV!=="production"&&(s._pinia=i));const c=i._s.get(e);if(process.env.NODE_ENV!=="production"&&a){const p="__hot:"+e,h=o?or(p,t,r,i,!0):Gs(p,ue({},r),i,!0);a._hotUpdate(h),delete i.state.value[p],i._s.delete(p)}if(process.env.NODE_ENV!=="production"&&Ae){const p=u.getCurrentInstance();if(p&&p.proxy&&!a){const h=p.proxy,y="_pStores"in h?h._pStores:h._pStores={};y[e]=c}}return c}return s.$id=e,s}function je(e){const t=u.toRaw(e),n={};for(const r in t){const o=t[r];o.effect?n[r]=u.computed({get:()=>e[r],set(s){e[r]=s}}):(u.isRef(o)||u.isReactive(o))&&(n[r]=u.toRef(e,r))}return n}const o0=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,s0=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,i0=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function a0(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){u0(e);return}return t}function u0(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function l0(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!i0.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(o0.test(e)||s0.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,a0)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}function c0(e,t){if(e==null)return;let n=e;for(let r=0;r<t.length;r++){if(n==null||n[t[r]]==null)return;n=n[t[r]]}return n}function Br(e,t,n){if(n.length===0)return t;const r=n[0];return n.length>1&&(t=Br(typeof e!="object"||e===null||!Object.prototype.hasOwnProperty.call(e,r)?Number.isInteger(Number(n[1]))?[]:{}:e[r],t,Array.prototype.slice.call(n,1))),Number.isInteger(Number(r))&&Array.isArray(e)?e.slice()[r]:Object.assign({},e,{[r]:t})}function Na(e,t){if(e==null||t.length===0)return e;if(t.length===1){if(e==null)return e;if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.slice.call(e,0).splice(t[0],1);const n={};for(const r in e)n[r]=e[r];return delete n[t[0]],n}if(e[t[0]]==null){if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.concat.call([],e);const n={};for(const r in e)n[r]=e[r];return n}return Br(e,Na(e[t[0]],Array.prototype.slice.call(t,1)),[t[0]])}function Ba(e,t){return t.map(n=>n.split(".")).map(n=>[n,c0(e,n)]).filter(n=>n[1]!==void 0).reduce((n,r)=>Br(n,r[1],r[0]),{})}function Pa(e,t){return t.map(n=>n.split(".")).reduce((n,r)=>Na(n,r),e)}function Ws(e,{storage:t,serializer:n,key:r,debug:o,pick:s,omit:i,beforeHydrate:a,afterHydrate:l},c,p=!0){try{p&&(a==null||a(c));const h=t.getItem(r);if(h){const y=n.deserialize(h),g=s?Ba(y,s):y,f=i?Pa(g,i):g;e.$patch(f)}p&&(l==null||l(c))}catch(h){o&&console.error("[pinia-plugin-persistedstate]",h)}}function Ys(e,{storage:t,serializer:n,key:r,debug:o,pick:s,omit:i}){try{const a=s?Ba(e,s):e,l=i?Pa(a,i):a,c=n.serialize(l);t.setItem(r,c)}catch(a){o&&console.error("[pinia-plugin-persistedstate]",a)}}function f0(e,t,n){const{pinia:r,store:o,options:{persist:s=n}}=e;if(!s)return;if(!(o.$id in r.state.value)){const l=r._s.get(o.$id.replace("__hot:",""));l&&Promise.resolve().then(()=>l.$persist());return}const a=(Array.isArray(s)?s:s===!0?[{}]:[s]).map(t);o.$hydrate=({runHooks:l=!0}={})=>{a.forEach(c=>{Ws(o,c,e,l)})},o.$persist=()=>{a.forEach(l=>{Ys(o.$state,l)})},a.forEach(l=>{Ws(o,l,e),o.$subscribe((c,p)=>Ys(p,l),{detached:!0})})}function d0(e={}){return function(t){f0(t,n=>({key:(e.key?e.key:r=>r)(n.key??t.store.$id),debug:n.debug??e.debug??!1,serializer:n.serializer??e.serializer??{serialize:r=>JSON.stringify(r),deserialize:r=>l0(r)},storage:n.storage??e.storage??window.localStorage,beforeHydrate:n.beforeHydrate,afterHydrate:n.afterHydrate,pick:n.pick,omit:n.omit}),e.auto??!1)}}var h0=d0();const ve=e0();ve.use(h0);const Pr=Rt("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,o,s,i,a,l,c,p,h,y,g,f;const t=await d.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((o=t==null?void 0:t.data)==null?void 0:o.result)&&((i=(s=t==null?void 0:t.data)==null?void 0:s.result)==null?void 0:i.length)>0&&(this.cryptoInfo.publicKey=(p=(c=(l=(a=t.data)==null?void 0:a.result[0])==null?void 0:l.value)==null?void 0:c.cryptoInfo)==null?void 0:p.publicKey,this.cryptoInfo.privateKey=(f=(g=(y=(h=t.data)==null?void 0:h.result[0])==null?void 0:y.value)==null?void 0:g.cryptoInfo)==null?void 0:f.privateKey),{publicKey:this.cryptoInfo.publicKey,privateKey:this.cryptoInfo.privateKey}},async setLogRecordAsync(e,t,n="operate"){}},persist:[{key:"loginState",storage:localStorage,pick:["superAdminInfo"]}]}),p0=[],Vr=Rt("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(o=>o.key);e?t!=null&&t.includes(e==null?void 0:e.key)?this.cacheStructures=(r=this.cacheStructures)==null?void 0:r.map(o=>o.key===(e==null?void 0:e.key)?{...o,data:e==null?void 0:e.data}:o):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=Ie(this.activeMenuPath),this.activeMenuPath=e)},setActiveMenuOpenPaths(e){this.activeMenuOpenPaths=e},setRawMenus(e){this.rawMenus=e,this.permissionSideMenus=p0}}}),Mr=Rt("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}}}),Fr=Rt("authorityState",{state:()=>({routerPageStructures:[]}),actions:{setRouterPageStructure(e){this.routerPageStructures=e}}}),g0=Vr(ve),{activeMenuPath:en}=je(g0),Va=Pr(ve),{structureData:v0,loginUserInfo:Rn}=je(Va),y0=Fr(ve),{routerPageStructures:m0}=je(y0),sn=Mr(ve),E0=u.ref([{label:"角色名称",value:"",name:"roleName"}]),b0=u.ref([{label:"查询"},{label:"重置"}]),Zs=u.reactive({isFilter:!1,filterForm:{}}),_0=u.ref(!1),S0=e=>{Zs.isFilter=!0,Zs.filterForm=e},Ma=u.ref([]),sr=u.ref([]),Fa=u.ref(""),T0=u.computed(()=>{var t,n,r,o,s;const e=(t=m0.value)==null?void 0:t.find(i=>{var a;return((a=i==null?void 0:i.comp)==null?void 0:a.toUpperCase())==="TABLE"});if(e){Fa.value=e.name,sr.value=(o=(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:o.filter(a=>(a==null?void 0:a.label)!=="操作");const i=(s=e==null?void 0:e.compData)==null?void 0:s.map(a=>{var l;if((a==null?void 0:a.key)==="rowButton"){let c=[];return et.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 p,h;return{...c,isTableColHidden:(p=c==null?void 0:c.prop)==null?void 0:p.includes("授权"),isFormColHidden:(h=c==null?void 0:c.prop)==null?void 0:h.includes("授权")}})}:a});return Ga(i),i}return[]}),w0=e=>{sn.setRefreshCurStructure(!1),$r(e.singleContent,e.buttonName,mn.value,e==null?void 0:e.selectItems)},Je=u.ref({}),Lr=u.ref(),It=async(e,t,n)=>{var r,o;try{const s=await e(t);return((r=s==null?void 0:s.data)==null?void 0:r.code)===200?(n!=="查询"&&await Va.setLogRecordAsync({type:n,data:t},en.value),d.ElMessage.success("保存成功"),sn.setRefreshCurStructure(!0),s.data.result||((o=s==null?void 0:s.data)==null?void 0:o.code)===200):null}catch(s){d.ElMessage.error(s)}finally{sn.setCacheUpdatingData(null)}},La=(e,t)=>{const n=[];for(const r of e)t!=null&&t.has(r.path)&&n.push(r),r.children&&n.push(...La(r.children,t));return n},A0=(e,t)=>{var n,r;try{const o=new Map(e==null?void 0:e.map(a=>[a.path,a.checkedButtons])),s=La(t,o),i=(n=s==null?void 0:s.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=Lr.value)==null||r.setCheckedKeys(i)}catch{throw new Error("数据显示处理失败")}},C0=(e,t)=>{const n=new Map(t==null?void 0:t.map(o=>[o.path,o.checkedButtons]));function r(o){var i,a;const s=(i=o==null?void 0:o.path)!=null&&i.startsWith("/")?(a=o==null?void 0:o.path)==null?void 0:a.substring(1):o==null?void 0:o.path;n.has(s)&&(o.checkedButtons=n.get(s)),o.children&&o.children.length>0&&o.children.forEach(r)}e.forEach(r)},Ua=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=Ua(n.children)),n}),$a=e=>{for(const t in e)if(Array.isArray(e[t]))return t;return""},ja=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=ja(e[n+1]),n+=2):n+=1,t.push(r)}return t},Ha=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=ja(e==null?void 0:e[n+1]),n+=2):n+=1,t.push(r)}return t},Ur=(e,t="",n=new Map)=>e==null?void 0:e.map(r=>{const o=t?`${t}/${r.title}`:r.title;if(n.has(o))return n.get(o);const s={...r,path:o};return r.children&&r.children.length>0&&(s.children=Ur(r.children,o,n)),n.set(o,s),s}),Ka=(e,t)=>e.reduce((n,r)=>{const o=r[t];return n[o]||(n[o]=[]),n[o].push(r),n},{}),za=e=>{const t=[];function n(r,o){!r.children||r.children.length===0?t.push({...r,parentPath:o||""}):r.children.forEach(s=>n(s,r.path||o))}return e.forEach(r=>n(r,"")),t},qa=e=>Object.entries(e).map(([n,r])=>({path:n,checkedButtons:r==null?void 0:r.map(o=>o==null?void 0:o.path)})),O0=e=>Object.prototype.toString.call(e)==="[object Object]"&&e!==null,D0=(e,t)=>{const n={},r=Array.isArray(e)?e==null?void 0:e.filter(o=>{var s;return!(O0(o)&&((s=Object.keys(o))!=null&&s.includes("id")))}):null;return r&&(r==null||r.forEach((o,s)=>{var i;n[(i=t[s])==null?void 0:i.prop]=o})),n},Qe=u.ref(""),Ga=e=>{var s;const t=e==null?void 0:e.find(i=>(i==null?void 0:i.key)==="tableContents"),n=e==null?void 0:e.find(i=>(i==null?void 0:i.key)==="header");if(!t||!n)return"";const r=(s=t==null?void 0:t.contents)==null?void 0:s[0],o=D0(r,n==null?void 0:n.contents);Qe.value=$a(o)},I0=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},k0=e=>{const t=[];for(const n in e)e[n].forEach(o=>{var l,c;const s=(l=o.path)!=null&&l.startsWith("/")?(c=o.path)==null?void 0:c.substring(1):o.path,i=s==null?void 0:s.split("/");let a=t;i.forEach(p=>{let h=a.find(y=>y.title===p);h||(h={title:p,path:o.path,children:[]},a.push(h)),a=h.children})});return t},x0=e=>{const t={};return e.forEach(n=>{const{path:r,checkedButtons:o}=n,s=r,i=o.map(a=>({title:a.split("/").pop()||"",path:a,parentPath:s}));t[s]=i}),t},Wa=e=>{let t=[];for(const n of e){let r=[n.title];if(n.children&&Array.isArray(n.children)){let o=Wa(n.children);o.length>0&&r.push(o)}t.push(r)}return t},R0=e=>{const t=[];for(const n of e){if(!Array.isArray(n)||n.length!==2)continue;const[r,o]=n,s=Ya(o),i=t.indexOf(r);i===-1?t.push(r,s):t[i+1]=Za(t[i+1],s)}return t},Ya=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,o]=n;t.push(r,Ya(o))}}return t},Za=(e,t)=>{const n=[...e];let r=0;for(;r<t.length;){const o=t[r];if(typeof o=="string"){const s=n.indexOf(o);s===-1?n.push(o,t[r+1]):n[s+1]=Za(n[s+1],t[r+1]),r+=2}else n.push(o),r+=1}return n},N0=async(e,t)=>{var n;if(Je.value=Ie(t),sn.setRefreshCurStructure(!1),(n=tt.value)==null||n.splice(0),e==="授权"){if(!Qe.value){d.ElMessage.error("请正确定义角色权限");return}const r=I0(Je.value[Qe.value]);let o;if(r)o=Je.value[Qe.value];else{const s=Ha(Je.value[Qe.value]),i=Ur(s),a=za(i),l=Ka(a,"parentPath");o=qa(l)}if(!o||!Array.isArray(o)){d.ElMessage.error("权限数据处理出错了,请联系管理员");return}Ue.title=`【${t.角色名称}】授权`,Ue.show=!0,await u.nextTick(),C0(it.value,o),A0(o,it.value)}},B0=()=>{Ue.show=!1},ir=u.ref(),P0=async e=>{const t=await It(d.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:e}},"查询"),n=t==null?void 0:t.map(r=>{var o;return{id:r.id,tableData:(o=r==null?void 0:r.value)==null?void 0:o.tableData}});return n==null?void 0:n.map(r=>{var o;if(Array.isArray(r==null?void 0:r.tableData)){let s={id:r.id};return(o=r==null?void 0:r.tableData)==null||o.forEach((i,a)=>{s[`a${a}`]=i}),s}else return{...r.tableData,id:r.id}})},kt=(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,...o}=n;return o}return n},V0=async(e,t)=>{var s,i;let n=[];Array.isArray(e)?n=Ie(e):n=[Ie(e)];const r=(s=n==null?void 0:n.filter(a=>typeof(a==null?void 0:a.id)=="string"))==null?void 0:s.map(a=>{var l,c,p,h,y;return{key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:(l=en.value)!=null&&l.startsWith("/")?(c=en.value)==null?void 0:c.substring(1):en.value,tableId:t,createUserId:(p=Rn.value)==null?void 0:p.id,createUserOrg:((h=Rn.value)==null?void 0:h.dept)||((y=Rn.value)==null?void 0:y.部门名称)},value:{tableData:kt(a,sr.value)}}}),o=(i=n==null?void 0:n.filter(a=>typeof(a==null?void 0:a.id)=="number"))==null?void 0:i.map(a=>({id:a==null?void 0:a.id,value:{tableData:kt(a,sr.value)}}));r.length>0&&await It(d.batchAddInsofDataApi,{dataList:r},"新增"),o.length>0&&(await It(d.batchUpdateInsofDataApi,{dataList:o},"编辑"),Ue.show=!1)},$r=async(e,t,n,r)=>{if(!(t!=null&&t.includes("删除")))await V0(e,n);else{let o=[];t!=null&&t.includes("批量")?o=r&&(r==null?void 0:r.length)>0?r==null?void 0:r.map(s=>s==null?void 0:s.id):[]:o=[e==null?void 0:e.id],await It(d.batchDeleteInsofDataApi,{ids:o},"编辑")}},Xa=e=>{let t=[];return e==null||e.forEach(n=>{var r;if(n.checkedButtons&&((r=n.checkedButtons)==null?void 0:r.length)>0){const o={path:n.path,checkedButtons:n.checkedButtons};t=t.concat(o)}n.children&&(t=t.concat(Xa(n.children)))}),t},M0=()=>{const e=Xa(it.value),t=x0(e),n=k0(t),r=Wa(n),o=R0(r);ir.value={...Je.value,[Qe.value]:o},u.nextTick(()=>{$r(ir.value,"编辑",mn.value)})},Ue=u.reactive({show:!1,title:"角色授权",width:"30%",draggable:!0}),F0=({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":""},mn=u.ref(0),Ja=async e=>{var r,o,s,i,a;let t;const n=await d.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&&(o=n==null?void 0:n.data)!=null&&o.result&&((s=n==null?void 0:n.data)==null?void 0:s.result.length)>0&&(t=(a=(i=n==null?void 0:n.data.result)==null?void 0:i[0])==null?void 0:a.id,mn.value=t),t},it=u.ref([]),L0=u.ref([{path:"资源管理",buttons:["查询","新增","编辑","删除"]},{path:"资源管理/人员",buttons:["查询","新增","编辑","删除"]}]),U0=(e,t)=>{var n;e.checkedButtons=t?(n=e.renderButtons)==null?void 0:n.map(r=>r.path):[]},tt=u.ref([]),$0=(e,t)=>{var n,r,o;t.checkedButtons=e,((n=t.checkedButtons)==null?void 0:n.length)===((r=t.renderButtons)==null?void 0:r.length)?tt.value.push(t.path):(e==null?void 0:e.length)===0&&(tt.value=(o=tt.value)==null?void 0:o.filter(s=>s!==t.path))};u.watch(()=>tt.value.length,()=>{var e;(e=Lr.value)==null||e.setCheckedKeys([...tt.value])});u.watch(()=>Ue.show,e=>{e||(it.value=Ua(it.value))});const Qa=u.computed(()=>{var n;const e=(n=Ie(v0.value))==null?void 0:n.filter(r=>{var o,s;return((s=(o=r==null?void 0:r.key)==null?void 0:o.pageKey)==null?void 0:s.toUpperCase())!=="MENU"});return[...e==null?void 0:e.map(r=>{var i,a,l,c,p,h,y,g;const o=/button/i;let s=(l=(a=(i=r==null?void 0:r.value)==null?void 0:i.pageData)==null?void 0:a.compData)==null?void 0:l.filter(f=>o.test(f==null?void 0:f.key));return s=Array.from(new Set(s==null?void 0:s.flatMap(f=>f.contents.map(m=>m.label)))),{path:(p=(c=r==null?void 0:r.key)==null?void 0:c.pageKey)!=null&&p.startsWith("/")?(y=(h=r==null?void 0:r.key)==null?void 0:h.pageKey)==null?void 0:y.substring(1):(g=r==null?void 0:r.key)==null?void 0:g.pageKey,buttons:s}}),...eu.value]}),eu=u.ref([]),j0=(e,t,n)=>{const o=[e==null?void 0:e.find(s=>(s==null?void 0:s.title)===t)].flatMap(s=>s==null?void 0:s.children);return o==null?void 0:o.map(s=>{var i,a;return{path:(i=s==null?void 0:s.path)!=null&&i.startsWith("/")?(a=s==null?void 0:s.path)==null?void 0:a.substring(1):s==null?void 0:s.path,buttons:n}})},Xs=(e,t)=>{var n;if(e.carryData){if(e.path==="系统管理/个人中心"){const o=["基本信息","上传头像","签名","修改密码"];return o==null?void 0:o.map(s=>{var i,a;return{title:s,path:(i=e==null?void 0:e.path)!=null&&i.startsWith("/")?((a=e==null?void 0:e.path)==null?void 0:a.substring(1))+"/"+s:e.path+"/"+s}})}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(o=>{var s,i;return{title:o,path:(s=e==null?void 0:e.path)!=null&&s.startsWith("/")?((i=e==null?void 0:e.path)==null?void 0:i.substring(1))+"/"+o:e.path+"/"+o}})}return[]},tu=(e,t)=>{if(Array.isArray(e))return e==null?void 0:e.map(n=>{var s,i;const r=(s=n==null?void 0:n.path)!=null&&s.startsWith("/")?(i=n==null?void 0:n.path)==null?void 0:i.substring(1):n==null?void 0:n.path,o=t==null?void 0:t.find(a=>(a==null?void 0:a.path)===r);return n.children&&n.children.length>0?{...n,renderButtons:Xs(n,o),checkedButtons:[],children:tu(n.children,Qa.value)}:{...n,renderButtons:Xs(n,o),checkedButtons:[]}})},H0={comp:"Group",name:"/系统管理/角色管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:Ma.value,name:""}]}]},K0=Object.freeze(Object.defineProperty({__proto__:null,addButtonsToTree:tu,addPathToTree:Ur,authorizeDialog:Ue,buttonValue:b0,changedRow:ir,clickRow:Je,clickRowButton:N0,clickSubmitAuthority:M0,closeAuthorizeDialog:B0,compName:Fa,convertArrayToTree:Ha,convertIndexToLabel:kt,customNodeClass:F0,getActivePageStructureId:Ja,getAuthorityKey:Ga,getFirstArrayProperty:$a,getLeafNodesRecursive:za,getPageDataAsync:P0,groupByField:Ka,handleAddSysMenusButtons:j0,handleItemDataChange:w0,handleNodeBtnChange:$0,handleNodeCheckChange:U0,handleQueryChange:S0,handleRowAuthorityRender:qa,handleSubmitAsync:It,isPageDataExist:_0,menuData:it,menusButtons:L0,pageData:Ma,pageDataFiltered:T0,queryFormData:E0,structureButtons:Qa,structureId:mn,submitTableAsyncByVerify:$r,tempRolePageData:H0,tempSysMenus:eu,treeRef:Lr},Symbol.toStringTag,{value:"Module"}));var z0="0123456789abcdefghijklmnopqrstuvwxyz";function Ee(e){return z0.charAt(e)}function q0(e,t){return e&t}function Ut(e,t){return e|t}function Js(e,t){return e^t}function Qs(e,t){return e&~t}function G0(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 W0(e){for(var t=0;e!=0;)e&=e-1,++t;return t}var Ye="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nu="=";function an(e){var t,n,r="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),r+=Ye.charAt(n>>6)+Ye.charAt(n&63);for(t+1==e.length?(n=parseInt(e.substring(t,t+1),16),r+=Ye.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),r+=Ye.charAt(n>>2)+Ye.charAt((n&3)<<4));(r.length&3)>0;)r+=nu;return r}function ei(e){var t="",n,r=0,o=0;for(n=0;n<e.length&&e.charAt(n)!=nu;++n){var s=Ye.indexOf(e.charAt(n));s<0||(r==0?(t+=Ee(s>>2),o=s&3,r=1):r==1?(t+=Ee(o<<2|s>>4),o=s&15,r=2):r==2?(t+=Ee(o),t+=Ee(s>>2),o=s&3,r=3):(t+=Ee(o<<2|s>>4),t+=Ee(s&15),r=0))}return r==1&&(t+=Ee(o<<2)),t}var qe,Y0={decode:function(e){var t;if(qe===void 0){var n="0123456789ABCDEF",r=` \f
17
+ This will fail in production.`);i=yt,i._s.has(e)||(o?or(e,t,r,i):Gs(e,r,i),process.env.NODE_ENV!=="production"&&(s._pinia=i));const c=i._s.get(e);if(process.env.NODE_ENV!=="production"&&a){const p="__hot:"+e,d=o?or(p,t,r,i,!0):Gs(p,ue({},r),i,!0);a._hotUpdate(d),delete i.state.value[p],i._s.delete(p)}if(process.env.NODE_ENV!=="production"&&Ae){const p=u.getCurrentInstance();if(p&&p.proxy&&!a){const d=p.proxy,y="_pStores"in d?d._pStores:d._pStores={};y[e]=c}}return c}return s.$id=e,s}function je(e){const t=u.toRaw(e),n={};for(const r in t){const o=t[r];o.effect?n[r]=u.computed({get:()=>e[r],set(s){e[r]=s}}):(u.isRef(o)||u.isReactive(o))&&(n[r]=u.toRef(e,r))}return n}const Qp=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,e0=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,t0=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function n0(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){r0(e);return}return t}function r0(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function o0(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!t0.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Qp.test(e)||e0.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,n0)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}function s0(e,t){if(e==null)return;let n=e;for(let r=0;r<t.length;r++){if(n==null||n[t[r]]==null)return;n=n[t[r]]}return n}function Br(e,t,n){if(n.length===0)return t;const r=n[0];return n.length>1&&(t=Br(typeof e!="object"||e===null||!Object.prototype.hasOwnProperty.call(e,r)?Number.isInteger(Number(n[1]))?[]:{}:e[r],t,Array.prototype.slice.call(n,1))),Number.isInteger(Number(r))&&Array.isArray(e)?e.slice()[r]:Object.assign({},e,{[r]:t})}function Na(e,t){if(e==null||t.length===0)return e;if(t.length===1){if(e==null)return e;if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.slice.call(e,0).splice(t[0],1);const n={};for(const r in e)n[r]=e[r];return delete n[t[0]],n}if(e[t[0]]==null){if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.concat.call([],e);const n={};for(const r in e)n[r]=e[r];return n}return Br(e,Na(e[t[0]],Array.prototype.slice.call(t,1)),[t[0]])}function Ba(e,t){return t.map(n=>n.split(".")).map(n=>[n,s0(e,n)]).filter(n=>n[1]!==void 0).reduce((n,r)=>Br(n,r[1],r[0]),{})}function Pa(e,t){return t.map(n=>n.split(".")).reduce((n,r)=>Na(n,r),e)}function Ws(e,{storage:t,serializer:n,key:r,debug:o,pick:s,omit:i,beforeHydrate:a,afterHydrate:l},c,p=!0){try{p&&(a==null||a(c));const d=t.getItem(r);if(d){const y=n.deserialize(d),g=s?Ba(y,s):y,f=i?Pa(g,i):g;e.$patch(f)}p&&(l==null||l(c))}catch(d){o&&console.error("[pinia-plugin-persistedstate]",d)}}function Ys(e,{storage:t,serializer:n,key:r,debug:o,pick:s,omit:i}){try{const a=s?Ba(e,s):e,l=i?Pa(a,i):a,c=n.serialize(l);t.setItem(r,c)}catch(a){o&&console.error("[pinia-plugin-persistedstate]",a)}}function i0(e,t,n){const{pinia:r,store:o,options:{persist:s=n}}=e;if(!s)return;if(!(o.$id in r.state.value)){const l=r._s.get(o.$id.replace("__hot:",""));l&&Promise.resolve().then(()=>l.$persist());return}const a=(Array.isArray(s)?s:s===!0?[{}]:[s]).map(t);o.$hydrate=({runHooks:l=!0}={})=>{a.forEach(c=>{Ws(o,c,e,l)})},o.$persist=()=>{a.forEach(l=>{Ys(o.$state,l)})},a.forEach(l=>{Ws(o,l,e),o.$subscribe((c,p)=>Ys(p,l),{detached:!0})})}function a0(e={}){return function(t){i0(t,n=>({key:(e.key?e.key:r=>r)(n.key??t.store.$id),debug:n.debug??e.debug??!1,serializer:n.serializer??e.serializer??{serialize:r=>JSON.stringify(r),deserialize:r=>o0(r)},storage:n.storage??e.storage??window.localStorage,beforeHydrate:n.beforeHydrate,afterHydrate:n.afterHydrate,pick:n.pick,omit:n.omit}),e.auto??!1)}}var u0=a0();const ve=Yp();ve.use(u0);const l0=[],Pr=Rt("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(o=>o.key);e?t!=null&&t.includes(e==null?void 0:e.key)?this.cacheStructures=(r=this.cacheStructures)==null?void 0:r.map(o=>o.key===(e==null?void 0:e.key)?{...o,data:e==null?void 0:e.data}:o):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=Ie(this.activeMenuPath),this.activeMenuPath=e)},setActiveMenuOpenPaths(e){this.activeMenuOpenPaths=e},setRawMenus(e){this.rawMenus=e,this.permissionSideMenus=l0}}}),Vr=Rt("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,o,s,i,a,l,c,p,d,y,g,f;const t=await h.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((o=t==null?void 0:t.data)==null?void 0:o.result)&&((i=(s=t==null?void 0:t.data)==null?void 0:s.result)==null?void 0:i.length)>0&&(this.cryptoInfo.publicKey=(p=(c=(l=(a=t.data)==null?void 0:a.result[0])==null?void 0:l.value)==null?void 0:c.cryptoInfo)==null?void 0:p.publicKey,this.cryptoInfo.privateKey=(f=(g=(y=(d=t.data)==null?void 0:d.result[0])==null?void 0:y.value)==null?void 0:g.cryptoInfo)==null?void 0:f.privateKey),{publicKey:this.cryptoInfo.publicKey,privateKey:this.cryptoInfo.privateKey}},async setLogRecordAsync(e,t,n="operate"){}},persist:[{key:"loginState",storage:localStorage,pick:["superAdminInfo"]}]}),Mr=Rt("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}}}),Fr=Rt("authorityState",{state:()=>({routerPageStructures:[]}),actions:{setRouterPageStructure(e){this.routerPageStructures=e}}}),c0=Pr(ve),{activeMenuPath:en}=je(c0),Va=Vr(ve),{structureData:f0,loginUserInfo:Rn}=je(Va),d0=Fr(ve),{routerPageStructures:h0}=je(d0),sn=Mr(ve),p0=u.ref([{label:"角色名称",value:"",name:"roleName"}]),g0=u.ref([{label:"查询"},{label:"重置"}]),Zs=u.reactive({isFilter:!1,filterForm:{}}),v0=u.ref(!1),y0=e=>{Zs.isFilter=!0,Zs.filterForm=e},Ma=u.ref([]),sr=u.ref([]),Fa=u.ref(""),m0=u.computed(()=>{var t,n,r,o,s;const e=(t=h0.value)==null?void 0:t.find(i=>{var a;return((a=i==null?void 0:i.comp)==null?void 0:a.toUpperCase())==="TABLE"});if(e){Fa.value=e.name,sr.value=(o=(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:o.filter(a=>(a==null?void 0:a.label)!=="操作");const i=(s=e==null?void 0:e.compData)==null?void 0:s.map(a=>{var l;if((a==null?void 0:a.key)==="rowButton"){let c=[];return et.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 p,d;return{...c,isTableColHidden:(p=c==null?void 0:c.prop)==null?void 0:p.includes("授权"),isFormColHidden:(d=c==null?void 0:c.prop)==null?void 0:d.includes("授权")}})}:a});return Ga(i),i}return[]}),E0=e=>{sn.setRefreshCurStructure(!1),$r(e.singleContent,e.buttonName,mn.value,e==null?void 0:e.selectItems)},Je=u.ref({}),Lr=u.ref(),It=async(e,t,n)=>{var r,o;try{const s=await e(t);return((r=s==null?void 0:s.data)==null?void 0:r.code)===200?(n!=="查询"&&await Va.setLogRecordAsync({type:n,data:t},en.value),h.ElMessage.success("保存成功"),sn.setRefreshCurStructure(!0),s.data.result||((o=s==null?void 0:s.data)==null?void 0:o.code)===200):null}catch(s){h.ElMessage.error(s)}finally{sn.setCacheUpdatingData(null)}},La=(e,t)=>{const n=[];for(const r of e)t!=null&&t.has(r.path)&&n.push(r),r.children&&n.push(...La(r.children,t));return n},b0=(e,t)=>{var n,r;try{const o=new Map(e==null?void 0:e.map(a=>[a.path,a.checkedButtons])),s=La(t,o),i=(n=s==null?void 0:s.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=Lr.value)==null||r.setCheckedKeys(i)}catch{throw new Error("数据显示处理失败")}},_0=(e,t)=>{const n=new Map(t==null?void 0:t.map(o=>[o.path,o.checkedButtons]));function r(o){var i,a;const s=(i=o==null?void 0:o.path)!=null&&i.startsWith("/")?(a=o==null?void 0:o.path)==null?void 0:a.substring(1):o==null?void 0:o.path;n.has(s)&&(o.checkedButtons=n.get(s)),o.children&&o.children.length>0&&o.children.forEach(r)}e.forEach(r)},Ua=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=Ua(n.children)),n}),$a=e=>{for(const t in e)if(Array.isArray(e[t]))return t;return""},ja=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=ja(e[n+1]),n+=2):n+=1,t.push(r)}return t},Ha=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=ja(e==null?void 0:e[n+1]),n+=2):n+=1,t.push(r)}return t},Ur=(e,t="",n=new Map)=>e==null?void 0:e.map(r=>{const o=t?`${t}/${r.title}`:r.title;if(n.has(o))return n.get(o);const s={...r,path:o};return r.children&&r.children.length>0&&(s.children=Ur(r.children,o,n)),n.set(o,s),s}),Ka=(e,t)=>e.reduce((n,r)=>{const o=r[t];return n[o]||(n[o]=[]),n[o].push(r),n},{}),za=e=>{const t=[];function n(r,o){!r.children||r.children.length===0?t.push({...r,parentPath:o||""}):r.children.forEach(s=>n(s,r.path||o))}return e.forEach(r=>n(r,"")),t},qa=e=>Object.entries(e).map(([n,r])=>({path:n,checkedButtons:r==null?void 0:r.map(o=>o==null?void 0:o.path)})),S0=e=>Object.prototype.toString.call(e)==="[object Object]"&&e!==null,T0=(e,t)=>{const n={},r=Array.isArray(e)?e==null?void 0:e.filter(o=>{var s;return!(S0(o)&&((s=Object.keys(o))!=null&&s.includes("id")))}):null;return r&&(r==null||r.forEach((o,s)=>{var i;n[(i=t[s])==null?void 0:i.prop]=o})),n},Qe=u.ref(""),Ga=e=>{var s;const t=e==null?void 0:e.find(i=>(i==null?void 0:i.key)==="tableContents"),n=e==null?void 0:e.find(i=>(i==null?void 0:i.key)==="header");if(!t||!n)return"";const r=(s=t==null?void 0:t.contents)==null?void 0:s[0],o=T0(r,n==null?void 0:n.contents);Qe.value=$a(o)},w0=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},A0=e=>{const t=[];for(const n in e)e[n].forEach(o=>{var l,c;const s=(l=o.path)!=null&&l.startsWith("/")?(c=o.path)==null?void 0:c.substring(1):o.path,i=s==null?void 0:s.split("/");let a=t;i.forEach(p=>{let d=a.find(y=>y.title===p);d||(d={title:p,path:o.path,children:[]},a.push(d)),a=d.children})});return t},C0=e=>{const t={};return e.forEach(n=>{const{path:r,checkedButtons:o}=n,s=r,i=o.map(a=>({title:a.split("/").pop()||"",path:a,parentPath:s}));t[s]=i}),t},Wa=e=>{let t=[];for(const n of e){let r=[n.title];if(n.children&&Array.isArray(n.children)){let o=Wa(n.children);o.length>0&&r.push(o)}t.push(r)}return t},O0=e=>{const t=[];for(const n of e){if(!Array.isArray(n)||n.length!==2)continue;const[r,o]=n,s=Ya(o),i=t.indexOf(r);i===-1?t.push(r,s):t[i+1]=Za(t[i+1],s)}return t},Ya=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,o]=n;t.push(r,Ya(o))}}return t},Za=(e,t)=>{const n=[...e];let r=0;for(;r<t.length;){const o=t[r];if(typeof o=="string"){const s=n.indexOf(o);s===-1?n.push(o,t[r+1]):n[s+1]=Za(n[s+1],t[r+1]),r+=2}else n.push(o),r+=1}return n},D0=async(e,t)=>{var n;if(Je.value=Ie(t),sn.setRefreshCurStructure(!1),(n=tt.value)==null||n.splice(0),e==="授权"){if(!Qe.value){h.ElMessage.error("请正确定义角色权限");return}const r=w0(Je.value[Qe.value]);let o;if(r)o=Je.value[Qe.value];else{const s=Ha(Je.value[Qe.value]),i=Ur(s),a=za(i),l=Ka(a,"parentPath");o=qa(l)}if(!o||!Array.isArray(o)){h.ElMessage.error("权限数据处理出错了,请联系管理员");return}Ue.title=`【${t.角色名称}】授权`,Ue.show=!0,await u.nextTick(),_0(it.value,o),b0(o,it.value)}},I0=()=>{Ue.show=!1},ir=u.ref(),k0=async e=>{const t=await It(h.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:e}},"查询"),n=t==null?void 0:t.map(r=>{var o;return{id:r.id,tableData:(o=r==null?void 0:r.value)==null?void 0:o.tableData}});return n==null?void 0:n.map(r=>{var o;if(Array.isArray(r==null?void 0:r.tableData)){let s={id:r.id};return(o=r==null?void 0:r.tableData)==null||o.forEach((i,a)=>{s[`a${a}`]=i}),s}else return{...r.tableData,id:r.id}})},kt=(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,...o}=n;return o}return n},x0=async(e,t)=>{var s,i;let n=[];Array.isArray(e)?n=Ie(e):n=[Ie(e)];const r=(s=n==null?void 0:n.filter(a=>typeof(a==null?void 0:a.id)=="string"))==null?void 0:s.map(a=>{var l,c,p,d,y;return{key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:(l=en.value)!=null&&l.startsWith("/")?(c=en.value)==null?void 0:c.substring(1):en.value,tableId:t,createUserId:(p=Rn.value)==null?void 0:p.id,createUserOrg:((d=Rn.value)==null?void 0:d.dept)||((y=Rn.value)==null?void 0:y.部门名称)},value:{tableData:kt(a,sr.value)}}}),o=(i=n==null?void 0:n.filter(a=>typeof(a==null?void 0:a.id)=="number"))==null?void 0:i.map(a=>({id:a==null?void 0:a.id,value:{tableData:kt(a,sr.value)}}));r.length>0&&await It(h.batchAddInsofDataApi,{dataList:r},"新增"),o.length>0&&(await It(h.batchUpdateInsofDataApi,{dataList:o},"编辑"),Ue.show=!1)},$r=async(e,t,n,r)=>{if(!(t!=null&&t.includes("删除")))await x0(e,n);else{let o=[];t!=null&&t.includes("批量")?o=r&&(r==null?void 0:r.length)>0?r==null?void 0:r.map(s=>s==null?void 0:s.id):[]:o=[e==null?void 0:e.id],await It(h.batchDeleteInsofDataApi,{ids:o},"编辑")}},Xa=e=>{let t=[];return e==null||e.forEach(n=>{var r;if(n.checkedButtons&&((r=n.checkedButtons)==null?void 0:r.length)>0){const o={path:n.path,checkedButtons:n.checkedButtons};t=t.concat(o)}n.children&&(t=t.concat(Xa(n.children)))}),t},R0=()=>{const e=Xa(it.value),t=C0(e),n=A0(t),r=Wa(n),o=O0(r);ir.value={...Je.value,[Qe.value]:o},u.nextTick(()=>{$r(ir.value,"编辑",mn.value)})},Ue=u.reactive({show:!1,title:"角色授权",width:"30%",draggable:!0}),N0=({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":""},mn=u.ref(0),Ja=async e=>{var r,o,s,i,a;let t;const n=await h.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&&(o=n==null?void 0:n.data)!=null&&o.result&&((s=n==null?void 0:n.data)==null?void 0:s.result.length)>0&&(t=(a=(i=n==null?void 0:n.data.result)==null?void 0:i[0])==null?void 0:a.id,mn.value=t),t},it=u.ref([]),B0=u.ref([{path:"资源管理",buttons:["查询","新增","编辑","删除"]},{path:"资源管理/人员",buttons:["查询","新增","编辑","删除"]}]),P0=(e,t)=>{var n;e.checkedButtons=t?(n=e.renderButtons)==null?void 0:n.map(r=>r.path):[]},tt=u.ref([]),V0=(e,t)=>{var n,r,o;t.checkedButtons=e,((n=t.checkedButtons)==null?void 0:n.length)===((r=t.renderButtons)==null?void 0:r.length)?tt.value.push(t.path):(e==null?void 0:e.length)===0&&(tt.value=(o=tt.value)==null?void 0:o.filter(s=>s!==t.path))};u.watch(()=>tt.value.length,()=>{var e;(e=Lr.value)==null||e.setCheckedKeys([...tt.value])});u.watch(()=>Ue.show,e=>{e||(it.value=Ua(it.value))});const Qa=u.computed(()=>{var n;const e=(n=Ie(f0.value))==null?void 0:n.filter(r=>{var o,s;return((s=(o=r==null?void 0:r.key)==null?void 0:o.pageKey)==null?void 0:s.toUpperCase())!=="MENU"});return[...e==null?void 0:e.map(r=>{var i,a,l,c,p,d,y,g;const o=/button/i;let s=(l=(a=(i=r==null?void 0:r.value)==null?void 0:i.pageData)==null?void 0:a.compData)==null?void 0:l.filter(f=>o.test(f==null?void 0:f.key));return s=Array.from(new Set(s==null?void 0:s.flatMap(f=>f.contents.map(m=>m.label)))),{path:(p=(c=r==null?void 0:r.key)==null?void 0:c.pageKey)!=null&&p.startsWith("/")?(y=(d=r==null?void 0:r.key)==null?void 0:d.pageKey)==null?void 0:y.substring(1):(g=r==null?void 0:r.key)==null?void 0:g.pageKey,buttons:s}}),...eu.value]}),eu=u.ref([]),M0=(e,t,n)=>{const o=[e==null?void 0:e.find(s=>(s==null?void 0:s.title)===t)].flatMap(s=>s==null?void 0:s.children);return o==null?void 0:o.map(s=>{var i,a;return{path:(i=s==null?void 0:s.path)!=null&&i.startsWith("/")?(a=s==null?void 0:s.path)==null?void 0:a.substring(1):s==null?void 0:s.path,buttons:n}})},Xs=(e,t)=>{var n;if(e.carryData){if(e.path==="系统管理/个人中心"){const o=["基本信息","上传头像","签名","修改密码"];return o==null?void 0:o.map(s=>{var i,a;return{title:s,path:(i=e==null?void 0:e.path)!=null&&i.startsWith("/")?((a=e==null?void 0:e.path)==null?void 0:a.substring(1))+"/"+s:e.path+"/"+s}})}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(o=>{var s,i;return{title:o,path:(s=e==null?void 0:e.path)!=null&&s.startsWith("/")?((i=e==null?void 0:e.path)==null?void 0:i.substring(1))+"/"+o:e.path+"/"+o}})}return[]},tu=(e,t)=>{if(Array.isArray(e))return e==null?void 0:e.map(n=>{var s,i;const r=(s=n==null?void 0:n.path)!=null&&s.startsWith("/")?(i=n==null?void 0:n.path)==null?void 0:i.substring(1):n==null?void 0:n.path,o=t==null?void 0:t.find(a=>(a==null?void 0:a.path)===r);return n.children&&n.children.length>0?{...n,renderButtons:Xs(n,o),checkedButtons:[],children:tu(n.children,Qa.value)}:{...n,renderButtons:Xs(n,o),checkedButtons:[]}})},F0={comp:"Group",name:"/系统管理/角色管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:Ma.value,name:""}]}]},L0=Object.freeze(Object.defineProperty({__proto__:null,addButtonsToTree:tu,addPathToTree:Ur,authorizeDialog:Ue,buttonValue:g0,changedRow:ir,clickRow:Je,clickRowButton:D0,clickSubmitAuthority:R0,closeAuthorizeDialog:I0,compName:Fa,convertArrayToTree:Ha,convertIndexToLabel:kt,customNodeClass:N0,getActivePageStructureId:Ja,getAuthorityKey:Ga,getFirstArrayProperty:$a,getLeafNodesRecursive:za,getPageDataAsync:k0,groupByField:Ka,handleAddSysMenusButtons:M0,handleItemDataChange:E0,handleNodeBtnChange:V0,handleNodeCheckChange:P0,handleQueryChange:y0,handleRowAuthorityRender:qa,handleSubmitAsync:It,isPageDataExist:v0,menuData:it,menusButtons:B0,pageData:Ma,pageDataFiltered:m0,queryFormData:p0,structureButtons:Qa,structureId:mn,submitTableAsyncByVerify:$r,tempRolePageData:F0,tempSysMenus:eu,treeRef:Lr},Symbol.toStringTag,{value:"Module"}));var U0="0123456789abcdefghijklmnopqrstuvwxyz";function Ee(e){return U0.charAt(e)}function $0(e,t){return e&t}function Ut(e,t){return e|t}function Js(e,t){return e^t}function Qs(e,t){return e&~t}function j0(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 H0(e){for(var t=0;e!=0;)e&=e-1,++t;return t}var Ye="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nu="=";function an(e){var t,n,r="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),r+=Ye.charAt(n>>6)+Ye.charAt(n&63);for(t+1==e.length?(n=parseInt(e.substring(t,t+1),16),r+=Ye.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),r+=Ye.charAt(n>>2)+Ye.charAt((n&3)<<4));(r.length&3)>0;)r+=nu;return r}function ei(e){var t="",n,r=0,o=0;for(n=0;n<e.length&&e.charAt(n)!=nu;++n){var s=Ye.indexOf(e.charAt(n));s<0||(r==0?(t+=Ee(s>>2),o=s&3,r=1):r==1?(t+=Ee(o<<2|s>>4),o=s&15,r=2):r==2?(t+=Ee(o),t+=Ee(s>>2),o=s&3,r=3):(t+=Ee(o<<2|s>>4),t+=Ee(s&15),r=0))}return r==1&&(t+=Ee(o<<2)),t}var qe,K0={decode:function(e){var t;if(qe===void 0){var n="0123456789ABCDEF",r=` \f
18
18
  \r  \u2028\u2029`;for(qe={},t=0;t<16;++t)qe[n.charAt(t)]=t;for(n=n.toLowerCase(),t=10;t<16;++t)qe[n.charAt(t)]=t;for(t=0;t<r.length;++t)qe[r.charAt(t)]=-1}var o=[],s=0,i=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if(a=="=")break;if(a=qe[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);s|=a,++i>=2?(o[o.length]=s,s=0,i=0):s<<=4}}if(i)throw new Error("Hex encoding incomplete: 4 bits missing");return o}},Re,ar={decode:function(e){var t;if(Re===void 0){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=`= \f
19
- \r  \u2028\u2029`;for(Re=Object.create(null),t=0;t<64;++t)Re[n.charAt(t)]=t;for(Re["-"]=62,Re._=63,t=0;t<r.length;++t)Re[r.charAt(t)]=-1}var o=[],s=0,i=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if(a=="=")break;if(a=Re[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);s|=a,++i>=4?(o[o.length]=s>>16,o[o.length]=s>>8&255,o[o.length]=s&255,s=0,i=0):s<<=6}}switch(i){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:o[o.length]=s>>10;break;case 3:o[o.length]=s>>16,o[o.length]=s>>8&255;break}return o},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=ar.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 ar.decode(e)}},Ge=1e13,mt=function(){function e(t){this.buf=[+t||0]}return e.prototype.mulAdd=function(t,n){var r=this.buf,o=r.length,s,i;for(s=0;s<o;++s)i=r[s]*t+n,i<Ge?n=0:(n=0|i/Ge,i-=n*Ge),r[s]=i;n>0&&(r[s]=n)},e.prototype.sub=function(t){var n=this.buf,r=n.length,o,s;for(o=0;o<r;++o)s=n[o]-t,s<0?(s+=Ge,t=1):t=0,n[o]=s;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(),o=n.length-2;o>=0;--o)r+=(Ge+n[o]).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*Ge+t[r];return n},e.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},e}(),ru="…",Z0=/^(\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)?)?$/,X0=/^(\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 nt(e,t){return e.length>t&&(e=e.substring(0,t)+ru),e}var Nn=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 o="",s=t;s<n;++s)if(o+=this.hexByte(this.get(s)),r!==!0)switch(s&15){case 7:o+=" ";break;case 15:o+=`
20
- `;break;default:o+=" "}return o},e.prototype.isASCII=function(t,n){for(var r=t;r<n;++r){var o=this.get(r);if(o<32||o>176)return!1}return!0},e.prototype.parseStringISO=function(t,n){for(var r="",o=t;o<n;++o)r+=String.fromCharCode(this.get(o));return r},e.prototype.parseStringUTF=function(t,n){for(var r="",o=t;o<n;){var s=this.get(o++);s<128?r+=String.fromCharCode(s):s>191&&s<224?r+=String.fromCharCode((s&31)<<6|this.get(o++)&63):r+=String.fromCharCode((s&15)<<12|(this.get(o++)&63)<<6|this.get(o++)&63)}return r},e.prototype.parseStringBMP=function(t,n){for(var r="",o,s,i=t;i<n;)o=this.get(i++),s=this.get(i++),r+=String.fromCharCode(o<<8|s);return r},e.prototype.parseTime=function(t,n,r){var o=this.parseStringISO(t,n),s=(r?Z0:X0).exec(o);return s?(r&&(s[1]=+s[1],s[1]+=+s[1]<70?2e3:1900),o=s[1]+"-"+s[2]+"-"+s[3]+" "+s[4],s[5]&&(o+=":"+s[5],s[6]&&(o+=":"+s[6],s[7]&&(o+="."+s[7]))),s[8]&&(o+=" UTC",s[8]!="Z"&&(o+=s[8],s[9]&&(o+=":"+s[9]))),o):"Unrecognized time: "+o},e.prototype.parseInteger=function(t,n){for(var r=this.get(t),o=r>127,s=o?255:0,i,a="";r==s&&++t<n;)r=this.get(t);if(i=n-t,i===0)return o?-1:0;if(i>4){for(a=r,i<<=3;((+a^s)&128)==0;)a=+a<<1,--i;a="("+i+` bit)
19
+ \r  \u2028\u2029`;for(Re=Object.create(null),t=0;t<64;++t)Re[n.charAt(t)]=t;for(Re["-"]=62,Re._=63,t=0;t<r.length;++t)Re[r.charAt(t)]=-1}var o=[],s=0,i=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if(a=="=")break;if(a=Re[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);s|=a,++i>=4?(o[o.length]=s>>16,o[o.length]=s>>8&255,o[o.length]=s&255,s=0,i=0):s<<=6}}switch(i){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:o[o.length]=s>>10;break;case 3:o[o.length]=s>>16,o[o.length]=s>>8&255;break}return o},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=ar.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 ar.decode(e)}},Ge=1e13,mt=function(){function e(t){this.buf=[+t||0]}return e.prototype.mulAdd=function(t,n){var r=this.buf,o=r.length,s,i;for(s=0;s<o;++s)i=r[s]*t+n,i<Ge?n=0:(n=0|i/Ge,i-=n*Ge),r[s]=i;n>0&&(r[s]=n)},e.prototype.sub=function(t){var n=this.buf,r=n.length,o,s;for(o=0;o<r;++o)s=n[o]-t,s<0?(s+=Ge,t=1):t=0,n[o]=s;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(),o=n.length-2;o>=0;--o)r+=(Ge+n[o]).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*Ge+t[r];return n},e.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},e}(),ru="…",z0=/^(\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)?)?$/,q0=/^(\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 nt(e,t){return e.length>t&&(e=e.substring(0,t)+ru),e}var Nn=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 o="",s=t;s<n;++s)if(o+=this.hexByte(this.get(s)),r!==!0)switch(s&15){case 7:o+=" ";break;case 15:o+=`
20
+ `;break;default:o+=" "}return o},e.prototype.isASCII=function(t,n){for(var r=t;r<n;++r){var o=this.get(r);if(o<32||o>176)return!1}return!0},e.prototype.parseStringISO=function(t,n){for(var r="",o=t;o<n;++o)r+=String.fromCharCode(this.get(o));return r},e.prototype.parseStringUTF=function(t,n){for(var r="",o=t;o<n;){var s=this.get(o++);s<128?r+=String.fromCharCode(s):s>191&&s<224?r+=String.fromCharCode((s&31)<<6|this.get(o++)&63):r+=String.fromCharCode((s&15)<<12|(this.get(o++)&63)<<6|this.get(o++)&63)}return r},e.prototype.parseStringBMP=function(t,n){for(var r="",o,s,i=t;i<n;)o=this.get(i++),s=this.get(i++),r+=String.fromCharCode(o<<8|s);return r},e.prototype.parseTime=function(t,n,r){var o=this.parseStringISO(t,n),s=(r?z0:q0).exec(o);return s?(r&&(s[1]=+s[1],s[1]+=+s[1]<70?2e3:1900),o=s[1]+"-"+s[2]+"-"+s[3]+" "+s[4],s[5]&&(o+=":"+s[5],s[6]&&(o+=":"+s[6],s[7]&&(o+="."+s[7]))),s[8]&&(o+=" UTC",s[8]!="Z"&&(o+=s[8],s[9]&&(o+=":"+s[9]))),o):"Unrecognized time: "+o},e.prototype.parseInteger=function(t,n){for(var r=this.get(t),o=r>127,s=o?255:0,i,a="";r==s&&++t<n;)r=this.get(t);if(i=n-t,i===0)return o?-1:0;if(i>4){for(a=r,i<<=3;((+a^s)&128)==0;)a=+a<<1,--i;a="("+i+` bit)
21
21
  `}o&&(r=r-256);for(var l=new mt(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 o=this.get(t),s=(n-t-1<<3)-o,i="("+s+` bit)
22
- `,a="",l=t+1;l<n;++l){for(var c=this.get(l),p=l==n-1?o:0,h=7;h>=p;--h)a+=c>>h&1?"1":"0";if(a.length>r)return i+nt(a,r)}return i+a},e.prototype.parseOctetString=function(t,n,r){if(this.isASCII(t,n))return nt(this.parseStringISO(t,n),r);var o=n-t,s="("+o+` byte)
23
- `;r/=2,o>r&&(n=t+r);for(var i=t;i<n;++i)s+=this.hexByte(this.get(i));return o>r&&(s+=ru),s},e.prototype.parseOID=function(t,n,r){for(var o="",s=new mt,i=0,a=t;a<n;++a){var l=this.get(a);if(s.mulAdd(128,l&127),i+=7,!(l&128)){if(o==="")if(s=s.simplify(),s instanceof mt)s.sub(80),o="2."+s.toString();else{var c=s<80?s<40?0:1:2;o=c+"."+(s-c*40)}else o+="."+s.toString();if(o.length>r)return nt(o,r);s=new mt,i=0}}return i>0&&(o+=".incomplete"),o},e}(),J0=function(){function e(t,n,r,o,s){if(!(o instanceof ti))throw new Error("Invalid tag value.");this.stream=t,this.header=n,this.length=r,this.tag=o,this.sub=s}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 nt(this.stream.parseStringUTF(n,n+r),t);case 18:case 19:case 20:case 21:case 22:case 26:return nt(this.stream.parseStringISO(n,n+r),t);case 30:return nt(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+=`
24
- `,this.sub!==null){t+=" ";for(var r=0,o=this.sub.length;r<o;++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 o=0;o<r;++o)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 Nn?n=t:n=new Nn(t,0);var r=new Nn(n),o=new ti(n),s=e.decodeLength(n),i=n.pos,a=i-r.pos,l=null,c=function(){var h=[];if(s!==null){for(var y=i+s;n.pos<y;)h[h.length]=e.decode(n);if(n.pos!=y)throw new Error("Content size is not correct for container starting at offset "+i)}else try{for(;;){var g=e.decode(n);if(g.tag.isEOC())break;h[h.length]=g}s=i-n.pos}catch(f){throw new Error("Exception while decoding undefined length content: "+f)}return h};if(o.tagConstructed)l=c();else if(o.isUniversal()&&(o.tagNumber==3||o.tagNumber==4))try{if(o.tagNumber==3&&n.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");l=c();for(var p=0;p<l.length;++p)if(l[p].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{l=null}if(l===null){if(s===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+i);n.pos=i+Math.abs(s)}return new e(r,a,s,o,l)},e}(),ti=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 mt;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}(),De,Q0=0xdeadbeefcafe,ni=(Q0&16777215)==15715070,Q=[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],eg=(1<<26)/Q[Q.length-1],R=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,o,s=!1,i="",a=this.t,l=this.DB-a*this.DB%n;if(a-- >0)for(l<this.DB&&(o=this[a]>>l)>0&&(s=!0,i=Ee(o));a>=0;)l<n?(o=(this[a]&(1<<l)-1)<<n-l,o|=this[--a]>>(l+=this.DB-n)):(o=this[a]>>(l-=n)&r,l<=0&&(l+=this.DB,--a)),o>0&&(s=!0),s&&(i+=Ee(o));return s?i:"0"},e.prototype.negate=function(){var t=B();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)+$t(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var n=B();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 ri(n):r=new oi(n),this.exp(t,r)},e.prototype.clone=function(){var t=B();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,o,s=0;if(t-- >0)for(r<this.DB&&(o=this[t]>>r)!=(this.s&this.DM)>>r&&(n[s++]=o|this.s<<this.DB-r);t>=0;)r<8?(o=(this[t]&(1<<r)-1)<<8-r,o|=this[--t]>>(r+=this.DB-8)):(o=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),(o&128)!=0&&(o|=-256),s==0&&(this.s&128)!=(o&128)&&++s,(s>0||o!=this.s)&&(n[s++]=o);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=B();return this.bitwiseTo(t,q0,n),n},e.prototype.or=function(t){var n=B();return this.bitwiseTo(t,Ut,n),n},e.prototype.xor=function(t){var n=B();return this.bitwiseTo(t,Js,n),n},e.prototype.andNot=function(t){var n=B();return this.bitwiseTo(t,Qs,n),n},e.prototype.not=function(){for(var t=B(),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=B();return t<0?this.rShiftTo(-t,n):this.lShiftTo(t,n),n},e.prototype.shiftRight=function(t){var n=B();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+G0(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+=W0(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,Ut)},e.prototype.clearBit=function(t){return this.changeBit(t,Qs)},e.prototype.flipBit=function(t){return this.changeBit(t,Js)},e.prototype.add=function(t){var n=B();return this.addTo(t,n),n},e.prototype.subtract=function(t){var n=B();return this.subTo(t,n),n},e.prototype.multiply=function(t){var n=B();return this.multiplyTo(t,n),n},e.prototype.divide=function(t){var n=B();return this.divRemTo(t,n,null),n},e.prototype.remainder=function(t){var n=B();return this.divRemTo(t,null,n),n},e.prototype.divideAndRemainder=function(t){var n=B(),r=B();return this.divRemTo(t,n,r),[n,r]},e.prototype.modPow=function(t,n){var r=t.bitLength(),o,s=Te(1),i;if(r<=0)return s;r<18?o=1:r<48?o=3:r<144?o=4:r<768?o=5:o=6,r<8?i=new ri(n):n.isEven()?i=new ng(n):i=new oi(n);var a=[],l=3,c=o-1,p=(1<<o)-1;if(a[1]=i.convert(this),o>1){var h=B();for(i.sqrTo(a[1],h);l<=p;)a[l]=B(),i.mulTo(h,a[l-2],a[l]),l+=2}var y=t.t-1,g,f=!0,m=B(),v;for(r=$t(t[y])-1;y>=0;){for(r>=c?g=t[y]>>r-c&p:(g=(t[y]&(1<<r+1)-1)<<c-r,y>0&&(g|=t[y-1]>>this.DB+r-c)),l=o;(g&1)==0;)g>>=1,--l;if((r-=l)<0&&(r+=this.DB,--y),f)a[g].copyTo(s),f=!1;else{for(;l>1;)i.sqrTo(s,m),i.sqrTo(m,s),l-=2;l>0?i.sqrTo(s,m):(v=s,s=m,m=v),i.mulTo(m,a[g],s)}for(;y>=0&&(t[y]&1<<r)==0;)i.sqrTo(s,m),v=s,s=m,m=v,--r<0&&(r=this.DB-1,--y)}return i.revert(s)},e.prototype.modInverse=function(t){var n=t.isEven();if(this.isEven()&&n||t.signum()==0)return e.ZERO;for(var r=t.clone(),o=this.clone(),s=Te(1),i=Te(0),a=Te(0),l=Te(1);r.signum()!=0;){for(;r.isEven();)r.rShiftTo(1,r),n?((!s.isEven()||!i.isEven())&&(s.addTo(this,s),i.subTo(t,i)),s.rShiftTo(1,s)):i.isEven()||i.subTo(t,i),i.rShiftTo(1,i);for(;o.isEven();)o.rShiftTo(1,o),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(o)>=0?(r.subTo(o,r),n&&s.subTo(a,s),i.subTo(l,i)):(o.subTo(r,o),n&&a.subTo(s,a),l.subTo(i,l))}if(o.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 tg)},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 o=n;n=r,r=o}var s=n.getLowestSetBit(),i=r.getLowestSetBit();if(i<0)return n;for(s<i&&(i=s),i>0&&(n.rShiftTo(i,n),r.rShiftTo(i,r));n.signum()>0;)(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r));return i>0&&r.lShiftTo(i,r),r},e.prototype.isProbablePrime=function(t){var n,r=this.abs();if(r.t==1&&r[0]<=Q[Q.length-1]){for(n=0;n<Q.length;++n)if(r[0]==Q[n])return!0;return!1}if(r.isEven())return!1;for(n=1;n<Q.length;){for(var o=Q[n],s=n+1;s<Q.length&&o<eg;)o*=Q[s++];for(o=r.modInt(o);n<s;)if(o%Q[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 o=t.length,s=!1,i=0;--o>=0;){var a=r==8?+t[o]&255:ii(t,o);if(a<0){t.charAt(o)=="-"&&(s=!0);continue}s=!1,i==0?this[this.t++]=a:i+r>this.DB?(this[this.t-1]|=(a&(1<<this.DB-i)-1)<<i,this[this.t++]=a>>this.DB-i):this[this.t-1]|=a<<i,i+=r,i>=this.DB&&(i-=this.DB)}r==8&&(+t[0]&128)!=0&&(this.s=-1,i>0&&(this[this.t-1]|=(1<<this.DB-i)-1<<i)),this.clamp(),s&&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,o=this.DB-r,s=(1<<o)-1,i=Math.floor(t/this.DB),a=this.s<<r&this.DM,l=this.t-1;l>=0;--l)n[l+i+1]=this[l]>>o|a,a=(this[l]&s)<<r;for(var l=i-1;l>=0;--l)n[l]=0;n[i]=a,n.t=this.t+i+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 o=t%this.DB,s=this.DB-o,i=(1<<o)-1;n[0]=this[r]>>o;for(var a=r+1;a<this.t;++a)n[a-r-1]|=(this[a]&i)<<s,n[a-r]=this[a]>>o;o>0&&(n[this.t-r-1]|=(this.s&i)<<s),n.t=this.t-r,n.clamp()},e.prototype.subTo=function(t,n){for(var r=0,o=0,s=Math.min(t.t,this.t);r<s;)o+=this[r]-t[r],n[r++]=o&this.DM,o>>=this.DB;if(t.t<this.t){for(o-=t.s;r<this.t;)o+=this[r],n[r++]=o&this.DM,o>>=this.DB;o+=this.s}else{for(o+=this.s;r<t.t;)o-=t[r],n[r++]=o&this.DM,o>>=this.DB;o-=t.s}n.s=o<0?-1:0,o<-1?n[r++]=this.DV+o:o>0&&(n[r++]=o),n.t=r,n.clamp()},e.prototype.multiplyTo=function(t,n){var r=this.abs(),o=t.abs(),s=r.t;for(n.t=s+o.t;--s>=0;)n[s]=0;for(s=0;s<o.t;++s)n[s+r.t]=r.am(0,o[s],n,s,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 o=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,o,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 o=t.abs();if(!(o.t<=0)){var s=this.abs();if(s.t<o.t){n!=null&&n.fromInt(0),r!=null&&this.copyTo(r);return}r==null&&(r=B());var i=B(),a=this.s,l=t.s,c=this.DB-$t(o[o.t-1]);c>0?(o.lShiftTo(c,i),s.lShiftTo(c,r)):(o.copyTo(i),s.copyTo(r));var p=i.t,h=i[p-1];if(h!=0){var y=h*(1<<this.F1)+(p>1?i[p-2]>>this.F2:0),g=this.FV/y,f=(1<<this.F1)/y,m=1<<this.F2,v=r.t,E=v-p,w=n??B();for(i.dlShiftTo(E,w),r.compareTo(w)>=0&&(r[r.t++]=1,r.subTo(w,r)),e.ONE.dlShiftTo(p,w),w.subTo(i,i);i.t<p;)i[i.t++]=0;for(;--E>=0;){var k=r[--v]==h?this.DM:Math.floor(r[v]*g+(r[v-1]+m)*f);if((r[v]+=i.am(0,k,r,E,0,p))<k)for(i.dlShiftTo(E,w),r.subTo(w,r);r[v]<--k;)r.subTo(w,r)}n!=null&&(r.drShiftTo(p,n),a!=l&&e.ZERO.subTo(n,n)),r.t=p,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=B(),o=B(),s=n.convert(this),i=$t(t)-1;for(s.copyTo(r);--i>=0;)if(n.sqrTo(r,o),(t&1<<i)>0)n.mulTo(o,s,r);else{var a=r;r=o,o=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),o=Te(r),s=B(),i=B(),a="";for(this.divRemTo(o,s,i);s.signum()>0;)a=(r+i.intValue()).toString(t).substr(1)+a,s.divRemTo(o,s,i);return i.intValue().toString(t)+a},e.prototype.fromRadix=function(t,n){this.fromInt(0),n==null&&(n=10);for(var r=this.chunkSize(n),o=Math.pow(n,r),s=!1,i=0,a=0,l=0;l<t.length;++l){var c=ii(t,l);if(c<0){t.charAt(l)=="-"&&this.signum()==0&&(s=!0);continue}a=n*a+c,++i>=r&&(this.dMultiply(o),this.dAddOffset(a,0),i=0,a=0)}i>0&&(this.dMultiply(Math.pow(n,i)),this.dAddOffset(a,0)),s&&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),Ut,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 o=[],s=t&7;o.length=(t>>3)+1,n.nextBytes(o),s>0?o[0]&=(1<<s)-1:o[0]=0,this.fromString(o,256)}},e.prototype.bitwiseTo=function(t,n,r){var o,s,i=Math.min(t.t,this.t);for(o=0;o<i;++o)r[o]=n(this[o],t[o]);if(t.t<this.t){for(s=t.s&this.DM,o=i;o<this.t;++o)r[o]=n(this[o],s);r.t=this.t}else{for(s=this.s&this.DM,o=i;o<t.t;++o)r[o]=n(s,t[o]);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,o=0,s=Math.min(t.t,this.t);r<s;)o+=this[r]+t[r],n[r++]=o&this.DM,o>>=this.DB;if(t.t<this.t){for(o+=t.s;r<this.t;)o+=this[r],n[r++]=o&this.DM,o>>=this.DB;o+=this.s}else{for(o+=this.s;r<t.t;)o+=t[r],n[r++]=o&this.DM,o>>=this.DB;o+=t.s}n.s=o<0?-1:0,o>0?n[r++]=o:o<-1&&(n[r++]=this.DV+o),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 o=Math.min(this.t+t.t,n);for(r.s=0,r.t=o;o>0;)r[--o]=0;for(var s=r.t-this.t;o<s;++o)r[o+this.t]=this.am(0,t[o],r,o,0,this.t);for(var s=Math.min(t.t,n);o<s;++o)this.am(0,t[o],r,o,0,n-o);r.clamp()},e.prototype.multiplyUpperTo=function(t,n,r){--n;var o=r.t=this.t+t.t-n;for(r.s=0;--o>=0;)r[o]=0;for(o=Math.max(n-this.t,0);o<t.t;++o)r[this.t+o-n]=this.am(n-o,t[o],r,0,0,this.t+o-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 o=this.t-1;o>=0;--o)r=(n*r+this[o])%t;return r},e.prototype.millerRabin=function(t){var n=this.subtract(e.ONE),r=n.getLowestSetBit();if(r<=0)return!1;var o=n.shiftRight(r);t=t+1>>1,t>Q.length&&(t=Q.length);for(var s=B(),i=0;i<t;++i){s.fromInt(Q[Math.floor(Math.random()*Q.length)]);var a=s.modPow(o,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=B();return this.squareTo(t),t},e.prototype.gcda=function(t,n){var r=this.s<0?this.negate():this.clone(),o=t.s<0?t.negate():t.clone();if(r.compareTo(o)<0){var s=r;r=o,o=s}var i=r.getLowestSetBit(),a=o.getLowestSetBit();if(a<0){n(r);return}i<a&&(a=i),a>0&&(r.rShiftTo(a,r),o.rShiftTo(a,o));var l=function(){(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),(i=o.getLowestSetBit())>0&&o.rShiftTo(i,o),r.compareTo(o)>=0?(r.subTo(o,r),r.rShiftTo(1,r)):(o.subTo(r,o),o.rShiftTo(1,o)),r.signum()>0?setTimeout(l,0):(a>0&&o.lShiftTo(a,o),setTimeout(function(){n(o)},0))};setTimeout(l,10)},e.prototype.fromNumberAsync=function(t,n,r,o){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),Ut,this),this.isEven()&&this.dAddOffset(1,0);var s=this,i=function(){s.dAddOffset(2,0),s.bitLength()>t&&s.subTo(e.ONE.shiftLeft(t-1),s),s.isProbablePrime(n)?setTimeout(function(){o()},0):setTimeout(i,0)};setTimeout(i,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}(),tg=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}(),ri=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}(),oi=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=B();return t.abs().dlShiftTo(this.m.t,n),n.divRemTo(this.m,null,n),t.s<0&&n.compareTo(R.ZERO)>0&&this.m.subTo(n,n),n},e.prototype.revert=function(t){var n=B();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,o=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,o,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}(),ng=function(){function e(t){this.m=t,this.r2=B(),this.q3=B(),R.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=B();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 B(){return new R(null)}function q(e,t){return new R(e,t)}var si=typeof navigator<"u";si&&ni&&navigator.appName=="Microsoft Internet Explorer"?(R.prototype.am=function(t,n,r,o,s,i){for(var a=n&32767,l=n>>15;--i>=0;){var c=this[t]&32767,p=this[t++]>>15,h=l*c+p*a;c=a*c+((h&32767)<<15)+r[o]+(s&1073741823),s=(c>>>30)+(h>>>15)+l*p+(s>>>30),r[o++]=c&1073741823}return s},De=30):si&&ni&&navigator.appName!="Netscape"?(R.prototype.am=function(t,n,r,o,s,i){for(;--i>=0;){var a=n*this[t++]+r[o]+s;s=Math.floor(a/67108864),r[o++]=a&67108863}return s},De=26):(R.prototype.am=function(t,n,r,o,s,i){for(var a=n&16383,l=n>>14;--i>=0;){var c=this[t]&16383,p=this[t++]>>14,h=l*c+p*a;c=a*c+((h&16383)<<14)+r[o]+s,s=(c>>28)+(h>>14)+l*p,r[o++]=c&268435455}return s},De=28);R.prototype.DB=De;R.prototype.DM=(1<<De)-1;R.prototype.DV=1<<De;var jr=52;R.prototype.FV=Math.pow(2,jr);R.prototype.F1=jr-De;R.prototype.F2=2*De-jr;var En=[],dt,le;dt=48;for(le=0;le<=9;++le)En[dt++]=le;dt=97;for(le=10;le<36;++le)En[dt++]=le;dt=65;for(le=10;le<36;++le)En[dt++]=le;function ii(e,t){var n=En[e.charCodeAt(t)];return n??-1}function Te(e){var t=B();return t.fromInt(e),t}function $t(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}R.ZERO=Te(0);R.ONE=Te(1);var rg=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(t){var n,r,o;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,o=this.S[n],this.S[n]=this.S[r],this.S[r]=o;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 og(){return new rg}var ou=256,jt,Oe=null,de;if(Oe==null){Oe=[],de=0;var Ht=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var Bn=new Uint32Array(256);for(window.crypto.getRandomValues(Bn),Ht=0;Ht<Bn.length;++Ht)Oe[de++]=Bn[Ht]&255}var Kt=0,zt=function(e){if(Kt=Kt||0,Kt>=256||de>=ou){window.removeEventListener?window.removeEventListener("mousemove",zt,!1):window.detachEvent&&window.detachEvent("onmousemove",zt);return}try{var t=e.x+e.y;Oe[de++]=t&255,Kt+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",zt,!1):window.attachEvent&&window.attachEvent("onmousemove",zt))}function sg(){if(jt==null){for(jt=og();de<ou;){var e=Math.floor(65536*Math.random());Oe[de++]=e&255}for(jt.init(Oe),de=0;de<Oe.length;++de)Oe[de]=0;de=0}return jt.next()}var ur=function(){function e(){}return e.prototype.nextBytes=function(t){for(var n=0;n<t.length;++n)t[n]=sg()},e}();function ig(e,t){if(t<e.length+22)return console.error("Message too long for RSA"),null;for(var n=t-e.length-6,r="",o=0;o<n;o+=2)r+="ff";var s="0001"+r+"00"+e;return q(s,16)}function ag(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 o=e.charCodeAt(r--);o<128?n[--t]=o:o>127&&o<2048?(n[--t]=o&63|128,n[--t]=o>>6|192):(n[--t]=o&63|128,n[--t]=o>>6&63|128,n[--t]=o>>12|224)}n[--t]=0;for(var s=new ur,i=[];t>2;){for(i[0]=0;i[0]==0;)s.nextBytes(i);n[--t]=i[0]}return n[--t]=2,n[--t]=0,new R(n)}var ug=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=q(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=ag(t,n);if(r==null)return null;var o=this.doPublic(r);if(o==null)return null;for(var s=o.toString(16),i=s.length,a=0;a<n*2-i;a++)s="0"+s;return s},e.prototype.setPrivate=function(t,n,r){t!=null&&n!=null&&t.length>0&&n.length>0?(this.n=q(t,16),this.e=parseInt(n,16),this.d=q(r,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(t,n,r,o,s,i,a,l){t!=null&&n!=null&&t.length>0&&n.length>0?(this.n=q(t,16),this.e=parseInt(n,16),this.d=q(r,16),this.p=q(o,16),this.q=q(s,16),this.dmp1=q(i,16),this.dmq1=q(a,16),this.coeff=q(l,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(t,n){var r=new ur,o=t>>1;this.e=parseInt(n,16);for(var s=new R(n,16);;){for(;this.p=new R(t-o,1,r),!(this.p.subtract(R.ONE).gcd(s).compareTo(R.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new R(o,1,r),!(this.q.subtract(R.ONE).gcd(s).compareTo(R.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var i=this.p;this.p=this.q,this.q=i}var a=this.p.subtract(R.ONE),l=this.q.subtract(R.ONE),c=a.multiply(l);if(c.gcd(s).compareTo(R.ONE)==0){this.n=this.p.multiply(this.q),this.d=s.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=q(t,16),r=this.doPrivate(n);return r==null?null:lg(r,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(t,n,r){var o=new ur,s=t>>1;this.e=parseInt(n,16);var i=new R(n,16),a=this,l=function(){var c=function(){if(a.p.compareTo(a.q)<=0){var y=a.p;a.p=a.q,a.q=y}var g=a.p.subtract(R.ONE),f=a.q.subtract(R.ONE),m=g.multiply(f);m.gcd(i).compareTo(R.ONE)==0?(a.n=a.p.multiply(a.q),a.d=i.modInverse(m),a.dmp1=a.d.mod(g),a.dmq1=a.d.mod(f),a.coeff=a.q.modInverse(a.p),setTimeout(function(){r()},0)):setTimeout(l,0)},p=function(){a.q=B(),a.q.fromNumberAsync(s,1,o,function(){a.q.subtract(R.ONE).gcda(i,function(y){y.compareTo(R.ONE)==0&&a.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(p,0)})})},h=function(){a.p=B(),a.p.fromNumberAsync(t-s,1,o,function(){a.p.subtract(R.ONE).gcda(i,function(y){y.compareTo(R.ONE)==0&&a.p.isProbablePrime(10)?setTimeout(p,0):setTimeout(h,0)})})};setTimeout(h,0)};setTimeout(l,0)},e.prototype.sign=function(t,n,r){var o=cg(r),s=o+n(t).toString(),i=ig(s,this.n.bitLength()/4);if(i==null)return null;var a=this.doPrivate(i);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 o=q(n,16),s=this.doPublic(o);if(s==null)return null;var i=s.toString(16).replace(/^1f+00/,""),a=fg(i);return a==r(t).toString()},e}();function lg(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 o="";++r<n.length;){var s=n[r]&255;s<128?o+=String.fromCharCode(s):s>191&&s<224?(o+=String.fromCharCode((s&31)<<6|n[r+1]&63),++r):(o+=String.fromCharCode((s&15)<<12|(n[r+1]&63)<<6|n[r+2]&63),r+=2)}return o}var tn={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function cg(e){return tn[e]||""}function fg(e){for(var t in tn)if(tn.hasOwnProperty(t)){var n=tn[t],r=n.length;if(e.substr(0,r)==n)return e.substr(r)}return e}/*!
22
+ `,a="",l=t+1;l<n;++l){for(var c=this.get(l),p=l==n-1?o:0,d=7;d>=p;--d)a+=c>>d&1?"1":"0";if(a.length>r)return i+nt(a,r)}return i+a},e.prototype.parseOctetString=function(t,n,r){if(this.isASCII(t,n))return nt(this.parseStringISO(t,n),r);var o=n-t,s="("+o+` byte)
23
+ `;r/=2,o>r&&(n=t+r);for(var i=t;i<n;++i)s+=this.hexByte(this.get(i));return o>r&&(s+=ru),s},e.prototype.parseOID=function(t,n,r){for(var o="",s=new mt,i=0,a=t;a<n;++a){var l=this.get(a);if(s.mulAdd(128,l&127),i+=7,!(l&128)){if(o==="")if(s=s.simplify(),s instanceof mt)s.sub(80),o="2."+s.toString();else{var c=s<80?s<40?0:1:2;o=c+"."+(s-c*40)}else o+="."+s.toString();if(o.length>r)return nt(o,r);s=new mt,i=0}}return i>0&&(o+=".incomplete"),o},e}(),G0=function(){function e(t,n,r,o,s){if(!(o instanceof ti))throw new Error("Invalid tag value.");this.stream=t,this.header=n,this.length=r,this.tag=o,this.sub=s}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 nt(this.stream.parseStringUTF(n,n+r),t);case 18:case 19:case 20:case 21:case 22:case 26:return nt(this.stream.parseStringISO(n,n+r),t);case 30:return nt(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+=`
24
+ `,this.sub!==null){t+=" ";for(var r=0,o=this.sub.length;r<o;++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 o=0;o<r;++o)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 Nn?n=t:n=new Nn(t,0);var r=new Nn(n),o=new ti(n),s=e.decodeLength(n),i=n.pos,a=i-r.pos,l=null,c=function(){var d=[];if(s!==null){for(var y=i+s;n.pos<y;)d[d.length]=e.decode(n);if(n.pos!=y)throw new Error("Content size is not correct for container starting at offset "+i)}else try{for(;;){var g=e.decode(n);if(g.tag.isEOC())break;d[d.length]=g}s=i-n.pos}catch(f){throw new Error("Exception while decoding undefined length content: "+f)}return d};if(o.tagConstructed)l=c();else if(o.isUniversal()&&(o.tagNumber==3||o.tagNumber==4))try{if(o.tagNumber==3&&n.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");l=c();for(var p=0;p<l.length;++p)if(l[p].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{l=null}if(l===null){if(s===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+i);n.pos=i+Math.abs(s)}return new e(r,a,s,o,l)},e}(),ti=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 mt;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}(),De,W0=0xdeadbeefcafe,ni=(W0&16777215)==15715070,Q=[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],Y0=(1<<26)/Q[Q.length-1],R=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,o,s=!1,i="",a=this.t,l=this.DB-a*this.DB%n;if(a-- >0)for(l<this.DB&&(o=this[a]>>l)>0&&(s=!0,i=Ee(o));a>=0;)l<n?(o=(this[a]&(1<<l)-1)<<n-l,o|=this[--a]>>(l+=this.DB-n)):(o=this[a]>>(l-=n)&r,l<=0&&(l+=this.DB,--a)),o>0&&(s=!0),s&&(i+=Ee(o));return s?i:"0"},e.prototype.negate=function(){var t=B();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)+$t(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var n=B();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 ri(n):r=new oi(n),this.exp(t,r)},e.prototype.clone=function(){var t=B();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,o,s=0;if(t-- >0)for(r<this.DB&&(o=this[t]>>r)!=(this.s&this.DM)>>r&&(n[s++]=o|this.s<<this.DB-r);t>=0;)r<8?(o=(this[t]&(1<<r)-1)<<8-r,o|=this[--t]>>(r+=this.DB-8)):(o=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),(o&128)!=0&&(o|=-256),s==0&&(this.s&128)!=(o&128)&&++s,(s>0||o!=this.s)&&(n[s++]=o);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=B();return this.bitwiseTo(t,$0,n),n},e.prototype.or=function(t){var n=B();return this.bitwiseTo(t,Ut,n),n},e.prototype.xor=function(t){var n=B();return this.bitwiseTo(t,Js,n),n},e.prototype.andNot=function(t){var n=B();return this.bitwiseTo(t,Qs,n),n},e.prototype.not=function(){for(var t=B(),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=B();return t<0?this.rShiftTo(-t,n):this.lShiftTo(t,n),n},e.prototype.shiftRight=function(t){var n=B();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+j0(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+=H0(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,Ut)},e.prototype.clearBit=function(t){return this.changeBit(t,Qs)},e.prototype.flipBit=function(t){return this.changeBit(t,Js)},e.prototype.add=function(t){var n=B();return this.addTo(t,n),n},e.prototype.subtract=function(t){var n=B();return this.subTo(t,n),n},e.prototype.multiply=function(t){var n=B();return this.multiplyTo(t,n),n},e.prototype.divide=function(t){var n=B();return this.divRemTo(t,n,null),n},e.prototype.remainder=function(t){var n=B();return this.divRemTo(t,null,n),n},e.prototype.divideAndRemainder=function(t){var n=B(),r=B();return this.divRemTo(t,n,r),[n,r]},e.prototype.modPow=function(t,n){var r=t.bitLength(),o,s=Te(1),i;if(r<=0)return s;r<18?o=1:r<48?o=3:r<144?o=4:r<768?o=5:o=6,r<8?i=new ri(n):n.isEven()?i=new X0(n):i=new oi(n);var a=[],l=3,c=o-1,p=(1<<o)-1;if(a[1]=i.convert(this),o>1){var d=B();for(i.sqrTo(a[1],d);l<=p;)a[l]=B(),i.mulTo(d,a[l-2],a[l]),l+=2}var y=t.t-1,g,f=!0,m=B(),v;for(r=$t(t[y])-1;y>=0;){for(r>=c?g=t[y]>>r-c&p:(g=(t[y]&(1<<r+1)-1)<<c-r,y>0&&(g|=t[y-1]>>this.DB+r-c)),l=o;(g&1)==0;)g>>=1,--l;if((r-=l)<0&&(r+=this.DB,--y),f)a[g].copyTo(s),f=!1;else{for(;l>1;)i.sqrTo(s,m),i.sqrTo(m,s),l-=2;l>0?i.sqrTo(s,m):(v=s,s=m,m=v),i.mulTo(m,a[g],s)}for(;y>=0&&(t[y]&1<<r)==0;)i.sqrTo(s,m),v=s,s=m,m=v,--r<0&&(r=this.DB-1,--y)}return i.revert(s)},e.prototype.modInverse=function(t){var n=t.isEven();if(this.isEven()&&n||t.signum()==0)return e.ZERO;for(var r=t.clone(),o=this.clone(),s=Te(1),i=Te(0),a=Te(0),l=Te(1);r.signum()!=0;){for(;r.isEven();)r.rShiftTo(1,r),n?((!s.isEven()||!i.isEven())&&(s.addTo(this,s),i.subTo(t,i)),s.rShiftTo(1,s)):i.isEven()||i.subTo(t,i),i.rShiftTo(1,i);for(;o.isEven();)o.rShiftTo(1,o),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(o)>=0?(r.subTo(o,r),n&&s.subTo(a,s),i.subTo(l,i)):(o.subTo(r,o),n&&a.subTo(s,a),l.subTo(i,l))}if(o.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 Z0)},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 o=n;n=r,r=o}var s=n.getLowestSetBit(),i=r.getLowestSetBit();if(i<0)return n;for(s<i&&(i=s),i>0&&(n.rShiftTo(i,n),r.rShiftTo(i,r));n.signum()>0;)(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r));return i>0&&r.lShiftTo(i,r),r},e.prototype.isProbablePrime=function(t){var n,r=this.abs();if(r.t==1&&r[0]<=Q[Q.length-1]){for(n=0;n<Q.length;++n)if(r[0]==Q[n])return!0;return!1}if(r.isEven())return!1;for(n=1;n<Q.length;){for(var o=Q[n],s=n+1;s<Q.length&&o<Y0;)o*=Q[s++];for(o=r.modInt(o);n<s;)if(o%Q[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 o=t.length,s=!1,i=0;--o>=0;){var a=r==8?+t[o]&255:ii(t,o);if(a<0){t.charAt(o)=="-"&&(s=!0);continue}s=!1,i==0?this[this.t++]=a:i+r>this.DB?(this[this.t-1]|=(a&(1<<this.DB-i)-1)<<i,this[this.t++]=a>>this.DB-i):this[this.t-1]|=a<<i,i+=r,i>=this.DB&&(i-=this.DB)}r==8&&(+t[0]&128)!=0&&(this.s=-1,i>0&&(this[this.t-1]|=(1<<this.DB-i)-1<<i)),this.clamp(),s&&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,o=this.DB-r,s=(1<<o)-1,i=Math.floor(t/this.DB),a=this.s<<r&this.DM,l=this.t-1;l>=0;--l)n[l+i+1]=this[l]>>o|a,a=(this[l]&s)<<r;for(var l=i-1;l>=0;--l)n[l]=0;n[i]=a,n.t=this.t+i+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 o=t%this.DB,s=this.DB-o,i=(1<<o)-1;n[0]=this[r]>>o;for(var a=r+1;a<this.t;++a)n[a-r-1]|=(this[a]&i)<<s,n[a-r]=this[a]>>o;o>0&&(n[this.t-r-1]|=(this.s&i)<<s),n.t=this.t-r,n.clamp()},e.prototype.subTo=function(t,n){for(var r=0,o=0,s=Math.min(t.t,this.t);r<s;)o+=this[r]-t[r],n[r++]=o&this.DM,o>>=this.DB;if(t.t<this.t){for(o-=t.s;r<this.t;)o+=this[r],n[r++]=o&this.DM,o>>=this.DB;o+=this.s}else{for(o+=this.s;r<t.t;)o-=t[r],n[r++]=o&this.DM,o>>=this.DB;o-=t.s}n.s=o<0?-1:0,o<-1?n[r++]=this.DV+o:o>0&&(n[r++]=o),n.t=r,n.clamp()},e.prototype.multiplyTo=function(t,n){var r=this.abs(),o=t.abs(),s=r.t;for(n.t=s+o.t;--s>=0;)n[s]=0;for(s=0;s<o.t;++s)n[s+r.t]=r.am(0,o[s],n,s,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 o=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,o,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 o=t.abs();if(!(o.t<=0)){var s=this.abs();if(s.t<o.t){n!=null&&n.fromInt(0),r!=null&&this.copyTo(r);return}r==null&&(r=B());var i=B(),a=this.s,l=t.s,c=this.DB-$t(o[o.t-1]);c>0?(o.lShiftTo(c,i),s.lShiftTo(c,r)):(o.copyTo(i),s.copyTo(r));var p=i.t,d=i[p-1];if(d!=0){var y=d*(1<<this.F1)+(p>1?i[p-2]>>this.F2:0),g=this.FV/y,f=(1<<this.F1)/y,m=1<<this.F2,v=r.t,E=v-p,w=n??B();for(i.dlShiftTo(E,w),r.compareTo(w)>=0&&(r[r.t++]=1,r.subTo(w,r)),e.ONE.dlShiftTo(p,w),w.subTo(i,i);i.t<p;)i[i.t++]=0;for(;--E>=0;){var k=r[--v]==d?this.DM:Math.floor(r[v]*g+(r[v-1]+m)*f);if((r[v]+=i.am(0,k,r,E,0,p))<k)for(i.dlShiftTo(E,w),r.subTo(w,r);r[v]<--k;)r.subTo(w,r)}n!=null&&(r.drShiftTo(p,n),a!=l&&e.ZERO.subTo(n,n)),r.t=p,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=B(),o=B(),s=n.convert(this),i=$t(t)-1;for(s.copyTo(r);--i>=0;)if(n.sqrTo(r,o),(t&1<<i)>0)n.mulTo(o,s,r);else{var a=r;r=o,o=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),o=Te(r),s=B(),i=B(),a="";for(this.divRemTo(o,s,i);s.signum()>0;)a=(r+i.intValue()).toString(t).substr(1)+a,s.divRemTo(o,s,i);return i.intValue().toString(t)+a},e.prototype.fromRadix=function(t,n){this.fromInt(0),n==null&&(n=10);for(var r=this.chunkSize(n),o=Math.pow(n,r),s=!1,i=0,a=0,l=0;l<t.length;++l){var c=ii(t,l);if(c<0){t.charAt(l)=="-"&&this.signum()==0&&(s=!0);continue}a=n*a+c,++i>=r&&(this.dMultiply(o),this.dAddOffset(a,0),i=0,a=0)}i>0&&(this.dMultiply(Math.pow(n,i)),this.dAddOffset(a,0)),s&&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),Ut,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 o=[],s=t&7;o.length=(t>>3)+1,n.nextBytes(o),s>0?o[0]&=(1<<s)-1:o[0]=0,this.fromString(o,256)}},e.prototype.bitwiseTo=function(t,n,r){var o,s,i=Math.min(t.t,this.t);for(o=0;o<i;++o)r[o]=n(this[o],t[o]);if(t.t<this.t){for(s=t.s&this.DM,o=i;o<this.t;++o)r[o]=n(this[o],s);r.t=this.t}else{for(s=this.s&this.DM,o=i;o<t.t;++o)r[o]=n(s,t[o]);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,o=0,s=Math.min(t.t,this.t);r<s;)o+=this[r]+t[r],n[r++]=o&this.DM,o>>=this.DB;if(t.t<this.t){for(o+=t.s;r<this.t;)o+=this[r],n[r++]=o&this.DM,o>>=this.DB;o+=this.s}else{for(o+=this.s;r<t.t;)o+=t[r],n[r++]=o&this.DM,o>>=this.DB;o+=t.s}n.s=o<0?-1:0,o>0?n[r++]=o:o<-1&&(n[r++]=this.DV+o),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 o=Math.min(this.t+t.t,n);for(r.s=0,r.t=o;o>0;)r[--o]=0;for(var s=r.t-this.t;o<s;++o)r[o+this.t]=this.am(0,t[o],r,o,0,this.t);for(var s=Math.min(t.t,n);o<s;++o)this.am(0,t[o],r,o,0,n-o);r.clamp()},e.prototype.multiplyUpperTo=function(t,n,r){--n;var o=r.t=this.t+t.t-n;for(r.s=0;--o>=0;)r[o]=0;for(o=Math.max(n-this.t,0);o<t.t;++o)r[this.t+o-n]=this.am(n-o,t[o],r,0,0,this.t+o-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 o=this.t-1;o>=0;--o)r=(n*r+this[o])%t;return r},e.prototype.millerRabin=function(t){var n=this.subtract(e.ONE),r=n.getLowestSetBit();if(r<=0)return!1;var o=n.shiftRight(r);t=t+1>>1,t>Q.length&&(t=Q.length);for(var s=B(),i=0;i<t;++i){s.fromInt(Q[Math.floor(Math.random()*Q.length)]);var a=s.modPow(o,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=B();return this.squareTo(t),t},e.prototype.gcda=function(t,n){var r=this.s<0?this.negate():this.clone(),o=t.s<0?t.negate():t.clone();if(r.compareTo(o)<0){var s=r;r=o,o=s}var i=r.getLowestSetBit(),a=o.getLowestSetBit();if(a<0){n(r);return}i<a&&(a=i),a>0&&(r.rShiftTo(a,r),o.rShiftTo(a,o));var l=function(){(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),(i=o.getLowestSetBit())>0&&o.rShiftTo(i,o),r.compareTo(o)>=0?(r.subTo(o,r),r.rShiftTo(1,r)):(o.subTo(r,o),o.rShiftTo(1,o)),r.signum()>0?setTimeout(l,0):(a>0&&o.lShiftTo(a,o),setTimeout(function(){n(o)},0))};setTimeout(l,10)},e.prototype.fromNumberAsync=function(t,n,r,o){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),Ut,this),this.isEven()&&this.dAddOffset(1,0);var s=this,i=function(){s.dAddOffset(2,0),s.bitLength()>t&&s.subTo(e.ONE.shiftLeft(t-1),s),s.isProbablePrime(n)?setTimeout(function(){o()},0):setTimeout(i,0)};setTimeout(i,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}(),Z0=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}(),ri=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}(),oi=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=B();return t.abs().dlShiftTo(this.m.t,n),n.divRemTo(this.m,null,n),t.s<0&&n.compareTo(R.ZERO)>0&&this.m.subTo(n,n),n},e.prototype.revert=function(t){var n=B();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,o=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,o,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}(),X0=function(){function e(t){this.m=t,this.r2=B(),this.q3=B(),R.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=B();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 B(){return new R(null)}function q(e,t){return new R(e,t)}var si=typeof navigator<"u";si&&ni&&navigator.appName=="Microsoft Internet Explorer"?(R.prototype.am=function(t,n,r,o,s,i){for(var a=n&32767,l=n>>15;--i>=0;){var c=this[t]&32767,p=this[t++]>>15,d=l*c+p*a;c=a*c+((d&32767)<<15)+r[o]+(s&1073741823),s=(c>>>30)+(d>>>15)+l*p+(s>>>30),r[o++]=c&1073741823}return s},De=30):si&&ni&&navigator.appName!="Netscape"?(R.prototype.am=function(t,n,r,o,s,i){for(;--i>=0;){var a=n*this[t++]+r[o]+s;s=Math.floor(a/67108864),r[o++]=a&67108863}return s},De=26):(R.prototype.am=function(t,n,r,o,s,i){for(var a=n&16383,l=n>>14;--i>=0;){var c=this[t]&16383,p=this[t++]>>14,d=l*c+p*a;c=a*c+((d&16383)<<14)+r[o]+s,s=(c>>28)+(d>>14)+l*p,r[o++]=c&268435455}return s},De=28);R.prototype.DB=De;R.prototype.DM=(1<<De)-1;R.prototype.DV=1<<De;var jr=52;R.prototype.FV=Math.pow(2,jr);R.prototype.F1=jr-De;R.prototype.F2=2*De-jr;var En=[],dt,le;dt=48;for(le=0;le<=9;++le)En[dt++]=le;dt=97;for(le=10;le<36;++le)En[dt++]=le;dt=65;for(le=10;le<36;++le)En[dt++]=le;function ii(e,t){var n=En[e.charCodeAt(t)];return n??-1}function Te(e){var t=B();return t.fromInt(e),t}function $t(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}R.ZERO=Te(0);R.ONE=Te(1);var J0=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(t){var n,r,o;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,o=this.S[n],this.S[n]=this.S[r],this.S[r]=o;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 Q0(){return new J0}var ou=256,jt,Oe=null,de;if(Oe==null){Oe=[],de=0;var Ht=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var Bn=new Uint32Array(256);for(window.crypto.getRandomValues(Bn),Ht=0;Ht<Bn.length;++Ht)Oe[de++]=Bn[Ht]&255}var Kt=0,zt=function(e){if(Kt=Kt||0,Kt>=256||de>=ou){window.removeEventListener?window.removeEventListener("mousemove",zt,!1):window.detachEvent&&window.detachEvent("onmousemove",zt);return}try{var t=e.x+e.y;Oe[de++]=t&255,Kt+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",zt,!1):window.attachEvent&&window.attachEvent("onmousemove",zt))}function eg(){if(jt==null){for(jt=Q0();de<ou;){var e=Math.floor(65536*Math.random());Oe[de++]=e&255}for(jt.init(Oe),de=0;de<Oe.length;++de)Oe[de]=0;de=0}return jt.next()}var ur=function(){function e(){}return e.prototype.nextBytes=function(t){for(var n=0;n<t.length;++n)t[n]=eg()},e}();function tg(e,t){if(t<e.length+22)return console.error("Message too long for RSA"),null;for(var n=t-e.length-6,r="",o=0;o<n;o+=2)r+="ff";var s="0001"+r+"00"+e;return q(s,16)}function ng(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 o=e.charCodeAt(r--);o<128?n[--t]=o:o>127&&o<2048?(n[--t]=o&63|128,n[--t]=o>>6|192):(n[--t]=o&63|128,n[--t]=o>>6&63|128,n[--t]=o>>12|224)}n[--t]=0;for(var s=new ur,i=[];t>2;){for(i[0]=0;i[0]==0;)s.nextBytes(i);n[--t]=i[0]}return n[--t]=2,n[--t]=0,new R(n)}var rg=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=q(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=ng(t,n);if(r==null)return null;var o=this.doPublic(r);if(o==null)return null;for(var s=o.toString(16),i=s.length,a=0;a<n*2-i;a++)s="0"+s;return s},e.prototype.setPrivate=function(t,n,r){t!=null&&n!=null&&t.length>0&&n.length>0?(this.n=q(t,16),this.e=parseInt(n,16),this.d=q(r,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(t,n,r,o,s,i,a,l){t!=null&&n!=null&&t.length>0&&n.length>0?(this.n=q(t,16),this.e=parseInt(n,16),this.d=q(r,16),this.p=q(o,16),this.q=q(s,16),this.dmp1=q(i,16),this.dmq1=q(a,16),this.coeff=q(l,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(t,n){var r=new ur,o=t>>1;this.e=parseInt(n,16);for(var s=new R(n,16);;){for(;this.p=new R(t-o,1,r),!(this.p.subtract(R.ONE).gcd(s).compareTo(R.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new R(o,1,r),!(this.q.subtract(R.ONE).gcd(s).compareTo(R.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var i=this.p;this.p=this.q,this.q=i}var a=this.p.subtract(R.ONE),l=this.q.subtract(R.ONE),c=a.multiply(l);if(c.gcd(s).compareTo(R.ONE)==0){this.n=this.p.multiply(this.q),this.d=s.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=q(t,16),r=this.doPrivate(n);return r==null?null:og(r,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(t,n,r){var o=new ur,s=t>>1;this.e=parseInt(n,16);var i=new R(n,16),a=this,l=function(){var c=function(){if(a.p.compareTo(a.q)<=0){var y=a.p;a.p=a.q,a.q=y}var g=a.p.subtract(R.ONE),f=a.q.subtract(R.ONE),m=g.multiply(f);m.gcd(i).compareTo(R.ONE)==0?(a.n=a.p.multiply(a.q),a.d=i.modInverse(m),a.dmp1=a.d.mod(g),a.dmq1=a.d.mod(f),a.coeff=a.q.modInverse(a.p),setTimeout(function(){r()},0)):setTimeout(l,0)},p=function(){a.q=B(),a.q.fromNumberAsync(s,1,o,function(){a.q.subtract(R.ONE).gcda(i,function(y){y.compareTo(R.ONE)==0&&a.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(p,0)})})},d=function(){a.p=B(),a.p.fromNumberAsync(t-s,1,o,function(){a.p.subtract(R.ONE).gcda(i,function(y){y.compareTo(R.ONE)==0&&a.p.isProbablePrime(10)?setTimeout(p,0):setTimeout(d,0)})})};setTimeout(d,0)};setTimeout(l,0)},e.prototype.sign=function(t,n,r){var o=sg(r),s=o+n(t).toString(),i=tg(s,this.n.bitLength()/4);if(i==null)return null;var a=this.doPrivate(i);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 o=q(n,16),s=this.doPublic(o);if(s==null)return null;var i=s.toString(16).replace(/^1f+00/,""),a=ig(i);return a==r(t).toString()},e}();function og(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 o="";++r<n.length;){var s=n[r]&255;s<128?o+=String.fromCharCode(s):s>191&&s<224?(o+=String.fromCharCode((s&31)<<6|n[r+1]&63),++r):(o+=String.fromCharCode((s&15)<<12|(n[r+1]&63)<<6|n[r+2]&63),r+=2)}return o}var tn={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function sg(e){return tn[e]||""}function ig(e){for(var t in tn)if(tn.hasOwnProperty(t)){var n=tn[t],r=n.length;if(e.substr(0,r)==n)return e.substr(r)}return e}/*!
25
25
  Copyright (c) 2011, Yahoo! Inc. All rights reserved.
26
26
  Code licensed under the BSD License:
27
27
  http://developer.yahoo.com/yui/license.html
@@ -33,10 +33,10 @@ version: 2.9.0
33
33
  * @version asn1 1.0.13 (2017-Jun-02)
34
34
  * @since jsrsasign 2.1
35
35
  * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
36
- */var b={};(typeof b.asn1>"u"||!b.asn1)&&(b.asn1={});b.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 o="",s=0;s<r;s++)o+="f";var i=new R(o,16),a=i.xor(e).add(R.ONE);t=a.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=b,n=t.asn1,r=n.DERBoolean,o=n.DERInteger,s=n.DERBitString,i=n.DEROctetString,a=n.DERNull,l=n.DERObjectIdentifier,c=n.DEREnumerated,p=n.DERUTF8String,h=n.DERNumericString,y=n.DERPrintableString,g=n.DERTeletexString,f=n.DERIA5String,m=n.DERUTCTime,v=n.DERGeneralizedTime,E=n.DERSequence,w=n.DERSet,k=n.DERTaggedObject,V=n.ASN1Util.newObject,K=Object.keys(e);if(K.length!=1)throw"key of param shall be only one.";var D=K[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+D+":")==-1)throw"undefined key: "+D;if(D=="bool")return new r(e[D]);if(D=="int")return new o(e[D]);if(D=="bitstr")return new s(e[D]);if(D=="octstr")return new i(e[D]);if(D=="null")return new a(e[D]);if(D=="oid")return new l(e[D]);if(D=="enum")return new c(e[D]);if(D=="utf8str")return new p(e[D]);if(D=="numstr")return new h(e[D]);if(D=="prnstr")return new y(e[D]);if(D=="telstr")return new g(e[D]);if(D=="ia5str")return new f(e[D]);if(D=="utctime")return new m(e[D]);if(D=="gentime")return new v(e[D]);if(D=="seq"){for(var O=e[D],z=[],P=0;P<O.length;P++){var A=V(O[P]);z.push(A)}return new E({array:z})}if(D=="set"){for(var O=e[D],z=[],P=0;P<O.length;P++){var A=V(O[P]);z.push(A)}return new w({array:z})}if(D=="tag"){var S=e[D];if(Object.prototype.toString.call(S)==="[object Array]"&&S.length==3){var x=V(S[2]);return new k({tag:S[0],explicit:S[1],obj:x})}else{var F={};if(S.explicit!==void 0&&(F.explicit=S.explicit),S.tag!==void 0&&(F.tag=S.tag),S.obj===void 0)throw"obj shall be specified for 'tag'.";return F.obj=V(S.obj),new k(F)}}},this.jsonToASN1HEX=function(e){var t=this.newObject(e);return t.getEncodedHex()}};b.asn1.ASN1Util.oidHexToInt=function(e){for(var o="",t=parseInt(e.substr(0,2),16),n=Math.floor(t/40),r=t%40,o=n+"."+r,s="",i=2;i<e.length;i+=2){var a=parseInt(e.substr(i,2),16),l=("00000000"+a.toString(2)).slice(-8);if(s=s+l.substr(1,7),l.substr(0,1)=="0"){var c=new R(s,2);o=o+"."+c.toString(10),s=""}}return o};b.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 R(a,10),p=c.toString(2),h=7-p.length%7;h==7&&(h=0);for(var y="",g=0;g<h;g++)y+="0";p=y+p;for(var g=0;g<p.length-1;g+=7){var f=p.substr(g,7);g!=p.length-7&&(f="1"+f),l+=t(parseInt(f,2))}return l};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var r="",o=e.split("."),s=parseInt(o[0])*40+parseInt(o[1]);r+=t(s),o.splice(0,2);for(var i=0;i<o.length;i++)r+=n(o[i]);return r};b.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 o=128+r;return o.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""}};b.asn1.DERAbstractString=function(e){b.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))};G.lang.extend(b.asn1.DERAbstractString,b.asn1.ASN1Object);b.asn1.DERAbstractTime=function(e){b.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 o=this.zeroPadding,s=this.localDateToUTC(t),i=String(s.getFullYear());n=="utc"&&(i=i.substr(2,2));var a=o(String(s.getMonth()+1),2),l=o(String(s.getDate()),2),c=o(String(s.getHours()),2),p=o(String(s.getMinutes()),2),h=o(String(s.getSeconds()),2),y=i+a+l+c+p+h;if(r===!0){var g=s.getMilliseconds();if(g!=0){var f=o(String(g),3);f=f.replace(/[0]+$/,""),y=y+"."+f}}return y+"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,o,s,i){var a=new Date(Date.UTC(t,n-1,r,o,s,i,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}};G.lang.extend(b.asn1.DERAbstractTime,b.asn1.ASN1Object);b.asn1.DERAbstractStructured=function(e){b.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)};G.lang.extend(b.asn1.DERAbstractStructured,b.asn1.ASN1Object);b.asn1.DERBoolean=function(){b.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"};G.lang.extend(b.asn1.DERBoolean,b.asn1.ASN1Object);b.asn1.DERInteger=function(e){b.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=b.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var n=new R(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))};G.lang.extend(b.asn1.DERInteger,b.asn1.ASN1Object);b.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=b.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}b.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 o="0"+n;this.hTLV=null,this.isModified=!0,this.hV=o+r},this.setByBinaryString=function(n){n=n.replace(/0+$/,"");var r=8-n.length%8;r==8&&(r=0);for(var o=0;o<=r;o++)n+="0";for(var s="",o=0;o<n.length-1;o+=8){var i=n.substr(o,8),a=parseInt(i,2).toString(16);a.length==1&&(a="0"+a),s+=a}this.hTLV=null,this.isModified=!0,this.hV="0"+r+s},this.setByBooleanArray=function(n){for(var r="",o=0;o<n.length;o++)n[o]==!0?r+="1":r+="0";this.setByBinaryString(r)},this.newFalseArray=function(n){for(var r=new Array(n),o=0;o<n;o++)r[o]=!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))};G.lang.extend(b.asn1.DERBitString,b.asn1.ASN1Object);b.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=b.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}b.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"};G.lang.extend(b.asn1.DEROctetString,b.asn1.DERAbstractString);b.asn1.DERNull=function(){b.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"};G.lang.extend(b.asn1.DERNull,b.asn1.ASN1Object);b.asn1.DERObjectIdentifier=function(e){var t=function(r){var o=r.toString(16);return o.length==1&&(o="0"+o),o},n=function(r){var o="",s=new R(r,10),i=s.toString(2),a=7-i.length%7;a==7&&(a=0);for(var l="",c=0;c<a;c++)l+="0";i=l+i;for(var c=0;c<i.length-1;c+=7){var p=i.substr(c,7);c!=i.length-7&&(p="1"+p),o+=t(parseInt(p,2))}return o};b.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 o="",s=r.split("."),i=parseInt(s[0])*40+parseInt(s[1]);o+=t(i),s.splice(0,2);for(var a=0;a<s.length;a++)o+=n(s[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=o},this.setValueName=function(r){var o=b.asn1.x509.OID.name2oid(r);if(o!=="")this.setValueOidString(o);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))};G.lang.extend(b.asn1.DERObjectIdentifier,b.asn1.ASN1Object);b.asn1.DEREnumerated=function(e){b.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=b.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var n=new R(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))};G.lang.extend(b.asn1.DEREnumerated,b.asn1.ASN1Object);b.asn1.DERUTF8String=function(e){b.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"};G.lang.extend(b.asn1.DERUTF8String,b.asn1.DERAbstractString);b.asn1.DERNumericString=function(e){b.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"};G.lang.extend(b.asn1.DERNumericString,b.asn1.DERAbstractString);b.asn1.DERPrintableString=function(e){b.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"};G.lang.extend(b.asn1.DERPrintableString,b.asn1.DERAbstractString);b.asn1.DERTeletexString=function(e){b.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"};G.lang.extend(b.asn1.DERTeletexString,b.asn1.DERAbstractString);b.asn1.DERIA5String=function(e){b.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"};G.lang.extend(b.asn1.DERIA5String,b.asn1.DERAbstractString);b.asn1.DERUTCTime=function(e){b.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))};G.lang.extend(b.asn1.DERUTCTime,b.asn1.DERAbstractTime);b.asn1.DERGeneralizedTime=function(e){b.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))};G.lang.extend(b.asn1.DERGeneralizedTime,b.asn1.DERAbstractTime);b.asn1.DERSequence=function(e){b.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}};G.lang.extend(b.asn1.DERSequence,b.asn1.DERAbstractStructured);b.asn1.DERSet=function(e){b.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)};G.lang.extend(b.asn1.DERSet,b.asn1.DERAbstractStructured);b.asn1.DERTaggedObject=function(e){b.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)))};G.lang.extend(b.asn1.DERTaggedObject,b.asn1.ASN1Object);var dg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(r[s]=o[s])},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)}}(),ai=function(e){dg(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,o=0,s=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,i=s.test(n)?Y0.decode(n):ar.unarmor(n),a=J0.decode(i);if(a.sub.length===3&&(a=a.sub[2].sub[0]),a.sub.length===9){r=a.sub[1].getHexStringValue(),this.n=q(r,16),o=a.sub[2].getHexStringValue(),this.e=parseInt(o,16);var l=a.sub[3].getHexStringValue();this.d=q(l,16);var c=a.sub[4].getHexStringValue();this.p=q(c,16);var p=a.sub[5].getHexStringValue();this.q=q(p,16);var h=a.sub[6].getHexStringValue();this.dmp1=q(h,16);var y=a.sub[7].getHexStringValue();this.dmq1=q(y,16);var g=a.sub[8].getHexStringValue();this.coeff=q(g,16)}else if(a.sub.length===2)if(a.sub[0].sub){var f=a.sub[1],m=f.sub[0];r=m.sub[0].getHexStringValue(),this.n=q(r,16),o=m.sub[1].getHexStringValue(),this.e=parseInt(o,16)}else r=a.sub[0].getHexStringValue(),this.n=q(r,16),o=a.sub[1].getHexStringValue(),this.e=parseInt(o,16);else return!1;return!0}catch{return!1}},t.prototype.getPrivateBaseKey=function(){var n={array:[new b.asn1.DERInteger({int:0}),new b.asn1.DERInteger({bigint:this.n}),new b.asn1.DERInteger({int:this.e}),new b.asn1.DERInteger({bigint:this.d}),new b.asn1.DERInteger({bigint:this.p}),new b.asn1.DERInteger({bigint:this.q}),new b.asn1.DERInteger({bigint:this.dmp1}),new b.asn1.DERInteger({bigint:this.dmq1}),new b.asn1.DERInteger({bigint:this.coeff})]},r=new b.asn1.DERSequence(n);return r.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return an(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var n=new b.asn1.DERSequence({array:[new b.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new b.asn1.DERNull]}),r=new b.asn1.DERSequence({array:[new b.asn1.DERInteger({bigint:this.n}),new b.asn1.DERInteger({int:this.e})]}),o=new b.asn1.DERBitString({hex:"00"+r.getEncodedHex()}),s=new b.asn1.DERSequence({array:[n,o]});return s.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return an(this.getPublicBaseKey())},t.wordwrap=function(n,r){if(r=r||64,!n)return n;var o="(.{1,"+r+`})( +|$
36
+ */var b={};(typeof b.asn1>"u"||!b.asn1)&&(b.asn1={});b.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 o="",s=0;s<r;s++)o+="f";var i=new R(o,16),a=i.xor(e).add(R.ONE);t=a.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=b,n=t.asn1,r=n.DERBoolean,o=n.DERInteger,s=n.DERBitString,i=n.DEROctetString,a=n.DERNull,l=n.DERObjectIdentifier,c=n.DEREnumerated,p=n.DERUTF8String,d=n.DERNumericString,y=n.DERPrintableString,g=n.DERTeletexString,f=n.DERIA5String,m=n.DERUTCTime,v=n.DERGeneralizedTime,E=n.DERSequence,w=n.DERSet,k=n.DERTaggedObject,V=n.ASN1Util.newObject,K=Object.keys(e);if(K.length!=1)throw"key of param shall be only one.";var D=K[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+D+":")==-1)throw"undefined key: "+D;if(D=="bool")return new r(e[D]);if(D=="int")return new o(e[D]);if(D=="bitstr")return new s(e[D]);if(D=="octstr")return new i(e[D]);if(D=="null")return new a(e[D]);if(D=="oid")return new l(e[D]);if(D=="enum")return new c(e[D]);if(D=="utf8str")return new p(e[D]);if(D=="numstr")return new d(e[D]);if(D=="prnstr")return new y(e[D]);if(D=="telstr")return new g(e[D]);if(D=="ia5str")return new f(e[D]);if(D=="utctime")return new m(e[D]);if(D=="gentime")return new v(e[D]);if(D=="seq"){for(var O=e[D],z=[],P=0;P<O.length;P++){var A=V(O[P]);z.push(A)}return new E({array:z})}if(D=="set"){for(var O=e[D],z=[],P=0;P<O.length;P++){var A=V(O[P]);z.push(A)}return new w({array:z})}if(D=="tag"){var S=e[D];if(Object.prototype.toString.call(S)==="[object Array]"&&S.length==3){var x=V(S[2]);return new k({tag:S[0],explicit:S[1],obj:x})}else{var F={};if(S.explicit!==void 0&&(F.explicit=S.explicit),S.tag!==void 0&&(F.tag=S.tag),S.obj===void 0)throw"obj shall be specified for 'tag'.";return F.obj=V(S.obj),new k(F)}}},this.jsonToASN1HEX=function(e){var t=this.newObject(e);return t.getEncodedHex()}};b.asn1.ASN1Util.oidHexToInt=function(e){for(var o="",t=parseInt(e.substr(0,2),16),n=Math.floor(t/40),r=t%40,o=n+"."+r,s="",i=2;i<e.length;i+=2){var a=parseInt(e.substr(i,2),16),l=("00000000"+a.toString(2)).slice(-8);if(s=s+l.substr(1,7),l.substr(0,1)=="0"){var c=new R(s,2);o=o+"."+c.toString(10),s=""}}return o};b.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 R(a,10),p=c.toString(2),d=7-p.length%7;d==7&&(d=0);for(var y="",g=0;g<d;g++)y+="0";p=y+p;for(var g=0;g<p.length-1;g+=7){var f=p.substr(g,7);g!=p.length-7&&(f="1"+f),l+=t(parseInt(f,2))}return l};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var r="",o=e.split("."),s=parseInt(o[0])*40+parseInt(o[1]);r+=t(s),o.splice(0,2);for(var i=0;i<o.length;i++)r+=n(o[i]);return r};b.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 o=128+r;return o.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""}};b.asn1.DERAbstractString=function(e){b.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))};G.lang.extend(b.asn1.DERAbstractString,b.asn1.ASN1Object);b.asn1.DERAbstractTime=function(e){b.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 o=this.zeroPadding,s=this.localDateToUTC(t),i=String(s.getFullYear());n=="utc"&&(i=i.substr(2,2));var a=o(String(s.getMonth()+1),2),l=o(String(s.getDate()),2),c=o(String(s.getHours()),2),p=o(String(s.getMinutes()),2),d=o(String(s.getSeconds()),2),y=i+a+l+c+p+d;if(r===!0){var g=s.getMilliseconds();if(g!=0){var f=o(String(g),3);f=f.replace(/[0]+$/,""),y=y+"."+f}}return y+"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,o,s,i){var a=new Date(Date.UTC(t,n-1,r,o,s,i,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}};G.lang.extend(b.asn1.DERAbstractTime,b.asn1.ASN1Object);b.asn1.DERAbstractStructured=function(e){b.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)};G.lang.extend(b.asn1.DERAbstractStructured,b.asn1.ASN1Object);b.asn1.DERBoolean=function(){b.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"};G.lang.extend(b.asn1.DERBoolean,b.asn1.ASN1Object);b.asn1.DERInteger=function(e){b.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=b.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var n=new R(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))};G.lang.extend(b.asn1.DERInteger,b.asn1.ASN1Object);b.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=b.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}b.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 o="0"+n;this.hTLV=null,this.isModified=!0,this.hV=o+r},this.setByBinaryString=function(n){n=n.replace(/0+$/,"");var r=8-n.length%8;r==8&&(r=0);for(var o=0;o<=r;o++)n+="0";for(var s="",o=0;o<n.length-1;o+=8){var i=n.substr(o,8),a=parseInt(i,2).toString(16);a.length==1&&(a="0"+a),s+=a}this.hTLV=null,this.isModified=!0,this.hV="0"+r+s},this.setByBooleanArray=function(n){for(var r="",o=0;o<n.length;o++)n[o]==!0?r+="1":r+="0";this.setByBinaryString(r)},this.newFalseArray=function(n){for(var r=new Array(n),o=0;o<n;o++)r[o]=!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))};G.lang.extend(b.asn1.DERBitString,b.asn1.ASN1Object);b.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=b.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}b.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"};G.lang.extend(b.asn1.DEROctetString,b.asn1.DERAbstractString);b.asn1.DERNull=function(){b.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"};G.lang.extend(b.asn1.DERNull,b.asn1.ASN1Object);b.asn1.DERObjectIdentifier=function(e){var t=function(r){var o=r.toString(16);return o.length==1&&(o="0"+o),o},n=function(r){var o="",s=new R(r,10),i=s.toString(2),a=7-i.length%7;a==7&&(a=0);for(var l="",c=0;c<a;c++)l+="0";i=l+i;for(var c=0;c<i.length-1;c+=7){var p=i.substr(c,7);c!=i.length-7&&(p="1"+p),o+=t(parseInt(p,2))}return o};b.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 o="",s=r.split("."),i=parseInt(s[0])*40+parseInt(s[1]);o+=t(i),s.splice(0,2);for(var a=0;a<s.length;a++)o+=n(s[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=o},this.setValueName=function(r){var o=b.asn1.x509.OID.name2oid(r);if(o!=="")this.setValueOidString(o);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))};G.lang.extend(b.asn1.DERObjectIdentifier,b.asn1.ASN1Object);b.asn1.DEREnumerated=function(e){b.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=b.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var n=new R(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))};G.lang.extend(b.asn1.DEREnumerated,b.asn1.ASN1Object);b.asn1.DERUTF8String=function(e){b.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"};G.lang.extend(b.asn1.DERUTF8String,b.asn1.DERAbstractString);b.asn1.DERNumericString=function(e){b.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"};G.lang.extend(b.asn1.DERNumericString,b.asn1.DERAbstractString);b.asn1.DERPrintableString=function(e){b.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"};G.lang.extend(b.asn1.DERPrintableString,b.asn1.DERAbstractString);b.asn1.DERTeletexString=function(e){b.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"};G.lang.extend(b.asn1.DERTeletexString,b.asn1.DERAbstractString);b.asn1.DERIA5String=function(e){b.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"};G.lang.extend(b.asn1.DERIA5String,b.asn1.DERAbstractString);b.asn1.DERUTCTime=function(e){b.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))};G.lang.extend(b.asn1.DERUTCTime,b.asn1.DERAbstractTime);b.asn1.DERGeneralizedTime=function(e){b.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))};G.lang.extend(b.asn1.DERGeneralizedTime,b.asn1.DERAbstractTime);b.asn1.DERSequence=function(e){b.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}};G.lang.extend(b.asn1.DERSequence,b.asn1.DERAbstractStructured);b.asn1.DERSet=function(e){b.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)};G.lang.extend(b.asn1.DERSet,b.asn1.DERAbstractStructured);b.asn1.DERTaggedObject=function(e){b.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)))};G.lang.extend(b.asn1.DERTaggedObject,b.asn1.ASN1Object);var ag=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(r[s]=o[s])},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)}}(),ai=function(e){ag(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,o=0,s=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,i=s.test(n)?K0.decode(n):ar.unarmor(n),a=G0.decode(i);if(a.sub.length===3&&(a=a.sub[2].sub[0]),a.sub.length===9){r=a.sub[1].getHexStringValue(),this.n=q(r,16),o=a.sub[2].getHexStringValue(),this.e=parseInt(o,16);var l=a.sub[3].getHexStringValue();this.d=q(l,16);var c=a.sub[4].getHexStringValue();this.p=q(c,16);var p=a.sub[5].getHexStringValue();this.q=q(p,16);var d=a.sub[6].getHexStringValue();this.dmp1=q(d,16);var y=a.sub[7].getHexStringValue();this.dmq1=q(y,16);var g=a.sub[8].getHexStringValue();this.coeff=q(g,16)}else if(a.sub.length===2)if(a.sub[0].sub){var f=a.sub[1],m=f.sub[0];r=m.sub[0].getHexStringValue(),this.n=q(r,16),o=m.sub[1].getHexStringValue(),this.e=parseInt(o,16)}else r=a.sub[0].getHexStringValue(),this.n=q(r,16),o=a.sub[1].getHexStringValue(),this.e=parseInt(o,16);else return!1;return!0}catch{return!1}},t.prototype.getPrivateBaseKey=function(){var n={array:[new b.asn1.DERInteger({int:0}),new b.asn1.DERInteger({bigint:this.n}),new b.asn1.DERInteger({int:this.e}),new b.asn1.DERInteger({bigint:this.d}),new b.asn1.DERInteger({bigint:this.p}),new b.asn1.DERInteger({bigint:this.q}),new b.asn1.DERInteger({bigint:this.dmp1}),new b.asn1.DERInteger({bigint:this.dmq1}),new b.asn1.DERInteger({bigint:this.coeff})]},r=new b.asn1.DERSequence(n);return r.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return an(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var n=new b.asn1.DERSequence({array:[new b.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new b.asn1.DERNull]}),r=new b.asn1.DERSequence({array:[new b.asn1.DERInteger({bigint:this.n}),new b.asn1.DERInteger({int:this.e})]}),o=new b.asn1.DERBitString({hex:"00"+r.getEncodedHex()}),s=new b.asn1.DERSequence({array:[n,o]});return s.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return an(this.getPublicBaseKey())},t.wordwrap=function(n,r){if(r=r||64,!n)return n;var o="(.{1,"+r+`})( +|$
37
37
  ?)|(.{1,`+r+"})";return n.match(RegExp(o,"g")).join(`
38
38
  `)},t.prototype.getPrivateKey=function(){var n=`-----BEGIN RSA PRIVATE KEY-----
39
39
  `;return n+=t.wordwrap(this.getPrivateBaseKeyB64())+`
40
40
  `,n+="-----END RSA PRIVATE KEY-----",n},t.prototype.getPublicKey=function(){var n=`-----BEGIN PUBLIC KEY-----
41
41
  `;return n+=t.wordwrap(this.getPublicBaseKeyB64())+`
42
- `,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}(ug),Pn,hg=typeof process<"u"?(Pn=process.env)===null||Pn===void 0?void 0:Pn.npm_package_version:void 0,Hr=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 ai(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(ei(t))}catch{return!1}},e.prototype.encrypt=function(t){try{return an(this.getKey().encrypt(t))}catch{return!1}},e.prototype.sign=function(t,n,r){try{return an(this.getKey().sign(t,n,r))}catch{return!1}},e.prototype.verify=function(t,n,r){try{return this.getKey().verify(t,ei(n),r)}catch{return!1}},e.prototype.getKey=function(t){if(!this.key){if(this.key=new ai,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=hg,e}();function Et(e,t){const n=new Hr;return n.setPublicKey(t),n.encrypt(e)||""}function su(e,t){const n=new Hr;return n.setPrivateKey(t),n.decrypt(e)||""}function ui(){return typeof new Hr().encrypt=="function"}const iu=Pr(ve),{superAdminInfo:pg,cryptoInfo:ee,loginUserInfo:Vn}=je(iu),gg=Vr(ve),{activeMenuPath:St}=je(gg),lr=Mr(ve),at="123456",vg=Fr(ve),{routerPageStructures:yg}=je(vg),Kr=u.ref(0),mg=u.ref([{label:"用户名称",value:"",name:"userName"}]),et=u.computed(()=>{const e=sessionStorage.getItem("isSuperAdmin");return e?JSON.parse(e):!1}),Eg=e=>{console.log("handleQueryChange",e)},un=u.ref([]),au=u.ref(""),ln=u.computed(()=>{var t,n,r,o,s;const e=(t=yg.value)==null?void 0:t.find(i=>{var a;return((a=i==null?void 0:i.comp)==null?void 0:a.toUpperCase())==="TABLE"});return e?(au.value=e.name,un.value=(o=(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:o.filter(a=>(a==null?void 0:a.label)!=="操作"),(s=e==null?void 0:e.compData)==null?void 0:s.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 p,h,y,g;return{...c,isTableColHidden:((p=c==null?void 0:c.prop)==null?void 0:p.includes("头像"))||((h=c==null?void 0:c.prop)==null?void 0:h.includes("签名")),isFormColHidden:((y=c==null?void 0:c.prop)==null?void 0:y.includes("头像"))||((g=c==null?void 0:c.prop)==null?void 0:g.includes("签名"))}})}:a})):[]}),bg=e=>{lr.setRefreshCurStructure(!1),bn(e.singleContent,e.buttonName,Kr.value,e==null?void 0:e.selectItems)},cr=u.ref(),_g=e=>{console.log("onDoubleClick",e)},Sg=(e,t)=>{e==="重置密码"&&Ui.confirm(`该操作将会重置【${(t==null?void 0:t.account)||(t==null?void 0:t.账号)}】的密码为【${at}】,确认重置?`,"警告",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{cr.value={...t,password:at},bn(cr.value,e,Kr.value)}).catch(()=>{d.ElMessage.info("取消重置")})},Tg=()=>{zr(St.value).then(e=>{var n;const t=Array.isArray(e)&&(e==null?void 0:e.filter(r=>(r==null?void 0:r.account)!==pg.value.account));ln.value=(n=ln.value)==null?void 0:n.map(r=>r.key==="tableContents"?{...r,contents:t==null?void 0:t.map(o=>{var s;return{...o,password:su(o==null?void 0:o.password,(s=ee==null?void 0:ee.value)==null?void 0:s.privateKey)}})}:r)})},ut=async(e,t,n)=>{var r,o;try{const s=await e(t);return((r=s==null?void 0:s.data)==null?void 0:r.code)===200?(n!=="查询"&&await iu.setLogRecordAsync({type:n,data:t},St.value),d.ElMessage.success("保存成功"),lr.setRefreshCurStructure(!0),s.data.result||((o=s==null?void 0:s.data)==null?void 0:o.code)===200):null}catch(s){d.ElMessage.error(s)}finally{lr.setCacheUpdatingData(null)}},wg=async(e,t)=>{var s,i;let n=[];Array.isArray(e)?n=Ie(e):n=[Ie(e)];const r=(s=n==null?void 0:n.filter(a=>typeof(a==null?void 0:a.id)=="string"))==null?void 0:s.map(a=>{var c,p,h,y,g,f,m;const l=kt(a,un.value);return ui()&&l&&(!l.password&&et.value?l.password=Et(at,(c=ee==null?void 0:ee.value)==null?void 0:c.publicKey):l.password&&et.value&&(l.password=Et(l==null?void 0:l.password,(p=ee==null?void 0:ee.value)==null?void 0:p.publicKey))),{key:{type:"data",layer:a==null?void 0:a.layer,systemKey:sessionStorage.getItem("systemKey"),pageKey:(h=St.value)!=null&&h.startsWith("/")?(y=St.value)==null?void 0:y.substring(1):St.value,tableId:t,createUserId:(g=Vn.value)==null?void 0:g.id,createUserOrg:((f=Vn.value)==null?void 0:f.dept)||((m=Vn.value)==null?void 0:m.部门名称)},value:{tableData:l}}}),o=(i=n==null?void 0:n.filter(a=>typeof(a==null?void 0:a.id)=="number"))==null?void 0:i.map(a=>{var c,p;const l=kt(a,un.value);return ui()&&l&&(!l.password&&et.value?l.password=Et(at,(c=ee==null?void 0:ee.value)==null?void 0:c.publicKey):l.password&&et.value&&(l.password=Et(l==null?void 0:l.password,(p=ee==null?void 0:ee.value)==null?void 0:p.publicKey))),{id:a==null?void 0:a.id,value:{tableData:l}}});r.length>0&&await ut(d.batchAddInsofDataApi,{dataList:r},"新增"),o.length>0&&(await ut(d.batchUpdateInsofDataApi,{dataList:o},"编辑"),Ue.show=!1)},bn=async(e,t,n,r)=>{if(!(t!=null&&t.includes("删除")))await wg(e,n);else{let o=[];t!=null&&t.includes("批量")?o=r&&(r==null?void 0:r.length)>0?r==null?void 0:r.map(s=>s==null?void 0:s.id):[]:o=[e==null?void 0:e.id],await ut(d.batchDeleteInsofDataApi,{ids:o},"编辑")}},zr=async e=>{const t=await ut(d.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:e}},"查询"),n=t==null?void 0:t.map(r=>{var o,s;return{id:r.id,layer:(o=r.key)==null?void 0:o.layer,tableData:(s=r==null?void 0:r.value)==null?void 0:s.tableData}});return n==null?void 0:n.map(r=>{var o;if(!Array.isArray(r==null?void 0:r.tableData))return{...r.tableData,layer:(o=r.key)==null?void 0:o.layer,id:r.id}})},Ag={comp:"Group",name:"/系统管理/用户管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:ln.value,name:""}]}]},Cg=Object.freeze(Object.defineProperty({__proto__:null,changedRow:cr,clickRowButton:Sg,columns:un,compName:au,getPageDataAsync:zr,handleItemDataChange:bg,handleQueryChange:Eg,handleSubmitAsync:ut,loginUserIsSuper:et,onDoubleClick:_g,pageData:ln,queryFormData:mg,refreshUserTableData:Tg,resetPassword:at,structureId:Kr,submitTableAsyncByVerify:bn,tempUserPageData:Ag},Symbol.toStringTag,{value:"Module"}));exports.ElMessageBox=Ui;exports.Stack=$e;exports.State=Cg;exports.State$1=K0;exports.Uint8Array=$n;exports.arrayLikeKeys=mi;exports.assignValue=fr;exports.baseAssignValue=fi;exports.baseUnary=dn;exports.cloneBuffer=Ti;exports.cloneDeep=Ie;exports.cloneTypedArray=Ai;exports.createPlatFormDataApi=Dd;exports.decryptData=su;exports.defineStore=Rt;exports.deletePageDataApi=xd;exports.encryptData=Et;exports.getActivePageStructureId=Ja;exports.getAllKeys=wi;exports.getPageDataApi=kd;exports.getPageDataAsync=zr;exports.getPrototype=_i;exports.handleSubmitAsync=ut;exports.identity=li;exports.initCloneObject=Ci;exports.isArguments=fn;exports.isArrayLike=hi;exports.isBuffer=pr;exports.isIndex=cn;exports.isNil=vr;exports.isPrototype=hr;exports.isTypedArray=yi;exports.loginPlatFormDataApi=Id;exports.nodeUtil=Me;exports.overRest=di;exports.pageBatchAddApi=Rd;exports.pinia=ve;exports.resetPassword=at;exports.setToString=ci;exports.storeToRefs=je;exports.submitTableAsyncByVerify=bn;exports.useAuthorityState=Fr;exports.useLoginState=Pr;exports.useMenuState=Vr;exports.useModelComp=Mr;
42
+ `,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}(rg),Pn,ug=typeof process<"u"?(Pn=process.env)===null||Pn===void 0?void 0:Pn.npm_package_version:void 0,Hr=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 ai(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(ei(t))}catch{return!1}},e.prototype.encrypt=function(t){try{return an(this.getKey().encrypt(t))}catch{return!1}},e.prototype.sign=function(t,n,r){try{return an(this.getKey().sign(t,n,r))}catch{return!1}},e.prototype.verify=function(t,n,r){try{return this.getKey().verify(t,ei(n),r)}catch{return!1}},e.prototype.getKey=function(t){if(!this.key){if(this.key=new ai,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=ug,e}();function Et(e,t){const n=new Hr;return n.setPublicKey(t),n.encrypt(e)||""}function su(e,t){const n=new Hr;return n.setPrivateKey(t),n.decrypt(e)||""}function ui(){return typeof new Hr().encrypt=="function"}const iu=Vr(ve),{superAdminInfo:lg,cryptoInfo:ee,loginUserInfo:Vn}=je(iu),cg=Pr(ve),{activeMenuPath:St}=je(cg),lr=Mr(ve),at="123456",fg=Fr(ve),{routerPageStructures:dg}=je(fg),Kr=u.ref(0),hg=u.ref([{label:"用户名称",value:"",name:"userName"}]),et=u.computed(()=>{const e=sessionStorage.getItem("isSuperAdmin");return e?JSON.parse(e):!1}),pg=e=>{console.log("handleQueryChange",e)},un=u.ref([]),au=u.ref(""),ln=u.computed(()=>{var t,n,r,o,s;const e=(t=dg.value)==null?void 0:t.find(i=>{var a;return((a=i==null?void 0:i.comp)==null?void 0:a.toUpperCase())==="TABLE"});return e?(au.value=e.name,un.value=(o=(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:o.filter(a=>(a==null?void 0:a.label)!=="操作"),(s=e==null?void 0:e.compData)==null?void 0:s.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 p,d,y,g;return{...c,isTableColHidden:((p=c==null?void 0:c.prop)==null?void 0:p.includes("头像"))||((d=c==null?void 0:c.prop)==null?void 0:d.includes("签名")),isFormColHidden:((y=c==null?void 0:c.prop)==null?void 0:y.includes("头像"))||((g=c==null?void 0:c.prop)==null?void 0:g.includes("签名"))}})}:a})):[]}),gg=e=>{lr.setRefreshCurStructure(!1),bn(e.singleContent,e.buttonName,Kr.value,e==null?void 0:e.selectItems)},cr=u.ref(),vg=e=>{console.log("onDoubleClick",e)},yg=(e,t)=>{e==="重置密码"&&Ui.confirm(`该操作将会重置【${(t==null?void 0:t.account)||(t==null?void 0:t.账号)}】的密码为【${at}】,确认重置?`,"警告",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{cr.value={...t,password:at},bn(cr.value,e,Kr.value)}).catch(()=>{h.ElMessage.info("取消重置")})},mg=()=>{zr(St.value).then(e=>{var n;const t=Array.isArray(e)&&(e==null?void 0:e.filter(r=>(r==null?void 0:r.account)!==lg.value.account));ln.value=(n=ln.value)==null?void 0:n.map(r=>r.key==="tableContents"?{...r,contents:t==null?void 0:t.map(o=>{var s;return{...o,password:su(o==null?void 0:o.password,(s=ee==null?void 0:ee.value)==null?void 0:s.privateKey)}})}:r)})},ut=async(e,t,n)=>{var r,o;try{const s=await e(t);return((r=s==null?void 0:s.data)==null?void 0:r.code)===200?(n!=="查询"&&await iu.setLogRecordAsync({type:n,data:t},St.value),h.ElMessage.success("保存成功"),lr.setRefreshCurStructure(!0),s.data.result||((o=s==null?void 0:s.data)==null?void 0:o.code)===200):null}catch(s){h.ElMessage.error(s)}finally{lr.setCacheUpdatingData(null)}},Eg=async(e,t)=>{var s,i;let n=[];Array.isArray(e)?n=Ie(e):n=[Ie(e)];const r=(s=n==null?void 0:n.filter(a=>typeof(a==null?void 0:a.id)=="string"))==null?void 0:s.map(a=>{var c,p,d,y,g,f,m;const l=kt(a,un.value);return ui()&&l&&(!l.password&&et.value?l.password=Et(at,(c=ee==null?void 0:ee.value)==null?void 0:c.publicKey):l.password&&et.value&&(l.password=Et(l==null?void 0:l.password,(p=ee==null?void 0:ee.value)==null?void 0:p.publicKey))),{key:{type:"data",layer:a==null?void 0:a.layer,systemKey:sessionStorage.getItem("systemKey"),pageKey:(d=St.value)!=null&&d.startsWith("/")?(y=St.value)==null?void 0:y.substring(1):St.value,tableId:t,createUserId:(g=Vn.value)==null?void 0:g.id,createUserOrg:((f=Vn.value)==null?void 0:f.dept)||((m=Vn.value)==null?void 0:m.部门名称)},value:{tableData:l}}}),o=(i=n==null?void 0:n.filter(a=>typeof(a==null?void 0:a.id)=="number"))==null?void 0:i.map(a=>{var c,p;const l=kt(a,un.value);return ui()&&l&&(!l.password&&et.value?l.password=Et(at,(c=ee==null?void 0:ee.value)==null?void 0:c.publicKey):l.password&&et.value&&(l.password=Et(l==null?void 0:l.password,(p=ee==null?void 0:ee.value)==null?void 0:p.publicKey))),{id:a==null?void 0:a.id,value:{tableData:l}}});r.length>0&&await ut(h.batchAddInsofDataApi,{dataList:r},"新增"),o.length>0&&(await ut(h.batchUpdateInsofDataApi,{dataList:o},"编辑"),Ue.show=!1)},bn=async(e,t,n,r)=>{if(!(t!=null&&t.includes("删除")))await Eg(e,n);else{let o=[];t!=null&&t.includes("批量")?o=r&&(r==null?void 0:r.length)>0?r==null?void 0:r.map(s=>s==null?void 0:s.id):[]:o=[e==null?void 0:e.id],await ut(h.batchDeleteInsofDataApi,{ids:o},"编辑")}},zr=async e=>{const t=await ut(h.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:e}},"查询"),n=t==null?void 0:t.map(r=>{var o,s;return{id:r.id,layer:(o=r.key)==null?void 0:o.layer,tableData:(s=r==null?void 0:r.value)==null?void 0:s.tableData}});return n==null?void 0:n.map(r=>{var o;if(!Array.isArray(r==null?void 0:r.tableData))return{...r.tableData,layer:(o=r.key)==null?void 0:o.layer,id:r.id}})},bg={comp:"Group",name:"/系统管理/用户管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:ln.value,name:""}]}]},_g=Object.freeze(Object.defineProperty({__proto__:null,changedRow:cr,clickRowButton:yg,columns:un,compName:au,getPageDataAsync:zr,handleItemDataChange:gg,handleQueryChange:pg,handleSubmitAsync:ut,loginUserIsSuper:et,onDoubleClick:vg,pageData:ln,queryFormData:hg,refreshUserTableData:mg,resetPassword:at,structureId:Kr,submitTableAsyncByVerify:bn,tempUserPageData:bg},Symbol.toStringTag,{value:"Module"}));exports.ElMessageBox=Ui;exports.Stack=$e;exports.State=_g;exports.State$1=L0;exports.Uint8Array=$n;exports.arrayLikeKeys=mi;exports.assignValue=fr;exports.baseAssignValue=fi;exports.baseUnary=dn;exports.cloneBuffer=Ti;exports.cloneDeep=Ie;exports.cloneTypedArray=Ai;exports.decryptData=su;exports.defineStore=Rt;exports.encryptData=Et;exports.getActivePageStructureId=Ja;exports.getAllKeys=wi;exports.getPageDataAsync=zr;exports.getPrototype=_i;exports.handleSubmitAsync=ut;exports.identity=li;exports.initCloneObject=Ci;exports.isArguments=fn;exports.isArrayLike=hi;exports.isBuffer=pr;exports.isIndex=cn;exports.isNil=vr;exports.isPrototype=hr;exports.isTypedArray=yi;exports.nodeUtil=Me;exports.overRest=di;exports.pinia=ve;exports.resetPassword=at;exports.setToString=ci;exports.storeToRefs=je;exports.submitTableAsyncByVerify=bn;exports.useAuthorityState=Fr;exports.useLoginState=Vr;exports.useMenuState=Pr;exports.useModelComp=Mr;