@vtj/pro 0.7.13 → 0.7.15

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 (69) hide show
  1. package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
  2. package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
  3. package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
  4. package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +3 -3
  5. package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
  6. package/dist/@vtj/materials/deps/@vtj/ui/style.css +1 -1
  7. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +9 -9
  8. package/dist/@vtj/materials/deps/ant-design-vue/antd.min.js +1 -1
  9. package/dist/@vtj/materials/deps/echarts/echarts.min.js +45 -45
  10. package/dist/@vtj/materials/deps/element-plus/dark/css-vars.css +1 -0
  11. package/dist/@vtj/materials/deps/element-plus/index.css +1 -1
  12. package/dist/@vtj/materials/deps/element-plus/index.full.min.js +19 -19
  13. package/dist/@vtj/materials/deps/vue/vue.global.prod.js +6 -6
  14. package/dist/@vtj/materials/deps/vue-router/vue-router.global.prod.js +3 -3
  15. package/dist/assets/{@element-plus-LjLasQGj.js → @element-plus-UyKPWr8Y.js} +1 -1
  16. package/dist/assets/@floating-ui-o_LpjUj1.js +1 -0
  17. package/dist/assets/@vue-B9G3NdkG.js +25 -0
  18. package/dist/assets/@vueuse-vj05gMbp.js +1 -0
  19. package/dist/assets/{Editor-ctkAn2cu-O6Vp28_y.js → Editor-BKlikwSl-Dczu-iwv.js} +2 -2
  20. package/dist/assets/{codicon-B7HMvkfX.ttf → codicon-CgFDqQ3p.ttf} +0 -0
  21. package/dist/assets/{css.worker-5fHi_Glb.js → css.worker-Dfgcs2yQ.js} +32 -32
  22. package/dist/assets/editor.worker-CUPKRFC6.js +11 -0
  23. package/dist/assets/element-plus-BwK240qL.css +1 -0
  24. package/dist/assets/element-plus-oSL2ERZK.js +20 -0
  25. package/dist/assets/{html.worker-86R1FDoj.js → html.worker-MPBy5nkK.js} +33 -33
  26. package/dist/assets/index-BYZAewbd.js +1 -0
  27. package/dist/assets/index-CPoFSBVH.js +190 -0
  28. package/dist/assets/index-CpeyEXHt.js +7 -0
  29. package/dist/assets/index-CyHSZxs2.css +1 -0
  30. package/dist/assets/json.worker-CAWUGd2U.js +42 -0
  31. package/dist/assets/lodash-es-DKmLY3Gz.js +1 -0
  32. package/dist/assets/monaco-editor-DzwMy79G.js +1475 -0
  33. package/dist/assets/monaco-editor-z6e5Xz8u.css +1 -0
  34. package/dist/assets/preview-BOI1fEyf.js +7 -0
  35. package/dist/assets/{ts.worker-NzTvDa2F.js → ts.worker-DIpcfo5S.js} +160 -160
  36. package/dist/assets/{vue-1oxrHUEe.js → vue-Dt5VvRS2.js} +3 -3
  37. package/dist/assets/vue-router-DfOys6cN.js +9 -0
  38. package/dist/index.html +18 -18
  39. package/dist/link.js +1 -1
  40. package/package.json +16 -16
  41. package/dist/assets/@floating-ui-YgFFYPER.js +0 -1
  42. package/dist/assets/@vue-lwVaHA3a.js +0 -25
  43. package/dist/assets/@vueuse-4RidYFUd.js +0 -1
  44. package/dist/assets/editor.worker-E2YKyfJw.js +0 -11
  45. package/dist/assets/element-plus-1fB6zogk.css +0 -1
  46. package/dist/assets/element-plus-qXjnbDbH.js +0 -20
  47. package/dist/assets/index-UXVEX-dz.js +0 -7
  48. package/dist/assets/index-X5h9O7zT.css +0 -1
  49. package/dist/assets/index-XKqIVmJZ.js +0 -1
  50. package/dist/assets/index-j3TvFdI9.js +0 -124
  51. package/dist/assets/json.worker-e2MIaH_v.js +0 -42
  52. package/dist/assets/lodash-es-bSbz8D7Z.js +0 -1
  53. package/dist/assets/monaco-editor-cf__QvdG.css +0 -1
  54. package/dist/assets/monaco-editor-ginzV8u1.js +0 -1479
  55. package/dist/assets/preview-BXPuJGo5.js +0 -7
  56. package/dist/assets/vue-router-7jZRLvj2.js +0 -5
  57. /package/dist/assets/{@ctrl-ZggoHSuR.js → @ctrl-r5W6hzzQ.js} +0 -0
  58. /package/dist/assets/{@popperjs-UUtjUkU3.js → @popperjs-CsO2-mKt.js} +0 -0
  59. /package/dist/assets/{async-validator-dHyGCDyC.js → async-validator-Cr9EP88T.js} +0 -0
  60. /package/dist/assets/{dayjs-IPtKBSau.js → dayjs-Ct2Knyoi.js} +0 -0
  61. /package/dist/assets/{echarts-w40geAFS.js → echarts-l0sNRNKZ.js} +0 -0
  62. /package/dist/assets/{index-AjK7aYfE.css → index-CMrtph8S.css} +0 -0
  63. /package/dist/assets/{index-1s8TnXJX.css → index-DWzxOdcl.css} +0 -0
  64. /package/dist/assets/{lodash-unified-w40geAFS.js → lodash-unified-l0sNRNKZ.js} +0 -0
  65. /package/dist/assets/{memoize-one-JaOscZgY.js → memoize-one-BdPwpGay.js} +0 -0
  66. /package/dist/assets/{normalize-wheel-es-1urBKM79.js → normalize-wheel-es-B6fDCfyv.js} +0 -0
  67. /package/dist/assets/{tslib-w40geAFS.js → tslib-l0sNRNKZ.js} +0 -0
  68. /package/dist/assets/{vue-demi-w40geAFS.js → vue-demi-l0sNRNKZ.js} +0 -0
  69. /package/dist/assets/{zrender-w40geAFS.js → zrender-l0sNRNKZ.js} +0 -0
@@ -0,0 +1,190 @@
1
+ import{_ as Jc}from"./monaco-editor-DzwMy79G.js";import{an as zt,d as O,_ as w,a4 as Yi,j as T,o as y,S as $,U as S,M as le,O as ue,P as Tt,W as Ke,G as An,r as B,f as ce,ab as Jt,u as d,c as R,Q as ve,Z as ee,a as I,X as M,Y as de,F as ne,a9 as oe,ad as wt,am as Ot,J as Oe,R as qc,t as _r,h as Un,ao as ks,w as $s,n as bt,V as Bt,T as Wc,a1 as qt,L as Lo,ae as on,aa as Tn,a5 as an,D as Kc,i as Gi,I as Zi,ar as Uo,m as hi,at as js,av as Yc,bD as $t,$ as cn,bB as mi,aU as Gc,s as fi,aC as Vs}from"./@vue-B9G3NdkG.js";import{f as Zc,a as Cr,b as Xi,c as Xc,d as Qc,e as ed,g as Ar,h as Ce,i as We,j as td,k as Qi,l as xr,m as eo,n as tt,o as Es,p as Jo,q as nd,r as to,s as rd,t as Cs,u as id,v as no,w as ro,x as od,y as ad,A as sd,B as Bn,C as ld,D as io,F as Wt,G as As,H as ud,I as oo,J as vi,K as gi,L as Be,M as cd,N as dd,O as pd,P as hd,Q as md,R as qo,S as Wo,T as fd,U as vd,z as gd,E as yd,V as Tr,W as bd,X as wd,Y as ao,Z as _d,_ as xd,$ as Sd}from"./element-plus-oSL2ERZK.js";import{Q as kd,w as $d,n as Ts,R as Bs,D as jd,P as Vd,k as zs,j as Ed,M as Os,E as so,B as Cd,d as Ad,S as Td}from"./@element-plus-UyKPWr8Y.js";import{n as Bd,p as Ko,q as dn,s as zd,v as Od,w as Dd,x as Id}from"./@vueuse-vj05gMbp.js";import{M as Br}from"./vue-Dt5VvRS2.js";import{b as Md}from"./vue-router-DfOys6cN.js";var Rd={ENV_TYPE:"live",NODE_ENV:"production"},Pd=typeof global=="object"&&global&&global.Object===Object&&global;const Ds=Pd;var Nd=typeof self=="object"&&self&&self.Object===Object&&self,Fd=Ds||Nd||Function("return this")();const st=Fd;var Hd=st.Symbol;const pt=Hd;var Is=Object.prototype,Ld=Is.hasOwnProperty,Ud=Is.toString,kn=pt?pt.toStringTag:void 0;function Jd(n){var e=Ld.call(n,kn),t=n[kn];try{n[kn]=void 0;var r=!0}catch{}var i=Ud.call(n);return r&&(e?n[kn]=t:delete n[kn]),i}var qd=Object.prototype,Wd=qd.toString;function Kd(n){return Wd.call(n)}var Yd="[object Null]",Gd="[object Undefined]",Yo=pt?pt.toStringTag:void 0;function xt(n){return n==null?n===void 0?Gd:Yd:Yo&&Yo in Object(n)?Jd(n):Kd(n)}function nt(n){return n!=null&&typeof n=="object"}var Zd="[object Symbol]";function zr(n){return typeof n=="symbol"||nt(n)&&xt(n)==Zd}function Ms(n,e){for(var t=-1,r=n==null?0:n.length,i=Array(r);++t<r;)i[t]=e(n[t],t,n);return i}var Xd=Array.isArray;const at=Xd;var Qd=1/0,Go=pt?pt.prototype:void 0,Zo=Go?Go.toString:void 0;function Rs(n){if(typeof n=="string")return n;if(at(n))return Ms(n,Rs)+"";if(zr(n))return Zo?Zo.call(n):"";var e=n+"";return e=="0"&&1/n==-Qd?"-0":e}var ep=/\s/;function tp(n){for(var e=n.length;e--&&ep.test(n.charAt(e)););return e}var np=/^\s+/;function rp(n){return n&&n.slice(0,tp(n)+1).replace(np,"")}function ze(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var Xo=NaN,ip=/^[-+]0x[0-9a-f]+$/i,op=/^0b[01]+$/i,ap=/^0o[0-7]+$/i,sp=parseInt;function Qo(n){if(typeof n=="number")return n;if(zr(n))return Xo;if(ze(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=ze(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=rp(n);var t=op.test(n);return t||ap.test(n)?sp(n.slice(2),t?2:8):ip.test(n)?Xo:+n}function Ps(n){return n}var lp="[object AsyncFunction]",up="[object Function]",cp="[object GeneratorFunction]",dp="[object Proxy]";function In(n){if(!ze(n))return!1;var e=xt(n);return e==up||e==cp||e==lp||e==dp}var pp=st["__core-js_shared__"];const Wr=pp;var ea=function(){var n=/[^.]+$/.exec(Wr&&Wr.keys&&Wr.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function hp(n){return!!ea&&ea in n}var mp=Function.prototype,fp=mp.toString;function Kt(n){if(n!=null){try{return fp.call(n)}catch{}try{return n+""}catch{}}return""}var vp=/[\\^$.*+?()[\]{}|]/g,gp=/^\[object .+?Constructor\]$/,yp=Function.prototype,bp=Object.prototype,wp=yp.toString,_p=bp.hasOwnProperty,xp=RegExp("^"+wp.call(_p).replace(vp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Sp(n){if(!ze(n)||hp(n))return!1;var e=In(n)?xp:gp;return e.test(Kt(n))}function kp(n,e){return n?.[e]}function Yt(n,e){var t=kp(n,e);return Sp(t)?t:void 0}var $p=Yt(st,"WeakMap");const yi=$p;var ta=Object.create,jp=function(){function n(){}return function(e){if(!ze(e))return{};if(ta)return ta(e);n.prototype=e;var t=new n;return n.prototype=void 0,t}}();const Vp=jp;function Ns(n,e,t){switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2])}return n.apply(e,t)}function Fs(n,e){var t=-1,r=n.length;for(e||(e=Array(r));++t<r;)e[t]=n[t];return e}var Ep=800,Cp=16,Ap=Date.now;function Tp(n){var e=0,t=0;return function(){var r=Ap(),i=Cp-(r-t);if(t=r,i>0){if(++e>=Ep)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function Bp(n){return function(){return n}}var zp=function(){try{var n=Yt(Object,"defineProperty");return n({},"",{}),n}catch{}}();const Sr=zp;var Op=Sr?function(n,e){return Sr(n,"toString",{configurable:!0,enumerable:!1,value:Bp(e),writable:!0})}:Ps;const Dp=Op;var Ip=Tp(Dp);const Mp=Ip;function Rp(n,e){for(var t=-1,r=n==null?0:n.length;++t<r&&e(n[t],t,n)!==!1;);return n}var Pp=9007199254740991,Np=/^(?:0|[1-9]\d*)$/;function lo(n,e){var t=typeof n;return e=e??Pp,!!e&&(t=="number"||t!="symbol"&&Np.test(n))&&n>-1&&n%1==0&&n<e}function uo(n,e,t){e=="__proto__"&&Sr?Sr(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[e]=t}function fn(n,e){return n===e||n!==n&&e!==e}var Fp=Object.prototype,Hp=Fp.hasOwnProperty;function co(n,e,t){var r=n[e];(!(Hp.call(n,e)&&fn(r,t))||t===void 0&&!(e in n))&&uo(n,e,t)}function vn(n,e,t,r){var i=!t;t||(t={});for(var o=-1,a=e.length;++o<a;){var s=e[o],l=r?r(t[s],n[s],s,t,n):void 0;l===void 0&&(l=n[s]),i?uo(t,s,l):co(t,s,l)}return t}var na=Math.max;function Lp(n,e,t){return e=na(e===void 0?n.length-1:e,0),function(){for(var r=arguments,i=-1,o=na(r.length-e,0),a=Array(o);++i<o;)a[i]=r[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=r[i];return s[e]=t(a),Ns(n,this,s)}}function Hs(n,e){return Mp(Lp(n,e,Ps),n+"")}var Up=9007199254740991;function Ls(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=Up}function Or(n){return n!=null&&Ls(n.length)&&!In(n)}function Us(n,e,t){if(!ze(t))return!1;var r=typeof e;return(r=="number"?Or(t)&&lo(e,t.length):r=="string"&&e in t)?fn(t[e],n):!1}function Js(n){return Hs(function(e,t){var r=-1,i=t.length,o=i>1?t[i-1]:void 0,a=i>2?t[2]:void 0;for(o=n.length>3&&typeof o=="function"?(i--,o):void 0,a&&Us(t[0],t[1],a)&&(o=i<3?void 0:o,i=1),e=Object(e);++r<i;){var s=t[r];s&&n(e,s,r,o)}return e})}var Jp=Object.prototype;function po(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||Jp;return n===t}function qp(n,e){for(var t=-1,r=Array(n);++t<n;)r[t]=e(t);return r}var Wp="[object Arguments]";function ra(n){return nt(n)&&xt(n)==Wp}var qs=Object.prototype,Kp=qs.hasOwnProperty,Yp=qs.propertyIsEnumerable,Gp=ra(function(){return arguments}())?ra:function(n){return nt(n)&&Kp.call(n,"callee")&&!Yp.call(n,"callee")};const bi=Gp;function Zp(){return!1}var Ws=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ia=Ws&&typeof module=="object"&&module&&!module.nodeType&&module,Xp=ia&&ia.exports===Ws,oa=Xp?st.Buffer:void 0,Qp=oa?oa.isBuffer:void 0,eh=Qp||Zp;const Mn=eh;var th="[object Arguments]",nh="[object Array]",rh="[object Boolean]",ih="[object Date]",oh="[object Error]",ah="[object Function]",sh="[object Map]",lh="[object Number]",uh="[object Object]",ch="[object RegExp]",dh="[object Set]",ph="[object String]",hh="[object WeakMap]",mh="[object ArrayBuffer]",fh="[object DataView]",vh="[object Float32Array]",gh="[object Float64Array]",yh="[object Int8Array]",bh="[object Int16Array]",wh="[object Int32Array]",_h="[object Uint8Array]",xh="[object Uint8ClampedArray]",Sh="[object Uint16Array]",kh="[object Uint32Array]",we={};we[vh]=we[gh]=we[yh]=we[bh]=we[wh]=we[_h]=we[xh]=we[Sh]=we[kh]=!0,we[th]=we[nh]=we[mh]=we[rh]=we[fh]=we[ih]=we[oh]=we[ah]=we[sh]=we[lh]=we[uh]=we[ch]=we[dh]=we[ph]=we[hh]=!1;function $h(n){return nt(n)&&Ls(n.length)&&!!we[xt(n)]}function ho(n){return function(e){return n(e)}}var Ks=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zn=Ks&&typeof module=="object"&&module&&!module.nodeType&&module,jh=zn&&zn.exports===Ks,Kr=jh&&Ds.process,Vh=function(){try{var n=zn&&zn.require&&zn.require("util").types;return n||Kr&&Kr.binding&&Kr.binding("util")}catch{}}();const ht=Vh;var aa=ht&&ht.isTypedArray,Eh=aa?ho(aa):$h;const mo=Eh;var Ch=Object.prototype,Ah=Ch.hasOwnProperty;function Ys(n,e){var t=at(n),r=!t&&bi(n),i=!t&&!r&&Mn(n),o=!t&&!r&&!i&&mo(n),a=t||r||i||o,s=a?qp(n.length,String):[],l=s.length;for(var u in n)(e||Ah.call(n,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||lo(u,l)))&&s.push(u);return s}function Gs(n,e){return function(t){return n(e(t))}}var Th=Gs(Object.keys,Object);const Bh=Th;var zh=Object.prototype,Oh=zh.hasOwnProperty;function Dh(n){if(!po(n))return Bh(n);var e=[];for(var t in Object(n))Oh.call(n,t)&&t!="constructor"&&e.push(t);return e}function Dr(n){return Or(n)?Ys(n):Dh(n)}function Ih(n){var e=[];if(n!=null)for(var t in Object(n))e.push(t);return e}var Mh=Object.prototype,Rh=Mh.hasOwnProperty;function Ph(n){if(!ze(n))return Ih(n);var e=po(n),t=[];for(var r in n)r=="constructor"&&(e||!Rh.call(n,r))||t.push(r);return t}function gn(n){return Or(n)?Ys(n,!0):Ph(n)}var Nh=Js(function(n,e,t,r){vn(e,gn(e),n,r)});const sa=Nh;var Fh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Hh=/^\w*$/;function Lh(n,e){if(at(n))return!1;var t=typeof n;return t=="number"||t=="symbol"||t=="boolean"||n==null||zr(n)?!0:Hh.test(n)||!Fh.test(n)||e!=null&&n in Object(e)}var Uh=Yt(Object,"create");const Rn=Uh;function Jh(){this.__data__=Rn?Rn(null):{},this.size=0}function qh(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var Wh="__lodash_hash_undefined__",Kh=Object.prototype,Yh=Kh.hasOwnProperty;function Gh(n){var e=this.__data__;if(Rn){var t=e[n];return t===Wh?void 0:t}return Yh.call(e,n)?e[n]:void 0}var Zh=Object.prototype,Xh=Zh.hasOwnProperty;function Qh(n){var e=this.__data__;return Rn?e[n]!==void 0:Xh.call(e,n)}var e0="__lodash_hash_undefined__";function t0(n,e){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=Rn&&e===void 0?e0:e,this}function Ut(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}Ut.prototype.clear=Jh,Ut.prototype.delete=qh,Ut.prototype.get=Gh,Ut.prototype.has=Qh,Ut.prototype.set=t0;function n0(){this.__data__=[],this.size=0}function Ir(n,e){for(var t=n.length;t--;)if(fn(n[t][0],e))return t;return-1}var r0=Array.prototype,i0=r0.splice;function o0(n){var e=this.__data__,t=Ir(e,n);if(t<0)return!1;var r=e.length-1;return t==r?e.pop():i0.call(e,t,1),--this.size,!0}function a0(n){var e=this.__data__,t=Ir(e,n);return t<0?void 0:e[t][1]}function s0(n){return Ir(this.__data__,n)>-1}function l0(n,e){var t=this.__data__,r=Ir(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}function gt(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}gt.prototype.clear=n0,gt.prototype.delete=o0,gt.prototype.get=a0,gt.prototype.has=s0,gt.prototype.set=l0;var u0=Yt(st,"Map");const Pn=u0;function c0(){this.size=0,this.__data__={hash:new Ut,map:new(Pn||gt),string:new Ut}}function d0(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}function Mr(n,e){var t=n.__data__;return d0(e)?t[typeof e=="string"?"string":"hash"]:t.map}function p0(n){var e=Mr(this,n).delete(n);return this.size-=e?1:0,e}function h0(n){return Mr(this,n).get(n)}function m0(n){return Mr(this,n).has(n)}function f0(n,e){var t=Mr(this,n),r=t.size;return t.set(n,e),this.size+=t.size==r?0:1,this}function yt(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}yt.prototype.clear=c0,yt.prototype.delete=p0,yt.prototype.get=h0,yt.prototype.has=m0,yt.prototype.set=f0;var v0="Expected a function";function fo(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new TypeError(v0);var t=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=t.cache;if(o.has(i))return o.get(i);var a=n.apply(this,r);return t.cache=o.set(i,a)||o,a};return t.cache=new(fo.Cache||yt),t}fo.Cache=yt;var g0=500;function y0(n){var e=fo(n,function(r){return t.size===g0&&t.clear(),r}),t=e.cache;return e}var b0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,w0=/\\(\\)?/g,_0=y0(function(n){var e=[];return n.charCodeAt(0)===46&&e.push(""),n.replace(b0,function(t,r,i,o){e.push(i?o.replace(w0,"$1"):r||t)}),e});const x0=_0;function Gt(n){return n==null?"":Rs(n)}function Zs(n,e){return at(n)?n:Lh(n,e)?[n]:x0(Gt(n))}var S0=1/0;function Xs(n){if(typeof n=="string"||zr(n))return n;var e=n+"";return e=="0"&&1/n==-S0?"-0":e}function k0(n,e){e=Zs(e,n);for(var t=0,r=e.length;n!=null&&t<r;)n=n[Xs(e[t++])];return t&&t==r?n:void 0}function cr(n,e,t){var r=n==null?void 0:k0(n,e);return r===void 0?t:r}function Qs(n,e){for(var t=-1,r=e.length,i=n.length;++t<r;)n[i+t]=e[t];return n}var $0=Gs(Object.getPrototypeOf,Object);const vo=$0;var j0="[object Object]",V0=Function.prototype,E0=Object.prototype,el=V0.toString,C0=E0.hasOwnProperty,A0=el.call(Object);function go(n){if(!nt(n)||xt(n)!=j0)return!1;var e=vo(n);if(e===null)return!0;var t=C0.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&el.call(t)==A0}var T0="[object DOMException]",B0="[object Error]";function tl(n){if(!nt(n))return!1;var e=xt(n);return e==B0||e==T0||typeof n.message=="string"&&typeof n.name=="string"&&!go(n)}var z0=Hs(function(n,e){try{return Ns(n,void 0,e)}catch(t){return tl(t)?t:new Error(t)}});const O0=z0;function D0(n,e,t){var r=-1,i=n.length;e<0&&(e=-e>i?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=n[r+e];return o}function I0(n,e,t){var r=n.length;return t=t===void 0?r:t,!e&&t>=r?n:D0(n,e,t)}var M0="\\ud800-\\udfff",R0="\\u0300-\\u036f",P0="\\ufe20-\\ufe2f",N0="\\u20d0-\\u20ff",F0=R0+P0+N0,H0="\\ufe0e\\ufe0f",L0="\\u200d",U0=RegExp("["+L0+M0+F0+H0+"]");function nl(n){return U0.test(n)}function J0(n){return n.split("")}var rl="\\ud800-\\udfff",q0="\\u0300-\\u036f",W0="\\ufe20-\\ufe2f",K0="\\u20d0-\\u20ff",Y0=q0+W0+K0,G0="\\ufe0e\\ufe0f",Z0="["+rl+"]",wi="["+Y0+"]",_i="\\ud83c[\\udffb-\\udfff]",X0="(?:"+wi+"|"+_i+")",il="[^"+rl+"]",ol="(?:\\ud83c[\\udde6-\\uddff]){2}",al="[\\ud800-\\udbff][\\udc00-\\udfff]",Q0="\\u200d",sl=X0+"?",ll="["+G0+"]?",em="(?:"+Q0+"(?:"+[il,ol,al].join("|")+")"+ll+sl+")*",tm=ll+sl+em,nm="(?:"+[il+wi+"?",wi,ol,al,Z0].join("|")+")",rm=RegExp(_i+"(?="+_i+")|"+nm+tm,"g");function im(n){return n.match(rm)||[]}function om(n){return nl(n)?im(n):J0(n)}function am(n){return function(e){e=Gt(e);var t=nl(e)?om(e):void 0,r=t?t[0]:e.charAt(0),i=t?I0(t,1).join(""):e.slice(1);return r[n]()+i}}var sm=am("toUpperCase");const yo=sm;function lm(n){return yo(Gt(n).toLowerCase())}function um(n,e,t,r){var i=-1,o=n==null?0:n.length;for(r&&o&&(t=n[++i]);++i<o;)t=e(t,n[i],i,n);return t}function ul(n){return function(e){return n?.[e]}}var cm={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},dm=ul(cm);const pm=dm;var hm=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,mm="\\u0300-\\u036f",fm="\\ufe20-\\ufe2f",vm="\\u20d0-\\u20ff",gm=mm+fm+vm,ym="["+gm+"]",bm=RegExp(ym,"g");function wm(n){return n=Gt(n),n&&n.replace(hm,pm).replace(bm,"")}var _m=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function xm(n){return n.match(_m)||[]}var Sm=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function km(n){return Sm.test(n)}var cl="\\ud800-\\udfff",$m="\\u0300-\\u036f",jm="\\ufe20-\\ufe2f",Vm="\\u20d0-\\u20ff",Em=$m+jm+Vm,dl="\\u2700-\\u27bf",pl="a-z\\xdf-\\xf6\\xf8-\\xff",Cm="\\xac\\xb1\\xd7\\xf7",Am="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Tm="\\u2000-\\u206f",Bm=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",hl="A-Z\\xc0-\\xd6\\xd8-\\xde",zm="\\ufe0e\\ufe0f",ml=Cm+Am+Tm+Bm,fl="['’]",la="["+ml+"]",Om="["+Em+"]",vl="\\d+",Dm="["+dl+"]",gl="["+pl+"]",yl="[^"+cl+ml+vl+dl+pl+hl+"]",Im="\\ud83c[\\udffb-\\udfff]",Mm="(?:"+Om+"|"+Im+")",Rm="[^"+cl+"]",bl="(?:\\ud83c[\\udde6-\\uddff]){2}",wl="[\\ud800-\\udbff][\\udc00-\\udfff]",nn="["+hl+"]",Pm="\\u200d",ua="(?:"+gl+"|"+yl+")",Nm="(?:"+nn+"|"+yl+")",ca="(?:"+fl+"(?:d|ll|m|re|s|t|ve))?",da="(?:"+fl+"(?:D|LL|M|RE|S|T|VE))?",_l=Mm+"?",xl="["+zm+"]?",Fm="(?:"+Pm+"(?:"+[Rm,bl,wl].join("|")+")"+xl+_l+")*",Hm="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Lm="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Um=xl+_l+Fm,Jm="(?:"+[Dm,bl,wl].join("|")+")"+Um,qm=RegExp([nn+"?"+gl+"+"+ca+"(?="+[la,nn,"$"].join("|")+")",Nm+"+"+da+"(?="+[la,nn+ua,"$"].join("|")+")",nn+"?"+ua+"+"+ca,nn+"+"+da,Lm,Hm,vl,Jm].join("|"),"g");function Wm(n){return n.match(qm)||[]}function Km(n,e,t){return n=Gt(n),e=t?void 0:e,e===void 0?km(n)?Wm(n):xm(n):n.match(e)||[]}var Ym="['’]",Gm=RegExp(Ym,"g");function Zm(n){return function(e){return um(Km(wm(e).replace(Gm,"")),n,"")}}var Xm=Zm(function(n,e,t){return e=e.toLowerCase(),n+(t?lm(e):e)});const Ht=Xm;function Qm(){this.__data__=new gt,this.size=0}function ef(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}function tf(n){return this.__data__.get(n)}function nf(n){return this.__data__.has(n)}var rf=200;function of(n,e){var t=this.__data__;if(t instanceof gt){var r=t.__data__;if(!Pn||r.length<rf-1)return r.push([n,e]),this.size=++t.size,this;t=this.__data__=new yt(r)}return t.set(n,e),this.size=t.size,this}function lt(n){var e=this.__data__=new gt(n);this.size=e.size}lt.prototype.clear=Qm,lt.prototype.delete=ef,lt.prototype.get=tf,lt.prototype.has=nf,lt.prototype.set=of;function af(n,e){return n&&vn(e,Dr(e),n)}function sf(n,e){return n&&vn(e,gn(e),n)}var Sl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,pa=Sl&&typeof module=="object"&&module&&!module.nodeType&&module,lf=pa&&pa.exports===Sl,ha=lf?st.Buffer:void 0,ma=ha?ha.allocUnsafe:void 0;function kl(n,e){if(e)return n.slice();var t=n.length,r=ma?ma(t):new n.constructor(t);return n.copy(r),r}function uf(n,e){for(var t=-1,r=n==null?0:n.length,i=0,o=[];++t<r;){var a=n[t];e(a,t,n)&&(o[i++]=a)}return o}function $l(){return[]}var cf=Object.prototype,df=cf.propertyIsEnumerable,fa=Object.getOwnPropertySymbols,pf=fa?function(n){return n==null?[]:(n=Object(n),uf(fa(n),function(e){return df.call(n,e)}))}:$l;const bo=pf;function hf(n,e){return vn(n,bo(n),e)}var mf=Object.getOwnPropertySymbols,ff=mf?function(n){for(var e=[];n;)Qs(e,bo(n)),n=vo(n);return e}:$l;const jl=ff;function vf(n,e){return vn(n,jl(n),e)}function Vl(n,e,t){var r=e(n);return at(n)?r:Qs(r,t(n))}function xi(n){return Vl(n,Dr,bo)}function gf(n){return Vl(n,gn,jl)}var yf=Yt(st,"DataView");const Si=yf;var bf=Yt(st,"Promise");const ki=bf;var wf=Yt(st,"Set");const $i=wf;var va="[object Map]",_f="[object Object]",ga="[object Promise]",ya="[object Set]",ba="[object WeakMap]",wa="[object DataView]",xf=Kt(Si),Sf=Kt(Pn),kf=Kt(ki),$f=Kt($i),jf=Kt(yi),Lt=xt;(Si&&Lt(new Si(new ArrayBuffer(1)))!=wa||Pn&&Lt(new Pn)!=va||ki&&Lt(ki.resolve())!=ga||$i&&Lt(new $i)!=ya||yi&&Lt(new yi)!=ba)&&(Lt=function(n){var e=xt(n),t=e==_f?n.constructor:void 0,r=t?Kt(t):"";if(r)switch(r){case xf:return wa;case Sf:return va;case kf:return ga;case $f:return ya;case jf:return ba}return e});const Nn=Lt;var Vf=Object.prototype,Ef=Vf.hasOwnProperty;function Cf(n){var e=n.length,t=new n.constructor(e);return e&&typeof n[0]=="string"&&Ef.call(n,"index")&&(t.index=n.index,t.input=n.input),t}var Af=st.Uint8Array;const kr=Af;function wo(n){var e=new n.constructor(n.byteLength);return new kr(e).set(new kr(n)),e}function Tf(n,e){var t=e?wo(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}var Bf=/\w*$/;function zf(n){var e=new n.constructor(n.source,Bf.exec(n));return e.lastIndex=n.lastIndex,e}var _a=pt?pt.prototype:void 0,xa=_a?_a.valueOf:void 0;function Of(n){return xa?Object(xa.call(n)):{}}function El(n,e){var t=e?wo(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}var Df="[object Boolean]",If="[object Date]",Mf="[object Map]",Rf="[object Number]",Pf="[object RegExp]",Nf="[object Set]",Ff="[object String]",Hf="[object Symbol]",Lf="[object ArrayBuffer]",Uf="[object DataView]",Jf="[object Float32Array]",qf="[object Float64Array]",Wf="[object Int8Array]",Kf="[object Int16Array]",Yf="[object Int32Array]",Gf="[object Uint8Array]",Zf="[object Uint8ClampedArray]",Xf="[object Uint16Array]",Qf="[object Uint32Array]";function ev(n,e,t){var r=n.constructor;switch(e){case Lf:return wo(n);case Df:case If:return new r(+n);case Uf:return Tf(n,t);case Jf:case qf:case Wf:case Kf:case Yf:case Gf:case Zf:case Xf:case Qf:return El(n,t);case Mf:return new r;case Rf:case Ff:return new r(n);case Pf:return zf(n);case Nf:return new r;case Hf:return Of(n)}}function Cl(n){return typeof n.constructor=="function"&&!po(n)?Vp(vo(n)):{}}var tv="[object Map]";function nv(n){return nt(n)&&Nn(n)==tv}var Sa=ht&&ht.isMap,rv=Sa?ho(Sa):nv;const iv=rv;var ov="[object Set]";function av(n){return nt(n)&&Nn(n)==ov}var ka=ht&&ht.isSet,sv=ka?ho(ka):av;const lv=sv;var uv=1,cv=2,dv=4,Al="[object Arguments]",pv="[object Array]",hv="[object Boolean]",mv="[object Date]",fv="[object Error]",Tl="[object Function]",vv="[object GeneratorFunction]",gv="[object Map]",yv="[object Number]",Bl="[object Object]",bv="[object RegExp]",wv="[object Set]",_v="[object String]",xv="[object Symbol]",Sv="[object WeakMap]",kv="[object ArrayBuffer]",$v="[object DataView]",jv="[object Float32Array]",Vv="[object Float64Array]",Ev="[object Int8Array]",Cv="[object Int16Array]",Av="[object Int32Array]",Tv="[object Uint8Array]",Bv="[object Uint8ClampedArray]",zv="[object Uint16Array]",Ov="[object Uint32Array]",be={};be[Al]=be[pv]=be[kv]=be[$v]=be[hv]=be[mv]=be[jv]=be[Vv]=be[Ev]=be[Cv]=be[Av]=be[gv]=be[yv]=be[Bl]=be[bv]=be[wv]=be[_v]=be[xv]=be[Tv]=be[Bv]=be[zv]=be[Ov]=!0,be[fv]=be[Tl]=be[Sv]=!1;function dr(n,e,t,r,i,o){var a,s=e&uv,l=e&cv,u=e&dv;if(t&&(a=i?t(n,r,i,o):t(n)),a!==void 0)return a;if(!ze(n))return n;var c=at(n);if(c){if(a=Cf(n),!s)return Fs(n,a)}else{var p=Nn(n),h=p==Tl||p==vv;if(Mn(n))return kl(n,s);if(p==Bl||p==Al||h&&!i){if(a=l||h?{}:Cl(n),!s)return l?vf(n,sf(a,n)):hf(n,af(a,n))}else{if(!be[p])return i?n:{};a=ev(n,p,s)}}o||(o=new lt);var m=o.get(n);if(m)return m;o.set(n,a),lv(n)?n.forEach(function(g){a.add(dr(g,e,t,g,n,o))}):iv(n)&&n.forEach(function(g,k){a.set(k,dr(g,e,t,k,n,o))});var f=u?l?gf:xi:l?gn:Dr,v=c?void 0:f(n);return Rp(v||n,function(g,k){v&&(k=g,g=n[k]),co(a,k,dr(g,e,t,k,n,o))}),a}var Dv=1,Iv=4;function Jn(n){return dr(n,Dv|Iv)}var Mv="__lodash_hash_undefined__";function Rv(n){return this.__data__.set(n,Mv),this}function Pv(n){return this.__data__.has(n)}function pr(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new yt;++e<t;)this.add(n[e])}pr.prototype.add=pr.prototype.push=Rv,pr.prototype.has=Pv;function Nv(n,e){for(var t=-1,r=n==null?0:n.length;++t<r;)if(e(n[t],t,n))return!0;return!1}function Fv(n,e){return n.has(e)}var Hv=1,Lv=2;function zl(n,e,t,r,i,o){var a=t&Hv,s=n.length,l=e.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(n),c=o.get(e);if(u&&c)return u==e&&c==n;var p=-1,h=!0,m=t&Lv?new pr:void 0;for(o.set(n,e),o.set(e,n);++p<s;){var f=n[p],v=e[p];if(r)var g=a?r(v,f,p,e,n,o):r(f,v,p,n,e,o);if(g!==void 0){if(g)continue;h=!1;break}if(m){if(!Nv(e,function(k,b){if(!Fv(m,b)&&(f===k||i(f,k,t,r,o)))return m.push(b)})){h=!1;break}}else if(!(f===v||i(f,v,t,r,o))){h=!1;break}}return o.delete(n),o.delete(e),h}function Uv(n){var e=-1,t=Array(n.size);return n.forEach(function(r,i){t[++e]=[i,r]}),t}function Jv(n){var e=-1,t=Array(n.size);return n.forEach(function(r){t[++e]=r}),t}var qv=1,Wv=2,Kv="[object Boolean]",Yv="[object Date]",Gv="[object Error]",Zv="[object Map]",Xv="[object Number]",Qv="[object RegExp]",e1="[object Set]",t1="[object String]",n1="[object Symbol]",r1="[object ArrayBuffer]",i1="[object DataView]",$a=pt?pt.prototype:void 0,Yr=$a?$a.valueOf:void 0;function o1(n,e,t,r,i,o,a){switch(t){case i1:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case r1:return!(n.byteLength!=e.byteLength||!o(new kr(n),new kr(e)));case Kv:case Yv:case Xv:return fn(+n,+e);case Gv:return n.name==e.name&&n.message==e.message;case Qv:case t1:return n==e+"";case Zv:var s=Uv;case e1:var l=r&qv;if(s||(s=Jv),n.size!=e.size&&!l)return!1;var u=a.get(n);if(u)return u==e;r|=Wv,a.set(n,e);var c=zl(s(n),s(e),r,i,o,a);return a.delete(n),c;case n1:if(Yr)return Yr.call(n)==Yr.call(e)}return!1}var a1=1,s1=Object.prototype,l1=s1.hasOwnProperty;function u1(n,e,t,r,i,o){var a=t&a1,s=xi(n),l=s.length,u=xi(e),c=u.length;if(l!=c&&!a)return!1;for(var p=l;p--;){var h=s[p];if(!(a?h in e:l1.call(e,h)))return!1}var m=o.get(n),f=o.get(e);if(m&&f)return m==e&&f==n;var v=!0;o.set(n,e),o.set(e,n);for(var g=a;++p<l;){h=s[p];var k=n[h],b=e[h];if(r)var _=a?r(b,k,h,e,n,o):r(k,b,h,n,e,o);if(!(_===void 0?k===b||i(k,b,t,r,o):_)){v=!1;break}g||(g=h=="constructor")}if(v&&!g){var V=n.constructor,j=e.constructor;V!=j&&"constructor"in n&&"constructor"in e&&!(typeof V=="function"&&V instanceof V&&typeof j=="function"&&j instanceof j)&&(v=!1)}return o.delete(n),o.delete(e),v}var c1=1,ja="[object Arguments]",Va="[object Array]",Xn="[object Object]",d1=Object.prototype,Ea=d1.hasOwnProperty;function p1(n,e,t,r,i,o){var a=at(n),s=at(e),l=a?Va:Nn(n),u=s?Va:Nn(e);l=l==ja?Xn:l,u=u==ja?Xn:u;var c=l==Xn,p=u==Xn,h=l==u;if(h&&Mn(n)){if(!Mn(e))return!1;a=!0,c=!1}if(h&&!c)return o||(o=new lt),a||mo(n)?zl(n,e,t,r,i,o):o1(n,e,l,t,r,i,o);if(!(t&c1)){var m=c&&Ea.call(n,"__wrapped__"),f=p&&Ea.call(e,"__wrapped__");if(m||f){var v=m?n.value():n,g=f?e.value():e;return o||(o=new lt),i(v,g,t,r,o)}}return h?(o||(o=new lt),u1(n,e,t,r,i,o)):!1}function Ol(n,e,t,r,i){return n===e?!0:n==null||e==null||!nt(n)&&!nt(e)?n!==n&&e!==e:p1(n,e,t,r,Ol,i)}function h1(n){return function(e,t,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var l=a[n?s:++i];if(t(o[l],l,o)===!1)break}return e}}var m1=h1();const f1=m1;var v1=function(){return st.Date.now()};const Gr=v1;var g1="Expected a function",y1=Math.max,b1=Math.min;function Dl(n,e,t){var r,i,o,a,s,l,u=0,c=!1,p=!1,h=!0;if(typeof n!="function")throw new TypeError(g1);e=Qo(e)||0,ze(t)&&(c=!!t.leading,p="maxWait"in t,o=p?y1(Qo(t.maxWait)||0,e):o,h="trailing"in t?!!t.trailing:h);function m(x){var E=r,D=i;return r=i=void 0,u=x,a=n.apply(D,E),a}function f(x){return u=x,s=setTimeout(k,e),c?m(x):a}function v(x){var E=x-l,D=x-u,Z=e-E;return p?b1(Z,o-D):Z}function g(x){var E=x-l,D=x-u;return l===void 0||E>=e||E<0||p&&D>=o}function k(){var x=Gr();if(g(x))return b(x);s=setTimeout(k,v(x))}function b(x){return s=void 0,h&&r?m(x):(r=i=void 0,a)}function _(){s!==void 0&&clearTimeout(s),u=0,r=l=i=s=void 0}function V(){return s===void 0?a:b(Gr())}function j(){var x=Gr(),E=g(x);if(r=arguments,i=this,l=x,E){if(s===void 0)return f(l);if(p)return clearTimeout(s),s=setTimeout(k,e),m(l)}return s===void 0&&(s=setTimeout(k,e)),a}return j.cancel=_,j.flush=V,j}function ji(n,e,t){(t!==void 0&&!fn(n[e],t)||t===void 0&&!(e in n))&&uo(n,e,t)}function w1(n){return nt(n)&&Or(n)}function Vi(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}function _1(n){return vn(n,gn(n))}function x1(n,e,t,r,i,o,a){var s=Vi(n,t),l=Vi(e,t),u=a.get(l);if(u){ji(n,t,u);return}var c=o?o(s,l,t+"",n,e,a):void 0,p=c===void 0;if(p){var h=at(l),m=!h&&Mn(l),f=!h&&!m&&mo(l);c=l,h||m||f?at(s)?c=s:w1(s)?c=Fs(s):m?(p=!1,c=kl(l,!0)):f?(p=!1,c=El(l,!0)):c=[]:go(l)||bi(l)?(c=s,bi(s)?c=_1(s):(!ze(s)||In(s))&&(c=Cl(l))):p=!1}p&&(a.set(l,c),i(c,l,r,o,a),a.delete(l)),ji(n,t,c)}function Il(n,e,t,r,i){n!==e&&f1(e,function(o,a){if(i||(i=new lt),ze(o))x1(n,e,a,t,Il,r,i);else{var s=r?r(Vi(n,a),o,a+"",n,e,i):void 0;s===void 0&&(s=o),ji(n,a,s)}},gn)}var S1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},k1=ul(S1);const $1=k1;var Ml=/[&<>"']/g,j1=RegExp(Ml.source);function V1(n){return n=Gt(n),n&&j1.test(n)?n.replace(Ml,$1):n}var E1="[object String]";function yn(n){return typeof n=="string"||!at(n)&&nt(n)&&xt(n)==E1}function C1(n,e){return Ms(e,function(t){return n[t]})}ht&&ht.isArrayBuffer;ht&&ht.isDate;function _o(n,e){return Ol(n,e)}var A1=Js(function(n,e,t){Il(n,e,t)});const ct=A1;function T1(n,e,t,r){if(!ze(n))return n;e=Zs(e,n);for(var i=-1,o=e.length,a=o-1,s=n;s!=null&&++i<o;){var l=Xs(e[i]),u=t;if(l==="__proto__"||l==="constructor"||l==="prototype")return n;if(i!=a){var c=s[l];u=r?r(c,l,s):void 0,u===void 0&&(u=ze(c)?c:lo(e[i+1])?[]:{})}co(s,l,u),s=s[l]}return n}function Zr(n,e,t){return n==null?n:T1(n,e,t)}var Rl=Object.prototype,B1=Rl.hasOwnProperty;function Ca(n,e,t,r){return n===void 0||fn(n,Rl[t])&&!B1.call(r,t)?e:n}var z1={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function O1(n){return"\\"+z1[n]}var D1=/<%=([\s\S]+?)%>/g;const Pl=D1;var I1=/<%-([\s\S]+?)%>/g;const M1=I1;var R1=/<%([\s\S]+?)%>/g;const P1=R1;var N1={escape:M1,evaluate:P1,interpolate:Pl,variable:"",imports:{_:{escape:V1}}};const Aa=N1;var F1="Invalid `variable` option passed into `_.template`",H1=/\b__p \+= '';/g,L1=/\b(__p \+=) '' \+/g,U1=/(__e\(.*?\)|\b__t\)) \+\n'';/g,J1=/[()=,{}\[\]\/\s]/,q1=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Qn=/($^)/,W1=/['\n\r\u2028\u2029\\]/g,K1=Object.prototype,Ta=K1.hasOwnProperty;function Nl(n,e,t){var r=Aa.imports._.templateSettings||Aa;t&&Us(n,e,t)&&(e=void 0),n=Gt(n),e=sa({},e,r,Ca);var i=sa({},e.imports,r.imports,Ca),o=Dr(i),a=C1(i,o),s,l,u=0,c=e.interpolate||Qn,p="__p += '",h=RegExp((e.escape||Qn).source+"|"+c.source+"|"+(c===Pl?q1:Qn).source+"|"+(e.evaluate||Qn).source+"|$","g"),m=Ta.call(e,"sourceURL")?"//# sourceURL="+(e.sourceURL+"").replace(/\s/g," ")+`
2
+ `:"";n.replace(h,function(g,k,b,_,V,j){return b||(b=_),p+=n.slice(u,j).replace(W1,O1),k&&(s=!0,p+=`' +
3
+ __e(`+k+`) +
4
+ '`),V&&(l=!0,p+=`';
5
+ `+V+`;
6
+ __p += '`),b&&(p+=`' +
7
+ ((__t = (`+b+`)) == null ? '' : __t) +
8
+ '`),u=j+g.length,g}),p+=`';
9
+ `;var f=Ta.call(e,"variable")&&e.variable;if(!f)p=`with (obj) {
10
+ `+p+`
11
+ }
12
+ `;else if(J1.test(f))throw new Error(F1);p=(l?p.replace(H1,""):p).replace(L1,"$1").replace(U1,"$1;"),p="function("+(f||"obj")+`) {
13
+ `+(f?"":`obj || (obj = {});
14
+ `)+"var __t, __p = ''"+(s?", __e = _.escape":"")+(l?`, __j = Array.prototype.join;
15
+ function print() { __p += __j.call(arguments, '') }
16
+ `:`;
17
+ `)+p+`return __p
18
+ }`;var v=O0(function(){return Function(o,m+"return "+p).apply(void 0,a)});if(v.source=p,tl(v))throw v;return v}var Y1="Expected a function";function G1(n,e,t){var r=!0,i=!0;if(typeof n!="function")throw new TypeError(Y1);return ze(t)&&(r="leading"in t?!!t.leading:r,i="trailing"in t?!!t.trailing:i),Dl(n,e,{leading:r,maxWait:e,trailing:i})}function $r(n){return yo(Ht(n))}var Fe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bn(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Fl={exports:{}};function Z1(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ba={exports:{}},za;function It(){return za||(za=1,function(n,e){(function(t,r){n.exports=r()})(Fe,function(){var t=t||function(r,i){var o;if(typeof window<"u"&&window.crypto&&(o=window.crypto),typeof self<"u"&&self.crypto&&(o=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(o=globalThis.crypto),!o&&typeof window<"u"&&window.msCrypto&&(o=window.msCrypto),!o&&typeof Fe<"u"&&Fe.crypto&&(o=Fe.crypto),!o&&typeof Z1=="function")try{o=require("crypto")}catch{}var a=function(){if(o){if(typeof o.getRandomValues=="function")try{return o.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof o.randomBytes=="function")try{return o.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function b(){}return function(_){var V;return b.prototype=_,V=new b,b.prototype=null,V}}(),l={},u=l.lib={},c=u.Base=function(){return{extend:function(b){var _=s(this);return b&&_.mixIn(b),(!_.hasOwnProperty("init")||this.init===_.init)&&(_.init=function(){_.$super.init.apply(this,arguments)}),_.init.prototype=_,_.$super=this,_},create:function(){var b=this.extend();return b.init.apply(b,arguments),b},init:function(){},mixIn:function(b){for(var _ in b)b.hasOwnProperty(_)&&(this[_]=b[_]);b.hasOwnProperty("toString")&&(this.toString=b.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),p=u.WordArray=c.extend({init:function(b,_){b=this.words=b||[],_!=i?this.sigBytes=_:this.sigBytes=b.length*4},toString:function(b){return(b||m).stringify(this)},concat:function(b){var _=this.words,V=b.words,j=this.sigBytes,x=b.sigBytes;if(this.clamp(),j%4)for(var E=0;E<x;E++){var D=V[E>>>2]>>>24-E%4*8&255;_[j+E>>>2]|=D<<24-(j+E)%4*8}else for(var Z=0;Z<x;Z+=4)_[j+Z>>>2]=V[Z>>>2];return this.sigBytes+=x,this},clamp:function(){var b=this.words,_=this.sigBytes;b[_>>>2]&=4294967295<<32-_%4*8,b.length=r.ceil(_/4)},clone:function(){var b=c.clone.call(this);return b.words=this.words.slice(0),b},random:function(b){for(var _=[],V=0;V<b;V+=4)_.push(a());return new p.init(_,b)}}),h=l.enc={},m=h.Hex={stringify:function(b){for(var _=b.words,V=b.sigBytes,j=[],x=0;x<V;x++){var E=_[x>>>2]>>>24-x%4*8&255;j.push((E>>>4).toString(16)),j.push((E&15).toString(16))}return j.join("")},parse:function(b){for(var _=b.length,V=[],j=0;j<_;j+=2)V[j>>>3]|=parseInt(b.substr(j,2),16)<<24-j%8*4;return new p.init(V,_/2)}},f=h.Latin1={stringify:function(b){for(var _=b.words,V=b.sigBytes,j=[],x=0;x<V;x++){var E=_[x>>>2]>>>24-x%4*8&255;j.push(String.fromCharCode(E))}return j.join("")},parse:function(b){for(var _=b.length,V=[],j=0;j<_;j++)V[j>>>2]|=(b.charCodeAt(j)&255)<<24-j%4*8;return new p.init(V,_)}},v=h.Utf8={stringify:function(b){try{return decodeURIComponent(escape(f.stringify(b)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(b){return f.parse(unescape(encodeURIComponent(b)))}},g=u.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new p.init,this._nDataBytes=0},_append:function(b){typeof b=="string"&&(b=v.parse(b)),this._data.concat(b),this._nDataBytes+=b.sigBytes},_process:function(b){var _,V=this._data,j=V.words,x=V.sigBytes,E=this.blockSize,D=E*4,Z=x/D;b?Z=r.ceil(Z):Z=r.max((Z|0)-this._minBufferSize,0);var C=Z*E,A=r.min(C*4,x);if(C){for(var F=0;F<C;F+=E)this._doProcessBlock(j,F);_=j.splice(0,C),V.sigBytes-=A}return new p.init(_,A)},clone:function(){var b=c.clone.call(this);return b._data=this._data.clone(),b},_minBufferSize:0});u.Hasher=g.extend({cfg:c.extend(),init:function(b){this.cfg=this.cfg.extend(b),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(b){return this._append(b),this._process(),this},finalize:function(b){b&&this._append(b);var _=this._doFinalize();return _},blockSize:16,_createHelper:function(b){return function(_,V){return new b.init(V).finalize(_)}},_createHmacHelper:function(b){return function(_,V){return new k.HMAC.init(b,V).finalize(_)}}});var k=l.algo={};return l}(Math);return t})}(Ba)),Ba.exports}(function(n,e){(function(t,r){n.exports=r(It())})(Fe,function(t){return function(r){var i=t,o=i.lib,a=o.WordArray,s=o.Hasher,l=i.algo,u=[];(function(){for(var v=0;v<64;v++)u[v]=r.abs(r.sin(v+1))*4294967296|0})();var c=l.MD5=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(v,g){for(var k=0;k<16;k++){var b=g+k,_=v[b];v[b]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}var V=this._hash.words,j=v[g+0],x=v[g+1],E=v[g+2],D=v[g+3],Z=v[g+4],C=v[g+5],A=v[g+6],F=v[g+7],z=v[g+8],G=v[g+9],L=v[g+10],W=v[g+11],Q=v[g+12],X=v[g+13],re=v[g+14],ie=v[g+15],N=V[0],U=V[1],J=V[2],K=V[3];N=p(N,U,J,K,j,7,u[0]),K=p(K,N,U,J,x,12,u[1]),J=p(J,K,N,U,E,17,u[2]),U=p(U,J,K,N,D,22,u[3]),N=p(N,U,J,K,Z,7,u[4]),K=p(K,N,U,J,C,12,u[5]),J=p(J,K,N,U,A,17,u[6]),U=p(U,J,K,N,F,22,u[7]),N=p(N,U,J,K,z,7,u[8]),K=p(K,N,U,J,G,12,u[9]),J=p(J,K,N,U,L,17,u[10]),U=p(U,J,K,N,W,22,u[11]),N=p(N,U,J,K,Q,7,u[12]),K=p(K,N,U,J,X,12,u[13]),J=p(J,K,N,U,re,17,u[14]),U=p(U,J,K,N,ie,22,u[15]),N=h(N,U,J,K,x,5,u[16]),K=h(K,N,U,J,A,9,u[17]),J=h(J,K,N,U,W,14,u[18]),U=h(U,J,K,N,j,20,u[19]),N=h(N,U,J,K,C,5,u[20]),K=h(K,N,U,J,L,9,u[21]),J=h(J,K,N,U,ie,14,u[22]),U=h(U,J,K,N,Z,20,u[23]),N=h(N,U,J,K,G,5,u[24]),K=h(K,N,U,J,re,9,u[25]),J=h(J,K,N,U,D,14,u[26]),U=h(U,J,K,N,z,20,u[27]),N=h(N,U,J,K,X,5,u[28]),K=h(K,N,U,J,E,9,u[29]),J=h(J,K,N,U,F,14,u[30]),U=h(U,J,K,N,Q,20,u[31]),N=m(N,U,J,K,C,4,u[32]),K=m(K,N,U,J,z,11,u[33]),J=m(J,K,N,U,W,16,u[34]),U=m(U,J,K,N,re,23,u[35]),N=m(N,U,J,K,x,4,u[36]),K=m(K,N,U,J,Z,11,u[37]),J=m(J,K,N,U,F,16,u[38]),U=m(U,J,K,N,L,23,u[39]),N=m(N,U,J,K,X,4,u[40]),K=m(K,N,U,J,j,11,u[41]),J=m(J,K,N,U,D,16,u[42]),U=m(U,J,K,N,A,23,u[43]),N=m(N,U,J,K,G,4,u[44]),K=m(K,N,U,J,Q,11,u[45]),J=m(J,K,N,U,ie,16,u[46]),U=m(U,J,K,N,E,23,u[47]),N=f(N,U,J,K,j,6,u[48]),K=f(K,N,U,J,F,10,u[49]),J=f(J,K,N,U,re,15,u[50]),U=f(U,J,K,N,C,21,u[51]),N=f(N,U,J,K,Q,6,u[52]),K=f(K,N,U,J,D,10,u[53]),J=f(J,K,N,U,L,15,u[54]),U=f(U,J,K,N,x,21,u[55]),N=f(N,U,J,K,z,6,u[56]),K=f(K,N,U,J,ie,10,u[57]),J=f(J,K,N,U,A,15,u[58]),U=f(U,J,K,N,X,21,u[59]),N=f(N,U,J,K,Z,6,u[60]),K=f(K,N,U,J,W,10,u[61]),J=f(J,K,N,U,E,15,u[62]),U=f(U,J,K,N,G,21,u[63]),V[0]=V[0]+N|0,V[1]=V[1]+U|0,V[2]=V[2]+J|0,V[3]=V[3]+K|0},_doFinalize:function(){var v=this._data,g=v.words,k=this._nDataBytes*8,b=v.sigBytes*8;g[b>>>5]|=128<<24-b%32;var _=r.floor(k/4294967296),V=k;g[(b+64>>>9<<4)+15]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,g[(b+64>>>9<<4)+14]=(V<<8|V>>>24)&16711935|(V<<24|V>>>8)&4278255360,v.sigBytes=(g.length+1)*4,this._process();for(var j=this._hash,x=j.words,E=0;E<4;E++){var D=x[E];x[E]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360}return j},clone:function(){var v=s.clone.call(this);return v._hash=this._hash.clone(),v}});function p(v,g,k,b,_,V,j){var x=v+(g&k|~g&b)+_+j;return(x<<V|x>>>32-V)+g}function h(v,g,k,b,_,V,j){var x=v+(g&b|k&~b)+_+j;return(x<<V|x>>>32-V)+g}function m(v,g,k,b,_,V,j){var x=v+(g^k^b)+_+j;return(x<<V|x>>>32-V)+g}function f(v,g,k,b,_,V,j){var x=v+(k^(g|~b))+_+j;return(x<<V|x>>>32-V)+g}i.MD5=s._createHelper(c),i.HmacMD5=s._createHmacHelper(c)}(Math),t.MD5})})(Fl);var Hl=Fl.exports;bn(Hl);var Ll={exports:{}};(function(n,e){(function(t,r){n.exports=r(It())})(Fe,function(t){return function(){var r=t,i=r.lib,o=i.WordArray,a=r.enc;a.Base64={stringify:function(l){var u=l.words,c=l.sigBytes,p=this._map;l.clamp();for(var h=[],m=0;m<c;m+=3)for(var f=u[m>>>2]>>>24-m%4*8&255,v=u[m+1>>>2]>>>24-(m+1)%4*8&255,g=u[m+2>>>2]>>>24-(m+2)%4*8&255,k=f<<16|v<<8|g,b=0;b<4&&m+b*.75<c;b++)h.push(p.charAt(k>>>6*(3-b)&63));var _=p.charAt(64);if(_)for(;h.length%4;)h.push(_);return h.join("")},parse:function(l){var u=l.length,c=this._map,p=this._reverseMap;if(!p){p=this._reverseMap=[];for(var h=0;h<c.length;h++)p[c.charCodeAt(h)]=h}var m=c.charAt(64);if(m){var f=l.indexOf(m);f!==-1&&(u=f)}return s(l,u,p)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(l,u,c){for(var p=[],h=0,m=0;m<u;m++)if(m%4){var f=c[l.charCodeAt(m-1)]<<m%4*2,v=c[l.charCodeAt(m)]>>>6-m%4*2,g=f|v;p[h>>>2]|=g<<24-h%4*8,h++}return o.create(p,h)}}(),t.enc.Base64})})(Ll);var Ul=Ll.exports;bn(Ul);var Jl={exports:{}};(function(n,e){(function(t,r){n.exports=r(It())})(Fe,function(t){return t.enc.Utf8})})(Jl);var X1=Jl.exports;bn(X1);var ql={exports:{}},Oa={exports:{}},Da={exports:{}},Ia;function Q1(){return Ia||(Ia=1,function(n,e){(function(t,r){n.exports=r(It())})(Fe,function(t){return function(){var r=t,i=r.lib,o=i.WordArray,a=i.Hasher,s=r.algo,l=[],u=s.SHA1=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(c,p){for(var h=this._hash.words,m=h[0],f=h[1],v=h[2],g=h[3],k=h[4],b=0;b<80;b++){if(b<16)l[b]=c[p+b]|0;else{var _=l[b-3]^l[b-8]^l[b-14]^l[b-16];l[b]=_<<1|_>>>31}var V=(m<<5|m>>>27)+k+l[b];b<20?V+=(f&v|~f&g)+1518500249:b<40?V+=(f^v^g)+1859775393:b<60?V+=(f&v|f&g|v&g)-1894007588:V+=(f^v^g)-899497514,k=g,g=v,v=f<<30|f>>>2,f=m,m=V}h[0]=h[0]+m|0,h[1]=h[1]+f|0,h[2]=h[2]+v|0,h[3]=h[3]+g|0,h[4]=h[4]+k|0},_doFinalize:function(){var c=this._data,p=c.words,h=this._nDataBytes*8,m=c.sigBytes*8;return p[m>>>5]|=128<<24-m%32,p[(m+64>>>9<<4)+14]=Math.floor(h/4294967296),p[(m+64>>>9<<4)+15]=h,c.sigBytes=p.length*4,this._process(),this._hash},clone:function(){var c=a.clone.call(this);return c._hash=this._hash.clone(),c}});r.SHA1=a._createHelper(u),r.HmacSHA1=a._createHmacHelper(u)}(),t.SHA1})}(Da)),Da.exports}var Ma={exports:{}},Ra;function eg(){return Ra||(Ra=1,function(n,e){(function(t,r){n.exports=r(It())})(Fe,function(t){(function(){var r=t,i=r.lib,o=i.Base,a=r.enc,s=a.Utf8,l=r.algo;l.HMAC=o.extend({init:function(u,c){u=this._hasher=new u.init,typeof c=="string"&&(c=s.parse(c));var p=u.blockSize,h=p*4;c.sigBytes>h&&(c=u.finalize(c)),c.clamp();for(var m=this._oKey=c.clone(),f=this._iKey=c.clone(),v=m.words,g=f.words,k=0;k<p;k++)v[k]^=1549556828,g[k]^=909522486;m.sigBytes=f.sigBytes=h,this.reset()},reset:function(){var u=this._hasher;u.reset(),u.update(this._iKey)},update:function(u){return this._hasher.update(u),this},finalize:function(u){var c=this._hasher,p=c.finalize(u);c.reset();var h=c.finalize(this._oKey.clone().concat(p));return h}})})()})}(Ma)),Ma.exports}var Pa;function Wl(){return Pa||(Pa=1,function(n,e){(function(t,r,i){n.exports=r(It(),Q1(),eg())})(Fe,function(t){return function(){var r=t,i=r.lib,o=i.Base,a=i.WordArray,s=r.algo,l=s.MD5,u=s.EvpKDF=o.extend({cfg:o.extend({keySize:128/32,hasher:l,iterations:1}),init:function(c){this.cfg=this.cfg.extend(c)},compute:function(c,p){for(var h,m=this.cfg,f=m.hasher.create(),v=a.create(),g=v.words,k=m.keySize,b=m.iterations;g.length<k;){h&&f.update(h),h=f.update(c).finalize(p),f.reset();for(var _=1;_<b;_++)h=f.finalize(h),f.reset();v.concat(h)}return v.sigBytes=k*4,v}});r.EvpKDF=function(c,p,h){return u.create(h).compute(c,p)}}(),t.EvpKDF})}(Oa)),Oa.exports}var Na={exports:{}},Fa;function tg(){return Fa||(Fa=1,function(n,e){(function(t,r,i){n.exports=r(It(),Wl())})(Fe,function(t){t.lib.Cipher||function(r){var i=t,o=i.lib,a=o.Base,s=o.WordArray,l=o.BufferedBlockAlgorithm,u=i.enc;u.Utf8;var c=u.Base64,p=i.algo,h=p.EvpKDF,m=o.Cipher=l.extend({cfg:a.extend(),createEncryptor:function(C,A){return this.create(this._ENC_XFORM_MODE,C,A)},createDecryptor:function(C,A){return this.create(this._DEC_XFORM_MODE,C,A)},init:function(C,A,F){this.cfg=this.cfg.extend(F),this._xformMode=C,this._key=A,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(C){return this._append(C),this._process()},finalize:function(C){C&&this._append(C);var A=this._doFinalize();return A},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function C(A){return typeof A=="string"?Z:x}return function(A){return{encrypt:function(F,z,G){return C(z).encrypt(A,F,z,G)},decrypt:function(F,z,G){return C(z).decrypt(A,F,z,G)}}}}()});o.StreamCipher=m.extend({_doFinalize:function(){var C=this._process(!0);return C},blockSize:1});var f=i.mode={},v=o.BlockCipherMode=a.extend({createEncryptor:function(C,A){return this.Encryptor.create(C,A)},createDecryptor:function(C,A){return this.Decryptor.create(C,A)},init:function(C,A){this._cipher=C,this._iv=A}}),g=f.CBC=function(){var C=v.extend();C.Encryptor=C.extend({processBlock:function(F,z){var G=this._cipher,L=G.blockSize;A.call(this,F,z,L),G.encryptBlock(F,z),this._prevBlock=F.slice(z,z+L)}}),C.Decryptor=C.extend({processBlock:function(F,z){var G=this._cipher,L=G.blockSize,W=F.slice(z,z+L);G.decryptBlock(F,z),A.call(this,F,z,L),this._prevBlock=W}});function A(F,z,G){var L,W=this._iv;W?(L=W,this._iv=r):L=this._prevBlock;for(var Q=0;Q<G;Q++)F[z+Q]^=L[Q]}return C}(),k=i.pad={},b=k.Pkcs7={pad:function(C,A){for(var F=A*4,z=F-C.sigBytes%F,G=z<<24|z<<16|z<<8|z,L=[],W=0;W<z;W+=4)L.push(G);var Q=s.create(L,z);C.concat(Q)},unpad:function(C){var A=C.words[C.sigBytes-1>>>2]&255;C.sigBytes-=A}};o.BlockCipher=m.extend({cfg:m.cfg.extend({mode:g,padding:b}),reset:function(){var C;m.reset.call(this);var A=this.cfg,F=A.iv,z=A.mode;this._xformMode==this._ENC_XFORM_MODE?C=z.createEncryptor:(C=z.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==C?this._mode.init(this,F&&F.words):(this._mode=C.call(z,this,F&&F.words),this._mode.__creator=C)},_doProcessBlock:function(C,A){this._mode.processBlock(C,A)},_doFinalize:function(){var C,A=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(A.pad(this._data,this.blockSize),C=this._process(!0)):(C=this._process(!0),A.unpad(C)),C},blockSize:128/32});var _=o.CipherParams=a.extend({init:function(C){this.mixIn(C)},toString:function(C){return(C||this.formatter).stringify(this)}}),V=i.format={},j=V.OpenSSL={stringify:function(C){var A,F=C.ciphertext,z=C.salt;return z?A=s.create([1398893684,1701076831]).concat(z).concat(F):A=F,A.toString(c)},parse:function(C){var A,F=c.parse(C),z=F.words;return z[0]==1398893684&&z[1]==1701076831&&(A=s.create(z.slice(2,4)),z.splice(0,4),F.sigBytes-=16),_.create({ciphertext:F,salt:A})}},x=o.SerializableCipher=a.extend({cfg:a.extend({format:j}),encrypt:function(C,A,F,z){z=this.cfg.extend(z);var G=C.createEncryptor(F,z),L=G.finalize(A),W=G.cfg;return _.create({ciphertext:L,key:F,iv:W.iv,algorithm:C,mode:W.mode,padding:W.padding,blockSize:C.blockSize,formatter:z.format})},decrypt:function(C,A,F,z){z=this.cfg.extend(z),A=this._parse(A,z.format);var G=C.createDecryptor(F,z).finalize(A.ciphertext);return G},_parse:function(C,A){return typeof C=="string"?A.parse(C,this):C}}),E=i.kdf={},D=E.OpenSSL={execute:function(C,A,F,z,G){if(z||(z=s.random(64/8)),G)var L=h.create({keySize:A+F,hasher:G}).compute(C,z);else var L=h.create({keySize:A+F}).compute(C,z);var W=s.create(L.words.slice(A),F*4);return L.sigBytes=A*4,_.create({key:L,iv:W,salt:z})}},Z=o.PasswordBasedCipher=x.extend({cfg:x.cfg.extend({kdf:D}),encrypt:function(C,A,F,z){z=this.cfg.extend(z);var G=z.kdf.execute(F,C.keySize,C.ivSize,z.salt,z.hasher);z.iv=G.iv;var L=x.encrypt.call(this,C,A,G.key,z);return L.mixIn(G),L},decrypt:function(C,A,F,z){z=this.cfg.extend(z),A=this._parse(A,z.format);var G=z.kdf.execute(F,C.keySize,C.ivSize,A.salt,z.hasher);z.iv=G.iv;var L=x.decrypt.call(this,C,A,G.key,z);return L}})}()})}(Na)),Na.exports}(function(n,e){(function(t,r,i){n.exports=r(It(),Ul,Hl,Wl(),tg())})(Fe,function(t){return function(){var r=t,i=r.lib,o=i.BlockCipher,a=r.algo,s=[],l=[],u=[],c=[],p=[],h=[],m=[],f=[],v=[],g=[];(function(){for(var _=[],V=0;V<256;V++)V<128?_[V]=V<<1:_[V]=V<<1^283;for(var j=0,x=0,V=0;V<256;V++){var E=x^x<<1^x<<2^x<<3^x<<4;E=E>>>8^E&255^99,s[j]=E,l[E]=j;var D=_[j],Z=_[D],C=_[Z],A=_[E]*257^E*16843008;u[j]=A<<24|A>>>8,c[j]=A<<16|A>>>16,p[j]=A<<8|A>>>24,h[j]=A;var A=C*16843009^Z*65537^D*257^j*16843008;m[E]=A<<24|A>>>8,f[E]=A<<16|A>>>16,v[E]=A<<8|A>>>24,g[E]=A,j?(j=D^_[_[_[C^D]]],x^=_[_[x]]):j=x=1}})();var k=[0,1,2,4,8,16,32,64,128,27,54],b=a.AES=o.extend({_doReset:function(){var _;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var V=this._keyPriorReset=this._key,j=V.words,x=V.sigBytes/4,E=this._nRounds=x+6,D=(E+1)*4,Z=this._keySchedule=[],C=0;C<D;C++)C<x?Z[C]=j[C]:(_=Z[C-1],C%x?x>6&&C%x==4&&(_=s[_>>>24]<<24|s[_>>>16&255]<<16|s[_>>>8&255]<<8|s[_&255]):(_=_<<8|_>>>24,_=s[_>>>24]<<24|s[_>>>16&255]<<16|s[_>>>8&255]<<8|s[_&255],_^=k[C/x|0]<<24),Z[C]=Z[C-x]^_);for(var A=this._invKeySchedule=[],F=0;F<D;F++){var C=D-F;if(F%4)var _=Z[C];else var _=Z[C-4];F<4||C<=4?A[F]=_:A[F]=m[s[_>>>24]]^f[s[_>>>16&255]]^v[s[_>>>8&255]]^g[s[_&255]]}}},encryptBlock:function(_,V){this._doCryptBlock(_,V,this._keySchedule,u,c,p,h,s)},decryptBlock:function(_,V){var j=_[V+1];_[V+1]=_[V+3],_[V+3]=j,this._doCryptBlock(_,V,this._invKeySchedule,m,f,v,g,l);var j=_[V+1];_[V+1]=_[V+3],_[V+3]=j},_doCryptBlock:function(_,V,j,x,E,D,Z,C){for(var A=this._nRounds,F=_[V]^j[0],z=_[V+1]^j[1],G=_[V+2]^j[2],L=_[V+3]^j[3],W=4,Q=1;Q<A;Q++){var X=x[F>>>24]^E[z>>>16&255]^D[G>>>8&255]^Z[L&255]^j[W++],re=x[z>>>24]^E[G>>>16&255]^D[L>>>8&255]^Z[F&255]^j[W++],ie=x[G>>>24]^E[L>>>16&255]^D[F>>>8&255]^Z[z&255]^j[W++],N=x[L>>>24]^E[F>>>16&255]^D[z>>>8&255]^Z[G&255]^j[W++];F=X,z=re,G=ie,L=N}var X=(C[F>>>24]<<24|C[z>>>16&255]<<16|C[G>>>8&255]<<8|C[L&255])^j[W++],re=(C[z>>>24]<<24|C[G>>>16&255]<<16|C[L>>>8&255]<<8|C[F&255])^j[W++],ie=(C[G>>>24]<<24|C[L>>>16&255]<<16|C[F>>>8&255]<<8|C[z&255])^j[W++],N=(C[L>>>24]<<24|C[F>>>16&255]<<16|C[z>>>8&255]<<8|C[G&255])^j[W++];_[V]=X,_[V+1]=re,_[V+2]=ie,_[V+3]=N},keySize:256/32});r.AES=o._createHelper(b)}(),t.AES})})(ql);var ng=ql.exports;bn(ng);var rg="0123456789abcdefghijklmnopqrstuvwxyz";function Ha(n){return rg.charAt(n)}function ig(n,e){return n&e}function er(n,e){return n|e}function La(n,e){return n^e}function Ua(n,e){return n&~e}function og(n){if(n==0)return-1;var e=0;return n&65535||(n>>=16,e+=16),n&255||(n>>=8,e+=8),n&15||(n>>=4,e+=4),n&3||(n>>=2,e+=2),n&1||++e,e}function ag(n){for(var e=0;n!=0;)n&=n-1,++e;return e}var $n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",sg="=";function Ja(n){var e,t,r="";for(e=0;e+3<=n.length;e+=3)t=parseInt(n.substring(e,e+3),16),r+=$n.charAt(t>>6)+$n.charAt(t&63);for(e+1==n.length?(t=parseInt(n.substring(e,e+1),16),r+=$n.charAt(t<<2)):e+2==n.length&&(t=parseInt(n.substring(e,e+2),16),r+=$n.charAt(t>>2)+$n.charAt((t&3)<<4));(r.length&3)>0;)r+=sg;return r}var Qt,lg={decode:function(n){var e;if(Qt===void 0){var t="0123456789ABCDEF",r=` \f
19
+ \r  \u2028\u2029`;for(Qt={},e=0;e<16;++e)Qt[t.charAt(e)]=e;for(t=t.toLowerCase(),e=10;e<16;++e)Qt[t.charAt(e)]=e;for(e=0;e<r.length;++e)Qt[r.charAt(e)]=-1}var i=[],o=0,a=0;for(e=0;e<n.length;++e){var s=n.charAt(e);if(s=="=")break;if(s=Qt[s],s!=-1){if(s===void 0)throw new Error("Illegal character at offset "+e);o|=s,++a>=2?(i[i.length]=o,o=0,a=0):o<<=4}}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return i}},Ft,Ei={decode:function(n){var e;if(Ft===void 0){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=`= \f
20
+ \r  \u2028\u2029`;for(Ft=Object.create(null),e=0;e<64;++e)Ft[t.charAt(e)]=e;for(Ft["-"]=62,Ft._=63,e=0;e<r.length;++e)Ft[r.charAt(e)]=-1}var i=[],o=0,a=0;for(e=0;e<n.length;++e){var s=n.charAt(e);if(s=="=")break;if(s=Ft[s],s!=-1){if(s===void 0)throw new Error("Illegal character at offset "+e);o|=s,++a>=4?(i[i.length]=o>>16,i[i.length]=o>>8&255,i[i.length]=o&255,o=0,a=0):o<<=6}}switch(a){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:i[i.length]=o>>10;break;case 3:i[i.length]=o>>16,i[i.length]=o>>8&255;break}return i},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(n){var e=Ei.re.exec(n);if(e)if(e[1])n=e[1];else if(e[2])n=e[2];else throw new Error("RegExp out of sync");return Ei.decode(n)}},en=1e13,Vn=function(){function n(e){this.buf=[+e||0]}return n.prototype.mulAdd=function(e,t){var r=this.buf,i=r.length,o,a;for(o=0;o<i;++o)a=r[o]*e+t,a<en?t=0:(t=0|a/en,a-=t*en),r[o]=a;t>0&&(r[o]=t)},n.prototype.sub=function(e){var t=this.buf,r=t.length,i,o;for(i=0;i<r;++i)o=t[i]-e,o<0?(o+=en,e=1):e=0,t[i]=o;for(;t[t.length-1]===0;)t.pop()},n.prototype.toString=function(e){if((e||10)!=10)throw new Error("only base 10 is supported");for(var t=this.buf,r=t[t.length-1].toString(),i=t.length-2;i>=0;--i)r+=(en+t[i]).toString().substring(1);return r},n.prototype.valueOf=function(){for(var e=this.buf,t=0,r=e.length-1;r>=0;--r)t=t*en+e[r];return t},n.prototype.simplify=function(){var e=this.buf;return e.length==1?e[0]:this},n}(),Kl="…",ug=/^(\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)?)?$/,cg=/^(\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 sn(n,e){return n.length>e&&(n=n.substring(0,e)+Kl),n}var Xr=function(){function n(e,t){this.hexDigits="0123456789ABCDEF",e instanceof n?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=t)}return n.prototype.get=function(e){if(e===void 0&&(e=this.pos++),e>=this.enc.length)throw new Error("Requesting byte offset ".concat(e," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(e):this.enc[e]},n.prototype.hexByte=function(e){return this.hexDigits.charAt(e>>4&15)+this.hexDigits.charAt(e&15)},n.prototype.hexDump=function(e,t,r){for(var i="",o=e;o<t;++o)if(i+=this.hexByte(this.get(o)),r!==!0)switch(o&15){case 7:i+=" ";break;case 15:i+=`
21
+ `;break;default:i+=" "}return i},n.prototype.isASCII=function(e,t){for(var r=e;r<t;++r){var i=this.get(r);if(i<32||i>176)return!1}return!0},n.prototype.parseStringISO=function(e,t){for(var r="",i=e;i<t;++i)r+=String.fromCharCode(this.get(i));return r},n.prototype.parseStringUTF=function(e,t){for(var r="",i=e;i<t;){var o=this.get(i++);o<128?r+=String.fromCharCode(o):o>191&&o<224?r+=String.fromCharCode((o&31)<<6|this.get(i++)&63):r+=String.fromCharCode((o&15)<<12|(this.get(i++)&63)<<6|this.get(i++)&63)}return r},n.prototype.parseStringBMP=function(e,t){for(var r="",i,o,a=e;a<t;)i=this.get(a++),o=this.get(a++),r+=String.fromCharCode(i<<8|o);return r},n.prototype.parseTime=function(e,t,r){var i=this.parseStringISO(e,t),o=(r?ug:cg).exec(i);return o?(r&&(o[1]=+o[1],o[1]+=+o[1]<70?2e3:1900),i=o[1]+"-"+o[2]+"-"+o[3]+" "+o[4],o[5]&&(i+=":"+o[5],o[6]&&(i+=":"+o[6],o[7]&&(i+="."+o[7]))),o[8]&&(i+=" UTC",o[8]!="Z"&&(i+=o[8],o[9]&&(i+=":"+o[9]))),i):"Unrecognized time: "+i},n.prototype.parseInteger=function(e,t){for(var r=this.get(e),i=r>127,o=i?255:0,a,s="";r==o&&++e<t;)r=this.get(e);if(a=t-e,a===0)return i?-1:0;if(a>4){for(s=r,a<<=3;!((+s^o)&128);)s=+s<<1,--a;s="("+a+` bit)
22
+ `}i&&(r=r-256);for(var l=new Vn(r),u=e+1;u<t;++u)l.mulAdd(256,this.get(u));return s+l.toString()},n.prototype.parseBitString=function(e,t,r){for(var i=this.get(e),o=(t-e-1<<3)-i,a="("+o+` bit)
23
+ `,s="",l=e+1;l<t;++l){for(var u=this.get(l),c=l==t-1?i:0,p=7;p>=c;--p)s+=u>>p&1?"1":"0";if(s.length>r)return a+sn(s,r)}return a+s},n.prototype.parseOctetString=function(e,t,r){if(this.isASCII(e,t))return sn(this.parseStringISO(e,t),r);var i=t-e,o="("+i+` byte)
24
+ `;r/=2,i>r&&(t=e+r);for(var a=e;a<t;++a)o+=this.hexByte(this.get(a));return i>r&&(o+=Kl),o},n.prototype.parseOID=function(e,t,r){for(var i="",o=new Vn,a=0,s=e;s<t;++s){var l=this.get(s);if(o.mulAdd(128,l&127),a+=7,!(l&128)){if(i==="")if(o=o.simplify(),o instanceof Vn)o.sub(80),i="2."+o.toString();else{var u=o<80?o<40?0:1:2;i=u+"."+(o-u*40)}else i+="."+o.toString();if(i.length>r)return sn(i,r);o=new Vn,a=0}}return a>0&&(i+=".incomplete"),i},n}(),dg=function(){function n(e,t,r,i,o){if(!(i instanceof qa))throw new Error("Invalid tag value.");this.stream=e,this.header=t,this.length=r,this.tag=i,this.sub=o}return n.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()}},n.prototype.content=function(e){if(this.tag===void 0)return null;e===void 0&&(e=1/0);var t=this.posContent(),r=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+r,e);switch(this.tag.tagNumber){case 1:return this.stream.get(t)===0?"false":"true";case 2:return this.stream.parseInteger(t,t+r);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+r,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+r,e);case 6:return this.stream.parseOID(t,t+r,e);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return sn(this.stream.parseStringUTF(t,t+r),e);case 18:case 19:case 20:case 21:case 22:case 26:return sn(this.stream.parseStringISO(t,t+r),e);case 30:return sn(this.stream.parseStringBMP(t,t+r),e);case 23:case 24:return this.stream.parseTime(t,t+r,this.tag.tagNumber==23)}return null},n.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},n.prototype.toPrettyString=function(e){e===void 0&&(e="");var t=e+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(t+=" (encapsulates)"),t+=`
25
+ `,this.sub!==null){e+=" ";for(var r=0,i=this.sub.length;r<i;++r)t+=this.sub[r].toPrettyString(e)}return t},n.prototype.posStart=function(){return this.stream.pos},n.prototype.posContent=function(){return this.stream.pos+this.header},n.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},n.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},n.decodeLength=function(e){var t=e.get(),r=t&127;if(r==t)return r;if(r>6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(r===0)return null;t=0;for(var i=0;i<r;++i)t=t*256+e.get();return t},n.prototype.getHexStringValue=function(){var e=this.toHexString(),t=this.header*2,r=this.length*2;return e.substr(t,r)},n.decode=function(e){var t;e instanceof Xr?t=e:t=new Xr(e,0);var r=new Xr(t),i=new qa(t),o=n.decodeLength(t),a=t.pos,s=a-r.pos,l=null,u=function(){var p=[];if(o!==null){for(var h=a+o;t.pos<h;)p[p.length]=n.decode(t);if(t.pos!=h)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var m=n.decode(t);if(m.tag.isEOC())break;p[p.length]=m}o=a-t.pos}catch(f){throw new Error("Exception while decoding undefined length content: "+f)}return p};if(i.tagConstructed)l=u();else if(i.isUniversal()&&(i.tagNumber==3||i.tagNumber==4))try{if(i.tagNumber==3&&t.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");l=u();for(var c=0;c<l.length;++c)if(l[c].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{l=null}if(l===null){if(o===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);t.pos=a+Math.abs(o)}return new n(r,s,o,i,l)},n}(),qa=function(){function n(e){var t=e.get();if(this.tagClass=t>>6,this.tagConstructed=(t&32)!==0,this.tagNumber=t&31,this.tagNumber==31){var r=new Vn;do t=e.get(),r.mulAdd(128,t&127);while(t&128);this.tagNumber=r.simplify()}}return n.prototype.isUniversal=function(){return this.tagClass===0},n.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},n}(),Et,pg=0xdeadbeefcafe,Wa=(pg&16777215)==15715070,Ne=[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],hg=(1<<26)/Ne[Ne.length-1],se=function(){function n(e,t,r){e!=null&&(typeof e=="number"?this.fromNumber(e,t,r):t==null&&typeof e!="string"?this.fromString(e,256):this.fromString(e,t))}return n.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(e==16)t=4;else if(e==8)t=3;else if(e==2)t=1;else if(e==32)t=5;else if(e==4)t=2;else return this.toRadix(e);var r=(1<<t)-1,i,o=!1,a="",s=this.t,l=this.DB-s*this.DB%t;if(s-- >0)for(l<this.DB&&(i=this[s]>>l)>0&&(o=!0,a=Ha(i));s>=0;)l<t?(i=(this[s]&(1<<l)-1)<<t-l,i|=this[--s]>>(l+=this.DB-t)):(i=this[s]>>(l-=t)&r,l<=0&&(l+=this.DB,--s)),i>0&&(o=!0),o&&(a+=Ha(i));return o?a:"0"},n.prototype.negate=function(){var e=pe();return n.ZERO.subTo(this,e),e},n.prototype.abs=function(){return this.s<0?this.negate():this},n.prototype.compareTo=function(e){var t=this.s-e.s;if(t!=0)return t;var r=this.t;if(t=r-e.t,t!=0)return this.s<0?-t:t;for(;--r>=0;)if((t=this[r]-e[r])!=0)return t;return 0},n.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+tr(this[this.t-1]^this.s&this.DM)},n.prototype.mod=function(e){var t=pe();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(n.ZERO)>0&&e.subTo(t,t),t},n.prototype.modPowInt=function(e,t){var r;return e<256||t.isEven()?r=new Ka(t):r=new Ya(t),this.exp(e,r)},n.prototype.clone=function(){var e=pe();return this.copyTo(e),e},n.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]},n.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},n.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},n.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},n.prototype.toByteArray=function(){var e=this.t,t=[];t[0]=this.s;var r=this.DB-e*this.DB%8,i,o=0;if(e-- >0)for(r<this.DB&&(i=this[e]>>r)!=(this.s&this.DM)>>r&&(t[o++]=i|this.s<<this.DB-r);e>=0;)r<8?(i=(this[e]&(1<<r)-1)<<8-r,i|=this[--e]>>(r+=this.DB-8)):(i=this[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),i&128&&(i|=-256),o==0&&(this.s&128)!=(i&128)&&++o,(o>0||i!=this.s)&&(t[o++]=i);return t},n.prototype.equals=function(e){return this.compareTo(e)==0},n.prototype.min=function(e){return this.compareTo(e)<0?this:e},n.prototype.max=function(e){return this.compareTo(e)>0?this:e},n.prototype.and=function(e){var t=pe();return this.bitwiseTo(e,ig,t),t},n.prototype.or=function(e){var t=pe();return this.bitwiseTo(e,er,t),t},n.prototype.xor=function(e){var t=pe();return this.bitwiseTo(e,La,t),t},n.prototype.andNot=function(e){var t=pe();return this.bitwiseTo(e,Ua,t),t},n.prototype.not=function(){for(var e=pe(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},n.prototype.shiftLeft=function(e){var t=pe();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},n.prototype.shiftRight=function(e){var t=pe();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},n.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(this[e]!=0)return e*this.DB+og(this[e]);return this.s<0?this.t*this.DB:-1},n.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,r=0;r<this.t;++r)e+=ag(this[r]^t);return e},n.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?this.s!=0:(this[t]&1<<e%this.DB)!=0},n.prototype.setBit=function(e){return this.changeBit(e,er)},n.prototype.clearBit=function(e){return this.changeBit(e,Ua)},n.prototype.flipBit=function(e){return this.changeBit(e,La)},n.prototype.add=function(e){var t=pe();return this.addTo(e,t),t},n.prototype.subtract=function(e){var t=pe();return this.subTo(e,t),t},n.prototype.multiply=function(e){var t=pe();return this.multiplyTo(e,t),t},n.prototype.divide=function(e){var t=pe();return this.divRemTo(e,t,null),t},n.prototype.remainder=function(e){var t=pe();return this.divRemTo(e,null,t),t},n.prototype.divideAndRemainder=function(e){var t=pe(),r=pe();return this.divRemTo(e,t,r),[t,r]},n.prototype.modPow=function(e,t){var r=e.bitLength(),i,o=Ct(1),a;if(r<=0)return o;r<18?i=1:r<48?i=3:r<144?i=4:r<768?i=5:i=6,r<8?a=new Ka(t):t.isEven()?a=new fg(t):a=new Ya(t);var s=[],l=3,u=i-1,c=(1<<i)-1;if(s[1]=a.convert(this),i>1){var p=pe();for(a.sqrTo(s[1],p);l<=c;)s[l]=pe(),a.mulTo(p,s[l-2],s[l]),l+=2}var h=e.t-1,m,f=!0,v=pe(),g;for(r=tr(e[h])-1;h>=0;){for(r>=u?m=e[h]>>r-u&c:(m=(e[h]&(1<<r+1)-1)<<u-r,h>0&&(m|=e[h-1]>>this.DB+r-u)),l=i;!(m&1);)m>>=1,--l;if((r-=l)<0&&(r+=this.DB,--h),f)s[m].copyTo(o),f=!1;else{for(;l>1;)a.sqrTo(o,v),a.sqrTo(v,o),l-=2;l>0?a.sqrTo(o,v):(g=o,o=v,v=g),a.mulTo(v,s[m],o)}for(;h>=0&&!(e[h]&1<<r);)a.sqrTo(o,v),g=o,o=v,v=g,--r<0&&(r=this.DB-1,--h)}return a.revert(o)},n.prototype.modInverse=function(e){var t=e.isEven();if(this.isEven()&&t||e.signum()==0)return n.ZERO;for(var r=e.clone(),i=this.clone(),o=Ct(1),a=Ct(0),s=Ct(0),l=Ct(1);r.signum()!=0;){for(;r.isEven();)r.rShiftTo(1,r),t?((!o.isEven()||!a.isEven())&&(o.addTo(this,o),a.subTo(e,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(e,a),a.rShiftTo(1,a);for(;i.isEven();)i.rShiftTo(1,i),t?((!s.isEven()||!l.isEven())&&(s.addTo(this,s),l.subTo(e,l)),s.rShiftTo(1,s)):l.isEven()||l.subTo(e,l),l.rShiftTo(1,l);r.compareTo(i)>=0?(r.subTo(i,r),t&&o.subTo(s,o),a.subTo(l,a)):(i.subTo(r,i),t&&s.subTo(o,s),l.subTo(a,l))}if(i.compareTo(n.ONE)!=0)return n.ZERO;if(l.compareTo(e)>=0)return l.subtract(e);if(l.signum()<0)l.addTo(e,l);else return l;return l.signum()<0?l.add(e):l},n.prototype.pow=function(e){return this.exp(e,new mg)},n.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(t.compareTo(r)<0){var i=t;t=r,r=i}var o=t.getLowestSetBit(),a=r.getLowestSetBit();if(a<0)return t;for(o<a&&(a=o),a>0&&(t.rShiftTo(a,t),r.rShiftTo(a,r));t.signum()>0;)(o=t.getLowestSetBit())>0&&t.rShiftTo(o,t),(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),t.compareTo(r)>=0?(t.subTo(r,t),t.rShiftTo(1,t)):(r.subTo(t,r),r.rShiftTo(1,r));return a>0&&r.lShiftTo(a,r),r},n.prototype.isProbablePrime=function(e){var t,r=this.abs();if(r.t==1&&r[0]<=Ne[Ne.length-1]){for(t=0;t<Ne.length;++t)if(r[0]==Ne[t])return!0;return!1}if(r.isEven())return!1;for(t=1;t<Ne.length;){for(var i=Ne[t],o=t+1;o<Ne.length&&i<hg;)i*=Ne[o++];for(i=r.modInt(i);t<o;)if(i%Ne[t++]==0)return!1}return r.millerRabin(e)},n.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},n.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},n.prototype.fromString=function(e,t){var r;if(t==16)r=4;else if(t==8)r=3;else if(t==256)r=8;else if(t==2)r=1;else if(t==32)r=5;else if(t==4)r=2;else{this.fromRadix(e,t);return}this.t=0,this.s=0;for(var i=e.length,o=!1,a=0;--i>=0;){var s=r==8?+e[i]&255:Za(e,i);if(s<0){e.charAt(i)=="-"&&(o=!0);continue}o=!1,a==0?this[this.t++]=s:a+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-a)-1)<<a,this[this.t++]=s>>this.DB-a):this[this.t-1]|=s<<a,a+=r,a>=this.DB&&(a-=this.DB)}r==8&&+e[0]&128&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),o&&n.ZERO.subTo(this,this)},n.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},n.prototype.dlShiftTo=function(e,t){var r;for(r=this.t-1;r>=0;--r)t[r+e]=this[r];for(r=e-1;r>=0;--r)t[r]=0;t.t=this.t+e,t.s=this.s},n.prototype.drShiftTo=function(e,t){for(var r=e;r<this.t;++r)t[r-e]=this[r];t.t=Math.max(this.t-e,0),t.s=this.s},n.prototype.lShiftTo=function(e,t){for(var r=e%this.DB,i=this.DB-r,o=(1<<i)-1,a=Math.floor(e/this.DB),s=this.s<<r&this.DM,l=this.t-1;l>=0;--l)t[l+a+1]=this[l]>>i|s,s=(this[l]&o)<<r;for(var l=a-1;l>=0;--l)t[l]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},n.prototype.rShiftTo=function(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t){t.t=0;return}var i=e%this.DB,o=this.DB-i,a=(1<<i)-1;t[0]=this[r]>>i;for(var s=r+1;s<this.t;++s)t[s-r-1]|=(this[s]&a)<<o,t[s-r]=this[s]>>i;i>0&&(t[this.t-r-1]|=(this.s&a)<<o),t.t=this.t-r,t.clamp()},n.prototype.subTo=function(e,t){for(var r=0,i=0,o=Math.min(e.t,this.t);r<o;)i+=this[r]-e[r],t[r++]=i&this.DM,i>>=this.DB;if(e.t<this.t){for(i-=e.s;r<this.t;)i+=this[r],t[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<e.t;)i-=e[r],t[r++]=i&this.DM,i>>=this.DB;i-=e.s}t.s=i<0?-1:0,i<-1?t[r++]=this.DV+i:i>0&&(t[r++]=i),t.t=r,t.clamp()},n.prototype.multiplyTo=function(e,t){var r=this.abs(),i=e.abs(),o=r.t;for(t.t=o+i.t;--o>=0;)t[o]=0;for(o=0;o<i.t;++o)t[o+r.t]=r.am(0,i[o],t,o,0,r.t);t.s=0,t.clamp(),this.s!=e.s&&n.ZERO.subTo(t,t)},n.prototype.squareTo=function(e){for(var t=this.abs(),r=e.t=2*t.t;--r>=0;)e[r]=0;for(r=0;r<t.t-1;++r){var i=t.am(r,t[r],e,2*r,0,1);(e[r+t.t]+=t.am(r+1,2*t[r],e,2*r+1,i,t.t-r-1))>=t.DV&&(e[r+t.t]-=t.DV,e[r+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(r,t[r],e,2*r,0,1)),e.s=0,e.clamp()},n.prototype.divRemTo=function(e,t,r){var i=e.abs();if(!(i.t<=0)){var o=this.abs();if(o.t<i.t){t?.fromInt(0),r!=null&&this.copyTo(r);return}r==null&&(r=pe());var a=pe(),s=this.s,l=e.s,u=this.DB-tr(i[i.t-1]);u>0?(i.lShiftTo(u,a),o.lShiftTo(u,r)):(i.copyTo(a),o.copyTo(r));var c=a.t,p=a[c-1];if(p!=0){var h=p*(1<<this.F1)+(c>1?a[c-2]>>this.F2:0),m=this.FV/h,f=(1<<this.F1)/h,v=1<<this.F2,g=r.t,k=g-c,b=t??pe();for(a.dlShiftTo(k,b),r.compareTo(b)>=0&&(r[r.t++]=1,r.subTo(b,r)),n.ONE.dlShiftTo(c,b),b.subTo(a,a);a.t<c;)a[a.t++]=0;for(;--k>=0;){var _=r[--g]==p?this.DM:Math.floor(r[g]*m+(r[g-1]+v)*f);if((r[g]+=a.am(0,_,r,k,0,c))<_)for(a.dlShiftTo(k,b),r.subTo(b,r);r[g]<--_;)r.subTo(b,r)}t!=null&&(r.drShiftTo(c,t),s!=l&&n.ZERO.subTo(t,t)),r.t=c,r.clamp(),u>0&&r.rShiftTo(u,r),s<0&&n.ZERO.subTo(r,r)}}},n.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(!(e&1))return 0;var t=e&3;return t=t*(2-(e&15)*t)&15,t=t*(2-(e&255)*t)&255,t=t*(2-((e&65535)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t},n.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},n.prototype.exp=function(e,t){if(e>4294967295||e<1)return n.ONE;var r=pe(),i=pe(),o=t.convert(this),a=tr(e)-1;for(o.copyTo(r);--a>=0;)if(t.sqrTo(r,i),(e&1<<a)>0)t.mulTo(i,o,r);else{var s=r;r=i,i=s}return t.revert(r)},n.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},n.prototype.toRadix=function(e){if(e==null&&(e=10),this.signum()==0||e<2||e>36)return"0";var t=this.chunkSize(e),r=Math.pow(e,t),i=Ct(r),o=pe(),a=pe(),s="";for(this.divRemTo(i,o,a);o.signum()>0;)s=(r+a.intValue()).toString(e).substr(1)+s,o.divRemTo(i,o,a);return a.intValue().toString(e)+s},n.prototype.fromRadix=function(e,t){this.fromInt(0),t==null&&(t=10);for(var r=this.chunkSize(t),i=Math.pow(t,r),o=!1,a=0,s=0,l=0;l<e.length;++l){var u=Za(e,l);if(u<0){e.charAt(l)=="-"&&this.signum()==0&&(o=!0);continue}s=t*s+u,++a>=r&&(this.dMultiply(i),this.dAddOffset(s,0),a=0,s=0)}a>0&&(this.dMultiply(Math.pow(t,a)),this.dAddOffset(s,0)),o&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(e,t,r){if(typeof t=="number")if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(n.ONE.shiftLeft(e-1),er,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(n.ONE.shiftLeft(e-1),this);else{var i=[],o=e&7;i.length=(e>>3)+1,t.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},n.prototype.bitwiseTo=function(e,t,r){var i,o,a=Math.min(e.t,this.t);for(i=0;i<a;++i)r[i]=t(this[i],e[i]);if(e.t<this.t){for(o=e.s&this.DM,i=a;i<this.t;++i)r[i]=t(this[i],o);r.t=this.t}else{for(o=this.s&this.DM,i=a;i<e.t;++i)r[i]=t(o,e[i]);r.t=e.t}r.s=t(this.s,e.s),r.clamp()},n.prototype.changeBit=function(e,t){var r=n.ONE.shiftLeft(e);return this.bitwiseTo(r,t,r),r},n.prototype.addTo=function(e,t){for(var r=0,i=0,o=Math.min(e.t,this.t);r<o;)i+=this[r]+e[r],t[r++]=i&this.DM,i>>=this.DB;if(e.t<this.t){for(i+=e.s;r<this.t;)i+=this[r],t[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<e.t;)i+=e[r],t[r++]=i&this.DM,i>>=this.DB;i+=e.s}t.s=i<0?-1:0,i>0?t[r++]=i:i<-1&&(t[r++]=this.DV+i),t.t=r,t.clamp()},n.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},n.prototype.dAddOffset=function(e,t){if(e!=0){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},n.prototype.multiplyLowerTo=function(e,t,r){var i=Math.min(this.t+e.t,t);for(r.s=0,r.t=i;i>0;)r[--i]=0;for(var o=r.t-this.t;i<o;++i)r[i+this.t]=this.am(0,e[i],r,i,0,this.t);for(var o=Math.min(e.t,t);i<o;++i)this.am(0,e[i],r,i,0,t-i);r.clamp()},n.prototype.multiplyUpperTo=function(e,t,r){--t;var i=r.t=this.t+e.t-t;for(r.s=0;--i>=0;)r[i]=0;for(i=Math.max(t-this.t,0);i<e.t;++i)r[this.t+i-t]=this.am(t-i,e[i],r,0,0,this.t+i-t);r.clamp(),r.drShiftTo(1,r)},n.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,r=this.s<0?e-1:0;if(this.t>0)if(t==0)r=this[0]%e;else for(var i=this.t-1;i>=0;--i)r=(t*r+this[i])%e;return r},n.prototype.millerRabin=function(e){var t=this.subtract(n.ONE),r=t.getLowestSetBit();if(r<=0)return!1;var i=t.shiftRight(r);e=e+1>>1,e>Ne.length&&(e=Ne.length);for(var o=pe(),a=0;a<e;++a){o.fromInt(Ne[Math.floor(Math.random()*Ne.length)]);var s=o.modPow(i,this);if(s.compareTo(n.ONE)!=0&&s.compareTo(t)!=0){for(var l=1;l++<r&&s.compareTo(t)!=0;)if(s=s.modPowInt(2,this),s.compareTo(n.ONE)==0)return!1;if(s.compareTo(t)!=0)return!1}}return!0},n.prototype.square=function(){var e=pe();return this.squareTo(e),e},n.prototype.gcda=function(e,t){var r=this.s<0?this.negate():this.clone(),i=e.s<0?e.negate():e.clone();if(r.compareTo(i)<0){var o=r;r=i,i=o}var a=r.getLowestSetBit(),s=i.getLowestSetBit();if(s<0){t(r);return}a<s&&(s=a),s>0&&(r.rShiftTo(s,r),i.rShiftTo(s,i));var l=function(){(a=r.getLowestSetBit())>0&&r.rShiftTo(a,r),(a=i.getLowestSetBit())>0&&i.rShiftTo(a,i),r.compareTo(i)>=0?(r.subTo(i,r),r.rShiftTo(1,r)):(i.subTo(r,i),i.rShiftTo(1,i)),r.signum()>0?setTimeout(l,0):(s>0&&i.lShiftTo(s,i),setTimeout(function(){t(i)},0))};setTimeout(l,10)},n.prototype.fromNumberAsync=function(e,t,r,i){if(typeof t=="number")if(e<2)this.fromInt(1);else{this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(n.ONE.shiftLeft(e-1),er,this),this.isEven()&&this.dAddOffset(1,0);var o=this,a=function(){o.dAddOffset(2,0),o.bitLength()>e&&o.subTo(n.ONE.shiftLeft(e-1),o),o.isProbablePrime(t)?setTimeout(function(){i()},0):setTimeout(a,0)};setTimeout(a,0)}else{var s=[],l=e&7;s.length=(e>>3)+1,t.nextBytes(s),l>0?s[0]&=(1<<l)-1:s[0]=0,this.fromString(s,256)}},n}(),mg=function(){function n(){}return n.prototype.convert=function(e){return e},n.prototype.revert=function(e){return e},n.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r)},n.prototype.sqrTo=function(e,t){e.squareTo(t)},n}(),Ka=function(){function n(e){this.m=e}return n.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},n.prototype.revert=function(e){return e},n.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},n.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},n.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},n}(),Ya=function(){function n(e){this.m=e,this.mp=e.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}return n.prototype.convert=function(e){var t=pe();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(se.ZERO)>0&&this.m.subTo(t,t),t},n.prototype.revert=function(e){var t=pe();return e.copyTo(t),this.reduce(t),t},n.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var r=e[t]&32767,i=r*this.mpl+((r*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(r=t+this.m.t,e[r]+=this.m.am(0,i,e,t,0,this.m.t);e[r]>=e.DV;)e[r]-=e.DV,e[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},n.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},n.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},n}(),fg=function(){function n(e){this.m=e,this.r2=pe(),this.q3=pe(),se.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return n.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=pe();return e.copyTo(t),this.reduce(t),t},n.prototype.revert=function(e){return e},n.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},n.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},n.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},n}();function pe(){return new se(null)}function ke(n,e){return new se(n,e)}var Ga=typeof navigator<"u";Ga&&Wa&&navigator.appName=="Microsoft Internet Explorer"?(se.prototype.am=function(n,e,t,r,i,o){for(var a=e&32767,s=e>>15;--o>=0;){var l=this[n]&32767,u=this[n++]>>15,c=s*l+u*a;l=a*l+((c&32767)<<15)+t[r]+(i&1073741823),i=(l>>>30)+(c>>>15)+s*u+(i>>>30),t[r++]=l&1073741823}return i},Et=30):Ga&&Wa&&navigator.appName!="Netscape"?(se.prototype.am=function(n,e,t,r,i,o){for(;--o>=0;){var a=e*this[n++]+t[r]+i;i=Math.floor(a/67108864),t[r++]=a&67108863}return i},Et=26):(se.prototype.am=function(n,e,t,r,i,o){for(var a=e&16383,s=e>>14;--o>=0;){var l=this[n]&16383,u=this[n++]>>14,c=s*l+u*a;l=a*l+((c&16383)<<14)+t[r]+i,i=(l>>28)+(c>>14)+s*u,t[r++]=l&268435455}return i},Et=28),se.prototype.DB=Et,se.prototype.DM=(1<<Et)-1,se.prototype.DV=1<<Et;var Qr=52;se.prototype.FV=Math.pow(2,Qr),se.prototype.F1=Qr-Et,se.prototype.F2=2*Et-Qr;var Rr=[],pn,Qe;for(pn=48,Qe=0;Qe<=9;++Qe)Rr[pn++]=Qe;for(pn=97,Qe=10;Qe<36;++Qe)Rr[pn++]=Qe;for(pn=65,Qe=10;Qe<36;++Qe)Rr[pn++]=Qe;function Za(n,e){var t=Rr[n.charCodeAt(e)];return t??-1}function Ct(n){var e=pe();return e.fromInt(n),e}function tr(n){var e=1,t;return(t=n>>>16)!=0&&(n=t,e+=16),(t=n>>8)!=0&&(n=t,e+=8),(t=n>>4)!=0&&(n=t,e+=4),(t=n>>2)!=0&&(n=t,e+=2),(t=n>>1)!=0&&(n=t,e+=1),e}se.ZERO=Ct(0),se.ONE=Ct(1);var vg=function(){function n(){this.i=0,this.j=0,this.S=[]}return n.prototype.init=function(e){var t,r,i;for(t=0;t<256;++t)this.S[t]=t;for(r=0,t=0;t<256;++t)r=r+this.S[t]+e[t%e.length]&255,i=this.S[t],this.S[t]=this.S[r],this.S[r]=i;this.i=0,this.j=0},n.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]},n}();function gg(){return new vg}var Yl=256,nr,At=null,ot;if(At==null){At=[],ot=0;var rr=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var ei=new Uint32Array(256);for(window.crypto.getRandomValues(ei),rr=0;rr<ei.length;++rr)At[ot++]=ei[rr]&255}var ir=0,or=function(n){if(ir=ir||0,ir>=256||ot>=Yl){window.removeEventListener?window.removeEventListener("mousemove",or,!1):window.detachEvent&&window.detachEvent("onmousemove",or);return}try{var e=n.x+n.y;At[ot++]=e&255,ir+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",or,!1):window.attachEvent&&window.attachEvent("onmousemove",or))}function yg(){if(nr==null){for(nr=gg();ot<Yl;){var n=Math.floor(65536*Math.random());At[ot++]=n&255}for(nr.init(At),ot=0;ot<At.length;++ot)At[ot]=0;ot=0}return nr.next()}var Ci=function(){function n(){}return n.prototype.nextBytes=function(e){for(var t=0;t<e.length;++t)e[t]=yg()},n}();function bg(n,e){if(e<n.length+22)return console.error("Message too long for RSA"),null;for(var t=e-n.length-6,r="",i=0;i<t;i+=2)r+="ff";var o="0001"+r+"00"+n;return ke(o,16)}function wg(n,e){if(e<n.length+11)return console.error("Message too long for RSA"),null;for(var t=[],r=n.length-1;r>=0&&e>0;){var i=n.charCodeAt(r--);i<128?t[--e]=i:i>127&&i<2048?(t[--e]=i&63|128,t[--e]=i>>6|192):(t[--e]=i&63|128,t[--e]=i>>6&63|128,t[--e]=i>>12|224)}t[--e]=0;for(var o=new Ci,a=[];e>2;){for(a[0]=0;a[0]==0;)o.nextBytes(a);t[--e]=a[0]}return t[--e]=2,t[--e]=0,new se(t)}var _g=function(){function n(){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 n.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},n.prototype.doPrivate=function(e){if(this.p==null||this.q==null)return e.modPow(this.d,this.n);for(var t=e.mod(this.p).modPow(this.dmp1,this.p),r=e.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(r)<0;)t=t.add(this.p);return t.subtract(r).multiply(this.coeff).mod(this.p).multiply(this.q).add(r)},n.prototype.setPublic=function(e,t){e!=null&&t!=null&&e.length>0&&t.length>0?(this.n=ke(e,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},n.prototype.encrypt=function(e){var t=this.n.bitLength()+7>>3,r=wg(e,t);if(r==null)return null;var i=this.doPublic(r);if(i==null)return null;for(var o=i.toString(16),a=o.length,s=0;s<t*2-a;s++)o="0"+o;return o},n.prototype.setPrivate=function(e,t,r){e!=null&&t!=null&&e.length>0&&t.length>0?(this.n=ke(e,16),this.e=parseInt(t,16),this.d=ke(r,16)):console.error("Invalid RSA private key")},n.prototype.setPrivateEx=function(e,t,r,i,o,a,s,l){e!=null&&t!=null&&e.length>0&&t.length>0?(this.n=ke(e,16),this.e=parseInt(t,16),this.d=ke(r,16),this.p=ke(i,16),this.q=ke(o,16),this.dmp1=ke(a,16),this.dmq1=ke(s,16),this.coeff=ke(l,16)):console.error("Invalid RSA private key")},n.prototype.generate=function(e,t){var r=new Ci,i=e>>1;this.e=parseInt(t,16);for(var o=new se(t,16);;){for(;this.p=new se(e-i,1,r),!(this.p.subtract(se.ONE).gcd(o).compareTo(se.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new se(i,1,r),!(this.q.subtract(se.ONE).gcd(o).compareTo(se.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var a=this.p;this.p=this.q,this.q=a}var s=this.p.subtract(se.ONE),l=this.q.subtract(se.ONE),u=s.multiply(l);if(u.gcd(o).compareTo(se.ONE)==0){this.n=this.p.multiply(this.q),this.d=o.modInverse(u),this.dmp1=this.d.mod(s),this.dmq1=this.d.mod(l),this.coeff=this.q.modInverse(this.p);break}}},n.prototype.decrypt=function(e){var t=ke(e,16),r=this.doPrivate(t);return r==null?null:xg(r,this.n.bitLength()+7>>3)},n.prototype.generateAsync=function(e,t,r){var i=new Ci,o=e>>1;this.e=parseInt(t,16);var a=new se(t,16),s=this,l=function(){var u=function(){if(s.p.compareTo(s.q)<=0){var h=s.p;s.p=s.q,s.q=h}var m=s.p.subtract(se.ONE),f=s.q.subtract(se.ONE),v=m.multiply(f);v.gcd(a).compareTo(se.ONE)==0?(s.n=s.p.multiply(s.q),s.d=a.modInverse(v),s.dmp1=s.d.mod(m),s.dmq1=s.d.mod(f),s.coeff=s.q.modInverse(s.p),setTimeout(function(){r()},0)):setTimeout(l,0)},c=function(){s.q=pe(),s.q.fromNumberAsync(o,1,i,function(){s.q.subtract(se.ONE).gcda(a,function(h){h.compareTo(se.ONE)==0&&s.q.isProbablePrime(10)?setTimeout(u,0):setTimeout(c,0)})})},p=function(){s.p=pe(),s.p.fromNumberAsync(e-o,1,i,function(){s.p.subtract(se.ONE).gcda(a,function(h){h.compareTo(se.ONE)==0&&s.p.isProbablePrime(10)?setTimeout(c,0):setTimeout(p,0)})})};setTimeout(p,0)};setTimeout(l,0)},n.prototype.sign=function(e,t,r){var i=Sg(r),o=i+t(e).toString(),a=bg(o,this.n.bitLength()/4);if(a==null)return null;var s=this.doPrivate(a);if(s==null)return null;var l=s.toString(16);return l.length&1?"0"+l:l},n.prototype.verify=function(e,t,r){var i=ke(t,16),o=this.doPublic(i);if(o==null)return null;var a=o.toString(16).replace(/^1f+00/,""),s=kg(a);return s==r(e).toString()},n}();function xg(n,e){for(var t=n.toByteArray(),r=0;r<t.length&&t[r]==0;)++r;if(t.length-r!=e-1||t[r]!=2)return null;for(++r;t[r]!=0;)if(++r>=t.length)return null;for(var i="";++r<t.length;){var o=t[r]&255;o<128?i+=String.fromCharCode(o):o>191&&o<224?(i+=String.fromCharCode((o&31)<<6|t[r+1]&63),++r):(i+=String.fromCharCode((o&15)<<12|(t[r+1]&63)<<6|t[r+2]&63),r+=2)}return i}var hr={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Sg(n){return hr[n]||""}function kg(n){for(var e in hr)if(hr.hasOwnProperty(e)){var t=hr[e],r=t.length;if(n.substr(0,r)==t)return n.substr(r)}return n}/*!
26
+ Copyright (c) 2011, Yahoo! Inc. All rights reserved.
27
+ Code licensed under the BSD License:
28
+ http://developer.yahoo.com/yui/license.html
29
+ version: 2.9.0
30
+ */var je={};je.lang={extend:function(n,e,t){if(!e||!n)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=e.prototype,n.prototype=new r,n.prototype.constructor=n,n.superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e),t){var i;for(i in t)n.prototype[i]=t[i];var o=function(){},a=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(o=function(s,l){for(i=0;i<a.length;i=i+1){var u=a[i],c=l[u];typeof c=="function"&&c!=Object.prototype[u]&&(s[u]=c)}})}catch{}o(n.prototype,t)}}};/**
31
+ * @fileOverview
32
+ * @name asn1-1.0.js
33
+ * @author Kenji Urushima kenji.urushima@gmail.com
34
+ * @version asn1 1.0.13 (2017-Jun-02)
35
+ * @since jsrsasign 2.1
36
+ * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
37
+ */var H={};(typeof H.asn1>"u"||!H.asn1)&&(H.asn1={}),H.asn1.ASN1Util=new function(){this.integerToByteHex=function(n){var e=n.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(n){var e=n.toString(16);if(e.substr(0,1)!="-")e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var t=e.substr(1),r=t.length;r%2==1?r+=1:e.match(/^[0-7]/)||(r+=2);for(var i="",o=0;o<r;o++)i+="f";var a=new se(i,16),s=a.xor(n).add(se.ONE);e=s.toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(n,e){return hextopem(n,e)},this.newObject=function(n){var e=H,t=e.asn1,r=t.DERBoolean,i=t.DERInteger,o=t.DERBitString,a=t.DEROctetString,s=t.DERNull,l=t.DERObjectIdentifier,u=t.DEREnumerated,c=t.DERUTF8String,p=t.DERNumericString,h=t.DERPrintableString,m=t.DERTeletexString,f=t.DERIA5String,v=t.DERUTCTime,g=t.DERGeneralizedTime,k=t.DERSequence,b=t.DERSet,_=t.DERTaggedObject,V=t.ASN1Util.newObject,j=Object.keys(n);if(j.length!=1)throw"key of param shall be only one.";var x=j[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+x+":")==-1)throw"undefined key: "+x;if(x=="bool")return new r(n[x]);if(x=="int")return new i(n[x]);if(x=="bitstr")return new o(n[x]);if(x=="octstr")return new a(n[x]);if(x=="null")return new s(n[x]);if(x=="oid")return new l(n[x]);if(x=="enum")return new u(n[x]);if(x=="utf8str")return new c(n[x]);if(x=="numstr")return new p(n[x]);if(x=="prnstr")return new h(n[x]);if(x=="telstr")return new m(n[x]);if(x=="ia5str")return new f(n[x]);if(x=="utctime")return new v(n[x]);if(x=="gentime")return new g(n[x]);if(x=="seq"){for(var E=n[x],D=[],Z=0;Z<E.length;Z++){var C=V(E[Z]);D.push(C)}return new k({array:D})}if(x=="set"){for(var E=n[x],D=[],Z=0;Z<E.length;Z++){var C=V(E[Z]);D.push(C)}return new b({array:D})}if(x=="tag"){var A=n[x];if(Object.prototype.toString.call(A)==="[object Array]"&&A.length==3){var F=V(A[2]);return new _({tag:A[0],explicit:A[1],obj:F})}else{var z={};if(A.explicit!==void 0&&(z.explicit=A.explicit),A.tag!==void 0&&(z.tag=A.tag),A.obj===void 0)throw"obj shall be specified for 'tag'.";return z.obj=V(A.obj),new _(z)}}},this.jsonToASN1HEX=function(n){var e=this.newObject(n);return e.getEncodedHex()}},H.asn1.ASN1Util.oidHexToInt=function(n){for(var i="",e=parseInt(n.substr(0,2),16),t=Math.floor(e/40),r=e%40,i=t+"."+r,o="",a=2;a<n.length;a+=2){var s=parseInt(n.substr(a,2),16),l=("00000000"+s.toString(2)).slice(-8);if(o=o+l.substr(1,7),l.substr(0,1)=="0"){var u=new se(o,2);i=i+"."+u.toString(10),o=""}}return i},H.asn1.ASN1Util.oidIntToHex=function(n){var e=function(s){var l=s.toString(16);return l.length==1&&(l="0"+l),l},t=function(s){var l="",u=new se(s,10),c=u.toString(2),p=7-c.length%7;p==7&&(p=0);for(var h="",m=0;m<p;m++)h+="0";c=h+c;for(var m=0;m<c.length-1;m+=7){var f=c.substr(m,7);m!=c.length-7&&(f="1"+f),l+=e(parseInt(f,2))}return l};if(!n.match(/^[0-9.]+$/))throw"malformed oid string: "+n;var r="",i=n.split("."),o=parseInt(i[0])*40+parseInt(i[1]);r+=e(o),i.splice(0,2);for(var a=0;a<i.length;a++)r+=t(i[a]);return r},H.asn1.ASN1Object=function(){var n="";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="+n.length+",v="+this.hV;var e=this.hV.length/2,t=e.toString(16);if(t.length%2==1&&(t="0"+t),e<128)return t;var r=t.length/2;if(r>15)throw"ASN.1 length too long to represent by 8x: n = "+e.toString(16);var i=128+r;return i.toString(16)+t},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""}},H.asn1.DERAbstractString=function(n){H.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(this.s)},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n=="string"?this.setString(n):typeof n.str<"u"?this.setString(n.str):typeof n.hex<"u"&&this.setStringHex(n.hex))},je.lang.extend(H.asn1.DERAbstractString,H.asn1.ASN1Object),H.asn1.DERAbstractTime=function(n){H.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(e){utc=e.getTime()+e.getTimezoneOffset()*6e4;var t=new Date(utc);return t},this.formatDate=function(e,t,r){var i=this.zeroPadding,o=this.localDateToUTC(e),a=String(o.getFullYear());t=="utc"&&(a=a.substr(2,2));var s=i(String(o.getMonth()+1),2),l=i(String(o.getDate()),2),u=i(String(o.getHours()),2),c=i(String(o.getMinutes()),2),p=i(String(o.getSeconds()),2),h=a+s+l+u+c+p;if(r===!0){var m=o.getMilliseconds();if(m!=0){var f=i(String(m),3);f=f.replace(/[0]+$/,""),h=h+"."+f}}return h+"Z"},this.zeroPadding=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(e)},this.setByDateValue=function(e,t,r,i,o,a){var s=new Date(Date.UTC(e,t-1,r,i,o,a,0));this.setByDate(s)},this.getFreshValueHex=function(){return this.hV}},je.lang.extend(H.asn1.DERAbstractTime,H.asn1.ASN1Object),H.asn1.DERAbstractStructured=function(n){H.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,typeof n<"u"&&typeof n.array<"u"&&(this.asn1Array=n.array)},je.lang.extend(H.asn1.DERAbstractStructured,H.asn1.ASN1Object),H.asn1.DERBoolean=function(){H.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},je.lang.extend(H.asn1.DERBoolean,H.asn1.ASN1Object),H.asn1.DERInteger=function(n){H.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=H.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new se(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n.bigint<"u"?this.setByBigInteger(n.bigint):typeof n.int<"u"?this.setByInteger(n.int):typeof n=="number"?this.setByInteger(n):typeof n.hex<"u"&&this.setValueHex(n.hex))},je.lang.extend(H.asn1.DERInteger,H.asn1.ASN1Object),H.asn1.DERBitString=function(n){if(n!==void 0&&typeof n.obj<"u"){var e=H.asn1.ASN1Util.newObject(n.obj);n.hex="00"+e.getEncodedHex()}H.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,r){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var i="0"+t;this.hTLV=null,this.isModified=!0,this.hV=i+r},this.setByBinaryString=function(t){t=t.replace(/0+$/,"");var r=8-t.length%8;r==8&&(r=0);for(var i=0;i<=r;i++)t+="0";for(var o="",i=0;i<t.length-1;i+=8){var a=t.substr(i,8),s=parseInt(a,2).toString(16);s.length==1&&(s="0"+s),o+=s}this.hTLV=null,this.isModified=!0,this.hV="0"+r+o},this.setByBooleanArray=function(t){for(var r="",i=0;i<t.length;i++)t[i]==!0?r+="1":r+="0";this.setByBinaryString(r)},this.newFalseArray=function(t){for(var r=new Array(t),i=0;i<t;i++)r[i]=!1;return r},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n=="string"&&n.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(n):typeof n.hex<"u"?this.setHexValueIncludingUnusedBits(n.hex):typeof n.bin<"u"?this.setByBinaryString(n.bin):typeof n.array<"u"&&this.setByBooleanArray(n.array))},je.lang.extend(H.asn1.DERBitString,H.asn1.ASN1Object),H.asn1.DEROctetString=function(n){if(n!==void 0&&typeof n.obj<"u"){var e=H.asn1.ASN1Util.newObject(n.obj);n.hex=e.getEncodedHex()}H.asn1.DEROctetString.superclass.constructor.call(this,n),this.hT="04"},je.lang.extend(H.asn1.DEROctetString,H.asn1.DERAbstractString),H.asn1.DERNull=function(){H.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},je.lang.extend(H.asn1.DERNull,H.asn1.ASN1Object),H.asn1.DERObjectIdentifier=function(n){var e=function(r){var i=r.toString(16);return i.length==1&&(i="0"+i),i},t=function(r){var i="",o=new se(r,10),a=o.toString(2),s=7-a.length%7;s==7&&(s=0);for(var l="",u=0;u<s;u++)l+="0";a=l+a;for(var u=0;u<a.length-1;u+=7){var c=a.substr(u,7);u!=a.length-7&&(c="1"+c),i+=e(parseInt(c,2))}return i};H.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(r){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueOidString=function(r){if(!r.match(/^[0-9.]+$/))throw"malformed oid string: "+r;var i="",o=r.split("."),a=parseInt(o[0])*40+parseInt(o[1]);i+=e(a),o.splice(0,2);for(var s=0;s<o.length;s++)i+=t(o[s]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(r){var i=H.asn1.x509.OID.name2oid(r);if(i!=="")this.setValueOidString(i);else throw"DERObjectIdentifier oidName undefined: "+r},this.getFreshValueHex=function(){return this.hV},n!==void 0&&(typeof n=="string"?n.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(n):this.setValueName(n):n.oid!==void 0?this.setValueOidString(n.oid):n.hex!==void 0?this.setValueHex(n.hex):n.name!==void 0&&this.setValueName(n.name))},je.lang.extend(H.asn1.DERObjectIdentifier,H.asn1.ASN1Object),H.asn1.DEREnumerated=function(n){H.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=H.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new se(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n.int<"u"?this.setByInteger(n.int):typeof n=="number"?this.setByInteger(n):typeof n.hex<"u"&&this.setValueHex(n.hex))},je.lang.extend(H.asn1.DEREnumerated,H.asn1.ASN1Object),H.asn1.DERUTF8String=function(n){H.asn1.DERUTF8String.superclass.constructor.call(this,n),this.hT="0c"},je.lang.extend(H.asn1.DERUTF8String,H.asn1.DERAbstractString),H.asn1.DERNumericString=function(n){H.asn1.DERNumericString.superclass.constructor.call(this,n),this.hT="12"},je.lang.extend(H.asn1.DERNumericString,H.asn1.DERAbstractString),H.asn1.DERPrintableString=function(n){H.asn1.DERPrintableString.superclass.constructor.call(this,n),this.hT="13"},je.lang.extend(H.asn1.DERPrintableString,H.asn1.DERAbstractString),H.asn1.DERTeletexString=function(n){H.asn1.DERTeletexString.superclass.constructor.call(this,n),this.hT="14"},je.lang.extend(H.asn1.DERTeletexString,H.asn1.DERAbstractString),H.asn1.DERIA5String=function(n){H.asn1.DERIA5String.superclass.constructor.call(this,n),this.hT="16"},je.lang.extend(H.asn1.DERIA5String,H.asn1.DERAbstractString),H.asn1.DERUTCTime=function(n){H.asn1.DERUTCTime.superclass.constructor.call(this,n),this.hT="17",this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,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},n!==void 0&&(n.str!==void 0?this.setString(n.str):typeof n=="string"&&n.match(/^[0-9]{12}Z$/)?this.setString(n):n.hex!==void 0?this.setStringHex(n.hex):n.date!==void 0&&this.setByDate(n.date))},je.lang.extend(H.asn1.DERUTCTime,H.asn1.DERAbstractTime),H.asn1.DERGeneralizedTime=function(n){H.asn1.DERGeneralizedTime.superclass.constructor.call(this,n),this.hT="18",this.withMillis=!1,this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,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},n!==void 0&&(n.str!==void 0?this.setString(n.str):typeof n=="string"&&n.match(/^[0-9]{14}Z$/)?this.setString(n):n.hex!==void 0?this.setStringHex(n.hex):n.date!==void 0&&this.setByDate(n.date),n.millis===!0&&(this.withMillis=!0))},je.lang.extend(H.asn1.DERGeneralizedTime,H.asn1.DERAbstractTime),H.asn1.DERSequence=function(n){H.asn1.DERSequence.superclass.constructor.call(this,n),this.hT="30",this.getFreshValueHex=function(){for(var e="",t=0;t<this.asn1Array.length;t++){var r=this.asn1Array[t];e+=r.getEncodedHex()}return this.hV=e,this.hV}},je.lang.extend(H.asn1.DERSequence,H.asn1.DERAbstractStructured),H.asn1.DERSet=function(n){H.asn1.DERSet.superclass.constructor.call(this,n),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var e=new Array,t=0;t<this.asn1Array.length;t++){var r=this.asn1Array[t];e.push(r.getEncodedHex())}return this.sortFlag==!0&&e.sort(),this.hV=e.join(""),this.hV},typeof n<"u"&&typeof n.sortflag<"u"&&n.sortflag==!1&&(this.sortFlag=!1)},je.lang.extend(H.asn1.DERSet,H.asn1.DERAbstractStructured),H.asn1.DERTaggedObject=function(n){H.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(e,t,r){this.hT=t,this.isExplicit=e,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(/^../,t),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n.tag<"u"&&(this.hT=n.tag),typeof n.explicit<"u"&&(this.isExplicit=n.explicit),typeof n.obj<"u"&&(this.asn1Object=n.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},je.lang.extend(H.asn1.DERTaggedObject,H.asn1.ASN1Object);var $g=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();(function(n){$g(e,n);function e(t){var r=n.call(this)||this;return t&&(typeof t=="string"?r.parseKey(t):(e.hasPrivateKeyProperty(t)||e.hasPublicKeyProperty(t))&&r.parsePropertiesFrom(t)),r}return e.prototype.parseKey=function(t){try{var r=0,i=0,o=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,a=o.test(t)?lg.decode(t):Ei.unarmor(t),s=dg.decode(a);if(s.sub.length===3&&(s=s.sub[2].sub[0]),s.sub.length===9){r=s.sub[1].getHexStringValue(),this.n=ke(r,16),i=s.sub[2].getHexStringValue(),this.e=parseInt(i,16);var l=s.sub[3].getHexStringValue();this.d=ke(l,16);var u=s.sub[4].getHexStringValue();this.p=ke(u,16);var c=s.sub[5].getHexStringValue();this.q=ke(c,16);var p=s.sub[6].getHexStringValue();this.dmp1=ke(p,16);var h=s.sub[7].getHexStringValue();this.dmq1=ke(h,16);var m=s.sub[8].getHexStringValue();this.coeff=ke(m,16)}else if(s.sub.length===2)if(s.sub[0].sub){var f=s.sub[1],v=f.sub[0];r=v.sub[0].getHexStringValue(),this.n=ke(r,16),i=v.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else r=s.sub[0].getHexStringValue(),this.n=ke(r,16),i=s.sub[1].getHexStringValue(),this.e=parseInt(i,16);else return!1;return!0}catch{return!1}},e.prototype.getPrivateBaseKey=function(){var t={array:[new H.asn1.DERInteger({int:0}),new H.asn1.DERInteger({bigint:this.n}),new H.asn1.DERInteger({int:this.e}),new H.asn1.DERInteger({bigint:this.d}),new H.asn1.DERInteger({bigint:this.p}),new H.asn1.DERInteger({bigint:this.q}),new H.asn1.DERInteger({bigint:this.dmp1}),new H.asn1.DERInteger({bigint:this.dmq1}),new H.asn1.DERInteger({bigint:this.coeff})]},r=new H.asn1.DERSequence(t);return r.getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return Ja(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new H.asn1.DERSequence({array:[new H.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new H.asn1.DERNull]}),r=new H.asn1.DERSequence({array:[new H.asn1.DERInteger({bigint:this.n}),new H.asn1.DERInteger({int:this.e})]}),i=new H.asn1.DERBitString({hex:"00"+r.getEncodedHex()}),o=new H.asn1.DERSequence({array:[t,i]});return o.getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return Ja(this.getPublicBaseKey())},e.wordwrap=function(t,r){if(r=r||64,!t)return t;var i="(.{1,"+r+`})( +|$
38
+ ?)|(.{1,`+r+"})";return t.match(RegExp(i,"g")).join(`
39
+ `)},e.prototype.getPrivateKey=function(){var t=`-----BEGIN RSA PRIVATE KEY-----
40
+ `;return t+=e.wordwrap(this.getPrivateBaseKeyB64())+`
41
+ `,t+="-----END RSA PRIVATE KEY-----",t},e.prototype.getPublicKey=function(){var t=`-----BEGIN PUBLIC KEY-----
42
+ `;return t+=e.wordwrap(this.getPublicBaseKeyB64())+`
43
+ `,t+="-----END PUBLIC KEY-----",t},e.hasPublicKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},e})(_g);var ti;typeof process<"u"&&((ti=Rd)===null||ti===void 0||ti.npm_package_version);const Gl=/^(http|https):\/\/[\w.:\-@]*/;function jg(n){return Gl.test(n)}var Zl={exports:{}};/*! @preserve
44
+ * numeral.js
45
+ * version : 2.0.6
46
+ * author : Adam Draper
47
+ * license : MIT
48
+ * http://adamwdraper.github.com/Numeral-js/
49
+ */(function(n){(function(e,t){n.exports?n.exports=t():e.numeral=t()})(Fe,function(){var e,t,r="2.0.6",i={},o={},a={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},s={currentLocale:a.currentLocale,zeroFormat:a.zeroFormat,nullFormat:a.nullFormat,defaultFormat:a.defaultFormat,scalePercentBy100:a.scalePercentBy100};function l(u,c){this._input=u,this._value=c}return e=function(u){var c,p,h,m;if(e.isNumeral(u))c=u.value();else if(u===0||typeof u>"u")c=0;else if(u===null||t.isNaN(u))c=null;else if(typeof u=="string")if(s.zeroFormat&&u===s.zeroFormat)c=0;else if(s.nullFormat&&u===s.nullFormat||!u.replace(/[^0-9]+/g,"").length)c=null;else{for(p in i)if(m=typeof i[p].regexps.unformat=="function"?i[p].regexps.unformat():i[p].regexps.unformat,m&&u.match(m)){h=i[p].unformat;break}h=h||e._.stringToNumber,c=h(u)}else c=Number(u)||null;return new l(u,c)},e.version=r,e.isNumeral=function(u){return u instanceof l},e._=t={numberToFormat:function(u,c,p){var h=o[e.options.currentLocale],m=!1,f=!1,v=0,g="",k=1e12,b=1e9,_=1e6,V=1e3,j="",x=!1,E,D,Z,C,A,F,z;if(u=u||0,D=Math.abs(u),e._.includes(c,"(")?(m=!0,c=c.replace(/[\(|\)]/g,"")):(e._.includes(c,"+")||e._.includes(c,"-"))&&(A=e._.includes(c,"+")?c.indexOf("+"):u<0?c.indexOf("-"):-1,c=c.replace(/[\+|\-]/g,"")),e._.includes(c,"a")&&(E=c.match(/a(k|m|b|t)?/),E=E?E[1]:!1,e._.includes(c," a")&&(g=" "),c=c.replace(new RegExp(g+"a[kmbt]?"),""),D>=k&&!E||E==="t"?(g+=h.abbreviations.trillion,u=u/k):D<k&&D>=b&&!E||E==="b"?(g+=h.abbreviations.billion,u=u/b):D<b&&D>=_&&!E||E==="m"?(g+=h.abbreviations.million,u=u/_):(D<_&&D>=V&&!E||E==="k")&&(g+=h.abbreviations.thousand,u=u/V)),e._.includes(c,"[.]")&&(f=!0,c=c.replace("[.]",".")),Z=u.toString().split(".")[0],C=c.split(".")[1],F=c.indexOf(","),v=(c.split(".")[0].split(",")[0].match(/0/g)||[]).length,C?(e._.includes(C,"[")?(C=C.replace("]",""),C=C.split("["),j=e._.toFixed(u,C[0].length+C[1].length,p,C[1].length)):j=e._.toFixed(u,C.length,p),Z=j.split(".")[0],e._.includes(j,".")?j=h.delimiters.decimal+j.split(".")[1]:j="",f&&Number(j.slice(1))===0&&(j="")):Z=e._.toFixed(u,0,p),g&&!E&&Number(Z)>=1e3&&g!==h.abbreviations.trillion)switch(Z=String(Number(Z)/1e3),g){case h.abbreviations.thousand:g=h.abbreviations.million;break;case h.abbreviations.million:g=h.abbreviations.billion;break;case h.abbreviations.billion:g=h.abbreviations.trillion;break}if(e._.includes(Z,"-")&&(Z=Z.slice(1),x=!0),Z.length<v)for(var G=v-Z.length;G>0;G--)Z="0"+Z;return F>-1&&(Z=Z.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+h.delimiters.thousands)),c.indexOf(".")===0&&(Z=""),z=Z+j+(g||""),m?z=(m&&x?"(":"")+z+(m&&x?")":""):A>=0?z=A===0?(x?"-":"+")+z:z+(x?"-":"+"):x&&(z="-"+z),z},stringToNumber:function(u){var c=o[s.currentLocale],p=u,h={thousand:3,million:6,billion:9,trillion:12},m,f,v;if(s.zeroFormat&&u===s.zeroFormat)f=0;else if(s.nullFormat&&u===s.nullFormat||!u.replace(/[^0-9]+/g,"").length)f=null;else{f=1,c.delimiters.decimal!=="."&&(u=u.replace(/\./g,"").replace(c.delimiters.decimal,"."));for(m in h)if(v=new RegExp("[^a-zA-Z]"+c.abbreviations[m]+"(?:\\)|(\\"+c.currency.symbol+")?(?:\\))?)?$"),p.match(v)){f*=Math.pow(10,h[m]);break}f*=(u.split("-").length+Math.min(u.split("(").length-1,u.split(")").length-1))%2?1:-1,u=u.replace(/[^0-9\.]+/g,""),f*=Number(u)}return f},isNaN:function(u){return typeof u=="number"&&isNaN(u)},includes:function(u,c){return u.indexOf(c)!==-1},insert:function(u,c,p){return u.slice(0,p)+c+u.slice(p)},reduce:function(u,c){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof c!="function")throw new TypeError(c+" is not a function");var p=Object(u),h=p.length>>>0,m=0,f;if(arguments.length===3)f=arguments[2];else{for(;m<h&&!(m in p);)m++;if(m>=h)throw new TypeError("Reduce of empty array with no initial value");f=p[m++]}for(;m<h;m++)m in p&&(f=c(f,p[m],m,p));return f},multiplier:function(u){var c=u.toString().split(".");return c.length<2?1:Math.pow(10,c[1].length)},correctionFactor:function(){var u=Array.prototype.slice.call(arguments);return u.reduce(function(c,p){var h=t.multiplier(p);return c>h?c:h},1)},toFixed:function(u,c,p,h){var m=u.toString().split("."),f=c-(h||0),v,g,k,b;return m.length===2?v=Math.min(Math.max(m[1].length,f),c):v=f,k=Math.pow(10,v),b=(p(u+"e+"+v)/k).toFixed(v),h>c-v&&(g=new RegExp("\\.?0{1,"+(h-(c-v))+"}$"),b=b.replace(g,"")),b}},e.options=s,e.formats=i,e.locales=o,e.locale=function(u){return u&&(s.currentLocale=u.toLowerCase()),s.currentLocale},e.localeData=function(u){if(!u)return o[s.currentLocale];if(u=u.toLowerCase(),!o[u])throw new Error("Unknown locale : "+u);return o[u]},e.reset=function(){for(var u in a)s[u]=a[u]},e.zeroFormat=function(u){s.zeroFormat=typeof u=="string"?u:null},e.nullFormat=function(u){s.nullFormat=typeof u=="string"?u:null},e.defaultFormat=function(u){s.defaultFormat=typeof u=="string"?u:"0.0"},e.register=function(u,c,p){if(c=c.toLowerCase(),this[u+"s"][c])throw new TypeError(c+" "+u+" already registered.");return this[u+"s"][c]=p,p},e.validate=function(u,c){var p,h,m,f,v,g,k,b;if(typeof u!="string"&&(u+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",u)),u=u.trim(),u.match(/^\d+$/))return!0;if(u==="")return!1;try{k=e.localeData(c)}catch{k=e.localeData(e.locale())}return m=k.currency.symbol,v=k.abbreviations,p=k.delimiters.decimal,k.delimiters.thousands==="."?h="\\.":h=k.delimiters.thousands,b=u.match(/^[^\d]+/),b!==null&&(u=u.substr(1),b[0]!==m)||(b=u.match(/[^\d]+$/),b!==null&&(u=u.slice(0,-1),b[0]!==v.thousand&&b[0]!==v.million&&b[0]!==v.billion&&b[0]!==v.trillion))?!1:(g=new RegExp(h+"{2}"),u.match(/[^\d.,]/g)?!1:(f=u.split(p),f.length>2?!1:f.length<2?!!f[0].match(/^\d+.*\d$/)&&!f[0].match(g):f[0].length===1?!!f[0].match(/^\d+$/)&&!f[0].match(g)&&!!f[1].match(/^\d+$/):!!f[0].match(/^\d+.*\d$/)&&!f[0].match(g)&&!!f[1].match(/^\d+$/)))},e.fn=l.prototype={clone:function(){return e(this)},format:function(u,c){var p=this._value,h=u||s.defaultFormat,m,f,v;if(c=c||Math.round,p===0&&s.zeroFormat!==null)f=s.zeroFormat;else if(p===null&&s.nullFormat!==null)f=s.nullFormat;else{for(m in i)if(h.match(i[m].regexps.format)){v=i[m].format;break}v=v||e._.numberToFormat,f=v(p,h,c)}return f},value:function(){return this._value},input:function(){return this._input},set:function(u){return this._value=Number(u),this},add:function(u){var c=t.correctionFactor.call(null,this._value,u);function p(h,m,f,v){return h+Math.round(c*m)}return this._value=t.reduce([this._value,u],p,0)/c,this},subtract:function(u){var c=t.correctionFactor.call(null,this._value,u);function p(h,m,f,v){return h-Math.round(c*m)}return this._value=t.reduce([u],p,Math.round(this._value*c))/c,this},multiply:function(u){function c(p,h,m,f){var v=t.correctionFactor(p,h);return Math.round(p*v)*Math.round(h*v)/Math.round(v*v)}return this._value=t.reduce([this._value,u],c,1),this},divide:function(u){function c(p,h,m,f){var v=t.correctionFactor(p,h);return Math.round(p*v)/Math.round(h*v)}return this._value=t.reduce([this._value,u],c),this},difference:function(u){return Math.abs(e(this._value).subtract(u).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(u){var c=u%10;return~~(u%100/10)===1?"th":c===1?"st":c===2?"nd":c===3?"rd":"th"},currency:{symbol:"$"}}),function(){e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(u,c,p){var h=e._.includes(c," BPS")?" ":"",m;return u=u*1e4,c=c.replace(/\s?BPS/,""),m=e._.numberToFormat(u,c,p),e._.includes(m,")")?(m=m.split(""),m.splice(-1,0,h+"BPS"),m=m.join("")):m=m+h+"BPS",m},unformat:function(u){return+(e._.stringToNumber(u)*1e-4).toFixed(15)}})}(),function(){var u={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},c={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},p=u.suffixes.concat(c.suffixes.filter(function(m){return u.suffixes.indexOf(m)<0})),h=p.join("|");h="("+h.replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(h)},format:function(m,f,v){var g,k=e._.includes(f,"ib")?c:u,b=e._.includes(f," b")||e._.includes(f," ib")?" ":"",_,V,j;for(f=f.replace(/\s?i?b/,""),_=0;_<=k.suffixes.length;_++)if(V=Math.pow(k.base,_),j=Math.pow(k.base,_+1),m===null||m===0||m>=V&&m<j){b+=k.suffixes[_],V>0&&(m=m/V);break}return g=e._.numberToFormat(m,f,v),g+b},unformat:function(m){var f=e._.stringToNumber(m),v,g;if(f){for(v=u.suffixes.length-1;v>=0;v--){if(e._.includes(m,u.suffixes[v])){g=Math.pow(u.base,v);break}if(e._.includes(m,c.suffixes[v])){g=Math.pow(c.base,v);break}}f*=g||1}return f}})}(),function(){e.register("format","currency",{regexps:{format:/(\$)/},format:function(u,c,p){var h=e.locales[e.options.currentLocale],m={before:c.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:c.match(/([\+|\-|\)|\s|\$]*)$/)[0]},f,v,g;for(c=c.replace(/\s?\$\s?/,""),f=e._.numberToFormat(u,c,p),u>=0?(m.before=m.before.replace(/[\-\(]/,""),m.after=m.after.replace(/[\-\)]/,"")):u<0&&!e._.includes(m.before,"-")&&!e._.includes(m.before,"(")&&(m.before="-"+m.before),g=0;g<m.before.length;g++)switch(v=m.before[g],v){case"$":f=e._.insert(f,h.currency.symbol,g);break;case" ":f=e._.insert(f," ",g+h.currency.symbol.length-1);break}for(g=m.after.length-1;g>=0;g--)switch(v=m.after[g],v){case"$":f=g===m.after.length-1?f+h.currency.symbol:e._.insert(f,h.currency.symbol,-(m.after.length-(1+g)));break;case" ":f=g===m.after.length-1?f+" ":e._.insert(f," ",-(m.after.length-(1+g)+h.currency.symbol.length-1));break}return f}})}(),function(){e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(u,c,p){var h,m=typeof u=="number"&&!e._.isNaN(u)?u.toExponential():"0e+0",f=m.split("e");return c=c.replace(/e[\+|\-]{1}0/,""),h=e._.numberToFormat(Number(f[0]),c,p),h+"e"+f[1]},unformat:function(u){var c=e._.includes(u,"e+")?u.split("e+"):u.split("e-"),p=Number(c[0]),h=Number(c[1]);h=e._.includes(u,"e-")?h*=-1:h;function m(f,v,g,k){var b=e._.correctionFactor(f,v),_=f*b*(v*b)/(b*b);return _}return e._.reduce([p,Math.pow(10,h)],m,1)}})}(),function(){e.register("format","ordinal",{regexps:{format:/(o)/},format:function(u,c,p){var h=e.locales[e.options.currentLocale],m,f=e._.includes(c," o")?" ":"";return c=c.replace(/\s?o/,""),f+=h.ordinal(u),m=e._.numberToFormat(u,c,p),m+f}})}(),function(){e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(u,c,p){var h=e._.includes(c," %")?" ":"",m;return e.options.scalePercentBy100&&(u=u*100),c=c.replace(/\s?\%/,""),m=e._.numberToFormat(u,c,p),e._.includes(m,")")?(m=m.split(""),m.splice(-1,0,h+"%"),m=m.join("")):m=m+h+"%",m},unformat:function(u){var c=e._.stringToNumber(u);return e.options.scalePercentBy100?c*.01:c}})}(),function(){e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(u,c,p){var h=Math.floor(u/60/60),m=Math.floor((u-h*60*60)/60),f=Math.round(u-h*60*60-m*60);return h+":"+(m<10?"0"+m:m)+":"+(f<10?"0"+f:f)},unformat:function(u){var c=u.split(":"),p=0;return c.length===3?(p=p+Number(c[0])*60*60,p=p+Number(c[1])*60,p=p+Number(c[2])):c.length===2&&(p=p+Number(c[0])*60,p=p+Number(c[1])),Number(p)}})}(),e})})(Zl);var Vg=Zl.exports;const Eg=bn(Vg);function Cg(n,e="0.00"){return Eg(n).format(e)}var Xl={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(Fe,function(){var t=1e3,r=6e4,i=36e5,o="millisecond",a="second",s="minute",l="hour",u="day",c="week",p="month",h="quarter",m="year",f="date",v="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,k=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(G){var L=["th","st","nd","rd"],W=G%100;return"["+G+(L[(W-20)%10]||L[W]||L[0])+"]"}},_=function(G,L,W){var Q=String(G);return!Q||Q.length>=L?G:""+Array(L+1-Q.length).join(W)+G},V={s:_,z:function(G){var L=-G.utcOffset(),W=Math.abs(L),Q=Math.floor(W/60),X=W%60;return(L<=0?"+":"-")+_(Q,2,"0")+":"+_(X,2,"0")},m:function G(L,W){if(L.date()<W.date())return-G(W,L);var Q=12*(W.year()-L.year())+(W.month()-L.month()),X=L.clone().add(Q,p),re=W-X<0,ie=L.clone().add(Q+(re?-1:1),p);return+(-(Q+(W-X)/(re?X-ie:ie-X))||0)},a:function(G){return G<0?Math.ceil(G)||0:Math.floor(G)},p:function(G){return{M:p,y:m,w:c,d:u,D:f,h:l,m:s,s:a,ms:o,Q:h}[G]||String(G||"").toLowerCase().replace(/s$/,"")},u:function(G){return G===void 0}},j="en",x={};x[j]=b;var E="$isDayjsObject",D=function(G){return G instanceof F||!(!G||!G[E])},Z=function G(L,W,Q){var X;if(!L)return j;if(typeof L=="string"){var re=L.toLowerCase();x[re]&&(X=re),W&&(x[re]=W,X=re);var ie=L.split("-");if(!X&&ie.length>1)return G(ie[0])}else{var N=L.name;x[N]=L,X=N}return!Q&&X&&(j=X),X||!Q&&j},C=function(G,L){if(D(G))return G.clone();var W=typeof L=="object"?L:{};return W.date=G,W.args=arguments,new F(W)},A=V;A.l=Z,A.i=D,A.w=function(G,L){return C(G,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var F=function(){function G(W){this.$L=Z(W.locale,null,!0),this.parse(W),this.$x=this.$x||W.x||{},this[E]=!0}var L=G.prototype;return L.parse=function(W){this.$d=function(Q){var X=Q.date,re=Q.utc;if(X===null)return new Date(NaN);if(A.u(X))return new Date;if(X instanceof Date)return new Date(X);if(typeof X=="string"&&!/Z$/i.test(X)){var ie=X.match(g);if(ie){var N=ie[2]-1||0,U=(ie[7]||"0").substring(0,3);return re?new Date(Date.UTC(ie[1],N,ie[3]||1,ie[4]||0,ie[5]||0,ie[6]||0,U)):new Date(ie[1],N,ie[3]||1,ie[4]||0,ie[5]||0,ie[6]||0,U)}}return new Date(X)}(W),this.init()},L.init=function(){var W=this.$d;this.$y=W.getFullYear(),this.$M=W.getMonth(),this.$D=W.getDate(),this.$W=W.getDay(),this.$H=W.getHours(),this.$m=W.getMinutes(),this.$s=W.getSeconds(),this.$ms=W.getMilliseconds()},L.$utils=function(){return A},L.isValid=function(){return this.$d.toString()!==v},L.isSame=function(W,Q){var X=C(W);return this.startOf(Q)<=X&&X<=this.endOf(Q)},L.isAfter=function(W,Q){return C(W)<this.startOf(Q)},L.isBefore=function(W,Q){return this.endOf(Q)<C(W)},L.$g=function(W,Q,X){return A.u(W)?this[Q]:this.set(X,W)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(W,Q){var X=this,re=!!A.u(Q)||Q,ie=A.p(W),N=function(Nt,Le){var kt=A.w(X.$u?Date.UTC(X.$y,Le,Nt):new Date(X.$y,Le,Nt),X);return re?kt:kt.endOf(u)},U=function(Nt,Le){return A.w(X.toDate()[Nt].apply(X.toDate("s"),(re?[0,0,0,0]:[23,59,59,999]).slice(Le)),X)},J=this.$W,K=this.$M,Ge=this.$D,Xt="set"+(this.$u?"UTC":"");switch(ie){case m:return re?N(1,0):N(31,11);case p:return re?N(1,K):N(0,K+1);case c:var Pt=this.$locale().weekStart||0,xn=(J<Pt?J+7:J)-Pt;return N(re?Ge-xn:Ge+(6-xn),K);case u:case f:return U(Xt+"Hours",0);case l:return U(Xt+"Minutes",1);case s:return U(Xt+"Seconds",2);case a:return U(Xt+"Milliseconds",3);default:return this.clone()}},L.endOf=function(W){return this.startOf(W,!1)},L.$set=function(W,Q){var X,re=A.p(W),ie="set"+(this.$u?"UTC":""),N=(X={},X[u]=ie+"Date",X[f]=ie+"Date",X[p]=ie+"Month",X[m]=ie+"FullYear",X[l]=ie+"Hours",X[s]=ie+"Minutes",X[a]=ie+"Seconds",X[o]=ie+"Milliseconds",X)[re],U=re===u?this.$D+(Q-this.$W):Q;if(re===p||re===m){var J=this.clone().set(f,1);J.$d[N](U),J.init(),this.$d=J.set(f,Math.min(this.$D,J.daysInMonth())).$d}else N&&this.$d[N](U);return this.init(),this},L.set=function(W,Q){return this.clone().$set(W,Q)},L.get=function(W){return this[A.p(W)]()},L.add=function(W,Q){var X,re=this;W=Number(W);var ie=A.p(Q),N=function(K){var Ge=C(re);return A.w(Ge.date(Ge.date()+Math.round(K*W)),re)};if(ie===p)return this.set(p,this.$M+W);if(ie===m)return this.set(m,this.$y+W);if(ie===u)return N(1);if(ie===c)return N(7);var U=(X={},X[s]=r,X[l]=i,X[a]=t,X)[ie]||1,J=this.$d.getTime()+W*U;return A.w(J,this)},L.subtract=function(W,Q){return this.add(-1*W,Q)},L.format=function(W){var Q=this,X=this.$locale();if(!this.isValid())return X.invalidDate||v;var re=W||"YYYY-MM-DDTHH:mm:ssZ",ie=A.z(this),N=this.$H,U=this.$m,J=this.$M,K=X.weekdays,Ge=X.months,Xt=X.meridiem,Pt=function(Le,kt,Sn,Zn){return Le&&(Le[kt]||Le(Q,re))||Sn[kt].slice(0,Zn)},xn=function(Le){return A.s(N%12||12,Le,"0")},Nt=Xt||function(Le,kt,Sn){var Zn=Le<12?"AM":"PM";return Sn?Zn.toLowerCase():Zn};return re.replace(k,function(Le,kt){return kt||function(Sn){switch(Sn){case"YY":return String(Q.$y).slice(-2);case"YYYY":return A.s(Q.$y,4,"0");case"M":return J+1;case"MM":return A.s(J+1,2,"0");case"MMM":return Pt(X.monthsShort,J,Ge,3);case"MMMM":return Pt(Ge,J);case"D":return Q.$D;case"DD":return A.s(Q.$D,2,"0");case"d":return String(Q.$W);case"dd":return Pt(X.weekdaysMin,Q.$W,K,2);case"ddd":return Pt(X.weekdaysShort,Q.$W,K,3);case"dddd":return K[Q.$W];case"H":return String(N);case"HH":return A.s(N,2,"0");case"h":return xn(1);case"hh":return xn(2);case"a":return Nt(N,U,!0);case"A":return Nt(N,U,!1);case"m":return String(U);case"mm":return A.s(U,2,"0");case"s":return String(Q.$s);case"ss":return A.s(Q.$s,2,"0");case"SSS":return A.s(Q.$ms,3,"0");case"Z":return ie}return null}(Le)||ie.replace(":","")})},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(W,Q,X){var re,ie=this,N=A.p(Q),U=C(W),J=(U.utcOffset()-this.utcOffset())*r,K=this-U,Ge=function(){return A.m(ie,U)};switch(N){case m:re=Ge()/12;break;case p:re=Ge();break;case h:re=Ge()/3;break;case c:re=(K-J)/6048e5;break;case u:re=(K-J)/864e5;break;case l:re=K/i;break;case s:re=K/r;break;case a:re=K/t;break;default:re=K}return X?re:A.a(re)},L.daysInMonth=function(){return this.endOf(p).$D},L.$locale=function(){return x[this.$L]},L.locale=function(W,Q){if(!W)return this.$L;var X=this.clone(),re=Z(W,Q,!0);return re&&(X.$L=re),X},L.clone=function(){return A.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},G}(),z=F.prototype;return C.prototype=z,[["$ms",o],["$s",a],["$m",s],["$H",l],["$W",u],["$M",p],["$y",m],["$D",f]].forEach(function(G){z[G[1]]=function(L){return this.$g(L,G[0],G[1])}}),C.extend=function(G,L){return G.$i||(G(L,F,C),G.$i=!0),C},C.locale=Z,C.isDayjs=D,C.unix=function(G){return C(1e3*G)},C.en=x[j],C.Ls=x,C.p={},C})})(Xl);var Ql=Xl.exports;const Ag=bn(Ql);var Tg={exports:{}};(function(n,e){(function(t,r){n.exports=r(Ql)})(Fe,function(t){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=r(t),o={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(a,s){return s==="W"?a+"周":a+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(a,s){var l=100*a+s;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return i.default.locale(o,null,!0),o})})(Tg),Ag.locale("zh-cn");const Bg=n=>Object.prototype.toString.call(n),ni=n=>Bg(n).slice(8,-1),eu=()=>+Date.now();function ut(){return Number(Math.random().toString().substring(2,5)+Date.now()).toString(36)}function zg(n=!0){const e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)});return n?e.toLowerCase():e.replace(/-/gi,"")}async function tu(n=0){return new Promise(e=>{setTimeout(e,n)})}function nu(n,e){return n.reduce((t,r)=>{const i=r[e];return t.set(i,r),t},new Map)}function Og(n){return[...n.entries()].reduce((e,[t,r])=>(e[t]=r,e),{})}function ru(n,e){if(e){const t=nu(n,e);return Array.from(t.values())}else return Array.from(new Set(n))}function xo(n){return n?[].concat(n):[]}function ri(n,e){const t={};if(Array.isArray(e))Object.keys(n).forEach(r=>{e.includes(r)||(t[r]=n[r])});else{const r=e;Object.entries(n).forEach(([i,o])=>{r(i,o)||(t[i]=o)})}return t}function Dg(n,e){const t={};if(Array.isArray(e))Object.keys(n).forEach(r=>{e.includes(r)&&(t[r]=n[r])});else{const r=e;Object.entries(n).forEach(([i,o])=>{r(i,o)&&(t[i]=o)})}return t}var Ai={exports:{}};Ai.exports,function(n){var e=function(){var t=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",o={};function a(l,u){if(!o[l]){o[l]={};for(var c=0;c<l.length;c++)o[l][l.charAt(c)]=c}return o[l][u]}var s={compressToBase64:function(l){if(l==null)return"";var u=s._compress(l,6,function(c){return r.charAt(c)});switch(u.length%4){default:case 0:return u;case 1:return u+"===";case 2:return u+"==";case 3:return u+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:s._decompress(l.length,32,function(u){return a(r,l.charAt(u))})},compressToUTF16:function(l){return l==null?"":s._compress(l,15,function(u){return t(u+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:s._decompress(l.length,16384,function(u){return l.charCodeAt(u)-32})},compressToUint8Array:function(l){for(var u=s.compress(l),c=new Uint8Array(u.length*2),p=0,h=u.length;p<h;p++){var m=u.charCodeAt(p);c[p*2]=m>>>8,c[p*2+1]=m%256}return c},decompressFromUint8Array:function(l){if(l==null)return s.decompress(l);for(var u=new Array(l.length/2),c=0,p=u.length;c<p;c++)u[c]=l[c*2]*256+l[c*2+1];var h=[];return u.forEach(function(m){h.push(t(m))}),s.decompress(h.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":s._compress(l,6,function(u){return i.charAt(u)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),s._decompress(l.length,32,function(u){return a(i,l.charAt(u))}))},compress:function(l){return s._compress(l,16,function(u){return t(u)})},_compress:function(l,u,c){if(l==null)return"";var p,h,m={},f={},v="",g="",k="",b=2,_=3,V=2,j=[],x=0,E=0,D;for(D=0;D<l.length;D+=1)if(v=l.charAt(D),Object.prototype.hasOwnProperty.call(m,v)||(m[v]=_++,f[v]=!0),g=k+v,Object.prototype.hasOwnProperty.call(m,g))k=g;else{if(Object.prototype.hasOwnProperty.call(f,k)){if(k.charCodeAt(0)<256){for(p=0;p<V;p++)x=x<<1,E==u-1?(E=0,j.push(c(x)),x=0):E++;for(h=k.charCodeAt(0),p=0;p<8;p++)x=x<<1|h&1,E==u-1?(E=0,j.push(c(x)),x=0):E++,h=h>>1}else{for(h=1,p=0;p<V;p++)x=x<<1|h,E==u-1?(E=0,j.push(c(x)),x=0):E++,h=0;for(h=k.charCodeAt(0),p=0;p<16;p++)x=x<<1|h&1,E==u-1?(E=0,j.push(c(x)),x=0):E++,h=h>>1}b--,b==0&&(b=Math.pow(2,V),V++),delete f[k]}else for(h=m[k],p=0;p<V;p++)x=x<<1|h&1,E==u-1?(E=0,j.push(c(x)),x=0):E++,h=h>>1;b--,b==0&&(b=Math.pow(2,V),V++),m[g]=_++,k=String(v)}if(k!==""){if(Object.prototype.hasOwnProperty.call(f,k)){if(k.charCodeAt(0)<256){for(p=0;p<V;p++)x=x<<1,E==u-1?(E=0,j.push(c(x)),x=0):E++;for(h=k.charCodeAt(0),p=0;p<8;p++)x=x<<1|h&1,E==u-1?(E=0,j.push(c(x)),x=0):E++,h=h>>1}else{for(h=1,p=0;p<V;p++)x=x<<1|h,E==u-1?(E=0,j.push(c(x)),x=0):E++,h=0;for(h=k.charCodeAt(0),p=0;p<16;p++)x=x<<1|h&1,E==u-1?(E=0,j.push(c(x)),x=0):E++,h=h>>1}b--,b==0&&(b=Math.pow(2,V),V++),delete f[k]}else for(h=m[k],p=0;p<V;p++)x=x<<1|h&1,E==u-1?(E=0,j.push(c(x)),x=0):E++,h=h>>1;b--,b==0&&(b=Math.pow(2,V),V++)}for(h=2,p=0;p<V;p++)x=x<<1|h&1,E==u-1?(E=0,j.push(c(x)),x=0):E++,h=h>>1;for(;;)if(x=x<<1,E==u-1){j.push(c(x));break}else E++;return j.join("")},decompress:function(l){return l==null?"":l==""?null:s._decompress(l.length,32768,function(u){return l.charCodeAt(u)})},_decompress:function(l,u,c){var p=[],h=4,m=4,f=3,v="",g=[],k,b,_,V,j,x,E,D={val:c(0),position:u,index:1};for(k=0;k<3;k+=1)p[k]=k;for(_=0,j=Math.pow(2,2),x=1;x!=j;)V=D.val&D.position,D.position>>=1,D.position==0&&(D.position=u,D.val=c(D.index++)),_|=(V>0?1:0)*x,x<<=1;switch(_){case 0:for(_=0,j=Math.pow(2,8),x=1;x!=j;)V=D.val&D.position,D.position>>=1,D.position==0&&(D.position=u,D.val=c(D.index++)),_|=(V>0?1:0)*x,x<<=1;E=t(_);break;case 1:for(_=0,j=Math.pow(2,16),x=1;x!=j;)V=D.val&D.position,D.position>>=1,D.position==0&&(D.position=u,D.val=c(D.index++)),_|=(V>0?1:0)*x,x<<=1;E=t(_);break;case 2:return""}for(p[3]=E,b=E,g.push(E);;){if(D.index>l)return"";for(_=0,j=Math.pow(2,f),x=1;x!=j;)V=D.val&D.position,D.position>>=1,D.position==0&&(D.position=u,D.val=c(D.index++)),_|=(V>0?1:0)*x,x<<=1;switch(E=_){case 0:for(_=0,j=Math.pow(2,8),x=1;x!=j;)V=D.val&D.position,D.position>>=1,D.position==0&&(D.position=u,D.val=c(D.index++)),_|=(V>0?1:0)*x,x<<=1;p[m++]=t(_),E=m-1,h--;break;case 1:for(_=0,j=Math.pow(2,16),x=1;x!=j;)V=D.val&D.position,D.position>>=1,D.position==0&&(D.position=u,D.val=c(D.index++)),_|=(V>0?1:0)*x,x<<=1;p[m++]=t(_),E=m-1,h--;break;case 2:return g.join("")}if(h==0&&(h=Math.pow(2,f),f++),p[E])v=p[E];else if(E===m)v=b+b.charAt(0);else return null;g.push(v),p[m++]=b+v.charAt(0),h--,b=v,h==0&&(h=Math.pow(2,f),f++)}}};return s}();n!=null?n.exports=e:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return e})}(Ai);var iu=Ai.exports;function Ig(n){return{all:n=n||new Map,on:function(e,t){var r=n.get(e);r?r.push(t):n.set(e,[t])},off:function(e,t){var r=n.get(e);r&&(t?r.splice(r.indexOf(t)>>>0,1):n.set(e,[]))},emit:function(e,t){var r=n.get(e);r&&r.slice().map(function(i){i(t)}),(r=n.get("*"))&&r.slice().map(function(i){i(e,t)})}}}iu.compress;iu.decompress;/**!
50
+ * Copyright (c) 2024, VTJ.PRO All rights reserved.
51
+ * @name @vtj/core
52
+ * @author CHC chenhuachun1549@dingtalk.com
53
+ * @version 0.7.15
54
+ * @license <a href="https://vtj.pro/license.html">MIT License</a>
55
+ */const Ti="BuiltIn",ou="VueMaterial",au="VueRouterMaterial",Mg={vue:"Vue","vue-router":"VueRouter"},Rg={[ou]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[au]:["RouterView","RouterLink"]};let So=class{listeners=[];isReady=!1;triggerReady(){this.isReady=!0;for(const e of this.listeners)e();this.listeners=[]}ready(e){this.isReady?e():this.listeners.push(e)}resetReady(){this.isReady=!1}},ii=class su{constructor(e,t,r){this.name=e,this.value=t,this.defaultValue=r,this.setValue(t)}isUnset=!1;setValue(e){this.value=e,this.isUnset=this.value===this.defaultValue}getValue(){return this.value??this.defaultValue}static toDsl(e={}){return Object.entries(e).reduce((t,[r,i])=>(i.isUnset||(t[r]=i.getValue()),t),{})}static parse(e={}){return Object.entries(e).reduce((t,[r,i])=>(t[r]=new su(r,i),t),{})}},oi=class lu{constructor(e){this.schema=e;const{name:t,handler:r}=this.schema;this.name=t,this.handler=r,this.update(e)}name;handler;modifiers={};update(e){Object.assign(this.schema,e);const{handler:t,modifiers:r={}}=this.schema;this.handler=t,this.modifiers=r}static toDsl(e){return Object.entries(e).reduce((t,[r,i])=>{const{handler:o,modifiers:a}=i;return t[r]={name:r,handler:o,modifiers:a},t},{})}static parse(e={}){return Object.entries(e).reduce((t,[r,i])=>(t[r]=new lu(i),t),{})}},rn=class uu{constructor(e){this.schema=e,this.id=e.id||ut(),this.update(e)}id;name="";arg;modifiers;value;iterator;update(e){Object.assign(this.schema,e);const{name:t,arg:r,modifiers:i,value:o,iterator:a}=this.schema;this.name=t,this.arg=r,this.modifiers=i,this.value=o,this.iterator=a}static parse(e=[]){return e.map(t=>new uu(t))}static toDsl(e=[]){return e.map(t=>{const{name:r,arg:i,modifiers:o,value:a,iterator:s,id:l}=t;return{id:l,name:r,arg:i,modifiers:o,value:a,iterator:s}})}};const Se="EVENT_NODE_CHANGE";let jr=class mr{constructor(e,t=null){this.parent=t;const{id:r=ut(),name:i,from:o=""}=e;this.id=r,this.name=i,this.from=o,this.update(e,!0),mr.nodes[this.id]=this}__VTJ_NODE__=!0;locked=!1;static nodes={};id;name;from;invisible=!1;children="";slot;props={};events={};directives=[];disposed=!1;update(e,t=!1){const{invisible:r=!1,locked:i=!1,children:o=[],slot:a,props:s={},events:l={},directives:u=[]}=e;this.invisible=r,this.locked=i,this.setChildren(o,!0),this.setSlot(a,!0),this.props=ii.parse(s),this.events=oi.parse(l),this.directives=rn.parse(u),t||q.emit(Se,this)}setChildren(e="",t=!1){Array.isArray(e)?this.children=e.map(r=>new mr(r,this)):this.children=e,t||q.emit(Se,this)}setSlot(e,t=!1){this.slot=typeof e=="string"?{name:e,params:[]}:e,t||q.emit(Se,this)}setProp(e,t,r,i=!1){const o=this.props[e];o?o.setValue(t):this.props[e]=new ii(e,t,r),i||q.emit(Se,this)}removeProp(e,t=!1){delete this.props[e],t||q.emit(Se,this)}getPropValue(e){const t=this.props[e];if(t)return t.getValue()}setEvent(e,t=!1){const r=this.events[e.name];r?r.update(e):this.events[e.name]=new oi(e),t||q.emit(Se,this)}removeEvent(e,t=!1){delete this.events[e],t||q.emit(Se,this)}setDirective(e,t=!1){const r=this.directives.findIndex(i=>i.id===e.id);r>=0?this.directives.splice(r,1,new rn(e)):this.directives.push(new rn(e)),t||q.emit(Se,this)}removeDirective(e,t=!1){const r=this.directives.findIndex(i=>i===e||i.id===e.id);r>=0&&this.directives.splice(r,1),t||q.emit(Se,this)}removeChild(e,t=!1){const{children:r,disposed:i}=this;if(i||!Array.isArray(r))return;const o=r.findIndex(a=>a===e);e.parent=null,r.splice(o,1),t||q.emit(Se,this)}appendChild(e,t=!1){const{children:r,disposed:i}=this;i||(e.parent=this,Array.isArray(r)?r.push(e):this.children=[e],t||q.emit(Se,this))}insertAfter(e,t=!1){if(!this.parent)return;const r=this.parent.children;if(Array.isArray(r)){e.parent=this.parent;const i=r.indexOf(this);r.splice(i+1,0,e),t||q.emit(Se,this.parent)}}insertBefore(e,t=!1){if(!this.parent)return;const r=this.parent.children;if(Array.isArray(r)){e.parent=this.parent;const i=r.indexOf(this);r.splice(i,0,e),t||q.emit(Se,this.parent)}}movePrev(e=!1){const t=this.parent;if(!t)return;const r=t.children;if(Array.isArray(r)){const i=r.indexOf(this);i>0&&(r.splice(i,1),r.splice(i-1,0,this),e||q.emit(Se,t))}}moveNext(e=!1){const t=this.parent;if(!t)return;const r=t.children;if(Array.isArray(r)){const i=r.indexOf(this);i>-1&&i<r.length-1&&(r.splice(i,1),r.splice(i+1,0,this),e||q.emit(Se,t))}}toDsl(){const{id:e,name:t,from:r,invisible:i,locked:o,slot:a,children:s,props:l,directives:u,events:c}=this,p=Array.isArray(s)?s.map(h=>h.toDsl()):s;return{id:e,name:t,from:r,invisible:i,locked:o,slot:a,children:p,props:ii.toDsl(l),directives:rn.toDsl(u),events:oi.toDsl(c)}}dispose(e=!1){const{children:t,disposed:r}=this;r||(Array.isArray(t)&&t.forEach(i=>i.dispose(!0)),this.parent?this.parent.removeChild(this,e):e||q.emit(Se,this),this.parent=null,this.disposed=!0,delete mr.nodes[this.id])}lock(e=!1){if(this.locked=!0,Array.isArray(this.children))for(const t of this.children)t.lock(!0);e||q.emit(Se,this)}unlock(e=!1){if(this.locked=!1,Array.isArray(this.children))for(const t of this.children)t.unlock(!0);e||q.emit(Se,this)}setVisible(e,t=!1){if(this.invisible=!e,Array.isArray(this.children))for(const r of this.children)r.setVisible(e,!0);t||q.emit(Se,this)}isChild(e){let t=!1;if(Array.isArray(this.children)){for(const r of this.children)if(e===r||e.id===r.id){t=!0;break}else if(t=r.isChild(e),t)break}return t}};const ge="EVENT_BLOCK_CHANGE";let ln=class Bi{__VTJ_BLOCK__=!0;id;name="";inject=[];state={};lifeCycles={};methods={};computed={};watch=[];css="";props=[];emits=[];slots=[];dataSources={};nodes=[];locked=!1;disposed=!1;static normalAttrs=["name","locked","inject","state","lifeCycles","methods","computed","watch","css","props","emits","slots","dataSources"];constructor(e){const{id:t}=e;this.id=t||ut(),this.update(e,!0)}update(e,t=!1){for(const i of Bi.normalAttrs){const o=e[i];o&&(this[i]=o)}const{nodes:r=[]}=e;r.length&&(this.nodes=r.map(i=>new jr(i))),t||q.emit(ge,this)}toDsl(e){const{__VTJ_BLOCK__:t,id:r,nodes:i}=this;return{...Bi.normalAttrs.reduce((o,a)=>(o[a]=this[a],o),{}),__VTJ_BLOCK__:t,__VERSION__:e||eu().toString(),id:r,nodes:i.map(o=>o.toDsl())}}dispose(){this.nodes.map(e=>e.dispose(!0)),this.nodes=[],this.disposed=!0}setFunction(e,t,r,i=!1){this[e][t]=r,i||q.emit(ge,this)}removeFunction(e,t,r=!1){delete this[e][t],r||q.emit(ge,this)}setState(e,t,r=!1){this.state[e]=t,r||q.emit(ge,this)}removeState(e,t=!1){delete this.state[e],t||q.emit(ge,this)}setCss(e,t=!1){this.css=e,t||q.emit(ge,this)}setWatch(e,t=!1){e.id=e.id||ut();const r=this.watch.findIndex(i=>i.id&&i.id===e.id||i===e);r>-1?this.watch.splice(r,1,e):this.watch.push(e),t||q.emit(ge,this)}removeWatch(e,t=!1){const r=this.watch.findIndex(i=>i.id&&i.id===e.id||i===e);r>-1&&(this.watch.splice(r,1),t||q.emit(ge,this))}setProp(e,t=!1){const r=this.props.findIndex(i=>typeof i=="string"?i===e.name:i.name===e.name);r>-1?this.props.splice(r,1,e):this.props.push(e),t||q.emit(ge,this)}removeProp(e,t=!1){const r=this.props.findIndex(i=>typeof i=="string"?i===e.name:i.name===e.name);r>-1&&(this.props.splice(r,1),t||q.emit(ge,this))}setEmit(e,t=!1){const r=this.emits.findIndex(i=>i===e);r>-1?this.emits.splice(r,1,e):this.emits.push(e),t||q.emit(ge,this)}removeEmit(e,t=!1){const r=this.emits.findIndex(i=>i===e);r>-1&&(this.emits.splice(r,1),t||q.emit(ge,this))}setSlot(e,t=!1){const r=this.slots.findIndex(i=>i===e);r>-1?this.slots.splice(r,1,e):this.slots.push(e),t||q.emit(ge,this)}removeSlot(e,t=!1){const r=this.slots.findIndex(i=>i===e);r>-1&&(this.slots.splice(r,1),t||q.emit(ge,this))}setInject(e,t=!1){const r=this.inject.findIndex(i=>i.name===e.name);r>-1?this.inject.splice(r,1,e):this.inject.push(e),t||q.emit(ge,this)}removeInject(e,t=!1){const r=this.inject.findIndex(i=>i.name===e.name);r>-1&&(this.inject.splice(r,1),t||q.emit(ge,this))}setDataSource(e,t=!1){this.dataSources[e.name]=e,t||q.emit(ge,this)}removeDataSource(e,t=!1){delete this.dataSources[e],t||q.emit(ge,this)}insertAfter(e,t,r=!1){e.parent=null;const i=this.nodes.indexOf(t);this.nodes.splice(i+1,0,e),r||q.emit(ge,this)}insertBefore(e,t,r=!1){e.parent=null;const i=this.nodes.indexOf(t);this.nodes.splice(i,0,e),r||q.emit(ge,this)}appendNode(e,t=!1){e.parent=null,this.nodes.push(e),t||q.emit(ge,this)}addNode(e,t,r="inner",i=!1){t?["left","top"].includes(r)?t.parent?t.insertAfter(e,i):this.insertBefore(e,t,i):["right","bottom"].includes(r)?t.parent?t.insertAfter(e,i):this.insertAfter(e,t,i):t.appendChild(e,i):this.appendNode(e,i)}__removeNode(e,t=!1){const r=this.nodes.findIndex(i=>i.id===e.id);r>-1&&(this.nodes.splice(r,1),t||q.emit(ge,this))}removeNode(e,t=!1){e.parent?e.dispose(t):(e.dispose(!0),this.__removeNode(e,t))}move(e,t,r="inner",i=!1){e.parent?e.parent.removeChild(e,!0):this.__removeNode(e,!0),this.addNode(e,t,r,i)}movePrev(e,t=!1){if(e.parent)e.movePrev(t);else{const r=this.nodes,i=r.indexOf(e);i>0&&(r.splice(i,1),r.splice(i-1,0,e),t||q.emit(ge,this))}}moveNext(e,t=!1){if(e.parent)e.moveNext(t);else{const r=this.nodes,i=r.indexOf(e);i>-1&&i<r.length-1&&(r.splice(i,1),r.splice(i+1,0,e),t||q.emit(ge,this))}}cloneNode(e,t=!1){const r=pu(e.toDsl()),i=new jr(r);return this.addNode(i,e,"bottom",t),i}lock(e=!1){this.locked=!0;for(const t of this.nodes)t.lock(!0);e||q.emit(ge,this)}unlock(e=!1){this.locked=!1;for(const t of this.nodes)t.unlock(!0);e||q.emit(ge,this)}isChild(e){let t=!1;for(const r of this.nodes)if(e===r||e.id===r.id){t=!0;break}else if(t=r.isChild(e),t)break;return t}};const Ue="EVENT_PROJECT_CHANGE",Fn="EVENT_PROJECT_ACTIVED",zi="EVENT_PROJECT_DEPS_CHANGE",En="EVENT_PROJECT_PAGES_CHANGE",fr="EVENT_PROJECT_BLOCKS_CHANGE",Xa="EVENT_PROJECT_APIS_CHANGE",cu="EVENT_PROJECT_PUBLISH",du="EVENT_PROJECT_FILE_PUBLISH";let Pg=class Oi{id="";name="";description="";homepage="";dependencies=[];pages=[];blocks=[];apis=[];currentFile=null;static attrs=["name","homepage","description","dependencies","pages","blocks","apis"];constructor(e){const{id:t}=e;this.id=t||ut(),this.update(e,!0)}update(e,t=!1){for(const r of Oi.attrs){const i=e[r];i&&(this[r]=i)}t||q.emit(Ue,{model:this,type:"update",data:e})}isPageFile(e){return e.type==="page"}toDsl(e){const{id:t}=this,r=Oi.attrs.reduce((i,o)=>(i[o]=this[o],i),{});return r.pages&&(r.pages=r.pages.map(i=>(delete i.dsl,i))),r.blocks&&(r.blocks=r.blocks.map(i=>(delete i.dsl,i))),{__VTJ_PROJECT__:!0,__VERSION__:e||eu().toString(),id:t,...r}}active(e,t=!1){this.currentFile=e,t||q.emit(Fn,{model:this,type:"update",data:e})}deactivate(e=!1){this.currentFile=null,e||q.emit(Fn,{model:this,type:"update",data:null})}setDeps(e,t=!1){const r=this.dependencies,i=r.findIndex(a=>a.package===e.package);let o;if(i>-1?(o="update",r.splice(i,1,{...r[i],...e})):(o="create",r.push(e)),!t){const a={model:this,type:o,data:e};q.emit(zi,a),q.emit(Ue,a)}}removeDeps(e,t=!1){const r=this.dependencies,i=r.findIndex(o=>o.package===e.package);if(i>-1&&r.splice(i,1),!t){const o={model:this,type:"delete",data:e};q.emit(zi,o),q.emit(Ue,o)}}getPage(e){const t=(r,i=[])=>{for(const o of i){if(o.id===r)return o;if(o.children&&o.children.length){const a=t(r,o.children);if(a)return a}}};return t(e,this.pages)}getPages(){const e=(t=[])=>{let r=[];for(const i of t)i.dir?i.children&&i.children.length&&(r=r.concat(e(i.children))):r.push(i);return r};return e(this.pages)}createPage(e,t,r=!1){if(e.id=e.raw?e.name:e.id||ut(),e.type="page",e.dir?e.children=[]:e.dsl=e.dsl||new ln({id:e.id,name:$r(e.name)}).toDsl(),t){const i=this.getPage(t);i?i.children?i.children.push(e):i.children=[e]:console.warn(`not found PageFile for id: ${t} `)}else this.pages.push(e);if(!this.currentFile&&!e.dir&&this.active(e,r),!r){const i={model:this,type:"create",data:e};q.emit(En,i),q.emit(Ue,i)}}updatePage(e,t=!1){const r=this.getPage(e.id);if(r?Object.assign(r,e):console.warn(`not found PageFile for id: ${e.id} `),!t){const i={model:this,type:"update",data:e};q.emit(En,i),q.emit(Ue,i)}}clonePage(e,t,r=!1){const i=ut(),o=`${e.name}Copy`,a=`${e.title}_副本`,s=new ln({id:i,name:o}).toDsl(),l=ct({},e,{id:i,name:o,title:a,dsl:s}),u=t?this.getPage(t)?.children||[]:this.pages,c=u.findIndex(p=>p.id===e.id);if(u.splice(c+1,0,l),!r){const p={model:this,type:"clone",data:{page:e,newPage:l}};q.emit(En,p),q.emit(Ue,p)}}removePage(e,t=!1){const r=this.getPage(e),i=(o,a)=>{const s=a.findIndex(l=>l.id===o);if(s>=0){a.splice(s,1);return}for(const l of a)if(l.children&&l.children.length)return i(o,l.children)};if(i(e,this.pages),e===this.homepage&&(this.homepage=""),this.currentFile?.id===e&&this.deactivate(t),!t){const o={model:this,type:"delete",data:r};q.emit(En,o),q.emit(Ue,o)}}getBlock(e){return this.blocks.find(t=>t.id===e)}createBlock(e,t=!1){const r=e.id||ut(),i=$r(e.name);if(e.id=r,e.type="block",e.dsl=new ln({id:r,name:i}).toDsl(),this.blocks.push(e),this.currentFile||this.active(e,t),!t){const o={model:this,type:"create",data:e};q.emit(fr,o),q.emit(Ue,o)}}updateBlock(e,t=!1){const r=this.getBlock(e.id);if(r?(Object.assign(r,e),r.dsl&&(r.dsl.name=e.name)):console.warn(`not found PageFile for id: ${e.id} `),!t){const i={model:this,type:"update",data:e};q.emit(fr,i),q.emit(Ue,i)}}removeBlock(e,t=!1){const r=this.getBlock(e),i=this.blocks,o=i.findIndex(a=>a.id===e);if(o>-1?(i.splice(o,1),this.currentFile?.id===e&&this.deactivate(t)):console.warn(`not found PageFile for id: ${e} `),!t){const a={model:this,type:"delete",data:r};q.emit(fr,a),q.emit(Ue,a)}}existBlockName(e,t=[]){return this.blocks.some(r=>r.name===e&&!t.includes(r.id))}existPageName(e,t=[]){return this.getPages().some(r=>r.name===e&&!t.includes(r.id))}setApi(e,t=!1){const r=this.apis.find(o=>o.name===e.name||o.id===e.id);let i;if(r?(i="update",Object.assign(r,e)):(i="create",e.id=ut(),this.apis.push(e)),!t){const o={model:this,type:i,data:e};q.emit(Xa,o),q.emit(Ue,o)}}removeApi(e,t=!1){const r=this.apis.findIndex(i=>i.name===e||i.id===e);if(r>-1?this.apis.splice(r,1):console.warn(`not found Api for name: ${e} `),!t){const i={model:this,type:"delete",data:e};q.emit(Xa,i),q.emit(Ue,i)}}existApiName(e,t=[]){return this.apis.some(r=>r.name===e&&!t.includes(r.id))}setHomepage(e,t=!1){if(this.homepage=e,!t){const r={model:this,type:"update",data:e};q.emit(Ue,r)}}publish(e){const t={model:this,type:"publish",data:e||this};e?q.emit(du,t):q.emit(cu,t)}};const Cn="EVENT_HISTORY_CHANGE",vr="EVENT_HISTORY_LOAD";let Ng=class{options={max:50};index=-1;id;items;constructor(e,t={}){Object.assign(this.options,t);const{id:r,items:i=[]}=e;this.id=r,this.items=i}toDsl(){const{id:e,items:t}=this;return{id:e,items:t.map(r=>({id:r.id,label:r.label}))}}get(e){return this.items.find(t=>t.id===e)}add(e,t=!1){const{max:r}=this.options,i={id:ut(),label:new Date().toLocaleString(),dsl:Jn(e)};if(this.items.unshift(i),this.items.length>r){const o=this.items.splice(r);t||q.emit(Cn,{model:this,type:"delete",data:o.map(a=>a.id)})}this.index=-1,t||q.emit(Cn,{model:this,type:"create",data:i})}remove(e,t=!1){const r=this.items.findIndex(i=>i.id===e);r>-1?(this.items.splice(r,1),r===this.index?this.index=-1:this.index>=this.items.length&&(this.index=this.items.length-1)):console.warn(`not found HistoryItem for id: ${e} `),t||q.emit(Cn,{model:this,type:"delete",data:[e]})}forward(e=!1){const{index:t,items:r}=this;if(t<0)return;--this.index;const i=r[this.index];i&&!e&&q.emit(vr,{model:this,type:"load",data:i})}backward(e=!1){const{index:t,items:r}=this;if(t>=r.length-1)return;t<0&&(this.index=0),++this.index;const i=r[this.index];i&&!e&&q.emit(vr,{model:this,type:"load",data:i})}load(e,t=!1){const r=this.items.findIndex(i=>i.id===e);r>=0&&(this.index=r,t||q.emit(vr,{model:this,type:"load",data:this.items[r]}))}clear(e=!1){this.index=-1;const t=this.items.map(r=>r.id);this.items=[],e||q.emit(Cn,{model:this,type:"clear",data:t})}};const q=Ig();function $e(n){return n instanceof ln}function pu(n){return delete n.id,Array.isArray(n.children)&&(n.children=n.children.map(e=>pu(e))),n}/**!
56
+ * Copyright (c) 2024, VTJ.PRO All rights reserved.
57
+ * @name @vtj/icons
58
+ * @author CHC chenhuachun1549@dingtalk.com
59
+ * @version 0.7.15
60
+ * @license <a href="https://vtj.pro/license.html">MIT License</a>
61
+ */const Fg=O({name:"ExitFullscreen",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>w("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M298.666667 298.666667V85.333333h85.333333v298.666667H85.333333V298.666667h213.333334z m426.666666-213.333334v213.333334h213.333334v85.333333h-298.666667V85.333333h85.333333zM298.666667 938.666667v-213.333334H85.333333v-85.333333h298.666667v298.666667H298.666667z m426.666666 0h-85.333333v-298.666667h298.666667v85.333333h-213.333334v213.333334z"}].map((e,t)=>w("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),Hg=O({name:"Fixed",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>w("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M374.442667 486.229333l-81.237334 101.034667c-2.218667 4.352-2.218667 6.570667 0 8.789333 0 2.218667 2.218667 4.352 6.570667 4.352H719.36c4.352 0 6.570667-2.133333 6.570667-4.352 0-2.218667 2.218667-4.437333 0-8.789333l-81.237334-101.034667H374.442667z m362.922666 179.2H281.770667a66.56 66.56 0 0 1-57.173334-35.754666 67.242667 67.242667 0 0 1 7.082667-66.730667l104.96-128.853333h345.856l104.96 128.853333c14.250667 19.029333 19.029333 45.226667 7.168 66.730667a66.56 66.56 0 0 1-57.258667 35.84zM380.16 178.773333H639.146667L680.362667 76.544c2.218667-4.266667 0-6.485333 0-6.485333 0-2.218667-2.133333-4.352-6.485334-4.352H347.562667c-4.352 0-6.570667 2.133333-6.570667 4.266666 0 2.218667-2.133333 4.437333 0 6.570667l39.253333 102.229333z m307.114667 62.122667H331.861333l-57.173333-145.493333a61.269333 61.269333 0 0 1 7.082667-57.173334 63.317333 63.317333 0 0 1 52.48-26.282666h355.413333c21.418667 0 40.533333 9.557333 52.48 26.197333 11.946667 16.725333 14.250667 38.229333 7.082667 57.258667l-61.952 145.493333z",color:"#FFFFFF"},{path:"M386.901333 426.922667h245.248V245.76H386.901333v181.162667z m309.930667 59.733333H322.304V186.026667h372.053333v300.544h2.474667zM510.72 992.256c-19.029333-16.725333-28.586667-40.618667-30.976-66.816L458.24 636.842667h107.349333l-21.418666 288.597333a127.146667 127.146667 0 0 1-33.450667 66.816",color:"#FFFFFF"},{path:"M19.2 905.557333m52.48 0l878.08 0q52.48 0 52.48 52.48l0 0.085334q0 52.48-52.48 52.48l-878.08 0q-52.48 0-52.48-52.48l0-0.085334q0-52.48 52.48-52.48Z",color:"#FFFFFF"}].map((e,t)=>w("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),Lg=O({name:"Fullscreen",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>w("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M170.666667 170.666667v213.333333H85.333333V85.333333h298.666667v85.333334H170.666667z m682.666666 213.333333V170.666667h-213.333333V85.333333h298.666667v298.666667h-85.333334zM170.666667 640v213.333333h213.333333v85.333334H85.333333v-298.666667h85.333334z m682.666666 0h85.333334v298.666667h-298.666667v-85.333334h213.333333v-213.333333z"}].map((e,t)=>w("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),Ug=O({name:"Invisible",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>w("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M891.0336 113.7664a32 32 0 0 1 0 45.2352l-104.6016 104.6016a380.1088 380.1088 0 0 1 81.408 65.024l4.5312 4.7104c2.6112 2.6368 5.4272 5.3504 8.704 8.3968l11.6224 10.4192 30.6176 26.624 12.9792 11.6224c53.76 48.8448 73.984 78.7456 73.984 120.064 0 47.488-26.7776 79.744-100.3776 142.848l-17.8432 15.4368a471.04 471.04 0 0 0-15.5392 14.1312l-4.7104 4.6592-10.5984 11.008c-80.8192 81.4336-209.4848 129.536-346.7008 129.536-86.784 0-169.5744-18.9696-239.1808-53.3504l-135.5264 135.5008a32 32 0 1 1-45.2352-45.2352l123.8784-123.904a364.9536 364.9536 0 0 1-63.4368-56.192l-1.8176-2.048a249.0112 249.0112 0 0 0-21.4016-20.1728l-12.6976-10.7776-17.6896-14.72-12.4672-10.496C36.6592 581.7856 12.8 549.9392 12.8 510.464c0-38.7072 19.3792-66.5088 70.8096-111.7952l12.4416-10.7776 27.4688-23.1168c13.568-11.4688 21.4016-18.56 27.8016-25.3184l3.712-4.0448a30.0544 30.0544 0 1 1 44.9792 39.936c-6.656 7.4752-13.2352 14.0032-22.9888 22.6816l-9.216 8.0384-42.8544 36.1728c-12.288 10.6752-21.4528 19.328-29.2608 27.8016-15.1808 16.4352-22.784 30.0032-22.784 40.448 0 10.1376 7.2448 23.2448 21.7344 39.0912 7.8592 8.6016 17.152 17.408 29.696 28.2624l11.5968 9.856 17.4336 14.5152c17.8176 14.8224 28.416 24.0128 36.9664 32.5376l4.9664 5.0944 11.3408 12.3648a315.8272 315.8272 0 0 0 55.168 45.568l89.7536-89.8304a30.0544 30.0544 0 0 1 10.1632-10.1632l217.4976-217.472a146.4064 146.4064 0 0 0-200.1152 70.7328 146.4832 146.4832 0 0 0-12.288 69.632 30.0544 30.0544 0 0 1-60.0064 4.224 206.7712 206.7712 0 0 1 17.408-98.304c46.2592-103.936 168.448-150.8608 272.4096-104.576 9.3696 4.1728 18.2528 8.96 26.6496 14.2592l56.5248-56.5504c-50.5088-17.7408-106.88-27.3664-165.2736-27.3664-95.1808 0-185.7024 25.472-254.7968 71.552A30.08 30.08 0 0 1 226.3808 273.92c79.0272-52.736 181.3248-81.664 288.1536-81.664 75.3152 0 148.0704 14.4896 211.712 41.0368l119.552-119.5008a32 32 0 0 1 45.2352 0z m-148.5568 193.792l-71.0656 71.0912a206.592 206.592 0 0 1 29.824 215.808c-46.2848 103.9616-168.4992 150.8608-272.4608 104.576a205.7216 205.7216 0 0 1-48-29.7472l-60.1088 60.0832 10.112 4.2496c51.968 20.9664 110.7968 32.7168 170.88 34.2016l12.8768 0.1536c124.928 0 240.7168-44.1088 309.504-117.4272l6.656-6.8864c3.1744-3.1744 6.5536-6.4 10.4704-9.984l8.6528-7.7824 44.6976-38.8352c17.5872-15.6928 29.568-27.776 38.8864-39.68 11.2384-14.336 16.8192-26.624 16.8192-36.864 0-10.6752-5.9904-23.552-18.0224-38.6048-9.1648-11.4688-20.7104-23.1424-37.376-38.144l-11.904-10.496-26.7776-23.1936c-11.1104-9.728-18.4832-16.4608-25.0112-22.9376l-13.312-13.7472a332.9792 332.9792 0 0 0-75.3408-55.808z m-113.8432 113.8688l-205.056 205.0816a146.4064 146.4064 0 0 0 222.72-56.5248 146.3552 146.3552 0 0 0-17.664-148.5568z",color:"#CCCCCC"}].map((e,t)=>w("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),Jg=O({name:"LineHeight",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>w("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M648 160H104c-4.4 0-8 3.6-8 8v128c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-64h168v560h-92c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-92V232h168v64c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8z m272.8 546H856V318h64.8c6 0 9.4-7 5.7-11.7L825.7 178.7c-2.9-3.7-8.5-3.7-11.3 0L713.6 306.3c-3.7 4.7-0.4 11.7 5.7 11.7H784v388h-64.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.8-4.7 0.4-11.7-5.6-11.7z"}].map((e,t)=>w("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),hu=O({name:"Maximize",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>w("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M926.45937303 97.54062697v828.2973677H97.54062697V97.54062697h828.91874606m4.97102697-77.6722963h-838.8608c-39.7682157 0-72.07989097 32.31167525-72.07989097 72.07989096v839.48217837c0 39.7682157 32.31167525 72.07989097 72.07989097 72.07989097h839.48217837c39.7682157 0 72.07989097-32.31167525 72.07989096-72.07989097v-838.8608c0-40.38959408-32.31167525-72.70126933-72.70126933-72.70126933 0.62137837 0 0 0 0 0z"}].map((e,t)=>w("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),mu=O({name:"Minimize",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>w("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M65.23884 456.152041 958.760137 456.152041l0 111.695918L65.23884 567.847959 65.23884 456.152041z"}].map((e,t)=>w("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),fu=O({name:"Popup",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>w("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M959.72 0H294.216a63.96 63.96 0 0 0-63.96 63.96v127.92H64.28A63.96 63.96 0 0 0 0.32 255.84V959.4a63.96 63.96 0 0 0 63.96 63.96h703.56a63.96 63.96 0 0 0 63.96-63.96V792.465h127.92a63.96 63.96 0 0 0 63.96-63.96V63.96A63.96 63.96 0 0 0 959.72 0zM767.84 728.505V959.4H64.28V255.84h703.56z m189.322 0H831.8V255.84a63.96 63.96 0 0 0-63.96-63.96H294.216V63.96H959.72z"}].map((e,t)=>w("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),qg=O({name:"QrCodeLogin",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>w("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M1024 866.459826V1024h-78.781217v-157.540174H1024z m-157.540174 0V1024H801.391304l-13.712695-13.712696v-143.827478h78.781217z m-78.758956-315.080348v157.540174h157.517913V551.401739H1024v236.321391H708.919652v-78.781217h-78.758956l-0.022261 143.805217-78.758957-78.758956v-222.586435h236.321392z m-315.080348 0l-0.022261 143.805218-143.782957-143.805218h143.805218zM1024 0v472.598261H551.379478V0H1024zM472.598261 0v472.598261h-222.564174l-78.758957-78.758957h222.564174V78.758957H78.758957v222.541913L0 222.564174V0h472.598261z m472.620522 78.758957H630.160696v315.080347H945.196522V78.758957zM315.080348 157.540174v157.540174H157.540174V157.540174h157.540174z m551.379478 0v157.540174h-157.540174V157.540174h157.540174z",color:"#26B8CF"}].map((e,t)=>w("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),vu=O({name:"RawClose",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>w("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M512 432.46249999L865.92499999 78.49999973a56.13749998 56.13749998 0 0 1 79.53750003-5e-8 56.17500029 56.17500029 0 0 1 0 79.53750002L591.49999971 512l353.925 353.92499999c21.97500029 21.97500029 22.12499972 57.4125003 0 79.53750003a56.17500029 56.17500029 0 0 1-79.53750004 0L512 591.49999971 158.07500001 945.50000027a56.13749998 56.13749998 0 0 1-79.53750003 5e-8 56.17500029 56.17500029 0 0 1 0-79.53750002L432.50000029 512 78.49999973 158.07500001a56.13749998 56.13749998 0 0 1-5e-8-79.53750003 56.17500029 56.17500029 0 0 1 79.53750002 0L512 432.50000029z"}].map((e,t)=>w("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),Wg=O({name:"RawLock",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>w("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M800.421 436.525h-63.661v-148.673c0-124.507-100.762-225.757-224.732-225.757-123.98 0-224.857 101.25-224.857 225.766v148.662h-63.593c-30.667 0-55.532 24.952-55.532 55.752v407.048c0 30.848 24.865 55.82 55.532 55.82h576.9c30.667 0 55.465-24.97 55.465-55.82v-407.048c0-30.802-24.855-55.752-55.532-55.752zM543.203 706.409v88.88c-0.016 4.026-3.264 7.287-7.282 7.325h-47.733c-4.039-0.022-7.307-3.287-7.334-7.322v-88.882c-22.423-11.518-37.953-34.602-37.953-61.659 0-38.288 30.945-69.425 69.070-69.425 38.183 0 69.138 31.136 69.138 69.415 0.057 27.067-15.473 50.152-37.905 61.659zM650.514 436.525h-276.989v-144.986c0-76.691 62.196-139.146 138.552-139.146 76.366 0 138.447 62.454 138.447 139.146v144.986z"}].map((e,t)=>w("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),Kg=O({name:"RawUnLock",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>w("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M796.444 446.009H343.61V320.853c0-86.47 70.542-157.013 157.013-157.013s157.014 70.542 157.014 157.013c0 25.031 20.48 45.511 45.51 45.511s45.512-20.48 45.512-45.51c0-136.534-111.502-248.036-248.036-248.036S252.587 184.32 252.587 320.853V446.01H204.8c-25.031 0-45.511 20.48-45.511 45.511v420.978c0 25.03 20.48 45.51 45.511 45.51h591.644c25.032 0 45.512-20.48 45.512-45.51V491.52c0-25.031-20.48-45.511-45.512-45.511zM537.031 737.28c-2.275 0-4.551 2.276-4.551 4.551v43.236c0 43.235-13.653 50.062-31.858 50.062s-31.858-4.551-31.858-50.062V739.556c0-2.276-2.275-4.552-4.55-4.552-13.654-9.102-22.756-25.03-22.756-45.51 0-31.858 27.306-59.165 59.164-59.165s59.165 25.031 59.165 59.164c2.275 20.48-9.103 36.41-22.756 47.787z"}].map((e,t)=>w("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),Yg=O({name:"Rows",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>w("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M915.692308 275.692308h-807.384616c-15.753846 0-29.538462-13.784615-29.538461-29.538462v-59.076923C78.769231 171.323077 92.553846 157.538462 108.307692 157.538462h807.384616c15.753846 0 29.538462 13.784615 29.538461 29.538461v59.076923c0 15.753846-13.784615 29.538462-29.538461 29.538462z m0 293.415384h-807.384616c-15.753846 0-29.538462-13.784615-29.538461-29.538461v-59.076923c0-13.784615 13.784615-27.569231 29.538461-27.569231h807.384616c15.753846 0 29.538462 13.784615 29.538461 29.538461v59.076924c0 13.784615-13.784615 27.569231-29.538461 27.56923z m0 297.353846h-807.384616c-15.753846 0-29.538462-13.784615-29.538461-29.538461v-59.076923c0-15.753846 13.784615-29.538462 29.538461-29.538462h807.384616c15.753846 0 29.538462 13.784615 29.538461 29.538462v59.076923c0 15.753846-13.784615 29.538462-29.538461 29.538461z"}].map((e,t)=>w("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),Gg=O({name:"Skin",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>w("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M910.74 338.74L756.8 195.33c-11.5-10.71-27.32-16.15-43.59-14.99-1.53-0.12-3.03-0.18-4.48-0.18h-82.01l-5.75 2.98c-30.39 15.75-69.15 24.42-109.16 24.42s-78.78-8.67-109.16-24.42l-5.75-2.98h-82.02c-20.91 0-39.71 10.63-49.43 27.51L113.29 349.43C102.78 359.21 97 372.22 97 386.06c0 13.84 5.78 26.84 16.29 36.63l111.17 103.58c9.31 8.66 21.33 13.87 34.27 14.95v250.3c0 28.84 25.19 52.31 56.14 52.31h393.85c30.96 0 56.14-23.47 56.14-52.31V530.57c13.1-1 25.28-6.23 34.68-14.98l111.18-103.58c21.7-20.19 21.7-53.07 0.02-73.27z m0 0"}].map((e,t)=>w("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),Zg=O({name:"UnFixed",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>w("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M301.824 455.509333l-168.021333 18.261334c-5.973333 2.048-8.021333 4.010667-8.021334 8.106666-2.048 1.962667-2.048 5.973333 1.962667 10.069334l386.730667 386.730666c4.010667 4.010667 8.021333 4.010667 10.069333 1.962667 2.048-1.962667 6.058667-1.962667 8.106667-8.021333l18.261333-168.106667-249.088-249.002667z m168.106667 467.626667L83.2 536.661333C62.976 516.266667 56.917333 485.802667 65.024 457.472a80.725333 80.725333 0 0 1 62.72-50.602667l198.4-20.224 293.546667 293.546667-20.224 198.4c-4.010667 28.330667-22.272 54.613333-50.602667 62.72-28.330667 8.106667-58.709333 2.048-78.933333-18.176z m93.098666-720.64l240.896 240.896 133.632-56.661333c6.058667-2.048 6.058667-6.058667 6.058667-6.058667 2.048-2.048 2.048-6.144-2.048-10.24L637.952 66.901333C633.856 62.805333 629.76 62.805333 627.797333 64.853333c-2.048 2.048-6.058667 2.048-6.058666 6.144l-58.709334 131.584z m224.682667 317.866667L486.058667 218.709333 560.981333 46.592a73.557333 73.557333 0 0 1 54.613334-42.496 76.032 76.032 0 0 1 66.901333 22.186667l301.653333 301.738666a75.946667 75.946667 0 0 1 22.186667 66.816 73.557333 73.557333 0 0 1-42.496 54.613334l-176.128 70.826666z",color:"#FFFFFF"},{path:"M360.618667 421.12l224.682666 224.682667 165.973334-165.973334L526.592 255.146667 360.618667 421.12z m226.730666 315.818667L269.482667 419.072l255.146666-255.061333 315.733334 315.818666-255.146667 255.146667 2.133333 1.962667z",color:"#FFFFFF"},{path:"M0.256 1008.213333c-2.048-30.378667 10.069333-58.709333 30.293333-83.029333L257.365333 662.016l91.050667 91.136L85.333333 979.882667a152.576 152.576 0 0 1-84.992 28.330666",color:"#FFFFFF"}].map((e,t)=>w("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),Xg=O({name:"UserLogin",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>w("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M943.081739 44.877913a79.09287 79.09287 0 0 1 79.805218 75.620174l0.111304 4.296348v511.510261a79.09287 79.09287 0 0 1-75.620174 79.805217l-4.296348 0.111304H685.612522v100.930783h178.799304v145.229913l-124.660869-0.022261-54.227479-54.227478h124.66087v-36.730435l-161.413565-0.022261-54.227479-54.227478h36.841739v-100.930783h-137.772521l-54.249739-54.249739h481.458087c26.000696 0 46.124522-18.988522 47.838608-44.432695l0.111305-3.494957V147.055304c0-27.158261-20.769391-47.949913-47.949913-47.949913H102.177391c-25.978435 0-46.124522 19.010783-47.838608 44.432696l-0.111305 3.517217v129.78087L0 222.608696V124.416l0.111304-3.917913A79.026087 79.026087 0 0 1 75.620174 44.966957l4.296348-0.111305h863.165217z m-38.244174 118.160696v435.021913l-529.408-0.022261L118.160696 340.769391V163.038609h786.676869z",color:"#26B8CF"}].map((e,t)=>w("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),Qg=O({name:"Visible",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>w("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M514.5344 192.2304c137.216 0 265.856 48.0768 346.7008 129.536l8.576 8.9344c5.888 6.144 12.288 12.16 22.8864 21.4528l30.592 26.624 13.0048 11.6224c53.76 48.8448 73.984 78.7456 73.984 120.064 0 45.952-25.088 77.6448-93.4144 136.832l-24.832 21.4528c-9.0112 7.936-14.976 13.4656-20.224 18.7904l-10.5984 11.008c-80.8192 81.4336-209.4848 129.536-346.7008 129.536-141.7216 0-272.896-50.6112-353.2544-136.3456l-8.064-8.8576-4.2496-4.4544c-6.7072-6.784-15.3088-14.336-29.8496-26.5216l-17.6896-14.72-12.4672-10.496C36.6592 581.7856 12.8 549.9392 12.8 510.464c0-41.6768 22.4768-70.7328 83.2512-122.5728l27.4688-23.1168c13.568-11.4688 21.4016-18.56 27.8016-25.3184l3.712-4.0448a30.0544 30.0544 0 1 1 44.9792 39.936l-5.76 6.2464c-6.8608 7.168-14.592 14.336-26.4448 24.4736L124.928 442.24c-12.288 10.6752-21.4528 19.328-29.2608 27.8016-15.1808 16.4352-22.784 30.0032-22.784 40.448 0 10.1376 7.2448 23.2448 21.7344 39.0912 7.8592 8.6016 17.152 17.408 29.696 28.2624l11.5968 9.856 27.2896 22.784c15.1296 12.7488 24.064 20.8896 32.0768 29.3632l11.3408 12.3648c31.7696 33.28 74.496 61.3888 124.16 81.408 55.6544 22.4512 119.2192 34.3552 183.7312 34.3552 121.2672 0 233.9072-41.5488 303.3088-111.0272l12.8512-13.2864 6.7328-6.5024c3.584-3.4048 7.6032-7.04 12.3904-11.264l44.6976-38.8352 10.9312-9.984c11.8528-11.0848 20.7104-20.4288 27.9552-29.696 11.2384-14.336 16.8192-26.624 16.8192-36.864 0-10.6752-5.9904-23.552-18.0224-38.6048-9.1648-11.4688-20.7104-23.1424-37.376-38.144l-11.904-10.496-26.7776-23.1936-12.4416-11.0592c-4.8384-4.3776-8.832-8.192-12.544-11.8784l-13.312-13.7472c-69.4272-69.4784-182.016-111.0272-303.3088-111.0272-95.1808 0-185.7024 25.472-254.7968 71.552A30.08 30.08 0 0 1 226.3808 273.92c79.0272-52.736 181.3248-81.664 288.1536-81.664z m-1.8176 111.9488c31.8976 0 62.5664 7.1168 91.008 21.12a30.08 30.08 0 0 1-26.5472 53.9392 146.4064 146.4064 0 0 0-210.688 131.3024 146.4064 146.4064 0 0 0 146.2272 146.2016 146.4064 146.4064 0 0 0 146.2272-146.2016c0-23.936-5.888-47.6672-17.0496-68.608a30.0544 30.0544 0 0 1 53.0688-28.2624 206.7712 206.7712 0 0 1 24.0896 96.8704c0 113.792-92.544 206.336-206.336 206.336s-206.336-92.544-206.336-206.336c0-113.8176 92.544-206.3616 206.336-206.3616z m97.2544 152.0128l3.2256 0.4864c16.2304 3.4048 26.6496 19.2512 23.296 35.4304-3.5072 17.4592-12.7488 42.9312-29.3888 67.4816-28.5184 42.0352-69.248 64.4352-117.504 64.4352-3.9936 0-7.9616-0.1536-12.0064-0.4608a30.0544 30.0544 0 1 1 4.4544-59.9552c29.5424 2.176 53.1456-8.448 71.424-32.384l3.3792-4.6336 2.6624-4.0704c5.888-9.3184 10.5984-19.3792 14.1568-29.4656l2.1504-6.4512a115.712 115.712 0 0 0 0.768-2.6368l1.8944-7.2192c4.352-13.3632 17.4848-21.9392 31.488-20.5568z",color:"#CCCCCC"}].map((e,t)=>w("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),e2=Object.freeze(Object.defineProperty({__proto__:null,ExitFullscreen:Fg,Fixed:Hg,Fullscreen:Lg,Invisible:Ug,LineHeight:Jg,Maximize:hu,Minimize:mu,Popup:fu,QrCodeLogin:qg,RawClose:vu,RawLock:Wg,RawUnLock:Kg,Rows:Yg,Skin:Gg,UnFixed:Zg,UserLogin:Xg,Visible:Qg},Symbol.toStringTag,{value:"Module"}));function Y(n,e){return zt(O({name:n,render(){return w("i",{class:e})}}))}const t2=Y("VtjIconWindowMax","vtj-icon-window-max"),n2=Y("VtjIconWindowMin","vtj-icon-window-min"),r2=Y("VtjIconWindowClose","vtj-icon-window-close"),i2=Y("VtjIconWindowNormal","vtj-icon-window-normal"),o2=Y("VtjIconWindowDown","vtj-icon-window-down"),a2=Y("VtjIconWindowUp","vtj-icon-window-up"),s2=Y("VtjIconNpSave","vtj-icon-np-save"),l2=Y("VtjIconNpFile","vtj-icon-np-file"),u2=Y("VtjIconNpEdit","vtj-icon-np-edit"),c2=Y("VtjIconNpShare","vtj-icon-np-share"),d2=Y("VtjIconNpSearch","vtj-icon-np-search"),p2=Y("VtjIconNpExport","vtj-icon-np-export"),h2=Y("VtjIconNpImport","vtj-icon-np-import"),m2=Y("VtjIconNpList","vtj-icon-np-list"),f2=Y("VtjIconNpPrint","vtj-icon-np-print"),v2=Y("VtjIconNpCancel","vtj-icon-np-cancel"),g2=Y("VtjIconNpConfirm","vtj-icon-np-confirm"),y2=Y("VtjIconNpReset","vtj-icon-np-reset"),b2=Y("VtjIconNpReturnAll","vtj-icon-np-return-all"),w2=Y("VtjIconNpReturn","vtj-icon-np-return"),_2=Y("VtjIconNpRemove","vtj-icon-np-remove"),x2=Y("VtjIconNpRemoveRow","vtj-icon-np-remove-row"),S2=Y("VtjIconNpDelete","vtj-icon-np-delete"),k2=Y("VtjIconNpExit","vtj-icon-np-exit"),$2=Y("VtjIconNpRefresh","vtj-icon-np-refresh"),j2=Y("VtjIconNpAdd","vtj-icon-np-add"),V2=Y("VtjIconNpSelect","vtj-icon-np-select"),E2=Y("VtjIconNpAddRow","vtj-icon-np-add-row"),C2=Y("VtjIconNpExtend","vtj-icon-np-extend"),A2=Y("VtjIconNpClose","vtj-icon-np-close"),T2=Y("VtjIconNpSubmit","vtj-icon-np-submit"),B2=Y("VtjIconDeps","vtj-icon-deps"),gu=Y("VtjIconBack","vtj-icon-back"),yu=Y("VtjIconHome","vtj-icon-home"),bu=Y("VtjIconApi","vtj-icon-api"),z2=Y("VtjIconExport","vtj-icon-export"),O2=Y("VtjIconImport","vtj-icon-import"),D2=Y("VtjIconGreater","vtj-icon-greater"),I2=Y("VtjIconSmaller","vtj-icon-smaller"),ko=Y("VtjIconCheck","vtj-icon-check"),wu=Y("VtjIconSwitch","vtj-icon-switch"),$o=Y("VtjIconCopy","vtj-icon-copy"),jo=Y("VtjIconLock","vtj-icon-lock"),_u=Y("VtjIconUnlock","vtj-icon-unlock"),Vo=Y("VtjIconLayers","vtj-icon-layers"),M2=Y("VtjIconConsole","vtj-icon-console"),R2=Y("VtjIconTeam","vtj-icon-team"),P2=Y("VtjIconPublish","vtj-icon-publish"),xu=Y("VtjIconPreview","vtj-icon-preview"),Su=Y("VtjIconSave","vtj-icon-save"),ku=Y("VtjIconPc","vtj-icon-pc"),$u=Y("VtjIconPhone","vtj-icon-phone"),ju=Y("VtjIconPad","vtj-icon-pad"),Vu=Y("VtjIconRedo","vtj-icon-redo"),Eu=Y("VtjIconRefresh","vtj-icon-refresh"),Cu=Y("VtjIconUndo","vtj-icon-undo"),Au=Y("VtjIconCategory","vtj-icon-category"),N2=Y("VtjIconProject","vtj-icon-project"),F2=Y("VtjIconNotice","vtj-icon-notice"),H2=Y("VtjIconFav","vtj-icon-fav"),L2=Y("VtjIconBug","vtj-icon-bug"),U2=Y("VtjIconFile","vtj-icon-file"),J2=Y("VtjIconFolder","vtj-icon-folder"),q2=Y("VtjIconUpload","vtj-icon-upload"),W2=Y("VtjIconDownload","vtj-icon-download"),K2=Y("VtjIconUser","vtj-icon-user"),Tu=Y("VtjIconSetting","vtj-icon-setting"),Y2=Y("VtjIconArrowRight","vtj-icon-arrow-right"),G2=Y("VtjIconArrowLeft","vtj-icon-arrow-left"),Bu=Y("VtjIconArrowDown","vtj-icon-arrow-down"),zu=Y("VtjIconArrowUp","vtj-icon-arrow-up"),Z2=Y("VtjIconShare","vtj-icon-share"),X2=Y("VtjIconData","vtj-icon-data"),Q2=Y("VtjIconTemplate","vtj-icon-template"),ey=Y("VtjIconExitFullscreen","vtj-icon-exit-fullscreen"),ty=Y("VtjIconFullscreen","vtj-icon-fullscreen"),Eo=Y("VtjIconEdit","vtj-icon-edit"),qn=Y("VtjIconRemove","vtj-icon-remove"),ny=Y("VtjIconJs","vtj-icon-js"),ry=Y("VtjIconDatabase","vtj-icon-database"),Ou=Y("VtjIconInfo","vtj-icon-info"),Co=Y("VtjIconPlus","vtj-icon-plus"),iy=Y("VtjIconMinus","vtj-icon-minus"),Du=Y("VtjIconHelp","vtj-icon-help"),Iu=Y("VtjIconVars","vtj-icon-vars"),Mu=Y("VtjIconOutline","vtj-icon-outline"),Ru=Y("VtjIconVisible","vtj-icon-visible"),Ao=Y("VtjIconInvisible","vtj-icon-invisible"),Pu=Y("VtjIconDocument","vtj-icon-document"),Nu=Y("VtjIconHistory","vtj-icon-history"),oy=Y("VtjIconFixed","vtj-icon-fixed"),ay=Y("VtjIconUnfixed","vtj-icon-unfixed"),Fu=Y("VtjIconSearch","vtj-icon-search"),sy=Y("VtjIconMore","vtj-icon-more"),ly=Y("VtjIconClose","vtj-icon-close"),Hu=Y("VtjIconComponents","vtj-icon-components"),Lu=Y("VtjIconBlock","vtj-icon-block"),uy=Object.freeze(Object.defineProperty({__proto__:null,VtjIconApi:bu,VtjIconArrowDown:Bu,VtjIconArrowLeft:G2,VtjIconArrowRight:Y2,VtjIconArrowUp:zu,VtjIconBack:gu,VtjIconBlock:Lu,VtjIconBug:L2,VtjIconCategory:Au,VtjIconCheck:ko,VtjIconClose:ly,VtjIconComponents:Hu,VtjIconConsole:M2,VtjIconCopy:$o,VtjIconData:X2,VtjIconDatabase:ry,VtjIconDeps:B2,VtjIconDocument:Pu,VtjIconDownload:W2,VtjIconEdit:Eo,VtjIconExitFullscreen:ey,VtjIconExport:z2,VtjIconFav:H2,VtjIconFile:U2,VtjIconFixed:oy,VtjIconFolder:J2,VtjIconFullscreen:ty,VtjIconGreater:D2,VtjIconHelp:Du,VtjIconHistory:Nu,VtjIconHome:yu,VtjIconImport:O2,VtjIconInfo:Ou,VtjIconInvisible:Ao,VtjIconJs:ny,VtjIconLayers:Vo,VtjIconLock:jo,VtjIconMinus:iy,VtjIconMore:sy,VtjIconNotice:F2,VtjIconNpAdd:j2,VtjIconNpAddRow:E2,VtjIconNpCancel:v2,VtjIconNpClose:A2,VtjIconNpConfirm:g2,VtjIconNpDelete:S2,VtjIconNpEdit:u2,VtjIconNpExit:k2,VtjIconNpExport:p2,VtjIconNpExtend:C2,VtjIconNpFile:l2,VtjIconNpImport:h2,VtjIconNpList:m2,VtjIconNpPrint:f2,VtjIconNpRefresh:$2,VtjIconNpRemove:_2,VtjIconNpRemoveRow:x2,VtjIconNpReset:y2,VtjIconNpReturn:w2,VtjIconNpReturnAll:b2,VtjIconNpSave:s2,VtjIconNpSearch:d2,VtjIconNpSelect:V2,VtjIconNpShare:c2,VtjIconNpSubmit:T2,VtjIconOutline:Mu,VtjIconPad:ju,VtjIconPc:ku,VtjIconPhone:$u,VtjIconPlus:Co,VtjIconPreview:xu,VtjIconProject:N2,VtjIconPublish:P2,VtjIconRedo:Vu,VtjIconRefresh:Eu,VtjIconRemove:qn,VtjIconSave:Su,VtjIconSearch:Fu,VtjIconSetting:Tu,VtjIconShare:Z2,VtjIconSmaller:I2,VtjIconSwitch:wu,VtjIconTeam:R2,VtjIconTemplate:Q2,VtjIconUndo:Cu,VtjIconUnfixed:ay,VtjIconUnlock:_u,VtjIconUpload:q2,VtjIconUser:K2,VtjIconVars:Iu,VtjIconVisible:Ru,VtjIconWindowClose:r2,VtjIconWindowDown:o2,VtjIconWindowMax:t2,VtjIconWindowMin:n2,VtjIconWindowNormal:i2,VtjIconWindowUp:a2},Symbol.toStringTag,{value:"Module"})),cy="data:image/svg+xml,%3csvg%20data-icon='BorderAll'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14%202H2v12h12V2zm-2%202H4v8h8V4z'%3e%3c/path%3e%3c/svg%3e",dy="data:image/svg+xml,%3csvg%20data-icon='BorderBottom'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20opacity='.4'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4%2011V4h8v7h2V2H2v9h2z'%3e%3c/path%3e%3cpath%20d='M2%2014v-2h12v2z'%3e%3c/path%3e%3c/svg%3e",py="data:image/svg+xml,%3csvg%20data-icon='BorderLeft'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20opacity='.4'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5%204h7v8H5v2h9V2H5v2z'%3e%3c/path%3e%3cpath%20d='M2%202h2v12H2z'%3e%3c/path%3e%3c/svg%3e",hy="data:image/svg+xml,%3csvg%20data-icon='BorderRight'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20opacity='.4'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11%204H4v8h7v2H2V2h9v2z'%3e%3c/path%3e%3cpath%20d='M14%202h-2v12h2z'%3e%3c/path%3e%3c/svg%3e",my="data:image/svg+xml,%3csvg%20data-icon='BorderStyleDashed'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20d='M0%207h4v2H0zm6%200h4v2H6zm6%200h4v2h-4z'%3e%3c/path%3e%3c/svg%3e",fy="data:image/svg+xml,%3csvg%20data-icon='BorderStyleDotted'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20d='M1%207h2v2H1zm4%200h2v2H5zm4%200h2v2H9zm4%200h2v2h-2z'%3e%3c/path%3e%3c/svg%3e",vy="data:image/svg+xml,%3csvg%20data-icon='BorderStyleSolid'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20d='M1%207h14v2H1z'%3e%3c/path%3e%3c/svg%3e",gy="data:image/svg+xml,%3csvg%20data-icon='BorderTop'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20opacity='.4'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%205v7H4V5H2v9h12V5h-2z'%3e%3c/path%3e%3cpath%20d='M14%202v2H2V2z'%3e%3c/path%3e%3c/svg%3e",yy="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20width='16'%20height='16'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13.4%2012l6.3-6.3c.4-.4.4-1%200-1.4-.4-.4-1-.4-1.4%200L12%2010.6%205.7%204.3c-.4-.4-1-.4-1.4%200-.4.4-.4%201%200%201.4l6.3%206.3-6.3%206.3c-.4.4-.4%201%200%201.4.2.2.4.3.7.3.3%200%20.5-.1.7-.3l6.3-6.3%206.3%206.3c.2.2.4.3.7.3s.5-.1.7-.3c.4-.4.4-1%200-1.4L13.4%2012z'%20%3e%3c/path%3e%3c/svg%3e",Uu="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='16px'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e全局/关闭%3c/title%3e%3cg%20id='全局/关闭'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%20stroke-linecap='round'%3e%3cg%20id='编组-56备份-2'%20transform='translate(2.000000,%202.000000)'%20stroke='currentColor'%20stroke-width='1.2'%3e%3cline%20x1='6'%20y1='1.65412684e-11'%20x2='6'%20y2='12'%20id='路径-4'%20transform='translate(6.000000,%206.000000)%20rotate(-225.000000)%20translate(-6.000000,%20-6.000000)%20'%3e%3c/line%3e%3cline%20x1='-4.71192529e-12'%20y1='6'%20x2='12'%20y2='6'%20id='路径-3'%20transform='translate(6.000000,%206.000000)%20rotate(-225.000000)%20translate(-6.000000,%20-6.000000)%20'%3e%3c/line%3e%3c/g%3e%3c/g%3e%3c/svg%3e",by="data:image/svg+xml,%3csvg%20data-icon='CursorAuto'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2011%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M9.716%208.113L1%201v11.533l2.71-2.69%202.364%204.732%202.023-1.048L5.79%208.912z'%3e%3c/path%3e%3c/svg%3e",wy="data:image/svg+xml,%3csvg%20data-icon='CursorNone'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M13.716%208.113L10.734%205.68%205%2011.414v1.12l2.71-2.69%202.363%204.732%202.023-1.05L9.79%208.913l3.926-.8zm-2.14-6.537L8.938%204.214%205%201v7.15l-3.424%203.425.85.85%2010-10-.85-.85z'%3e%3c/path%3e%3c/svg%3e",_y="data:image/svg+xml,%3csvg%20data-icon='CursorNoDrop'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M8%201C4.134%201%201%204.133%201%208s3.134%207%207%207%207-3.133%207-7-3.134-7-7-7zm5%207a4.97%204.97%200%2001-.832%202.75l-6.92-6.918A4.97%204.97%200%20018%203c2.757%200%205%202.243%205%205zM3%208c0-1.018.31-1.963.833-2.753l6.92%206.92A4.97%204.97%200%20018%2013c-2.757%200-5-2.243-5-5z'%3e%3c/path%3e%3c/svg%3e",xy="data:image/svg+xml,%3csvg%20data-icon='CursorPointer'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2014%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M11.45%205.864h-.35v2.08h-.704V5.16a.703.703%200%2000-.703-.702H8.99V7.24h-.7V4.46a.703.703%200%2000-.703-.704h-.703V7.27H6.18V2a1.054%201.054%200%2000-2.108%200v7.378l-1.867-1.6A.843.843%200%2000.967%208.904S3.72%2013.594%204.775%2015H11.1l1.135-3.973c.18-.628.27-1.278.27-1.93v-2.18c0-.58-.473-1.053-1.055-1.053zM6%2012.5a.5.5%200%2001-1%200v-2a.5.5%200%20011%200v2zm2%200a.5.5%200%2001-1%200v-2a.5.5%200%20011%200v2zm2%200a.5.5%200%2001-1%200v-2a.5.5%200%20011%200v2z'%3e%3c/path%3e%3c/svg%3e",Sy="data:image/svg+xml,%3csvg%20data-icon='DisplayBlock'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2%204h12v8H2V4zm10%202H4v4h8V6z'%3e%3c/path%3e%3cpath%20opacity='.6'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2%201h12v1H2V1zm0%2013h12v1H2v-1z'%3e%3c/path%3e%3c/svg%3e",ky="data:image/svg+xml,%3csvg%20data-icon='DisplayFlex'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20opacity='.6'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2%202h12v12H2V2zM1%201h14v14H1V1z'%3e%3c/path%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7%204H4v8h3V4zm2%200h3v8H9V4z'%3e%3c/path%3e%3c/svg%3e",$y="data:image/svg+xml,%3csvg%20data-icon='DisplayInlineBlock'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4%204h8v8H4V4zm6%202H6v4h4V6z'%3e%3c/path%3e%3cpath%20opacity='.6'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M1%202h1v12H1V2zm14%200h-1v12h1V2z'%3e%3c/path%3e%3c/svg%3e",jy="data:image/svg+xml,%3csvg%20data-icon='DisplayInline'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20opacity='.6'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M1%202h1v12H1V2zm14%200h-1v12h1V2z'%3e%3c/path%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.25%203L3.5%2013h2l1-3h3l1%203h2L8.75%203h-1.5zm1.917%206L8%205.5%206.833%209h2.334z'%20%3e%3c/path%3e%3c/svg%3e",Vy="data:image/svg+xml,%3csvg%20data-icon='EyeInvisible'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20opacity='.6'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9.842%203.33A5.537%205.537%200%20008%203C4.134%203%201%207.5%201%208c0%20.23.666%201.311%201.763%202.409l2.242-2.242a3%203%200%20013.162-3.162l1.675-1.676zm-2.009%207.665a3%203%200%20003.162-3.162l2.242-2.242C14.334%206.69%2015%207.77%2015%208c0%20.5-3.134%205-7%205a5.538%205.538%200%2001-1.842-.33l1.675-1.675z'%20%3e%3c/path%3e%3cpath%20d='M2%2014L14%202'%20stroke='currentColor'%20stroke-width='1.5'%3e%3c/path%3e%3c/svg%3e",Ey="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Alignbaselinerow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M864%200v480h160v64h-160v224H544v-224h-64v480H160V544H0v-64h160V256h320v224h64V0h320zM416%20320H224v160h192v-160z%20m384-256h-192v416h192V64z'%3e%3c/path%3e%3c/svg%3e",Cy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Aligncenterrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M480%2064v416h64V64h320v416h160v64h-160v416H544V544h-64v416H160V544H0v-64h160V64h320z'%3e%3c/path%3e%3c/svg%3e",Ay="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Alignflex-endrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M480%20800V96H160v704h320z%20m384%200V96H544v704h320z%20m160%20128v-64H0v64h1024z'%3e%3c/path%3e%3c/svg%3e",Ty="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Alignflex-startrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M480%20224v704H160V224h320z%20m384%200v704H544V224h320z%20m160-128v64H0V96h1024z'%3e%3c/path%3e%3c/svg%3e",By="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Alignstretchrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M1024%20960v64H0v-64h1024zM480%20128v768H160V128h320z%20m384%200v768H544V128h320z%20m160-128v64H0V0h1024z'%3e%3c/path%3e%3c/svg%3e",zy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Directioncolumn-reverse'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M896%20704H128v320h768V704z%20m0-320H128v256h768v-256z%20m-128-192l-256-192-256%20192%20192%200.032V320h128V192h192z'%3e%3c/path%3e%3c/svg%3e",Oy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Directioncolumn'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M896%20320H128V0h768v320z%20m0%20320H128v-256h768v256z%20m-128%20192l-256%20192-256-192%20192-0.032V704h128v128h192z'%3e%3c/path%3e%3c/svg%3e",Dy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Directionrow-reverse'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M704%20128v768h320V128H704zM384%20128v768h256V128h-256zM192%20256l-192%20256%20192%20256%200.032-192H320v-128H192V256z'%3e%3c/path%3e%3c/svg%3e",Iy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Directionrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M320%20128v768H0V128h320z%20m320%200v768h-256V128h256z%20m192%20128l192%20256-192%20256-0.032-192H704v-128h128V256z'%3e%3c/path%3e%3c/svg%3e",My="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Justifycenterrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M480%201024V0h64v1024h-64z%20m128-64V64h320v896H608zM96%20960V64h320v896H96z'%3e%3c/path%3e%3c/svg%3e",Ry="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Justifyflex-endrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M416%20160H96v704h320V160z%20m384%200H480v704h320V160z%20m128-160h-64v1024h64V0z'%3e%3c/path%3e%3c/svg%3e",Py="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Justifyflex-startrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M608%20160h320v704H608V160zM224%20160h320v704H224V160zM96%200h64v1024H96V0z'%3e%3c/path%3e%3c/svg%3e",Ny="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Justifyspace-aroundrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M320%20864H192v160H128v-160H0V160h128V0h64v160h128v704z%20m704%200h-128v160h-64v-160h-128V160h128V0h64v160h128v704z'%3e%3c/path%3e%3c/svg%3e",Fy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Justifyspace-betweenrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M64%201024H0V0h64v1024z%20m384-160H128V160h320v704z%20m448%200H576V160h320v704z%20m128%20160h-64V0h64v1024z'%3e%3c/path%3e%3c/svg%3e",Hy="data:image/svg+xml,%3csvg%20data-icon='FontStyleItalic'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill='currentColor'%20stroke='currentColor'%20d='M7.5%203.5h5v1h-5zm-4%208h5v1h-5z'%3e%3c/path%3e%3cpath%20d='M5.5%2012l5-8'%20stroke='currentColor'%20stroke-width='2'%3e%3c/path%3e%3c/svg%3e",Ly="data:image/svg+xml,%3csvg%20data-icon='FontStyleNone'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9%203h2v2H9v6h2v2H5v-2h2V5H5V3h4z'%20fill='currentColor'%20%3e%3c/path%3e%3c/svg%3e",Uy="data:image/svg+xml,%3csvg%20data-icon='PositionAll'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='currentColor'%3e%3cpath%20d='M3%203h9v9H3z'%3e%3c/path%3e%3cpath%20opacity='.3'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",Jy="data:image/svg+xml,%3csvg%20data-icon='PositionBottomLeft'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M3%208h4v4H3z'%3e%3c/path%3e%3cpath%20opacity='.3'%20fill='currentColor'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/svg%3e",qy="data:image/svg+xml,%3csvg%20data-icon='PositionBottomRight'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M8%208h4v4H8z'%3e%3c/path%3e%3cpath%20opacity='.3'%20fill='currentColor'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/svg%3e",Wy="data:image/svg+xml,%3csvg%20data-icon='PositionBottom'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M3%208h9v4H3z'%3e%3c/path%3e%3cpath%20opacity='.3'%20fill='currentColor'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/svg%3e",Ky="data:image/svg+xml,%3csvg%20data-icon='PositionLeft'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M3%203h4v9H3z'%3e%3c/path%3e%3cpath%20opacity='.3'%20fill='currentColor'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/svg%3e",Yy="data:image/svg+xml,%3csvg%20data-icon='PositionRight'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M8%203h4v9H8z'%3e%3c/path%3e%3cpath%20opacity='.3'%20fill='currentColor'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/svg%3e",Gy="data:image/svg+xml,%3csvg%20data-icon='PositionTopleft'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M3%203h4v4H3z'%3e%3c/path%3e%3cpath%20opacity='.3'%20fill='currentColor'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/svg%3e",Zy="data:image/svg+xml,%3csvg%20data-icon='PositionTopright'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M8%203h4v4H8z'%3e%3c/path%3e%3cpath%20opacity='.3'%20fill='currentColor'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/svg%3e",Xy="data:image/svg+xml,%3csvg%20data-icon='PositionTop'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M3%203h9v4H3z'%3e%3c/path%3e%3cpath%20opacity='.3'%20fill='currentColor'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/svg%3e",Qy="data:image/svg+xml,%3csvg%20data-icon='TextAlignCenter'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14%202H2v2h12V2zm-2%203H4v2h8V5zm-8%206h8v2H4v-2zm10-3H2v2h12V8z'%20fill='currentColor'%20%3e%3c/path%3e%3c/svg%3e",e3="data:image/svg+xml,%3csvg%20data-icon='TextAlignJustify'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14%202H2v2h12V2zm0%203H2v2h12V5zM2%2011h12v2H2v-2zm12-3H2v2h12V8z'%20fill='currentColor'%20%3e%3c/path%3e%3c/svg%3e",t3="data:image/svg+xml,%3csvg%20data-icon='TextAlignLeft'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14%202H2v2h12V2zm-4%203H2v2h8V5zm-8%206h8v2H2v-2zm12-3H2v2h12V8z'%20fill='currentColor'%20%3e%3c/path%3e%3c/svg%3e",n3="data:image/svg+xml,%3csvg%20data-icon='TextAlignRight'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14%202H2v2h12V2zm0%203H6v2h8V5zm-8%206h8v2H6v-2zm8-3H2v2h12V8z'%20fill='currentColor'%20%3e%3c/path%3e%3c/svg%3e",r3="data:image/svg+xml,%3csvg%20data-icon='TextDecorationOverline'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill='currentColor'%20d='M1%201h14v1H1z'%3e%3c/path%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%203H4v2h3v8h2V5h3V3z'%20fill='currentColor'%3e%3c/path%3e%3c/svg%3e",i3="data:image/svg+xml,%3csvg%20data-icon='TextDecorationStrike'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4%203h8v2H9v2H7V5H4V3zm3%206v4h2V9H7z'%20fill='currentColor'%20%3e%3c/path%3e%3cpath%20fill='currentColor'%20d='M1%208h14v1H1z'%3e%3c/path%3e%3c/svg%3e",o3="data:image/svg+xml,%3csvg%20data-icon='TextDecorationUnderline'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill='currentColor'%20d='M1%2014h14v1H1z'%3e%3c/path%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%203H4v2h3v8h2V5h3V3z'%20fill='currentColor'%3e%3c/path%3e%3c/svg%3e",a3="data:image/svg+xml,%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20data-icon='TileX'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='currentColor'%20d='M1%206h4v4H1zm5%200h4v4H6zm5%200h4v4h-4z'%3e%3c/path%3e%3c/svg%3e",s3="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20data-icon='TileXY'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='currentColor'%20d='M1%201h4v4H1zm5%200h4v4H6zm5%200h4v4h-4zM1%206h4v4H1zm5%200h4v4H6zm5%200h4v4h-4zM1%2011h4v4H1zm5%200h4v4H6zm5%200h4v4h-4z'%3e%3c/path%3e%3c/svg%3e",l3="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20data-icon='TileY'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='currentColor'%20d='M6%201h4v4H6zm0%205h4v4H6zm0%205h4v4H6z'%3e%3c/path%3e%3c/svg%3e",Di={...kd,...e2,...uy};function Ju(n,e){return function(){return n.apply(e,arguments)}}const{toString:u3}=Object.prototype,{getPrototypeOf:To}=Object,Pr=(n=>e=>{const t=u3.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),mt=n=>(n=n.toLowerCase(),e=>Pr(e)===n),Nr=n=>e=>typeof e===n,{isArray:wn}=Array,Hn=Nr("undefined");function c3(n){return n!==null&&!Hn(n)&&n.constructor!==null&&!Hn(n.constructor)&&et(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const qu=mt("ArrayBuffer");function d3(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&qu(n.buffer),e}const p3=Nr("string"),et=Nr("function"),Wu=Nr("number"),Fr=n=>n!==null&&typeof n=="object",h3=n=>n===!0||n===!1,gr=n=>{if(Pr(n)!=="object")return!1;const e=To(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},m3=mt("Date"),f3=mt("File"),v3=mt("Blob"),g3=mt("FileList"),y3=n=>Fr(n)&&et(n.pipe),b3=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||et(n.append)&&((e=Pr(n))==="formdata"||e==="object"&&et(n.toString)&&n.toString()==="[object FormData]"))},w3=mt("URLSearchParams"),_3=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Wn(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let r,i;if(typeof n!="object"&&(n=[n]),wn(n))for(r=0,i=n.length;r<i;r++)e.call(null,n[r],r,n);else{const o=t?Object.getOwnPropertyNames(n):Object.keys(n),a=o.length;let s;for(r=0;r<a;r++)s=o[r],e.call(null,n[s],s,n)}}function Ku(n,e){e=e.toLowerCase();const t=Object.keys(n);let r=t.length,i;for(;r-- >0;)if(i=t[r],e===i.toLowerCase())return i;return null}const Yu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Gu=n=>!Hn(n)&&n!==Yu;function Ii(){const{caseless:n}=Gu(this)&&this||{},e={},t=(r,i)=>{const o=n&&Ku(e,i)||i;gr(e[o])&&gr(r)?e[o]=Ii(e[o],r):gr(r)?e[o]=Ii({},r):wn(r)?e[o]=r.slice():e[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Wn(arguments[r],t);return e}const x3=(n,e,t,{allOwnKeys:r}={})=>(Wn(e,(i,o)=>{t&&et(i)?n[o]=Ju(i,t):n[o]=i},{allOwnKeys:r}),n),S3=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),k3=(n,e,t,r)=>{n.prototype=Object.create(e.prototype,r),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:e.prototype}),t&&Object.assign(n.prototype,t)},$3=(n,e,t,r)=>{let i,o,a;const s={};if(e=e||{},n==null)return e;do{for(i=Object.getOwnPropertyNames(n),o=i.length;o-- >0;)a=i[o],(!r||r(a,n,e))&&!s[a]&&(e[a]=n[a],s[a]=!0);n=t!==!1&&To(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},j3=(n,e,t)=>{n=String(n),(t===void 0||t>n.length)&&(t=n.length),t-=e.length;const r=n.indexOf(e,t);return r!==-1&&r===t},V3=n=>{if(!n)return null;if(wn(n))return n;let e=n.length;if(!Wu(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},E3=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&To(Uint8Array)),C3=(n,e)=>{const t=(n&&n[Symbol.iterator]).call(n);let r;for(;(r=t.next())&&!r.done;){const i=r.value;e.call(n,i[0],i[1])}},A3=(n,e)=>{let t;const r=[];for(;(t=n.exec(e))!==null;)r.push(t);return r},T3=mt("HTMLFormElement"),B3=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),Qa=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),z3=mt("RegExp"),Zu=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),r={};Wn(t,(i,o)=>{let a;(a=e(i,o,n))!==!1&&(r[o]=a||i)}),Object.defineProperties(n,r)},O3=n=>{Zu(n,(e,t)=>{if(et(n)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const r=n[t];if(et(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},D3=(n,e)=>{const t={},r=i=>{i.forEach(o=>{t[o]=!0})};return wn(n)?r(n):r(String(n).split(e)),t},I3=()=>{},M3=(n,e)=>(n=+n,Number.isFinite(n)?n:e),ai="abcdefghijklmnopqrstuvwxyz",es="0123456789",Xu={DIGIT:es,ALPHA:ai,ALPHA_DIGIT:ai+ai.toUpperCase()+es},R3=(n=16,e=Xu.ALPHA_DIGIT)=>{let t="";const{length:r}=e;for(;n--;)t+=e[Math.random()*r|0];return t};function P3(n){return!!(n&&et(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const N3=n=>{const e=new Array(10),t=(r,i)=>{if(Fr(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[i]=r;const o=wn(r)?[]:{};return Wn(r,(a,s)=>{const l=t(a,i+1);!Hn(l)&&(o[s]=l)}),e[i]=void 0,o}}return r};return t(n,0)},F3=mt("AsyncFunction"),H3=n=>n&&(Fr(n)||et(n))&&et(n.then)&&et(n.catch),P={isArray:wn,isArrayBuffer:qu,isBuffer:c3,isFormData:b3,isArrayBufferView:d3,isString:p3,isNumber:Wu,isBoolean:h3,isObject:Fr,isPlainObject:gr,isUndefined:Hn,isDate:m3,isFile:f3,isBlob:v3,isRegExp:z3,isFunction:et,isStream:y3,isURLSearchParams:w3,isTypedArray:E3,isFileList:g3,forEach:Wn,merge:Ii,extend:x3,trim:_3,stripBOM:S3,inherits:k3,toFlatObject:$3,kindOf:Pr,kindOfTest:mt,endsWith:j3,toArray:V3,forEachEntry:C3,matchAll:A3,isHTMLForm:T3,hasOwnProperty:Qa,hasOwnProp:Qa,reduceDescriptors:Zu,freezeMethods:O3,toObjectSet:D3,toCamelCase:B3,noop:I3,toFiniteNumber:M3,findKey:Ku,global:Yu,isContextDefined:Gu,ALPHABET:Xu,generateString:R3,isSpecCompliantForm:P3,toJSONObject:N3,isAsyncFn:F3,isThenable:H3};function fe(n,e,t,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),r&&(this.request=r),i&&(this.response=i)}P.inherits(fe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:P.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Qu=fe.prototype,ec={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{ec[n]={value:n}});Object.defineProperties(fe,ec);Object.defineProperty(Qu,"isAxiosError",{value:!0});fe.from=(n,e,t,r,i,o)=>{const a=Object.create(Qu);return P.toFlatObject(n,a,function(s){return s!==Error.prototype},s=>s!=="isAxiosError"),fe.call(a,n.message,e,t,r,i),a.cause=n,a.name=n.name,o&&Object.assign(a,o),a};const L3=null;function Mi(n){return P.isPlainObject(n)||P.isArray(n)}function tc(n){return P.endsWith(n,"[]")?n.slice(0,-2):n}function ts(n,e,t){return n?n.concat(e).map(function(r,i){return r=tc(r),!t&&i?"["+r+"]":r}).join(t?".":""):e}function U3(n){return P.isArray(n)&&!n.some(Mi)}const J3=P.toFlatObject(P,{},null,function(n){return/^is[A-Z]/.test(n)});function Hr(n,e,t){if(!P.isObject(n))throw new TypeError("target must be an object");e=e||new FormData,t=P.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,f){return!P.isUndefined(f[m])});const r=t.metaTokens,i=t.visitor||u,o=t.dots,a=t.indexes,s=(t.Blob||typeof Blob<"u"&&Blob)&&P.isSpecCompliantForm(e);if(!P.isFunction(i))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(P.isDate(m))return m.toISOString();if(!s&&P.isBlob(m))throw new fe("Blob is not supported. Use a Buffer instead.");return P.isArrayBuffer(m)||P.isTypedArray(m)?s&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,f,v){let g=m;if(m&&!v&&typeof m=="object"){if(P.endsWith(f,"{}"))f=r?f:f.slice(0,-2),m=JSON.stringify(m);else if(P.isArray(m)&&U3(m)||(P.isFileList(m)||P.endsWith(f,"[]"))&&(g=P.toArray(m)))return f=tc(f),g.forEach(function(k,b){!(P.isUndefined(k)||k===null)&&e.append(a===!0?ts([f],b,o):a===null?f:f+"[]",l(k))}),!1}return Mi(m)?!0:(e.append(ts(v,f,o),l(m)),!1)}const c=[],p=Object.assign(J3,{defaultVisitor:u,convertValue:l,isVisitable:Mi});function h(m,f){if(!P.isUndefined(m)){if(c.indexOf(m)!==-1)throw Error("Circular reference detected in "+f.join("."));c.push(m),P.forEach(m,function(v,g){(!(P.isUndefined(v)||v===null)&&i.call(e,v,P.isString(g)?g.trim():g,f,p))===!0&&h(v,f?f.concat(g):[g])}),c.pop()}}if(!P.isObject(n))throw new TypeError("data must be an object");return h(n),e}function ns(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function Bo(n,e){this._pairs=[],n&&Hr(n,this,e)}const nc=Bo.prototype;nc.append=function(n,e){this._pairs.push([n,e])};nc.toString=function(n){const e=n?function(t){return n.call(this,t,ns)}:ns;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};function q3(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rc(n,e,t){if(!e)return n;const r=t&&t.encode||q3,i=t&&t.serialize;let o;if(i?o=i(e,t):o=P.isURLSearchParams(e)?e.toString():new Bo(e,t).toString(r),o){const a=n.indexOf("#");a!==-1&&(n=n.slice(0,a)),n+=(n.indexOf("?")===-1?"?":"&")+o}return n}class rs{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){P.forEach(this.handlers,function(t){t!==null&&e(t)})}}const ic={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},W3=typeof URLSearchParams<"u"?URLSearchParams:Bo,K3=typeof FormData<"u"?FormData:null,Y3=typeof Blob<"u"?Blob:null,G3={isBrowser:!0,classes:{URLSearchParams:W3,FormData:K3,Blob:Y3},protocols:["http","https","file","blob","url","data"]},oc=typeof window<"u"&&typeof document<"u",Z3=(n=>oc&&["ReactNative","NativeScript","NS"].indexOf(n)<0)(typeof navigator<"u"&&navigator.product),X3=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Q3=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:oc,hasStandardBrowserEnv:Z3,hasStandardBrowserWebWorkerEnv:X3},Symbol.toStringTag,{value:"Module"})),dt={...Q3,...G3};function eb(n,e){return Hr(n,new dt.classes.URLSearchParams,Object.assign({visitor:function(t,r,i,o){return dt.isNode&&P.isBuffer(t)?(this.append(r,t.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function tb(n){return P.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function nb(n){const e={},t=Object.keys(n);let r;const i=t.length;let o;for(r=0;r<i;r++)o=t[r],e[o]=n[o];return e}function ac(n){function e(t,r,i,o){let a=t[o++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=o>=t.length;return a=!a&&P.isArray(i)?i.length:a,l?(P.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!P.isObject(i[a]))&&(i[a]=[]),e(t,r,i[a],o)&&P.isArray(i[a])&&(i[a]=nb(i[a])),!s)}if(P.isFormData(n)&&P.isFunction(n.entries)){const t={};return P.forEachEntry(n,(r,i)=>{e(tb(r),i,t,0)}),t}return null}function rb(n,e,t){if(P.isString(n))try{return(e||JSON.parse)(n),P.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(t||JSON.stringify)(n)}const zo={transitional:ic,adapter:["xhr","http"],transformRequest:[function(n,e){const t=e.getContentType()||"",r=t.indexOf("application/json")>-1,i=P.isObject(n);if(i&&P.isHTMLForm(n)&&(n=new FormData(n)),P.isFormData(n))return r?JSON.stringify(ac(n)):n;if(P.isArrayBuffer(n)||P.isBuffer(n)||P.isStream(n)||P.isFile(n)||P.isBlob(n))return n;if(P.isArrayBufferView(n))return n.buffer;if(P.isURLSearchParams(n))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let o;if(i){if(t.indexOf("application/x-www-form-urlencoded")>-1)return eb(n,this.formSerializer).toString();if((o=P.isFileList(n))||t.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return Hr(o?{"files[]":n}:n,a&&new a,this.formSerializer)}}return i||r?(e.setContentType("application/json",!1),rb(n)):n}],transformResponse:[function(n){const e=this.transitional||zo.transitional,t=e&&e.forcedJSONParsing,r=this.responseType==="json";if(n&&P.isString(n)&&(t&&!this.responseType||r)){const i=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(n)}catch(o){if(i)throw o.name==="SyntaxError"?fe.from(o,fe.ERR_BAD_RESPONSE,this,null,this.response):o}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dt.classes.FormData,Blob:dt.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};P.forEach(["delete","get","head","post","put","patch"],n=>{zo.headers[n]={}});const Oo=zo,ib=P.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ob=n=>{const e={};let t,r,i;return n&&n.split(`
62
+ `).forEach(function(o){i=o.indexOf(":"),t=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!t||e[t]&&ib[t])&&(t==="set-cookie"?e[t]?e[t].push(r):e[t]=[r]:e[t]=e[t]?e[t]+", "+r:r)}),e},is=Symbol("internals");function jn(n){return n&&String(n).trim().toLowerCase()}function yr(n){return n===!1||n==null?n:P.isArray(n)?n.map(yr):String(n)}function ab(n){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=t.exec(n);)e[r[1]]=r[2];return e}const sb=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function si(n,e,t,r,i){if(P.isFunction(r))return r.call(this,e,t);if(i&&(e=t),!!P.isString(e)){if(P.isString(r))return e.indexOf(r)!==-1;if(P.isRegExp(r))return r.test(e)}}function lb(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function ub(n,e){const t=P.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+t,{value:function(i,o,a){return this[r].call(this,e,i,o,a)},configurable:!0})})}let Lr=class{constructor(e){e&&this.set(e)}set(e,t,r){const i=this;function o(s,l,u){const c=jn(l);if(!c)throw new Error("header name must be a non-empty string");const p=P.findKey(i,c);(!p||i[p]===void 0||u===!0||u===void 0&&i[p]!==!1)&&(i[p||l]=yr(s))}const a=(s,l)=>P.forEach(s,(u,c)=>o(u,c,l));return P.isPlainObject(e)||e instanceof this.constructor?a(e,t):P.isString(e)&&(e=e.trim())&&!sb(e)?a(ob(e),t):e!=null&&o(t,e,r),this}get(e,t){if(e=jn(e),e){const r=P.findKey(this,e);if(r){const i=this[r];if(!t)return i;if(t===!0)return ab(i);if(P.isFunction(t))return t.call(this,i,r);if(P.isRegExp(t))return t.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=jn(e),e){const r=P.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||si(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let i=!1;function o(a){if(a=jn(a),a){const s=P.findKey(r,a);s&&(!t||si(r,r[s],s,t))&&(delete r[s],i=!0)}}return P.isArray(e)?e.forEach(o):o(e),i}clear(e){const t=Object.keys(this);let r=t.length,i=!1;for(;r--;){const o=t[r];(!e||si(this,this[o],o,e,!0))&&(delete this[o],i=!0)}return i}normalize(e){const t=this,r={};return P.forEach(this,(i,o)=>{const a=P.findKey(r,o);if(a){t[a]=yr(i),delete t[o];return}const s=e?lb(o):String(o).trim();s!==o&&delete t[o],t[s]=yr(i),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return P.forEach(this,(r,i)=>{r!=null&&r!==!1&&(t[i]=e&&P.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
63
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(i=>r.set(i)),r}static accessor(e){const t=(this[is]=this[is]={accessors:{}}).accessors,r=this.prototype;function i(o){const a=jn(o);t[a]||(ub(r,o),t[a]=!0)}return P.isArray(e)?e.forEach(i):i(e),this}};Lr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);P.reduceDescriptors(Lr.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(r){this[t]=r}}});P.freezeMethods(Lr);const _t=Lr;function li(n,e){const t=this||Oo,r=e||t,i=_t.from(r.headers);let o=r.data;return P.forEach(n,function(a){o=a.call(t,o,i.normalize(),e?e.status:void 0)}),i.normalize(),o}function sc(n){return!!(n&&n.__CANCEL__)}function Kn(n,e,t){fe.call(this,n??"canceled",fe.ERR_CANCELED,e,t),this.name="CanceledError"}P.inherits(Kn,fe,{__CANCEL__:!0});function cb(n,e,t){const r=t.config.validateStatus;!t.status||!r||r(t.status)?n(t):e(new fe("Request failed with status code "+t.status,[fe.ERR_BAD_REQUEST,fe.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}const db=dt.hasStandardBrowserEnv?{write(n,e,t,r,i,o){const a=[n+"="+encodeURIComponent(e)];P.isNumber(t)&&a.push("expires="+new Date(t).toGMTString()),P.isString(r)&&a.push("path="+r),P.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(n){const e=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function pb(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function hb(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function lc(n,e){return n&&!pb(e)?hb(n,e):e}const mb=dt.hasStandardBrowserEnv?function(){const n=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let t;function r(i){let o=i;return n&&(e.setAttribute("href",o),o=e.href),e.setAttribute("href",o),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:e.pathname.charAt(0)==="/"?e.pathname:"/"+e.pathname}}return t=r(window.location.href),function(i){const o=P.isString(i)?r(i):i;return o.protocol===t.protocol&&o.host===t.host}}():function(){return function(){return!0}}();function fb(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function vb(n,e){n=n||10;const t=new Array(n),r=new Array(n);let i=0,o=0,a;return e=e!==void 0?e:1e3,function(s){const l=Date.now(),u=r[o];a||(a=l),t[i]=s,r[i]=l;let c=o,p=0;for(;c!==i;)p+=t[c++],c=c%n;if(i=(i+1)%n,i===o&&(o=(o+1)%n),l-a<e)return;const h=u&&l-u;return h?Math.round(p*1e3/h):void 0}}function os(n,e){let t=0;const r=vb(50,250);return i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-t,l=r(s),u=o<=a;t=o;const c={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&u?(a-o)/l:void 0,event:i};c[e?"download":"upload"]=!0,n(c)}}const gb=typeof XMLHttpRequest<"u",yb=gb&&function(n){return new Promise(function(e,t){let r=n.data;const i=_t.from(n.headers).normalize();let{responseType:o,withXSRFToken:a}=n,s;function l(){n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let u;if(P.isFormData(r)){if(dt.hasStandardBrowserEnv||dt.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((u=i.getContentType())!==!1){const[f,...v]=u?u.split(";").map(g=>g.trim()).filter(Boolean):[];i.setContentType([f||"multipart/form-data",...v].join("; "))}}let c=new XMLHttpRequest;if(n.auth){const f=n.auth.username||"",v=n.auth.password?unescape(encodeURIComponent(n.auth.password)):"";i.set("Authorization","Basic "+btoa(f+":"+v))}const p=lc(n.baseURL,n.url);c.open(n.method.toUpperCase(),rc(p,n.params,n.paramsSerializer),!0),c.timeout=n.timeout;function h(){if(!c)return;const f=_t.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),v={data:!o||o==="text"||o==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:f,config:n,request:c};cb(function(g){e(g),l()},function(g){t(g),l()},v),c=null}if("onloadend"in c?c.onloadend=h:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(h)},c.onabort=function(){c&&(t(new fe("Request aborted",fe.ECONNABORTED,n,c)),c=null)},c.onerror=function(){t(new fe("Network Error",fe.ERR_NETWORK,n,c)),c=null},c.ontimeout=function(){let f=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const v=n.transitional||ic;n.timeoutErrorMessage&&(f=n.timeoutErrorMessage),t(new fe(f,v.clarifyTimeoutError?fe.ETIMEDOUT:fe.ECONNABORTED,n,c)),c=null},dt.hasStandardBrowserEnv&&(a&&P.isFunction(a)&&(a=a(n)),a||a!==!1&&mb(p))){const f=n.xsrfHeaderName&&n.xsrfCookieName&&db.read(n.xsrfCookieName);f&&i.set(n.xsrfHeaderName,f)}r===void 0&&i.setContentType(null),"setRequestHeader"in c&&P.forEach(i.toJSON(),function(f,v){c.setRequestHeader(v,f)}),P.isUndefined(n.withCredentials)||(c.withCredentials=!!n.withCredentials),o&&o!=="json"&&(c.responseType=n.responseType),typeof n.onDownloadProgress=="function"&&c.addEventListener("progress",os(n.onDownloadProgress,!0)),typeof n.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",os(n.onUploadProgress)),(n.cancelToken||n.signal)&&(s=f=>{c&&(t(!f||f.type?new Kn(null,n,c):f),c.abort(),c=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const m=fb(p);if(m&&dt.protocols.indexOf(m)===-1){t(new fe("Unsupported protocol "+m+":",fe.ERR_BAD_REQUEST,n));return}c.send(r||null)})},Ri={http:L3,xhr:yb};P.forEach(Ri,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const as=n=>`- ${n}`,bb=n=>P.isFunction(n)||n===null||n===!1,uc={getAdapter:n=>{n=P.isArray(n)?n:[n];const{length:e}=n;let t,r;const i={};for(let o=0;o<e;o++){t=n[o];let a;if(r=t,!bb(t)&&(r=Ri[(a=String(t)).toLowerCase()],r===void 0))throw new fe(`Unknown adapter '${a}'`);if(r)break;i[a||"#"+o]=r}if(!r){const o=Object.entries(i).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=e?o.length>1?`since :
64
+ `+o.map(as).join(`
65
+ `):" "+as(o[0]):"as no adapter specified";throw new fe("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:Ri};function ui(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Kn(null,n)}function ss(n){return ui(n),n.headers=_t.from(n.headers),n.data=li.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),uc.getAdapter(n.adapter||Oo.adapter)(n).then(function(e){return ui(n),e.data=li.call(n,n.transformResponse,e),e.headers=_t.from(e.headers),e},function(e){return sc(e)||(ui(n),e&&e.response&&(e.response.data=li.call(n,n.transformResponse,e.response),e.response.headers=_t.from(e.response.headers))),Promise.reject(e)})}const ls=n=>n instanceof _t?n.toJSON():n;function hn(n,e){e=e||{};const t={};function r(u,c,p){return P.isPlainObject(u)&&P.isPlainObject(c)?P.merge.call({caseless:p},u,c):P.isPlainObject(c)?P.merge({},c):P.isArray(c)?c.slice():c}function i(u,c,p){if(P.isUndefined(c)){if(!P.isUndefined(u))return r(void 0,u,p)}else return r(u,c,p)}function o(u,c){if(!P.isUndefined(c))return r(void 0,c)}function a(u,c){if(P.isUndefined(c)){if(!P.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,p){if(p in e)return r(u,c);if(p in n)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,c)=>i(ls(u),ls(c),!0)};return P.forEach(Object.keys(Object.assign({},n,e)),function(u){const c=l[u]||i,p=c(n[u],e[u],u);P.isUndefined(p)&&c!==s||(t[u]=p)}),t}const cc="1.6.7",Do={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{Do[n]=function(t){return typeof t===n||"a"+(e<1?"n ":" ")+n}});const us={};Do.transitional=function(n,e,t){function r(i,o){return"[Axios v"+cc+"] Transitional option '"+i+"'"+o+(t?". "+t:"")}return(i,o,a)=>{if(n===!1)throw new fe(r(o," has been removed"+(e?" in "+e:"")),fe.ERR_DEPRECATED);return e&&!us[o]&&(us[o]=!0,console.warn(r(o," has been deprecated since v"+e+" and will be removed in the near future"))),n?n(i,o,a):!0}};function wb(n,e,t){if(typeof n!="object")throw new fe("options must be an object",fe.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let i=r.length;for(;i-- >0;){const o=r[i],a=e[o];if(a){const s=n[o],l=s===void 0||a(s,o,n);if(l!==!0)throw new fe("option "+o+" must be "+l,fe.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new fe("Unknown option "+o,fe.ERR_BAD_OPTION)}}const Pi={assertOptions:wb,validators:Do},jt=Pi.validators;let Vr=class{constructor(e){this.defaults=e,this.interceptors={request:new rs,response:new rs}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
66
+ `+o):r.stack=o}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=hn(this.defaults,t);const{transitional:r,paramsSerializer:i,headers:o}=t;r!==void 0&&Pi.assertOptions(r,{silentJSONParsing:jt.transitional(jt.boolean),forcedJSONParsing:jt.transitional(jt.boolean),clarifyTimeoutError:jt.transitional(jt.boolean)},!1),i!=null&&(P.isFunction(i)?t.paramsSerializer={serialize:i}:Pi.assertOptions(i,{encode:jt.function,serialize:jt.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&P.merge(o.common,o[t.method]);o&&P.forEach(["delete","get","head","post","put","patch","common"],f=>{delete o[f]}),t.headers=_t.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(t)===!1||(l=l&&f.synchronous,s.unshift(f.fulfilled,f.rejected))});const u=[];this.interceptors.response.forEach(function(f){u.push(f.fulfilled,f.rejected)});let c,p=0,h;if(!l){const f=[ss.bind(this),void 0];for(f.unshift.apply(f,s),f.push.apply(f,u),h=f.length,c=Promise.resolve(t);p<h;)c=c.then(f[p++],f[p++]);return c}h=s.length;let m=t;for(p=0;p<h;){const f=s[p++],v=s[p++];try{m=f(m)}catch(g){v.call(this,g);break}}try{c=ss.call(this,m)}catch(f){return Promise.reject(f)}for(p=0,h=u.length;p<h;)c=c.then(u[p++],u[p++]);return c}getUri(e){e=hn(this.defaults,e);const t=lc(e.baseURL,e.url);return rc(t,e.params,e.paramsSerializer)}};P.forEach(["delete","get","head","options"],function(n){Vr.prototype[n]=function(e,t){return this.request(hn(t||{},{method:n,url:e,data:(t||{}).data}))}});P.forEach(["post","put","patch"],function(n){function e(t){return function(r,i,o){return this.request(hn(o||{},{method:n,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:i}))}}Vr.prototype[n]=e(),Vr.prototype[n+"Form"]=e(!0)});const br=Vr;class Io{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(i){t=i});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},e(function(i,o,a){r.reason||(r.reason=new Kn(i,o,a),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}static source(){let e;return{token:new Io(function(t){e=t}),cancel:e}}}const _b=Io;function xb(n){return function(e){return n.apply(null,e)}}function Sb(n){return P.isObject(n)&&n.isAxiosError===!0}const Ni={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ni).forEach(([n,e])=>{Ni[e]=n});const kb=Ni;function dc(n){const e=new br(n),t=Ju(br.prototype.request,e);return P.extend(t,br.prototype,e,{allOwnKeys:!0}),P.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return dc(hn(n,r))},t}const Ee=dc(Oo);Ee.Axios=br;Ee.CanceledError=Kn;Ee.CancelToken=_b;Ee.isCancel=sc;Ee.VERSION=cc;Ee.toFormData=Hr;Ee.AxiosError=fe;Ee.Cancel=Ee.CanceledError;Ee.all=function(n){return Promise.all(n)};Ee.spread=xb;Ee.isAxiosError=Sb;Ee.mergeConfig=hn;Ee.AxiosHeaders=_t;Ee.formToJSON=n=>ac(P.isHTMLForm(n)?new FormData(n):n);Ee.getAdapter=uc.getAdapter;Ee.HttpStatusCode=kb;Ee.default=Ee;const $b={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},jb=["put","post","patch"],cs="Local-Request-Id",Vb=200,Eb=500;class pc{axios;settings;records={};isLoading=!1;stopSkipWarn;showLoading;showError;constructor(e={}){this.settings=e.settings||{};const t=ri(e,["settings"]);this.axios=Ee.create(ct({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:2*60*1e3},t)),this.setupSkipWarn(this.settings),this.showLoading=Dl(this.openLoading.bind(this),Vb),this.showError=G1(this._showError.bind(this),Eb,{leading:!0,trailing:!1})}setConfig(e={}){this.settings=ct(this.settings,e.settings||{});const t=ri(e,["settings"]);this.axios.defaults=ct(this.axios.defaults,t),this.setupSkipWarn(this.settings)}cancel(e,t="请求已取消"){if(e){const r=this.records[e];if(!r)return;r.source.cancel(t)}else for(const r of Object.values(this.records))r.source.cancel(t)}createHeaders(e,t,r){const i=t.injectHeaders?typeof t.headers=="function"?t.headers(e,r,t):t.headers||{}:{},o={"Content-Type":$b[t.type||"form"],...r.headers,...i};return t.skipWarn&&(o[cs]=e),o}isJsonType(e){return Object.entries(e).some(([t,r])=>t.toLowerCase()==="content-type"&&String(r).includes("application/json"))}toFormData(e,t="data"){if(e instanceof FormData||e instanceof URLSearchParams)return e;const r=t==="data"?new FormData:new URLSearchParams;return Object.entries(e).forEach(([i,o])=>{r.append(i,o)}),r}createSendData(e,t,r,i){const{type:o,skipWarn:a}=e,{name:s="skipWarn"}=a||{};let{data:l,params:u,method:c="get"}=t;const p=i?{[s]:!0}:{};return jb.includes(c.toLowerCase())?(l=Object.assign(l||{},p),l=o!=="json"||!this.isJsonType(r)?this.toFormData(l,o):l):u={...l,...u,...p},{data:l,params:u}}createUrl(e){const{url:t,query:r}=e;return r?Nl(t)(r):t}openLoading(e){const{loading:t,showLoading:r}=e;t&&r&&Object.keys(this.records).length>0&&(this.isLoading=!0,r())}closeLoading(e){const{loading:t,hideLoading:r}=e;if(!t)return;this.isLoading=!1;const i=Object.keys(this.records);r&&i.length===0&&(this.isLoading=!1,r())}_showError(e,t){const{failMessage:r,showError:i}=e;if(r&&i){const o=t?.message||t?.msg||"未知错误";i(o,t)}}validResponse(e,t){const{validSuccess:r,validate:i}=e;return r&&i?!!i(t):!0}isSkipWarnResponse(e){return!!e.promise}send(e={},t=!1){const r=ct({},this.settings,e.settings||{}),i=ri(e,["settings"]),o=zg(!1),a=Ee.CancelToken.source();this.records[o]={settings:r,config:i,source:a};const s=this.createUrl(i),l=this.createHeaders(o,r,i),{data:u,params:c}=this.createSendData(r,i,l,t);return this.showLoading(r),new Promise((p,h)=>{this.axios({cancelToken:a.token,...i,url:s,headers:l,data:u,params:c}).then(m=>this.isSkipWarnResponse(m)?p(m.promise):this.validResponse(r,m)?p(r.originResponse?m:m.data?.data):(this.showError(r,m.data),h(m.data))).catch(m=>(this.showError(r,m),h(m))).finally(()=>{delete this.records[o],this.closeLoading(r)})})}useResponse(e,t){const{response:r}=this.axios.interceptors,i=r.use(e,t);return()=>r.eject(i)}useRequest(e,t){const{request:r}=this.axios.interceptors,i=r.use(e,t);return()=>r.eject(i)}setupSkipWarn(e){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!e.skipWarn)return;const{code:t,executor:r,callback:i,complete:o}=e.skipWarn;this.stopSkipWarn=this.useResponse(a=>{const s=(a.config.headers||{})[cs],l=this.records[s];if(!l)return a;const{data:u}=a;if(!u||typeof u!="object")return a;if(u?.code===t){i&&i(a);const c=new Promise(r).then(()=>this.send({...l.config,settings:l.settings},!0));c.catch(p=>p).finally(()=>{o&&o()}),a.promise=c}return a})}}function hc(n={}){const e=new pc(n),t=e.send.bind(e),r=e.cancel.bind(e),i=e.setConfig.bind(e),o=e.useRequest.bind(e),a=e.useResponse.bind(e);return Object.assign(t,{...e,instance:e,send:t,cancel:r,setConfig:i,useRequest:o,useResponse:a})}hc({settings:{injectHeaders:!0,loading:!0,originResponse:!0}});const Fi=typeof window<"u",Cb=n=>new Promise((e,t)=>{const r=new FileReader;r.readAsDataURL(n),r.onload=()=>{e(r.result)},r.onerror=i=>{t(i)}});class mc{options={type:"cache",expired:0,prefix:"__VTJ_"};caches={};types;constructor(e={}){this.types={local:Fi?window.localStorage:this.caches,session:Fi?window.sessionStorage:this.caches,cache:this.caches},this.config(e)}config(e={}){this.options=Object.assign(this.options,e)}save(e,t,r={}){const{type:i,expired:o,prefix:a}={...this.options,...r},s=Date.now(),l=a+e,u=this.types[i]||this.caches,c={value:t,timestamp:s,expired:o};u===this.caches?u[l]=c:u.setItem(l,JSON.stringify(c))}get(e,t={}){const{type:r,prefix:i}={...this.options,...t},o=i+e,a=this.types[r]||this.caches;let s;if(a===this.caches)s=a[o];else{const p=a.getItem(o);p&&(s=JSON.parse(p))}if(!s)return null;const{value:l,timestamp:u,expired:c}=s;return c>0&&u+c<Date.now()?(this.remove(e,t),null):l}remove(e,t={}){const{type:r,prefix:i}={...this.options,...t},o=this.types[r]||this.caches,a=i+e;o===this.caches?delete o[a]:o.removeItem(a)}clear(e={}){const{type:t}={...this.options,...e},r=this.types[t]||this.caches;r===this.caches?this.caches={}:r.clear()}}new mc;var Ab=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fc(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Hi={exports:{}};(function(n,e){(function(t,r){r(e,n)})(Ab,function(t,r){var i={timeout:5e3,jsonpCallback:"callback",jsonpCallbackFunction:null};function o(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function a(u){try{delete window[u]}catch{window[u]=void 0}}function s(u){var c=document.getElementById(u);c&&document.getElementsByTagName("head")[0].removeChild(c)}function l(u){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],p=u,h=c.timeout||i.timeout,m=c.jsonpCallback||i.jsonpCallback,f=void 0;return new Promise(function(v,g){var k=c.jsonpCallbackFunction||o(),b=m+"_"+k;window[k]=function(V){v({ok:!0,json:function(){return Promise.resolve(V)}}),f&&clearTimeout(f),s(b),a(k)},p+=p.indexOf("?")===-1?"?":"&";var _=document.createElement("script");_.setAttribute("src",""+p+m+"="+k),c.charset&&_.setAttribute("charset",c.charset),c.nonce&&_.setAttribute("nonce",c.nonce),c.referrerPolicy&&_.setAttribute("referrerPolicy",c.referrerPolicy),c.crossorigin&&_.setAttribute("crossorigin","true"),_.id=b,document.getElementsByTagName("head")[0].appendChild(_),f=setTimeout(function(){g(new Error("JSONP request to "+u+" timed out")),a(k),s(b),window[k]=function(){a(k)}},h),_.onerror=function(){g(new Error("JSONP request to "+u+" failed")),a(k),s(b),f&&clearTimeout(f)}})}r.exports=l})})(Hi,Hi.exports);var Tb=Hi.exports;const Bb=fc(Tb);function zb(n){if(Fi){const{protocol:e,host:t,pathname:r}=location;return`${e}//${t}${n?r:""}`}else return null}function Ob(n=""){const e=n.match(Gl);return e?e[0]:""}function vc(n){const e=[];for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&e.push([t,encodeURIComponent(n[t])].join("="));return e.join("&")}function Li(n,e,t){const r={};n=(n||location.search).replace(/^[^]*\?/,""),e=e||"&",t=t||"=";let i;const o=new RegExp("(?:^|\\"+e+")([^\\"+t+"\\"+e+"]+)(?:\\"+t+"([^\\"+e+"]*))?","g");for(;(i=o.exec(n))!==null;)i[1]!==n&&(r[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return r}function gc(n,e){e=typeof e=="string"?Li(e):e;const t=n.split("?")[0],r=Li(n),i=Object.assign({},r,e),o=vc(i);return o?[t,o].join("?"):n}const On=Object.freeze(Object.defineProperty({__proto__:null,append:gc,getCurrentHost:zb,getHost:Ob,parse:Li,stringify:vc},Symbol.toStringTag,{value:"Module"}));async function Db(n,e={}){const{query:t={}}=e;n.includes("${")&&(n=Nl(n)(t||{}));const r=gc(n,t);return await(await Bb(r,e)).json()}var Ib=function(n,e,t){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");typeof e=="function"&&(t=e,e={}),e=e||{},t=t||function(){},i.type=e.type||"text/javascript",i.charset=e.charset||"utf8",i.async="async"in e?!!e.async:!0,i.src=n,e.attrs&&Mb(i,e.attrs),e.text&&(i.text=""+e.text);var o="onload"in i?ds:Rb;o(i,t),i.onload||ds(i,t),r.appendChild(i)};function Mb(n,e){for(var t in e)n.setAttribute(t,e[t])}function ds(n,e){n.onload=function(){this.onerror=this.onload=null,e(null,n)},n.onerror=function(){this.onerror=this.onload=null,e(new Error("Failed to load "+this.src),n)}}function Rb(n,e){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,e(null,n))}}const Pb=fc(Ib);function ps(n,e={}){return new Promise((t,r)=>{const{library:i}=e;Pb(n,e,(o,a)=>{o?r(o):t(i?window[i]:void 0)})})}const hs={debug:-1,log:0,info:0,warn:1,error:2},Nb=function(n,e,t,r){return function(...i){if(e&&hs[e]<=hs[n]&&console[n].apply&&(r==="*"||t.startsWith(r)))return console[n].apply(console,Fb(i,t))}};function Fb(n,e){return e!=="*"&&(typeof n[0]=="string"?n[0]=`[${e}] ${n[0]}`:n=["["+e+"]"].concat(n)),n}function Hb(n,e){if(!n)return{targetLevel:e.level,targetBizName:e.bizName};if(~n.indexOf(":")){const t=n.split(":");return{targetLevel:t[0],targetBizName:t[1]}}return{targetLevel:n,targetBizName:"*"}}const Lb={level:"warn",bizName:"*"};class Ub{config;options;constructor(e){this.options={...Lb,...e};const t=typeof location<"u"?location:{},r=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(t.href)||[])[1];this.config=Hb(r,e)}_log(e){const{targetLevel:t,targetBizName:r}=this.config,{bizName:i}=this.options;return Nb(e,t,i,r)}debug(...e){return this._log("debug")(...e)}log(...e){return this._log("log")(...e)}info(...e){return this._log("info")(...e)}warn(...e){return this._log("warn")(...e)}error(...e){return this._log("error")(...e)}}function Jb(n){return new Ub(n)}const Ye=Jb({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function ar(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)n[r]=t[r]}return n}var qb={read:function(n){return n[0]==='"'&&(n=n.slice(1,-1)),n.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(n){return encodeURIComponent(n).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Ui(n,e){function t(i,o,a){if(!(typeof document>"u")){a=ar({},e,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in a)a[l]&&(s+="; "+l,a[l]!==!0&&(s+="="+a[l].split(";")[0]));return document.cookie=i+"="+n.write(o,i)+s}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],a={},s=0;s<o.length;s++){var l=o[s].split("="),u=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(a[c]=n.read(u,c),i===c)break}catch{}}return i?a[i]:a}}return Object.create({set:t,get:r,remove:function(i,o){t(i,"",ar({},o,{expires:-1}))},withAttributes:function(i){return Ui(this.converter,ar({},this.attributes,i))},withConverter:function(i){return Ui(ar({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(n)}})}Ui(qb,{path:"/"});/**!
67
+ * Copyright (c) 2024, VTJ.PRO All rights reserved.
68
+ * @name @vtj/ui
69
+ * @author CHC chenhuachun1549@dingtalk.com
70
+ * @version 0.7.15
71
+ * @license <a href="https://vtj.pro/license.html">MIT License</a>
72
+ */const Wb={default:14,small:12,large:18},Kb={icon:{type:[String,Object]},color:{type:String},size:{type:[Number,String],default:"inherit"},src:{type:String},background:{type:String},padding:{type:Number},radius:{type:Number}};function Ln(n){return typeof n=="string"?n:`${n}px`}function sr(n=0,e){if(typeof n=="number")return n;if(/(%|vh|vw)$/i.test(n)){const t=Number.parseInt(n);return Math.floor(e*t/100)}return Number.parseInt(n)}const Yb=["src"],rt=O({name:"XIcon",__name:"Icon",props:Kb,setup(n){const e=n,t=Yi(),r=Un(),i=T(()=>{if(!e.icon)return null;const l=r?.appContext.app;return typeof e.icon=="object"?zt(e.icon):l?.component(e.icon)||e.icon}),o=T(()=>{const l={"is-pointer":!!t.onClick};return!i.value&&e.icon&&(l[e.icon]=!0),l}),a=T(()=>({"background-color":e.background,"border-radius":e.radius?Ln(e.radius):void 0,padding:e.padding?Ln(e.padding):void 0})),s=T(()=>typeof e.size=="number"?e.size:Wb[e.size]??void 0);return(l,u)=>(y(),$(d(ed),{class:ue(["x-icon",o.value]),color:e.color,size:s.value,style:Tt(a.value)},{default:S(()=>[le(l.$slots,"default",{},()=>[i.value?(y(),$(Ke(i.value),{key:0})):M("",!0),e.src?(y(),R("img",{key:1,src:e.src},null,8,Yb)):M("",!0)])]),_:3},8,["class","color","size","style"]))}}),yc={name:{type:String},label:{type:String},value:{type:[String,Number,Object,Array,Boolean]},icon:{type:[String,Object]},mode:{type:String,default:"button"},menus:{type:Array},tooltip:{type:[String,Object]},badge:{type:[String,Number,Object]},dropdown:{type:Object},button:{type:Object},disabled:{type:[Boolean,Function]},size:{type:String,default:"default"},type:{type:String,default:"primary"},background:{type:String,default:"always"},circle:{type:Boolean}};function Gb(n){return T(()=>{const e=n.tooltip;if(e)return typeof e=="string"?{content:e}:e})}function Zb(n){return T(()=>{const e=n.badge;if(e)return typeof e=="object"?e:{value:e}})}function Xb(n){return T(()=>{const{dropdown:e,menus:t}=n;if(t&&t.length>0)return Object.assign({popperClass:"x-action__menus",size:n.size},e||{})})}function Qb(n){const e=Un();return T(()=>{const t=d(n);if(t)if(typeof t=="string"||t.setup||t.render||Kc(t)){const r=e?.appContext.app;return{icon:typeof t=="string"&&r?.component(t)||t}}else return t;return null})}function Mo(n){const e=Qb(n);return e.value?zt(O({render:()=>Oe(rt,e.value)})):void 0}function Ro(n,e){return T(()=>{const t=d(n);return typeof t=="function"?t(e):!!t})}const e6={key:0},t6=O({__name:"Trigger",props:yc,emits:["click"],setup(n,{emit:e}){const t=n,r=e,i=Mo(_r(t,"icon")),o=Ro(_r(t,"disabled")),a=T(()=>({[`is-${t.mode}`]:!!t.mode,[`is-${t.type}`]:!!t.type,[`is-${t.size}`]:!!t.size&&t.size!=="default",[`is-background-${t.background}`]:t.mode==="icon"&&!!t.background,"is-disabled":!!t.disabled,"is-circle":!!t.circle})),s=l=>{if(l.preventDefault(),!o.value)return r("click"),!1};return(l,u)=>t.mode==="button"?(y(),$(d(Ce),ve({key:0,icon:d(i),type:t.type,size:t.size,disabled:d(o)},t.button,{onClick:s}),{default:S(()=>[de(ee(l.label),1)]),_:1},16,["icon","type","size","disabled"])):(y(),R("div",{key:1,class:ue(["x-action__inner",a.value]),onClick:s},[(y(),$(Ke(d(i)))),l.label?(y(),R("span",e6,ee(l.label),1)):M("",!0)],2))}}),De=O({name:"XAction",__name:"Action",props:yc,emits:["click","command"],setup(n,{emit:e}){const t=n,r=qc(),i=e,o=Gb(t),a=Zb(t),s=Xb(t),l=Ro(_r(t,"disabled")),u=T(()=>({[`x-action--${t.mode}`]:!!t.mode})),c=()=>{l.value||i("click",on(t))},p=g=>{if(l.value)return;const k=t.menus?.find(b=>b.command===g);k&&i("command",on(k))},h=g=>Oe(td,a.value,()=>[].concat(g)),m=g=>Oe(eo,{...s.value,disabled:l.value,onCommand:p},{default:()=>[g],dropdown:()=>[Oe(Qi,()=>(t.menus||[]).map((k,b)=>Oe(xr,k,()=>r.item?r.item({item:k,index:b}):k.label)))]}),f=g=>Oe(Cr,{...o.value,disabled:l.value},()=>[g]),v=T(()=>{let g=Oe(zt(t6),{...t,onClick:c});const k=r.default?.();return k&&k.length&&(g=k[0]),a.value&&(g=h(g)),s.value&&(g=m(g)),o.value&&(g=f(g)),g});return(g,k)=>(y(),R("div",{class:ue(["x-action",u.value])},[(y(),$(Ke(v.value)))],2))}}),n6={items:{type:Array},mode:{type:String,default:"button"},size:{type:String,default:"default"},type:{type:String,default:"primary"},background:{type:String,default:"always"},circle:{type:Boolean},disabled:{type:[Boolean,Function]},tooltip:{type:Object},badge:{type:Object},dropdown:{type:Object},button:{type:Object}},r6=O({name:"XActionBar",__name:"ActionBar",props:n6,emits:["click","command"],setup(n,{emit:e}){const t=n,r=e,i=T(()=>(t.items||[]).map(s=>s==="|"?s:{...s,badge:s.badge?{...t.badge,...typeof s.badge=="object"?s.badge||{}:{value:s.badge}}:void 0,tooltip:s.tooltip?{...t.tooltip,...typeof s.tooltip=="object"?s.tooltip||{}:{content:s.tooltip}}:void 0})),o=s=>{r("click",s)},a=(s,l)=>{r("command",s,l)};return(s,l)=>(y(),$(d(ae),{class:"x-action-bar",align:"center"},{default:S(()=>[(y(!0),R(ne,null,oe(i.value,u=>(y(),R(ne,null,[u==="|"?(y(),$(d(Ar),{key:0,direction:"vertical",class:"x-action-bar__divider"})):(y(),$(d(De),ve({key:1,mode:t.mode,size:t.size,type:t.type,circle:t.circle,background:t.background,button:t.button,dropdown:t.dropdown,disabled:d(Ro)(t.disabled,u).value},u,{onClick:o,onCommand:c=>a(u,c)}),null,16,["mode","size","type","circle","background","button","dropdown","disabled","onCommand"]))],64))),256))]),_:1}))}}),i6={tag:{type:String,default:"div"},fit:{type:Boolean,default:!1},width:{type:[String,Number]},height:{type:[String,Number]},flex:{type:Boolean,default:!0},inline:{type:Boolean},direction:{type:String,default:"row"},wrap:{type:String,default:"nowrap"},justify:{type:String,default:"flex-start"},align:{type:String,default:"flex-start"},alignContent:{type:String,default:"stretch"},grow:{type:Boolean,default:!1},shrink:{type:Boolean,default:!1},alignSelf:{type:String,default:"auto"},overflow:{type:String},padding:{type:Boolean,default:!1},gap:{type:Boolean},autoPointer:{type:Boolean}},ae=O({name:"XContainer",__name:"Container",props:i6,setup(n){const e=n,t=Yi(),r=Un(),i=T(()=>{const s=r?.parent;if(!s)return!1;const l=s.proxy;return l.$options.name==="XContainer"||!!l.flex}),o=T(()=>({"is-fit":e.fit,"is-flex":e.flex&&!e.inline,"is-inline-flex":e.flex&&e.inline,[`is-direction-${e.direction}`]:e.flex&&e.direction!=="row",[`is-wrap-${e.wrap}`]:e.flex&&e.wrap!=="nowrap",[`is-justify-${e.justify}`]:e.flex&&e.justify!=="flex-start",[`is-align-${e.align}`]:e.flex&&e.align!=="flex-start",[`is-align-content-${e.alignContent}`]:e.flex&&e.alignContent!=="stretch","is-grow":e.grow??i.value,"is-shrink":i.value&&e.shrink,[`is-align-self-${e.alignSelf}`]:i.value&&e.alignSelf!=="auto",[`is-overflow-${e.overflow}`]:!!e.overflow,"is-padding":!!e.padding,"is-pointer":e.autoPointer&&!!t.onClick,"is-gap":!!e.gap})),a=T(()=>{const{width:s,height:l,fit:u}=e;return u?null:{width:s?Ln(s):void 0,height:l?Ln(l):void 0}});return(s,l)=>(y(),$(Ke(e.tag),{class:ue(["x-container",o.value]),style:Tt(a.value)},{default:S(()=>[le(s.$slots,"default")]),_:3},8,["class","style"]))}}),o6={size:{type:String,default:"default"},content:{type:String,default:""},subtitle:{type:String},icon:{type:[String,Object]},border:{type:Boolean},more:{type:Boolean}},a6={class:"x-header__content"},s6={key:0,class:"x-header__actions"},l6=O({name:"XHeader",inheritAttrs:!1,__name:"Header",props:o6,setup(n){const e=n,t=Mo(_r(e,"icon")),r=Yi(),i=T(()=>({[`is-size-${e.size}`]:!!e.size&&e.size!=="default","is-border":e.border,"is-pointer":!!r.onClick}));return(o,a)=>(y(),$(d(ae),{class:ue(["x-header",i.value]),justify:"space-between",align:"center"},{default:S(()=>[w(d(ae),{align:"center",class:ue(["x-header__wrapper",i.value]),grow:"",onClick:d(r).onClick},{default:S(()=>[d(t)?(y(),$(Ke(d(t)),{key:0,class:"x-header__icon",onClick:d(r).onClickIcon||d(r).onClick},null,8,["onClick"])):M("",!0),I("span",a6,[le(o.$slots,"default",{},()=>[de(ee(e.content),1)])]),e.more?(y(),$(d(rt),{key:1,class:"x-header__more",icon:d(Ts)},null,8,["icon"])):M("",!0),e.subtitle||o.$slots.subtitle?(y(),R("span",{key:2,class:"x-header__subtitle",onClick:a[0]||(a[0]=(...s)=>d(r).onClick&&d(r).onClick(...s))},[le(o.$slots,"subtitle",{},()=>[de(ee(e.subtitle),1)])])):M("",!0)]),_:3},8,["class","onClick"]),o.$slots.actions?(y(),R("div",s6,[le(o.$slots,"actions")])):M("",!0)]),_:3},8,["class"]))}}),u6={fit:{type:Boolean,default:!1},width:{type:[String,Number]},height:{type:[String,Number]},border:{type:Boolean,default:!0},radius:{type:Boolean,default:!0},card:{type:Boolean},size:{type:String},shadow:{type:String},header:{type:[String,Object]},body:{type:Object},footer:{type:Object}},Ur=O({name:"XPanel",__name:"Panel",props:u6,setup(n,{expose:e}){const t=n,r=B(),i=T(()=>({"x-panel--card":!!t.card,"x-panel--default":!t.card,[`is-${t.size}`]:!!t.size&&t.size!=="default","is-border":!!t.border,"is-radius":!!t.radius,[`is-shadow-${t.shadow}`]:!!t.shadow&&t.shadow!=="none"})),o=T(()=>t.header===null?null:typeof t.header=="string"?{content:t.header,size:t.size}:{...t.header,size:t.size}),a=T(()=>t.fit||t.height?"auto":void 0);return e({bodyRef:r}),(s,l)=>(y(),$(d(ae),{class:ue(["x-panel",i.value]),direction:"column",fit:t.fit,width:t.width,height:t.height},{default:S(()=>[o.value?(y(),$(d(ae),{key:0,flex:!1,class:"x-panel__header"},{default:S(()=>[le(s.$slots,"header",{},()=>[w(d(l6),wt(Ot(o.value)),{default:S(()=>[le(s.$slots,"title")]),actions:S(()=>[le(s.$slots,"actions")]),_:3},16)])]),_:3})):M("",!0),w(d(ae),ve({ref_key:"bodyRef",ref:r,flex:!1,overflow:a.value,grow:"",padding:"",class:"x-panel__body"},t.body),{default:S(()=>[le(s.$slots,"default")]),_:3},16,["overflow"]),s.$slots.footer?(y(),$(d(ae),ve({key:1,flex:!1,padding:"",class:"x-panel__footer"},t.footer),{default:S(()=>[le(s.$slots,"footer")]),_:3},16)):M("",!0)]),_:3},8,["class","fit","width","height"]))}}),ms="user-select-none";let fs=class{constructor(e,t={}){this.el=e,this.options=t,this.scope=ks(),this.scope.run(()=>{this.init()})}scope;dragging=!1;getHandle(){const{selector:e,handle:t}=this.options;return e?this.el.querySelector(e):t}getTarget(){const{target:e="body"}=this.options;return typeof e=="string"?document.querySelector(e):d(e)||document.body}init(){const{el:e,options:t}=this,{disabled:r,delay:i=150,onStart:o,onEnd:a}=t;if(r)return;let s=null;const l=this.getHandle(),u=this.getTarget();let c=e.getBoundingClientRect(),p=null;const{x:h,y:m}=zd(e,{initialValue:{x:c.x,y:c.y},...t,handle:l,onStart:(f,v)=>{document.body.classList.add(ms),clearTimeout(s),s=setTimeout(()=>{this.dragging=!0,c=e.getBoundingClientRect(),p=u?.getBoundingClientRect(),o&&o(f,v)},i)},onEnd:(f,v)=>{if(clearTimeout(s),document.body.classList.remove(ms),this.dragging&&p){this.dragging=!1;const{x:g,y:k}=f,b=this.getPosition(p,c,g,k);a&&a(b,v),p=null}}});ce([h,m],()=>{if(this.dragging&&p){const f=this.getPosition(p,c,h.value,m.value);e.style.left=`${f.x}px`,e.style.top=`${f.y}px`}})}getPosition(e,t,r,i){const{edge:o=50}=this.options,a=-t.width+o,s=e.width-o,l=0,u=e.height-o,c=Math.min(s,Math.max(r,a)),p=Math.min(u,Math.max(i,l));return{x:c,y:p}}destory(){this.scope.stop()}};const c6={mounted(n,e){const t=e.value||{},r=new fs(n,t);n.__draggable__=r},updated(n,e){const t=e.value||{};let r=n.__draggable__;r&&!_o(r.options,t)&&(r.destory(),n.__draggable__=new fs(n,t))},unmounted(n){const e=n.__draggable__;e&&(e.destory(),n.__draggable__=null)}},ci="user-select-none";let vs=class{constructor(e,t={}){this.el=e,this.options=t,this.scope=ks(),this.scope.run(()=>{this.init()})}scope;resizing=B(!1);direction=B("");MIE=null;cleanMousedown;cleanMouseup;init(){const{el:e,options:t}=this,{disabled:r,onStart:i,onEnd:o}=t;if(r)return;this.MIE=Bd(e),this.cleanMousedown=Ko(document,"mousedown",()=>{this.direction?.value&&this.MIE&&(this.resizing.value=!0,e.classList.add("is-resizing",`is-${this.direction.value}-resizing`),i&&i(this.direction.value,this.MIE))}),this.cleanMouseup=Ko(document,"mouseup",()=>{this.resizing.value&&this.direction?.value&&this.MIE&&(e.classList.remove("is-resizing",`is-${this.direction.value}-resizing`),o&&o(this.direction.value,this.MIE)),this.resizing.value=!1}),ce(this.direction,l=>{const u=document.body;u.style.cursor=l?`${l}-resize`:"",l?u.classList.add(ci):u.classList.remove(ci)});const{x:a,y:s}=this.MIE;ce([a,s],()=>{this.resizing.value?this.resize():this.direction.value=this.getDirection()})}resize(){const{MIE:e,direction:t,resizing:r,options:i,el:o}=this,a=t?.value||"";if(!e||!r.value||!a)return;const{x:s,y:l,elementX:u,elementY:c,elementHeight:p,elementWidth:h}=e,{onResizing:m}=i,{minWidth:f=0,minHeight:v=0,maxWidth:g=99999,maxHeight:k=99999}=i;if(a.includes("e")){const b=Math.min(Math.max(u.value,f),g);o.style.width=`${b}px`}if(a.includes("s")){const b=Math.min(Math.max(c.value,v),k);o.style.height=`${b}px`}if(a.includes("w")){const b=Math.min(Math.max(h.value-u.value,f),g);o.style.width=`${b}px`,o.style.left=`${s.value}px`}if(a.includes("n")){const b=Math.min(Math.max(p.value-c.value,v),k);this.el.style.height=`${b}px`,this.el.style.top=`${l.value}px`}m&&m(a,e)}getDirection(){if(!this.MIE)return"";const{elementX:e,elementY:t,elementHeight:r,elementWidth:i,isOutside:o}=this.MIE;if(o.value)return"";const{dirs:a=["n","s","w","e"],edge:s=5}=this.options;let l="";return a.includes("n")&&t.value<=s?l+="n":a.includes("s")&&t.value>r.value-s&&(l+="s"),a.includes("w")&&e.value<=s?l+="w":a.includes("e")&&e.value>i.value-s&&(l+="e"),l}destory(){const e=document.body;e.style.cursor="",e.classList.remove(ci),this.cleanMousedown&&this.cleanMousedown(),this.cleanMouseup&&this.cleanMouseup(),this.MIE?.stop(),this.scope.stop()}};const Ji={mounted(n,e){const t=e.value||{},r=new vs(n,t);n.__resizable__=r},updated(n,e){const t=e.value||{};let r=n.__resizable__;r&&!_o(r.options,t)&&(r.destory(),n.__resizable__=new vs(n,t))},unmounted(n){const e=n.__resizable__;e&&(e.destory(),n.__resizable__=null)}},d6={modelValue:{type:Boolean,default:!0},title:{type:String},subtitle:{type:String},icon:{type:[String,Object]},size:{type:String,default:"default"},width:{type:[Number,String],default:"70%"},height:{type:[Number,String],default:"70%"},left:{type:[Number,String]},top:{type:[Number,String]},modal:{type:Boolean,default:!0},draggable:{type:[Boolean,Object],default:!0},resizable:{type:[Boolean,Object]},closable:{type:Boolean,default:!0},maximizable:{type:Boolean,default:!1},minimizable:{type:Boolean,default:!1},mode:{type:String,default:"normal"},content:{type:Object},src:{type:String},componentInstance:{type:Object},beforeClose:{type:Function},submit:{type:[Boolean,String]},cancel:{type:[Boolean,String]},bodyPadding:{type:Boolean,default:!0},primary:{type:Boolean}};let un=1e3;function p6(n,e){const{width:t,height:r}=dn(e),i=qt({mode:n.mode||"normal",wrapperWidth:0,wrapperHeight:0,width:0,height:0,top:0,left:0,zIndex:++un,dragging:!1,resizing:!1});return ce([t,r],([o,a])=>{i.wrapperWidth=o,i.wrapperHeight=a,i.width=sr(n.width,o),i.height=sr(n.height,a),i.left=n.left?sr(n.left,o)-i.width/2:Math.max(Math.floor((o-i.width)/2),0),i.top=n.top?sr(n.top,a):Math.max(Math.floor((a-i.height)/2),0)}),ce(i,o=>{un=Math.max(o.zIndex,un)}),{state:i,normal:T(()=>i.mode==="normal"),maximized:T(()=>i.mode==="maximized"),minimized:T(()=>i.mode==="minimized")}}function h6(n,e){const t=T(()=>{const{width:a,height:s,top:l,left:u,zIndex:c}=e;return{width:`${a}px`,height:`${s}px`,top:`${l}px`,left:`${u}px`,zIndex:c}}),r=T(()=>({[`is-${e.mode}`]:!!e.mode,"is-draggable":!!n.draggable,"is-resizable":!!n.resizable,"is-primary":!!n.primary})),i=T(()=>({[`is-${e.mode}`]:!!e.mode,"is-dragging":e.dragging,"is-resizing":e.resizing})),o=T(()=>({zIndex:e.zIndex}));return{styles:t,classes:r,wrapperClass:i,modalStyle:o}}function m6(n,e,t){const r=o=>{e.mode=o,["maximized","minimized","normal"].includes(o)&&t(o),t("modeChange",o)},i=async()=>{(!n.beforeClose||await n.beforeClose())&&(t("update:modelValue",!1),t("close"),t("destroy"))};return{close:i,changeMode:r,show:()=>r("normal"),hide:()=>r("minimized"),active:o=>{const a=o.target.nodeName||"";["INPUT","TEXTAREA","RADIO","CHECKBOX"].includes(a.toUpperCase())||(e.zIndex=Math.max(e.zIndex,++un))},submit:()=>t("submit"),cancel:()=>{t("cancel"),i()}}}function f6(n,e,t,r){return T(()=>{const i=typeof n.draggable=="boolean"?!n.draggable:!!n.draggable?.disabled;return{...ze(n.draggable)?n.draggable:{},disabled:i,target:r,selector:".x-panel__header",onStart(o){e.dragging=!0,e.zIndex=Math.max(e.zIndex,++un),t("dragStart",o)},onMove(o){t("dragging",o)},onEnd(o){if(e.mode==="maximized")return;const{x:a,y:s}=o;e.left=a,e.top=s,e.dragging=!1,t("dragEnd",o)}}})}function v6(n,e,t){return T(()=>{const r=typeof n.resizable=="boolean"?!n.resizable:!!n.resizable?.disabled;return{minWidth:200,minHeight:150,...ze(n.resizable)?n.resizable:{},disabled:r,dirs:["e","s","w"],onStart(i,o){e.resizing=!0,e.zIndex=Math.max(e.zIndex,++un),t("resizeStart",i,o)},onResizing(i,o){t("resizing",i,o)},onEnd(i,o){e.left=o.elementPositionX.value,e.top=o.elementPositionY.value,e.width=o.elementWidth.value,e.height=o.elementHeight.value,e.resizing=!1,t("resizeEnd",i,o)}}})}function g6(n,e){const t=n.componentInstance;if(!t)return;let r=null;return Gi(()=>{const i=d(e),o=d(i?.bodyRef);r=t.$el,o&&o.$el&&o.$el.appendChild(r)}),Zi(()=>{r&&r.parentNode&&r.parentNode.removeChild(r)}),{componentInstance:t}}const y6=["src"],Zt=O({name:"XDialog",__name:"Dialog",props:d6,emits:["update:modelValue","open","close","destroy","maximized","minimized","normal","modeChange","dragStart","dragging","dragEnd","resizeStart","resizeEnd","resizing","submit","cancel"],setup(n,{expose:e,emit:t}){const r=n,i=t,o=Un(),a=B(),s=B(),{state:l,maximized:u,minimized:c,normal:p}=p6(r,a),{styles:h,classes:m,wrapperClass:f,modalStyle:v}=h6(r,l),{changeMode:g,active:k,close:b,show:_,hide:V,submit:j,cancel:x}=m6(r,l,i),E=f6(r,l,i,a),D=v6(r,l,i),Z=g6(r,s);$s(async()=>{r.modelValue&&(await bt(),o&&i("open",o))});const C=T(()=>s.value?.$el);return e({$vtjEl:C,panelRef:s,state:l,maximized:u,minimized:c,changeMode:g,show:_,hide:V,submit:j,cancel:x,componentInstance:Z}),(A,F)=>r.modelValue?(y(),$(Wc,{key:0,to:"body"},[I("div",{ref_key:"wrapper",ref:a,class:ue(["x-dialog__wrapper",d(f)])},[r.modal?(y(),R("div",{key:0,class:"x-dialog__modal",style:Tt(d(v))},null,4)):M("",!0),Bt((y(),$(d(Ur),ve({ref_key:"panelRef",ref:s,class:["x-dialog",d(m)],card:"",shadow:"always",header:{icon:r.icon,subtitle:r.subtitle},width:"800px",height:"600px",footer:{justify:"space-between",flex:!0,align:"center"},style:d(h),size:r.size,body:{padding:r.bodyPadding},onClick:d(k)},A.$attrs),Jt({title:S(()=>[de(ee(r.title),1)]),actions:S(()=>[le(A.$slots,"actions"),r.minimizable?(y(),$(d(De),{key:0,icon:d(mu),size:r.size,mode:"icon",type:"primary",background:"hover",onClick:F[0]||(F[0]=z=>d(g)("minimized"))},null,8,["icon","size"])):M("",!0),r.maximizable?(y(),R(ne,{key:1},[d(p)?(y(),$(d(De),{key:1,icon:d(hu),size:r.size,mode:"icon",type:"primary",background:"hover",onClick:F[2]||(F[2]=z=>d(g)("maximized"))},null,8,["icon","size"])):(y(),$(d(De),{key:0,icon:d(fu),size:r.size,mode:"icon",type:"primary",background:"hover",onClick:F[1]||(F[1]=z=>d(g)("normal"))},null,8,["icon","size"]))],64)):M("",!0),r.closable?(y(),$(d(De),{key:2,icon:d(vu),size:r.size,mode:"icon",type:"danger",background:"hover",onClick:d(b)},null,8,["icon","size","onClick"])):M("",!0)]),default:S(()=>[le(A.$slots,"default",{},()=>[r.content?(y(),$(Ke(r.content),{key:0})):M("",!0),r.src?(y(),R("iframe",{key:1,src:r.src,class:"x-dialog__frame"},null,8,y6)):M("",!0)])]),_:2},[r.cancel||r.submit||A.$slots.footer||A.$slots.extra||A.$slots.handle?{name:"footer",fn:S(()=>[le(A.$slots,"footer",{},()=>[w(d(ae),{align:"center"},{default:S(()=>[le(A.$slots,"extra")]),_:3}),w(d(ae),{align:"center"},{default:S(()=>[le(A.$slots,"handle"),r.cancel?(y(),$(d(Ce),{key:0,type:"default",size:r.size,onClick:d(x)},{default:S(()=>[de(ee(typeof r.cancel=="string"?r.cancel:"取消"),1)]),_:1},8,["size","onClick"])):M("",!0),r.submit?(y(),$(d(Ce),{key:1,type:"primary",size:r.size,onClick:d(j)},{default:S(()=>[de(ee(typeof r.submit=="string"?r.submit:"确定"),1)]),_:1},8,["size","onClick"])):M("",!0)]),_:3})])]),key:"0"}:void 0]),1040,["header","class","style","size","body","onClick"])),[[d(c6),d(E)],[d(Ji),d(D)]])],2)])):M("",!0)}});function bc(n,e){const t=document.createElement("div"),r=w(Zt,n);r.appContext=e??bc._context,Uo(r,t);const i=()=>{Uo(null,t),t.parentNode?.removeChild(t)};return r.props.onDestroy=()=>{i()},document.body.appendChild(t),{vnode:r,destroy:i}}const b6=O({__name:"SelectEditor",props:{options:{default:()=>[]}},setup(n){const e=n;return(t,r)=>(y(),$(d(no),wt(Ot(t.$attrs)),{default:S(()=>[(y(!0),R(ne,null,oe(e.options,(i,o)=>(y(),$(d(ro),ve({key:`item_${o}_${i.value}`},i),Jt({_:2},[t.$slots.option?{name:"default",fn:S(()=>[le(t.$slots,"option",{option:i})]),key:"0"}:void 0]),1040))),128))]),_:3},16))}}),w6=O({__name:"CheckboxEditor",props:{options:{default:()=>[]},button:{type:Boolean,default:!1}},setup(n){const e=n,t=T(()=>zt(e.button?od:ad));return(r,i)=>(y(),$(d(sd),wt(Ot(r.$attrs)),{default:S(()=>[(y(!0),R(ne,null,oe(e.options,(o,a)=>(y(),$(Ke(t.value),{key:`item_${a}_${o.value}`,label:o.value},{default:S(()=>[de(ee(o.label),1)]),_:2},1032,["label"]))),128))]),_:1},16))}}),_6=O({__name:"RadioEditor",props:{options:{default:()=>[]},button:{type:Boolean,default:!1}},setup(n){const e=n,t=T(()=>zt(e.button?Bn:ld));return(r,i)=>(y(),$(d(io),wt(Ot(r.$attrs)),{default:S(()=>[(y(!0),R(ne,null,oe(e.options,(o,a)=>(y(),$(Ke(t.value),{key:`item_${a}_${o.value}`,label:o.value},{default:S(()=>[de(ee(o.label),1)]),_:2},1032,["label"]))),128))]),_:1},16))}}),wc={none:{component:"div",props:{class:"x-field-none"}},text:{component:tt,props:{clearable:!0},defaultValue:""},textarea:{component:tt,props:{type:"textarea",rows:2},defaultValue:""},select:{component:b6,props:{clearable:!0}},checkbox:{component:w6,props:{},defaultValue:[]},radio:{component:_6,props:{}},number:{component:Es,props:{}},date:{component:Jo,props:{}},time:{component:nd,props:{}},datetime:{component:Jo,props:{type:"datetime"}},switch:{component:to,props:{}},rate:{component:rd,props:{}},slider:{component:Cs,props:{}},cascader:{component:id,props:{}}},x6={name:{type:String},label:{type:String},editor:{type:[String,Object],default:"text"},props:{type:Object},modelValue:{type:[String,Number,Boolean,Object,Array],default(n){return wc[n.editor]?.defaultValue}},size:{type:String},width:{type:[String,Number]},tooltipMessage:{type:[Boolean,Object],default:!0},tooltipPosition:{type:[String,Number],default:"outer"},placeholder:{type:String},disabled:{type:Boolean},readonly:{type:Boolean},options:{type:[Array,Function]},visible:{type:[Boolean,Object,Function],default:!0},cascader:{type:[String,Array]},error:{type:String},tip:{type:String},inline:{type:Boolean}};async function S6(n,e){const t=n.options;return t?typeof t=="function"?await t(e)||[]:t:[]}function k6(n,e,t,r,i){const o=B([]),a=T(()=>!r||!i?{}:xo(n.cascader).reduce((s,l)=>(s[l]=cr(i,l),s),{}));return ce(a,async s=>{if(t.value){o.value=await S6(n,s);const l=r?.exposed?.reset;l&&n.name&&l(n.name)}},{immediate:!0}),{editor:T(()=>{const{editor:s="text",placeholder:l,label:u="...",disabled:c,readonly:p}=n,h={...n.props,placeholder:l||(l===null?void 0:`请输入${u}`),disabled:c,readonly:p,options:o.value,onFocus:()=>e("focus"),onBlur:()=>e("blur"),onChange:f=>e("change",f)},m=typeof s=="string"?wc[s]:{component:s,props:{}};return ct({},m,{props:h})})}}const $6={key:1,class:"el-form-item__error"},j6={key:0,class:"x-field__tip"},te=O({name:"XField",__name:"Field",props:x6,emits:["update:modelValue","change","focus","blur"],setup(n,{expose:e,emit:t}){const r=n,i=t,o=An(_c,null),a=An(Zc,null),s=An(xc,null),l=T(()=>!o?.proxy||!s?r.visible:typeof r.visible=="function"?r.visible(s):ze(r.visible)?Object.entries(r.visible).every(([j,x])=>cr(s,j)===x):r.visible),u=()=>o?.proxy&&s&&r.name?cr(s,r.name)??r.modelValue:r.modelValue,c=B(u()),{editor:p}=k6(r,i,l,o,s),h=B(),m=B(),f=T(()=>r.size||a?.size||"default"),v=T(()=>Object.assign({},o?.props.tooltipMessage||{},typeof r.tooltipMessage=="boolean"?{}:r.tooltipMessage)),g=(j="")=>r.error?r.error:j.includes("is required")?`${r.label||r.name}是必填项!`:j,k=T(()=>{const j=o?.props.tooltipMessage??r.tooltipMessage;return{[`is-tooltip-${r.tooltipPosition}`]:!!j&&!!r.tooltipPosition}}),b=T(()=>{const j=o?.proxy;return{width:r.width?Ln(r.width):j&&j.inline&&j.inlineColumns?`${100/j.inlineColumns}%`:null}}),_=T(()=>({right:typeof r.tooltipPosition=="number"?`${r.tooltipPosition}px`:void 0})),V=T(()=>({...p.value.props,modelValue:c.value,"onUpdate:modelValue":j=>{c.value=j}}));return ce(c,(j,x)=>{l.value&&!_o(j,x)&&(i("update:modelValue",j),o?.proxy&&s&&r.name&&Zr(s,r.name,j))}),ce(()=>!o?.proxy||!r.name||!s?r.modelValue:cr(s,r.name)??r.modelValue,j=>{l.value&&(c.value=j)},{immediate:!0}),ce(l,j=>{o?.proxy&&s&&r.name&&(j?(c.value=u(),Zr(s,r.name,c.value)):(c.value=void 0,Zr(s,r.name,void 0)))},{immediate:!0}),e({fieldValue:c,itemRef:h,editorRef:m,focus:()=>{m.value?.focus&&m.value.focus()},blur:()=>{m.value?.foucs&&m.value.blur()}}),(j,x)=>l.value?(y(),$(d(Xi),ve({key:0,class:["x-field",k.value],ref_key:"itemRef",ref:h,prop:r.name,label:j.label,size:f.value,style:b.value},j.$attrs),Jt({error:S(({error:E})=>[le(j.$slots,"error",{error:E},()=>[d(o)?.props.tooltipMessage??r.tooltipMessage?(y(),R("div",{key:0,class:"x-field__info",style:Tt(_.value)},[w(d(Cr),ve({content:g(E)},v.value),{default:S(()=>[w(d(rt),{class:"x-field__trigger",icon:d($d),size:f.value},null,8,["icon","size"])]),_:2},1040,["content"])],4)):(y(),R("div",$6,ee(g(E)),1))])]),default:S(()=>[I("div",{class:ue(["x-field__editor_wrap",{"is-inline":r.inline}])},[le(j.$slots,"editor",{editor:V.value},()=>[d(p).component?(y(),$(Ke(d(p).component),ve({key:0,class:"x-field__editor",ref_key:"editorRef",ref:m,modelValue:c.value,"onUpdate:modelValue":x[0]||(x[0]=E=>c.value=E)},d(p).props),Jt({_:2},[j.$slots.option?{name:"option",fn:S(({option:E})=>[le(j.$slots,"option",{option:E})]),key:"0"}:void 0]),1040,["modelValue"])):M("",!0)]),r.tip||j.$slots.tip?(y(),R("div",j6,[le(j.$slots,"tip",{},()=>[de(ee(r.tip),1)])])):M("",!0)],2),le(j.$slots,"default")]),_:2},[j.$slots.label?{name:"label",fn:S(()=>[le(j.$slots,"label")]),key:"0"}:void 0]),1040,["prop","label","size","class","style"])):M("",!0)}}),V6={model:{type:Object,default(){return Object.create(null)}},inline:{type:Boolean},inlineColumns:{type:Number},footer:{type:Boolean,default:!0},submitText:{type:String,default:"提交"},resetText:{type:String,default:"重置"},submitMethod:{type:Function},tooltipMessage:{type:[Object,Boolean],default:void 0}},_c=Symbol("formInstanceKey"),xc=Symbol("formModelKey"),Sc=O({name:"XForm",__name:"Form",props:V6,emits:["change","submit","reset"],setup(n,{expose:e,emit:t}){const r=n,i=t,o=Un(),a=B(),s=qt(r.model||{}),l=B(!1);Lo(_c,o),Lo(xc,s),ce(s,()=>{i("change",on(s))}),ce(()=>r.model,p=>{Object.assign(s,p)},{deep:!0});const u=async()=>{await a.value.validate().catch(()=>!1)&&(i("submit",on(s)),r.submitMethod&&(l.value=!0,await r.submitMethod(on(s)),l.value=!1))},c=p=>{a.value.resetFields(p),i("reset")};return e({formRef:a,model:s,submit:u,reset:c}),(p,h)=>(y(),$(d(We),ve({ref_key:"formRef",ref:a,class:"x-form",inline:r.inline,model:s,onKeyup:Tn(u,["enter"]),onSubmit:h[1]||(h[1]=an(()=>{},["stop","prevent"]))},p.$attrs),{default:S(()=>[le(p.$slots,"default"),r.footer?(y(),$(d(te),{key:0,editor:"none",class:"x-form__footer",label:" "},{editor:S(()=>[le(p.$slots,"footer",{},()=>[r.submitText?(y(),$(d(Ce),{key:0,loading:l.value,type:"primary",onClick:u},{default:S(()=>[de(ee(r.submitText),1)]),_:1},8,["loading"])):M("",!0),r.resetText?(y(),$(d(Ce),{key:1,type:"default",onClick:h[0]||(h[0]=()=>c())},{default:S(()=>[de(ee(r.resetText),1)]),_:1})):M("",!0),le(p.$slots,"action")])]),_:3})):M("",!0)]),_:3},16,["inline","model"]))}}),E6={modelValue:{type:Boolean,default:!0},size:{type:String},formProps:{type:Object},submit:{type:[Boolean,String],default:"确定"},cancel:{type:[Boolean,String],default:"取消"},model:{type:Object,default(){return Object.create(null)}},rules:{type:Object},submitMethod:{type:Function}},ft=O({name:"XDialogForm",__name:"DialogForm",props:E6,emits:["update:modelValue","submit","close"],setup(n,{expose:e,emit:t}){const r=n,i=t,o=B(),a=B(),s=T(()=>a.value?.$vtjEl),l=()=>{o.value?.submit()},u=()=>{i("update:modelValue",!1),i("close")},c=async m=>{i("submit",m),r.submitMethod?await r.submitMethod(m)&&u():u()},p=T(()=>r.formProps?.disabled?!1:r.submit),h=T(()=>r.formProps?.disabled?!1:r.cancel);return e({$vtjEl:s,formRef:o,dialogRef:a}),(m,f)=>(y(),$(d(Zt),ve({ref_key:"dialogRef",ref:a,class:"x-dialog-form","model-value":r.modelValue,submit:p.value,cancel:h.value,size:r.size,onSubmit:l,onClose:u,minimizable:!1,maximizable:!1},m.$attrs),Jt({default:S(()=>[w(d(Sc),ve({ref_key:"formRef",ref:o,class:"x-dialog-form__form",footer:!1,"label-width":"80px",size:r.size,model:r.model,rules:r.rules,"submit-method":c},r.formProps),{default:S(()=>[le(m.$slots,"default")]),_:3},16,["size","model","rules"])]),_:2},[m.$slots.extra?{name:"extra",fn:S(()=>[le(m.$slots,"extra")]),key:"0"}:void 0,m.$slots.handle?{name:"handle",fn:S(()=>[le(m.$slots,"handle")]),key:"1"}:void 0,m.$slots.footer?{name:"footer",fn:S(()=>[le(m.$slots,"footer")]),key:"2"}:void 0]),1040,["model-value","submit","cancel","size"]))}}),C6={items:{type:Array,default(){return[]}},border:{type:Boolean}},A6={class:"x-tabs__label-inner"},T6={key:0,class:"x-tabs__actions"},kc=O({name:"XTabs",__name:"Tabs",props:C6,emits:["actionClick","actionCommand"],setup(n,{emit:e}){const t=n,r=e,i=l=>{const{label:u,name:c,value:p,disabled:h,closable:m,lazy:f}=l;return{label:u,name:p??c,disabled:h,closable:m,lazy:f}},o=T(()=>({"is-no-border":!t.border})),a=l=>{r("actionClick",l)},s=l=>{r("actionCommand",l)};return(l,u)=>(y(),$(d(Qc),ve({class:["x-tabs",o.value]},l.$attrs),{default:S(()=>[(y(!0),R(ne,null,oe(t.items,c=>(y(),$(d(Xc),ve({key:c.value??c.name},i(c)),{label:S(()=>[le(l.$slots,"label",wt(Ot(c)),()=>[c.icon?(y(),$(Ke(d(Mo)(c.icon)),{key:0,class:"x-tabs__icon"})):M("",!0),I("div",A6,[de(ee(c.label)+" ",1),c.actions&&[c.name,c.value].includes(l.$attrs.modelValue)?(y(),R("div",T6,[(y(!0),R(ne,null,oe(c.actions,p=>(y(),$(d(De),ve({mode:"icon",type:"primary",size:"small",circle:""},p,{onClick:a,onCommand:s}),null,16))),256))])):M("",!0)])])]),default:S(()=>[le(l.$slots,"default",wt(Ot(c)),()=>[c.component?(y(),$(Ke(c.component),wt(ve({key:0},c.props)),null,16)):M("",!0)])]),_:2},1040))),128))]),_:3},16,["class"]))}}),B6={units:{type:[String,Object,Array]},unit:{type:String},appendWidth:{type:Number,default:100},withUnit:{type:Boolean,default:!0},format:{type:String},modelValue:{type:[String,Number]},selectProps:{type:Object}},$c=O({name:"XInputUnit",__name:"InputUnit",props:B6,emits:["update:modelValue","update:unit","change","unit-change"],setup(n,{expose:e,emit:t}){const r=n,i=t,o=T(()=>xo(r.units).map(f=>typeof f=="string"?{label:f,value:f}:f)),a=T(()=>{const f=o.value.map(v=>v.value);return r.unit&&f.push(r.unit),ru(f)}),s=B(),l=B(),u=f=>r.format&&f?Cg(Number(f)||0,r.format):f,c=f=>{if(!r.withUnit||typeof f!="string")return{value:u(f),unit:r.unit};for(const v of a.value){const g=new RegExp(`${v}$`);if(g.test(f))return{value:u(f.toString().replace(g,"")),unit:v}}return{value:u(f),unit:r.unit}},p=()=>{const f=u(l.value),v=s.value;return r.withUnit&&f&&v?`${f}${v}`:f};ce(()=>r.modelValue,f=>{const{value:v,unit:g}=c(f);s.value=g,l.value=v},{immediate:!0}),ce(l,f=>{i("change",f)});const h=async()=>{const{value:f,unit:v}=c(p());l.value=f,s.value=v,i("update:modelValue",p())},m=()=>{i("unit-change",s.value),h()};return e({parser:c,formatValue:u}),(f,v)=>(y(),$(d(tt),{modelValue:l.value,"onUpdate:modelValue":v[1]||(v[1]=g=>l.value=g),modelModifiers:{trim:!0},class:"x-input-unit",onChange:h},Jt({_:2},[o.value.length?{name:"append",fn:S(()=>[w(d(no),ve({class:"x-input-unit__unit",modelValue:s.value,"onUpdate:modelValue":v[0]||(v[0]=g=>s.value=g),size:f.$attrs.size,style:{width:`${r.appendWidth}px`}},f.$props.selectProps,{onChange:m}),{default:S(()=>[(y(!0),R(ne,null,oe(o.value,g=>(y(),$(d(ro),{key:g.value,label:g.label,value:g.value},null,8,["label","value"]))),128))]),_:1},16,["modelValue","size","style"])]),key:"0"}:{name:"suffix",fn:S(()=>[s.value?(y(),R("div",{key:0,class:"x-input-unit__unit"},[I("span",null,ee(s.value),1)])):M("",!0)]),key:"1"}]),1032,["modelValue"]))}});/**!
73
+ * Copyright (c) 2024, VTJ.PRO All rights reserved.
74
+ * @name @vtj/renderer
75
+ * @author CHC chenhuachun1549@dingtalk.com
76
+ * @version 0.7.15
77
+ * @license <a href="https://vtj.pro/license.html">MIT License</a>
78
+ */const Dn="0.7.15";var qe=(n=>(n.Runtime="Runtime",n.Design="Design",n.Raw="Raw",n.VNode="VNode",n))(qe||{});const gs=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],z6=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted","errorCaptured","renderTracked","renderTriggered","activated","deactivated"],O6=["vIf","vShow","vModel","vFor","vBind"],jc={String,Number,Boolean,Array,Object,Function,Date};function lr(n,e){return n.map(t=>jg(t)?t:`${e}${t}`)}function Vc(n){return/\.css$/.test(n)}function Ec(n){return/\.js$/.test(n)}function ys(n){return n.map(e=>`<script src="${On.append(e,{v:Dn})}"><\/script>`).join("")}function D6(n=[]){return n.map(e=>`<link rel="stylesheet" href="${On.append(e,{v:Dn})}" />`).join("")}function Cc(n,e){const t=n.filter(c=>!!c.enabled),r=[],i=[],o=[],a=[],s={},l=[],u={};return t.forEach(({urls:c,assetsUrl:p,library:h,assetsLibrary:m})=>{c?.forEach(f=>{Ec(f)&&r.push(f),Vc(f)&&i.push(f)}),h&&(a.push(h),s[h]=lr(c||[],e)),p&&o.push(p),m&&l.push(m),h&&m&&(u[m]=h)}),{scripts:lr(r,e),css:lr(i,e),materials:lr(o,e),libraryExports:a,materialExports:ru(l),materialMapLibrary:u,libraryMap:s}}function qi(n,e){const{name:t,parent:r,alias:i}=n;return r?e[r]?.[i||t]:e[i||t]}function Ac(n){return yn(n)?n:JSON.stringify(n)}function Tc(n,e,t){const r=n.CSSStyleSheet;if(r.prototype.replaceSync){const i=new r;i.id=e,i.replaceSync(t);const o=n.document,a=o.adoptedStyleSheets,s=Array.from(a).filter(l=>l.id!==e);o.adoptedStyleSheets=[...s,i]}else{const i=n.document;let o=i.getElementById(e);o?o.innerHTML=t:(o=i.createElement("style"),o.id=e,o.innerHTML=t,i.head.appendChild(o))}}async function I6(n,e){const t=await window.fetch(e).then(r=>r.text()).catch(()=>"");t&&Tc(window,n,t)}function M6(n){return In(n)||In(n?.install)}function Dt(n,e,t=!1,r=!1){try{const i=['"use strict";',"var __self = arguments[0];"];i.push("return ");let o=(n.value||"").trim();o=o.replace(/this(\W|$)/g,(s,l)=>`__self${l}`),o=i.join(`
79
+ `)+o;const a=`with(${t?"{}":"$scope || {}"}) { ${o} }`;return new Function("$scope",a)(e)}catch(i){if(Ye.error("parseExpression.error",i,n,e?.__self??e),r)throw i}}function Wi(n,e,t=!1,r=!1){const i=Dt(n,e,t,r);if(typeof i!="function"&&(Ye.error("parseFunction.error","not a function",n,e?.__self??e),r))throw new Error(`"${n.value}" not a function`);return i}function Re(n){return n&&n.type==="JSExpression"}function Yn(n){return typeof n=="object"&&n&&n.type==="JSFunction"}function R6(n){return Re(n)||Yn(n)}function mn(n){return R6(n)?n.value:JSON.stringify(n)}let tn=null;const P6=hc({settings:{type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:n=>n.data?.code===0||!!n.data?.success,failMessage:!0,showError:n=>{Wt.error({message:n||"未知错误"})},showLoading:()=>{tn&&tn.close(),tn=As.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.05)"})},hideLoading:()=>{tn&&(tn.close(),tn=null)}}});function N6(n,e){const{jsonp:t,request:r}=e;if(n.method==="jsonp")return(i={})=>t(n.url,{...n.jsonpOptions,query:i});{const i=n.headers?Dt(n.headers,{},!0):void 0,o={url:n.url,method:n.method,settings:{...n.settings,headers:i}};return(a,s)=>r.send(ct(o,s||{},{data:a}))}}function Bc(n=[],e){return n.reduce((t,r)=>(t[r.id]=N6(r,e),t),{})}class F6{__id=null;__mode;__instance=null;__contextRefs={};__refs={};context={};state={};$props={};$refs={};$el=null;$emit=null;$nextTick=null;$parent=null;$root=null;$attrs=null;$slots=null;$watch=null;$options=null;$forceUpdate=null;$components={};$libs={};$apis={};__transform={};constructor(e){const{mode:t,dsl:r,attrs:i}=e;this.__mode=t,r&&(this.__id=r.id||null,this.__transform=r.transform||{}),i&&Object.assign(this,i)}setup(e,t=Br){const r=t.getCurrentInstance();if(!r)return;this.__instance=r.proxy;const i=r.appContext.config.globalProperties;Object.assign(this,i),Object.assign(this,e||{}),this.__proxy(),t.onMounted(()=>{this.__proxy()}),t.onUnmounted(()=>{this.__cleanup()})}__proxy(){this.__instance&&gs.forEach(e=>{this[e]=this.__instance?.[e]})}__cleanup(){gs.forEach(e=>{this[e]=null})}__parseFunction(e){if(e)if(this.__mode===qe.Runtime){const{id:t,type:r}=e,i=t?this.__transform[t]??e.value:e.value;return Wi({type:r,value:i},this)}else return Wi(e,this)}__parseExpression(e){if(e)if(this.__mode===qe.Runtime){const{id:t,type:r}=e,i=t?this.__transform[t]??e.value:e.value;return Dt({type:r,value:i},this)}else return Dt(e,this)}__ref(e=null,t){if(this.__mode!==qe.VNode)return e&&e!==this.__id&&(this.__contextRefs[e]=this),r=>{let i=r?.$vtjEl||r?.$el||r;if(!i){typeof t=="string"&&(delete this.$refs[t],e&&delete this.__refs[e]);return}if(i.__vtj__=e,i.nodeType===3&&i.nextSibling&&(i=i.nextSibling),qe.Design===this.__mode&&(i.__context__=this),e&&(this.__refs[e]=r),typeof t=="function")t(r);else if(t){const o=this.$refs[t];if(o){const a=new Set([].concat(o,r));this.$refs[t]=Array.from(a)}else this.$refs[t]=r}return r}}__clone(e={}){const t={...this.context,...e},r={...t,context:t};return r.context.__proto__=this.context,r.__proto__=this,r}}function Po(n){const{Vue:e=Br,mode:t=qe.Runtime,components:r={},libs:i={},apis:o={},loader:a}=n,s=e.computed(()=>n.dsl),l={$components:r,$libs:i,$apis:o},u=new F6({mode:t,dsl:s.value,attrs:l}),c=e.defineComponent({name:s.value.name,props:{...H6(s.value.props??[],u)},setup(p){u.$props=p,s.value.id&&Tc(n.window||window,s.value.id,s.value.css||""),u.state=L6(e,s.value.state??{},u);const h=U6(e,s.value.computed??{},u),m=J6(s.value.methods??{},u),f=q6(e,s.value.inject,u),v=W6(s.value.dataSources||{},u),g={...f,...h,...m,...v};return u.setup(g,e),K6(e,s.value.watch??[],u),{vtj:u}},emits:[...s.value.emits??[]],expose:["vtj"],render(){if(!s.value.nodes)return null;const p=s.value.nodes||[];return p.length===1?Er(p[0],u,e,a):p.map(h=>Er(h,u,e,a))},...Y6(s.value.lifeCycles??{},u)});return{renderer:e.markRaw(c),context:u}}function H6(n=[],e){const t=r=>r?(Array.isArray(r)?r:[r]).map(i=>jc[i]):void 0;return n.map(r=>yn(r)?{name:r}:{name:r.name,type:r.type,required:r.required,default:Re(r.default)?e.__parseExpression(r.default):r.default}).reduce((r,i)=>(r[i.name]={type:t(i.type),required:i.required,default:i.default},r),{})}function L6(n,e,t){return n.reactive(Object.keys(e||{}).reduce((r,i)=>{let o=e[i];return Re(o)?o=t.__parseExpression(o):Yn(o)&&(o=t.__parseFunction(o)),r[i]=o,r},{}))}function U6(n,e,t){return Object.entries(e??{}).reduce((r,[i,o])=>(r[i]=n.computed(t.__parseFunction(o)),r),{})}function J6(n,e){return Object.entries(n??{}).reduce((t,[r,i])=>(t[r]=e.__parseFunction(i),t),{})}function q6(n,e=[],t){return e.reduce((r,i)=>{const{name:o,from:a}=i||{};i.default;const s=Re(a)?t.__parseExpression(a)||o:a??o,l=Re(i.default)?t.__parseExpression(i.default):i.default??null;return r[o]=n.inject(s,l),r},{})}function W6(n,e){return Object.keys(n).reduce((t,r)=>{const i=n[r],o=e.$apis[i.ref],a=Yn(i.transform)?i.transform.value?e.__parseFunction(i.transform):void 0:i.transform;return t[r]=async(...s)=>{const l=await o.apply(e,s);return a?a(l):l},t},{})}function K6(n,e=[],t){e.forEach(r=>{n.watch(t.__parseExpression(r.source),t.__parseFunction(r.handler),{deep:r.deep,immediate:r.immediate})})}function Y6(n,e){return Object.entries(n??{}).reduce((t,[r,i])=>(t[r]=e.__parseFunction(i),t),{})}const G6=n=>n;function No(n){const{getDsl:e,options:t}=n;return(r,i,o=Br)=>!i||typeof i=="string"?r:i.type==="Schema"?o.defineAsyncComponent(async()=>{const a=await e(i.id);return a?Po({...t,Vue:o,dsl:a,mode:qe.Runtime,loader:No(n)}).renderer:null}):r}function Er(n,e,t=Br,r=G6){if(!n||!n.name||n.invisible)return null;const{id:i=null,directives:o=[]}=n,{vIf:a,vFor:s,vShow:l,vModels:u,vBind:c}=Z6(o);if(a&&!X6(a,e))return null;const p=h=>{const m=h.$components,f=(()=>{if(n.name==="component")return Q6(h,n.props?.is);if(n.name==="slot")return n.name;const b=r(n.name,n.from,t);return yn(b)?m[b]??b:b})(),v=ew(i,n.props??{},h),g=tw(t,n.events??{},h);if(n.name==="slot")return nw(t,n,v,h);c&&Object.assign(v,h.__parseExpression(c.value)),l&&(v.style=Object.assign(v.style??{},iw(l,h))),u.forEach(b=>{Object.assign(v,ow(t,b,h))});const k=aw(t,n.children??[],h,n);return t.createVNode(f,{...v,...g},k)};return s?uw(s,p,e):p(e)}function Z6(n=[]){const e=n.find(s=>Ht(s.name)==="vIf"),t=n.find(s=>Ht(s.name)==="vFor"),r=n.find(s=>Ht(s.name)==="vShow"),i=n.find(s=>Ht(s.name)==="vBind"),o=n.filter(s=>Ht(s.name)==="vModel"),a=n.filter(s=>!O6.includes(Ht(s.name)));return{vIf:e,vFor:t,vShow:r,vModels:o,vBind:i,others:a}}function X6(n,e){return!!e.__parseExpression(n.value)}function Q6(n,e){return e?Re(e)?n.__parseExpression(e):e:"div"}function ew(n,e,t){const r=Object.keys(e||{}).reduce((i,o)=>{let a=e[o];return Re(a)?a=t.__parseExpression(a):Yn(a)&&(a=t.__parseFunction(a)),i[o]=a,i},{});return r.ref=t.__ref(n,r.ref),r}function tw(n,e,t){const r=["passive","capture","once"],i={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(e||{}).reduce((o,a)=>{const s=e[a],l=zc(s.modifiers),u=l.find(h=>r.includes(h)),c="on"+yo(a)+(u&&i[u]||""),p=t.__parseFunction(s.handler);return p&&(o[c]=n.withModifiers(p,l)),o},{})}function zc(n={},e=!1){const t=Object.keys(n);return e?t.map(r=>"."+r):t}function nw(n,e,t,r){const{children:i}=e,o=rw(e,r),a=r.$slots?.[o.name];return a?a(t):i?yn(i)?n.createTextVNode(i):Re(i)?n.createTextVNode(Ac(r.__parseExpression(i))):Array.isArray(i)?i.map(s=>Er(s,r,n)):null:null}function rw(n,e){const{props:t}=n,r=t?.name||"default";return{name:Re(r)?e.__parseExpression(r):r,params:[]}}function iw(n,e){return e.__parseExpression(n.value)?{}:{display:"none"}}function ow(n,e,t){const r={type:"JSFunction",value:e.value?.value?`(v) => {
80
+ ${e.value.value} = v;
81
+ }`:"(v) => {}"},i=t.__parseFunction(r),o=zc(e.modifiers),a=Re(e.arg)?t.__parseExpression(e.arg):e.arg||"modelValue";return{[a]:t.__parseExpression(e.value),[`onUpdate:${a}`]:o.length&&i?n.withModifiers(i,o):i}}function aw(n,e,t,r){if(!e)return null;if(yn(e))return{default:()=>e};if(Re(e))return{default:()=>Ac(t.__parseExpression(e))};if(Array.isArray(e)){const i=sw(e),o=a=>!a||!r?{}:r?.id&&Object.keys(a).length?{[`scope_${r.id}`]:a}:{};return Object.entries(i).reduce((a,[s,{nodes:l,params:u}])=>(a[s]=c=>{const p=u.length?Dg(c??{},u):o(c);return l.map(h=>Er(h,t.__clone(p),n))},a),{})}}function sw(n){const e={default:{params:[],nodes:[]}};for(const t of n){const r=lw(t.slot),i=r.name;e[i]?(e[i].nodes.push(t),e[i].params=e[i].params.concat(r.params)):e[i]={nodes:[t],params:r.params}}return e}function lw(n="default"){return yn(n)?{name:n,params:[]}:{params:[],...n}}function uw(n,e,t){const{value:r,iterator:i}=n,{item:o="item",index:a="index"}=i||{};let s=t.__parseExpression(r)||[];return Number.isInteger(s)&&(s=new Array(s).fill(!0).map((l,u)=>u+1)),Array.isArray(s)?s.map((l,u)=>e(t.__clone({[o]:l,[a]:u}))):(console.warn("[vForRender]:",`${r?.value} is not a Arrary`),[])}const bs=O({name:"VtjPageContainer",async setup(){const n=bw(),e=Md(),t=e.params.id,r=t?n.getPage(t):n.getHomepage(),i=r?await n.getRenderComponent(r.id):null;return r&&Od(r.title||"VTJ"),{provider:n,component:i,file:r,query:e.query}},render(){return this.component?Oe(this.component,this.query):Oe("div","页面不存在")}}),cw={name:{type:String,default:"VTJ.PRO"},tagline:{type:String,default:"基于 Vue3 + TypeScript 快速打造高生产力的低代码研发平台"},actionText:{type:String,default:"开始设计"},actionLink:{type:String,default:"/@vtj/pro/"}},dw={class:"x-startup"},pw={class:"x-startup__wrapper"},hw={class:"x-startup__name"},mw={class:"clip"},fw={class:"x-startup__tagline"},vw={class:"x-startup__actions"},gw=O({__name:"Startup",props:cw,setup(n){const e=n,t=()=>{if(typeof window<"u"){let r=(window.__VTJ_LINK__||{}).href||window.location.pathname+"@vtj/pro/#/";window.location.href=r}};return(r,i)=>(y(),R("div",dw,[I("div",pw,[I("div",hw,[I("span",mw,ee(e.name),1)]),I("div",fw,ee(e.tagline),1),I("div",vw,[w(d(Ce),{type:"primary",size:"large",round:"",icon:d(Bs),onClick:t},{default:S(()=>[de(ee(e.actionText),1)]),_:1},8,["icon"])])])]))}}),yw=O({name:"VtjStartupContainer",render(){return Oe(gw)}}),Oc=Symbol("Provider");class Dc extends So{mode;globals={};modules={};adapter={request:P6,jsonp:Db};apis={};dependencies={};materials={};library={};service;project=null;components={};router=null;materialPath="./";constructor(e){super();const{service:t,mode:r=qe.Raw,dependencies:i,materials:o,project:a={},adapter:s={},globals:l={},modules:u={},router:c=null,materialPath:p="./"}=e;this.mode=r,this.modules=u,this.service=t,this.router=c,this.materialPath=p,i&&(this.dependencies=i),o&&(this.materials=o),Object.assign(this.globals,l),Object.assign(this.adapter,s),r!==qe.Design&&this.load(a)}async load(e){const t=this.modules[`.vtj/projects/${e.id}.json`];if(this.project=t?await t():await this.service.init(e),!this.project)throw new Error("project is null");const{dependencies:r=[],apis:i}=this.project,{dependencies:o,library:a,components:s,materialPath:l}=this,{libraryExports:u,libraryMap:c,materials:p,materialExports:h,materialMapLibrary:m}=Cc(r,l);for(const v of u){const g=o[v],k=window[v];if(k)a[v]=k;else if(g)window[v]=a[v]=await g();else{const b=c[v]||[];for(const _ of b)Vc(_)&&await I6(v,On.append(_,{v:Dn})),Ec(_)&&await ps(On.append(_,{v:Dn})),a[v]=window[v]}}for(const v of p)await ps(On.append(v,{v:Dn}));const f=this.materials||{};for(const v of h){const g=window[m[v]],k=Rg[v];if(k)g&&k.forEach(b=>{s[b]=g[b]});else{const b=f[v]?(await f[v]()).default:window[v];b&&g&&(b.components||[]).forEach(_=>{s[_.name]=qi(_,g)})}}i&&(this.apis=Bc(i,this.adapter)),this.initRouter(),this.triggerReady()}initRouter(){const{router:e,project:t}=this;e&&(e.addRoute({path:"/page/:id",name:"VtjPage",component:bs}),e.addRoute({path:"/",name:"VtjHomepage",component:t?.homepage?bs:yw}))}install(e){const t=e.config.globalProperties.installed||{};for(const[r,i]of Object.entries(this.library))!t[r]&&M6(i)&&(e.use(i),t[r]=!0);e.provide(Oc,this),e.config.globalProperties.installed=t}getFile(e){const{blocks:t=[]}=this.project||{};return this.getPage(e)||t.find(r=>r.id===e)||null}getPage(e){const{pages:t=[]}=this.project||{},r=(i,o=[])=>{for(const a of o){if(a.id===i)return a;if(a.children&&a.children.length){const s=r(i,a.children);if(s)return s}}};return r(e,t)||null}getHomepage(){const{homepage:e}=this.project||{};return e?this.getPage(e):null}async getDsl(e){const t=this.modules[`.vtj/files/${e}.json`];return t?await t():this.service.getFile(e).catch(()=>null)}async getRenderComponent(e){const t=this.getFile(e);if(!t)return Ye.warn(`Can not find file: ${e}`),null;const r=`.vtj/vue/${e}.vue`,i=this.modules[r];if(i)return(await i())?.default;const o=await this.getDsl(t.id);if(!o)return Ye.warn(`Can not find dsl: ${e}`),null;const{library:a,components:s,mode:l,apis:u}=this,c={mode:l,Vue:a.Vue,components:s,libs:a,apis:u,window},p=No({getDsl:async m=>await this.getDsl(m)||null,options:c}),{renderer:h}=Po({...c,dsl:o,loader:p});return h}}function O_(n){const e=new Dc(n);return{provider:e,onReady:t=>e.ready(t)}}function bw(n={}){const e=An(Oc);if(!e)throw new Error("Can not find provider");if(e.mode===qe.Raw){const{id:t,version:r}=n;t&&r&&(async()=>{const i=await e.getDsl(t);i?.__VERSION__!==r&&Wt.warning({title:i?.name,message:"当前组件源码版本与运行时版本不一致,请重新发布组件"})})()}return e}const ww=new pc({settings:{type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:n=>n.data?.code===0,showError:n=>{Wt.error({message:n||"未知错误"})}}}),_w=(n="/vtj/local/repository/${type}.json")=>(e,t)=>ww.send({url:n,method:"post",query:{type:e},data:{type:e,data:t}});class xw{api;constructor(){this.api=_w()}async init(e){return console.log("BaseService.init",e),{}}async saveProject(e){return!!await this.api("saveProject",e).catch(()=>!1)}async saveMaterials(e,t){return console.log("BaseService.saveMaterials",e,t),!1}async saveFile(e){return console.log("BaseService.saveFile",e),!1}async getFile(e){return console.log("BaseService.getFile",e),{}}async removeFile(e){return console.log("BaseService.removeFile",e),!1}async saveHistory(e){return console.log("BaseService.saveHistory",e),!1}async removeHistory(e){return console.log("BaseService.removeHistory",e),!1}async getHistory(e){return console.log("BaseService.getHistory",e),{}}async getHistoryItem(e,t){return console.log("BaseService.getHistoryItem",e,t),{}}async saveHistoryItem(e,t){return console.log("BaseService.saveHistoryItem",e,t),!1}async removeHistoryItem(e,t){return console.log("BaseService.removeHistoryItem",e,t),!1}async publish(e){return!!await this.api("publish",e).catch(()=>!1)}async publishFile(e,t){return!!await this.api("publishFile",{project:e,file:t}).catch(()=>!1)}async genVueContent(e,t){return await this.api("genVueContent",{project:e,dsl:t}).catch(()=>"")}async createRawPage(e){return await this.api("createRawPage",e).catch(()=>"")}async removeRawPage(e){return await this.api("removeRawPage",e).catch(()=>"")}}new mc({type:"local",expired:0,prefix:"__VTJ_"});class D_ extends xw{async init(e){return await this.api("init",e).catch(()=>null)||{}}async saveProject(e){return!!await this.api("saveProject",e).catch(()=>!1)}async saveMaterials(e,t){return!!await this.api("saveMaterials",{project:e,materials:Og(t)}).catch(()=>!1)}async saveFile(e){return!!await this.api("saveFile",e).catch(()=>!1)}async getFile(e){return await this.api("getFile",e).catch(()=>null)||{}}async removeFile(e){return!!await this.api("removeFile",e).catch(()=>!1)}async saveHistory(e){return!!await this.api("saveHistory",e).catch(()=>!1)}async removeHistory(e){return!!await this.api("removeHistory",e).catch(()=>!1)}async getHistory(e){return await this.api("getHistory",e).catch(()=>null)||{}}async getHistoryItem(e,t){return await this.api("getHistoryItem",{fId:e,id:t}).catch(()=>null)||{}}async saveHistoryItem(e,t){return!!await this.api("saveHistoryItem",{fId:e,item:t}).catch(()=>!1)}async removeHistoryItem(e,t){return!!await this.api("removeHistoryItem",{fId:e,ids:t}).catch(()=>!1)}}/**!
82
+ * Copyright (c) 2024, VTJ.PRO All rights reserved.
83
+ * @name @vtj/designer
84
+ * @author CHC chenhuachun1549@dingtalk.com
85
+ * @version 0.7.15
86
+ * @license <a href="https://vtj.pro/license.html">MIT License</a>
87
+ */const Sw="0.7.15",ws={width:390,height:844},_s={width:1180,height:820},St=/^[A-Za-z_$][\w_-]*$/,kw=["click","dblclick","mouseenter","mouseleave","mousedown","mouseup","mouseover","contextmenu"],$w=["keydown","keyup","keypress"],jw=["GET","POST","PUT","PATCH","DELETE","JSONP"],Vw=["stop","prevent","capture","self","once","passive"];var it=(n=>(n.Block="block",n.Node="node",n))(it||{});const Fo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAQd0lEQVR4nO2dCXRVxRnHf/clIPsekBgIS1hFdqVoZbGLFNTWWgQ3bLVurRYJcTuntbW22qooKKWl2toWquygIFa01doqmBBWWcomIkhACLIKyXvcnu/eefiSNzd57y4vAfI/553wuPfNzJ3/nW9m/t83M4Yx6iTVGOlAC6AD0Bs4F2gGtFT/lmtNgLpABDgMFAN7gCJgH3AQ2ACsAz5V91RbpFfDguUAg4EewBCgLdAQqJXAb5sD7RyuHVGfpcBy4AOgADjkc/k9obq0kP7AN4CrgK7qrQ8aJrALeAt4Q/3dV7XVULWEtAauBq5ThNSpqoIo7AReBWYA/6mqQlQFId2AW4HRwHmpzjwBSMv5N/BHYAHwRSozTyUhQsS9iohGqcrUI1YDE4GXgROpyDAVhMiIKBe4I0V9QxCQgcCvgdeCzigUcPo/BN4HHjiNyRAMBBYBs4BOQWYUFCFdgIXA80DHgPKoCowE3gHuCirvIAj5AfAmcEUAaVcHZAJTgHlqjuQr/CREJm/PAH8G2pyWVZ0crlbzl8v8TNQvQrLVGP5en9I7XdBV9S0/9qu8fhDSC1isZI6zEaKjTQYe8aM+vSZwqeq8u5+lZMTiYeA5oLaXRLwQMhSYe5b0F4niR8BUL6S4VXsvAWYCGZ6Kf2bi+8oVcDuQ9KzbTQvpqQS4GjKcIVrdU25+mCwhbZWuk+WhsGcLxgEPJvusyRAi84xpNR14UhD9a1QyP0iGkEeBQcGV/YyE1O+zwPnJ/CARSEc1NrBin9kQtftFoHEiT5kIIeLj/s3ZXqsecSHwUCJJVEZIGjAJaFXVT3QG4D7ga5U9RmWEiHI7/GyvSZ8QUkPhhhUlVxEhLZUcUAP/ILFld7slJK9GFgkEuRXEjjkSIh6/O0+fZzyt0EK5tLVwIiSvMltXA0+4yWluoiOkqwrVqUFwqA/ckygholI2SCUZZhjM4/bflOYrn1IwT4AZSW3eSlLpUP4/yxPSKtWtwyyBnPPgioHQtpX93Zd0TVXZEbviddcJQ59OMHwAZDTxL+8EIWFRN5a/tTwh31UxtymBtIrhF8GiBwwWPmDw2oMGg3t5rxghIi0NLugAbcRJUKoIiEUYbhwCrz9k57sgz6BvZ7u1pBBjlPk6hdjIRSHnXeV8ChzmF3DlJfDyWIP653yZ28ZP4dKHTfYdBCPNHRndsuGpmwwGdYNjJ2DiYpMnFtheI8OwTWPnLCh43KBR3S9/u/0z+N4Ek8KNYKQu9PvbKkDEQmwL6QP0S0UJhIxhA2D6PWXJEHTNhN7t7Tc46XQj0KQRzBhrMLwPNKgDLRvDY9cZfFOeLtrywjC0B2XIELTLgNm5Br072603RRgZm00sIcNSsSRAyBjSF6b/xIirEMHRE7D7gEtfZhiG9YGe2fGXLuwY41A1oOhzfRLtW8LMcQbnd0wZKd9UC40shGL+Xhl0zkLGwJ4w816D5g7juKlvwbqPwEhkvVRs2thPcfWFhvb62h02ERZqw+vL4e//1afVuTXMGW/QpV1KSMmIDaGKEtI+GSeKGwgZ/brZZLR08AzMWgY/e8l03TqyW8PXesRf2roH3t3w5aI46UdKwnDnVJNXC/XJiemcPd4gp03gpMhr8tXol+ijDwly7iFk9Opiv3VtmuvvmZsPtzxnWp2wm85cCBnRB5pr9IXFK2F/sXImKBjpcOQY3DTJ5LWV+iQvaGOTkp0Z+Ojr8mjoUJSQnkHlJG9X9xyYO96wOk0dFq6AHzxncvS4XVFJ52FCWh24+qJ4cxU5Ca8WmpZNK39VzOKhIzDmWZO31+nT7t0OZuUaZGYESkrbaOB2SMVmBeIrlwfo0h7mjTfo6ODikrdzzCSTw8eS7zdOIQzd28JXNCs3pO94f6PzGl6jNhQfhOsnmrz3P/09F+XAy7kGGc0CmzzWV2tQLEJaqD7EVwgZHdvA/DyDLpn6lN9aCzc/a/L5YfdkWJ15BIb1soe55TEv3+SYpF9BvySkFO2D6yeZrNyuv2dQV3hpnEHTRvZcJwB0jRIieko9X8kogQ5ZMC/PoJvDss531sMNE032H7QrxDVOQq168F2NuZIh9PyCsn2HE4xzYMduuPZpk3U79Td9vQdMG2vQqF4gpAgPTUPKi+XWWMRByDivpW13ezosZ/lgC9w4yWRvsUcysGWRAZ3UPKMclm6CDTsSD5gVUrbssEnZskd/jwwc/ibqQl3fSZGl4e1DakWQLxAyWjW3Z7v9HIygmIRRT5vs2mtXgBdE9SmZe6RpTJKYq8gJe5ibKEQyWb8NrnnS5KPP9D/6dn948W6DunV8JUVc5i1Dfi3GFDKaNYaX7zUY2Fl/z4ZdMPoZk493eyfDwklo2Bgu7x1/af8ReH1VYuaqPISUNZvhe0+ZfLJff8/Ir8Cff2xwTm3f3AZS0mYhxYwnCBkNG9id3lCH6aWYgJETTDZ97BMZ2Obqki5o+6klq2H7LveDBaMurNhoi427HWSW0RfDCz8ySE/3hRSplcyQ2lXHNaQg9evB9LEGlzvMZiwV9SmTddv8U1Etc2XYc4+QxiTN+cB0sRigLISU/HU2KZ85bFFz46Uw9Q5FijcnV3qUkBZuUzBPQnoaTLnd4CoHnViavDzQ6s0+S9oRaJkBwzXm6qO98M46f/Y6ElLeXwM3PGty4Kj+nluGwiOjDatMcX6X5HCutz6kFAb1gDEO08pPDyj/woYA/Aul8PULIEsjxSxaAcX73c36dRBS3iyAMZNNDjvsfJI7Avp2scvlAVYfohHBE0QELu+lH8KImbr2GdNq8ob7HLSw3sJaemW3NAxzlml0Eq+oA4veh9ummhQfiU+rTi3VWr2ZrXohT0mY0NbB4P1qnsl7+f6TYSEM7VrDEM0AYvUOyN/i/9Zs1tC5Dsx8A/70tv6erOae34JwyNOWdwbscNjyK3eEQe+eAUnXYfttbKFRdhcWmhw/7FIxrgzH4VuD4Iav6u/bVeytA5Hd7UJqj0J3SIf5+SZhTRvrrqSTCzra8rtfkIGEKLvXDIh/G4+VJC6VJAt5hqF9Ydo9BplN4398vNTuuzzm/VlIbRjpDrVg2Qb45Vz9myHu0Hn3++wOVcruAI2y+98N8OF2/82VkHFJT5hRgafzyYWwcpMnEUoq8dOQ2r3TFSy7mgaPzoDHFuhTyGkF8+4z6OqXOzSCNcQuHxwhmP2BaanMFSm7yULI6NvV1uacPJ3P/xMemWladZGMTFMO4m3ZJUV3EAcSg/XwafDT6SYTF+t/Ij7q+fcbdMn2RoqYqzoN4Dua0dWeg7BkjZ8yqU1Gz072C6UzU4KX3oO7nzeJRDz3WzJg3ivV6SAMJA4piGlA3l9MJr+h/5n4qOfeZ9C5rQdSSuGiTtBHI1z+60PYUeRf/2F5OjvaZc52GEnOWQa3TTEt/7wPcx5pIQdCapNhzxBSIibkvmjygsOw8PwsmDXesHwlrtyhJlzV31nZlf7Fg8n4Mpvj0Dkb5uYZlsnVQYIjbplicsyl21mD9SJshNSOzw6iQHIQUkojcPcfTaY5bLTaKxvm5CUfOCA6UcMmcEXf+Gtbimzvox/mSsjIaav6PQfHxOJVth/+8FEPbud4iMHdGfJ7+20h5UQp3PUHk9nL9Pf0aWcHo2W1SoKUsK3sdtJEHr+yHD53G1wXAylL+yw70uR8h70qpJ+6aaLJwSO+kiEQV1pJdGK41M+UpQlLBMmtk00WOsQ9DciBmbkG52YkGDhgwKiB8cqutMgFBfaw24u5EjKyzrXNVG9N5KPg3xtst3PxId/JKFVbn596p1b4mrwKsREhTpq2NfrR4OLOtkOrRdOKSRGJP7OV6Gbx11Zth8Jt3syV5enMgFnjDKv16rB0M4yaYLLvcx/czvGQAwM+JIaQpZ5lMQ2EFIkokbfqPxv19wzpDjPGGTRpXIE7NGJHJLbWDD1fKTD54rB7cyVkNG1im1AnT6fldp5gsmd/IGQIlkUVk+hjFHiZIFYEeYB9B2w/+vJt+hulsl8aa9CgfjwplrKbbo+uyuPIcZi/3B7qurFWklcD8XT+xGBwN/0963fans5Pinz0dMbj1Lg0SsghdTpAIJAH2b3XJuXDT/Q5fKt3DCmxbTUCHVrDZRplV2z6+iSiSmIhZrBeXTsKf5jGyYUavUkEytZPAl0vIkrfv6JfYhv6PwLLUgUObFNv26bd+nuu7AeTbzVID8V43kTZ7QPNNBrSPHHTliTfmVuhp2nwu9sMK4JEB/HnjJQYra2BL96ReeDa6JdYQpaoIXBgkAfbuN1+67Y5SJo3D4b+nWKWoaVLKKeDVLLWpZBYCiP6w/cH6y+LS0HKuGpTQP6cspgZ23/HElKsdhgNFEKK+NdHTzLZ6aCi1a6ltE/DLuqWong1WUJ8dha5JOSkPUHVQRYLSUhpQRBu53gcjV3OhmZsMt2zVzgByIMWrFeklPPGyIx7xRZ7GGu1i3T4wxLKBELvPwwTF6m5h5sCpMGba+wJbCyk1V03yeS9tSlbYyh9R5nxZ5rR4+ex33eqLYQc3h//IJNHiaV9ax00bWBw0oRFhTDur2UXfIqafPQYvFIIoZBhEZg3zSR/o/shqKS9cw98XAz9OthL6wq22v7yd9ekdMHneGBzmbJpzg8ZpXYdTQmsCWEte3Hm3gO2qdKJddbIy1RtOux9PmD1T6XQvb3tSFu+FfbsC2yeoUOhWvFcRjzSEVJXTVQCW8RTHlblnLQru6IRU3Tk5YeieyrNUpV3ekB+eGfcDPyt/FXd/FbGxRNSWTKpYCMBb5t1n8/hPaImyDwpxWTIUUpzdBecBIeZUbGrBoHgcYnJSIYQsWu/CELfqoGliMx2qoaKJLl/qGPjauAfpMf6WUV7wlemkcrOZw7LVmrgAhPVgMkRlRGytWYjTN8gXqHHKkssES/C8zWmyzPCamfwSiN8EiEkorY23VT1z3Xa4qfquL1KkaifbZfapTR1mxadOZiTzLwuGcfn20p7qUHiWKlOcEt4BWKynugp6tiKGlSObUoX3JtMXbkJDXhYEVMDZxSpzUQ3J1tHbkPLZMTwlxpCtNinDu0vcPNjt4SE1XHcf3L5+zMV0jKuTXREpYOX4MsSNfJ6+myt/XKQSfR3YkN63MDr0pawGnkldHrMGYxCdc6KZ4Xcr7VGv1F2M9ColWoKOfR+hF8TZz+P756htprN9zHN6oxSdU7hdZ7WaZaD3wfcS6TUN1SLOZN9KavVxpW/dXO8akXwmxBUWOpDyqauCiD9qkSJImGo187bCUEQEsUSdbz3A3426SrEEhUiJWbqQFDFCJIQgewK8oTacfN36vvpBmnl10s8uCyFD7rsujCgINFDnTl+bex+59UUMtP+vQr40AYkBIFUExKFbFl5gzqLKacqCuCAQ6pveEGZqNQe8VKFhEQhiwwuA66RXVj93JAzCRxTSwJmqWBzX5aJu0VVExILWZ4vCwQuVvY6M9EDfZNERAmABao1vKP6iWpREdWJkFjUUgHfMhjopD79Vb9TW20YWdlChOPK5JSoRflr1NLjfDVfcr8LUoDwed8c3yCzYFmUIB9BM3U6prQi+UjrkY9s4CnXZGdu0dWkD5CwJZFwxO0sw20JLJCFdPIJfKmFJwD/B4g2wB0X86iqAAAAAElFTkSuQmCC",Ew=["title","src"],Cw={key:1},Aw=O({name:"LogoWidget",inheritAttrs:!1,__name:"index",props:{icon:{default:Fo},text:{default:"VTJ"},link:{}},setup(n){const e=n,t=()=>{e.link&&(location.href=e.link)};return(r,i)=>(y(),R("div",{class:"v-logo-widget",onClick:t},[e.icon?(y(),R("img",{key:0,title:e.text,class:"v-logo-widget__icon",src:e.icon},null,8,Ew)):(y(),R("span",Cw,ee(e.text),1))]))}}),Tw={class:"v-empty-widget"},Bw=O({name:"EmptyWidget",__name:"index",setup(n){return(e,t)=>(y(),R("div",Tw,"EmptyWidget"))}});function Ic(){const n=He(),e=T(()=>n.project.value?.dependencies??[]);return{engine:n,dependencies:e}}function Mt(n,e){const t=T(()=>Lc.getWidgets(d(n),d(e)).filter(i=>!i.invisible)),r=B();return{widgets:t,widgetsRef:r}}function Mc(){const n=He();return{span:T(()=>{const e=n.skeleton?.skeletonRef.leftWidth||400,t=Math.min(Math.floor((e-50)/120),24);return Math.floor(24/t)}),engine:n}}function zw(){const n=He(),e=T(()=>n.project.value?.blocks??[]);return{engine:n,blocks:e}}const Ow=(n=[])=>n.map(e=>e.name);function Dw(){const n=He(),{components:e,groups:t,componentMap:r}=n.assets,i=qt({}),o=T(()=>{const p={};return t.value&&t.value.forEach(h=>{p[h.name]=h}),p}),a=T(()=>t.value?t.value.map(p=>({label:`${p.label} (${p.count})`,name:p.name,disabled:!p.children?.length})):[]),s=B(a.value[0]?.name),l=B(""),u=T(()=>o.value[s.value]);$s(()=>{const p=a.value.reduce((h,m)=>(h[m.name]=Ow(o.value[m.name].children),h),{});Object.assign(i,p)});const c=T(()=>{const p=l.value.toLowerCase();return!p||!e?[]:e.filter(h=>h.name.toLowerCase().includes(p)||h.label?.toLowerCase().includes(p))});return{components:e,groups:t,componentMap:r,groupMap:o,tabs:a,model:i,currentTab:s,currentGroup:u,searchKey:l,searchResult:c}}function Pe(){const n=He(),e=T(()=>n.current.value),t=T(()=>n.context.value),r=T(()=>n.isEmptyCurrent.value);return{engine:n,current:e,isEmpty:r,context:t}}function Iw(n,e){const t=He();t.simulator.init(n,e);const r=T(()=>t.simulator.designer.value),i=T(()=>di("hover",r.value?.hover.value)),o=T(()=>di("dropping",r.value?.dropping.value)),a=T(()=>di("selected",r.value?.selected.value));return ce(t.changed,()=>{r.value?.updateRect()}),{designer:r,dropping:o,hover:i,selected:a}}function Mw(n,e=!0){const{top:t,height:r,width:i,left:o}=n||{};if(r>100&&i>200)return"inner";let a,s;return s=t>30?"top":"bottom",a=e||o<300&&i<300?"left":"right",[a,s].join("-")}function Rw(n){const{rect:e,type:t}=n,{left:r,width:i,top:o,height:a}=e,s={left:r,width:i,top:o,height:a};switch(t){case"left":s.left=0,s.width=0;break;case"right":s.left=s.left+s.width-4,s.width=0;break;case"bottom":s.top=s.top+s.height-4,s.height=0;break;case"top":s.height=0;break}return s}function di(n,e){if(!e)return null;const{left:t,top:r,width:i,height:o}=n==="dropping"?Rw(e):e.rect,a={left:`${t}px`,top:`${r}px`,width:`${i}px`,height:`${o}px`,visibility:i||o?"visible":"hidden"};return{...e,style:a,position:Mw(e.rect,n!=="selected")}}function vt(){const n=He(),e=T(()=>n.simulator.designer.value),t=T(()=>e.value?.selected.value),r=T(()=>$e(t.value?.model));return{engine:n,designer:e,selected:t,isSelectBlock:r}}function Pw(n,e){const t=B(""),{selected:r,isSelectBlock:i}=vt(),o=T(()=>r.value?.model.id),a=T(()=>{const l=mi(n),u=mi(e),c=[];if(!l)return c;const p=u?.__contextRefs[o.value||""],h=u===p||i.value?[]:Object.keys(p?.context||{}).filter(V=>!["context","ref"].includes(V)).map(V=>`this.context.${V}`);h.length&&c.push({title:"上下文",items:h});const m=l.inject.map(V=>`this.${V.name}`);m.length&&c.push({title:"注入",items:m});const f=l.props.map(V=>typeof V=="string"?`this.$props.${V}`:`this.$props.${V.name}`);f.length&&c.push({title:"属性",items:f});const v=Object.keys(l.state).map(V=>`this.state.${V}`);v.length&&c.push({title:"状态",items:v});const g=Object.keys(l.computed).map(V=>`this.${V}.value`);g.length&&c.push({title:"计算属性",items:g});const k=Object.keys(l.methods).map(V=>`this.${V}`);k.length&&c.push({title:"方法",items:k});const b=Object.keys(l.dataSources).map(V=>`this.${V}`);b.length&&c.push({title:"数据源",items:b});const _=Object.keys(u?.$refs||{}).map(V=>`this.$refs.${V}`);return _.length&&c.push({title:"refs",items:_}),c}),s=T(()=>{if(!t.value)return a.value;const l=t.value.toLowerCase(),u=[];return a.value.forEach(c=>{const p=c.items.filter(h=>h.toLowerCase().includes(l));p.length&&u.push({title:c.title,items:p})}),u});return{keyword:t,options:a,searchResult:s}}const ur=[{name:"StringSetter",label:"文本"},{name:"ExpressionSetter",label:"表达式"}];function Nw(n){const e=He(),t=T(()=>{const l=n.value?.model||null;return $e(l)?null:l}),r=B();ce(t,async l=>{l?.from?r.value=await e.assets.getBlockMaterial(l.from)||void 0:r.value=void 0},{immediate:!0});const i=T(()=>t.value?[{name:"key",setters:ur,value:t.value.getPropValue("key")},{name:"ref",setters:ur,value:t.value.getPropValue("ref")},{name:"class",label:"class",setters:ur,value:t.value.getPropValue("class")},{name:"children",label:"文本",title:"如设置组件文本,将清空子组件",setters:ur,value:Array.isArray(t.value.children)?"":t.value.children}]:[]),o=T(()=>{if(!t.value)return[];const l=r.value||e.assets.componentMap.get(t.value.name);return l?(l.props||[]).map(u=>({...u,value:t.value?.getPropValue(u.name)??u.defaultValue})):[]}),a=l=>i.value.some(u=>u.name===l)||o.value.some(u=>u.name===l)||l==="style",s=T(()=>t.value?Object.keys(t.value.props).filter(l=>!a(l)).map(l=>({name:l,setters:"InputSetter",value:t.value?.getPropValue(l)})):[]);return{commonProps:i,componentProps:o,customProps:s,node:t,change:(l,u)=>{t.value&&(l==="children"?t.value.setChildren(u):t.value.setProp(l,u))},addCustom:l=>{l&&t.value?.setProp(l,"")},removeCustom:l=>{t.value?.removeProp(l)},isExist:a}}function Ae(n,e="提示"){return Wt.warning({title:e,message:n})}async function _n(n){return await ao.confirm(n,"提示",{type:"warning"}).catch(()=>!1)}function Je(n,e="success"){return Tr({message:n,type:e})}function Me(n,e,t=!1){let r=!0;try{n.type==="JSExpression"?Dt(n,e,t,!0):Wi(n,e,t,!0)}catch(i){r=!1,Wt.error({title:"代码错误",message:i.message})}return r}function Rc(){const n=He(),e=T(()=>n.simulator.designer.value),t=T(()=>n.current.value?n.history.value:null),r=T(()=>t.value?.items.length||0),i=()=>{e.value?.cleanHelper(),t.value?.forward()},o=()=>{t.value?.backward(),e.value?.cleanHelper()},a=u=>{e.value?.cleanHelper(),t.value?.load(u),Je("已载入历史记录","success")},s=T(()=>r.value<=1?!0:(t.value?.index||-1)<=0),l=T(()=>r.value<=1?!0:(t.value?.index||-1)>=r.value-1);return{engine:n,history:t,total:r,forward:i,backward:o,load:a,forwardDisabled:s,backwardDisabled:l}}function Jr(){const n=He(),e=T(()=>n.project.value);return{engine:n,project:e}}function Fw(n){const e=He(),t=T(()=>{const s=n.value?.model||null;return!s||$e(s)?null:s}),r=B();ce(t,async s=>{s?.from?r.value=await e.assets.getBlockMaterial(s.from)||void 0:r.value=void 0});const i=T(()=>{if($e(t.value))return[];const s=t.value?.events||{};return kw.map(l=>({name:l,event:s[l]}))}),o=T(()=>{if($e(t.value))return[];const s=t.value?.events||{};return $w.map(l=>({name:l,event:s[l]}))}),a=T(()=>{if(!t.value||$e(t.value))return[];const s=t.value.events||{};return(r.value?.events||e.assets.componentMap.get(t.value.name)?.events||[]).map(l=>{const u=typeof l=="string"?l:l.name;return{name:u,event:s[u]}})});return{mouseEventList:i,keyboardEventList:o,componentEventList:a}}const Hw=(n,e)=>new rn({name:n,value:void 0,iterator:e}),Lw=(n="modelValue")=>new rn({name:"vModel",value:void 0,arg:n});function Uw(n){if(!n)return[];const{props:e=[],events:t=[]}=n;if(e.length&&t.length){const r=t.filter(i=>(typeof i=="string"?i:i.name).startsWith("update:")).map(i=>i=typeof i=="string"?i:i.name);return r.length?e.filter(i=>r.some(o=>o.includes(i.name))):[]}return[]}function Jw(n){const e=He(),t=T(()=>{const p=n.value?.model||null;return $e(p)?null:p}),r=p=>T(()=>t.value&&(t.value.directives||[]).find(h=>h.name===p)||Hw(p)),i=()=>T(()=>{if(!t.value)return[];const p=e.assets.componentMap.get(t.value.name||"");return(p?Uw(p):[]).map(h=>(t.value?.directives||[]).find(m=>m.name==="vModel"&&m.arg==h.name)||Lw(h.name))}),o=r("vIf"),a=r("vShow"),s=r("vBind"),l=r("vFor"),u=i(),c={vIf:o,vShow:a,vBind:s,vFor:l};return{engine:e,node:t,vIf:o,vShow:a,vBind:s,vFor:l,vModels:u,onValueChange:(p,h)=>{const m=c[p];t.value&&(h?(m.value.value=h,t.value.setDirective(m.value)):(m.value.value=void 0,t.value.removeDirective(m.value)))},onForChange:(p,h)=>{if(t.value){if(p==="value"){h?(l.value.value=h,t.value.setDirective(l.value)):t.value.removeDirective(l.value);return}(p==="item"||p==="index")&&(l.value.iterator={...l.value.iterator,[p]:h||void 0},t.value.setDirective(l.value))}},onModelChange:(p,h)=>{if(!t.value)return;const m=parseInt(p),f=u.value[m];f&&(h?(f.value=h,t.value.setDirective(f)):(f.value=void 0,t.value.removeDirective(f)))}}}function qw(){const{engine:n,project:e}=Jr(),t=T(()=>e.value?.apis||[]);return{engine:n,project:e,apis:t}}const Ww={class:"v-switcher-widget"},Kw={key:1},Yw=O({name:"SwitcherWidget",inheritAttrs:!1,__name:"index",emits:["click"],setup(n,{emit:e}){const t=e,{engine:r}=Pe(),i=T(()=>r.project.value?.name),o=T(()=>r.project.value?.currentFile?.title),a=()=>{t("click",r.project.value)};return(s,l)=>(y(),R("div",Ww,[w(d(Ce),{size:"small",round:"",onClick:a},{default:S(()=>[w(d(gu),{class:"v-switcher-widget__back"}),I("span",null,ee(i.value),1),o.value?(y(),$(d(Ar),{key:0,direction:"vertical"})):M("",!0),o.value?(y(),R("span",Kw,ee(o.value),1)):M("",!0)]),_:1})]))}}),Gw={class:"v-toolbar-widget"},Zw=O({name:"ToolbarWidget",inheritAttrs:!1,__name:"index",props:{preview:{type:Boolean}},setup(n,{expose:e}){const t=n,{forward:r,backward:i,forwardDisabled:o,backwardDisabled:a}=Rc(),s=B("pc");return e({mode:s}),(l,u)=>(y(),R("div",Gw,[w(d(io),{size:"small",modelValue:s.value,"onUpdate:modelValue":u[0]||(u[0]=c=>s.value=c)},{default:S(()=>[w(d(Bn),{label:"pc"},{default:S(()=>[w(d(ku))]),_:1}),w(d(Bn),{label:"mobile"},{default:S(()=>[w(d($u))]),_:1}),w(d(Bn),{label:"pad"},{default:S(()=>[w(d(ju))]),_:1})]),_:1},8,["modelValue"]),M("",!0),w(d(ud),null,{default:S(()=>[w(d(Ce),{type:"default",size:"small",onClick:d(i),disabled:d(a)||!!t.preview},{default:S(()=>[w(d(Cu))]),_:1},8,["onClick","disabled"]),w(d(Ce),{type:"default",size:"small",onClick:d(r),disabled:d(o)||!!t.preview},{default:S(()=>[w(d(Vu))]),_:1},8,["onClick","disabled"])]),_:1})]))}}),Xw={class:"v-actions-widget"},Qw=I("span",null,"发布",-1),e4=O({name:"ActionsWidget",inheritAttrs:!1,__name:"index",props:{coder:{type:Boolean,default:!0}},setup(n){const{engine:e,designer:t}=vt(),r=B(!1),i=()=>{e.current.value?(r.value?e.skeleton?.getWidget("Previewer")?.widgetRef.refresh():(t.value?.setSelected(null),e.simulator.refresh()),Je("刷新完成","success")):Je("请先打开文件","warning")},o=async()=>{e.current.value?(r.value&&(e.skeleton?.closePreview(),r.value=!1,await tu(1e3)),t.value?.setSelected(e.current.value)):Je("请先打开文件","warning")},a=()=>{if(e.project.value)if(e.current.value){if(r.value){e.skeleton?.closePreview(),r.value=!1;return}e.skeleton?.openPreview(""),r.value=!0}else Je("请先打开文件","warning")},s=()=>{const u=e.project.value;u&&(u.currentFile?u.publish(u.currentFile):Je("请先打开文件","warning"))},l=u=>{const c=e.project.value;c&&(u==="current"?s():c.publish())};return(u,c)=>(y(),R("div",Xw,[M("",!0),M("",!0),w(d(Ce),{onClick:a,type:r.value?"warning":"default",size:"small",title:"预览"},{default:S(()=>[w(d(xu))]),_:1},8,["type"]),w(d(Ce),{onClick:i,type:"default",size:"small",title:"刷新"},{default:S(()=>[w(d(Eu))]),_:1}),w(d(Ce),{type:"default",size:"small",title:"页面设置",onClick:o},{default:S(()=>[w(d(Tu))]),_:1}),w(d(Ar),{direction:"vertical"}),w(d(eo),{"split-button":"",type:"primary",size:"small",onClick:s,onCommand:l},{dropdown:S(()=>[w(d(Qi),null,{default:S(()=>[w(d(xr),{command:"current"},{default:S(()=>[de("发布页面")]),_:1}),w(d(xr),{command:"project"},{default:S(()=>[de("整站发布")]),_:1})]),_:1})]),default:S(()=>[Qw]),_:1})]))}}),t4={class:"v-icon-setter"},n4={class:"v-icon-setter__content"},r4={class:"v-icon-setter__list"},Pc=O({name:"IconSetter",__name:"icon",props:{modelValue:{default:""},size:{default:"small"}},emits:["change","update:modelValue"],setup(n,{emit:e}){const t=n,r=e,i=B(!1),o=B(t.modelValue),a=B(""),s=T(()=>Di[t.modelValue]||t.modelValue),l=T(()=>{const m=Object.entries(Di);return a.value?m.filter(f=>f[0].toLowerCase().includes(a.value)):m}),u=m=>{o.value=m},c=()=>{r("change",o.value),r("update:modelValue",o.value),i.value=!1},p=()=>{o.value="",r("change",""),r("update:modelValue",""),i.value=!1},h=()=>{i.value=!0};return(m,f)=>(y(),R("div",t4,[w(d(tt),{size:t.size,readonly:"",placeholder:"请选择图标","model-value":t.modelValue,"suffix-icon":d(zs),onFocus:h},{prepend:S(()=>[w(d(rt),{icon:s.value},null,8,["icon"])]),_:1},8,["size","model-value","suffix-icon"]),i.value?(y(),$(d(Zt),{key:0,title:"图标选择器",width:"1000px",height:"600px",cancel:"",submit:"",clear:"",modelValue:i.value,"onUpdate:modelValue":f[1]||(f[1]=v=>i.value=v),onSubmit:c},{extra:S(()=>[w(d(Ce),{size:"default",type:"warning",onClick:p},{default:S(()=>[de(" 清除绑定 ")]),_:1})]),default:S(()=>[I("div",n4,[w(d(tt),{size:t.size,"prefix-icon":d(Os),clearable:"",modelValue:a.value,"onUpdate:modelValue":f[0]||(f[0]=v=>a.value=v),placeholder:"请输入查询关键字"},null,8,["size","prefix-icon","modelValue"]),I("div",r4,[(y(!0),R(ne,null,oe(l.value,v=>(y(),$(d(rt),{icon:v[1],onClick:g=>u(v[0]),class:ue({"is-active":o.value===v[0]})},null,8,["icon","onClick","class"]))),256)),l.value.length===0?(y(),$(d(Be),{key:0})):M("",!0)])])]),_:1},8,["modelValue"])):M("",!0)]))}}),i4=O({name:"PageForm",__name:"form",props:{item:{},parentId:{}},setup(n){const e=n,{project:t}=Jr(),r=T(()=>e.item?"编辑页面":"新增页面"),i=()=>({dir:!1,name:"",title:"",icon:"",mask:!0,hidden:!1,raw:!1}),o=B(e.item||i()),a=[{label:"页面",value:!1},{label:"目录",value:!0}],s=u=>{o.value&&(o.value.name=$r(u))},l=async u=>t.value?.existPageName(u.name,[u.id])?(Ae("页面名称已存在,请更换"),!1):(e.item?t.value?.updatePage(u):t.value?.createPage(u,e.parentId),!0);return(u,c)=>(y(),$(d(ft),{title:r.value,width:"800px",height:"500px","form-props":{tooltipMessage:!1},model:o.value,"submit-method":l},{default:S(()=>[w(d(te),{name:"dir",label:"类型",editor:"radio",options:a,props:{button:!0,size:"small"},disabled:!!e.item,required:""},null,8,["disabled"]),w(d(te),{name:"name",label:"名称",required:"",onChange:s,rules:{pattern:d(St),message:"名称格式不正确"}},null,8,["rules"]),w(d(te),{name:"title",label:"标题",required:""}),w(d(te),{name:"icon",label:"菜单图标",editor:"none"},{editor:S(()=>[w(Pc,{modelValue:o.value.icon,"onUpdate:modelValue":c[0]||(c[0]=p=>o.value.icon=p),size:"default"},null,8,["modelValue"])]),_:1}),w(d(te),{visible:{dir:!1},name:"mask",label:"包含母版",editor:"switch"}),w(d(te),{name:"hidden",label:"隐藏菜单",editor:"switch"}),w(d(te),{visible:{dir:!1},disabled:!!e.item,inline:"",name:"raw",label:"源码模式",editor:"switch",tip:"页面是非低代码开发,不能在线编辑"},null,8,["disabled"])]),_:1},8,["title","model"]))}}),xs=O({name:"VIcon",__name:"Icon",props:{icon:{},label:{},active:{type:Boolean,default:!1},open:{type:Boolean,default:!1}},emits:["click"],setup(n,{emit:e}){const t=n,r=e,i=T(()=>({"is-active":t.active,"is-open":t.open})),o=()=>{r("click")};return(a,s)=>(y(),$(d(Cr),{effect:"dark",placement:"right",content:a.label,"show-after":600},{default:S(()=>[I("div",{class:ue(["v-apps-region__icon",i.value]),onClick:o},[(y(),$(Ke(a.icon)))],2)]),_:1},8,["content"]))}}),me=O({name:"VPanel",__name:"panel",props:{title:{},subtitle:{},plus:{type:Boolean},back:{type:Boolean},edit:{type:Boolean},remove:{type:Boolean},save:{type:Boolean},header:{type:Boolean,default:!0},collapsable:{type:Boolean}},emits:["plus","back","remove","save","edit"],setup(n,{emit:e}){const t=n,r=e,i=B(!1),o=T(()=>({"is-collapsed":!!i.value})),a=()=>{r("plus")},s=()=>{r("edit")},l=()=>{r("back")},u=()=>{r("remove")},c=()=>{r("save")},p=T(()=>t.header?{content:t.title,subtitle:t.subtitle,icon:t.back?jd:void 0,onClickBack:t.back?l:void 0,onClick:t.collapsable?()=>{i.value=!i.value}:void 0}:null),h=m=>{i.value=m};return(m,f)=>(y(),$(d(Ur),{class:ue(["v-panel",o.value]),border:!1,header:p.value,fit:""},Jt({actions:S(()=>[t.plus?(y(),$(d(De),{key:0,size:m.$attrs.size,mode:"icon",icon:d(Co),background:"hover",title:"新增",onClick:a},null,8,["size","icon"])):M("",!0),t.edit?(y(),$(d(De),{key:1,size:m.$attrs.size,mode:"icon",icon:d(Bs),background:"hover",title:"编辑",onClick:s},null,8,["size","icon"])):M("",!0),t.remove?(y(),$(d(De),{key:2,size:m.$attrs.size,mode:"icon",icon:d(Vd),background:"hover",title:"清除",onClick:u},null,8,["size","icon"])):M("",!0),t.save?(y(),$(d(De),{key:3,size:m.$attrs.size,mode:"icon",icon:d(Su),background:"hover",title:"保存",onClick:c},null,8,["size","icon"])):M("",!0),t.collapsable?Bt((y(),$(d(De),{key:4,size:m.$attrs.size,mode:"icon",icon:d(zs),background:"hover",title:"展开",onClick:f[0]||(f[0]=v=>h(!1))},null,8,["size","icon"])),[[cn,i.value]]):M("",!0),t.collapsable?Bt((y(),$(d(De),{key:5,size:m.$attrs.size,mode:"icon",icon:d(Ed),background:"hover",title:"收起",onClick:f[1]||(f[1]=v=>h(!0))},null,8,["size","icon"])),[[cn,!i.value]]):M("",!0),le(m.$slots,"actions")]),default:S(()=>[le(m.$slots,"default")]),_:2},[m.$slots.footer?{name:"footer",fn:S(()=>[le(m.$slots,"footer")]),key:"0"}:void 0]),1032,["class","header"]))}}),o4={class:"v-tabs__header"},a4={key:0,class:"v-tabs__actions"},qr=O({__name:"tabs",props:{items:{default:()=>[]},menus:{},modelValue:{},stretch:{type:Boolean},checkable:{type:Boolean}},emits:["update:modelValue","command","remove","action-click"],setup(n,{emit:e}){const t=n,r=e,i=B((t.modelValue||t.items[0]?.name)??"");ce(i,()=>{r("update:modelValue",i.value)}),ce(()=>t.modelValue,l=>{i.value=l});const o=l=>{r("command",l)},a=l=>{r("remove",l)},s=l=>{r("action-click",l)};return(l,u)=>(y(),$(d(Ur),{class:"v-tabs",border:!1,fit:"",radius:!1},{header:S(()=>[I("div",o4,[w(d(kc),{class:"v-tabs__tabs",items:t.items,type:"card",modelValue:i.value,"onUpdate:modelValue":u[0]||(u[0]=c=>i.value=c),onTabRemove:a,onActionClick:s,stretch:t.stretch},null,8,["items","modelValue","stretch"]),t.menus&&t.menus.length?(y(),R("div",a4,[t.menus&&t.menus.length?(y(),$(d(De),{key:0,mode:"icon",size:"small",icon:d(so),background:"hover",dropdown:{size:"small",placement:"bottom-end"},menus:t.menus,onCommand:o},{item:S(({item:c})=>[I("span",null,[t.checkable?(y(),$(d(ko),{key:0,class:ue({"v-tabs__checked":!0,"is-checked":c.checked})},null,8,["class"])):M("",!0),de(" "+ee(c.label),1)])]),_:1},8,["icon","menus"])):M("",!0)])):M("",!0)])]),default:S(()=>[le(l.$slots,"default")]),_:3}))}}),s4={key:2,class:"v-item__index"},l4={class:"v-item__content"},u4={key:3,class:"v-item__subtitle"},Ie=O({name:"VItem",__name:"item",props:{icon:{},index:{},tag:{},tagType:{},title:{},subtitle:{},actions:{default:()=>[]},background:{type:Boolean},border:{type:Boolean},switch:{type:Boolean},modelValue:{},active:{type:Boolean},hover:{type:Boolean},small:{type:Boolean}},emits:["click","action","update:modelValue","switch"],setup(n,{emit:e}){const t={add:{label:"创建",icon:Co},copy:{label:"复制",icon:$o},edit:{label:"编辑",icon:Eo},remove:{label:"删除",icon:qn},lock:{label:"锁定",icon:jo},unlock:{label:"解锁",icon:_u},invisible:{label:"隐藏",icon:Ao},visible:{label:"显示",icon:Ru},home:{label:"主页",icon:yu}},r=n,i=e,o=B(!!r.modelValue),a=T(()=>r.actions.map(c=>{const p=t[c];return{name:c,...p}})),s=T(()=>({"is-background":r.background,"is-border":r.border,"is-active":r.active,"is-hover":r.hover,"is-small":r.small})),l=()=>{i("click",r.modelValue)},u=async c=>{c==="remove"?await ao.confirm("确定删除吗?","提示",{type:"warning"}).catch(()=>!1)&&i("action",{name:c,modelValue:r.modelValue}):i("action",{name:c,modelValue:r.modelValue})};return ce(o,c=>{i("update:modelValue",c),i("switch",c)}),ce(()=>r.modelValue,c=>{o.value=!!c}),(c,p)=>(y(),$(d(ae),{class:ue(["v-item",s.value]),justify:"space-between",align:"center",onClick:l},{default:S(()=>[w(d(ae),{class:"v-item__title",align:"center"},{default:S(()=>[le(c.$slots,"default",{},()=>[c.icon?(y(),$(d(rt),{key:0,icon:c.icon},null,8,["icon"])):M("",!0),r.tag?(y(),$(d(bd),{key:1,class:"v-item__tag",size:"small",type:r.tagType},{default:S(()=>[de(ee(r.tag),1)]),_:1},8,["type"])):M("",!0),c.index!==void 0?(y(),R("span",s4," # "+ee(c.index),1)):M("",!0),I("span",l4,ee(c.title),1),c.subtitle?(y(),R("span",u4,ee(c.subtitle),1)):M("",!0)])]),_:3}),w(d(ae),{class:"v-item__actions",onClick:p[1]||(p[1]=an(()=>{},["stop"]))},{default:S(()=>[(y(!0),R(ne,null,oe(a.value,h=>(y(),$(d(De),{name:h.name,title:h.label,mode:"icon",size:"small",background:"none",type:"info",icon:h.icon,onClick:m=>u(h.name)},null,8,["name","title","icon","onClick"]))),256)),r.switch?(y(),$(d(to),{key:0,modelValue:o.value,"onUpdate:modelValue":p[0]||(p[0]=h=>o.value=h),class:"v-item__switch",size:"small"},null,8,["modelValue"])):M("",!0),le(c.$slots,"status")]),_:3})]),_:3},8,["class"]))}}),c4=["draggable"],d4={class:"v-box__name"},p4={class:"v-box__label"},Ki=O({name:"VBox",__name:"box",props:{name:{},title:{},editable:{type:Boolean},active:{type:Boolean},draggable:{type:Boolean}},emits:["edit","remove","dragstart","dragend"],setup(n,{emit:e}){const t=n,r=e,i=()=>{r("edit")},o=async()=>{await ao.confirm("确认删除?","提示",{type:"warning"}).catch(()=>!1)&&r("remove")},a=T(()=>({"is-active":t.active,"is-draggable":t.draggable})),s=()=>{r("dragstart",t)},l=()=>{r("dragend",t)};return(u,c)=>(y(),R("div",{class:ue(["v-box",a.value]),draggable:u.draggable,onDragstart:s,onDragend:l},[w(d(ae),{direction:"column",justify:"center",align:"center"},{default:S(()=>[I("span",d4,ee(t.name),1),I("span",p4,ee(t.title),1)]),_:1}),t.editable?(y(),$(d(ae),{key:0,class:"v-box__footer",justify:"flex-end",align:"center"},{default:S(()=>[w(d(rt),{icon:d(Eo),onClick:i},null,8,["icon"]),w(d(rt),{icon:d(qn),onClick:o},null,8,["icon"])]),_:1})):M("",!0)],42,c4))}}),h4={class:"v-context-viewer"},m4=O({__name:"viewer",props:{context:{}},emits:["pick","copy"],setup(n,{emit:e}){const t=n,r=e,i=["$provider","$apis","$components","context"],o=c=>{const p=c.value,h=ni(p);return h==="Object"||h==="Module"?Object.keys(p||{}).length===0:h==="Array"?p.length===0:!0},a=(c,p="this")=>typeof c=="object"?Array.isArray(c)?c.map((h,m)=>{const f=`[${m}]`;return{label:f,value:h,type:ni(h),path:`${p}${f}`}}):Object.entries(c).map(([h,m])=>({label:h,value:m,type:ni(m),path:`${p}.${h}`})).filter(h=>!h.label.startsWith("__")&&!i.includes(h.label)):[],s=(c,p)=>{if(c.level===0)p(a(t.context));else{const h=on(c.data.value);p(a(h,c.data.path))}},l=c=>{r("copy",c.path)},u=c=>{r("pick",c.path)};return(c,p)=>(y(),R("div",h4,[c.context?(y(),$(d(oo),{key:0,lazy:"",load:s,"expand-on-click-node":!1,props:{isLeaf:o}},{default:S(({data:h})=>[w(Ie,{title:h.label,clickable:"",onClick:m=>u(h),background:"",actions:["copy"],onAction:m=>l(h),grow:"",small:""},null,8,["title","onClick","onAction"])]),_:1},8,["props"])):M("",!0)]))}}),Ho=O({__name:"binder",props:{title:{},context:{},block:{},model:{},rules:{},modelValue:{type:Boolean},submitMethod:{type:Function},unbindEnabled:{type:Boolean}},emits:["unbind","submit","cancel","pick","update:modelValue","close"],setup(n,{emit:e}){const t=n,r=e,{searchResult:i,keyword:o}=Pw(t.block,t.context),{copy:a}=Dd({}),s=[{name:"normal",label:"常用"},{name:"viewer",label:"高级"}],l=B("normal"),u=B(),c=async k=>{r("submit",k),t.submitMethod?await t.submitMethod(k)&&p():p()},p=()=>{r("update:modelValue",!1),r("close")},h=()=>{r("unbind")},m=()=>{p()},f=async()=>{u.value?.submit()},v=k=>{r("pick",k)},g=k=>{a(k),Tr.success({message:"已经复制到粘贴板"})};return(k,b)=>(y(),$(d(Zt),{"model-value":t.modelValue,class:"v-binder",title:k.title,width:"1000px",height:"600px","body-padding":!1,maximizable:!1,minimizable:!1,onClose:p},{default:S(()=>[w(d(ae),{fit:"",direction:"row",overflow:"hidden"},{default:S(()=>[w(d(ae),{width:"30%",height:"100%"},{default:S(()=>[w(qr,{class:"v-binder__tabs",items:s,modelValue:l.value,"onUpdate:modelValue":b[1]||(b[1]=_=>l.value=_)},{default:S(()=>[w(d(ae),{class:"v-binder__tab-content",fit:"",padding:"",flex:!1},{default:S(()=>[Bt(I("div",null,[w(d(tt),{modelValue:d(o),"onUpdate:modelValue":b[0]||(b[0]=_=>hi(o)?o.value=_:null),size:"small",clearable:"","prefix-icon":d(Os),placeholder:"筛选可用项"},null,8,["modelValue","prefix-icon"]),(y(!0),R(ne,null,oe(d(i),_=>(y(),R("div",null,[w(d(Ar),{"border-style":"dotted"},{default:S(()=>[de(ee(_.title),1)]),_:2},1024),(y(!0),R(ne,null,oe(_.items,V=>(y(),$(Ie,{title:V,background:"",actions:["copy"],small:"",onClick:j=>v(V),onAction:j=>g(V)},null,8,["title","onClick","onAction"]))),256))]))),256)),d(i).length?M("",!0):(y(),$(d(Be),{key:0}))],512),[[cn,l.value==="normal"]]),Bt(w(m4,{context:t.context,onCopy:g,onPick:v},null,8,["context"]),[[cn,l.value==="viewer"]])]),_:1})]),_:1},8,["modelValue"])]),_:1}),w(d(Ur),{grow:"",header:null,border:!1},{footer:S(()=>[w(d(ae),{justify:"space-between"},{default:S(()=>[w(d(ae),null,{default:S(()=>[k.unbindEnabled?(y(),$(d(Ce),{key:0,type:"warning",size:"default",onClick:h},{default:S(()=>[de(" 移除绑定 ")]),_:1})):M("",!0)]),_:1}),w(d(ae),null,{default:S(()=>[w(d(Ce),{type:"default",size:"default",onClick:m},{default:S(()=>[de(" 取消 ")]),_:1}),w(d(Ce),{type:"primary",size:"default",onClick:f},{default:S(()=>[de(" 确定 ")]),_:1})]),_:1})]),_:1})]),default:S(()=>[w(d(Sc),{ref_key:"formRef",ref:u,class:"v-binder__form",footer:!1,"label-position":"top","tooltip-message":!1,model:t.model,rules:t.rules,"submit-method":c},{default:S(()=>[le(k.$slots,"default")]),_:3},8,["model","rules"])]),_:3})]),_:3})]),_:3},8,["model-value","title"]))}}),f4={class:"v-slots-picker__sn"},v4=O({__name:"slots",props:{slots:{default:()=>[]}},emits:["submit","update:modelValue"],setup(n,{emit:e}){const t=n,r=e,i=B(),o=T(()=>`${50*Math.ceil(t.slots.length/4)+180}px`),a=l=>{i.value=l},s=()=>{i.value?(r("submit",i.value),r("update:modelValue",!1)):Ae("请选择插槽")};return(l,u)=>(y(),$(d(Zt),ve({class:"v-slots-picker",title:"选择插槽",width:"600px",height:o.value,submit:"",cancel:"",onSubmit:s},l.$attrs),{default:S(()=>[w(d(Sd),{title:"该组件支持多个插槽,请选择放置到其中一个",type:"warning",closable:!1}),w(d(ae),{class:"v-slots-picker__content",justify:"space-around",alignContent:"flex-start",gap:"",wrap:"wrap"},{default:S(()=>[(y(!0),R(ne,null,oe(t.slots,(c,p)=>(y(),$(d(ae),{class:ue(["v-slots-picker__item",{"is-active":c.name===i.value?.name}]),grow:"",flex:!1,onClick:h=>a(c)},{default:S(()=>[I("span",f4,"#"+ee(p+1),1),de(" "+ee(c.name),1)]),_:2},1032,["class","onClick"]))),256))]),_:1})]),_:1},16,["height"]))}}),Nc=O({name:"Viewport",__name:"viewport",props:{mode:{default:"pc"},width:{},height:{}},setup(n){const e=n,t=T(()=>[`is-${e.mode}`]),r=T(()=>{if(e.mode==="pc")return 1;const o=e.mode==="mobile"?ws:_s,{width:a,height:s}=o,l=a>0?(e.width||0)/a:1,u=s>0?(e.height||0)/s:1;return Math.min(l,u)}),i=T(()=>{if(e.mode==="pc")return{};const o=e.mode==="mobile"?ws:_s,{width:a,height:s}=o;return{width:`${a}px`,height:`${s}px`,left:"50%",top:"50%",transform:`translate(-50%, -50%) scale(${r.value})`}});return(o,a)=>(y(),R("div",{class:ue(["v-viewport",t.value]),style:Tt(i.value)},[le(o.$slots,"default")],6))}}),g4=O({name:"PagesWidget",__name:"index",setup(n){const{project:e,engine:t}=Jr(),r=T(()=>e.value?.pages||[]),{current:i}=Pe(),o=B(!1),a=B(),s=B(),l=()=>{s.value=void 0,a.value=void 0,o.value=!0},u=async m=>{const{name:f,modelValue:v}=m,{data:g,node:k}=v;if(f==="add"&&(a.value=void 0,s.value=g.id,o.value=!0),f==="edit"&&(a.value=Jn(g),s.value=void 0,o.value=!0),f==="remove"){if(g.dir){const b=e.value?.getPage(g.id);if(b&&b.children?.length){Ae("请先删除子页面");return}}e.value?.removePage(g.id)}if(f==="copy"){const b=k.parent?.data.id;e.value?.clonePage(g,b)}f==="home"&&(e.value?.setHomepage(g.id),Je("设置主页成功","success"))},c=async m=>{m.raw&&Je("这是源码模式页面,不能低代码设计","warning"),m.dir||m.raw?t.project.value?.deactivate():t.project.value?.active(m)},p=(m,f,v)=>v==="inner"?!!f.data.dir:!0,h=()=>{e.value?.update({pages:mi(r)})};return(m,f)=>(y(),$(d(me),{class:"v-pages-widget",title:"页面管理",plus:"",subtitle:"(共 0 条)",onPlus:l},{default:S(()=>[w(d(oo),{data:r.value,"node-key":"id","default-expand-all":"",draggable:"","allow-drop":p,onNodeDrop:h},{default:S(({data:v,node:g})=>[w(d(Ie),{class:"v-pages-widget__item",icon:d(Di)[v.icon],title:v.title,subtitle:v.name,"model-value":{data:v,node:g},actions:v.dir?["add","edit","remove"]:v.raw?["home","edit","remove"]:["home","copy","edit","remove"],onAction:u,onClick:k=>c(v),active:d(i)?.id===v.id,tag:d(e)?.homepage===v.id?"主页":void 0,"tag-type":"success",grow:"",small:"",background:"",hover:""},null,8,["icon","title","subtitle","model-value","actions","onClick","active","tag"])]),_:1},8,["data"]),o.value?(y(),$(i4,{key:0,modelValue:o.value,"onUpdate:modelValue":f[0]||(f[0]=v=>o.value=v),item:a.value,"parent-id":s.value},null,8,["modelValue","item","parent-id"])):M("",!0)]),_:1}))}}),y4=O({name:"BlocksWidget",__name:"index",setup(n){const{span:e}=Mc(),{blocks:t,engine:r}=zw(),i=B(void 0),{current:o}=Pe(),a=B(!1),s=T(()=>i.value?.id?"编辑":"新增"),l=T(()=>`(共 ${t.value.length} 个)`),u=()=>({name:"",title:"",type:"block"}),c=async b=>{const _=b,V=r.project.value;if(!V)return!1;if(b.id)if(!V.existBlockName(_.name,[_.id]))V.updateBlock(_);else return Ae(`名称【${_.name}】已经存在,请更换名称`),!1;else if(!V.existBlockName(_.name))V.createBlock(_);else return Ae(`名称【${_.name}】已经存在,请更换名称`),!1;return!0},p=()=>{i.value=u(),a.value=!0},h=b=>{i.value=Jn(b),a.value=!0},m=b=>{r.project.value?.removeBlock(b.id)},f=b=>{i.value&&(i.value.name=$r(b))},v=async b=>{r.project.value?.active(b)},g=async b=>{const _={type:"Schema",id:b.id},V=await r.assets.getBlockMaterial(_),j=r.skeleton?.getWidget("Designer")?.widgetRef?.designer;j&&V&&j.setDragging(V)},k=()=>{const b=r.skeleton?.getWidget("Designer")?.widgetRef?.designer;b&&b.setDragging(null)};return(b,_)=>(y(),$(d(me),{class:"v-blocks-widget",title:"区块管理",subtitle:l.value,plus:"",onPlus:p},{default:S(()=>[w(d(gi),{wrap:"wrap",gutter:5},{default:S(()=>[(y(!0),R(ne,null,oe(d(t),V=>(y(),$(d(vi),{key:V.id,span:d(e)},{default:S(()=>[w(d(Ki),{name:V.name,title:V.title,active:d(o)?.id===V.id,editable:"",onEdit:j=>h(V),onRemove:j=>m(V),onClick:j=>v(V),draggable:d(o)?.id!==V.id,onDragstart:j=>g(V),onDragend:k},null,8,["name","title","active","onEdit","onRemove","onClick","draggable","onDragstart"])]),_:2},1032,["span"]))),128))]),_:1}),d(t).length?M("",!0):(y(),$(d(Be),{key:0})),w(d(ft),{modelValue:a.value,"onUpdate:modelValue":_[0]||(_[0]=V=>a.value=V),title:s.value,model:i.value,width:"600px",height:"250px","form-props":{tooltipMessage:!1},"submit-method":c},{default:S(()=>[w(d(te),{name:"name",label:"名称",required:"",tip:"名称为英文驼峰格式",rules:{message:"名称格式错误",pattern:d(St)},onChange:f},null,8,["rules"]),w(d(te),{name:"title",label:"标题",required:""})]),_:1},8,["modelValue","title","model"])]),_:1},8,["subtitle"]))}}),b4={class:"v-components-widget__search"},w4={key:0,class:"v-components-widget__result"},_4={class:"v-components-widget__list"},x4=O({name:"ComponentsWidget",__name:"index",setup(n){const{span:e,engine:t}=Mc(),{tabs:r,currentTab:i,currentGroup:o,model:a,searchKey:s,searchResult:l}=Dw(),u=p=>{const h=t.skeleton?.getWidget("Designer")?.widgetRef?.designer;h&&h.setDragging(p)},c=()=>{const p=t.skeleton?.getWidget("Designer")?.widgetRef?.designer;p&&p.setDragging(null)};return(p,h)=>(y(),$(d(me),{class:"v-components-widget",title:"组件库",body:{flex:!0,direction:"column"}},{default:S(()=>[I("div",b4,[w(d(tt),{modelValue:d(s),"onUpdate:modelValue":h[0]||(h[0]=m=>hi(s)?s.value=m:null),placeholder:"搜索组件",clearable:"",size:"small"},{prefix:S(()=>[w(d(Fu))]),_:1},8,["modelValue"])]),d(s)?(y(),R("div",w4,[w(d(gi),{wrap:"wrap",gutter:5},{default:S(()=>[(y(!0),R(ne,null,oe(d(l),m=>(y(),$(d(vi),{span:d(e),key:m.name},{default:S(()=>[w(d(Ki),{name:m.name,title:m.label||m.name,draggable:"",onDragstart:f=>u(m),onDragend:c},null,8,["name","title","onDragstart"])]),_:2},1032,["span"]))),128))]),_:1}),d(l).length?M("",!0):(y(),$(d(Be),{key:0}))])):(y(),$(d(kc),{key:1,items:d(r),modelValue:d(i),"onUpdate:modelValue":h[2]||(h[2]=m=>hi(i)?i.value=m:null)},{default:S(()=>[I("div",_4,[d(o)?(y(),$(d(cd),{key:0,modelValue:d(a)[d(i)],"onUpdate:modelValue":h[1]||(h[1]=m=>d(a)[d(i)]=m)},{default:S(()=>[(y(!0),R(ne,null,oe(d(o).children,m=>(y(),$(d(dd),{key:m.name,name:m.name,title:`${m.label} (${m.count})`},{default:S(()=>[m.components?(y(),$(d(gi),{key:0,wrap:"wrap",gutter:5},{default:S(()=>[(y(!0),R(ne,null,oe(m.components,f=>(y(),$(d(vi),{span:d(e),key:f.name},{default:S(()=>[w(d(Ki),{name:f.name,title:f.label||f.name,draggable:"",onDragstart:v=>u(f),onDragend:c},null,8,["name","title","onDragstart"])]),_:2},1032,["span"]))),128))]),_:2},1024)):M("",!0)]),_:2},1032,["name","title"]))),128))]),_:1},8,["modelValue"])):M("",!0)])]),_:1},8,["items","modelValue"]))]),_:1}))}}),S4=O({name:"OutlineWidget",__name:"index",setup(n){const{engine:e,designer:t,selected:r}=vt(),{current:i}=Pe(),o=B([]),a=j=>{if($e(j))return j.locked?["unlock"]:["lock"];const x=j.parent;return x&&(x.locked||x.invisible)?[]:i.value?.locked?[]:j.locked?["unlock"]:j.invisible?["visible"]:["lock","invisible","copy","remove"]},s=j=>{const x=[];return j.forEach(E=>{const D={id:E.id,label:E.name,type:E.id,model:E};Array.isArray(E.children)&&(D.children=s(E.children)),x.push(D)}),x},l=()=>{if(!i.value)return[];const{id:j,name:x,nodes:E}=i.value;return[{id:j,label:x,type:j,model:i.value,children:s(E)}]},u=async()=>{o.value=l(),r.value?.model&&(await bt(),t.value?.setSelected(r.value.model))},c=T(()=>r.value?.model.id),p=j=>{const x=j.data;if($e(x.model)||x.model.locked||x.model.name==="template")return!1;const E=e.assets.componentMap.get(x.model.name);return E?(t.value?.setDragging(E),!0):!1},h=async(j,x,E)=>{const D=x.data,Z={prev:"top",next:"bottom",inner:"inner"}[E];let C=!1;if($e(D.model))C=E==="inner",t.value?.setDropping(C?D.model:null,"inner");else{const A=D.model;C=!!await t.value?.allowDrop(A,Z),t.value?.setDropping(C?A:null,"inner")}return C},m=j=>{const x=j?.model;!x||x.invisible||(t.value?.setSelected(x),t.value?.setHover(null))},f=async(j,x,E)=>{const D=j.data,Z=x.data;if($e(Z.model)){t.value?.setDropping(null),t.value?.setDragging(null);return}const C=Z.model,A={before:"left",after:"right"}[E]||"inner";if(!await t.value?.allowDrop(C,A)){t.value?.setDropping(null),u(),Tr.warning({message:`${D.model.name}不能放置到该位置`}),t.value?.setDragging(null);return}const F=await t.value?.getDropSlot(E==="inner"?C:C.parent);if(F!==null){const z=D.model;z.slot=F,i.value?.move(z,C,A)}else u();t.value?.setDropping(null),t.value?.setDragging(null),e.simulator.refresh()},v=j=>{$e(j.model)?t.value?.setHover(j.model):(t.value?.setHover(j.model),j.model.invisible&&t.value?.setHover(null),j.model.name==="slot"&&t.value?.setHover(null))},g=()=>{t.value?.setHover(null)},k=j=>{const x=j.data;x.dragging=!0;const E=e.assets.componentMap.get(x.model.name);E&&t.value?.setDragging(E)},b=async j=>{const x=j.data;x.dragging=!1},_=(j,x)=>{j&&((j.id===x.id||!$e(j)&&x.isChild(j))&&t.value?.setSelected(null),t.value?.setHover(null))},V=j=>{const{name:x,modelValue:E}=j,D=r.value?.model;switch(x){case"lock":_(D,E),E.lock();break;case"unlock":_(D,E),E.unlock();break;case"invisible":_(D,E),E.setVisible(!1);break;case"visible":E.setVisible(!0);break;case"copy":const Z=i.value?.cloneNode(E);Z&&t.value?.setSelected(Z);break;case"remove":_(D,E),i.value?.removeNode(E);break}};return ce(e.changed,u,{immediate:!0}),(j,x)=>(y(),$(d(me),{class:"v-outline-widget",title:"大纲树"},{default:S(()=>[(y(),$(d(oo),{key:d(e).changed.value,data:o.value,"node-key":"id","default-expand-all":"",draggable:"","empty-text":"请新建或打开文件","current-node-key":c.value,"highlight-current":!0,"expand-on-click-node":!1,"allow-drop":h,"allow-drag":p,onCurrentChange:m,onNodeDrop:f,onNodeDragStart:k,onNodeDragEnd:b},{default:S(({data:E,node:D})=>[w(d(Ie),{class:ue(["v-outline-widget__item",{"is-locked":E.model.locked,"is-invisible":E.model.invisible,"is-dragging":E.dragging}]),active:!E.model.invisible&&D.isCurrent,grow:"",small:"",background:"",hover:"","model-value":E.model,icon:E.model.locked?d(jo):E.model.invisible?d(Ao):void 0,title:E.label,subtitle:E.type,actions:a(E.model),onAction:V,onMouseenter:Z=>v(E),onMouseleave:g},null,8,["class","active","model-value","icon","title","subtitle","actions","onMouseenter"])]),_:1},8,["data","current-node-key"]))]),_:1}))}}),k4=O({name:"HistoryWidget",__name:"index",setup(n){const{history:e,load:t,total:r}=Rc(),i=T(()=>`(共 ${r.value} 条)`),o=s=>{s.name==="remove"&&e.value?.remove(s.modelValue.id)},a=async()=>{await _n("确定要清空历史记录吗?")&&e.value?.clear()};return(s,l)=>(y(),$(d(me),{class:"v-history-widget",title:"历史记录",subtitle:i.value,remove:!!d(r),onRemove:a},{default:S(()=>[d(r)===0?(y(),$(d(Be),{key:0,"image-size":50})):M("",!0),d(e)?(y(!0),R(ne,{key:1},oe(d(e).items,(u,c)=>(y(),$(d(Ie),{index:c+1,title:u.label,"model-value":u,active:c==d(e).index,small:"",background:"",actions:["remove"],onAction:o,onClick:p=>d(t)(u.id)},null,8,["index","title","model-value","active","onClick"]))),256)):M("",!0)]),_:1},8,["subtitle","remove"]))}}),Te=Gc({loader:()=>Jc(()=>import("./Editor-BKlikwSl-Dczu-iwv.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),loadingComponent:O({render(){return Oe("div","正在拼命加载...")}}),errorComponent:O({render(){return Oe("div","组件加载失败!")}})}),$4=O({name:"ApisWidget",__name:"index",setup(n){const e=B(!1),t=B(null),r=B(!1),i=T(()=>r.value?"编辑API":"新增API"),o=T(()=>a.value?.apis||[]),{project:a}=Jr(),s=()=>({method:"get",name:"",label:"",url:"",settings:{loading:!0,failMessage:!0,validSuccess:!0,originResponse:!1,injectHeaders:!1,type:"form",headers:{type:"JSExpression",value:"({})"}}}),l=()=>{e.value=!0,r.value=!1,t.value=s()},u=jw.map(g=>({label:g,value:g.toLowerCase()})),c={get:"success",post:"primary",put:"warning",delete:"danger",patch:"warning",jsonp:"info"},p=[{label:"表单",value:"form"},{label:"JSON",value:"json"},{label:"文件",value:"data"}],h=(g,k,b)=>{Me({type:"JSExpression",value:k},window)?b():b(new Error("代码错误"))},m=g=>{g.name==="edit"&&f(g.modelValue),g.name==="remove"&&a.value?.removeApi(g.modelValue.name)},f=g=>{r.value=!0,t.value=Jn(g),e.value=!0},v=async g=>a.value?.existApiName(g.name,r.value?[g.id]:[])?(Ae(`API名称 [ ${g.name} ] 已存在`),!1):(a.value?.setApi(g),!0);return(g,k)=>(y(),$(d(me),{class:"v-apis-widget",title:"API管理",plus:"",onPlus:l},{default:S(()=>[(y(!0),R(ne,null,oe(o.value,b=>(y(),$(d(Ie),{key:b.id,small:"",title:b.name,subtitle:b.label,"model-value":b,tag:b.method?.toUpperCase(),"tag-type":c[b.method||"get"],background:"",actions:["edit","remove"],onClick:_=>f(b),onAction:m},null,8,["title","subtitle","model-value","tag","tag-type","onClick"]))),128)),o.value.length===0?(y(),$(d(Be),{key:0,"image-size":50})):M("",!0),w(d(ft),{modelValue:e.value,"onUpdate:modelValue":k[1]||(k[1]=b=>e.value=b),model:t.value,title:i.value,width:"1000px",height:"600px","form-props":{labelPosition:"top",tooltipMessage:!1,size:"default"},"submit-method":v},{default:S(()=>[w(d(ae),{gap:"",fit:""},{default:S(()=>[w(d(ae),{direction:"column",grow:"",width:"50%",shrink:""},{default:S(()=>[w(d(te),{name:"method",label:"请求类型",required:"",editor:"radio",options:d(u),props:{button:!0}},null,8,["options"]),w(d(te),{name:"name",label:"接口名称",required:"",rules:{pattern:d(St),message:"名称格式不正确"}},null,8,["rules"]),w(d(te),{name:"label",label:"备注说明",required:""}),w(d(te),{name:"url",label:"接口URL",required:""})]),_:1}),w(d(ae),{direction:"column",grow:"",width:"50%",shrink:""},{default:S(()=>[t.value.method!=="jsonp"?(y(),$(d(me),{key:0,title:"请求配置",subtitle:t.value.method,border:""},{default:S(()=>[w(d(ae),{justify:"space-around"},{default:S(()=>[w(d(te),{name:"settings.loading",size:"small",label:"加载提示",editor:"switch"}),w(d(te),{size:"small",name:"settings.failMessage",label:"失败提示",editor:"switch"}),w(d(te),{size:"small",name:"settings.validSuccess",label:"校验成功",editor:"switch"}),w(d(te),{size:"small",name:"settings.originResponse",label:"原始响应",editor:"switch"}),w(d(te),{size:"small",name:"settings.injectHeaders",label:"注入请求头",editor:"switch"})]),_:1}),w(d(te),{size:"small",name:"settings.type",label:"发送数据类型",editor:"radio",options:p,props:{button:!0}}),w(d(te),{size:"small",name:"settings.headers.value",label:"请求头配置",tip:"支持 JSExpression 或 JSFunction",rules:{validator:h}},{editor:S(()=>[w(d(Te),{modelValue:t.value.settings.headers.value,"onUpdate:modelValue":k[0]||(k[0]=b=>t.value.settings.headers.value=b),dark:"",height:"200px"},null,8,["modelValue"])]),_:1},8,["rules"])]),_:1},8,["subtitle"])):M("",!0),t.value.method==="jsonp"?(y(),$(d(me),{key:1,title:"请求配置",subtitle:t.value.method,border:""},{default:S(()=>[w(d(te),{name:"jsonpOptions.jsonpCallback",size:"small",label:"jsonpCallback"}),w(d(te),{name:"jsonpOptions.jsonpCallbackFunction",size:"small",label:"jsonpCallbackFunction"}),w(d(te),{name:"jsonpOptions.timeout",size:"small",label:"timeout",editor:"number"}),w(d(te),{name:"jsonpOptions.crossorigin",size:"small",label:"crossorigin",editor:"switch"})]),_:1},8,["subtitle"])):M("",!0)]),_:1})]),_:1})]),_:1},8,["modelValue","model","title"])]),_:1}))}}),j4=O({name:"DepsWidget",__name:"index",setup(n){const{dependencies:e,engine:t}=Ic(),r=B(!1),i=B(!1),o=B({}),a=T(()=>i.value?"查看依赖":o.value?"编辑依赖":"新增依赖"),s=f=>f.required||f.official?[]:["edit","remove"],l=f=>f.official&&!f.required,u=async f=>(f.urls=f.urls.split(`
88
+ `),t.project.value?.setDeps(f),!0),c=f=>{t.project.value?.setDeps(f)},p=()=>{i.value=!1,r.value=!0,o.value=null},h=f=>{i.value=!0,o.value={...f,urls:f.urls.join(`
89
+ `)},r.value=!0},m=(f,v)=>{v.name==="edit"&&(o.value={...f,urls:f.urls.join(`
90
+ `)},i.value=!1,r.value=!0),v.name==="remove"&&t.project.value?.removeDeps(f)};return(f,v)=>(y(),$(d(me),{class:"v-deps-widget",title:"依赖管理",plus:"",onPlus:p},{default:S(()=>[(y(!0),R(ne,null,oe(d(e),g=>(y(),$(d(Ie),{key:g.package,title:g.package,subtitle:g.version,actions:s(g),background:"",switch:l(g),modelValue:g.enabled,"onUpdate:modelValue":k=>g.enabled=k,onSwitch:k=>c(g),onClick:k=>h(g),onAction:k=>m(g,k)},null,8,["title","subtitle","actions","switch","modelValue","onUpdate:modelValue","onSwitch","onClick","onAction"]))),128)),w(d(ft),{modelValue:r.value,"onUpdate:modelValue":v[0]||(v[0]=g=>r.value=g),width:"600px",height:"500px",title:a.value,model:o.value,submitMethod:u,formProps:{disabled:i.value,tooltipMessage:!1}},{default:S(()=>[w(d(te),{name:"package",label:"包名",required:"",disabled:!!o.value},null,8,["disabled"]),w(d(te),{name:"version",label:"版本",required:""}),w(d(te),{name:"library",label:"导出名称",required:""}),w(d(te),{name:"urls",label:"资源文件",editor:"textarea",props:{rows:3},tip:"多个资源可以换行输入",required:""}),w(d(te),{name:"assetsUrl",label:"物料URL"}),w(d(te),{name:"assetsLibrary",label:"物料名称"})]),_:1},8,["modelValue","title","model","formProps"])]),_:1}))}}),V4=O({__name:"actions",props:{position:{},model:{},path:{default:()=>[]}},emits:["action"],setup(n,{emit:e}){const t=n,r=e,i=T(()=>t.model.name),o=T(()=>!$e(t.model)&&!t.model.locked),a=T(()=>t.path.map(c=>({command:c,label:c.name,onMouseenter:()=>{r("action",{type:"hover",model:c})}}))),s=[{name:"prev",icon:zu,title:"向前移动"},{name:"next",icon:Bu,title:"向后移动"},{name:"copy",icon:$o,title:"复制"},{name:"remove",icon:qn,title:"删除"}],l=c=>{r("action",{type:"selected",model:c.command})},u=async c=>{c.name==="remove"?await _n("确定删除?")&&r("action",{type:c.name,model:t.model}):r("action",{type:c.name,model:t.model})};return(c,p)=>(y(),R("div",{class:ue(["v-actions",[`is-${t.position}`]])},[w(d(De),{mode:"icon",size:"small",icon:d(Vo),label:i.value,menus:a.value,background:"none",onCommand:l},null,8,["icon","label","menus"]),w(d(r6),{disabled:!o.value,mode:"icon",size:"small",items:s,background:"none",onClick:u},null,8,["disabled"])],2))}}),E4={key:1,class:"v-designer__placeholder"},C4=O({name:"VDesigner",inheritAttrs:!1,__name:"index",setup(n,{expose:e}){const t=B(),r=B(),{width:i,height:o}=dn(t),{dependencies:a,engine:s}=Ic(),{current:l,isEmpty:u}=Pe(),c=T(()=>s.skeleton?.getWidget("Toolbar")?.widgetRef.mode??"pc"),{designer:p,hover:h,dropping:m,selected:f}=Iw(r,a),v=g=>{const k=g.type,b=g.model;if(l.value)switch(k){case"remove":l.value.removeNode(b),p.value?.setSelected(null);break;case"copy":const _=l.value.cloneNode(b);p.value?.setSelected(_);break;case"prev":l.value.movePrev(b),p.value?.setSelected(b);break;case"next":l.value.moveNext(b),p.value?.setSelected(b);break;case"hover":p.value?.setHover(b);break;case"selected":p.value?.setSelected(b);break}};return e({designer:p,mode:c}),(g,k)=>(y(),R("div",{ref_key:"container",ref:t,class:"v-designer"},[w(d(Nc),{mode:c.value,width:d(i),height:d(o)},{default:S(()=>[I("iframe",{ref_key:"iframe",ref:r,frameborder:"0"},null,512),d(m)?(y(),R("div",{key:0,class:ue(["v-designer__dropping","is-inner"]),style:Tt(d(m).style)},null,4)):M("",!0),d(h)?(y(),R("div",{key:1,class:"v-designer__hover",style:Tt(d(h).style)},[I("span",{class:ue(`is-${d(h).position}`)},[de(ee(d(h).model.name)+": ",1),I("i",null,ee(d(h).model.id),1)],2)],4)):M("",!0),d(f)?(y(),R("div",{key:2,class:"v-designer__selected",style:Tt(d(f).style)},[w(V4,{position:d(f).position,model:d(f).model,path:d(f).path,onAction:v},null,8,["position","model","path"])],4)):M("",!0)]),_:1},8,["mode","width","height"]),d(l)?M("",!0):(y(),$(d(Be),{key:0,description:"请新建或打开文件"})),d(l)&&d(u)?(y(),R("div",E4," 您可以拖拽组件放置到这里 ")):M("",!0)],512))}}),Gn=O({__name:"group",props:{context:{},current:{},title:{},nameLabel:{},valueLabel:{},createEmpty:{},list:{},remove:{},submit:{},itemTitle:{type:Function,default:n=>n.name}},setup(n){const e=n,t=B(),r=B(),i=B(!1),o=B(e.createEmpty()),a=B(!1),s=T(()=>a.value?`编辑${e.title}`:`新增${e.title}`),l=()=>{a.value=!1,o.value=e.createEmpty(),i.value=!0},u=(f,v)=>{switch(v.name){case"edit":p(f);break;case"remove":e.remove(f);break}},c=f=>{o.value.value=f},p=f=>{a.value=!0,o.value={...f},i.value=!0},h=async f=>e.submit(f,a.value),m=()=>{r.value?.itemRef.validate()};return(f,v)=>(y(),$(d(me),{title:e.title,class:"v-sub-panel",size:"small",fit:!1,plus:"",onPlus:l},{default:S(()=>[(y(!0),R(ne,null,oe(f.list,g=>(y(),$(d(Ie),{title:e.itemTitle(g),border:"",actions:["edit","remove"],onAction:k=>u(g,k),onClick:k=>p(g)},null,8,["title","onAction","onClick"]))),256)),f.list.length?M("",!0):(y(),$(d(Be),{key:0,"image-size":40})),w(d(Ho),{modelValue:i.value,"onUpdate:modelValue":v[1]||(v[1]=g=>i.value=g),title:s.value,"submit-method":h,model:o.value,block:f.current,context:f.context,onPick:c},{default:S(()=>[le(f.$slots,"fields",wt(Ot({model:o.value,isEdit:a.value,nameLabel:f.nameLabel,valueLabel:f.valueLabel})),()=>[w(d(te),{name:"name",label:f.nameLabel,required:"",disabled:a.value},null,8,["label","disabled"]),w(d(te),{ref_key:"codeFieldRef",ref:r,name:"value",label:f.valueLabel,required:""},{editor:S(()=>[w(d(Te),{ref_key:"editorRef",ref:t,dark:"",height:"350px",modelValue:o.value.value,"onUpdate:modelValue":v[0]||(v[0]=g=>o.value.value=g),onBlur:m},null,8,["modelValue"])]),_:1},8,["label"])])]),_:3},8,["modelValue","title","model","block","context"])]),_:3},8,["title"]))}}),A4=O({__name:"state",props:{context:{},current:{}},setup(n){const e=n,t=T(()=>Object.entries(e.current?.state||{}).map(([a,s])=>({name:a,value:mn(s)}))),r=()=>({name:"",value:""}),i=a=>e.current?.removeState(a.name),o=async(a,s)=>{const{name:l,value:u}=a;if(!s&&e.current?.state[l])return Ae(`名称 ${l} 已存在,请更换!`),!1;const c={type:"JSExpression",value:u};return Me(c,e.context,!0)?(e.current?.setState(l,c),!0):!1};return(a,s)=>(y(),$(Gn,{title:"状态数据",current:e.current,context:e.context,list:t.value,nameLabel:"状态数据名称",valueLabel:"状态初始值 [ JSExpression ]",createEmpty:r,remove:i,submit:o},null,8,["current","context","list"]))}}),T4=O({__name:"computed",props:{context:{},current:{}},setup(n){const e=n,t=T(()=>Object.entries(e.current?.computed||{}).map(([a,s])=>({name:a,value:mn(s)}))),r=()=>({name:"",value:"() => { }"}),i=a=>e.current?.removeFunction("computed",a.name),o=async(a,s)=>{const{name:l,value:u}=a;if(!s&&e.current?.computed[l])return Ae(`名称 ${l} 已存在,请更换!`),!1;const c={type:"JSFunction",value:u};return Me(c,e.context,!0)?(e.current?.setFunction("computed",l,c),!0):!1};return(a,s)=>(y(),$(Gn,{title:"计算属性",current:e.current,context:e.context,list:t.value,nameLabel:"计算属性名称",valueLabel:"计算函数 [ JSFunction ]",createEmpty:r,remove:i,submit:o},null,8,["current","context","list"]))}}),B4=O({__name:"methods",props:{context:{},current:{}},setup(n){const e=n,t=T(()=>Object.entries(e.current?.methods||{}).map(([a,s])=>({name:a,value:mn(s)}))),r=()=>({name:"",value:"() => { }"}),i=a=>e.current?.removeFunction("methods",a.name),o=async(a,s)=>{const{name:l,value:u}=a;if(!s&&e.current?.methods[l])return Ae(`名称 ${l} 已存在,请更换!`),!1;const c={type:"JSFunction",value:u};return Me(c,e.context,!0)?(e.current?.setFunction("methods",l,c),!0):!1};return(a,s)=>(y(),$(Gn,{title:"组件方法",current:e.current,context:e.context,list:t.value,nameLabel:"方法名称",valueLabel:"方法函数 [ JSFunction ]",createEmpty:r,remove:i,submit:o},null,8,["current","context","list"]))}}),z4=O({__name:"lifeCycles",props:{context:{},current:{}},setup(n){const e=n,t=T(()=>z6.map(s=>({label:s,value:s}))),r=T(()=>Object.entries(e.current?.lifeCycles||{}).map(([s,l])=>({name:s,value:mn(l)}))),i=()=>({name:"",value:"() => { }"}),o=s=>e.current?.removeFunction("lifeCycles",s.name),a=async(s,l)=>{const{name:u,value:c}=s;if(!l&&e.current?.lifeCycles[u])return Ae(`名称 ${u} 已存在,请更换!`),!1;const p={type:"JSFunction",value:c};return Me(p,e.context,!0)?(e.current?.setFunction("lifeCycles",u,p),!0):!1};return(s,l)=>(y(),$(Gn,{title:"生命周期",current:e.current,context:e.context,list:r.value,nameLabel:"名称",valueLabel:"函数 [ JSFunction ]",createEmpty:i,remove:o,submit:a},{fields:S(({model:u,nameLabel:c,isEdit:p,valueLabel:h})=>[w(d(te),{name:"name",label:c,editor:"select",options:t.value,required:"",disabled:p},null,8,["label","options","disabled"]),w(d(te),{name:"value",label:h,required:""},{editor:S(()=>[w(d(Te),{ref:"editorRef",dark:"",height:"350px",modelValue:u.value,"onUpdate:modelValue":m=>u.value=m},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"])]),_:1},8,["current","context","list"]))}}),O4=O({__name:"watch",props:{context:{},current:{}},setup(n){const e=n,t=T(()=>(e.current?.watch||[]).map(s=>({...s,source:mn(s.source),handler:mn(s.handler)}))),r=()=>({source:"() => { }",deep:!1,immediate:!1,handler:"() => { }"}),i=s=>s.source,o=s=>e.current?.removeWatch(s),a=async(s,l)=>{const u={type:"JSFunction",value:s.source},c={type:"JSFunction",value:s.handler};if(!Me(u,e.context,!0)||!Me(c,e.context,!0))return!1;const p={...s,source:u,handler:c};return e.current?.setWatch(p),!0};return(s,l)=>(y(),$(Gn,{title:"侦听器",current:e.current,context:e.context,list:t.value,nameLabel:"侦听源 [ JSFunction ]",valueLabel:"处理函数 [ JSFunction ]",createEmpty:r,remove:o,submit:a,itemTitle:i,grow:""},{fields:S(({model:u,nameLabel:c,valueLabel:p})=>[w(d(te),{name:"source",label:c,required:""},{editor:S(()=>[w(d(Te),{dark:"",height:"100px",modelValue:u.source,"onUpdate:modelValue":h=>u.source=h},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"]),w(d(te),{name:"deep",modelValue:u.deep,"onUpdate:modelValue":h=>u.deep=h,label:"深度监听",editor:"switch"},null,8,["modelValue","onUpdate:modelValue"]),w(d(te),{name:"immediate",modelValue:u.immediate,"onUpdate:modelValue":h=>u.immediate=h,label:"立即执行",editor:"switch"},null,8,["modelValue","onUpdate:modelValue"]),w(d(te),{name:"handler",label:p,required:""},{editor:S(()=>[w(d(Te),{dark:"",height:"130px",modelValue:u.handler,"onUpdate:modelValue":h=>u.handler=h},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"])]),_:1},8,["current","context","list"]))}}),D4=O({__name:"index",setup(n){const{current:e,context:t}=Pe();return(r,i)=>(y(),$(d(ae),{class:"v-scripts-widget",direction:"column",fit:""},{default:S(()=>[w(A4,{current:d(e),context:d(t)},null,8,["current","context"]),w(T4,{current:d(e),context:d(t)},null,8,["current","context"]),w(B4,{current:d(e),context:d(t)},null,8,["current","context"]),w(z4,{current:d(e),context:d(t)},null,8,["current","context"]),w(O4,{current:d(e),context:d(t)},null,8,["current","context"])]),_:1}))}}),pi=O({__name:"setters",props:{context:{},current:{},title:{},items:{},node:{},removable:{type:Boolean}},emits:["change","remove"],setup(n,{emit:e}){const t=n,r=e,i=(a,s)=>{r("change",a,s)},o=a=>{r("remove",a)};return(a,s)=>(y(),$(d(me),{title:t.title,class:"v-sub-panel",size:"small",fit:!1},{default:S(()=>[w(d(We),{class:"v-properties-widget__form",size:"small","label-width":"90px",onKeydown:s[0]||(s[0]=Tn(an(()=>{},["prevent","stop"]),["enter"]))},{default:S(()=>[(y(!0),R(ne,null,oe(t.items,l=>(y(),$(d(he),ve(l,{key:`${l.name}_${t.node.id}`,current:t.current,context:t.context,removable:t.removable,onChange:i,onRemove:o}),null,16,["current","context","removable"]))),128))]),_:1})]),_:1},8,["title"]))}}),I4=O({name:"PropertiesWidget",__name:"index",setup(n){const{current:e,context:t}=Pe(),{selected:r}=vt(),{node:i,commonProps:o,change:a,componentProps:s,customProps:l,addCustom:u,removeCustom:c,isExist:p}=Nw(r),h=B(!1),m=B(),f=()=>{h.value=!0,m.value={name:""}},v=async k=>{const b=Object.keys(i.value?.props||{});return!p(k.name)&&!b.includes(k.name)?(u(k.name),!0):(Ae("已存在该属性名称"),!1)},g=async k=>{await _n("确定删除?")&&c(k)};return(k,b)=>d(e)?(y(),$(d(ae),{key:0,class:"v-properties-widget",direction:"column",fit:""},{default:S(()=>[d(i)?(y(),$(pi,{key:0,title:"通用属性",current:d(e),context:d(t),node:d(i),items:d(o),onChange:d(a)},null,8,["current","context","node","items","onChange"])):M("",!0),d(i)&&d(s).length?(y(),$(pi,{key:1,title:"组件属性",current:d(e),context:d(t),node:d(i),items:d(s),onChange:d(a)},null,8,["current","context","node","items","onChange"])):M("",!0),d(i)?(y(),$(pi,{key:2,title:"自定义属性",current:d(e),context:d(t),node:d(i),items:d(l),onChange:d(a),removable:"",plus:"",grow:"",onPlus:f,onRemove:g},null,8,["current","context","node","items","onChange"])):M("",!0),w(d(ft),{modelValue:h.value,"onUpdate:modelValue":b[0]||(b[0]=_=>h.value=_),title:"新增自定义属性",width:"400px",height:"150px","submit-method":v,formProps:{tooltipMessage:!1},model:m.value},{default:S(()=>[w(d(te),{name:"name",label:"属性名称",required:"",rules:{message:"名称格式错误",pattern:d(St)}},null,8,["rules"])]),_:1},8,["modelValue","model"])]),_:1})):M("",!0)}}),M4=O({name:"VariableBinder",__name:"variable",props:{context:{},current:{},value:{}},setup(n){const e=n,t=B(),r=qt({type:"JSExpression",value:e.value}),i=o=>{t.value.getEditor().setValue(o),r.value=o};return(o,a)=>(y(),$(d(Ho),{title:"绑定变量","unbind-enabled":"",block:e.current,context:e.context,model:r,onPick:i},{default:S(()=>[w(d(te),{name:"value",label:"绑定内容 [ JSExpression ]",required:""},{editor:S(()=>[w(d(Te),{ref_key:"editorRef",ref:t,modelValue:r.value,"onUpdate:modelValue":a[0]||(a[0]=s=>r.value=s),dark:"",height:"450px"},null,8,["modelValue"])]),_:1})]),_:1},8,["block","context","model"]))}}),R4=O({name:"EventBinder",__name:"event",props:{context:{},current:{},name:{},event:{}},setup(n){const e=n,t=B(),r=qt({name:e.name,...e.event,modifiers:Object.keys(e.event?.modifiers||{}),handler:{type:"JSFunction",value:e.event?.handler?.value||"() => {}"}}),i=Vw.map(a=>({label:a,value:a})),o=a=>{t.value.getEditor().setValue(a),r.handler.value=a};return(a,s)=>(y(),$(d(Ho),{title:"绑定事件","unbind-enabled":"",block:e.current,context:e.context,model:r,onPick:o},{default:S(()=>[w(d(te),{name:"modifiers",label:"事件修饰符",editor:"checkbox",options:d(i)},null,8,["options"]),w(d(te),{name:"handler.value",label:"事件处理函数 [ JSFunction ]",required:""},{editor:S(()=>[w(d(Te),{ref_key:"editorRef",ref:t,modelValue:r.handler.value,"onUpdate:modelValue":s[0]||(s[0]=l=>r.handler.value=l),dark:"",height:"350px"},null,8,["modelValue"])]),_:1})]),_:1},8,["block","context","model"]))}}),P4=O({name:"EventsWidget",__name:"index",setup(n){const{current:e,context:t}=Pe(),{selected:r}=vt(),{mouseEventList:i,keyboardEventList:o,componentEventList:a}=Fw(r),s=B({name:"",event:void 0}),l=B(!1),u=f=>{s.value=Jn(f),l.value=!0},c=async f=>{const v={...f,modifiers:f.modifiers.reduce((g,k)=>(g[k]=!0,g),{})};return Me(v.handler,t.value,!0)?((r.value?.model).setEvent(v),!0):!1},p=async f=>{const v=r.value?.model;f.name&&(v.removeEvent(f.name),l.value=!1)},h=async()=>{s.value.name&&await _n("确定要删除该事件吗?")&&p(s.value)},m=f=>{const{name:v,modelValue:g}=f;v==="edit"&&u(g),v==="remove"&&p(g)};return(f,v)=>(y(),$(d(ae),{class:"v-events-widget",direction:"column",fit:""},{default:S(()=>[w(d(me),{title:"组件事件",class:"v-sub-panel",size:"small",fit:!1},{default:S(()=>[d(a).length?M("",!0):(y(),$(d(Be),{key:0,"image-size":50,description:"该组件无自带事件"})),(y(!0),R(ne,null,oe(d(a),g=>(y(),$(d(Ie),{key:`component_${g.name}`,title:g.name,"model-value":g,border:"",small:"",actions:g.event?["edit","remove"]:["edit"],active:!!g.event,onClick:k=>u(g),onAction:m},null,8,["title","model-value","actions","active","onClick"]))),128))]),_:1}),w(d(me),{title:"鼠标事件",class:"v-sub-panel",size:"small",fit:!1},{default:S(()=>[(y(!0),R(ne,null,oe(d(i),g=>(y(),$(d(Ie),{key:`mouse_${g.name}`,title:g.name,"model-value":g,border:"",small:"",actions:g.event?["edit","remove"]:["edit"],active:!!g.event,onClick:k=>u(g),onAction:m},null,8,["title","model-value","actions","active","onClick"]))),128))]),_:1}),w(d(me),{title:"键盘事件",class:"v-sub-panel",size:"small",grow:"",fit:!1},{default:S(()=>[(y(!0),R(ne,null,oe(d(o),g=>(y(),$(d(Ie),{key:`keyboard_${g.name}`,title:g.name,"model-value":g,border:"",small:"",actions:g.event?["edit","remove"]:["edit"],active:!!g.event,onClick:k=>u(g),onAction:m},null,8,["title","model-value","actions","active","onClick"]))),128))]),_:1}),l.value?(y(),$(d(R4),{key:0,modelValue:l.value,"onUpdate:modelValue":v[0]||(v[0]=g=>l.value=g),context:d(t),current:d(e),name:s.value.name,event:s.value.event,submitMethod:c,onUnbind:h},null,8,["modelValue","context","current","name","event"])):M("",!0)]),_:1}))}}),N4=O({name:"CssWidget",__name:"index",setup(n){const{current:e}=Pe(),t=B(),r=T(()=>e.value?.css||""),i=a=>{e.value?.setCss(a)},o=()=>{const a=(t.value?.getEditor()).getValue();i(a),Je("保存成功")};return(a,s)=>(y(),$(d(me),{class:"v-css-widget v-sub-panel",title:"lang:css scoped",size:"small",fit:"",save:"",onSave:o},{default:S(()=>[w(d(Te),{ref_key:"editorRef",ref:t,"model-value":r.value,height:"100%",lang:"css",dark:"",onBlur:i},null,8,["model-value"])]),_:1}))}}),F4=O({name:"DirectivesWidget",__name:"index",setup(n){const{current:e,context:t}=Pe(),{selected:r}=vt(),{vIf:i,vShow:o,vBind:a,vFor:s,vModels:l,onValueChange:u,onForChange:c,onModelChange:p}=Jw(r),h=m=>m.arg?typeof m.arg=="string"?m.arg:Dt(m.arg,{}):"modelValue";return(m,f)=>(y(),$(d(ae),{class:"v-directives-widget",direction:"column",fit:""},{default:S(()=>[w(d(me),{class:"v-sub-panel",title:"内置指令",size:"small",fit:!1},{default:S(()=>[w(d(We),{size:"small","label-width":"80px",onKeydown:f[0]||(f[0]=Tn(an(()=>{},["prevent","stop"]),["enter"]))},{default:S(()=>[w(d(he),{name:"vIf",label:"v-if",setters:"ExpressionSetter",current:d(e),context:d(t),value:d(i).value,onChange:d(u)},null,8,["current","context","value","onChange"]),w(d(he),{name:"vShow",label:"v-show",setters:"ExpressionSetter",current:d(e),context:d(t),value:d(o).value,onChange:d(u)},null,8,["current","context","value","onChange"]),w(d(he),{name:"vBind",label:"v-bind",setters:"ExpressionSetter",current:d(e),context:d(t),value:d(a).value,onChange:d(u)},null,8,["current","context","value","onChange"])]),_:1})]),_:1}),w(d(me),{class:"v-sub-panel",title:"循环",size:"small",fit:!1},{default:S(()=>[w(d(We),{size:"small","label-width":"80px",onKeydown:f[1]||(f[1]=Tn(an(()=>{},["prevent","stop"]),["enter"]))},{default:S(()=>[w(d(he),{name:"value",label:"循环数据",setters:"ExpressionSetter",current:d(e),context:d(t),value:d(s).value,onChange:d(c)},null,8,["current","context","value","onChange"]),w(d(he),{name:"item",label:"迭代变量名",setters:{name:"StringSetter",props:{placeholder:"item"}},current:d(e),context:d(t),value:d(s).iterator?.item,onChange:d(c)},null,8,["current","context","value","onChange"]),w(d(he),{name:"index",label:"索引变量名",setters:{name:"StringSetter",props:{placeholder:"index"}},current:d(e),context:d(t),value:d(s).iterator?.index,onChange:d(c)},null,8,["current","context","value","onChange"])]),_:1})]),_:1}),w(d(me),{class:"v-sub-panel",title:"双向绑定",size:"small",fit:!1,grow:""},{default:S(()=>[(y(!0),R(ne,null,oe(d(l),(v,g)=>(y(),$(d(me),{card:"",border:"",class:"v-sub-panel",size:"small",title:`v-model: ${h(v)}`,body:{grow:!1},fit:!1},{default:S(()=>[w(d(We),{size:"small","label-width":"60px",onKeydown:f[2]||(f[2]=Tn(an(()=>{},["prevent","stop"]),["enter"]))},{default:S(()=>[w(d(he),{name:g.toString(),label:"绑定变量",setters:"ExpressionSetter",current:d(e),context:d(t),value:v.value,onChange:d(p)},null,8,["name","current","context","value","onChange"])]),_:2},1024)]),_:2},1032,["title"]))),256)),d(l).length?M("",!0):(y(),$(d(Be),{key:0,description:"当前组件没有双向绑定属性","image-size":50}))]),_:1})]),_:1}))}}),H4=O({name:"DefinedPropsDialog",__name:"props",props:{item:{},current:{},context:{}},setup(n){const e=n,t=T(()=>e.item?"编辑定义属性":"新增定义属性"),r=B(Object.assign({default:{type:"JSExpression",value:""}},e.item)),i=Object.keys(jc).map(a=>({label:a,value:a})),o=async a=>{const s=a.default;return s&&!Me(s,e.context,!0)?!1:(e.current.setProp(a),!0)};return(a,s)=>(y(),$(d(ft),{title:t.value,width:"800px",height:"500px",model:r.value,"form-props":{tooltipMessage:!1},"submit-method":o},{default:S(()=>[w(d(te),{name:"name",label:"属性名称",required:"",tip:"名称为英文驼峰格式",disabled:!!e.item,rules:{message:"名称格式错误",pattern:d(St)}},null,8,["disabled","rules"]),w(d(te),{name:"type",label:"数据类型",editor:"checkbox",props:{button:!0,size:"small"},options:d(i),required:""},null,8,["options"]),w(d(te),{name:"required",label:"必须",editor:"switch"}),w(d(te),{name:"default.value",label:"默认值",editor:"none"},{default:S(()=>[w(d(Te),{modelValue:r.value.default.value,"onUpdate:modelValue":s[0]||(s[0]=l=>r.value.default.value=l),height:"200px",dark:""},null,8,["modelValue"])]),_:1})]),_:1},8,["title","model"]))}}),L4=O({name:"DefinedEventsDialog",__name:"events",props:{item:{},current:{},context:{}},setup(n){const e=n,t=T(()=>e.item?"编辑定义事件":"新增定义事件"),r=B({name:e.item}),i=async o=>(e.item&&e.current.removeEmit(e.item,!0),e.current.setEmit(o.name),!0);return(o,a)=>(y(),$(d(ft),{title:t.value,width:"600px",height:"200px",model:r.value,"form-props":{tooltipMessage:!1},"submit-method":i},{default:S(()=>[w(d(te),{name:"name",label:"事件名称",required:"",disabled:!!e.item,rules:{message:"名称格式错误",pattern:d(St)}},null,8,["disabled","rules"])]),_:1},8,["title","model"]))}}),U4=O({name:"DefinedSlotsDialog",__name:"slots",props:{item:{},current:{},context:{}},setup(n){const e=n,t=T(()=>e.item?"编辑定义插槽":"新增定义插槽"),r=B({name:e.item}),i=async o=>(e.item&&e.current.removeSlot(e.item,!0),e.current.setSlot(o.name),!0);return(o,a)=>(y(),$(d(ft),{title:t.value,width:"600px",height:"200px",model:r.value,"form-props":{tooltipMessage:!1},"submit-method":i},{default:S(()=>[w(d(te),{name:"name",label:"插槽名称",disabled:!!e.item,required:"",rules:{message:"名称格式错误",pattern:d(St)}},null,8,["disabled","rules"])]),_:1},8,["title","model"]))}}),J4=O({name:"DefinedInjectsDialog",__name:"injects",props:{item:{},current:{},context:{}},setup(n){const e=n,t=T(()=>e.item?"编辑注入":"新增注入"),r=B(Object.assign({default:{type:"JSExpression",value:""}},e.item)),i=async o=>{const a=o.default;return a&&!Me(a,e.context,!0)?!1:(e.current.setInject(o),!0)};return(o,a)=>(y(),$(d(ft),{title:t.value,width:"800px",height:"500px",model:r.value,"form-props":{tooltipMessage:!1},"submit-method":i},{default:S(()=>[w(d(te),{name:"name",label:"注入名称",required:"",tip:"名称为英文驼峰格式",disabled:!!e.item,rules:{message:"名称格式错误",pattern:d(St)}},null,8,["disabled","rules"]),w(d(te),{name:"from",label:"来源名称",tip:"默认和注入名称一致"}),w(d(te),{name:"default.value",label:"默认值",editor:"none"},{default:S(()=>[w(d(Te),{modelValue:r.value.default.value,"onUpdate:modelValue":a[0]||(a[0]=s=>r.value.default.value=s),height:"200px",dark:""},null,8,["modelValue"])]),_:1})]),_:1},8,["title","model"]))}}),q4=O({name:"DefinedWidget",__name:"index",setup(n){const{current:e,context:t}=Pe(),r=T(()=>(e.value?.props||[]).map(A=>typeof A=="string"?{name:A}:A)),i=T(()=>e.value?.emits||[]),o=T(()=>e.value?.slots||[]),a=T(()=>e.value?.inject||[]),s=B(!1),l=B(),u=B(!1),c=B(),p=B(!1),h=B(),m=B(!1),f=B(),v=()=>{l.value=void 0,s.value=!0},g=A=>{const{name:F,modelValue:z}=A;F==="edit"&&k(z),F==="remove"&&e.value?.removeProp(z)},k=A=>{l.value=A,s.value=!0},b=()=>{c.value=void 0,u.value=!0},_=A=>{c.value=A,u.value=!0},V=A=>{const{name:F,modelValue:z}=A;F==="edit"&&_(z),F==="remove"&&e.value?.removeEmit(z)},j=()=>{h.value=void 0,p.value=!0},x=A=>{h.value=A,p.value=!0},E=A=>{const{name:F,modelValue:z}=A;F==="edit"&&x(z),F==="remove"&&e.value?.removeSlot(z)},D=()=>{f.value=void 0,m.value=!0},Z=A=>{f.value=A,m.value=!0},C=A=>{const{name:F,modelValue:z}=A;F==="edit"&&Z(z),F==="remove"&&e.value?.removeInject(z)};return(A,F)=>d(e)&&d(t)?(y(),$(d(ae),{key:0,class:"v-defined-widget",direction:"column",fit:""},{default:S(()=>[w(d(me),{class:"v-sub-panel",title:"定义属性",size:"small",plus:"",fit:!1,onPlus:v},{default:S(()=>[(y(!0),R(ne,null,oe(r.value,z=>(y(),$(d(Ie),{"model-value":z,title:z.name,border:"",actions:["edit","remove"],onClick:G=>k(z),onAction:g},null,8,["model-value","title","onClick"]))),256)),r.value.length?M("",!0):(y(),$(d(Be),{key:0,"image-size":50})),s.value?(y(),$(H4,{key:1,current:d(e),context:d(t),modelValue:s.value,"onUpdate:modelValue":F[0]||(F[0]=z=>s.value=z),item:l.value},null,8,["current","context","modelValue","item"])):M("",!0)]),_:1}),w(d(me),{class:"v-sub-panel",title:"定义事件",size:"small",plus:"",fit:!1,onPlus:b},{default:S(()=>[(y(!0),R(ne,null,oe(i.value,z=>(y(),$(d(Ie),{"model-value":z,title:z,border:"",actions:["remove"],onClick:G=>_(z),onAction:V},null,8,["model-value","title","onClick"]))),256)),i.value.length?M("",!0):(y(),$(d(Be),{key:0,"image-size":50})),u.value?(y(),$(L4,{key:1,modelValue:u.value,"onUpdate:modelValue":F[1]||(F[1]=z=>u.value=z),current:d(e),context:d(t),item:c.value},null,8,["modelValue","current","context","item"])):M("",!0)]),_:1}),w(d(me),{class:"v-sub-panel",title:"定义插槽",size:"small",plus:"",fit:!1,onPlus:j},{default:S(()=>[(y(!0),R(ne,null,oe(o.value,z=>(y(),$(d(Ie),{"model-value":z,title:z,border:"",actions:["remove"],onClick:G=>x(z),onAction:E},null,8,["model-value","title","onClick"]))),256)),o.value.length?M("",!0):(y(),$(d(Be),{key:0,"image-size":50})),p.value?(y(),$(U4,{key:1,modelValue:p.value,"onUpdate:modelValue":F[2]||(F[2]=z=>p.value=z),current:d(e),context:d(t),item:h.value},null,8,["modelValue","current","context","item"])):M("",!0)]),_:1}),w(d(me),{class:"v-sub-panel",title:"注入",size:"small",plus:"",fit:!1,grow:"",onPlus:D},{default:S(()=>[(y(!0),R(ne,null,oe(a.value,z=>(y(),$(d(Ie),{"model-value":z,title:z.name,border:"",actions:["remove"],onClick:G=>Z(z),onAction:C},null,8,["model-value","title","onClick"]))),256)),a.value.length?M("",!0):(y(),$(d(Be),{key:0,"image-size":50})),m.value?(y(),$(J4,{key:1,modelValue:m.value,"onUpdate:modelValue":F[3]||(F[3]=z=>m.value=z),current:d(e),context:d(t),item:f.value},null,8,["modelValue","current","context","item"])):M("",!0)]),_:1})]),_:1})):M("",!0)}}),W4=O({name:"DataSourceDialogForm",__name:"form",props:{context:{},current:{},item:{}},setup(n){const e=n,{apis:t}=qw(),r=B(Object.assign({type:"api",ref:"",name:"",label:"",transform:{type:"JSFunction",value:`(res) => {
91
+ /* 在这里可对接口返回数据进行转换 */
92
+ return res;
93
+ }`},test:{type:"JSFunction",value:`() => this.runApi({
94
+ /* 在这里可输入接口参数 */
95
+ })`}},e.item)),i=B(!1),o=B(""),a=B(!1),s=T(()=>t.value.map(h=>({label:h.label||"",value:h.id,data:h}))),l=T(()=>e.item?"编辑数据源":"新增数据源"),u=h=>{const m=t.value.find(f=>f.id===h);m&&(r.value.name=m.name,r.value.label=m.label||"")},c=async h=>{const{transform:m,test:f,name:v}=h;if(!e.current)return!1;if(!e.item&&e.current.dataSources[v])return Ae(`名称【${v}】已经存在,请更换名称`),!1;if(m?.value){if(!Me(m,e.context,!0))return!1}else h.transform=void 0;if(f?.value){if(!Me(f,e.context,!0))return!1}else h.test=void 0;return e.current?.setDataSource(h),!0},p=async()=>{if(!e.context)return;if(!r.value.ref){Ae("请先选择API");return}if(!r.value.test?.value){Ae("请先填写测试用例");return}if(!Me(r.value.test,e.context,!0))return;const h=async(...v)=>{const g=e.context?.$apis[r.value.ref];if(g)return await g.apply(g,v);Ye.warn(`API【${r.value.ref}】不存在`)},m=Dt(r.value.test,{runApi:h}),f=r.value.transform?.value?Dt(r.value.transform,{},!0):v=>v;i.value=!0;try{const v=await m();o.value=JSON.stringify(await f(v),null,2)}catch(v){Ye.error(v)}i.value=!1,a.value=!0};return(h,m)=>(y(),$(d(ft),{width:"1000px",height:"600px",title:l.value,model:r.value,"form-props":{tooltipMessage:!1},"submit-method":c},{extra:S(()=>[w(d(Ce),{loading:i.value,type:"warning",onClick:p},{default:S(()=>[de(" 运行测试用例 ")]),_:1},8,["loading"])]),default:S(()=>[w(d(te),{name:"ref",label:"引用API",editor:"select",required:"",disabled:!!e.item,options:s.value,props:{filterable:!0},onChange:u},{option:S(({option:f})=>[de(ee(f.data.label)+" ",1),I("i",null,"[ "+ee(f.data.name)+" ]",1)]),_:1},8,["disabled","options"]),w(d(te),{name:"name",label:"调用名称",required:"",tip:"名称为英文驼峰格式",disabled:!!e.item,rules:{message:"名称格式错误",pattern:d(St)}},null,8,["disabled","rules"]),w(d(te),{name:"label",label:"备注说明",required:""}),w(d(te),{name:"transform.value",label:"转换函数",editor:"none"},{default:S(()=>[w(d(Te),{modelValue:r.value.transform.value,"onUpdate:modelValue":m[0]||(m[0]=f=>r.value.transform.value=f),height:"200px",dark:""},null,8,["modelValue"])]),_:1}),w(d(te),{name:"test.value",label:"测试用例",editor:"none"},{default:S(()=>[w(d(Te),{modelValue:r.value.test.value,"onUpdate:modelValue":m[1]||(m[1]=f=>r.value.test.value=f),height:"100px",dark:""},null,8,["modelValue"])]),_:1}),a.value?(y(),$(d(wd),{key:0,class:"v-drawer",modelValue:a.value,"onUpdate:modelValue":m[2]||(m[2]=f=>a.value=f),title:"测试用例运行结果",direction:"btt","append-to-body":"",size:"80%"},{default:S(()=>[w(d(Te),{"model-value":o.value,border:"",dark:"",height:"100%",lang:"json"},null,8,["model-value"])]),_:1},8,["modelValue"])):M("",!0)]),_:1},8,["title","model"]))}}),K4=O({name:"DataSourcesWidget",__name:"index",setup(n){const{current:e,context:t}=Pe(),r=B(!1),i=B(),o=T(()=>Object.values(e.value?.dataSources||{}).filter(u=>u.type==="api")),a=()=>{i.value=void 0,r.value=!0},s=u=>{i.value=u,r.value=!0},l=u=>{const{name:c,modelValue:p}=u;c==="edit"&&s(p),c==="remove"&&e.value?.removeDataSource(p.name)};return(u,c)=>(y(),$(d(ae),{class:"v-data-sources-widget",direction:"column",fit:""},{default:S(()=>[w(d(me),{title:"API",class:"v-sub-panel",size:"small",plus:"",onPlus:a},{default:S(()=>[(y(!0),R(ne,null,oe(o.value,p=>(y(),$(d(Ie),{border:"",title:p.name,subtitle:p.label,"model-value":p,actions:["edit","remove"],onAction:l,onClick:h=>s(p)},null,8,["title","subtitle","model-value","onClick"]))),256)),o.value.length?M("",!0):(y(),$(d(Be),{key:0,"image-size":50}))]),_:1}),r.value?(y(),$(W4,{key:0,modelValue:r.value,"onUpdate:modelValue":c[0]||(c[0]=p=>r.value=p),current:d(e),context:d(t),item:i.value},null,8,["modelValue","current","context","item"])):M("",!0)]),_:1}))}}),Y4=O({__name:"layout",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=B();ce(()=>e.styleJson.display,u=>{t.value=u==="flex"},{immediate:!0});const r=[{label:"block-块级布局",value:"block",svg:Sy},{label:"flex-弹性布局",value:"flex",svg:ky},{label:"inline-block-行内块级布局",value:"inline-block",svg:$y},{label:"inline-行内布局",value:"inline",svg:jy},{label:"invisible-不可见",value:"none",svg:Vy}],i=[{label:"row-水平",value:"row",svg:Iy},{label:"row-reverse-水平",value:"row-reverse",svg:Dy},{label:"column-垂直",value:"column",svg:Oy},{label:"column-reverse-垂直",value:"column-reverse",svg:zy}],o=[{label:"flex-start",value:"flex-start",svg:Py},{label:"flex-end",value:"flex-end",svg:Ry},{label:"center",value:"center",svg:My},{label:"space-between",value:"space-between",svg:Fy},{label:"space-around",value:"space-around",svg:Ny}],a=[{label:"不换行",value:"nowrap"},{label:"正换行",value:"wrap"},{label:"逆换行",value:"wrap-reverse"}],s=[{label:"flex-start",value:"flex-start",svg:Ty},{label:"flex-end",value:"flex-end",svg:Ay},{label:"center",value:"center",svg:Cy},{label:"baseline",value:"baseline",svg:Ey},{label:"stretch",value:"stretch",svg:By}],l=(u,c)=>{t.value=c==="flex",e.setStyle("display",c),t.value||(e.setStyle("flex-direction",void 0),e.setStyle("justify-content",void 0),e.setStyle("align-items",void 0),e.setStyle("flex-wrap",void 0))};return(u,c)=>(y(),$(d(me),{title:"布局",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:S(()=>[w(d(We),{size:"small","label-width":"80px"},{default:S(()=>[w(d(he),{name:"display",label:"排布",setters:{name:"TagSetter"},options:r,variable:!1,value:e.styleJson.display,onChange:l},null,8,["value"]),t.value?(y(),R(ne,{key:0},[w(d(he),{name:"flex-direction",label:"主轴方向",setters:{name:"TagSetter"},options:i,variable:!1,value:e.styleJson["flex-direction"],onChange:e.setStyle},null,8,["value","onChange"]),w(d(he),{name:"justify-content",label:"主轴对齐",setters:{name:"TagSetter"},options:o,variable:!1,value:e.styleJson["justify-content"],onChange:e.setStyle},null,8,["value","onChange"]),w(d(he),{name:"align-items",label:"辅轴对齐",setters:{name:"TagSetter"},options:s,variable:!1,value:e.styleJson["align-items"],onChange:e.setStyle},null,8,["value","onChange"]),w(d(he),{name:"flex-wrap",label:"换行模式",setters:{name:"TagSetter"},options:a,variable:!1,value:e.styleJson["flex-wrap"],onChange:e.setStyle},null,8,["value","onChange"])],64)):M("",!0)]),_:1})]),_:1}))}}),G4=O({name:"StyleWidget",__name:"JsonMode",setup(n){const{selected:e}=vt(),t=B(),r=T(()=>{const s=e.value?.model||null;return $e(s)?null:s}),i=T(()=>JSON.stringify(r.value?.getPropValue("style")||{},null,2)),o=s=>{try{const l=JSON.parse(s);r.value?.setProp("style",l)}catch{Ae("JSON格式错误")}},a=()=>{const s=(t.value?.getEditor()).getValue();o(s),Je("保存成功")};return(s,l)=>(y(),$(d(me),{class:"v-css-widget v-sub-panel",title:"JSON",size:"small",fit:"",save:"",onSave:a},{default:S(()=>[w(d(Te),{ref_key:"editorRef",ref:t,"model-value":i.value,height:"100%",lang:"json",dark:"",onBlur:o},null,8,["model-value"])]),_:1}))}}),Z4={class:"v-spacing-input"},X4=I("div",{class:"v-spacing-input__modal"},null,-1),Q4={class:"v-spacing-input__content"},e8=["onClick"],Fc=O({__name:"spacing-input",props:{name:{},modelValue:{},auto:{type:Boolean}},emits:["close","update:modelValue","submit"],setup(n,{emit:e}){const t=[0,10,20,40,60,100,140,220],r=n,i=e,o=T(()=>r.auto||r.name.includes("margin")),a=B(),s=B(r.modelValue),l=B("px");Id(a,()=>{i("close")});const u=m=>{s.value=typeof m=="number"?`${m}px`:"auto",c(s.value)},c=m=>{l.value=m==="auto"?void 0:"px"},p=()=>{s.value?(i("update:modelValue",s.value),i("submit",r.name,s.value),i("close")):Ae("请输入有效值","提示")},h=()=>{s.value=void 0,i("update:modelValue",s.value),i("submit",r.name,void 0),i("close")};return(m,f)=>(y(),R("div",Z4,[X4,I("div",Q4,[w(d(ae),{class:"v-spacing-input__body",ref_key:"bodyRef",ref:a,direction:"column"},{default:S(()=>[w(d(ae),null,{default:S(()=>[w(d($c),{modelValue:s.value,"onUpdate:modelValue":f[0]||(f[0]=v=>s.value=v),size:"small","with-unit":!!l.value,unit:l.value,format:l.value?"0":void 0,onChange:c},null,8,["modelValue","with-unit","unit","format"])]),_:1}),w(d(ae),null,{default:S(()=>[o.value?(y(),$(d(ae),{key:0,class:"v-spacing-input__auto",width:"20%"},{default:S(()=>[I("span",{onClick:f[1]||(f[1]=v=>u("auto"))},"auto")]),_:1})):M("",!0),w(d(ae),{grow:"",class:"v-spacing-input__values",align:"center",wrap:"wrap"},{default:S(()=>[(y(),R(ne,null,oe(t,v=>I("span",{onClick:g=>u(v)},ee(v),9,e8)),64))]),_:1})]),_:1}),w(d(ae),null,{default:S(()=>[w(d(Ce),{size:"small",type:"primary",round:"",style:{width:"100%"},onClick:p},{default:S(()=>[de(" 确定 ")]),_:1}),w(d(Ce),{size:"small",round:"",style:{width:"100%"},onClick:h},{default:S(()=>[de(" 重置 ")]),_:1})]),_:1})]),_:1},512)])]))}}),t8={class:"spacing-wrap"},n8={class:"spacing-max-icon"},r8=["width","height"],i8=["d"],o8=["d"],a8=["d"],s8=["d"],l8={id:"margin-outer"},u8=["width","height"],c8=["width","height"],d8={id:"margin-inner"},p8=["width","height"],h8=["width","height"],m8=["width","height"],f8=["d"],v8=["d"],g8=["d"],y8=["d"],b8={id:"padding-outer"},w8=["width","height"],_8=["width","height"],x8={id:"padding-inner"},S8=["width","height"],k8=["width","height"],$8={xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",style:{"grid-area":"3 / 3 / span 3 / span 3","pointer-events":"none"}},j8=I("text",{x:"6",y:"4",fill:"#a6a6a6","font-style":"italic","font-weight":"bold","font-size":"8","dominant-baseline":"hanging"}," padding ",-1),V8=[j8],E8={xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",style:{"grid-area":"1 / 1 / -1 / -1","pointer-events":"none"}},C8=I("text",{x:"6",y:"4",fill:"#a6a6a6","font-style":"italic","font-weight":"bold","font-size":"8","dominant-baseline":"hanging"}," margin ",-1),A8=[C8],_e=36,xe=24,T8=O({__name:"spacing",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=B(),r=B(),{width:i,height:o}=dn(t),{width:a,height:s}=dn(r),l=B(!1),u=B(),c=B(),p=()=>{l.value=!1,u.value=void 0,c.value=void 0},h=m=>{u.value=m,c.value=e.styleJson[m],l.value=!0};return(m,f)=>(y(),$(d(me),{title:"间距",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:S(()=>[I("div",{class:"v-style-widget__spacing",ref_key:"container",ref:t},[I("div",t8,[I("div",n8,[d(i)&&d(o)?(y(),R("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",width:d(i),height:d(o),style:{"grid-area":"1 / 1 / -1 / -1"}},[I("g",null,[I("g",null,[I("path",{mode:"delta",fill:"currentColor",d:`
96
+ m1,1
97
+ h${d(i)-1}
98
+ l-${_e},${xe}
99
+ h-${d(i)-2*_e}
100
+ l-${_e},-${xe}z`,"data-automation-id":"margin-top-button","aria-label":"Margin top button",class:"tb-path-color",onClick:f[0]||(f[0]=v=>h("margin-top"))},null,8,i8)])]),I("g",null,[I("g",null,[I("path",{mode:"delta",fill:"currentColor",d:`
101
+ m${d(i)-1},1
102
+ v${d(o)-1}
103
+ l-${_e},-${xe}
104
+ v-${d(o)-2*xe}
105
+ l${_e},-${xe}z`,"data-automation-id":"margin-right-button","aria-label":"Margin right button",class:"lr-path-color",onClick:f[1]||(f[1]=v=>h("margin-right"))},null,8,o8)])]),I("g",null,[I("g",null,[I("path",{mode:"delta",fill:"currentColor",d:`
106
+ m1,${d(o)-1}
107
+ h${d(i)-1}
108
+ l-${_e},-${xe}
109
+ h-${d(i)-2*_e}
110
+ l-${_e},${xe}z`,"data-automation-id":"margin-bottom-button","aria-label":"Margin bottom button",class:"tb-path-color",onClick:f[2]||(f[2]=v=>h("margin-bottom"))},null,8,a8)])]),I("g",null,[I("g",null,[I("path",{mode:"delta",fill:"currentColor",d:`
111
+ m1,1
112
+ v${d(o)-1}
113
+ l${_e},-${xe}
114
+ v-${d(o)-2*xe}
115
+ l-${_e},-${xe}z`,"data-automation-id":"margin-left-button","aria-label":"Margin left button",class:"lr-path-color",onClick:f[3]||(f[3]=v=>h("margin-left"))},null,8,s8)])]),I("clipPath",l8,[I("rect",{x:"0",y:"0",width:d(i),height:d(o),fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none"}},null,8,u8)]),I("rect",{class:"stroke","clip-path":"url(#margin-outer)",x:"0",y:"0",width:d(i),height:d(o),fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none","stroke-width":"2px"}},null,8,c8),I("clipPath",d8,[I("rect",{x:"36",y:"24",width:d(i)-2*_e+1,height:d(o)-2*xe+1,fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none"}},null,8,p8)]),I("rect",{class:"stroke","clip-path":"url(#margin-inner)",x:"36",y:"24",width:d(i)-2*_e+1,height:d(o)-2*xe+1,fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none","stroke-width":"2px"}},null,8,h8)],8,r8)):M("",!0),I("div",{class:ue(["spacing-edit margin-top",{"is-setting":e.styleJson["margin-top"]}]),onClick:f[4]||(f[4]=v=>h("margin-top"))},ee(e.styleJson["margin-top"]||"-"),3),I("div",{class:ue(["spacing-edit margin-right",{"is-setting":e.styleJson["margin-right"]}]),onClick:f[5]||(f[5]=v=>h("margin-right"))},ee(e.styleJson["margin-right"]||"-"),3),I("div",{class:ue(["spacing-edit margin-bottom",{"is-setting":e.styleJson["margin-bottom"]}]),onClick:f[6]||(f[6]=v=>h("margin-bottom"))},ee(e.styleJson["margin-bottom"]||"-"),3),I("div",{class:ue(["spacing-edit margin-left",{"is-setting":e.styleJson["margin-left"]}]),onClick:f[7]||(f[7]=v=>h("margin-left"))},ee(e.styleJson["margin-left"]||"-"),3)]),I("div",{ref_key:"inner",ref:r,class:"spacing-min-icon"},[d(i)&&d(o)?(y(),R("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",width:d(a),height:d(s),style:{"grid-area":"1 / 1 / -1 / -1"}},[I("g",null,[I("g",null,[I("path",{mode:"delta",fill:"currentColor",d:`
116
+ m1,1
117
+ h${d(a)-1}
118
+ l-${_e},${xe}
119
+ h-${d(a)-2*_e}
120
+ l-${_e},-${xe}z`,"data-automation-id":"padding-top-button","aria-label":"Padding top button",class:"tb-path-color",onClick:f[8]||(f[8]=v=>h("padding-top"))},null,8,f8)])]),I("g",null,[I("g",null,[I("path",{mode:"delta",fill:"currentColor",d:`
121
+ m${d(a)-1},1
122
+ v${d(s)-1}
123
+ l-${_e},-${xe}
124
+ v-${d(s)-2*xe}
125
+ l${_e},-${xe}z`,"data-automation-id":"padding-right-button","aria-label":"Padding right button",class:"lr-path-color",onClick:f[9]||(f[9]=v=>h("padding-right"))},null,8,v8)])]),I("g",null,[I("g",null,[I("path",{mode:"delta",fill:"currentColor",d:`
126
+ m1,${d(s)-1}
127
+ h${d(a)-1}
128
+ l-${_e},-${xe}
129
+ h-${d(a)-2*_e}
130
+ l-${_e},${xe}z`,"data-automation-id":"padding-bottom-button","aria-label":"Padding bottom button",class:"tb-path-color",onClick:f[10]||(f[10]=v=>h("padding-bottom"))},null,8,g8)])]),I("g",null,[I("g",null,[I("path",{mode:"delta",fill:"currentColor",d:`
131
+ m1,1
132
+ v${d(s)-1}
133
+ l${_e},-${xe}
134
+ v-${d(s)-2*xe}
135
+ l-${_e},-${xe}z`,"data-automation-id":"padding-left-button","aria-label":"Padding left button",class:"lr-path-color",onClick:f[11]||(f[11]=v=>h("padding-left"))},null,8,y8)])]),I("clipPath",b8,[I("rect",{x:"0",y:"0",width:d(a),height:d(s),fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none"}},null,8,w8)]),I("rect",{class:"stroke","clip-path":"url(#padding-outer)",x:"0",y:"0",width:d(a),height:d(s),fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none","stroke-width":"2px"}},null,8,_8),I("clipPath",x8,[I("rect",{x:"36",y:"24",width:d(a)-2*_e+1,height:d(s)-2*xe+1,fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none"}},null,8,S8)]),I("rect",{class:"stroke","clip-path":"url(#padding-inner)",x:"36",y:"24",width:d(a)-2*_e+1,height:d(s)-2*xe+1,fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none","stroke-width":"2px"}},null,8,k8)],8,m8)):M("",!0),I("div",{class:ue(["spacing-edit padding-top",{"is-setting":e.styleJson["padding-top"]}]),onClick:f[12]||(f[12]=v=>h("padding-top"))},ee(e.styleJson["padding-top"]||"-"),3),I("div",{class:ue(["spacing-edit padding-right",{"is-setting":e.styleJson["padding-right"]}]),onClick:f[13]||(f[13]=v=>h("padding-right"))},ee(e.styleJson["padding-right"]||"-"),3),I("div",{class:ue(["spacing-edit padding-bottom",{"is-setting":e.styleJson["padding-bottom"]}]),onClick:f[14]||(f[14]=v=>h("padding-bottom"))},ee(e.styleJson["padding-bottom"]||"-"),3),I("div",{class:ue(["spacing-edit padding-left",{"is-setting":e.styleJson["padding-left"]}]),onClick:f[15]||(f[15]=v=>h("padding-left"))},ee(e.styleJson["padding-left"]||"-"),3)],512),(y(),R("svg",$8,V8)),(y(),R("svg",E8,A8))]),l.value?(y(),$(Fc,{key:0,name:u.value,modelValue:c.value,"onUpdate:modelValue":f[16]||(f[16]=v=>c.value=v),onClose:p,onSubmit:e.setStyle},null,8,["name","modelValue","onSubmit"])):M("",!0)],512)]),_:1}))}}),B8=O({__name:"sizing",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=[{name:"width",label:"宽(W)",setter:"SizeSetter"},{name:"height",label:"高(H)",setter:"SizeSetter"},{name:"min-width",label:"最小宽",setter:"SizeSetter"},{name:"min-height",label:"最小高",setter:"SizeSetter"},{name:"max-width",label:"最大宽",setter:"SizeSetter"},{name:"max-height",label:"最大高",setter:"SizeSetter"},{name:"overflow",label:"溢出",setter:"SelectSetter",options:[{label:"自动",value:"auto"},{label:"隐藏",value:"hidden"},{label:"滚动",value:"scroll"},{label:"显示",value:"visible"}]},{name:"object-fit",label:"适应",setter:"SelectSetter",options:[{label:"填充",value:"fill"},{label:"适应",value:"contain"},{label:"覆盖",value:"cover"},{label:"拉伸",value:"scale-down"},{label:"原始",value:"none"}]}];return(r,i)=>(y(),$(d(me),{title:"尺寸",class:"v-sub-panel v-",size:"small",fit:!1,collapsable:""},{default:S(()=>[w(d(We),{class:"v-style-widget__sizing",size:"small","label-width":"60px",inline:""},{default:S(()=>[(y(),R(ne,null,oe(t,o=>w(d(he),{name:o.name,label:o.label,setters:{name:o.setter},options:o.options,variable:!1,value:e.styleJson[o.name],onChange:r.setStyle},null,8,["name","label","setters","options","value","onChange"])),64))]),_:1})]),_:1}))}}),z8={class:"v-style-widget__positioning"},O8={class:"spacing-wrap"},D8=["width","height"],I8=["d"],M8=["d"],R8=["d"],P8=["d"],N8={id:"margin-outer"},F8=["width","height"],H8=["width","height"],L8={id:"margin-inner"},U8=["width","height"],J8=["width","height"],Ze=36,Xe=24,q8=O({__name:"positioning",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=B(),{width:r,height:i}=dn(t),o=B(!1),a=B(),s=B(),l=[{label:"静态",value:"static"},{label:"相对",value:"relative"},{label:"绝对",value:"absolute"},{label:"固定",value:"fixed"},{label:"粘性",value:"sticky"}],u=[{label:"左上",svg:Gy,value:"0% auto auto 0%"},{label:"右上",svg:Zy,value:"0% 0% auto auto"},{label:"左下",svg:Jy,value:"auto auto 0% 0%"},{label:"右下",svg:qy,value:"auto 0% 0% auto"},{label:"左",svg:Ky,value:"0% auto 0% 0%"},{label:"右",svg:Yy,value:"0% 0% 0% auto"},{label:"上",svg:Xy,value:"auto 0% 0% 0%"},{label:"下",svg:Wy,value:"0% 0% auto 0%"},{label:"填充",svg:Uy,value:"0% 0% 0% 0%"}],c=T(()=>(e.styleJson.inset||"").split(" ")),p=m=>{a.value=m,s.value=e.styleJson[m],o.value=!0},h=()=>{o.value=!1,a.value=void 0,s.value=void 0};return(m,f)=>(y(),$(d(me),{title:"定位",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:S(()=>[I("div",z8,[w(d(We),{"label-width":"60px",size:"small"},{default:S(()=>[w(d(he),{name:"position",label:"定位",setters:{name:"SelectSetter"},options:l,variable:!1,value:e.styleJson.position,onChange:e.setStyle},null,8,["value","onChange"]),w(d(he),{name:"inset",label:" ",setters:{name:"TagSetter"},options:u,variable:!1,value:e.styleJson.inset,onChange:e.setStyle},null,8,["value","onChange"]),w(d(Xi),{label:" "},{default:S(()=>[I("div",O8,[I("div",{ref_key:"inner",ref:t,class:"spacing-min-icon"},[d(r)&&d(r)?(y(),R("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",width:d(r),height:d(i),style:{"grid-area":"1 / 1 / -1 / -1"}},[I("g",null,[I("g",null,[I("path",{mode:"delta",fill:"currentColor",d:`
136
+ m1,1
137
+ h${d(r)-1}
138
+ l-${Ze},${Xe}
139
+ h-${d(r)-2*Ze}
140
+ l-${Ze},-${Xe}z`,"data-automation-id":"padding-top-button","aria-label":"Padding top button",class:"tb-path-color",onClick:f[0]||(f[0]=v=>p("top"))},null,8,I8)])]),I("g",null,[I("g",null,[I("path",{mode:"delta",fill:"currentColor",d:`
141
+ m${d(r)-1},1
142
+ v${d(i)-1}
143
+ l-${Ze},-${Xe}
144
+ v-${d(i)-2*Xe}
145
+ l${Ze},-${Xe}z`,"data-automation-id":"padding-right-button","aria-label":"Padding right button",class:"lr-path-color",onClick:f[1]||(f[1]=v=>p("right"))},null,8,M8)])]),I("g",null,[I("g",null,[I("path",{mode:"delta",fill:"currentColor",d:`
146
+ m1,${d(i)-1}
147
+ h${d(r)-1}
148
+ l-${Ze},-${Xe}
149
+ h-${d(r)-2*Ze}
150
+ l-${Ze},${Xe}z`,"data-automation-id":"padding-bottom-button","aria-label":"Padding bottom button",class:"tb-path-color",onClick:f[2]||(f[2]=v=>p("bottom"))},null,8,R8)])]),I("g",null,[I("g",null,[I("path",{mode:"delta",fill:"currentColor",d:`
151
+ m1,1
152
+ v${d(i)-1}
153
+ l${Ze},-${Xe}
154
+ v-${d(i)-2*Xe}
155
+ l-${Ze},-${Xe}z`,"data-automation-id":"padding-left-button","aria-label":"Padding left button",class:"lr-path-color",onClick:f[3]||(f[3]=v=>p("left"))},null,8,P8)])]),I("clipPath",N8,[I("rect",{x:"0",y:"0",width:d(r),height:d(i),fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none"}},null,8,F8)]),I("rect",{class:"stroke","clip-path":"url(#margin-outer)",x:"0",y:"0",width:d(r),height:d(i),fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none","stroke-width":"2px"}},null,8,H8),I("clipPath",L8,[I("rect",{x:"36",y:"24",width:d(r)-2*Ze+1,height:d(i)-2*Xe+1,fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none"}},null,8,U8)]),I("rect",{class:"stroke","clip-path":"url(#margin-inner)",x:"36",y:"24",width:d(r)-2*Ze+1,height:d(i)-2*Xe+1,fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none","stroke-width":"2px"}},null,8,J8)],8,D8)):M("",!0),I("div",{class:ue(["spacing-edit padding-top",{"is-setting":e.styleJson.top}]),onClick:f[4]||(f[4]=v=>p("top"))},ee(e.styleJson.top||c.value[0]||"-"),3),I("div",{class:ue(["spacing-edit padding-right",{"is-setting":e.styleJson.right}]),onClick:f[5]||(f[5]=v=>p("right"))},ee(e.styleJson.right||c.value[1]||"-"),3),I("div",{class:ue(["spacing-edit padding-bottom",{"is-setting":e.styleJson.bottom}]),onClick:f[6]||(f[6]=v=>p("bottom"))},ee(e.styleJson.bottom||c.value[2]||"-"),3),I("div",{class:ue(["spacing-edit padding-left",{"is-setting":e.styleJson.left}]),onClick:f[7]||(f[7]=v=>p("left"))},ee(e.styleJson.left||c.value[3]||"-"),3)],512),o.value?(y(),$(Fc,{key:0,auto:"",name:a.value,modelValue:s.value,"onUpdate:modelValue":f[8]||(f[8]=v=>s.value=v),onClose:h,onSubmit:e.setStyle},null,8,["name","modelValue","onSubmit"])):M("",!0)])]),_:1}),w(d(he),{name:"z-index",label:"层级",setters:{name:"NumberSetter"},variable:!1,value:e.styleJson["z-index"],onChange:e.setStyle},null,8,["value","onChange"])]),_:1})])]),_:1}))}}),W8=O({__name:"texting",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=[{name:"font-size",label:"字号",setter:"SizeSetter"},{name:"font-family",label:"字体",setter:"SelectSetter",options:["Arial","Verdana","Georgia",'"Times New Roman"','"Microsoft YaHei"',"SimSun","SimHei","KaiTi","FangSong","STSong","STKaiti","STFangsong","STCaiyun","STHupo","STLiti","STXingkai","STXinwei","STXinwei","STZhongsong"]},{name:"line-height",label:"行高",setter:"SizeSetter"},{name:"font-weight",label:"字重",setter:"SelectSetter",options:[{label:"正常",value:"normal"},{label:"粗体",value:"bold"},{label:"更粗",value:"bolder"},{label:"更细",value:"lighter"}]}],r=[{label:"左",value:"left",svg:t3},{label:"中",value:"center",svg:Qy},{label:"右",value:"right",svg:n3},{label:"两端",value:"justify",svg:e3}],i=[{label:"正常",value:"normal",svg:Ly},{label:"斜体",value:"italic",svg:Hy}],o=[{label:"无",value:"none",svg:Uu},{label:"下划线",value:"underline",svg:o3},{label:"删除线",value:"line-through",svg:i3},{label:"上划线",value:"overline",svg:r3}];return(a,s)=>(y(),$(d(me),{title:"文本",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:S(()=>[w(d(We),{class:"v-style-widget__texting",size:"small","label-width":"60px",inline:""},{default:S(()=>[(y(),R(ne,null,oe(t,l=>w(d(he),{name:l.name,label:l.label,setters:{name:l.setter},options:l.options,variable:!1,value:e.styleJson[l.name],onChange:a.setStyle},null,8,["name","label","setters","options","value","onChange"])),64))]),_:1}),w(d(We),{size:"small","label-width":"60px"},{default:S(()=>[w(d(he),{name:"color",label:"颜色",setters:{name:"ColorSetter"},variable:!1,value:e.styleJson.color,onChange:a.setStyle},null,8,["value","onChange"]),w(d(he),{name:"text-align",label:"对齐",setters:{name:"TagSetter"},variable:!1,options:r,value:e.styleJson["text-align"],onChange:a.setStyle},null,8,["value","onChange"]),w(d(he),{name:"font-style",label:"风格",setters:{name:"TagSetter"},variable:!1,options:i,value:e.styleJson["font-style"],onChange:a.setStyle},null,8,["value","onChange"]),w(d(he),{name:"text-decoration",label:"修饰",setters:{name:"TagSetter"},variable:!1,options:o,value:e.styleJson["text-decoration"],onChange:a.setStyle},null,8,["value","onChange"])]),_:1})]),_:1}))}}),K8=O({__name:"backgound",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=(l,u)=>{u?e.setStyle("background-image",`url(${u})`):e.setStyle("background-image",void 0)},r=l=>{const u=/^url\(([\w\W]+)\)$/;return l?.match(u)?.[1]},i=[{label:"重复",value:"repeat",svg:s3},{label:"水平重复",value:"repeat-x",svg:a3},{label:"垂直重复",value:"repeat-y",svg:l3},{label:"不重复",value:"no-repeat",svg:yy}],o=[{label:"固定",value:"fixed"},{label:"滚动",value:"scroll"}],a=[{label:"裁剪到填充",value:"padding-box"},{label:"裁剪到内容",value:"content-box"},{label:"裁剪到文字",value:"text"}],s=[{label:"自动",value:"auto"},{label:"长度",value:"length"},{label:"百分比",value:"percentage"},{label:"覆盖",value:"cover"},{label:"填充",value:"contain"}];return(l,u)=>(y(),$(d(me),{title:"背景",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:S(()=>[w(d(We),{"label-width":"60px",size:"small"},{default:S(()=>[w(d(he),{name:"background-image",label:"图片",setters:{name:"ImageSetter"},variable:!1,value:r(e.styleJson["background-image"]),onChange:t},null,8,["value"]),w(d(he),{name:"background-color",label:"颜色",setters:{name:"ColorSetter"},variable:!1,value:e.styleJson["background-color"],onChange:e.setStyle},null,8,["value","onChange"]),w(d(he),{name:"background-repeat",label:"重复",setters:{name:"TagSetter"},variable:!1,value:e.styleJson["background-repeat"],options:i,onChange:e.setStyle},null,8,["value","onChange"]),w(d(he),{name:"background-attachment",label:"固定",setters:{name:"RadioSetter"},variable:!1,value:e.styleJson["background-attachment"],options:o,onChange:e.setStyle},null,8,["value","onChange"]),w(d(he),{name:"background-position",label:"位置",setters:{name:"SectionSetter",props:{sections:2}},variable:!1,value:e.styleJson["background-position"],onChange:e.setStyle},null,8,["value","onChange"]),w(d(he),{name:"background-size",label:"大小",setters:{name:"SelectSetter"},variable:!1,value:e.styleJson["background-size"],options:s,onChange:e.setStyle},null,8,["value","onChange"]),w(d(he),{name:"background-clip",label:"裁剪",setters:{name:"SelectSetter"},variable:!1,value:e.styleJson["background-clip"],options:a,onChange:e.setStyle},null,8,["value","onChange"])]),_:1})]),_:1}))}}),Y8=O({__name:"border",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=B("border"),r=[{label:"全边框",svg:cy,value:"border"},{label:"左边框",svg:py,value:"border-left"},{label:"上边框",svg:gy,value:"border-top"},{label:"下边框",svg:dy,value:"border-bottom"},{label:"右边框",svg:hy,value:"border-right"}],i=[{label:"无",value:"none",svg:Uu},{label:"实线",value:"solid",svg:vy},{label:"虚线",value:"dashed",svg:my},{label:"点线",value:"dotted",svg:fy}],o=(a,s)=>{t.value=s};return(a,s)=>(y(),$(d(me),{title:"边框",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:S(()=>[w(d(We),{"label-width":"60px",size:"small"},{default:S(()=>[w(d(he),{name:"border-radius",label:"圆角",setters:{name:"SectionSetter",props:{sections:4}},variable:!1,value:e.styleJson["border-radius"],onChange:e.setStyle},null,8,["value","onChange"]),w(d(he),{name:"borders",label:"边框",setters:{name:"TagSetter"},variable:!1,options:r,value:t.value,onChange:o},null,8,["value"]),t.value?(y(),R(ne,{key:0},[(y(),$(d(he),{name:`${t.value}-width`,key:`${t.value}-width`,label:"宽度",setters:{name:"SizeSetter"},variable:!1,value:e.styleJson[`${t.value}-width`],onChange:e.setStyle},null,8,["name","value","onChange"])),(y(),$(d(he),{name:`${t.value}-style`,key:`${t.value}-style`,label:"样式",setters:{name:"TagSetter"},options:i,variable:!1,value:e.styleJson[`${t.value}-style`],onChange:e.setStyle},null,8,["name","value","onChange"])),(y(),$(d(he),{name:`${t.value}-color`,key:`${t.value}-color`,label:"颜色",setters:{name:"ColorSetter"},variable:!1,value:e.styleJson[`${t.value}-color`],onChange:e.setStyle},null,8,["name","value","onChange"]))],64)):M("",!0)]),_:1})]),_:1}))}}),G8=O({__name:"effect",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=[{label:"自动",value:"auto",svg:by},{label:"Pointer",value:"pointer",svg:xy},{label:"NotAllowed",value:"not-allowed",svg:_y},{label:"无",value:"none",svg:wy}],r=[{label:"Basic",value:"var(--el-box-shadow)"},{label:"Light",value:"var(--el-box-shadow-light)"},{label:"Lighter",value:"var(--el-box-shadow-lighter)"},{label:"Dark",value:"var(--el-box-shadow-dark)"}],i=(a,s)=>{e.setStyle("opacity",s!==void 0?(Number(s)||0)/100:void 0)},o=()=>Number(e.styleJson.opactiy||0)*100;return(a,s)=>(y(),$(d(me),{title:"效果",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:S(()=>[w(d(We),{"label-width":"60px",size:"small"},{default:S(()=>[w(d(he),{name:"opacity",label:"透明度",setters:{name:"SliderSetter"},variable:!1,value:o(),onChange:i},null,8,["value"]),w(d(he),{name:"box-shadow",label:"阴影",setters:{name:"SelectSetter"},variable:!1,options:r,value:e.styleJson["box-shadow"],onChange:e.setStyle},null,8,["value","onChange"]),w(d(he),{name:"cursor",label:"光标",setters:{name:"TagSetter"},variable:!1,options:t,value:e.styleJson.cursor,onChange:e.setStyle},null,8,["value","onChange"])]),_:1})]),_:1}))}}),Z8=O({name:"StyleWidget",__name:"index",props:{isStyleCodeMode:{type:Boolean}},setup(n){const e=n,{selected:t}=vt(),r=T(()=>{const a=t.value?.model||null;return $e(a)?null:a}),i=T(()=>r.value?.getPropValue("style")||{}),o=(a,s)=>{const l=r.value?.getPropValue("style")||{};s!==void 0?l[a]=s:delete l[a],r.value?.setProp("style",l)};return(a,s)=>e.isStyleCodeMode?(y(),$(G4,{key:0})):(y(),$(d(ae),{key:1,class:"v-style-widget",direction:"column",fit:""},{default:S(()=>[(y(),$(Y4,{key:`Layout${r.value?.id}`,"style-json":i.value,setStyle:o},null,8,["style-json"])),(y(),$(T8,{key:`Spacing${r.value?.id}`,"style-json":i.value,setStyle:o},null,8,["style-json"])),(y(),$(B8,{key:`Sizing${r.value?.id}`,"style-json":i.value,setStyle:o},null,8,["style-json"])),(y(),$(q8,{key:`Positioning${r.value?.id}`,"style-json":i.value,setStyle:o},null,8,["style-json"])),(y(),$(W8,{key:`Texting${r.value?.id}`,"style-json":i.value,setStyle:o},null,8,["style-json"])),(y(),$(K8,{key:`Backgound${r.value?.id}`,"style-json":i.value,setStyle:o},null,8,["style-json"])),(y(),$(Y8,{key:`Border${r.value?.id}`,"style-json":i.value,setStyle:o},null,8,["style-json"])),(y(),$(G8,{key:`Effect${r.value?.id}`,"style-json":i.value,setStyle:o},null,8,["style-json"]))]),_:1}))}}),X8=["src"],Q8=O({name:"PreviewerWidget",__name:"index",props:{path:{type:Function}},setup(n,{expose:e}){const t=n,r=B(),i=B(Symbol()),{current:o,engine:a}=Pe(),{width:s,height:l}=dn(r),u=T(()=>o.value&&t.path?t.path(o.value):null),c=T(()=>a.skeleton?.getWidget("Toolbar")?.widgetRef.mode??"pc");return e({refresh:()=>{i.value=Symbol()}}),(p,h)=>(y(),R("div",{ref_key:"container",ref:r,class:"v-previewer",key:i.value},[w(d(Nc),{mode:c.value,width:d(s),height:d(l)},{default:S(()=>[u.value?(y(),R("iframe",{key:0,ref:"iframe",frameborder:"0",src:u.value},null,8,X8)):M("",!0)]),_:1},8,["mode","width","height"])]))}}),e5=O({name:"NodePathWidget",inheritAttrs:!1,__name:"index",setup(n){const{selected:e,designer:t}=vt(),r=T(()=>(e.value?.path||[]).slice(0).reverse()),i=a=>{t.value?.setSelected(a)},o=a=>{t.value?.setHover(a)};return(a,s)=>d(e)?(y(),$(d(hd),{key:0,class:"v-nodepath-widget","separator-icon":d(Ts)},{default:S(()=>[(y(!0),R(ne,null,oe(r.value,l=>(y(),$(d(pd),{onClick:u=>i(l),onMouseover:u=>o(l)},{default:S(()=>[de(ee(l.name),1)]),_:2},1032,["onClick","onMouseover"]))),256))]),_:1},8,["separator-icon"])):M("",!0)}}),t5=O({name:"SchemaWidget",__name:"index",setup(n){const{current:e}=Pe(),t=B(),r=T(()=>JSON.stringify(e.value?.toDsl()||{},null,2)),i=T(()=>e.value?e.value.name:""),o=async()=>{const a=(t.value?.getEditor()).getValue();if(a&&await _n("手动修改DSL有风险,可能导致页面无法加载,请确认您的操作无误。"))try{const s=JSON.parse(a);e.value?.update(s),Je("保存成功")}catch(s){Ae(s?.message)}};return(a,s)=>(y(),$(d(me),{class:"v-schema-widget",title:i.value,subtitle:"手动修改DSL有风险,可能导致页面无法加载,请确认您的操作无误。",size:"small",fit:"",save:"",onSave:o},{default:S(()=>[w(d(Te),{ref_key:"editorRef",ref:t,"model-value":r.value,height:"100%",lang:"json",dark:""},null,8,["model-value"])]),_:1},8,["title"]))}}),n5=O({name:"SchemaWidget",__name:"index",setup(n){const{current:e,engine:t}=Pe(),r=B(),i=B(""),o=T(()=>e.value?`$vtj/vue/${e.value.id}.vue`:""),a=T(()=>e.value?e.value.name:"");return ce(e,async s=>{const l=t.project.value;l&&s?i.value=await t.service.genVueContent(l.toDsl(),s.toDsl()):i.value=""},{immediate:!0,deep:!0}),(s,l)=>(y(),$(d(me),{class:"v-raw-widget",title:a.value,subtitle:o.value,size:"small",fit:""},{default:S(()=>[w(d(Te),{ref_key:"editorRef",ref:r,"model-value":i.value,height:"100%",lang:"html",dark:"",readonly:""},null,8,["model-value"])]),_:1},8,["title","subtitle"]))}}),r5=["src"],i5=O({name:"DocsWidget",__name:"index",props:{url:{default:"https://newgateway.gitee.io/vtj/help/index.html"}},setup(n){const e=n,t=B();let r=null;Gi(()=>{r||(r=As.service({target:t.value?.$el}))}),Zi(()=>{i(),r=null});const i=()=>{r?.close()};return(o,a)=>(y(),$(d(me),{class:"v-docs-widget",size:"small",fit:"",body:{padding:!1},header:!1,ref_key:"panel",ref:t},{default:S(()=>[I("iframe",{ref:"frame",src:e.url,onLoad:i},null,40,r5)]),_:1},512))}}),o5={class:"v-about-widget"},a5={class:"v-about-widget__logo"},s5=["src"],l5=I("div",{class:"v-about-widget__name"},"VTJ.PRO",-1),u5={class:"v-about-widget__version"},c5=O({name:"AboutWidget",__name:"index",setup(n){return(e,t)=>(y(),R("div",o5,[I("div",a5,[I("img",{src:d(Fo)},null,8,s5)]),l5,I("div",u5,"版本:"+ee(d(Sw)),1)]))}}),ye={Logo:Aw,EmptyWidget:Bw,Switcher:Yw,Toolbar:Zw,Actions:e4,Pages:g4,Blocks:y4,Components:x4,Outline:S4,History:k4,Apis:$4,Deps:j4,Designer:C4,Scripts:D4,Properties:I4,Events:P4,Css:N4,Directives:F4,Defined:q4,DataSources:K4,Style:Z8,Previewer:Q8,NodePath:e5,Schema:t5,Raw:n5,Docs:i5,About:c5},d5=[{name:"Logo",region:"Brand",component:ye.Logo},{name:"Switcher",region:"Brand",component:ye.Switcher},{name:"Toolbar",region:"Toolbar",component:ye.Toolbar},{name:"Actions",region:"Actions",component:ye.Actions},{name:"Pages",region:"Apps",component:ye.Pages,type:"app",openType:"panel",icon:Pu,label:"页面管理"},{name:"Blocks",region:"Apps",component:ye.Blocks,type:"app",openType:"panel",icon:Hu,label:"区块管理"},{name:"Components",region:"Apps",component:ye.Components,type:"app",openType:"panel",icon:Lu,label:"组件库"},{name:"Outline",region:"Apps",component:ye.Outline,type:"app",openType:"panel",icon:Mu,label:"大纲树"},{name:"History",region:"Apps",component:ye.History,type:"app",openType:"panel",icon:Nu,label:"历史记录"},{name:"Apis",region:"Apps",component:ye.Apis,type:"app",openType:"panel",icon:bu,label:"API管理"},{name:"Deps",region:"Apps",component:ye.Deps,type:"app",openType:"panel",icon:Au,label:"依赖管理"},{name:"About",region:"Apps",component:ye.About,type:"app",openType:"dialog",icon:Ou,label:"关于",props:{width:500,height:300}},{name:"Designer",region:"Workspace",component:ye.Designer,type:"tab",closable:!1,label:"设计视图"},{name:"Previewer",region:"Preview",component:ye.Previewer,type:"tab",closable:!1,label:"预览视图"},{name:"Schema",region:"Workspace",component:ye.Schema,type:"tab",closable:!0,label:"DSL视图"},{name:"Raw",region:"Workspace",component:ye.Raw,type:"tab",closable:!0,label:"源码视图"},{name:"Docs",region:"Workspace",component:ye.Docs,type:"tab",closable:!0,label:"帮助中心"},{name:"Scripts",region:"Settings",component:ye.Scripts,type:"tab",group:it.Block,label:"设置"},{name:"Css",region:"Settings",component:ye.Css,type:"tab",group:it.Block,label:"CSS"},{name:"DataSources",region:"Settings",component:ye.DataSources,type:"tab",group:it.Block,label:"数据源"},{name:"Defined",region:"Settings",component:ye.Defined,type:"tab",group:it.Block,label:"定义"},{name:"Properties",region:"Settings",component:ye.Properties,type:"tab",group:it.Node,label:"属性"},{name:"Style",region:"Settings",component:ye.Style,type:"tab",group:it.Node,label:"样式"},{name:"Events",region:"Settings",component:ye.Events,type:"tab",group:it.Node,label:"事件"},{name:"Directives",region:"Settings",component:ye.Directives,type:"tab",group:it.Node,label:"指令"},{name:"NodePath",region:"Status",component:ye.NodePath}],p5=[{package:"vue",version:"latest",library:"Vue",urls:["@vtj/materials/deps/vue/vue.global.prod.js"],assetsLibrary:ou,required:!0,official:!0,enabled:!0},{package:"vue-router",version:"latest",library:"VueRouter",urls:["@vtj/materials/deps/vue-router/vue-router.global.prod.js"],assetsLibrary:au,required:!0,official:!0,enabled:!0},{package:"@vtj/utils",version:"latest",library:"VtjUtils",urls:["@vtj/materials/deps/@vtj/utils/index.umd.js"],required:!0,official:!0,enabled:!0},{package:"@vtj/icons",version:"latest",library:"VtjIcons",urls:["@vtj/materials/deps/@vtj/icons/style.css","@vtj/materials/deps/@vtj/icons/index.umd.js"],required:!0,official:!0,enabled:!0},{package:"element-plus",version:"latest",library:"ElementPlus",urls:["@vtj/materials/deps/element-plus/dark/css-vars.css","@vtj/materials/deps/element-plus/index.css","@vtj/materials/deps/element-plus/index.full.min.js"],assetsUrl:"@vtj/materials/assets/element/index.umd.js",assetsLibrary:"ElementPlusMaterial",required:!1,official:!0,enabled:!0},{package:"echarts",version:"latest",library:"echarts",urls:["@vtj/materials/deps/echarts/echarts.min.js"],required:!1,official:!0,enabled:!0},{package:"@vtj/ui",version:"latest",library:"VtjUI",urls:["@vtj/materials/deps/@vtj/ui/style.css","@vtj/materials/deps/@vtj/ui/index.umd.js"],assetsUrl:"@vtj/materials/assets/ui/index.umd.js",assetsLibrary:"VtjUIMaterial",required:!1,official:!0,enabled:!0},{package:"ant-design-vue",version:"latest",library:"antd",urls:["@vtj/materials/deps/ant-design-vue/rest.css","@vtj/materials/deps/ant-design-vue/dayjs/dayjs.min.js","@vtj/materials/deps/ant-design-vue/dayjs/plugin/customParseFormat.js","@vtj/materials/deps/ant-design-vue/dayjs/plugin/weekday.js","@vtj/materials/deps/ant-design-vue/dayjs/plugin/localeData.js","@vtj/materials/deps/ant-design-vue/dayjs/plugin/weekOfYear.js","@vtj/materials/deps/ant-design-vue/dayjs/plugin/weekYear.js","@vtj/materials/deps/ant-design-vue/dayjs/plugin/advancedFormat.js","@vtj/materials/deps/ant-design-vue/dayjs/plugin/quarterOfYear.js","@vtj/materials/deps/ant-design-vue/antd.min.js"],assetsUrl:"@vtj/materials/assets/antdv/index.umd.js",assetsLibrary:"AntdvMaterial",required:!1,official:!0,enabled:!1}],h5=[{id:"html",category:"HTML"},{id:"elements",category:"特殊元素"},{id:"components",category:"内置组件"}],m5=[{name:"div",label:"容器",categoryId:"html",snippet:{children:"容器文本内容示例"}},{name:"span",label:"内联",categoryId:"html",snippet:{children:"内联容器文本内容示例"}},{name:"a",label:"链接",categoryId:"html",props:[{name:"href",label:"href",setters:"InputSetter"}],snippet:{children:"链接文本内容示例",props:{href:"#"}}},{name:"img",label:"图片",categoryId:"html",childIncludes:!1,props:[{name:"src",label:"src",setters:"InputSetter"},{name:"width",label:"width",setters:"InputSetter"},{name:"height",label:"height",setters:"InputSetter"}],snippet:{props:{src:Fo,width:"200",height:"200"}}},{name:"h1",label:"大标题",categoryId:"html",snippet:{children:"标题"}},{name:"h2",label:"中标题",categoryId:"html",snippet:{children:"标题"}},{name:"h3",label:"小标题",categoryId:"html",snippet:{children:"标题"}},{name:"p",label:"段落",categoryId:"html",snippet:{children:"段落文本"}},{name:"component",label:"动态组件",categoryId:"elements",doc:"https://cn.vuejs.org/api/built-in-special-elements.html#component",props:[{name:"is",label:"组件名",setters:"InputSetter"}],snippet:{children:"组件文本内容示例",props:{is:"div"}}},{name:"slot",label:"插槽",categoryId:"elements",doc:"https://cn.vuejs.org/api/built-in-special-elements.html#slot",props:[{name:"name",label:"名称",defaultValue:"default",setters:"InputSetter"}],snippet:{children:"默认插槽内容"}}],f5=[...m5,{name:"Transition",label:"过渡效果",categoryId:"components",doc:"https://cn.vuejs.org/api/built-in-components.html#transition",package:"vue",props:[{name:"name",label:"名称",defaultValue:"",title:"用于自动生成过渡 CSS class 名",setters:"InputSetter"},{name:"css",label:"应用CSS",defaultValue:!0,title:"是否应用 CSS 过渡 class",setters:"BooleanSetter"},{name:"type",label:"事件类型",defaultValue:void 0,title:"指定要等待的过渡事件类型来确定过渡结束的时间,默认情况下会自动检测持续时间较长的类型",setters:"SelectSetter",options:["transition","animation"]},{name:"duration",label:"持续时间",defaultValue:void 0,title:"显式指定过渡的持续时间",setters:["NumberSetter","JSONSetter"]},{name:"mode",label:"时序",defaultValue:"default",title:"控制离开/进入过渡的时序。",setters:"SelectSetter",options:["in-out","out-in","default"]},{name:"appear",label:"使用过渡",defaultValue:!1,title:"是否对初始渲染使用过渡",setters:"BooleanSetter"},{name:"enterFromClass",label:"enterFromClass",defaultValue:void 0,setters:"InputSetter"},{name:"enterActiveClass",label:"enterActiveClass",defaultValue:void 0,setters:"InputSetter"},{name:"enterToClass",label:"enterToClass",defaultValue:void 0,setters:"InputSetter"},{name:"appearFromClass",label:"appearFromClass",defaultValue:void 0,setters:"InputSetter"},{name:"appearActiveClass",label:"appearActiveClass",defaultValue:void 0,setters:"InputSetter"},{name:"appearToClass",label:"appearToClass",defaultValue:void 0,setters:"InputSetter"},{name:"leaveFromClass",label:"leaveFromClass",defaultValue:void 0,setters:"InputSetter"},{name:"leaveActiveClass",label:"leaveActiveClass",defaultValue:void 0,setters:"InputSetter"},{name:"leaveToClass",label:"leaveToClass",defaultValue:void 0,setters:"InputSetter"}],events:["before-enter","before-leave","enter","leave","appear","after-enter","after-leave","after-appear","enter-cancelled","leave-cancelled","ppear-cancelled"],snippet:{children:"Transition"}},{name:"TransitionGroup",label:"过渡效果组",categoryId:"components",doc:"https://cn.vuejs.org/api/built-in-components.html#transitiongroup",package:"vue",props:[{name:"name",label:"名称",defaultValue:"",title:"用于自动生成过渡 CSS class 名",setters:"InputSetter"},{name:"tag",label:"标签名",defaultValue:void 0,title:"如果未定义,则渲染为片段 (fragment)",setters:"InputSetter"},{name:"moveClass",label:"moveClass",defaultValue:void 0,title:"用于自定义过渡期间被应用的 CSS class。",setters:"InputSetter"},{name:"css",label:"应用CSS",defaultValue:!0,title:"是否应用 CSS 过渡 class",setters:"BooleanSetter"},{name:"type",label:"事件类型",defaultValue:void 0,title:"指定要等待的过渡事件类型来确定过渡结束的时间,默认情况下会自动检测持续时间较长的类型",setters:"SelectSetter",options:["transition","animation"]},{name:"duration",label:"持续时间",defaultValue:void 0,title:"显式指定过渡的持续时间",setters:["NumberSetter","JSONSetter"]},{name:"appear",label:"使用过渡",defaultValue:!1,title:"是否对初始渲染使用过渡",setters:"BooleanSetter"},{name:"enterFromClass",label:"enterFromClass",defaultValue:void 0,setters:"InputSetter"},{name:"enterActiveClass",label:"enterActiveClass",defaultValue:void 0,setters:"InputSetter"},{name:"enterToClass",label:"enterToClass",defaultValue:void 0,setters:"InputSetter"},{name:"appearFromClass",label:"appearFromClass",defaultValue:void 0,setters:"InputSetter"},{name:"appearActiveClass",label:"appearActiveClass",defaultValue:void 0,setters:"InputSetter"},{name:"appearToClass",label:"appearToClass",defaultValue:void 0,setters:"InputSetter"},{name:"leaveFromClass",label:"leaveFromClass",defaultValue:void 0,setters:"InputSetter"},{name:"leaveActiveClass",label:"leaveActiveClass",defaultValue:void 0,setters:"InputSetter"},{name:"leaveToClass",label:"leaveToClass",defaultValue:void 0,setters:"InputSetter"}],events:["before-enter","before-leave","enter","leave","appear","after-enter","after-leave","after-appear","enter-cancelled","leave-cancelled","ppear-cancelled"],snippet:{children:"TransitionGroup"}},{name:"KeepAlive",label:"缓存切换组件",categoryId:"components",doc:"https://cn.vuejs.org/api/built-in-components.html#keepalive",package:"vue",props:[{name:"include",label:"匹配包含",title:"如果指定,则只有与 `include` 名称, 匹配的组件才会被缓存。",setters:["InputSetter","JSONSetter"]},{name:"exclude",label:"匹配排除",title:"任何名称与 `exclude` 匹配的组件都不会被缓存。",setters:["InputSetter","JSONSetter"]},{name:"max",label:"最大缓存数",title:"最多可以缓存多少组件实例。",setters:["InputSetter"]}]},{name:"Teleport",label:"传送组件",categoryId:"components",doc:"https://cn.vuejs.org/api/built-in-components.html#teleport",package:"vue",props:[{name:"to",label:"目标容器",title:"指定目标容器,可以是选择器或实际元素",setters:["InputSetter"]},{name:"disabled",label:"禁用",title:"当值为 `true` 时,内容将保留在其原始位置, 而不是移动到目标容器中, 可以动态更改",setters:["BooleanSetter"]}]},{name:"Suspense",label:"异步依赖",categoryId:"components",doc:"https://cn.vuejs.org/api/built-in-components.html#suspense",package:"vue",props:[{name:"timeout",label:"timeout",setters:["InputSetter"]}]},{name:"RouterLink",label:"路由链接",categoryId:"components",doc:"https://router.vuejs.org/zh/api/interfaces/RouterLinkProps.html",package:"vue-router",props:[{name:"to",label:"to",setters:["InputSetter"]},{name:"replace",label:"replace",setters:["BooleanSetter"]}],snippet:{children:"RouterLink",props:{to:"/"}}}],v5=[{name:Ti,version:"latest",label:"内置",library:Ti,order:0,categories:h5,components:f5}],g5=O({name:"StringSetter",__name:"string",setup(n){return(e,t)=>(y(),$(d(tt),ve({clearable:""},e.$attrs),null,16))}}),y5=O({name:"BooleanSetter",__name:"boolean",setup(n){return(e,t)=>(y(),$(d(to),ve(e.$attrs,{"model-value":!!e.$attrs.modelValue}),null,16,["model-value"]))}}),b5="{{",w5="}}",_5=O({name:"ExpressionSetter",__name:"expression",props:{modelValue:{},context:{}},emits:["change"],setup(n,{emit:e}){const t=(l="")=>({type:"JSExpression",value:Re(l)?l.value:l}),r=n,i=e,o=l=>Me(l,r.context,!0),a=B(t(r.modelValue).value);ce(()=>r.modelValue,l=>{a.value=t(l).value},{immediate:!0});const s=l=>{const u={type:"JSExpression",value:l};o(u)&&i("change",u)};return(l,u)=>(y(),$(d(tt),{class:"v-expression-setter",modelValue:a.value,"onUpdate:modelValue":u[0]||(u[0]=c=>a.value=c),onChange:s},{prefix:S(()=>[de(ee(b5))]),suffix:S(()=>[de(ee(w5))]),_:1},8,["modelValue"]))}}),x5=O({name:"SelectSetter",__name:"select",props:{options:{default:()=>[]}},setup(n){const e=n;return(t,r)=>(y(),$(d(no),ve({clearable:""},t.$attrs),{default:S(()=>[(y(!0),R(ne,null,oe(e.options,i=>(y(),$(d(ro),ve({key:i.label},i),null,16))),128))]),_:1},16))}}),S5=O({name:"NumberSetter",__name:"number",props:{modelValue:{}},emits:["change"],setup(n,{emit:e}){const t=n,r=e,i=T(()=>Re(t.modelValue)?void 0:Number(t.modelValue||0)),o=a=>{r("change",a)};return(a,s)=>(y(),$(d(Es),ve({class:"v-number-setter","controls-position":"right","model-value":i.value},a.$attrs,{onChange:o}),null,16,["model-value"]))}}),k5=O({name:"ColorSetter",__name:"color",setup(n){return(e,t)=>(y(),$(d(_d),wt(Ot(e.$attrs)),null,16))}}),$5=O({name:"JsonSetter",__name:"json",props:{modelValue:{default:void 0},type:{default:"JSON"}},emits:["change"],setup(n,{emit:e}){const t=n,r=B(),i=B(typeof t.modelValue=="object"?JSON.stringify(t.modelValue,null,2):void 0),o=T(()=>!!i.value),a=B(!1),s=e,l=h=>{let m=!0;try{const f=JSON.parse(h);if(t.type==="Array"&&!Array.isArray(f))throw new Error(`"${h}" is not a Array`);if(t.type==="Object"&&!go(f))throw new Error(`"${h}" is not a PlainObject`);if(typeof f!="object")throw new Error(`"${h}" is not a ${t.type}`)}catch(f){m=!1,Wt.error({title:"代码错误",message:f?.message||f})}return m},u=()=>{const h=r.value?.getEditor();if(h){const m=h.getValue();l(m)&&(i.value=m,s("change",JSON.parse(m)),a.value=!1)}},c=()=>{i.value="",s("change",void 0),a.value=!1},p=()=>{a.value=!0};return(h,m)=>(y(),R("div",{class:ue(["v-json-setter",{"is-active":o.value}])},[w(d(tt),ve({readonly:"",onFocus:p,"model-value":t.type,"suffix-icon":d(so)},h.$attrs),null,16,["model-value","suffix-icon"]),a.value?(y(),$(d(Zt),{key:0,modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=f=>a.value=f),title:t.type,width:"1000px",height:"600px",cancel:"",submit:"",clear:"",onSubmit:u,onClear:c},{default:S(()=>[w(d(Te),{ref_key:"codeEditor",ref:r,height:"100%",lang:"json",dark:"","model-value":i.value},null,8,["model-value"])]),_:1},8,["modelValue","title"])):M("",!0)],2))}}),j5=O({name:"FunctionSetter",__name:"function",props:{modelValue:{default:()=>({type:"JSFunction",value:""})}},emits:["change"],setup(n,{emit:e}){const t=n,r=B(),i=B(t.modelValue.value),o=B(!1),a=T(()=>!!i.value),s=e,l=()=>{const p=r.value?.getEditor();if(p){const h=p.getValue(),m={type:"JSFunction",value:h};Me(m,{})&&(i.value=h,s("change",m),o.value=!1)}},u=()=>{i.value="",s("change",void 0),o.value=!1},c=()=>{o.value=!0};return(p,h)=>(y(),R("div",{class:ue(["v-function-setter",{"is-active":a.value}])},[w(d(tt),ve({readonly:"",onFocus:c,"model-value":"JSFunction","suffix-icon":d(so)},p.$attrs),null,16,["suffix-icon"]),o.value?(y(),$(d(Zt),{key:0,modelValue:o.value,"onUpdate:modelValue":h[0]||(h[0]=m=>o.value=m),title:"JSFunction",width:"1000px",height:"600px",cancel:"",submit:"",clear:"",onSubmit:l,onClear:u},{default:S(()=>[w(d(Te),{ref_key:"codeEditor",ref:r,height:"100%","model-value":i.value,dark:""},null,8,["model-value"])]),_:1},8,["modelValue"])):M("",!0)],2))}}),V5=O({name:"RadioSetter",__name:"radio",props:{options:{default:()=>[]}},setup(n){const e=n;return(t,r)=>(y(),$(d(io),ve({class:"v-radio-setter",size:"small"},t.$attrs),{default:S(()=>[(y(!0),R(ne,null,oe(e.options,i=>(y(),$(d(Bn),{label:i.value,title:i.label},{default:S(()=>[i.svg?(y(),$(d(rt),{key:0,src:i.svg},null,8,["src"])):(y(),R(ne,{key:1},[de(ee(i.label),1)],64))]),_:2},1032,["label","title"]))),256))]),_:1},16))}}),E5=["label","title","onClick"],C5=O({name:"TagSetter",__name:"tag",props:{options:{default:()=>[]},modelValue:{}},emits:["update:modelValue","change"],setup(n,{emit:e}){const t=n,r=e,i=o=>{o.value===t.modelValue?(r("update:modelValue",void 0),r("change",void 0)):(r("update:modelValue",o.value),r("change",o.value))};return(o,a)=>(y(),R("div",ve({class:"v-tag-setter",size:"small"},o.$attrs),[(y(!0),R(ne,null,oe(t.options,s=>(y(),R("span",{label:s.value,title:s.label,class:ue({"is-active":t.modelValue===s.value}),onClick:l=>i(s)},[s.svg?(y(),$(d(rt),{key:0,src:s.svg,size:16},null,8,["src"])):(y(),R(ne,{key:1},[de(ee(s.label),1)],64))],10,E5))),256))],16))}}),Hc=O({name:"SizeSetter",__name:"size",props:{modelValue:{}},emits:["change"],setup(n,{emit:e}){const t=n,r=e,i=B(!0),o=T(()=>i.value?"px":void 0),a=B(t.modelValue),s=l=>{i.value=!!Number(l)};return ce(a,l=>{r("change",l)}),ce(()=>t.modelValue,l=>{l&&(i.value=l.endsWith("px"),a.value=l)},{immediate:!0}),(l,u)=>(y(),$(d($c),ve({clearable:"",unit:o.value,"with-unit":!!o.value,modelValue:a.value,"onUpdate:modelValue":u[0]||(u[0]=c=>a.value=c),onChange:s},l.$attrs),null,16,["unit","with-unit","modelValue"]))}}),A5={class:"v-image-setter__plus"},T5=O({name:"ImageSetter",__name:"image",props:{modelValue:{},limit:{default:1}},emits:["change"],setup(n,{emit:e}){const t=n,r=e,i=B([]),o=T(()=>i.value.length<t.limit),a=l=>l.type.includes("image")?(Cb(l).then(u=>{i.value=[{name:l.name,url:u}]}),!1):(Tr.error("只能上传图片"),!1),s=()=>{i.value=[]};return ce(()=>t.modelValue,l=>{i.value=l?[{name:"",url:l}]:[]},{immediate:!0}),ce(i,()=>{r("change",i.value[0]?.url)}),(l,u)=>(y(),$(d(xd),ve({class:["v-image-setter",{"v-image-setter--addable":o.value}],"list-type":"picture-card",limit:1,action:"#","file-list":i.value,"onUpdate:fileList":u[0]||(u[0]=c=>i.value=c),"before-upload":a,"auto-upload":!0,"on-remove":s},l.$attrs),{default:S(()=>[I("span",A5,[w(d(rt),{icon:d(Cd)},null,8,["icon"])])]),_:1},16,["class","file-list"]))}}),B5={class:"v-section-setter"},z5=O({name:"SectionSetter",__name:"section",props:{modelValue:{},sections:{default:4}},emits:["change"],setup(n,{emit:e}){const t=n,r=e,i=B(new Array(t.sections).fill(""));ce(()=>t.modelValue,a=>{i.value=a?a.split(" "):new Array(t.sections).fill("")},{immediate:!0});const o=()=>{r("change",i.value.join(" ").trim())};return(a,s)=>(y(),R("div",B5,[(y(!0),R(ne,null,oe(t.sections,l=>(y(),$(Hc,{name:l-1,modelValue:i.value[l-1],"onUpdate:modelValue":u=>i.value[l-1]=u,onChange:o,class:"v-section-setter__item"},null,8,["name","modelValue","onUpdate:modelValue"]))),256))]))}}),O5={class:"v-slider-setter"},D5=O({name:"SliderSetter",__name:"slider",props:{modelValue:{default:void 0}},emits:["change","update:modelValue"],setup(n,{emit:e}){const t=n,r=e,i=B();ce(()=>t.modelValue,a=>{i.value=a},{immediate:!0}),ce(i,a=>{r("change",a),r("update:modelValue",a)});const o=()=>{i.value=void 0,r("change",void 0),r("update:modelValue",void 0)};return(a,s)=>(y(),R("div",O5,[w(d(Cs),ve({size:"small"},a.$attrs,{modelValue:i.value,"onUpdate:modelValue":s[0]||(s[0]=l=>i.value=l)}),null,16,["modelValue"]),w(d(rt),{onClick:o,class:"v-slider-setter__close",size:16,icon:d(Ad)},null,8,["icon"])]))}}),Ve={StringSetter:g5,BooleanSetter:y5,ExpressionSetter:_5,SelectSetter:x5,NumberSetter:S5,ColorSetter:k5,IconSetter:Pc,JsonSetter:$5,FunctionSetter:j5,RadioSetter:V5,TagSetter:C5,SizeSetter:Hc,ImageSetter:T5,SectionSetter:z5,SliderSetter:D5},I5={name:"StringSetter",component:Ve.StringSetter,type:"String"},M5=[{name:"InputSetter",component:Ve.StringSetter,type:"String"},{name:"StringSetter",component:Ve.StringSetter,type:"String"},{name:"BooleanSetter",component:Ve.BooleanSetter,type:"Boolean"},{name:"ExpressionSetter",component:Ve.ExpressionSetter,type:"Object"},{name:"SelectSetter",component:Ve.SelectSetter,type:"String"},{name:"NumberSetter",component:Ve.NumberSetter,type:"Number"},{name:"ColorSetter",component:Ve.ColorSetter,type:"String"},{name:"IconSetter",component:Ve.IconSetter,type:"String"},{name:"ObjectSetter",component:Ve.JsonSetter,type:"Object",props:{type:"Object"}},{name:"ArraySetter",component:Ve.JsonSetter,type:"Array",props:{type:"Array"}},{name:"JsonSetter",component:Ve.JsonSetter,type:"Object",props:{type:"JSON"}},{name:"JSONSetter",component:Ve.JsonSetter,type:"Object",props:{type:"JSON"}},{name:"FunctionSetter",component:Ve.FunctionSetter,type:"Function"},{name:"RadioSetter",component:Ve.RadioSetter,type:"String"},{name:"TagSetter",component:Ve.TagSetter,type:"String"},{name:"SizeSetter",component:Ve.SizeSetter,type:"String"},{name:"ImageSetter",component:Ve.ImageSetter,type:"String"},{name:"SectionSetter",component:Ve.SectionSetter,type:"String"},{name:"SliderSetter",component:Ve.SliderSetter,type:"Number"},{name:"RangeSetter",component:Ve.SliderSetter,type:"Array",props:{range:!0}}];class R5{widgets={};constructor(){this.widgets=this.createWidgets()}createWidgets(){const e={};for(const t of d5)e[t.name]=t;return e}register(e){this.widgets[e.name]=e}get(e){return this.widgets[e]}set(e,t){const r=this.widgets[e];if(!r){Ye.warn(`widget '${e}' is not found`);return}ct(r,t),t.component&&(r.component=t.component)}getWidgets(e,t){const r=Object.values(this.widgets);return e?r.filter(i=>i.region===e&&(!t||t&&t===i.group)):r}}const Lc=new R5;class P5{constructor(e=p5){this.deps=e}get(){return this.deps}set(e){this.deps=e}add(e){const t=this.deps.find(r=>r.package===e.package);t?Object.assign(t,e):this.deps.push(e)}merge(e){const t=[];for(const r of this.deps){const i=e.find(o=>o.package===r.package);t.push({...r,...i})}for(const r of e)this.deps.find(i=>i.package===r.package)||t.push(r);return t}remove(e){const t=this.deps.findIndex(r=>r.package===e);t>-1&&this.deps.splice(t,1)}}const N5=new P5;class F5{setters={};defaultSetter=I5;constructor(){this.setters=this.createSetters()}createSetters(){const e={};for(const t of M5)e[t.name]=t;return e}register(e){this.setters[e.name]=e}get(e){return this.setters[e]}set(e,t){const r=this.setters[e];if(!r){Ye.warn(`setter '${e}' is not found`);return}ct(r,t),t.component&&(r.component=t.component)}getByType(e){return Object.values(this.setters).filter(t=>t.type===e).map(t=>t.name)}}const wr=new F5;function H5(n){return new Promise((e,t)=>{const r=js(v4,{slots:n,onClose:()=>{r.unmount(),t(null)},onSubmit:i=>{r.unmount(),e(i)}});r.mount(document.createElement("div"))})}class L5{constructor(e,t,r){this.engine=e,this.contentWindow=t,this.dependencies=r,this.document=this.contentWindow.document,this.bindEvents(t,this.document)}proxied={};document=null;hover=fi(null);dropping=fi(null);selected=B(null);dragging=null;bind(e,t){let r=this.proxied[t];return r||(r=e.bind(this),this.proxied[t]=r),r}bindEvents(e,t){t.addEventListener("mouseover",this.bind(this.onMouseOver,"onMouseOver")),t.addEventListener("scroll",this.bind(this.onViewChange,"onViewChange")),e.addEventListener("resize",this.bind(this.onViewChange,"onViewChange")),t.addEventListener("mouseleave",this.bind(this.onLeave,"onLeave")),t.addEventListener("dragleave",this.bind(this.onLeave,"onLeave")),t.addEventListener("dragover",this.bind(this.onDragOver,"onDragOver")),t.addEventListener("drop",this.bind(this.onDrop,"onDrop")),t.addEventListener("click",this.bind(this.onSelected,"onSelected")),q.on(Fn,this.bind(this.onActiveChange,"onActiveChange")),q.on(Se,this.bind(this.onViewChange,"onViewChange"))}unbindEvents(e,t){t.removeEventListener("mouseover",this.bind(this.onMouseOver,"onMouseOver")),t.removeEventListener("scroll",this.bind(this.onViewChange,"onViewChange")),e.removeEventListener("resize",this.bind(this.onViewChange,"onViewChange")),t.removeEventListener("mouseleave",this.bind(this.onLeave,"onLeave")),t.removeEventListener("dragleave",this.bind(this.onLeave,"onLeave")),t.removeEventListener("dragover",this.bind(this.onDragOver,"onDragOver")),t.removeEventListener("drop",this.bind(this.onDrop,"onDrop")),t.removeEventListener("click",this.bind(this.onSelected,"onSelected")),q.off(Fn,this.bind(this.onActiveChange,"onActiveChange")),q.off(Se,this.bind(this.onViewChange,"onViewChange"))}onMouseOver(e){const t=this.getHelper(e);t?.model.id!==this.selected.value?.model.id&&(this.hover.value=t)}onViewChange(){this.updateRect()}onLeave(e){this.hover.value=null,this.dropping.value=null}onActiveChange(){this.hover.value=null,this.dropping.value=null,this.selected.value=null}async getDropSlot(e){if(!e)return;const{engine:t}=this,r=t.assets,i=r.componentMap,o=await r.getBlockMaterial(e.from)||i.get(e.name);if(!o?.slots)return;const a=(o?.slots||["default"]).map(l=>typeof l=="string"?{name:l,params:[]}:{name:l.name,params:l.params||[]});if(a.length===0)return;if(a.length===1)return a[0];const s=await H5(a).catch(()=>null);if(!(s&&s.name==="default"&&(!s.params||s.params?.length===0)))return s}async onDrop(e){e.preventDefault();const{engine:t,dragging:r,dropping:i}=this,o=t.current.value,a=this.getHelper(e);if(!o||!r||!i.value||!a)return;const s=a.model,l=i.value.type;if(!await this.allowDrop(s,l))return;const u=this.createNodeDsl(r),c=new jr(u);if($e(s))o.addNode(c,void 0,l);else{const p=await this.getDropSlot(l==="inner"?s:s.parent);if(p===null){this.dropping.value=null;return}c.slot=p,o.addNode(c,s,l)}this.dropping.value=null}onSelected(e){this.setHover(null),this.selected.value=this.getHelper(e)}async onDragOver(e){const t=this.getHelper(e);if(!t)return;const{model:r,type:i}=t;r&&await this.allowDrop(r,i)?(e.preventDefault(),this.dropping.value=t):this.dropping.value=null}isVtjElement(e){return!!e.__vtj__&&!!e.__context__}findVtjElement(e){return e.find(t=>this.isVtjElement(t))}getNodeByElement(e){const t=e.__vtj__??"";return jr.nodes[t]||null}getDropType(e,t,r){const{left:i,top:o,width:a,height:s}=e;return t>=i&&t<=i+a*.2?"left":t>=i+a*.8&&t<=i+a?"right":r>=o&&r<=o+s*.2?"top":r>=o+s*.8&&r<=o+s?"bottom":"inner"}getNodePath(e=[]){const t=e.filter(i=>this.isVtjElement(i)),r=this.engine.current.value;return[...t.map(i=>this.getNodeByElement(i)).filter(i=>!!i),r]}setDslFrom(e){const t=this.engine.assets.componentMap.get(e.name);if(e.from=e.from||t?.package,Array.isArray(e.children))for(const r of e.children)this.setDslFrom(r)}createNodeDsl(e){const{name:t,snippet:r={},from:i}=e,o={...r,name:t,from:i||e.package};return this.setDslFrom(o),o}getElmenetByModel(e){return!this.document||!e?null:$e(e)?this.document.body:Array.from(this.document.querySelectorAll("*")).find(t=>t.__vtj__===e.id)}findPathByNode(e){const t=[e];let r=e;for(;r.parent&&r.parent!==r;)r=r.parent,r!==e&&t.unshift(r);const i=this.engine.current.value;return t.unshift(i),t.reverse()}getHelper(e){const t=e.composedPath()||[],r=this.findVtjElement(t)||this.document?.body;if(!r)return null;const i=this.getNodeByElement(r)||this.engine.current.value;if(!i)return null;const o=r.getBoundingClientRect(),a=this.getDropType(o,e.clientX,e.clientY),s=this.getNodePath(t);return{el:r,model:i,rect:o,type:a,path:s}}cleanHelper(){this.setSelected(null),this.setHover(null),this.setDragging(null),this.setDropping(null)}async updateRect(){await tu(100);const e=d(this.selected),t=d(this.hover);if(e){const r=e.el.getBoundingClientRect();this.selected.value={...e,rect:r}}if(t){const r=t.el.getBoundingClientRect();this.hover.value={...t,rect:r}}}setDragging(e){this.dragging=e}async setHover(e){if(await bt(),e){const t=this.getElmenetByModel(e);if(!t)return;const r=t.getBoundingClientRect(),i=$e(e)?[]:this.findPathByNode(e);this.hover.value={el:t,model:e,rect:r,type:"inner",path:i}}else this.hover.value=null}async setSelected(e){if(await bt(),e){const t=this.getElmenetByModel(e)||this.document?.createElement("span");if(!t)return;const r=t.getBoundingClientRect(),i=$e(e)?[]:this.findPathByNode(e);this.selected.value={el:t,model:e,rect:r,type:"inner",path:i}}else this.selected.value=null}async setDropping(e,t="inner"){if(await bt(),e){const r=this.getElmenetByModel(e);if(!r)return;const i=r.getBoundingClientRect(),o=$e(e)?[]:this.findPathByNode(e);this.dropping.value={el:r,model:e,rect:i,type:t,path:o}}else this.dropping.value=null}async allowDrop(e,t="inner"){const{dragging:r,engine:i}=this,o=i.current.value;if(!r||!o)return!1;if($e(e))return!0;const a=i.assets.componentMap,s=t!=="inner"&&e.parent||e,l=await i.assets.getBlockMaterial(s.from)||a.get(s.name);if(!l)return!1;const{parentIncludes:u=!0,name:c}=r,{childIncludes:p=!0}=l,h=u===!0||Array.isArray(u)&&u.includes(s.name),m=p===!0||Array.isArray(p)&&p.includes(c);return h&&m}dispose(){const{contentWindow:e,document:t}=this;this.setSelected(null),this.setHover(null),this.setDragging(null),e&&t&&this.unbindEvents(e,t),this.document=null}}class U5{constructor(e,t,r=null){this.env=e,this.service=t,this.designer=r,this.nodeChange=this.__onNodeChange.bind(this),this.blockChange=this.__onBlockChange.bind(this)}app=null;dsl=null;nodeChange;blockChange;context=null;install(e){const{library:t,globals:r,VueRouter:i}=this.env;if(i){const a=i.createRouter({history:i.createWebHashHistory(),routes:[]});e.use(a)}const o=Object.values(t);Object.assign(e.config.globalProperties,r),e.config.errorHandler=(a,s,l)=>{const u=s?.$options.name,c=a?.message||a?.msg||"未知错误",p=`[ ${u} ] ${c}`;console.error({err:a,instance:s,info:l}),Wt.error({title:"运行错误",message:p})},o.forEach(a=>{(typeof a=="function"||typeof a.install=="function")&&e?.use(a)})}render(e){const{window:t,container:r,Vue:i,components:o,library:a,apis:s}=this.env,l=t.document.createElement("div");l.id="app",r.appendChild(l),this.dsl=i.reactive(e.toDsl());const u=No({getDsl:async h=>await this.service.getFile(h)||null,options:{mode:qe.Design,Vue:i,components:o,libs:a,apis:s,window:t}}),{renderer:c,context:p}=Po({Vue:i,mode:qe.Design,dsl:this.dsl,components:o,libs:a,apis:s,loader:u,window:t});this.app=i.createApp(c),this.install(this.app);try{this.app.mount(l)}catch(h){Ae(h.message||"未知错误","运行时错误"),console.error(h)}this.context=p,q.on(Se,this.nodeChange),q.on(ge,this.blockChange)}dispose(){if(this.app){this.app.unmount();const e=this.app._container;e&&e.parentNode&&(e.parentNode.removeChild(e),this.app._container=null),this.app=null}this.dsl=null,this.context=null,q.off(Se,this.nodeChange),q.off(ge,this.blockChange)}updateChild(e,t){const r=t.children||t.nodes||[];if(Array.isArray(r))for(let i=0;i<r.length;i++){const o=r[i];if(o.id===e.id){r.splice(i,1,e);return}else this.updateChild(e,o)}}__onNodeChange(e){this.dsl&&this.updateChild(e.toDsl(),this.dsl)}__onBlockChange(e){this.dispose(),this.render(e),this.designer?.selected.value&&this.designer.setSelected(e)}}class J5 extends So{contentWindow=null;renderer=null;designer=fi(null);engine;materialPath;constructor(e){super();const{engine:t,materialPath:r}=e;this.engine=t,this.materialPath=r,ce(this.engine.current,()=>{this.refresh()})}init(e,t){ce([e,t],()=>{e.value&&t.value.length&&(this.resetReady(),this.setup(e.value,t.value),this.contentWindow&&(this.designer.value?.dispose(),this.designer.value=new L5(this.engine,this.contentWindow,t)))},{immediate:!0,deep:!0})}setup(e,t){const r=e.contentWindow;if(!r){Ye.warn("Simulator contentWindow is null");return}r.__simulator__=this;const i=r.document;this.contentWindow=r;const{scripts:o,css:a,materials:s,libraryExports:l,materialExports:u,materialMapLibrary:c}=Cc(t,this.materialPath);i.open(),i.write(`
156
+ <!DOCTYPE html>
157
+ <html lang="zh-CN">
158
+ <head>
159
+ <meta charset="utf-8">
160
+ <meta name="viewport"
161
+ content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0,viewport-fit=cover"/>
162
+ <style>
163
+ html, body, #app {
164
+ padding: 0;
165
+ margin: 0;
166
+ min-height: 100vh;
167
+ width: 100%;
168
+ height: 100%;
169
+ background: #fff;
170
+ }
171
+ </style>
172
+ ${D6(a)}
173
+ ${ys(o)}
174
+ ${ys(s)}
175
+ </head>
176
+ <body>
177
+ </body>
178
+ <script>
179
+ __simulator__.emitReady(${JSON.stringify(l)},
180
+ ${JSON.stringify(u)},
181
+ ${JSON.stringify(c)});
182
+ <\/script>
183
+ </html>
184
+ `),i.close()}async emitReady(e=[],t=[],r={}){this.renderer?.dispose(),this.renderer=null;const i=this.contentWindow,{assets:o,service:a,current:s,provider:l}=this.engine,u=l.materials||{},c=[];for(const h of t){const m=u[h]?(await u[h]()).default:i[h];c.push(m)}o.load(c);const p=this.createEnv(e,r,c);this.renderer=new U5(p,a,this.designer.value),s.value&&this.renderer.render(s.value),this.triggerReady()}createEnv(e=[],t={},r=[]){const i=this.contentWindow,{engine:o}=this,{project:a,assets:s,provider:l}=o,u=e.reduce((g,k)=>(g[k]=i[k],g),{}),c={},{groups:p,componentMap:h}=s;for(const g of p.value){const k=g.names||[];if(g.name===Ti)k.forEach(b=>{const _=h.get(b),V=_?.package||"",j=Mg[V],x=u[j];x&&_&&(c[b]=qi(_,x))});else{const b=u[t[g.library||""]];b&&k.forEach(_=>{const V=h.get(_);V?c[_]=qi(V,b):c[_]=b[_]})}}const{adapter:m,globals:f}=l,v=Bc(a.value?.apis,m);return{window:i,Vue:i.Vue,VueRouter:i.VueRouter,library:u,materials:r,components:c,container:i.document.body,apis:v,globals:f}}refresh(){this.renderer?.dispose();const e=this.engine.current.value;e&&this.renderer?.render(e)}dispose(){this.renderer?.dispose(),this.designer.value?.dispose(),this.contentWindow=null,this.renderer=null,this.designer.value=null}}class q5{constructor(e){this.service=e}components=[];componentMap=new Map;groups=B([]);getCateoryComponents(e,t){const r=t.filter(i=>i.categoryId===e.id&&i.hidden!==!0);return{name:e.id,label:e.category,count:r.length,components:r}}parseGroups(e){const t=[];for(let r of e){const{categories:i,components:o,label:a,name:s,library:l}=r;if(!i||!o)continue;const u=o.filter(m=>!!m.package).map(m=>m.name),c=i.map(m=>this.getCateoryComponents(m,o)),p=c.reduce((m,f)=>f.count+m,0),h={name:r.name,label:a||s,count:p,names:u,library:l,children:c};t.push(h)}return t}load(e){const t=[...v5,...e].filter(r=>!!r);t.sort((r,i)=>r.order-i.order);for(let r of t)r.components&&(this.components=this.components.concat(r.components));this.groups.value=this.parseGroups(t),this.componentMap=nu(this.components,"name")}async getBlockMaterial(e){if(!e||typeof e=="string")return null;const t=e.type==="Schema"?e.id:null;if(!t)return null;const r=await this.service.getFile(t);if(!r)return null;const{id:i,name:o,slots:a,props:s,emits:l}=r,u=c=>{const p=Array.isArray(c)?c:[c];let h=[];for(const m of p)h=h.concat(wr.getByType(m));return h};return{id:i,name:o,childIncludes:a?.length?void 0:!1,props:(s||[]).map(c=>typeof c=="string"?{name:c}:{name:c.name,type:c.type,setters:u(c.type)}),events:l,slots:a,from:e}}}const Uc=Symbol("VtjEngine");class I_ extends So{app;skeleton;container;service;assets;simulator;emitter=q;project=B(null);current=B(null);context=B(null);isEmptyCurrent=B(!1);history=B(null);provider;changed=B(Symbol());constructor(e){super();const{container:t,service:r,project:i={},globals:o={},dependencies:a,materials:s,materialPath:l="./"}=e;this.container=t,this.service=r,this.provider=new Dc({mode:qe.Design,globals:o,project:i,service:r,dependencies:a,materials:s,materialPath:l}),this.assets=new q5(this.service),this.simulator=new J5({engine:this,materialPath:l}),this.bindEvents(),this.init(i),Gi(this.render.bind(this)),Zi(this.dispose.bind(this))}async init(e){const t=await this.service.init(e).catch(r=>(Ye.warn("VTJEngine service init fail.",r),null));t&&(t.dependencies=N5.merge(t.dependencies||[]),this.project.value=new Pg(t),this.saveMaterials(),this.triggerReady())}render(){const e=d(this.container);if(e){const t=js(W5);t.provide(Uc,Yc(this)),t.mount(e),this.app=t}else Ye.warn("VTJEngine constructor param [ container ] is undefined")}bindEvents(){q.on(Ue,e=>this.saveProject(e)),q.on(fr,e=>this.saveBlockFile(e)),q.on(En,e=>this.saveBlockFile(e)),q.on(zi,()=>this.saveMaterials()),q.on(Fn,e=>this.activeFile(e)),q.on(cu,()=>this.publish()),q.on(du,()=>this.publishCurrent()),q.on(ge,e=>this.changeFile(e)),q.on(Se,()=>this.changeCurrentFile()),q.on(Cn,e=>this.saveHistory(e)),q.on(vr,e=>this.loadHistory(e))}async activeFile(e){await bt();const t=e.model,r=e.model.currentFile;if(r){if(t.isPageFile(r)&&r.raw)return;const i=await this.service.getFile(r.id);i&&(r.dsl=i)}if(r?.dsl){const i=new ln(r.dsl);this.updateCurrent(i),this.initHistory(i)}else this.updateCurrent(null);$t(this.project)}async changeFile(e){await bt();const t=e.toDsl();this.service.saveFile(t),this.updateCurrent(e),this.history.value?.add(t),$t(this.history)}changeCurrentFile(){this.saveCurrentFile(),this.current.value&&(this.history.value?.add(this.current.value.toDsl()),$t(this.history))}async updateCurrent(e,t=!0){this.current.value=e,await bt(),this.context.value=this.simulator.renderer?.context||null,this.isEmptyCurrent.value=this.current.value?.nodes.length===0,this.changed.value=Symbol(),t&&$t(this.context)}async saveProject(e){const t=e.model.toDsl();await this.service.saveProject(t),$t(this.project)}async saveBlockFile(e){const t=e.type,r=e.model;if(t==="create"){const i=e.data;r.isPageFile(i)&&i.raw?(await this.service.createRawPage(i),Je(`源码文件已经生成:/.vtj/vue/${i.id}.vue`,"success")):i.dsl&&await this.service.saveFile(i.dsl)}if(t==="update"){const i=e.data;if(r.isPageFile(i)&&(i.dir||i.raw))return;const o=await this.service.getFile(i.id);o&&(o.name=i.name,await this.service.saveFile(o))}if(t==="delete"){const i=e.data;i&&r.isPageFile(i)&&i.raw?await this.service.removeRawPage(i.id):i.dir||(await this.service.removeFile(i.id),await this.service.removeHistory(i.id))}if(t==="clone"){const{page:i,newPage:o}=e.data,a=await this.service.getFile(i.id);a&&(a.id=o.id,a.name=o.name,await this.service.saveFile(a))}$t(this.project)}async saveMaterials(){await bt(),this.simulator.ready(()=>{const e=this.project.value;if(e){const t=this.assets.componentMap;this.service.saveMaterials(e.toDsl(),t)}})}saveCurrentFile(){const e=this.current.value;e&&(this.updateCurrent(e),this.service.saveFile(e.toDsl()))}async initHistory(e){if(e){const t=await this.service.getHistory(e.id).catch(()=>null);this.history.value=new Ng(Object.assign(t||{},{id:e.id}))}else this.history.value=null}async saveHistory(e){const t=e.type,r=e.model;t==="create"&&await this.service.saveHistoryItem(r.id,e.data),t==="delete"&&await this.service.removeHistoryItem(r.id,e.data),t==="clear"&&await this.service.removeHistoryItem(r.id,e.data);const i=r.toDsl();await this.service.saveHistory(i),$t(this.history)}async loadHistory(e){const t=e.model,r=e.data,i=await this.service.getHistoryItem(t.id,r.id);if(i&&i.dsl){const o=new ln(i.dsl);await this.updateCurrent(o),$t(this.history)}}async publish(){const e=this.project.value;if(e){const t={...e.toDsl(),pages:e.getPages()};await this.service.publish(t)&&Je("整站发布成功","success")}}async publishCurrent(){const e=this.project.value,t=e?.currentFile;if(e&&t){const r={...e.toDsl(),pages:e.getPages()};await this.service.publishFile(r,t)&&Je("发布成功","success")}}dispose(){this.emitter.all.clear(),this.simulator.dispose(),this.app&&(this.app.unmount(),this.container=void 0)}async openFile(e){const t=this.project.value,r=this.skeleton?.getRegion("Apps"),i=e||t?.homepage;if(!t||!r||!i)return;const o=t.getPage(i);o&&!o.raw&&(r.regionRef?.setActive("Pages"),this.simulator.ready(()=>{t.active(o)}));const a=t.getBlock(i);a&&(r.regionRef?.setActive("Blocks"),this.simulator?.ready(()=>{t.active(a)}))}}function He(){const n=An(Uc,null);return n||Ye.error("VTJEngine is not exist"),n}const Vt=O({name:"RegionWrapper",props:{region:{type:String,required:!0}},setup(){return{regionRef:B()}},render(){const n=Ss[this.region]||Ss.EmptyRegion;return Oe(n,{...this.$props,...this.$attrs,ref:"regionRef"})}}),Rt=O({name:"WidgetWrapper",props:{region:{type:String,required:!0},widget:{type:Object,required:!0}},setup(){return{widgetRef:B()}},render(){return Oe(this.widget.component,{...this.widget.props,...this.$props,...this.$attrs,ref:"widgetRef"})}}),W5=O({name:"SkeletonWrapper",setup(){const n=B(),e=He(),t=B({});return{skeletonRef:n,engine:e,widgets:t}},mounted(){this.engine.skeleton=this},render(){return Oe(K5,{...this.$props,...this.$attrs,ref:"skeletonRef"})},methods:{getRegion(n){return this.skeletonRef[n.toLowerCase()]},toggleCollapse(n){if(this.skeletonRef){const e=this.skeletonRef.collapsed;this.skeletonRef.collapsed=n??!e}},settable(n){this.skeletonRef&&(this.skeletonRef.settable=n)},getWidgets(n){const e=this.getRegion(n);return e?xo(e.regionRef?.widgetsRef||[]):[]},getWidget(n){const e=Lc.get(n);if(!e){Ye.warn(`widget [ ${n} ] is not exsit`);return}return this.getWidgets(e.region).find(t=>t.widget.name===n)},openPreview(n){this.skeletonRef&&(this.skeletonRef.isPreview=!0)},closePreview(){this.skeletonRef&&(this.skeletonRef.isPreview=!1)}}}),he=O({name:"SetterWrapper",props:{context:{type:Object,default:null},current:{type:Object,default:null},name:String,label:String,title:String,value:{type:[String,Object,Array,Number,Boolean],default:void 0},setters:{type:[String,Object,Array],required:!0,default(){return[]}},options:{type:Array,default(){return[]}},variable:{type:Boolean,default:!0},removable:{type:Boolean,default:!1}},computed:{computedSetters(){return(Array.isArray(this.setters)?this.setters:[this.setters]).map(n=>{let e;if(typeof n=="string")return e=this.getSetter(n),{component:zt(e.component),name:e.name,label:n,props:e.props||{}};{const t=n;return e=this.getSetter(t.name),{component:zt(t.component||e.component),name:t.name,label:t.label||t.name,props:Object.assign(e.props||{},t.props)}}})},computedOptions(){return(this.options||[]).map(n=>typeof n=="string"?{label:n,value:n}:n)},defaultSetter(){const{value:n,computedSetters:e}=this;let t=typeof n;t==="Object"&&(Array.isArray(n)?t="Array":Re(n)?t="Object":Yn(n)&&(t="Function"));const r=wr.getByType(t)||[];return r.length?(e.find(i=>r.includes(i.name))||e[0])?.name:e[0]?.name}},render(){const{context:n,current:e,name:t,label:r,title:i,value:o,computedSetters:a,computedOptions:s,variable:l,changeValue:u,defaultSetter:c,removable:p,onRemove:h}=this;return Oe(t_,{context:n,current:e,name:t,label:r,title:i,setters:a,defaultSetter:c,variable:l,value:o,removable:p,options:s,onChange:u,onRemove:h})},emits:["change","remove"],methods:{getSetter(n){return typeof n=="string"?wr.get(n)||wr.defaultSetter:n},changeValue(n){this.$emit("change",this.name,n)},onRemove(n){this.$emit("remove",n)}}}),K5=O({name:"Skeletion",__name:"skeleton",props:{headerHeight:{default:"36px"},leftWidth:{default:"400px"},rightWidth:{default:"350px"},footerHeight:{default:"20px"}},setup(n,{expose:e}){const t=n,r=B(!1),i=B(parseInt(t.leftWidth)),o=B(parseInt(t.rightWidth)),a={dirs:["e"],maxWidth:600,minWidth:49,onResizing(b,_){i.value=_.elementWidth.value},onEnd(b,_){i.value=_.elementWidth.value}},s={dirs:["w"],maxWidth:600,minWidth:2,onResizing(b,_){o.value=_.elementWidth.value},onEnd(b,_){o.value=_.elementWidth.value}},l=B(),u=B(),c=B(),p=B(),h=B(),m=B(),f=B(),v=B(),g=B(!1),k=B(!1);return e({brand:l,toolbar:u,actions:c,apps:p,workspace:h,settings:m,status:f,collapsed:g,settable:k,leftWidth:i,rightWidth:o,preview:v,isPreview:r}),(b,_)=>(y(),$(d(yd),{locale:d(gd)},{default:S(()=>[w(d(qo),{class:"v-skeleton"},{default:S(()=>[w(d(md),{class:"v-skeleton__header",height:b.headerHeight},{default:S(()=>[w(d(Vt),{ref_key:"brand",ref:l,region:"Brand"},null,512),w(d(Vt),{ref_key:"toolbar",ref:u,region:"Toolbar",preview:r.value},null,8,["preview"]),w(d(Vt),{ref_key:"actions",ref:c,region:"Actions"},null,512)]),_:1},8,["height"]),w(d(qo),{class:"v-skeleton__wrapper"},{default:S(()=>[r.value?M("",!0):Bt((y(),$(d(Wo),{key:0,width:t.leftWidth,class:ue(["v-skeleton__left",{"is-collapsed":g.value}])},{default:S(()=>[w(d(Vt),{ref_key:"apps",ref:p,region:"Apps"},null,512)]),_:1},8,["width","class"])),[[d(Ji),a]]),w(d(fd),{class:"v-skeleton__main"},{default:S(()=>[r.value?(y(),$(d(Vt),{key:0,ref_key:"preview",ref:v,region:"Preview",preview:r.value},null,8,["preview"])):M("",!0),Bt(w(d(Vt),{ref_key:"workspace",ref:h,region:"Workspace"},null,512),[[cn,!r.value]])]),_:1}),r.value?M("",!0):Bt((y(),$(d(Wo),{key:1,width:t.rightWidth,class:"v-skeleton__right"},{default:S(()=>[w(d(Vt),{ref_key:"settings",ref:m,region:"Settings"},null,512)]),_:1},8,["width"])),[[cn,k.value],[d(Ji),s]])]),_:1}),r.value?M("",!0):(y(),$(d(vd),{key:0,class:"v-skeleton__footer",height:b.footerHeight},{default:S(()=>[w(d(Vt),{ref_key:"status",ref:f,region:"Status"},null,512)]),_:1},8,["height"]))]),_:1})]),_:1},8,["locale"]))}}),Y5={key:1},G5={class:"v-setter__content"},Z5={key:0,class:"v-setter__input"},X5={class:"v-setter__action"},Q5="{{",e_="}}",t_=O({__name:"setter",props:{context:{},current:{},name:{},label:{default:""},title:{},setters:{},variable:{type:Boolean,default:!0},value:{},options:{default:()=>[]},defaultSetter:{},removable:{type:Boolean}},emits:["change","remove"],setup(n,{emit:e}){const t=n,r=e,i=B(!1),o=B(""),a=B(t.setters.find(k=>k.name===t.defaultSetter)||t.setters[0]),s=B(t.value),l=T(()=>!!Re(s.value)),u={[a.value.name]:s.value},c=k=>{u[a.value.name]=s.value,a.value=k,s.value=u[k.name]??void 0,p(s.value)};ce(()=>t.value,()=>{s.value=t.value}),ce(()=>t.defaultSetter,()=>{a.value=t.setters.find(k=>k.name===t.defaultSetter)||t.setters[0]});const p=k=>{r("change",k)},h=()=>{r("remove",t.name)},m=()=>{i.value=!0,o.value=Re(s.value)?s.value.value:""},f=()=>{i.value=!1,o.value=""},v=async k=>Me(k,t.context,!0)?(u[a.value.name]=s.value,s.value=k,r("change",k),!0):!1,g=async()=>{await _n("确定要解除绑定吗?")&&(f(),s.value=void 0,r("change",""))};return(k,b)=>(y(),$(d(Xi),{class:"v-setter",size:"small","label-positon":"left"},{label:S(()=>[t.title?(y(),$(d(Cr),{key:0,placement:"top-start",content:t.title},{default:S(()=>[de(ee(t.label||t.name),1)]),_:1},8,["content"])):(y(),R("span",Y5,ee(t.label||t.name),1))]),default:S(()=>[I("div",G5,[a.value?(y(),R("div",Z5,[l.value?M("",!0):(y(),$(Ke(a.value.component),ve({key:0,current:t.current,context:t.context},a.value.props,{options:t.options,modelValue:s.value,"onUpdate:modelValue":b[0]||(b[0]=_=>s.value=_),onChange:p,disabled:l.value}),null,16,["current","context","options","modelValue","disabled"])),l.value?(y(),$(d(tt),{key:1,class:"v-expression-setter",disabled:"","model-value":"JSExpression"},{prefix:S(()=>[de(ee(Q5))]),suffix:S(()=>[de(ee(e_))]),_:1})):M("",!0)])):M("",!0),I("div",X5,[t.variable?(y(),$(d(Iu),{key:0,onClick:m,class:ue(["v-icon-vars",{"is-active":l.value}]),title:"绑定变量"},null,8,["class"])):M("",!0),t.setters.length>1?(y(),$(d(eo),{key:1,disabled:l.value,size:"small","popper-class":"v-setter-switch",onCommand:c},{dropdown:S(()=>[w(d(Qi),null,{default:S(()=>[(y(!0),R(ne,null,oe(t.setters,_=>(y(),$(d(xr),{command:_,key:_.name},{default:S(()=>[w(d(ko),{class:ue({"is-placeholder":_.name!==a.value.name})},null,8,["class"]),de(" "+ee(_.label),1)]),_:2},1032,["command"]))),128))]),_:1})]),default:S(()=>[w(d(wu),{title:"切换设置器"})]),_:1},8,["disabled"])):M("",!0),t.removable?(y(),$(d(qn),{key:2,onClick:h,title:"删除"})):M("",!0)])]),i.value?(y(),$(d(M4),{key:0,current:t.current,context:t.context,value:o.value,modelValue:i.value,"onUpdate:modelValue":b[1]||(b[1]=_=>i.value=_),submitMethod:v,onUnbind:g},null,8,["current","context","value","modelValue"])):M("",!0)]),_:1}))}}),n_={class:"v-empty-region"},r_=O({name:"EmptyRegion",__name:"empty",props:{region:{}},setup(n){return(e,t)=>(y(),R("div",n_,"找不到符合【"+ee(e.region)+"】名称的区域组件",1))}}),i_={class:"v-brand-region"},o_=O({name:"BrandRegion",inheritAttrs:!1,__name:"brand",props:{region:{}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Mt(t.region);return e({widgets:r,widgetsRef:i}),(o,a)=>(y(),R("div",i_,[(y(!0),R(ne,null,oe(d(r),s=>(y(),$(d(Rt),{ref_for:!0,ref_key:"widgetsRef",ref:i,region:o.region,widget:s},null,8,["region","widget"]))),256))]))}}),a_={class:"v-toolbar-region"},s_=O({name:"ToolbarRegion",__name:"toolbar",props:{region:{},preview:{type:Boolean}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Mt(t.region);return e({widgets:r,widgetsRef:i}),(o,a)=>(y(),R("div",a_,[(y(!0),R(ne,null,oe(d(r),s=>(y(),$(d(Rt),{ref_for:!0,ref_key:"widgetsRef",ref:i,region:o.region,widget:s,preview:o.preview},null,8,["region","widget","preview"]))),256))]))}}),l_={class:"v-actions-region"},u_=O({name:"ActionsRegion",inheritAttrs:!1,__name:"actions",props:{region:{}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Mt(t.region);return e({widgets:r,widgetsRef:i}),(o,a)=>(y(),R("div",l_,[(y(!0),R(ne,null,oe(d(r),s=>(y(),$(d(Rt),{ref_for:!0,ref_key:"widgetsRef",ref:i,region:o.region,widget:s},null,8,["region","widget"]))),256))]))}}),c_={class:"v-apps-region"},d_={class:"v-apps-region__header"},p_={class:"v-apps-region__top"},h_={class:"v-apps-region__bottom"},m_={class:"v-apps-region__panels"},f_=O({name:"AppsRegion",inheritAttrs:!1,__name:"apps",props:{region:{},index:{default:0}},setup(n,{expose:e}){const t=n,r=He(),{widgets:i,widgetsRef:o}=Mt(t.region),a=T(()=>i.value.filter(m=>m.openType==="panel")),s=T(()=>i.value.filter(m=>m.openType!=="panel")),l=a.value[t.index],u=B(l),c=B(l),p=m=>{u.value=m,c.value=c.value?.name===m.name?null:m},h=m=>{m.openType==="link"&&m.url&&window.open(m.url),m.openType==="dialog"&&bc({title:m.label,icon:m.icon,...m.props,content:m.component})};return ce(c,m=>{r.skeleton?.toggleCollapse(!m)}),e({widgets:i,widgetsRef:o,setActive:m=>{const f=a.value.find(v=>v.name===m);u.value=f,c.value=f}}),(m,f)=>(y(),R("div",c_,[I("div",d_,[I("div",p_,[(y(!0),R(ne,null,oe(a.value,v=>(y(),$(d(xs),{key:`icon-${v.name}`,icon:v.icon,label:v.label,active:u.value?.name===v.name,open:c.value?.name===v.name,onClick:g=>p(v)},null,8,["icon","label","active","open","onClick"]))),128))]),I("div",h_,[(y(!0),R(ne,null,oe(s.value,v=>(y(),$(d(xs),{key:`icon-${v.name}`,icon:v.icon,label:v.label,onClick:g=>h(v)},null,8,["icon","label","onClick"]))),128))])]),I("div",m_,[(y(!0),R(ne,null,oe(a.value,v=>(y(),$(Vs,{key:v.name},[u.value?.name===v.name?(y(),$(d(Rt),{key:0,ref_for:!0,ref_key:"widgetsRef",ref:o,region:m.region,widget:v},null,8,["region","widget"])):M("",!0)],1024))),128))])]))}}),v_=O({name:"WorkspaceRegion",__name:"workspace",props:{region:{}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Mt(t.region),o=qt(r.value.map(h=>({name:h.name,command:h.name,label:h.label,closable:!!h.closable,props:h.props||{},checked:!h.closable}))),a=T(()=>o.filter(h=>!h.closable||h.checked)),s=T(()=>o.map(h=>({...h,disabled:!h.closable}))),l=B(a.value[0]?.name),u=T(()=>o.find(h=>h.name===l.value)?.props||{}),c=h=>{const m=o.find(f=>f.name===h);m&&(m.checked=!1),l.value===h&&(l.value=a.value[0]?.name)},p=h=>{const m=o.find(f=>f.name===h.name);m&&m.closable&&(m.checked=!m.checked,m.checked&&(l.value=m.name),!m.checked&&l.value===m.name&&(l.value=a.value[0]?.name))};return e({currentTab:l,widgets:r,widgetsRef:i,openTab:(h,m={})=>{const f=o.find(v=>v.name===h);f&&(f.props=Object.assign({},f.props,m),f.checked=!0,l.value=f.name)}}),(h,m)=>(y(),$(d(qr),{class:"v-workspace-region",items:a.value,menus:s.value,modelValue:l.value,"onUpdate:modelValue":m[0]||(m[0]=f=>l.value=f),checkable:"",onRemove:c,onCommand:p},{default:S(()=>[(y(!0),R(ne,null,oe(d(r),f=>(y(),R(ne,{key:f.name},[l.value===f.name?(y(),$(d(Rt),{key:0,ref_for:!0,ref_key:"widgetsRef",ref:i,region:h.region,widget:{...f,props:u.value}},null,8,["region","widget"])):M("",!0)],64))),128))]),_:1},8,["items","menus","modelValue"]))}}),g_=O({name:"SettingsRegion",__name:"settings",props:{region:{}},setup(n,{expose:e}){const t=n,r=He(),{current:i}=Pe(),{selected:o,isSelectBlock:a}=vt(),s=T(()=>a.value?it.Block:it.Node),{widgets:l,widgetsRef:u}=Mt(t.region,s),c=B(),p=B(!1),h=T(()=>l.value.map(g=>({name:g.name,label:g.label,actions:g.name==="Style"?[{name:"switch",icon:Td,background:"hover"}]:void 0}))),m=T(()=>{const g=o.value?.model;return g?r.assets.componentMap.get(g.name)?.doc:null});ce(i,g=>{r.skeleton?.settable(!!g)}),ce(s,()=>{c.value=h.value[0]?.name},{immediate:!0}),ce(c,()=>{p.value=!1});const f=()=>{if(m.value){const g=r.skeleton?.getRegion("Workspace");g&&g.regionRef.openTab("Docs",{url:m.value})}},v=g=>{g.name==="switch"&&(p.value=!p.value)};return e({widgets:l,widgetsRef:u}),(g,k)=>d(i)?(y(),$(d(ae),{key:0,class:"v-settings-region",fit:"",direction:"column"},{default:S(()=>[d(o)?(y(),$(d(ae),{key:0,flex:"",justify:"space-between",align:"center",class:"v-settings-region__header"},{default:S(()=>[w(d(ae),{class:"v-settings-region__title"},{default:S(()=>[w(d(Vo)),I("span",null,[de(ee(d(o)?.model.name)+": ",1),I("i",null,ee(d(o)?.model.id),1)])]),_:1}),m.value?(y(),$(d(ae),{key:0},{default:S(()=>[w(d(De),{onClick:f,icon:d(Du),mode:"text",label:"帮助"},null,8,["icon"])]),_:1})):M("",!0)]),_:1})):M("",!0),d(o)&&!d(o).model.locked?(y(),$(d(ae),{key:1,grow:"",padding:!1},{default:S(()=>[w(d(qr),{items:h.value,modelValue:c.value,"onUpdate:modelValue":k[0]||(k[0]=b=>c.value=b),stretch:"",body:{padding:!1},onActionClick:v},{default:S(()=>[(y(!0),R(ne,null,oe(d(l),b=>(y(),R(ne,{key:b.name},[c.value===b.name?(y(),$(d(Rt),{key:0,ref_for:!0,ref_key:"widgetsRef",ref:u,region:g.region,widget:d(ct)({props:{isStyleCodeMode:p.value}},b)},null,8,["region","widget"])):M("",!0)],64))),128))]),_:1},8,["items","modelValue"])]),_:1})):M("",!0),d(o)?M("",!0):(y(),$(d(Be),{key:2,description:"请在左侧画布选中节点"})),d(o)&&d(o).model.locked?(y(),$(d(Be),{key:3,"image-size":1,description:"节点已被锁定, 禁止编辑"})):M("",!0)]),_:1})):M("",!0)}}),y_={class:"v-status-region"},b_=O({name:"StatusRegion",inheritAttrs:!1,__name:"status",props:{region:{}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Mt(t.region);return e({widgets:r,widgetsRef:i}),(o,a)=>(y(),R("div",y_,[(y(!0),R(ne,null,oe(d(r),s=>(y(),$(d(Rt),{ref_for:!0,ref_key:"widgetsRef",ref:i,region:o.region,widget:s},null,8,["region","widget"]))),256))]))}}),w_=O({name:"PreviewRegion",__name:"preview",props:{region:{}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Mt(t.region),o=qt(r.value.map(l=>({name:l.name,command:l.name,label:l.label,closable:!!l.closable,checked:!1}))),a=T(()=>o.filter(l=>!l.closable||l.checked)),s=B(a.value[0]?.name);return e({currentTab:s,widgets:r,widgetsRef:i}),(l,u)=>(y(),$(d(qr),{class:"v-workspace-region",items:a.value,modelValue:s.value,"onUpdate:modelValue":u[0]||(u[0]=c=>s.value=c)},{default:S(()=>[(y(!0),R(ne,null,oe(d(r),c=>(y(),$(Vs,{key:c.name},[s.value===c.name?(y(),$(d(Rt),{key:0,ref_for:!0,ref_key:"widgetsRef",ref:i,region:l.region,widget:c},null,8,["region","widget"])):M("",!0)],1024))),128))]),_:1},8,["items","modelValue"]))}}),Ss={EmptyRegion:r_,Brand:o_,Toolbar:s_,Actions:u_,Apps:f_,Workspace:v_,Settings:g_,Status:b_,Preview:w_};export{D_ as N,O_ as O,Lc as _,I_ as v,qe as w};
185
+ function __vite__mapDeps(indexes) {
186
+ if (!__vite__mapDeps.viteFileDeps) {
187
+ __vite__mapDeps.viteFileDeps = ["./Editor-BKlikwSl-Dczu-iwv.js","./monaco-editor-DzwMy79G.js","./monaco-editor-z6e5Xz8u.css","./@vue-B9G3NdkG.js"]
188
+ }
189
+ return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
190
+ }