123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- import{i as At,a as uf,b as No,g as yl,r as Ro,e as Ju,c as cf,d as Xo,f as Xs,h as df,j as To,L as Ba,M as ss,k as xu,t as ol,S as as,l as Rf,m as za,n as $u,o as zn,p as ff,q as Ts,s as _,u as ga,v as bo,w as Ee,x as Io,y as Gt,z as is,A as rs,B as qe,C as pf,D as ki,E as Oe,F as Co,G as Sa,H as hf,I as Sl,J as Du,K as Ze,N as kt,O as Bu,P as v,Q as eo,R as A,T as vf,U as Rt,V as mf,W as Do,X as Mf,Y as gf,Z as et,_ as Ot,$ as an,a0 as us,a1 as zu,a2 as ao,a3 as Bo,a4 as hn,a5 as j,a6 as Sf,a7 as Of,a8 as ju,a9 as Pf,aa as Nf,ab as Qn,ac as we,ad as Zn,ae as g,af as I,ag as z,ah as ie,ai as E,aj as We,ak as m,al as k,am as U,an as Vt,ao as It,ap as to,aq as N,ar as ja,as as Fe,at as Me,au as ee,av as tt,aw as ln,ax as _n,ay as Ct,az as de,aA as yt,aB as io,aC as fo,aD as Xf,aE as Tf,aF as Vf,aG as yf,aH as qu,aI as Vo,aJ as ec,aK as Lf,aL as on,aM as qa,aN as bf,aO as If,aP as Yf,aQ as cs,aR as jt,aS as Hn,aT as tc,aU as Vs,aV as nc,aW as js,aX as Wf,aY as te,aZ as ze,a_ as me,a$ as Yt,b0 as oc,b1 as Uf,b2 as lc,b3 as Qf,b4 as Ji,b5 as Ff,b6 as Zf,b7 as Af,b8 as Kf,b9 as sc,ba as ac,bb as _f,bc as Hf,bd as Cf,be as Gf,bf as xi,bg as Ef,bh as wf,bi as $i,bj as kf,bk as ic,bl as Jf,bm as xf,bn as Di,bo as ge,bp as rc,bq as uc,br as Bi,bs as ei,bt as vt,bu as Xe,bv as Ue,bw as oe,bx as st,by as Mn,bz as mt,bA as $f,bB as qs,bC as Df,bD as Bf,bE as ql,bF as zf,bG as fe,bH as Je,bI as xe,bJ as ut,bK as Zt,bL as vn,bM as $t,bN as cc,bO as ot,bP as ys,bQ as ti,bR as jf,bS as dc,bT as ll,bU as Rc,bV as qf,bW as Oa,bX as fc,bY as Ls,bZ as pc,b_ as ep,b$ as hc,c0 as St,c1 as tp,c2 as np,c3 as op,c4 as lp,c5 as sp,c6 as ap,c7 as ip,c8 as rp,c9 as up,ca as vc,cb as cp,cc as ds,cd as dp,ce as Pa,cf as Xt,cg as Pn,ch as zi,ci as Rp,cj as fp,ck as pp,cl as hp,cm as vp,cn as ke,co as mp,cp as wl,cq as Ll,cr as Mp,cs as gt,ct as gp,cu as Sp,cv as Op,cw as Pp,cx as ji}from"./index-RSBmXPSf.js";import{u as bl,c as Na,g as Fn,a as Np,p as Xa,i as Xp,K as Ye,m as Wt,b as bs,d as Tp,j as Vp,e as yp,H as Lp,P as Ke,f as Rs,h as ea,k as An,l as Is,n as mc,o as bp,q as Ip,_ as Yp,E as Mc,r as Wp,s as Up,t as Qp,v as fs,C as Fp,w as Zp,x as Ap,y as Kp,z as _p,V as Hp,A as Cp,B as Gp,D as ct,F as xo,G as Ep,I as Ce,T as ni,J as wp,L as ta,M as kp,N as Jp,O as xp,Q as $p,R as Dp,S as Bp,U as zp,W as jp,X as Vn,Y as qp,Z as gc,$ as eh,a0 as qi,a1 as er,a2 as tr,a3 as Zo,a4 as na,a5 as th,a6 as nh,a7 as wo,a8 as oi,a9 as oh}from"./index-CNjoOxiV.js";import{C as Ta,a as lh,S as sl,b as Sc,D as Oc}from"./vuedraggable.umd-Cm_MxkmF.js";import{u as sh,a as Pc,b as Nc,c as li,d as Il,f as nr,e as Ol,E as ah}from"./index-DjJlWSnG.js";const ih='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',rh=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,or=e=>Array.from(e.querySelectorAll(ih)).filter(t=>uh(t)&&rh(t)),uh=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Wn=(e,t,{checkForDefaultPrevented:n=!0}={})=>l=>{const s=e==null?void 0:e(l);if(n===!1||!s)return t==null?void 0:t(l)},ch=()=>At&&/firefox/i.test(window.navigator.userAgent);var dh=/\s/;function Rh(e){for(var t=e.length;t--&&dh.test(e.charAt(t)););return t}var fh=/^\s+/;function ph(e){return e&&e.slice(0,Rh(e)+1).replace(fh,"")}var lr=NaN,hh=/^[-+]0x[0-9a-f]+$/i,vh=/^0b[01]+$/i,mh=/^0o[0-7]+$/i,Mh=parseInt;function sr(e){if(typeof e=="number")return e;if(uf(e))return lr;if(No(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=No(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=ph(e);var n=vh.test(e);return n||mh.test(e)?Mh(e.slice(2),n?2:8):hh.test(e)?lr:+e}function gh(e){return e}var Va=yl(Ro,"WeakMap"),ar=Object.create,Sh=function(){function e(){}return function(t){if(!No(t))return{};if(ar)return ar(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Oh(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t}var ir=function(){try{var e=yl(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Ph(e,t){for(var n=-1,o=e==null?0:e.length;++n<o&&t(e[n],n,e)!==!1;);return e}function Nh(e,t,n,o){e.length;for(var l=n+1;l--;)if(t(e[l],l,e))return l;return-1}var Xh=9007199254740991,Th=/^(?:0|[1-9]\d*)$/;function Xc(e,t){var n=typeof e;return t=t??Xh,!!t&&(n=="number"||n!="symbol"&&Th.test(e))&&e>-1&&e%1==0&&e<t}function Tc(e,t,n){t=="__proto__"&&ir?ir(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Vh=Object.prototype,yh=Vh.hasOwnProperty;function Vc(e,t,n){var o=e[t];(!(yh.call(e,t)&&Ju(o,n))||n===void 0&&!(t in e))&&Tc(e,t,n)}function Ys(e,t,n,o){var l=!n;n||(n={});for(var s=-1,a=t.length;++s<a;){var i=t[s],u=void 0;u===void 0&&(u=e[i]),l?Tc(n,i,u):Vc(n,i,u)}return n}var Lh=9007199254740991;function si(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Lh}function yc(e){return e!=null&&si(e.length)&&!cf(e)}var bh=Object.prototype;function ai(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||bh;return e===n}function Ih(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}var Yh="[object Arguments]";function rr(e){return Xo(e)&&Xs(e)==Yh}var Lc=Object.prototype,Wh=Lc.hasOwnProperty,Uh=Lc.propertyIsEnumerable,bc=rr(function(){return arguments}())?rr:function(e){return Xo(e)&&Wh.call(e,"callee")&&!Uh.call(e,"callee")};function Qh(){return!1}var Ic=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ur=Ic&&typeof module=="object"&&module&&!module.nodeType&&module,Fh=ur&&ur.exports===Ic,cr=Fh?Ro.Buffer:void 0,Zh=cr?cr.isBuffer:void 0,ps=Zh||Qh,Ah="[object Arguments]",Kh="[object Array]",_h="[object Boolean]",Hh="[object Date]",Ch="[object Error]",Gh="[object Function]",Eh="[object Map]",wh="[object Number]",kh="[object Object]",Jh="[object RegExp]",xh="[object Set]",$h="[object String]",Dh="[object WeakMap]",Bh="[object ArrayBuffer]",zh="[object DataView]",jh="[object Float32Array]",qh="[object Float64Array]",ev="[object Int8Array]",tv="[object Int16Array]",nv="[object Int32Array]",ov="[object Uint8Array]",lv="[object Uint8ClampedArray]",sv="[object Uint16Array]",av="[object Uint32Array]",it={};it[jh]=it[qh]=it[ev]=it[tv]=it[nv]=it[ov]=it[lv]=it[sv]=it[av]=!0;it[Ah]=it[Kh]=it[Bh]=it[_h]=it[zh]=it[Hh]=it[Ch]=it[Gh]=it[Eh]=it[wh]=it[kh]=it[Jh]=it[xh]=it[$h]=it[Dh]=!1;function iv(e){return Xo(e)&&si(e.length)&&!!it[Xs(e)]}function ii(e){return function(t){return e(t)}}var Yc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ml=Yc&&typeof module=="object"&&module&&!module.nodeType&&module,rv=ml&&ml.exports===Yc,oa=rv&&df.process,zo=function(){try{var e=ml&&ml.require&&ml.require("util").types;return e||oa&&oa.binding&&oa.binding("util")}catch{}}(),dr=zo&&zo.isTypedArray,Wc=dr?ii(dr):iv,uv=Object.prototype,cv=uv.hasOwnProperty;function Uc(e,t){var n=To(e),o=!n&&bc(e),l=!n&&!o&&ps(e),s=!n&&!o&&!l&&Wc(e),a=n||o||l||s,i=a?Ih(e.length,String):[],u=i.length;for(var r in e)(t||cv.call(e,r))&&!(a&&(r=="length"||l&&(r=="offset"||r=="parent")||s&&(r=="buffer"||r=="byteLength"||r=="byteOffset")||Xc(r,u)))&&i.push(r);return i}function Qc(e,t){return function(n){return e(t(n))}}var dv=Qc(Object.keys,Object),Rv=Object.prototype,fv=Rv.hasOwnProperty;function pv(e){if(!ai(e))return dv(e);var t=[];for(var n in Object(e))fv.call(e,n)&&n!="constructor"&&t.push(n);return t}function Ws(e){return yc(e)?Uc(e):pv(e)}function hv(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var vv=Object.prototype,mv=vv.hasOwnProperty;function Mv(e){if(!No(e))return hv(e);var t=ai(e),n=[];for(var o in e)o=="constructor"&&(t||!mv.call(e,o))||n.push(o);return n}function ri(e){return yc(e)?Uc(e,!0):Mv(e)}function Fc(e,t){for(var n=-1,o=t.length,l=e.length;++n<o;)e[l+n]=t[n];return e}var Zc=Qc(Object.getPrototypeOf,Object);function gv(){this.__data__=new Ba,this.size=0}function Sv(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Ov(e){return this.__data__.get(e)}function Pv(e){return this.__data__.has(e)}var Nv=200;function Xv(e,t){var n=this.__data__;if(n instanceof Ba){var o=n.__data__;if(!ss||o.length<Nv-1)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new xu(o)}return n.set(e,t),this.size=n.size,this}function yn(e){var t=this.__data__=new Ba(e);this.size=t.size}yn.prototype.clear=gv;yn.prototype.delete=Sv;yn.prototype.get=Ov;yn.prototype.has=Pv;yn.prototype.set=Xv;function Tv(e,t){return e&&Ys(t,Ws(t),e)}function Vv(e,t){return e&&Ys(t,ri(t),e)}var Ac=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Rr=Ac&&typeof module=="object"&&module&&!module.nodeType&&module,yv=Rr&&Rr.exports===Ac,fr=yv?Ro.Buffer:void 0,pr=fr?fr.allocUnsafe:void 0;function Lv(e,t){if(t)return e.slice();var n=e.length,o=pr?pr(n):new e.constructor(n);return e.copy(o),o}function bv(e,t){for(var n=-1,o=e==null?0:e.length,l=0,s=[];++n<o;){var a=e[n];t(a,n,e)&&(s[l++]=a)}return s}function Kc(){return[]}var Iv=Object.prototype,Yv=Iv.propertyIsEnumerable,hr=Object.getOwnPropertySymbols,ui=hr?function(e){return e==null?[]:(e=Object(e),bv(hr(e),function(t){return Yv.call(e,t)}))}:Kc;function Wv(e,t){return Ys(e,ui(e),t)}var Uv=Object.getOwnPropertySymbols,_c=Uv?function(e){for(var t=[];e;)Fc(t,ui(e)),e=Zc(e);return t}:Kc;function Qv(e,t){return Ys(e,_c(e),t)}function Hc(e,t,n){var o=t(e);return To(e)?o:Fc(o,n(e))}function ya(e){return Hc(e,Ws,ui)}function Fv(e){return Hc(e,ri,_c)}var La=yl(Ro,"DataView"),ba=yl(Ro,"Promise"),Ia=yl(Ro,"Set"),vr="[object Map]",Zv="[object Object]",mr="[object Promise]",Mr="[object Set]",gr="[object WeakMap]",Sr="[object DataView]",Av=ol(La),Kv=ol(ss),_v=ol(ba),Hv=ol(Ia),Cv=ol(Va),Rn=Xs;(La&&Rn(new La(new ArrayBuffer(1)))!=Sr||ss&&Rn(new ss)!=vr||ba&&Rn(ba.resolve())!=mr||Ia&&Rn(new Ia)!=Mr||Va&&Rn(new Va)!=gr)&&(Rn=function(e){var t=Xs(e),n=t==Zv?e.constructor:void 0,o=n?ol(n):"";if(o)switch(o){case Av:return Sr;case Kv:return vr;case _v:return mr;case Hv:return Mr;case Cv:return gr}return t});var Gv=Object.prototype,Ev=Gv.hasOwnProperty;function wv(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Ev.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var hs=Ro.Uint8Array;function ci(e){var t=new e.constructor(e.byteLength);return new hs(t).set(new hs(e)),t}function kv(e,t){var n=t?ci(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Jv=/\w*$/;function xv(e){var t=new e.constructor(e.source,Jv.exec(e));return t.lastIndex=e.lastIndex,t}var Or=as?as.prototype:void 0,Pr=Or?Or.valueOf:void 0;function $v(e){return Pr?Object(Pr.call(e)):{}}function Dv(e,t){var n=t?ci(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Bv="[object Boolean]",zv="[object Date]",jv="[object Map]",qv="[object Number]",em="[object RegExp]",tm="[object Set]",nm="[object String]",om="[object Symbol]",lm="[object ArrayBuffer]",sm="[object DataView]",am="[object Float32Array]",im="[object Float64Array]",rm="[object Int8Array]",um="[object Int16Array]",cm="[object Int32Array]",dm="[object Uint8Array]",Rm="[object Uint8ClampedArray]",fm="[object Uint16Array]",pm="[object Uint32Array]";function hm(e,t,n){var o=e.constructor;switch(t){case lm:return ci(e);case Bv:case zv:return new o(+e);case sm:return kv(e,n);case am:case im:case rm:case um:case cm:case dm:case Rm:case fm:case pm:return Dv(e,n);case jv:return new o;case qv:case nm:return new o(e);case em:return xv(e);case tm:return new o;case om:return $v(e)}}function vm(e){return typeof e.constructor=="function"&&!ai(e)?Sh(Zc(e)):{}}var mm="[object Map]";function Mm(e){return Xo(e)&&Rn(e)==mm}var Nr=zo&&zo.isMap,gm=Nr?ii(Nr):Mm,Sm="[object Set]";function Om(e){return Xo(e)&&Rn(e)==Sm}var Xr=zo&&zo.isSet,Pm=Xr?ii(Xr):Om,Nm=1,Xm=2,Tm=4,Cc="[object Arguments]",Vm="[object Array]",ym="[object Boolean]",Lm="[object Date]",bm="[object Error]",Gc="[object Function]",Im="[object GeneratorFunction]",Ym="[object Map]",Wm="[object Number]",Ec="[object Object]",Um="[object RegExp]",Qm="[object Set]",Fm="[object String]",Zm="[object Symbol]",Am="[object WeakMap]",Km="[object ArrayBuffer]",_m="[object DataView]",Hm="[object Float32Array]",Cm="[object Float64Array]",Gm="[object Int8Array]",Em="[object Int16Array]",wm="[object Int32Array]",km="[object Uint8Array]",Jm="[object Uint8ClampedArray]",xm="[object Uint16Array]",$m="[object Uint32Array]",at={};at[Cc]=at[Vm]=at[Km]=at[_m]=at[ym]=at[Lm]=at[Hm]=at[Cm]=at[Gm]=at[Em]=at[wm]=at[Ym]=at[Wm]=at[Ec]=at[Um]=at[Qm]=at[Fm]=at[Zm]=at[km]=at[Jm]=at[xm]=at[$m]=!0;at[bm]=at[Gc]=at[Am]=!1;function es(e,t,n,o,l,s){var a,i=t&Nm,u=t&Xm,r=t&Tm;if(a!==void 0)return a;if(!No(e))return e;var c=To(e);if(c){if(a=wv(e),!i)return Oh(e,a)}else{var d=Rn(e),R=d==Gc||d==Im;if(ps(e))return Lv(e,i);if(d==Ec||d==Cc||R&&!l){if(a=u||R?{}:vm(e),!i)return u?Qv(e,Vv(a,e)):Wv(e,Tv(a,e))}else{if(!at[d])return l?e:{};a=hm(e,d,i)}}s||(s=new yn);var p=s.get(e);if(p)return p;s.set(e,a),Pm(e)?e.forEach(function(P){a.add(es(P,t,n,P,e,s))}):gm(e)&&e.forEach(function(P,O){a.set(O,es(P,t,n,O,e,s))});var f=r?u?Fv:ya:u?ri:Ws,h=c?void 0:f(e);return Ph(h||e,function(P,O){h&&(O=P,P=e[O]),Vc(a,O,es(P,t,n,O,e,s))}),a}var Dm=1,Bm=4;function Tr(e){return es(e,Dm|Bm)}var zm="__lodash_hash_undefined__";function jm(e){return this.__data__.set(e,zm),this}function qm(e){return this.__data__.has(e)}function vs(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new xu;++t<n;)this.add(e[t])}vs.prototype.add=vs.prototype.push=jm;vs.prototype.has=qm;function eM(e,t){for(var n=-1,o=e==null?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}function tM(e,t){return e.has(t)}var nM=1,oM=2;function wc(e,t,n,o,l,s){var a=n&nM,i=e.length,u=t.length;if(i!=u&&!(a&&u>i))return!1;var r=s.get(e),c=s.get(t);if(r&&c)return r==t&&c==e;var d=-1,R=!0,p=n&oM?new vs:void 0;for(s.set(e,t),s.set(t,e);++d<i;){var f=e[d],h=t[d];if(o)var P=a?o(h,f,d,t,e,s):o(f,h,d,e,t,s);if(P!==void 0){if(P)continue;R=!1;break}if(p){if(!eM(t,function(O,L){if(!tM(p,L)&&(f===O||l(f,O,n,o,s)))return p.push(L)})){R=!1;break}}else if(!(f===h||l(f,h,n,o,s))){R=!1;break}}return s.delete(e),s.delete(t),R}function lM(e){var t=-1,n=Array(e.size);return e.forEach(function(o,l){n[++t]=[l,o]}),n}function sM(e){var t=-1,n=Array(e.size);return e.forEach(function(o){n[++t]=o}),n}var aM=1,iM=2,rM="[object Boolean]",uM="[object Date]",cM="[object Error]",dM="[object Map]",RM="[object Number]",fM="[object RegExp]",pM="[object Set]",hM="[object String]",vM="[object Symbol]",mM="[object ArrayBuffer]",MM="[object DataView]",Vr=as?as.prototype:void 0,la=Vr?Vr.valueOf:void 0;function gM(e,t,n,o,l,s,a){switch(n){case MM:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case mM:return!(e.byteLength!=t.byteLength||!s(new hs(e),new hs(t)));case rM:case uM:case RM:return Ju(+e,+t);case cM:return e.name==t.name&&e.message==t.message;case fM:case hM:return e==t+"";case dM:var i=lM;case pM:var u=o&aM;if(i||(i=sM),e.size!=t.size&&!u)return!1;var r=a.get(e);if(r)return r==t;o|=iM,a.set(e,t);var c=wc(i(e),i(t),o,l,s,a);return a.delete(e),c;case vM:if(la)return la.call(e)==la.call(t)}return!1}var SM=1,OM=Object.prototype,PM=OM.hasOwnProperty;function NM(e,t,n,o,l,s){var a=n&SM,i=ya(e),u=i.length,r=ya(t),c=r.length;if(u!=c&&!a)return!1;for(var d=u;d--;){var R=i[d];if(!(a?R in t:PM.call(t,R)))return!1}var p=s.get(e),f=s.get(t);if(p&&f)return p==t&&f==e;var h=!0;s.set(e,t),s.set(t,e);for(var P=a;++d<u;){R=i[d];var O=e[R],L=t[R];if(o)var S=a?o(L,O,R,t,e,s):o(O,L,R,e,t,s);if(!(S===void 0?O===L||l(O,L,n,o,s):S)){h=!1;break}P||(P=R=="constructor")}if(h&&!P){var X=e.constructor,M=t.constructor;X!=M&&"constructor"in e&&"constructor"in t&&!(typeof X=="function"&&X instanceof X&&typeof M=="function"&&M instanceof M)&&(h=!1)}return s.delete(e),s.delete(t),h}var XM=1,yr="[object Arguments]",Lr="[object Array]",kl="[object Object]",TM=Object.prototype,br=TM.hasOwnProperty;function VM(e,t,n,o,l,s){var a=To(e),i=To(t),u=a?Lr:Rn(e),r=i?Lr:Rn(t);u=u==yr?kl:u,r=r==yr?kl:r;var c=u==kl,d=r==kl,R=u==r;if(R&&ps(e)){if(!ps(t))return!1;a=!0,c=!1}if(R&&!c)return s||(s=new yn),a||Wc(e)?wc(e,t,n,o,l,s):gM(e,t,u,n,o,l,s);if(!(n&XM)){var p=c&&br.call(e,"__wrapped__"),f=d&&br.call(t,"__wrapped__");if(p||f){var h=p?e.value():e,P=f?t.value():t;return s||(s=new yn),l(h,P,n,o,s)}}return R?(s||(s=new yn),NM(e,t,n,o,l,s)):!1}function Us(e,t,n,o,l){return e===t?!0:e==null||t==null||!Xo(e)&&!Xo(t)?e!==e&&t!==t:VM(e,t,n,o,Us,l)}var yM=1,LM=2;function bM(e,t,n,o){var l=n.length,s=l;if(e==null)return!s;for(e=Object(e);l--;){var a=n[l];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++l<s;){a=n[l];var i=a[0],u=e[i],r=a[1];if(a[2]){if(u===void 0&&!(i in e))return!1}else{var c=new yn,d;if(!(d===void 0?Us(r,u,yM|LM,o,c):d))return!1}}return!0}function kc(e){return e===e&&!No(e)}function IM(e){for(var t=Ws(e),n=t.length;n--;){var o=t[n],l=e[o];t[n]=[o,l,kc(l)]}return t}function Jc(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function YM(e){var t=IM(e);return t.length==1&&t[0][2]?Jc(t[0][0],t[0][1]):function(n){return n===e||bM(n,e,t)}}function WM(e,t){return e!=null&&t in Object(e)}function UM(e,t,n){t=Rf(t,e);for(var o=-1,l=t.length,s=!1;++o<l;){var a=za(t[o]);if(!(s=e!=null&&n(e,a)))break;e=e[a]}return s||++o!=l?s:(l=e==null?0:e.length,!!l&&si(l)&&Xc(a,l)&&(To(e)||bc(e)))}function QM(e,t){return e!=null&&UM(e,t,WM)}var FM=1,ZM=2;function AM(e,t){return $u(e)&&kc(t)?Jc(za(e),t):function(n){var o=zn(n,e);return o===void 0&&o===t?QM(n,e):Us(t,o,FM|ZM)}}function KM(e){return function(t){return t==null?void 0:t[e]}}function _M(e){return function(t){return ff(t,e)}}function HM(e){return $u(e)?KM(za(e)):_M(e)}function CM(e){return typeof e=="function"?e:e==null?gh:typeof e=="object"?To(e)?AM(e[0],e[1]):YM(e):HM(e)}var sa=function(){return Ro.Date.now()},GM="Expected a function",EM=Math.max,wM=Math.min;function kM(e,t,n){var o,l,s,a,i,u,r=0,c=!1,d=!1,R=!0;if(typeof e!="function")throw new TypeError(GM);t=sr(t)||0,No(n)&&(c=!!n.leading,d="maxWait"in n,s=d?EM(sr(n.maxWait)||0,t):s,R="trailing"in n?!!n.trailing:R);function p(y){var W=o,T=l;return o=l=void 0,r=y,a=e.apply(T,W),a}function f(y){return r=y,i=setTimeout(O,t),c?p(y):a}function h(y){var W=y-u,T=y-r,V=t-W;return d?wM(V,s-T):V}function P(y){var W=y-u,T=y-r;return u===void 0||W>=t||W<0||d&&T>=s}function O(){var y=sa();if(P(y))return L(y);i=setTimeout(O,h(y))}function L(y){return i=void 0,R&&o?p(y):(o=l=void 0,a)}function S(){i!==void 0&&clearTimeout(i),r=0,o=u=l=i=void 0}function X(){return i===void 0?a:L(sa())}function M(){var y=sa(),W=P(y);if(o=arguments,l=this,u=y,W){if(i===void 0)return f(u);if(d)return clearTimeout(i),i=setTimeout(O,t),p(u)}return i===void 0&&(i=setTimeout(O,t)),a}return M.cancel=S,M.flush=X,M}function JM(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var l=o-1;return Nh(e,CM(t),l)}function jo(e,t){return Us(e,t)}function Yo(e){return e==null}function xM(e){return e===void 0}const $M=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");class DM extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Yl(e,t){throw new DM(`[${e}] ${t}`)}let Jl;const BM=e=>{var t;if(!At)return 0;if(Jl!==void 0)return Jl;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const o=n.offsetWidth;n.style.overflow="scroll";const l=document.createElement("div");l.style.width="100%",n.appendChild(l);const s=l.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),Jl=o-s,Jl};function zM(e,t){if(!At)return;if(!t){e.scrollTop=0;return}const n=[];let o=t.offsetParent;for(;o!==null&&e!==o&&e.contains(o);)n.push(o),o=o.offsetParent;const l=t.offsetTop+n.reduce((u,r)=>u+r.offsetTop,0),s=l+t.offsetHeight,a=e.scrollTop,i=a+e.clientHeight;l<a?e.scrollTop=l:s>i&&(e.scrollTop=s-e.clientHeight)}const dn="update:modelValue",xc="change",jM=e=>["",...Ts].includes(e);var ts=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(ts||{});const $c=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),qM=["class","style"],eg=/^on[A-Z]/,tg=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,o=_(()=>((n==null?void 0:n.value)||[]).concat(qM)),l=bo();return l?_(()=>{var s;return ga(Object.entries((s=l.proxy)==null?void 0:s.$attrs).filter(([a])=>!o.value.includes(a)&&!(t&&eg.test(a))))}):_(()=>({}))},ng=(e,t,n,o)=>{let l={offsetX:0,offsetY:0};const s=u=>{const r=u.clientX,c=u.clientY,{offsetX:d,offsetY:R}=l,p=e.value.getBoundingClientRect(),f=p.left,h=p.top,P=p.width,O=p.height,L=document.documentElement.clientWidth,S=document.documentElement.clientHeight,X=-f+d,M=-h+R,y=L-f-P+d,W=S-h-O+R,T=b=>{let Y=d+b.clientX-r,F=R+b.clientY-c;o!=null&&o.value||(Y=Math.min(Math.max(Y,X),y),F=Math.min(Math.max(F,M),W)),l={offsetX:Y,offsetY:F},e.value&&(e.value.style.transform=`translate(${is(Y)}, ${is(F)})`)},V=()=>{document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",V)};document.addEventListener("mousemove",T),document.addEventListener("mouseup",V)},a=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",s)},i=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",s)};Ee(()=>{Io(()=>{n.value?a():i()})}),Gt(()=>{i()})},og=(e,t={})=>{rs(e)||Yl("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||qe("popup"),o=pf(()=>n.bm("parent","hidden"));if(!At||ki(document.body,o.value))return;let l=0,s=!1,a="0";const i=()=>{setTimeout(()=>{Sl(document==null?void 0:document.body,o.value),s&&document&&(document.body.style.width=a)},200)};Oe(e,u=>{if(!u){i();return}s=!ki(document.body,o.value),s&&(a=document.body.style.width),l=BM(n.namespace.value);const r=document.documentElement.clientHeight<document.body.scrollHeight,c=Co(document.body,"overflowY");l>0&&(r||c==="scroll")&&s&&(document.body.style.width=`calc(100% - ${l}px)`),Sa(document.body,o.value)}),hf(()=>i())},lg=Du({type:Ze(Boolean),default:null}),sg=Du({type:Ze(Function)}),Dc=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,o=[t],l={[e]:lg,[n]:sg};return{useModelToggle:({indicator:a,toggleReason:i,shouldHideWhenRouteChanges:u,shouldProceed:r,onShow:c,onHide:d})=>{const R=bo(),{emit:p}=R,f=R.props,h=_(()=>kt(f[n])),P=_(()=>f[e]===null),O=W=>{a.value!==!0&&(a.value=!0,i&&(i.value=W),kt(c)&&c(W))},L=W=>{a.value!==!1&&(a.value=!1,i&&(i.value=W),kt(d)&&d(W))},S=W=>{if(f.disabled===!0||kt(r)&&!r())return;const T=h.value&&At;T&&p(t,!0),(P.value||!T)&&O(W)},X=W=>{if(f.disabled===!0||!At)return;const T=h.value&&At;T&&p(t,!1),(P.value||!T)&&L(W)},M=W=>{Bu(W)&&(f.disabled&&W?h.value&&p(t,!1):a.value!==W&&(W?O():L()))},y=()=>{a.value?X():S()};return Oe(()=>f[e],M),u&&R.appContext.config.globalProperties.$route!==void 0&&Oe(()=>({...R.proxy.$route}),()=>{u.value&&a.value&&X()}),Ee(()=>{M(f[e])}),{hide:X,show:S,toggle:y,hasUpdateHandler:h}},useModelToggleProps:l,useModelToggleEmits:o}};Dc("modelValue");const ag=(e,t,n={})=>{const o={name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const r=ig(u);Object.assign(a.value,r)},requires:["computeStyles"]},l=_(()=>{const{onFirstUpdate:u,placement:r,strategy:c,modifiers:d}=v(n);return{onFirstUpdate:u,placement:r||"bottom",strategy:c||"absolute",modifiers:[...d||[],o,{name:"applyStyles",enabled:!1}]}}),s=eo(),a=A({styles:{popper:{position:v(l).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=()=>{s.value&&(s.value.destroy(),s.value=void 0)};return Oe(l,u=>{const r=v(s);r&&r.setOptions(u)},{deep:!0}),Oe([e,t],([u,r])=>{i(),!(!u||!r)&&(s.value=vf(u,r,v(l)))}),Gt(()=>{i()}),{state:_(()=>{var u;return{...((u=v(s))==null?void 0:u.state)||{}}}),styles:_(()=>v(a).styles),attributes:_(()=>v(a).attributes),update:()=>{var u;return(u=v(s))==null?void 0:u.update()},forceUpdate:()=>{var u;return(u=v(s))==null?void 0:u.forceUpdate()},instanceRef:_(()=>v(s))}};function ig(e){const t=Object.keys(e.elements),n=ga(t.map(l=>[l,e.styles[l]||{}])),o=ga(t.map(l=>[l,e.attributes[l]]));return{styles:n,attributes:o}}const Bc=e=>{if(!e)return{onClick:Rt,onMousedown:Rt,onMouseup:Rt};let t=!1,n=!1;return{onClick:a=>{t&&n&&e(a),t=n=!1},onMousedown:a=>{t=a.target===a.currentTarget},onMouseup:a=>{n=a.target===a.currentTarget}}};function Ir(){let e;const t=(o,l)=>{n(),e=window.setTimeout(o,l)},n=()=>window.clearTimeout(e);return mf(()=>n()),{registerTimeout:t,cancelTimeout:n}}let Go=[];const Yr=e=>{const t=e;t.key===Do.esc&&Go.forEach(n=>n(t))},rg=e=>{Ee(()=>{Go.length===0&&document.addEventListener("keydown",Yr),At&&Go.push(e)}),Gt(()=>{Go=Go.filter(t=>t!==e),Go.length===0&&At&&document.removeEventListener("keydown",Yr)})};let Wr;const zc=()=>{const e=gf(),t=sh(),n=_(()=>`${e.value}-popper-container-${t.prefix}`),o=_(()=>`#${n.value}`);return{id:n,selector:o}},ug=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},cg=()=>{const{id:e,selector:t}=zc();return Mf(()=>{At&&!Wr&&!document.body.querySelector(t.value)&&(Wr=ug(e.value))}),{id:e,selector:t}},dg=et({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),Rg=({showAfter:e,hideAfter:t,autoClose:n,open:o,close:l})=>{const{registerTimeout:s}=Ir(),{registerTimeout:a,cancelTimeout:i}=Ir();return{onOpen:c=>{s(()=>{o(c);const d=v(n);Ot(d)&&d>0&&a(()=>{l(c)},d)},v(e))},onClose:c=>{i(),s(()=>{l(c)},v(t))}}},jc=Symbol("elForwardRef"),fg=e=>{an(jc,{setForwardRef:n=>{e.value=n}})},pg=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}});function hg(e){const t=A();function n(){if(e.value==null)return;const{selectionStart:l,selectionEnd:s,value:a}=e.value;if(l==null||s==null)return;const i=a.slice(0,Math.max(0,l)),u=a.slice(Math.max(0,s));t.value={selectionStart:l,selectionEnd:s,value:a,beforeTxt:i,afterTxt:u}}function o(){if(e.value==null||t.value==null)return;const{value:l}=e.value,{beforeTxt:s,afterTxt:a,selectionStart:i}=t.value;if(s==null||a==null||i==null)return;let u=l.length;if(l.endsWith(a))u=l.length-a.length;else if(l.startsWith(s))u=s.length;else{const r=s[i-1],c=l.indexOf(r,i-1);c!==-1&&(u=c+1)}e.value.setSelectionRange(u,u)}return[n,o]}function qc(e,{afterFocus:t,beforeBlur:n,afterBlur:o}={}){const l=bo(),{emit:s}=l,a=eo(),i=A(!1),u=d=>{i.value||(i.value=!0,s("focus",d),t==null||t())},r=d=>{var R;kt(n)&&n(d)||d.relatedTarget&&((R=a.value)!=null&&R.contains(d.relatedTarget))||(i.value=!1,s("blur",d),o==null||o())},c=()=>{var d;(d=e.value)==null||d.focus()};return Oe(a,d=>{d&&d.setAttribute("tabindex","-1")}),us(a,"click",c),{wrapperRef:a,isFocused:i,handleFocus:u,handleBlur:r}}let cn;const vg=`
- height:0 !important;
- visibility:hidden !important;
- ${ch()?"":"overflow:hidden !important;"}
- position:absolute !important;
- z-index:-1000 !important;
- top:0 !important;
- right:0 !important;
- `,mg=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function Mg(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),o=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),l=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:mg.map(a=>`${a}:${t.getPropertyValue(a)}`).join(";"),paddingSize:o,borderSize:l,boxSizing:n}}function Ur(e,t=1,n){var o;cn||(cn=document.createElement("textarea"),document.body.appendChild(cn));const{paddingSize:l,borderSize:s,boxSizing:a,contextStyle:i}=Mg(e);cn.setAttribute("style",`${i};${vg}`),cn.value=e.value||e.placeholder||"";let u=cn.scrollHeight;const r={};a==="border-box"?u=u+s:a==="content-box"&&(u=u-l),cn.value="";const c=cn.scrollHeight-l;if(Ot(t)){let d=c*t;a==="border-box"&&(d=d+l+s),u=Math.max(d,u),r.minHeight=`${d}px`}if(Ot(n)){let d=c*n;a==="border-box"&&(d=d+l+s),u=Math.min(d,u)}return r.height=`${u}px`,(o=cn.parentNode)==null||o.removeChild(cn),cn=void 0,r}const gg=et({id:{type:String,default:void 0},size:zu,disabled:Boolean,modelValue:{type:Ze([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Ze([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:ao},prefixIcon:{type:ao},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Ze([Object,Array,String]),default:()=>Bo({})},autofocus:{type:Boolean,default:!1}}),Sg={[dn]:e=>hn(e),input:e=>hn(e),change:e=>hn(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},Og=["role"],Pg=["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],Ng=["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],Xg=j({name:"ElInput",inheritAttrs:!1}),Tg=j({...Xg,props:gg,emits:Sg,setup(e,{expose:t,emit:n}){const o=e,l=Sf(),s=Of(),a=_(()=>{const pe={};return o.containerRole==="combobox"&&(pe["aria-haspopup"]=l["aria-haspopup"],pe["aria-owns"]=l["aria-owns"],pe["aria-expanded"]=l["aria-expanded"]),pe}),i=_(()=>[o.type==="textarea"?P.b():h.b(),h.m(p.value),h.is("disabled",f.value),h.is("exceed",B.value),{[h.b("group")]:s.prepend||s.append,[h.bm("group","append")]:s.append,[h.bm("group","prepend")]:s.prepend,[h.m("prefix")]:s.prefix||o.prefixIcon,[h.m("suffix")]:s.suffix||o.suffixIcon||o.clearable||o.showPassword,[h.bm("suffix","password-clear")]:Re.value&&ae.value,[h.b("hidden")]:o.type==="hidden"},l.class]),u=_(()=>[h.e("wrapper"),h.is("focus",b.value)]),r=tg({excludeKeys:_(()=>Object.keys(a.value))}),{form:c,formItem:d}=Pc(),{inputId:R}=Nc(o,{formItemContext:d}),p=li(),f=Il(),h=qe("input"),P=qe("textarea"),O=eo(),L=eo(),S=A(!1),X=A(!1),M=A(!1),y=A(),W=eo(o.inputStyle),T=_(()=>O.value||L.value),{wrapperRef:V,isFocused:b,handleFocus:Y,handleBlur:F}=qc(T,{afterBlur(){var pe;o.validateEvent&&((pe=d==null?void 0:d.validate)==null||pe.call(d,"blur").catch(Ge=>void 0))}}),C=_(()=>{var pe;return(pe=c==null?void 0:c.statusIcon)!=null?pe:!1}),K=_(()=>(d==null?void 0:d.validateState)||""),H=_(()=>K.value&&ju[K.value]),Q=_(()=>M.value?Pf:Nf),G=_(()=>[l.style]),$=_(()=>[o.inputStyle,W.value,{resize:o.resize}]),se=_(()=>Yo(o.modelValue)?"":String(o.modelValue)),Re=_(()=>o.clearable&&!f.value&&!o.readonly&&!!se.value&&(b.value||S.value)),ae=_(()=>o.showPassword&&!f.value&&!o.readonly&&!!se.value&&(!!se.value||b.value)),Pe=_(()=>o.showWordLimit&&!!o.maxlength&&(o.type==="text"||o.type==="textarea")&&!f.value&&!o.readonly&&!o.showPassword),x=_(()=>se.value.length),B=_(()=>!!Pe.value&&x.value>Number(o.maxlength)),Ie=_(()=>!!s.suffix||!!o.suffixIcon||Re.value||o.showPassword||Pe.value||!!K.value&&C.value),[ce,q]=hg(O);Qn(L,pe=>{if(w(),!Pe.value||o.resize!=="both")return;const Ge=pe[0],{width:ft}=Ge.contentRect;y.value={right:`calc(100% - ${ft+15+6}px)`}});const ne=()=>{const{type:pe,autosize:Ge}=o;if(!(!At||pe!=="textarea"||!L.value))if(Ge){const ft=ln(Ge)?Ge.minRows:void 0,In=ln(Ge)?Ge.maxRows:void 0,ho=Ur(L.value,ft,In);W.value={overflowY:"hidden",...ho},we(()=>{L.value.offsetHeight,W.value=ho})}else W.value={minHeight:Ur(L.value).minHeight}},w=(pe=>{let Ge=!1;return()=>{var ft;if(Ge||!o.autosize)return;((ft=L.value)==null?void 0:ft.offsetParent)===null||(pe(),Ge=!0)}})(ne),D=()=>{const pe=T.value,Ge=o.formatter?o.formatter(se.value):se.value;!pe||pe.value===Ge||(pe.value=Ge)},Z=async pe=>{ce();let{value:Ge}=pe.target;if(o.formatter&&(Ge=o.parser?o.parser(Ge):Ge),!X.value){if(Ge===se.value){D();return}n(dn,Ge),n("input",Ge),await we(),D(),q()}},J=pe=>{n("change",pe.target.value)},re=pe=>{n("compositionstart",pe),X.value=!0},ue=pe=>{var Ge;n("compositionupdate",pe);const ft=(Ge=pe.target)==null?void 0:Ge.value,In=ft[ft.length-1]||"";X.value=!$c(In)},Te=pe=>{n("compositionend",pe),X.value&&(X.value=!1,Z(pe))},Ae=()=>{M.value=!M.value,Qe()},Qe=async()=>{var pe;await we(),(pe=T.value)==null||pe.focus()},Ne=()=>{var pe;return(pe=T.value)==null?void 0:pe.blur()},he=pe=>{S.value=!1,n("mouseleave",pe)},Le=pe=>{S.value=!0,n("mouseenter",pe)},ve=pe=>{n("keydown",pe)},_e=()=>{var pe;(pe=T.value)==null||pe.select()},je=()=>{n(dn,""),n("change",""),n("clear"),n("input","")};return Oe(()=>o.modelValue,()=>{var pe;we(()=>ne()),o.validateEvent&&((pe=d==null?void 0:d.validate)==null||pe.call(d,"change").catch(Ge=>void 0))}),Oe(se,()=>D()),Oe(()=>o.type,async()=>{await we(),D(),ne()}),Ee(()=>{!o.formatter&&o.parser,D(),we(ne)}),t({input:O,textarea:L,ref:T,textareaStyle:$,autosize:Zn(o,"autosize"),focus:Qe,blur:Ne,select:_e,clear:je,resizeTextarea:ne}),(pe,Ge)=>(g(),I("div",to(v(a),{class:v(i),style:v(G),role:pe.containerRole,onMouseenter:Le,onMouseleave:he}),[z(" input "),pe.type!=="textarea"?(g(),I(ie,{key:0},[z(" prepend slot "),pe.$slots.prepend?(g(),I("div",{key:0,class:E(v(h).be("group","prepend"))},[We(pe.$slots,"prepend")],2)):z("v-if",!0),m("div",{ref_key:"wrapperRef",ref:V,class:E(v(u))},[z(" prefix slot "),pe.$slots.prefix||pe.prefixIcon?(g(),I("span",{key:0,class:E(v(h).e("prefix"))},[m("span",{class:E(v(h).e("prefix-inner"))},[We(pe.$slots,"prefix"),pe.prefixIcon?(g(),k(v(It),{key:0,class:E(v(h).e("icon"))},{default:U(()=>[(g(),k(Vt(pe.prefixIcon)))]),_:1},8,["class"])):z("v-if",!0)],2)],2)):z("v-if",!0),m("input",to({id:v(R),ref_key:"input",ref:O,class:v(h).e("inner")},v(r),{minlength:pe.minlength,maxlength:pe.maxlength,type:pe.showPassword?M.value?"text":"password":pe.type,disabled:v(f),readonly:pe.readonly,autocomplete:pe.autocomplete,tabindex:pe.tabindex,"aria-label":pe.label,placeholder:pe.placeholder,style:pe.inputStyle,form:pe.form,autofocus:pe.autofocus,onCompositionstart:re,onCompositionupdate:ue,onCompositionend:Te,onInput:Z,onFocus:Ge[0]||(Ge[0]=(...ft)=>v(Y)&&v(Y)(...ft)),onBlur:Ge[1]||(Ge[1]=(...ft)=>v(F)&&v(F)(...ft)),onChange:J,onKeydown:ve}),null,16,Pg),z(" suffix slot "),v(Ie)?(g(),I("span",{key:1,class:E(v(h).e("suffix"))},[m("span",{class:E(v(h).e("suffix-inner"))},[!v(Re)||!v(ae)||!v(Pe)?(g(),I(ie,{key:0},[We(pe.$slots,"suffix"),pe.suffixIcon?(g(),k(v(It),{key:0,class:E(v(h).e("icon"))},{default:U(()=>[(g(),k(Vt(pe.suffixIcon)))]),_:1},8,["class"])):z("v-if",!0)],64)):z("v-if",!0),v(Re)?(g(),k(v(It),{key:1,class:E([v(h).e("icon"),v(h).e("clear")]),onMousedown:Fe(v(Rt),["prevent"]),onClick:je},{default:U(()=>[N(v(ja))]),_:1},8,["class","onMousedown"])):z("v-if",!0),v(ae)?(g(),k(v(It),{key:2,class:E([v(h).e("icon"),v(h).e("password")]),onClick:Ae},{default:U(()=>[(g(),k(Vt(v(Q))))]),_:1},8,["class"])):z("v-if",!0),v(Pe)?(g(),I("span",{key:3,class:E(v(h).e("count"))},[m("span",{class:E(v(h).e("count-inner"))},Me(v(x))+" / "+Me(pe.maxlength),3)],2)):z("v-if",!0),v(K)&&v(H)&&v(C)?(g(),k(v(It),{key:4,class:E([v(h).e("icon"),v(h).e("validateIcon"),v(h).is("loading",v(K)==="validating")])},{default:U(()=>[(g(),k(Vt(v(H))))]),_:1},8,["class"])):z("v-if",!0)],2)],2)):z("v-if",!0)],2),z(" append slot "),pe.$slots.append?(g(),I("div",{key:1,class:E(v(h).be("group","append"))},[We(pe.$slots,"append")],2)):z("v-if",!0)],64)):(g(),I(ie,{key:1},[z(" textarea "),m("textarea",to({id:v(R),ref_key:"textarea",ref:L,class:v(P).e("inner")},v(r),{minlength:pe.minlength,maxlength:pe.maxlength,tabindex:pe.tabindex,disabled:v(f),readonly:pe.readonly,autocomplete:pe.autocomplete,style:v($),"aria-label":pe.label,placeholder:pe.placeholder,form:pe.form,autofocus:pe.autofocus,onCompositionstart:re,onCompositionupdate:ue,onCompositionend:Te,onInput:Z,onFocus:Ge[2]||(Ge[2]=(...ft)=>v(Y)&&v(Y)(...ft)),onBlur:Ge[3]||(Ge[3]=(...ft)=>v(F)&&v(F)(...ft)),onChange:J,onKeydown:ve}),null,16,Ng),v(Pe)?(g(),I("span",{key:0,style:ee(y.value),class:E(v(h).e("count"))},Me(v(x))+" / "+Me(pe.maxlength),7)):z("v-if",!0)],64))],16,Og))}});var Vg=tt(Tg,[["__file","input.vue"]]);const di=_n(Vg),Ao=4,yg={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},Lg=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),Ri=Symbol("scrollbarContextKey"),bg=et({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),Ig="Thumb",Yg=j({__name:"thumb",props:bg,setup(e){const t=e,n=Ct(Ri),o=qe("scrollbar");n||Yl(Ig,"can not inject scrollbar context");const l=A(),s=A(),a=A({}),i=A(!1);let u=!1,r=!1,c=At?document.onselectstart:null;const d=_(()=>yg[t.vertical?"vertical":"horizontal"]),R=_(()=>Lg({size:t.size,move:t.move,bar:d.value})),p=_(()=>l.value[d.value.offset]**2/n.wrapElement[d.value.scrollSize]/t.ratio/s.value[d.value.offset]),f=y=>{var W;if(y.stopPropagation(),y.ctrlKey||[1,2].includes(y.button))return;(W=window.getSelection())==null||W.removeAllRanges(),P(y);const T=y.currentTarget;T&&(a.value[d.value.axis]=T[d.value.offset]-(y[d.value.client]-T.getBoundingClientRect()[d.value.direction]))},h=y=>{if(!s.value||!l.value||!n.wrapElement)return;const W=Math.abs(y.target.getBoundingClientRect()[d.value.direction]-y[d.value.client]),T=s.value[d.value.offset]/2,V=(W-T)*100*p.value/l.value[d.value.offset];n.wrapElement[d.value.scroll]=V*n.wrapElement[d.value.scrollSize]/100},P=y=>{y.stopImmediatePropagation(),u=!0,document.addEventListener("mousemove",O),document.addEventListener("mouseup",L),c=document.onselectstart,document.onselectstart=()=>!1},O=y=>{if(!l.value||!s.value||u===!1)return;const W=a.value[d.value.axis];if(!W)return;const T=(l.value.getBoundingClientRect()[d.value.direction]-y[d.value.client])*-1,V=s.value[d.value.offset]-W,b=(T-V)*100*p.value/l.value[d.value.offset];n.wrapElement[d.value.scroll]=b*n.wrapElement[d.value.scrollSize]/100},L=()=>{u=!1,a.value[d.value.axis]=0,document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",L),M(),r&&(i.value=!1)},S=()=>{r=!1,i.value=!!t.size},X=()=>{r=!0,i.value=u};Gt(()=>{M(),document.removeEventListener("mouseup",L)});const M=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return us(Zn(n,"scrollbarElement"),"mousemove",S),us(Zn(n,"scrollbarElement"),"mouseleave",X),(y,W)=>(g(),k(io,{name:v(o).b("fade"),persisted:""},{default:U(()=>[de(m("div",{ref_key:"instance",ref:l,class:E([v(o).e("bar"),v(o).is(v(d).key)]),onMousedown:h},[m("div",{ref_key:"thumb",ref:s,class:E(v(o).e("thumb")),style:ee(v(R)),onMousedown:f},null,38)],34),[[yt,y.always||i.value]])]),_:1},8,["name"]))}});var Qr=tt(Yg,[["__file","thumb.vue"]]);const Wg=et({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),Ug=j({__name:"bar",props:Wg,setup(e,{expose:t}){const n=e,o=Ct(Ri),l=A(0),s=A(0),a=A(""),i=A(""),u=A(1),r=A(1);return t({handleScroll:R=>{if(R){const p=R.offsetHeight-Ao,f=R.offsetWidth-Ao;s.value=R.scrollTop*100/p*u.value,l.value=R.scrollLeft*100/f*r.value}},update:()=>{const R=o==null?void 0:o.wrapElement;if(!R)return;const p=R.offsetHeight-Ao,f=R.offsetWidth-Ao,h=p**2/R.scrollHeight,P=f**2/R.scrollWidth,O=Math.max(h,n.minSize),L=Math.max(P,n.minSize);u.value=h/(p-h)/(O/(p-O)),r.value=P/(f-P)/(L/(f-L)),i.value=O+Ao<p?`${O}px`:"",a.value=L+Ao<f?`${L}px`:""}}),(R,p)=>(g(),I(ie,null,[N(Qr,{move:l.value,ratio:r.value,size:a.value,always:R.always},null,8,["move","ratio","size","always"]),N(Qr,{move:s.value,ratio:u.value,size:i.value,vertical:"",always:R.always},null,8,["move","ratio","size","always"])],64))}});var Qg=tt(Ug,[["__file","bar.vue"]]);const Fg=et({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:Ze([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},id:String,role:String,ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical"]}}),Zg={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Ot)},Ag="ElScrollbar",Kg=j({name:Ag}),_g=j({...Kg,props:Fg,emits:Zg,setup(e,{expose:t,emit:n}){const o=e,l=qe("scrollbar");let s,a;const i=A(),u=A(),r=A(),c=A(),d=_(()=>{const S={};return o.height&&(S.height=is(o.height)),o.maxHeight&&(S.maxHeight=is(o.maxHeight)),[o.wrapStyle,S]}),R=_(()=>[o.wrapClass,l.e("wrap"),{[l.em("wrap","hidden-default")]:!o.native}]),p=_(()=>[l.e("view"),o.viewClass]),f=()=>{var S;u.value&&((S=c.value)==null||S.handleScroll(u.value),n("scroll",{scrollTop:u.value.scrollTop,scrollLeft:u.value.scrollLeft}))};function h(S,X){ln(S)?u.value.scrollTo(S):Ot(S)&&Ot(X)&&u.value.scrollTo(S,X)}const P=S=>{Ot(S)&&(u.value.scrollTop=S)},O=S=>{Ot(S)&&(u.value.scrollLeft=S)},L=()=>{var S;(S=c.value)==null||S.update()};return Oe(()=>o.noresize,S=>{S?(s==null||s(),a==null||a()):({stop:s}=Qn(r,L),a=us("resize",L))},{immediate:!0}),Oe(()=>[o.maxHeight,o.height],()=>{o.native||we(()=>{var S;L(),u.value&&((S=c.value)==null||S.handleScroll(u.value))})}),an(Ri,fo({scrollbarElement:i,wrapElement:u})),Ee(()=>{o.native||we(()=>{L()})}),Xf(()=>L()),t({wrapRef:u,update:L,scrollTo:h,setScrollTop:P,setScrollLeft:O,handleScroll:f}),(S,X)=>(g(),I("div",{ref_key:"scrollbarRef",ref:i,class:E(v(l).b())},[m("div",{ref_key:"wrapRef",ref:u,class:E(v(R)),style:ee(v(d)),onScroll:f},[(g(),k(Vt(S.tag),{id:S.id,ref_key:"resizeRef",ref:r,class:E(v(p)),style:ee(S.viewStyle),role:S.role,"aria-label":S.ariaLabel,"aria-orientation":S.ariaOrientation},{default:U(()=>[We(S.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),S.native?z("v-if",!0):(g(),k(Qg,{key:0,ref_key:"barRef",ref:c,always:S.always,"min-size":S.minSize},null,8,["always","min-size"]))],2))}});var Hg=tt(_g,[["__file","scrollbar.vue"]]);const Cg=_n(Hg),fi=Symbol("popper"),ed=Symbol("popperContent"),Gg=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],td=et({role:{type:String,values:Gg,default:"tooltip"}}),Eg=j({name:"ElPopper",inheritAttrs:!1}),wg=j({...Eg,props:td,setup(e,{expose:t}){const n=e,o=A(),l=A(),s=A(),a=A(),i=_(()=>n.role),u={triggerRef:o,popperInstanceRef:l,contentRef:s,referenceRef:a,role:i};return t(u),an(fi,u),(r,c)=>We(r.$slots,"default")}});var kg=tt(wg,[["__file","popper.vue"]]);const nd=et({arrowOffset:{type:Number,default:5}}),Jg=j({name:"ElPopperArrow",inheritAttrs:!1}),xg=j({...Jg,props:nd,setup(e,{expose:t}){const n=e,o=qe("popper"),{arrowOffset:l,arrowRef:s,arrowStyle:a}=Ct(ed,void 0);return Oe(()=>n.arrowOffset,i=>{l.value=i}),Gt(()=>{s.value=void 0}),t({arrowRef:s}),(i,u)=>(g(),I("span",{ref_key:"arrowRef",ref:s,class:E(v(o).e("arrow")),style:ee(v(a)),"data-popper-arrow":""},null,6))}});var $g=tt(xg,[["__file","arrow.vue"]]);const Dg="ElOnlyChild",Bg=j({name:Dg,setup(e,{slots:t,attrs:n}){var o;const l=Ct(jc),s=pg((o=l==null?void 0:l.setForwardRef)!=null?o:Rt);return()=>{var a;const i=(a=t.default)==null?void 0:a.call(t,n);if(!i||i.length>1)return null;const u=od(i);return u?de(Tf(u,n),[[s]]):null}}});function od(e){if(!e)return null;const t=e;for(const n of t){if(ln(n))switch(n.type){case yf:continue;case Vf:case"svg":return Fr(n);case ie:return od(n.children);default:return n}return Fr(n)}return null}function Fr(e){const t=qe("only-child");return N("span",{class:t.e("content")},[e])}const ld=et({virtualRef:{type:Ze(Object)},virtualTriggering:Boolean,onMouseenter:{type:Ze(Function)},onMouseleave:{type:Ze(Function)},onClick:{type:Ze(Function)},onKeydown:{type:Ze(Function)},onFocus:{type:Ze(Function)},onBlur:{type:Ze(Function)},onContextmenu:{type:Ze(Function)},id:String,open:Boolean}),zg=j({name:"ElPopperTrigger",inheritAttrs:!1}),jg=j({...zg,props:ld,setup(e,{expose:t}){const n=e,{role:o,triggerRef:l}=Ct(fi,void 0);fg(l);const s=_(()=>i.value?n.id:void 0),a=_(()=>{if(o&&o.value==="tooltip")return n.open&&n.id?n.id:void 0}),i=_(()=>{if(o&&o.value!=="tooltip")return o.value}),u=_(()=>i.value?`${n.open}`:void 0);let r;return Ee(()=>{Oe(()=>n.virtualRef,c=>{c&&(l.value=qu(c))},{immediate:!0}),Oe(l,(c,d)=>{r==null||r(),r=void 0,Vo(c)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(R=>{var p;const f=n[R];f&&(c.addEventListener(R.slice(2).toLowerCase(),f),(p=d==null?void 0:d.removeEventListener)==null||p.call(d,R.slice(2).toLowerCase(),f))}),r=Oe([s,a,i,u],R=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((p,f)=>{Yo(R[f])?c.removeAttribute(p):c.setAttribute(p,R[f])})},{immediate:!0})),Vo(d)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(R=>d.removeAttribute(R))},{immediate:!0})}),Gt(()=>{r==null||r(),r=void 0}),t({triggerRef:l}),(c,d)=>c.virtualTriggering?z("v-if",!0):(g(),k(v(Bg),to({key:0},c.$attrs,{"aria-controls":v(s),"aria-describedby":v(a),"aria-expanded":v(u),"aria-haspopup":v(i)}),{default:U(()=>[We(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var qg=tt(jg,[["__file","trigger.vue"]]);const aa="focus-trap.focus-after-trapped",ia="focus-trap.focus-after-released",eS="focus-trap.focusout-prevented",Zr={cancelable:!0,bubbles:!1},tS={cancelable:!0,bubbles:!1},Ar="focusAfterTrapped",Kr="focusAfterReleased",nS=Symbol("elFocusTrap"),pi=A(),Qs=A(0),hi=A(0);let xl=0;const sd=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const l=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||l?NodeFilter.FILTER_SKIP:o.tabIndex>=0||o===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},_r=(e,t)=>{for(const n of e)if(!oS(n,t))return n},oS=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},lS=e=>{const t=sd(e),n=_r(t,e),o=_r(t.reverse(),e);return[n,o]},sS=e=>e instanceof HTMLInputElement&&"select"in e,kn=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),hi.value=window.performance.now(),e!==n&&sS(e)&&t&&e.select()}};function Hr(e,t){const n=[...e],o=e.indexOf(t);return o!==-1&&n.splice(o,1),n}const aS=()=>{let e=[];return{push:o=>{const l=e[0];l&&o!==l&&l.pause(),e=Hr(e,o),e.unshift(o)},remove:o=>{var l,s;e=Hr(e,o),(s=(l=e[0])==null?void 0:l.resume)==null||s.call(l)}}},iS=(e,t=!1)=>{const n=document.activeElement;for(const o of e)if(kn(o,t),document.activeElement!==n)return},Cr=aS(),rS=()=>Qs.value>hi.value,$l=()=>{pi.value="pointer",Qs.value=window.performance.now()},Gr=()=>{pi.value="keyboard",Qs.value=window.performance.now()},uS=()=>(Ee(()=>{xl===0&&(document.addEventListener("mousedown",$l),document.addEventListener("touchstart",$l),document.addEventListener("keydown",Gr)),xl++}),Gt(()=>{xl--,xl<=0&&(document.removeEventListener("mousedown",$l),document.removeEventListener("touchstart",$l),document.removeEventListener("keydown",Gr))}),{focusReason:pi,lastUserFocusTimestamp:Qs,lastAutomatedFocusTimestamp:hi}),Dl=e=>new CustomEvent(eS,{...tS,detail:e}),cS=j({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Ar,Kr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=A();let o,l;const{focusReason:s}=uS();rg(f=>{e.trapped&&!a.paused&&t("release-requested",f)});const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=f=>{if(!e.loop&&!e.trapped||a.paused)return;const{key:h,altKey:P,ctrlKey:O,metaKey:L,currentTarget:S,shiftKey:X}=f,{loop:M}=e,y=h===Do.tab&&!P&&!O&&!L,W=document.activeElement;if(y&&W){const T=S,[V,b]=lS(T);if(V&&b){if(!X&&W===b){const F=Dl({focusReason:s.value});t("focusout-prevented",F),F.defaultPrevented||(f.preventDefault(),M&&kn(V,!0))}else if(X&&[V,T].includes(W)){const F=Dl({focusReason:s.value});t("focusout-prevented",F),F.defaultPrevented||(f.preventDefault(),M&&kn(b,!0))}}else if(W===T){const F=Dl({focusReason:s.value});t("focusout-prevented",F),F.defaultPrevented||f.preventDefault()}}};an(nS,{focusTrapRef:n,onKeydown:i}),Oe(()=>e.focusTrapEl,f=>{f&&(n.value=f)},{immediate:!0}),Oe([n],([f],[h])=>{f&&(f.addEventListener("keydown",i),f.addEventListener("focusin",c),f.addEventListener("focusout",d)),h&&(h.removeEventListener("keydown",i),h.removeEventListener("focusin",c),h.removeEventListener("focusout",d))});const u=f=>{t(Ar,f)},r=f=>t(Kr,f),c=f=>{const h=v(n);if(!h)return;const P=f.target,O=f.relatedTarget,L=P&&h.contains(P);e.trapped||O&&h.contains(O)||(o=O),L&&t("focusin",f),!a.paused&&e.trapped&&(L?l=P:kn(l,!0))},d=f=>{const h=v(n);if(!(a.paused||!h))if(e.trapped){const P=f.relatedTarget;!Yo(P)&&!h.contains(P)&&setTimeout(()=>{if(!a.paused&&e.trapped){const O=Dl({focusReason:s.value});t("focusout-prevented",O),O.defaultPrevented||kn(l,!0)}},0)}else{const P=f.target;P&&h.contains(P)||t("focusout",f)}};async function R(){await we();const f=v(n);if(f){Cr.push(a);const h=f.contains(document.activeElement)?o:document.activeElement;if(o=h,!f.contains(h)){const O=new Event(aa,Zr);f.addEventListener(aa,u),f.dispatchEvent(O),O.defaultPrevented||we(()=>{let L=e.focusStartEl;hn(L)||(kn(L),document.activeElement!==L&&(L="first")),L==="first"&&iS(sd(f),!0),(document.activeElement===h||L==="container")&&kn(f)})}}}function p(){const f=v(n);if(f){f.removeEventListener(aa,u);const h=new CustomEvent(ia,{...Zr,detail:{focusReason:s.value}});f.addEventListener(ia,r),f.dispatchEvent(h),!h.defaultPrevented&&(s.value=="keyboard"||!rS()||f.contains(document.activeElement))&&kn(o??document.body),f.removeEventListener(ia,r),Cr.remove(a)}}return Ee(()=>{e.trapped&&R(),Oe(()=>e.trapped,f=>{f?R():p()})}),Gt(()=>{e.trapped&&p()}),{onKeydown:i}}});function dS(e,t,n,o,l,s){return We(e.$slots,"default",{handleKeydown:e.onKeydown})}var ad=tt(cS,[["render",dS],["__file","focus-trap.vue"]]);const RS=["fixed","absolute"],fS=et({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Ze(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:ec,default:"bottom"},popperOptions:{type:Ze(Object),default:()=>({})},strategy:{type:String,values:RS,default:"absolute"}}),id=et({...fS,id:String,style:{type:Ze([String,Array,Object])},className:{type:Ze([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:Ze([String,Array,Object])},popperStyle:{type:Ze([String,Array,Object])},referenceEl:{type:Ze(Object)},triggerTargetEl:{type:Ze(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),pS={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},hS=(e,t=[])=>{const{placement:n,strategy:o,popperOptions:l}=e,s={placement:n,strategy:o,...l,modifiers:[...mS(e),...t]};return MS(s,l==null?void 0:l.modifiers),s},vS=e=>{if(At)return qu(e)};function mS(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:o}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:o}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function MS(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const gS=0,SS=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:o,role:l}=Ct(fi,void 0),s=A(),a=A(),i=_(()=>({name:"eventListeners",enabled:!!e.visible})),u=_(()=>{var O;const L=v(s),S=(O=v(a))!=null?O:gS;return{name:"arrow",enabled:!xM(L),options:{element:L,padding:S}}}),r=_(()=>({onFirstUpdate:()=>{f()},...hS(e,[v(u),v(i)])})),c=_(()=>vS(e.referenceEl)||v(o)),{attributes:d,state:R,styles:p,update:f,forceUpdate:h,instanceRef:P}=ag(c,n,r);return Oe(P,O=>t.value=O),Ee(()=>{Oe(()=>{var O;return(O=v(c))==null?void 0:O.getBoundingClientRect()},()=>{f()})}),{attributes:d,arrowRef:s,contentRef:n,instanceRef:P,state:R,styles:p,role:l,forceUpdate:h,update:f}},OS=(e,{attributes:t,styles:n,role:o})=>{const{nextZIndex:l}=Lf(),s=qe("popper"),a=_(()=>v(t).popper),i=A(Ot(e.zIndex)?e.zIndex:l()),u=_(()=>[s.b(),s.is("pure",e.pure),s.is(e.effect),e.popperClass]),r=_(()=>[{zIndex:v(i)},v(n).popper,e.popperStyle||{}]),c=_(()=>o.value==="dialog"?"false":void 0),d=_(()=>v(n).arrow||{});return{ariaModal:c,arrowStyle:d,contentAttrs:a,contentClass:u,contentStyle:r,contentZIndex:i,updateZIndex:()=>{i.value=Ot(e.zIndex)?e.zIndex:l()}}},PS=(e,t)=>{const n=A(!1),o=A();return{focusStartRef:o,trapped:n,onFocusAfterReleased:r=>{var c;((c=r.detail)==null?void 0:c.focusReason)!=="pointer"&&(o.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:r=>{e.visible&&!n.value&&(r.target&&(o.value=r.target),n.value=!0)},onFocusoutPrevented:r=>{e.trapping||(r.detail.focusReason==="pointer"&&r.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},NS=j({name:"ElPopperContent"}),XS=j({...NS,props:id,emits:pS,setup(e,{expose:t,emit:n}){const o=e,{focusStartRef:l,trapped:s,onFocusAfterReleased:a,onFocusAfterTrapped:i,onFocusInTrap:u,onFocusoutPrevented:r,onReleaseRequested:c}=PS(o,n),{attributes:d,arrowRef:R,contentRef:p,styles:f,instanceRef:h,role:P,update:O}=SS(o),{ariaModal:L,arrowStyle:S,contentAttrs:X,contentClass:M,contentStyle:y,updateZIndex:W}=OS(o,{styles:f,attributes:d,role:P}),T=Ct(nr,void 0),V=A();an(ed,{arrowStyle:S,arrowRef:R,arrowOffset:V}),T&&(T.addInputId||T.removeInputId)&&an(nr,{...T,addInputId:Rt,removeInputId:Rt});let b;const Y=(C=!0)=>{O(),C&&W()},F=()=>{Y(!1),o.visible&&o.focusOnShow?s.value=!0:o.visible===!1&&(s.value=!1)};return Ee(()=>{Oe(()=>o.triggerTargetEl,(C,K)=>{b==null||b(),b=void 0;const H=v(C||p.value),Q=v(K||p.value);Vo(H)&&(b=Oe([P,()=>o.ariaLabel,L,()=>o.id],G=>{["role","aria-label","aria-modal","id"].forEach(($,se)=>{Yo(G[se])?H.removeAttribute($):H.setAttribute($,G[se])})},{immediate:!0})),Q!==H&&Vo(Q)&&["role","aria-label","aria-modal","id"].forEach(G=>{Q.removeAttribute(G)})},{immediate:!0}),Oe(()=>o.visible,F,{immediate:!0})}),Gt(()=>{b==null||b(),b=void 0}),t({popperContentRef:p,popperInstanceRef:h,updatePopper:Y,contentStyle:y}),(C,K)=>(g(),I("div",to({ref_key:"contentRef",ref:p},v(X),{style:v(y),class:v(M),tabindex:"-1",onMouseenter:K[0]||(K[0]=H=>C.$emit("mouseenter",H)),onMouseleave:K[1]||(K[1]=H=>C.$emit("mouseleave",H))}),[N(v(ad),{trapped:v(s),"trap-on-focus-in":!0,"focus-trap-el":v(p),"focus-start-el":v(l),onFocusAfterTrapped:v(i),onFocusAfterReleased:v(a),onFocusin:v(u),onFocusoutPrevented:v(r),onReleaseRequested:v(c)},{default:U(()=>[We(C.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var TS=tt(XS,[["__file","content.vue"]]);const VS=_n(kg),vi=Symbol("elTooltip"),mi=et({...dg,...id,appendTo:{type:Ze([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Ze(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),rd=et({...ld,disabled:Boolean,trigger:{type:Ze([String,Array]),default:"hover"},triggerKeys:{type:Ze(Array),default:()=>[Do.enter,Do.space]}}),{useModelToggleProps:yS,useModelToggleEmits:LS,useModelToggle:bS}=Dc("visible"),IS=et({...td,...yS,...mi,...rd,...nd,showArrow:{type:Boolean,default:!0}}),YS=[...LS,"before-show","before-hide","show","hide","open","close"],WS=(e,t)=>on(e)?e.includes(t):e===t,Ko=(e,t,n)=>o=>{WS(v(e),t)&&n(o)},US=j({name:"ElTooltipTrigger"}),QS=j({...US,props:rd,setup(e,{expose:t}){const n=e,o=qe("tooltip"),{controlled:l,id:s,open:a,onOpen:i,onClose:u,onToggle:r}=Ct(vi,void 0),c=A(null),d=()=>{if(v(l)||n.disabled)return!0},R=Zn(n,"trigger"),p=Wn(d,Ko(R,"hover",i)),f=Wn(d,Ko(R,"hover",u)),h=Wn(d,Ko(R,"click",X=>{X.button===0&&r(X)})),P=Wn(d,Ko(R,"focus",i)),O=Wn(d,Ko(R,"focus",u)),L=Wn(d,Ko(R,"contextmenu",X=>{X.preventDefault(),r(X)})),S=Wn(d,X=>{const{code:M}=X;n.triggerKeys.includes(M)&&(X.preventDefault(),r(X))});return t({triggerRef:c}),(X,M)=>(g(),k(v(qg),{id:v(s),"virtual-ref":X.virtualRef,open:v(a),"virtual-triggering":X.virtualTriggering,class:E(v(o).e("trigger")),onBlur:v(O),onClick:v(h),onContextmenu:v(L),onFocus:v(P),onMouseenter:v(p),onMouseleave:v(f),onKeydown:v(S)},{default:U(()=>[We(X.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var FS=tt(QS,[["__file","trigger.vue"]]);const ZS=j({name:"ElTooltipContent",inheritAttrs:!1}),AS=j({...ZS,props:mi,setup(e,{expose:t}){const n=e,{selector:o}=zc(),l=qe("tooltip"),s=A(null),a=A(!1),{controlled:i,id:u,open:r,trigger:c,onClose:d,onOpen:R,onShow:p,onHide:f,onBeforeShow:h,onBeforeHide:P}=Ct(vi,void 0),O=_(()=>n.transition||`${l.namespace.value}-fade-in-linear`),L=_(()=>n.persistent);Gt(()=>{a.value=!0});const S=_(()=>v(L)?!0:v(r)),X=_(()=>n.disabled?!1:v(r)),M=_(()=>n.appendTo||o.value),y=_(()=>{var G;return(G=n.style)!=null?G:{}}),W=_(()=>!v(r)),T=()=>{f()},V=()=>{if(v(i))return!0},b=Wn(V,()=>{n.enterable&&v(c)==="hover"&&R()}),Y=Wn(V,()=>{v(c)==="hover"&&d()}),F=()=>{var G,$;($=(G=s.value)==null?void 0:G.updatePopper)==null||$.call(G),h==null||h()},C=()=>{P==null||P()},K=()=>{p(),Q=bf(_(()=>{var G;return(G=s.value)==null?void 0:G.popperContentRef}),()=>{if(v(i))return;v(c)!=="hover"&&d()})},H=()=>{n.virtualTriggering||d()};let Q;return Oe(()=>v(r),G=>{G||Q==null||Q()},{flush:"post"}),Oe(()=>n.content,()=>{var G,$;($=(G=s.value)==null?void 0:G.updatePopper)==null||$.call(G)}),t({contentRef:s}),(G,$)=>(g(),k(qa,{disabled:!G.teleported,to:v(M)},[N(io,{name:v(O),onAfterLeave:T,onBeforeEnter:F,onAfterEnter:K,onBeforeLeave:C},{default:U(()=>[v(S)?de((g(),k(v(TS),to({key:0,id:v(u),ref_key:"contentRef",ref:s},G.$attrs,{"aria-label":G.ariaLabel,"aria-hidden":v(W),"boundaries-padding":G.boundariesPadding,"fallback-placements":G.fallbackPlacements,"gpu-acceleration":G.gpuAcceleration,offset:G.offset,placement:G.placement,"popper-options":G.popperOptions,strategy:G.strategy,effect:G.effect,enterable:G.enterable,pure:G.pure,"popper-class":G.popperClass,"popper-style":[G.popperStyle,v(y)],"reference-el":G.referenceEl,"trigger-target-el":G.triggerTargetEl,visible:v(X),"z-index":G.zIndex,onMouseenter:v(b),onMouseleave:v(Y),onBlur:H,onClose:v(d)}),{default:U(()=>[a.value?z("v-if",!0):We(G.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[yt,v(X)]]):z("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var KS=tt(AS,[["__file","content.vue"]]);const _S=["innerHTML"],HS={key:1},CS=j({name:"ElTooltip"}),GS=j({...CS,props:IS,emits:YS,setup(e,{expose:t,emit:n}){const o=e;cg();const l=Ol(),s=A(),a=A(),i=()=>{var O;const L=v(s);L&&((O=L.popperInstanceRef)==null||O.update())},u=A(!1),r=A(),{show:c,hide:d,hasUpdateHandler:R}=bS({indicator:u,toggleReason:r}),{onOpen:p,onClose:f}=Rg({showAfter:Zn(o,"showAfter"),hideAfter:Zn(o,"hideAfter"),autoClose:Zn(o,"autoClose"),open:c,close:d}),h=_(()=>Bu(o.visible)&&!R.value);an(vi,{controlled:h,id:l,open:If(u),trigger:Zn(o,"trigger"),onOpen:O=>{p(O)},onClose:O=>{f(O)},onToggle:O=>{v(u)?f(O):p(O)},onShow:()=>{n("show",r.value)},onHide:()=>{n("hide",r.value)},onBeforeShow:()=>{n("before-show",r.value)},onBeforeHide:()=>{n("before-hide",r.value)},updatePopper:i}),Oe(()=>o.disabled,O=>{O&&u.value&&(u.value=!1)});const P=O=>{var L,S;const X=(S=(L=a.value)==null?void 0:L.contentRef)==null?void 0:S.popperContentRef,M=(O==null?void 0:O.relatedTarget)||document.activeElement;return X&&X.contains(M)};return Yf(()=>u.value&&d()),t({popperRef:s,contentRef:a,isFocusInsideContent:P,updatePopper:i,onOpen:p,onClose:f,hide:d}),(O,L)=>(g(),k(v(VS),{ref_key:"popperRef",ref:s,role:O.role},{default:U(()=>[N(FS,{disabled:O.disabled,trigger:O.trigger,"trigger-keys":O.triggerKeys,"virtual-ref":O.virtualRef,"virtual-triggering":O.virtualTriggering},{default:U(()=>[O.$slots.default?We(O.$slots,"default",{key:0}):z("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),N(KS,{ref_key:"contentRef",ref:a,"aria-label":O.ariaLabel,"boundaries-padding":O.boundariesPadding,content:O.content,disabled:O.disabled,effect:O.effect,enterable:O.enterable,"fallback-placements":O.fallbackPlacements,"hide-after":O.hideAfter,"gpu-acceleration":O.gpuAcceleration,offset:O.offset,persistent:O.persistent,"popper-class":O.popperClass,"popper-style":O.popperStyle,placement:O.placement,"popper-options":O.popperOptions,pure:O.pure,"raw-content":O.rawContent,"reference-el":O.referenceEl,"trigger-target-el":O.triggerTargetEl,"show-after":O.showAfter,strategy:O.strategy,teleported:O.teleported,transition:O.transition,"virtual-triggering":O.virtualTriggering,"z-index":O.zIndex,"append-to":O.appendTo},{default:U(()=>[We(O.$slots,"content",{},()=>[O.rawContent?(g(),I("span",{key:0,innerHTML:O.content},null,8,_S)):(g(),I("span",HS,Me(O.content),1))]),O.showArrow?(g(),k(v($g),{key:0,"arrow-offset":O.arrowOffset},null,8,["arrow-offset"])):z("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var ES=tt(GS,[["__file","tooltip.vue"]]);const wS=_n(ES),Jn=new Map;let Er;At&&(document.addEventListener("mousedown",e=>Er=e),document.addEventListener("mouseup",e=>{for(const t of Jn.values())for(const{documentHandler:n}of t)n(e,Er)}));function wr(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:Vo(t.arg)&&n.push(t.arg),function(o,l){const s=t.instance.popperRef,a=o.target,i=l==null?void 0:l.target,u=!t||!t.instance,r=!a||!i,c=e.contains(a)||e.contains(i),d=e===a,R=n.length&&n.some(f=>f==null?void 0:f.contains(a))||n.length&&n.includes(i),p=s&&(s.contains(a)||s.contains(i));u||r||c||d||R||p||t.value(o,l)}}const kS={beforeMount(e,t){Jn.has(e)||Jn.set(e,[]),Jn.get(e).push({documentHandler:wr(e,t),bindingFn:t.value})},updated(e,t){Jn.has(e)||Jn.set(e,[]);const n=Jn.get(e),o=n.findIndex(s=>s.bindingFn===t.oldValue),l={documentHandler:wr(e,t),bindingFn:t.value};o>=0?n.splice(o,1,l):n.push(l)},unmounted(e){Jn.delete(e)}},Ya="_trap-focus-children",Mo=[],kr=e=>{if(Mo.length===0)return;const t=Mo[Mo.length-1][Ya];if(t.length>0&&e.code===Do.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,o=e.target===t[0],l=e.target===t[t.length-1];o&&n&&(e.preventDefault(),t[t.length-1].focus()),l&&!n&&(e.preventDefault(),t[0].focus())}},JS={beforeMount(e){e[Ya]=or(e),Mo.push(e),Mo.length<=1&&document.addEventListener("keydown",kr)},updated(e){we(()=>{e[Ya]=or(e)})},unmounted(){Mo.shift(),Mo.length===0&&document.removeEventListener("keydown",kr)}},ud=et({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:Ts},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),xS={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},$S=j({name:"ElTag"}),DS=j({...$S,props:ud,emits:xS,setup(e,{emit:t}){const n=e,o=li(),l=qe("tag"),s=_(()=>{const{type:u,hit:r,effect:c,closable:d,round:R}=n;return[l.b(),l.is("closable",d),l.m(u||"primary"),l.m(o.value),l.m(c),l.is("hit",r),l.is("round",R)]}),a=u=>{t("close",u)},i=u=>{t("click",u)};return(u,r)=>u.disableTransitions?(g(),I("span",{key:0,class:E(v(s)),style:ee({backgroundColor:u.color}),onClick:i},[m("span",{class:E(v(l).e("content"))},[We(u.$slots,"default")],2),u.closable?(g(),k(v(It),{key:0,class:E(v(l).e("close")),onClick:Fe(a,["stop"])},{default:U(()=>[N(v(cs))]),_:1},8,["class","onClick"])):z("v-if",!0)],6)):(g(),k(io,{key:1,name:`${v(l).namespace.value}-zoom-in-center`,appear:""},{default:U(()=>[m("span",{class:E(v(s)),style:ee({backgroundColor:u.color}),onClick:i},[m("span",{class:E(v(l).e("content"))},[We(u.$slots,"default")],2),u.closable?(g(),k(v(It),{key:0,class:E(v(l).e("close")),onClick:Fe(a,["stop"])},{default:U(()=>[N(v(cs))]),_:1},8,["class","onClick"])):z("v-if",!0)],6)]),_:3},8,["name"]))}});var BS=tt(DS,[["__file","tag.vue"]]);const zS=_n(BS),jS=et({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:Ze([String,Array,Object])},zIndex:{type:Ze([String,Number])}}),qS={click:e=>e instanceof MouseEvent},eO="overlay";var tO=j({name:"ElOverlay",props:jS,emits:qS,setup(e,{slots:t,emit:n}){const o=qe(eO),l=u=>{n("click",u)},{onClick:s,onMousedown:a,onMouseup:i}=Bc(e.customMaskEvent?void 0:l);return()=>e.mask?N("div",{class:[o.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:s,onMousedown:a,onMouseup:i},[We(t,"default")],ts.STYLE|ts.CLASS|ts.PROPS,["onClick","onMouseup","onMousedown"]):jt("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[We(t,"default")])}});const nO=tO,cd=Symbol("elPaginationKey"),oO=et({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:ao}}),lO={click:e=>e instanceof MouseEvent},sO=["disabled","aria-label","aria-disabled"],aO={key:0},iO=j({name:"ElPaginationPrev"}),rO=j({...iO,props:oO,emits:lO,setup(e){const t=e,{t:n}=Hn(),o=_(()=>t.disabled||t.currentPage<=1);return(l,s)=>(g(),I("button",{type:"button",class:"btn-prev",disabled:v(o),"aria-label":l.prevText||v(n)("el.pagination.prev"),"aria-disabled":v(o),onClick:s[0]||(s[0]=a=>l.$emit("click",a))},[l.prevText?(g(),I("span",aO,Me(l.prevText),1)):(g(),k(v(It),{key:1},{default:U(()=>[(g(),k(Vt(l.prevIcon)))]),_:1}))],8,sO))}});var uO=tt(rO,[["__file","prev.vue"]]);const cO=et({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:ao}}),dO=["disabled","aria-label","aria-disabled"],RO={key:0},fO=j({name:"ElPaginationNext"}),pO=j({...fO,props:cO,emits:["click"],setup(e){const t=e,{t:n}=Hn(),o=_(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(l,s)=>(g(),I("button",{type:"button",class:"btn-next",disabled:v(o),"aria-label":l.nextText||v(n)("el.pagination.next"),"aria-disabled":v(o),onClick:s[0]||(s[0]=a=>l.$emit("click",a))},[l.nextText?(g(),I("span",RO,Me(l.nextText),1)):(g(),k(v(It),{key:1},{default:U(()=>[(g(),k(Vt(l.nextIcon)))]),_:1}))],8,dO))}});var hO=tt(pO,[["__file","next.vue"]]);const dd=Symbol("ElSelectGroup"),Fs=Symbol("ElSelect");function vO(e,t){const n=Ct(Fs),o=Ct(dd,{disabled:!1}),l=_(()=>n.props.multiple?c(n.props.modelValue,e.value):c([n.props.modelValue],e.value)),s=_(()=>{if(n.props.multiple){const p=n.props.modelValue||[];return!l.value&&p.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),a=_(()=>e.label||(ln(e.value)?"":e.value)),i=_(()=>e.value||e.label||""),u=_(()=>e.disabled||t.groupDisabled||s.value),r=bo(),c=(p=[],f)=>{if(ln(e.value)){const h=n.props.valueKey;return p&&p.some(P=>tc(zn(P,h))===zn(f,h))}else return p&&p.includes(f)},d=()=>{!e.disabled&&!o.disabled&&(n.states.hoveringIndex=n.optionsArray.indexOf(r.proxy))},R=p=>{const f=new RegExp($M(p),"i");t.visible=f.test(a.value)||e.created};return Oe(()=>a.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),Oe(()=>e.value,(p,f)=>{const{remote:h,valueKey:P}=n.props;if(jo(p,f)||(n.onOptionDestroy(f,r.proxy),n.onOptionCreate(r.proxy)),!e.created&&!h){if(P&&ln(p)&&ln(f)&&p[P]===f[P])return;n.setSelected()}}),Oe(()=>o.disabled,()=>{t.groupDisabled=o.disabled},{immediate:!0}),{select:n,currentLabel:a,currentValue:i,itemSelected:l,isDisabled:u,hoverItem:d,updateOption:R}}const mO=j({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=qe("select"),n=Ol(),o=_(()=>[t.be("dropdown","item"),t.is("disabled",v(i)),t.is("selected",v(a)),t.is("hovering",v(R))]),l=fo({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:s,itemSelected:a,isDisabled:i,select:u,hoverItem:r,updateOption:c}=vO(e,l),{visible:d,hover:R}=Vs(l),p=bo().proxy;u.onOptionCreate(p),Gt(()=>{const h=p.value,{selected:P}=u.states,L=(u.props.multiple?P:[P]).some(S=>S.value===p.value);we(()=>{u.states.cachedOptions.get(h)===p&&!L&&u.states.cachedOptions.delete(h)}),u.onOptionDestroy(h,p)});function f(){e.disabled!==!0&&l.groupDisabled!==!0&&u.handleOptionSelect(p)}return{ns:t,id:n,containerKls:o,currentLabel:s,itemSelected:a,isDisabled:i,select:u,hoverItem:r,updateOption:c,visible:d,hover:R,selectOptionClick:f,states:l}}}),MO=["id","aria-disabled","aria-selected"];function gO(e,t,n,o,l,s){return de((g(),I("li",{id:e.id,class:E(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMouseenter:t[0]||(t[0]=(...a)=>e.hoverItem&&e.hoverItem(...a)),onClick:t[1]||(t[1]=Fe((...a)=>e.selectOptionClick&&e.selectOptionClick(...a),["stop"]))},[We(e.$slots,"default",{},()=>[m("span",null,Me(e.currentLabel),1)])],42,MO)),[[yt,e.visible]])}var Mi=tt(mO,[["render",gO],["__file","option.vue"]]);const SO=j({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Ct(Fs),t=qe("select"),n=_(()=>e.props.popperClass),o=_(()=>e.props.multiple),l=_(()=>e.props.fitInputWidth),s=A("");function a(){var i;s.value=`${(i=e.selectRef)==null?void 0:i.offsetWidth}px`}return Ee(()=>{a(),Qn(e.selectRef,a)}),{ns:t,minWidth:s,popperClass:n,isMultiple:o,isFitInputWidth:l}}});function OO(e,t,n,o,l,s){return g(),I("div",{class:E([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:ee({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(g(),I("div",{key:0,class:E(e.ns.be("dropdown","header"))},[We(e.$slots,"header")],2)):z("v-if",!0),We(e.$slots,"default"),e.$slots.footer?(g(),I("div",{key:1,class:E(e.ns.be("dropdown","footer"))},[We(e.$slots,"footer")],2)):z("v-if",!0)],6)}var PO=tt(SO,[["render",OO],["__file","select-dropdown.vue"]]);function NO(e){const t=A(!1);return{handleCompositionStart:()=>{t.value=!0},handleCompositionUpdate:s=>{const a=s.target.value,i=a[a.length-1]||"";t.value=!$c(i)},handleCompositionEnd:s=>{t.value&&(t.value=!1,kt(e)&&e(s))}}}const XO=11,TO=(e,t)=>{const{t:n}=Hn(),o=Ol(),l=qe("select"),s=qe("input"),a=fo({inputValue:"",options:new Map,cachedOptions:new Map,disabledOptions:new Map,optionValues:[],selected:e.multiple?[]:{},selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),i=A(null),u=A(null),r=A(null),c=A(null),d=A(null),R=A(null),p=A(null),f=A(null),h=A(null),P=A(null),O=A(null),L=A(null),{wrapperRef:S,isFocused:X,handleFocus:M,handleBlur:y}=qc(d,{afterFocus(){e.automaticDropdown&&!W.value&&(W.value=!0,a.menuVisibleOnFocus=!0)},beforeBlur(le){var ye,nt;return((ye=r.value)==null?void 0:ye.isFocusInsideContent(le))||((nt=c.value)==null?void 0:nt.isFocusInsideContent(le))},afterBlur(){W.value=!1,a.menuVisibleOnFocus=!1}}),W=A(!1),T=A(),{form:V,formItem:b}=Pc(),{inputId:Y}=Nc(e,{formItemContext:b}),F=_(()=>e.disabled||(V==null?void 0:V.disabled)),C=_(()=>x.value.some(le=>le.value==="")),K=_(()=>e.multiple?on(e.modelValue)&&e.modelValue.length>0:!Yo(e.modelValue)&&(e.modelValue!==""||C.value)),H=_(()=>e.clearable&&!F.value&&a.inputHovering&&K.value),Q=_(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),G=_(()=>l.is("reverse",Q.value&&W.value)),$=_(()=>(b==null?void 0:b.validateState)||""),se=_(()=>ju[$.value]),Re=_(()=>e.remote?300:0),ae=_(()=>e.loading?e.loadingText||n("el.select.loading"):e.remote&&!a.inputValue&&a.options.size===0?!1:e.filterable&&a.inputValue&&a.options.size>0&&Pe.value===0?e.noMatchText||n("el.select.noMatch"):a.options.size===0?e.noDataText||n("el.select.noData"):null),Pe=_(()=>x.value.filter(le=>le.visible).length),x=_(()=>{const le=Array.from(a.options.values()),ye=[];return a.optionValues.forEach(nt=>{const Mt=le.findIndex(Gn=>Gn.value===nt);Mt>-1&&ye.push(le[Mt])}),ye.length>=le.length?ye:le}),B=_(()=>Array.from(a.cachedOptions.values())),Ie=_(()=>{const le=x.value.filter(ye=>!ye.created).some(ye=>ye.currentLabel===a.inputValue);return e.filterable&&e.allowCreate&&a.inputValue!==""&&!le}),ce=()=>{e.filterable&&kt(e.filterMethod)||e.filterable&&e.remote&&kt(e.remoteMethod)||x.value.forEach(le=>{le.updateOption(a.inputValue)})},q=li(),ne=_(()=>["small"].includes(q.value)?"small":"default"),Se=_({get(){return W.value&&ae.value!==!1},set(le){W.value=le}}),w=_(()=>on(e.modelValue)?e.modelValue.length===0&&!a.inputValue:e.filterable?!a.inputValue:!0),D=_(()=>{var le;const ye=(le=e.placeholder)!=null?le:n("el.select.placeholder");return e.multiple||!K.value?ye:a.selectedLabel});Oe(()=>e.modelValue,(le,ye)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(a.inputValue="",Z("")),re(),!jo(le,ye)&&e.validateEvent&&(b==null||b.validate("change").catch(nt=>void 0))},{flush:"post",deep:!0}),Oe(()=>W.value,le=>{le?Z(a.inputValue):(a.inputValue="",a.previousQuery=null,a.isBeforeHide=!0),t("visible-change",le)}),Oe(()=>a.options.entries(),()=>{var le;if(!At)return;const ye=((le=i.value)==null?void 0:le.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!nc(e.modelValue)||!Array.from(ye).includes(document.activeElement))&&re(),e.defaultFirstOption&&(e.filterable||e.remote)&&Pe.value&&J()},{flush:"post"}),Oe(()=>a.hoveringIndex,le=>{Ot(le)&&le>-1?T.value=x.value[le]||{}:T.value={},x.value.forEach(ye=>{ye.hover=T.value===ye})}),Io(()=>{a.isBeforeHide||ce()});const Z=le=>{a.previousQuery!==le&&(a.previousQuery=le,e.filterable&&kt(e.filterMethod)?e.filterMethod(le):e.filterable&&e.remote&&kt(e.remoteMethod)&&e.remoteMethod(le),e.defaultFirstOption&&(e.filterable||e.remote)&&Pe.value?we(J):we(Te))},J=()=>{const le=x.value.filter(Mt=>Mt.visible&&!Mt.disabled&&!Mt.states.groupDisabled),ye=le.find(Mt=>Mt.created),nt=le[0];a.hoveringIndex=dl(x.value,ye||nt)},re=()=>{if(e.multiple)a.selectedLabel="";else{const ye=ue(e.modelValue);a.selectedLabel=ye.currentLabel,a.selected=ye;return}const le=[];on(e.modelValue)&&e.modelValue.forEach(ye=>{le.push(ue(ye))}),a.selected=le},ue=le=>{let ye;const nt=js(le).toLowerCase()==="object",Mt=js(le).toLowerCase()==="null",Gn=js(le).toLowerCase()==="undefined";for(let vo=a.cachedOptions.size-1;vo>=0;vo--){const gn=B.value[vo];if(nt?zn(gn.value,e.valueKey)===zn(le,e.valueKey):gn.value===le){ye={value:le,currentLabel:gn.currentLabel,isDisabled:gn.isDisabled};break}}if(ye)return ye;const Fo=nt?le.label:!Mt&&!Gn?le:"";return{value:le,currentLabel:Fo}},Te=()=>{e.multiple?a.hoveringIndex=x.value.findIndex(le=>a.selected.some(ye=>Rl(ye)===Rl(le))):a.hoveringIndex=x.value.findIndex(le=>Rl(le)===Rl(a.selected))},Ae=()=>{a.selectionWidth=u.value.getBoundingClientRect().width},Qe=()=>{a.calculatorWidth=R.value.getBoundingClientRect().width},Ne=()=>{a.collapseItemWidth=O.value.getBoundingClientRect().width},he=()=>{var le,ye;(ye=(le=r.value)==null?void 0:le.updatePopper)==null||ye.call(le)},Le=()=>{var le,ye;(ye=(le=c.value)==null?void 0:le.updatePopper)==null||ye.call(le)},ve=()=>{a.inputValue.length>0&&!W.value&&(W.value=!0),Z(a.inputValue)},_e=le=>{if(a.inputValue=le.target.value,e.remote)je();else return ve()},je=kM(()=>{ve()},Re.value),pe=le=>{jo(e.modelValue,le)||t(xc,le)},Ge=le=>JM(le,ye=>!a.disabledOptions.has(ye)),ft=le=>{if(e.multiple&&le.code!==Do.delete&&le.target.value.length<=0){const ye=e.modelValue.slice(),nt=Ge(ye);if(nt<0)return;ye.splice(nt,1),t(dn,ye),pe(ye)}},In=(le,ye)=>{const nt=a.selected.indexOf(ye);if(nt>-1&&!F.value){const Mt=e.modelValue.slice();Mt.splice(nt,1),t(dn,Mt),pe(Mt),t("remove-tag",ye.value)}le.stopPropagation(),Gl()},ho=le=>{le.stopPropagation();const ye=e.multiple?[]:void 0;if(e.multiple)for(const nt of a.selected)nt.isDisabled&&ye.push(nt.value);t(dn,ye),pe(ye),a.hoveringIndex=-1,W.value=!1,t("clear"),Gl()},cl=le=>{if(e.multiple){const ye=(e.modelValue||[]).slice(),nt=dl(ye,le.value);nt>-1?ye.splice(nt,1):(e.multipleLimit<=0||ye.length<e.multipleLimit)&&ye.push(le.value),t(dn,ye),pe(ye),le.created&&Z(""),e.filterable&&!e.reserveKeyword&&(a.inputValue="")}else t(dn,le.value),pe(le.value),W.value=!1;Gl(),!W.value&&we(()=>{Cl(le)})},dl=(le=[],ye)=>{if(!ln(ye))return le.indexOf(ye);const nt=e.valueKey;let Mt=-1;return le.some((Gn,Fo)=>tc(zn(Gn,nt))===zn(ye,nt)?(Mt=Fo,!0):!1),Mt},Cl=le=>{var ye,nt,Mt,Gn,Fo;const El=on(le)?le[0]:le;let vo=null;if(El!=null&&El.value){const gn=x.value.filter(wi=>wi.value===El.value);gn.length>0&&(vo=gn[0].$el)}if(r.value&&vo){const gn=(Gn=(Mt=(nt=(ye=r.value)==null?void 0:ye.popperRef)==null?void 0:nt.contentRef)==null?void 0:Mt.querySelector)==null?void 0:Gn.call(Mt,`.${l.be("dropdown","wrap")}`);gn&&zM(gn,vo)}(Fo=L.value)==null||Fo.handleScroll()},wR=le=>{a.options.set(le.value,le),a.cachedOptions.set(le.value,le),le.disabled&&a.disabledOptions.set(le.value,le)},kR=(le,ye)=>{a.options.get(le)===ye&&a.options.delete(le)},{handleCompositionStart:JR,handleCompositionUpdate:xR,handleCompositionEnd:$R}=NO(le=>_e(le)),DR=_(()=>{var le,ye;return(ye=(le=r.value)==null?void 0:le.popperRef)==null?void 0:ye.contentRef}),BR=()=>{we(()=>Cl(a.selected))},Gl=()=>{var le;(le=d.value)==null||le.focus()},zR=()=>{Ci()},jR=le=>{ho(le)},Ci=le=>{if(W.value=!1,X.value){const ye=new FocusEvent("focus",le);we(()=>y(ye))}},qR=()=>{a.inputValue.length>0?a.inputValue="":W.value=!1},Gi=()=>{F.value||(a.menuVisibleOnFocus?a.menuVisibleOnFocus=!1:W.value=!W.value)},ef=()=>{W.value?x.value[a.hoveringIndex]&&cl(x.value[a.hoveringIndex]):Gi()},Rl=le=>ln(le.value)?zn(le.value,e.valueKey):le.value,tf=_(()=>x.value.filter(le=>le.visible).every(le=>le.disabled)),nf=_(()=>e.multiple?e.collapseTags?a.selected.slice(0,e.maxCollapseTags):a.selected:[]),of=_(()=>e.multiple?e.collapseTags?a.selected.slice(e.maxCollapseTags):[]:[]),Ei=le=>{if(!W.value){W.value=!0;return}if(!(a.options.size===0||Pe.value===0)&&!tf.value){le==="next"?(a.hoveringIndex++,a.hoveringIndex===a.options.size&&(a.hoveringIndex=0)):le==="prev"&&(a.hoveringIndex--,a.hoveringIndex<0&&(a.hoveringIndex=a.options.size-1));const ye=x.value[a.hoveringIndex];(ye.disabled===!0||ye.states.groupDisabled===!0||!ye.visible)&&Ei(le),we(()=>Cl(T.value))}},lf=()=>{if(!u.value)return 0;const le=window.getComputedStyle(u.value);return Number.parseFloat(le.gap||"6px")},sf=_(()=>{const le=lf();return{maxWidth:`${O.value&&e.maxCollapseTags===1?a.selectionWidth-a.collapseItemWidth-le:a.selectionWidth}px`}}),af=_(()=>({maxWidth:`${a.selectionWidth}px`})),rf=_(()=>({width:`${Math.max(a.calculatorWidth,XO)}px`}));return e.multiple&&!on(e.modelValue)&&t(dn,[]),!e.multiple&&on(e.modelValue)&&t(dn,""),Qn(u,Ae),Qn(R,Qe),Qn(h,he),Qn(S,he),Qn(P,Le),Qn(O,Ne),Ee(()=>{re()}),{inputId:Y,contentId:o,nsSelect:l,nsInput:s,states:a,isFocused:X,expanded:W,optionsArray:x,hoverOption:T,selectSize:q,filteredOptionsCount:Pe,resetCalculatorWidth:Qe,updateTooltip:he,updateTagTooltip:Le,debouncedOnInputChange:je,onInput:_e,deletePrevTag:ft,deleteTag:In,deleteSelected:ho,handleOptionSelect:cl,scrollToOption:Cl,hasModelValue:K,shouldShowPlaceholder:w,currentPlaceholder:D,showClose:H,iconComponent:Q,iconReverse:G,validateState:$,validateIcon:se,showNewOption:Ie,updateOptions:ce,collapseTagSize:ne,setSelected:re,selectDisabled:F,emptyText:ae,handleCompositionStart:JR,handleCompositionUpdate:xR,handleCompositionEnd:$R,onOptionCreate:wR,onOptionDestroy:kR,handleMenuEnter:BR,handleFocus:M,focus:Gl,blur:zR,handleBlur:y,handleClearClick:jR,handleClickOutside:Ci,handleEsc:qR,toggleMenu:Gi,selectOption:ef,getValueKey:Rl,navigateOptions:Ei,dropdownMenuVisible:Se,showTagList:nf,collapseTagList:of,tagStyle:sf,collapseTagStyle:af,inputStyle:rf,popperRef:DR,inputRef:d,tooltipRef:r,tagTooltipRef:c,calculatorRef:R,prefixRef:p,suffixRef:f,selectRef:i,wrapperRef:S,selectionRef:u,scrollbarRef:L,menuRef:h,tagMenuRef:P,collapseItemRef:O}};var VO=j({name:"ElOptions",setup(e,{slots:t}){const n=Ct(Fs);let o=[];return()=>{var l,s;const a=(l=t.default)==null?void 0:l.call(t),i=[];function u(r){on(r)&&r.forEach(c=>{var d,R,p,f;const h=(d=(c==null?void 0:c.type)||{})==null?void 0:d.name;h==="ElOptionGroup"?u(!hn(c.children)&&!on(c.children)&&kt((R=c.children)==null?void 0:R.default)?(p=c.children)==null?void 0:p.default():c.children):h==="ElOption"?i.push((f=c.props)==null?void 0:f.value):on(c.children)&&u(c.children)})}return a.length&&u((s=a[0])==null?void 0:s.children),jo(i,o)||(o=i,n&&(n.states.optionValues=i)),a}}});const yO=et({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:zu,effect:{type:Ze(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Ze(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:mi.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:ao,default:ja},fitInputWidth:Boolean,suffixIcon:{type:ao,default:Wf},tagType:{...ud.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,placement:{type:Ze(String),values:ec,default:"bottom-start"},fallbackPlacements:{type:Ze(Array),default:["bottom-start","top-start","right","left"]},ariaLabel:{type:String,default:void 0}}),Jr="ElSelect",LO=j({name:Jr,componentName:Jr,components:{ElInput:di,ElSelectMenu:PO,ElOption:Mi,ElOptions:VO,ElTag:zS,ElScrollbar:Cg,ElTooltip:wS,ElIcon:It},directives:{ClickOutside:kS},props:yO,emits:[dn,xc,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=TO(e,t);return an(Fs,fo({props:e,states:n.states,optionsArray:n.optionsArray,handleOptionSelect:n.handleOptionSelect,onOptionCreate:n.onOptionCreate,onOptionDestroy:n.onOptionDestroy,selectRef:n.selectRef,setSelected:n.setSelected})),{...n}}}),bO=["id","disabled","autocomplete","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label"],IO=["textContent"];function YO(e,t,n,o,l,s){const a=te("el-tag"),i=te("el-tooltip"),u=te("el-icon"),r=te("el-option"),c=te("el-options"),d=te("el-scrollbar"),R=te("el-select-menu"),p=ze("click-outside");return de((g(),I("div",{ref:"selectRef",class:E([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:t[14]||(t[14]=f=>e.states.inputHovering=!0),onMouseleave:t[15]||(t[15]=f=>e.states.inputHovering=!1),onClick:t[16]||(t[16]=Fe((...f)=>e.toggleMenu&&e.toggleMenu(...f),["stop"]))},[N(i,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:t[13]||(t[13]=f=>e.states.isBeforeHide=!1)},{default:U(()=>{var f;return[m("div",{ref:"wrapperRef",class:E([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)])},[e.$slots.prefix?(g(),I("div",{key:0,ref:"prefixRef",class:E(e.nsSelect.e("prefix"))},[We(e.$slots,"prefix")],2)):z("v-if",!0),m("div",{ref:"selectionRef",class:E([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?We(e.$slots,"tag",{key:0},()=>[(g(!0),I(ie,null,me(e.showTagList,h=>(g(),I("div",{key:e.getValueKey(h),class:E(e.nsSelect.e("selected-item"))},[N(a,{closable:!e.selectDisabled&&!h.isDisabled,size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",style:ee(e.tagStyle),onClose:P=>e.deleteTag(P,h)},{default:U(()=>[m("span",{class:E(e.nsSelect.e("tags-text"))},Me(h.currentLabel),3)]),_:2},1032,["closable","size","type","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(g(),k(i,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:U(()=>[m("div",{ref:"collapseItemRef",class:E(e.nsSelect.e("selected-item"))},[N(a,{closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",style:ee(e.collapseTagStyle)},{default:U(()=>[m("span",{class:E(e.nsSelect.e("tags-text"))}," + "+Me(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","style"])],2)]),content:U(()=>[m("div",{ref:"tagMenuRef",class:E(e.nsSelect.e("selection"))},[(g(!0),I(ie,null,me(e.collapseTagList,h=>(g(),I("div",{key:e.getValueKey(h),class:E(e.nsSelect.e("selected-item"))},[N(a,{class:"in-tooltip",closable:!e.selectDisabled&&!h.isDisabled,size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",onClose:P=>e.deleteTag(P,h)},{default:U(()=>[m("span",{class:E(e.nsSelect.e("tags-text"))},Me(h.currentLabel),3)]),_:2},1032,["closable","size","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):z("v-if",!0)]):z("v-if",!0),e.selectDisabled?z("v-if",!0):(g(),I("div",{key:1,class:E([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[de(m("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":t[0]||(t[0]=h=>e.states.inputValue=h),type:"text",class:E([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:ee(e.inputStyle),role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((f=e.hoverOption)==null?void 0:f.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onFocus:t[1]||(t[1]=(...h)=>e.handleFocus&&e.handleFocus(...h)),onBlur:t[2]||(t[2]=(...h)=>e.handleBlur&&e.handleBlur(...h)),onKeydown:[t[3]||(t[3]=Yt(Fe(h=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[4]||(t[4]=Yt(Fe(h=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),t[5]||(t[5]=Yt(Fe((...h)=>e.handleEsc&&e.handleEsc(...h),["stop","prevent"]),["esc"])),t[6]||(t[6]=Yt(Fe((...h)=>e.selectOption&&e.selectOption(...h),["stop","prevent"]),["enter"])),t[7]||(t[7]=Yt(Fe((...h)=>e.deletePrevTag&&e.deletePrevTag(...h),["stop"]),["delete"]))],onCompositionstart:t[8]||(t[8]=(...h)=>e.handleCompositionStart&&e.handleCompositionStart(...h)),onCompositionupdate:t[9]||(t[9]=(...h)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...h)),onCompositionend:t[10]||(t[10]=(...h)=>e.handleCompositionEnd&&e.handleCompositionEnd(...h)),onInput:t[11]||(t[11]=(...h)=>e.onInput&&e.onInput(...h)),onClick:t[12]||(t[12]=Fe((...h)=>e.toggleMenu&&e.toggleMenu(...h),["stop"]))},null,46,bO),[[oc,e.states.inputValue]]),e.filterable?(g(),I("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:E(e.nsSelect.e("input-calculator")),textContent:Me(e.states.inputValue)},null,10,IO)):z("v-if",!0)],2)),e.shouldShowPlaceholder?(g(),I("div",{key:2,class:E([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[m("span",null,Me(e.currentPlaceholder),1)],2)):z("v-if",!0)],2),m("div",{ref:"suffixRef",class:E(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(g(),k(u,{key:0,class:E([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:U(()=>[(g(),k(Vt(e.iconComponent)))]),_:1},8,["class"])):z("v-if",!0),e.showClose&&e.clearIcon?(g(),k(u,{key:1,class:E([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:U(()=>[(g(),k(Vt(e.clearIcon)))]),_:1},8,["class","onClick"])):z("v-if",!0),e.validateState&&e.validateIcon?(g(),k(u,{key:2,class:E([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:U(()=>[(g(),k(Vt(e.validateIcon)))]),_:1},8,["class"])):z("v-if",!0)],2)],2)]}),content:U(()=>[N(R,{ref:"menuRef"},{default:U(()=>[e.$slots.header?(g(),I("div",{key:0,class:E(e.nsSelect.be("dropdown","header"))},[We(e.$slots,"header")],2)):z("v-if",!0),de(N(d,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:E([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:U(()=>[e.showNewOption?(g(),k(r,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):z("v-if",!0),N(c,null,{default:U(()=>[We(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[yt,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(g(),I("div",{key:1,class:E(e.nsSelect.be("dropdown","loading"))},[We(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(g(),I("div",{key:2,class:E(e.nsSelect.be("dropdown","empty"))},[We(e.$slots,"empty",{},()=>[m("span",null,Me(e.emptyText),1)])],2)):z("v-if",!0),e.$slots.footer?(g(),I("div",{key:3,class:E(e.nsSelect.be("dropdown","footer"))},[We(e.$slots,"footer")],2)):z("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","onBeforeShow"])],34)),[[p,e.handleClickOutside,e.popperRef]])}var WO=tt(LO,[["render",YO],["__file","select.vue"]]);const UO=j({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=qe("select"),n=A(null),o=bo(),l=A([]);an(dd,fo({...Vs(e)}));const s=_(()=>l.value.some(u=>u.visible===!0)),a=u=>{const r=[];return on(u.children)&&u.children.forEach(c=>{var d,R;c.type&&c.type.name==="ElOption"&&c.component&&c.component.proxy?r.push(c.component.proxy):(d=c.children)!=null&&d.length?r.push(...a(c)):(R=c.component)!=null&&R.subTree&&r.push(...a(c.component.subTree))}),r},i=()=>{l.value=a(o.subTree)};return Ee(()=>{i()}),Uf(n,i,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:s,ns:t}}});function QO(e,t,n,o,l,s){return de((g(),I("ul",{ref:"groupRef",class:E(e.ns.be("group","wrap"))},[m("li",{class:E(e.ns.be("group","title"))},Me(e.label),3),m("li",null,[m("ul",{class:E(e.ns.b("group"))},[We(e.$slots,"default")],2)])],2)),[[yt,e.visible]])}var Rd=tt(UO,[["render",QO],["__file","option-group.vue"]]);const FO=_n(WO,{Option:Mi,OptionGroup:Rd}),ZO=lc(Mi);lc(Rd);const gi=()=>Ct(cd,{}),AO=et({pageSize:{type:Number,required:!0},pageSizes:{type:Ze(Array),default:()=>Bo([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:Ts}}),KO=j({name:"ElPaginationSizes"}),_O=j({...KO,props:AO,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:o}=Hn(),l=qe("pagination"),s=gi(),a=A(n.pageSize);Oe(()=>n.pageSizes,(r,c)=>{if(!jo(r,c)&&Array.isArray(r)){const d=r.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",d)}}),Oe(()=>n.pageSize,r=>{a.value=r});const i=_(()=>n.pageSizes);function u(r){var c;r!==a.value&&(a.value=r,(c=s.handleSizeChange)==null||c.call(s,Number(r)))}return(r,c)=>(g(),I("span",{class:E(v(l).e("sizes"))},[N(v(FO),{"model-value":a.value,disabled:r.disabled,"popper-class":r.popperClass,size:r.size,teleported:r.teleported,"validate-event":!1,onChange:u},{default:U(()=>[(g(!0),I(ie,null,me(v(i),d=>(g(),k(v(ZO),{key:d,value:d,label:d+v(o)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported"])],2))}});var HO=tt(_O,[["__file","sizes.vue"]]);const CO=et({size:{type:String,values:Ts}}),GO=["disabled"],EO=j({name:"ElPaginationJumper"}),wO=j({...EO,props:CO,setup(e){const{t}=Hn(),n=qe("pagination"),{pageCount:o,disabled:l,currentPage:s,changeEvent:a}=gi(),i=A(),u=_(()=>{var d;return(d=i.value)!=null?d:s==null?void 0:s.value});function r(d){i.value=d?+d:""}function c(d){d=Math.trunc(+d),a==null||a(d),i.value=void 0}return(d,R)=>(g(),I("span",{class:E(v(n).e("jump")),disabled:v(l)},[m("span",{class:E([v(n).e("goto")])},Me(v(t)("el.pagination.goto")),3),N(v(di),{size:d.size,class:E([v(n).e("editor"),v(n).is("in-pagination")]),min:1,max:v(o),disabled:v(l),"model-value":v(u),"validate-event":!1,label:v(t)("el.pagination.page"),type:"number","onUpdate:modelValue":r,onChange:c},null,8,["size","class","max","disabled","model-value","label"]),m("span",{class:E([v(n).e("classifier")])},Me(v(t)("el.pagination.pageClassifier")),3)],10,GO))}});var kO=tt(wO,[["__file","jumper.vue"]]);const JO=et({total:{type:Number,default:1e3}}),xO=["disabled"],$O=j({name:"ElPaginationTotal"}),DO=j({...$O,props:JO,setup(e){const{t}=Hn(),n=qe("pagination"),{disabled:o}=gi();return(l,s)=>(g(),I("span",{class:E(v(n).e("total")),disabled:v(o)},Me(v(t)("el.pagination.total",{total:l.total})),11,xO))}});var BO=tt(DO,[["__file","total.vue"]]);const zO=et({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),jO=["onKeyup"],qO=["aria-current","aria-label","tabindex"],eP=["tabindex","aria-label"],tP=["aria-current","aria-label","tabindex"],nP=["tabindex","aria-label"],oP=["aria-current","aria-label","tabindex"],lP=j({name:"ElPaginationPager"}),sP=j({...lP,props:zO,emits:["change"],setup(e,{emit:t}){const n=e,o=qe("pager"),l=qe("icon"),{t:s}=Hn(),a=A(!1),i=A(!1),u=A(!1),r=A(!1),c=A(!1),d=A(!1),R=_(()=>{const X=n.pagerCount,M=(X-1)/2,y=Number(n.currentPage),W=Number(n.pageCount);let T=!1,V=!1;W>X&&(y>X-M&&(T=!0),y<W-M&&(V=!0));const b=[];if(T&&!V){const Y=W-(X-2);for(let F=Y;F<W;F++)b.push(F)}else if(!T&&V)for(let Y=2;Y<X;Y++)b.push(Y);else if(T&&V){const Y=Math.floor(X/2)-1;for(let F=y-Y;F<=y+Y;F++)b.push(F)}else for(let Y=2;Y<W;Y++)b.push(Y);return b}),p=_(()=>["more","btn-quickprev",l.b(),o.is("disabled",n.disabled)]),f=_(()=>["more","btn-quicknext",l.b(),o.is("disabled",n.disabled)]),h=_(()=>n.disabled?-1:0);Io(()=>{const X=(n.pagerCount-1)/2;a.value=!1,i.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-X&&(a.value=!0),n.currentPage<n.pageCount-X&&(i.value=!0))});function P(X=!1){n.disabled||(X?u.value=!0:r.value=!0)}function O(X=!1){X?c.value=!0:d.value=!0}function L(X){const M=X.target;if(M.tagName.toLowerCase()==="li"&&Array.from(M.classList).includes("number")){const y=Number(M.textContent);y!==n.currentPage&&t("change",y)}else M.tagName.toLowerCase()==="li"&&Array.from(M.classList).includes("more")&&S(X)}function S(X){const M=X.target;if(M.tagName.toLowerCase()==="ul"||n.disabled)return;let y=Number(M.textContent);const W=n.pageCount,T=n.currentPage,V=n.pagerCount-2;M.className.includes("more")&&(M.className.includes("quickprev")?y=T-V:M.className.includes("quicknext")&&(y=T+V)),Number.isNaN(+y)||(y<1&&(y=1),y>W&&(y=W)),y!==T&&t("change",y)}return(X,M)=>(g(),I("ul",{class:E(v(o).b()),onClick:S,onKeyup:Yt(L,["enter"])},[X.pageCount>0?(g(),I("li",{key:0,class:E([[v(o).is("active",X.currentPage===1),v(o).is("disabled",X.disabled)],"number"]),"aria-current":X.currentPage===1,"aria-label":v(s)("el.pagination.currentPage",{pager:1}),tabindex:v(h)}," 1 ",10,qO)):z("v-if",!0),a.value?(g(),I("li",{key:1,class:E(v(p)),tabindex:v(h),"aria-label":v(s)("el.pagination.prevPages",{pager:X.pagerCount-2}),onMouseenter:M[0]||(M[0]=y=>P(!0)),onMouseleave:M[1]||(M[1]=y=>u.value=!1),onFocus:M[2]||(M[2]=y=>O(!0)),onBlur:M[3]||(M[3]=y=>c.value=!1)},[(u.value||c.value)&&!X.disabled?(g(),k(v(Qf),{key:0})):(g(),k(v(Ji),{key:1}))],42,eP)):z("v-if",!0),(g(!0),I(ie,null,me(v(R),y=>(g(),I("li",{key:y,class:E([[v(o).is("active",X.currentPage===y),v(o).is("disabled",X.disabled)],"number"]),"aria-current":X.currentPage===y,"aria-label":v(s)("el.pagination.currentPage",{pager:y}),tabindex:v(h)},Me(y),11,tP))),128)),i.value?(g(),I("li",{key:2,class:E(v(f)),tabindex:v(h),"aria-label":v(s)("el.pagination.nextPages",{pager:X.pagerCount-2}),onMouseenter:M[4]||(M[4]=y=>P()),onMouseleave:M[5]||(M[5]=y=>r.value=!1),onFocus:M[6]||(M[6]=y=>O()),onBlur:M[7]||(M[7]=y=>d.value=!1)},[(r.value||d.value)&&!X.disabled?(g(),k(v(Ff),{key:0})):(g(),k(v(Ji),{key:1}))],42,nP)):z("v-if",!0),X.pageCount>1?(g(),I("li",{key:3,class:E([[v(o).is("active",X.currentPage===X.pageCount),v(o).is("disabled",X.disabled)],"number"]),"aria-current":X.currentPage===X.pageCount,"aria-label":v(s)("el.pagination.currentPage",{pager:X.pageCount}),tabindex:v(h)},Me(X.pageCount),11,oP)):z("v-if",!0)],42,jO))}});var aP=tt(sP,[["__file","pager.vue"]]);const Et=e=>typeof e!="number",iP=et({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>Ot(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:Ze(Array),default:()=>Bo([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:ao,default:()=>Zf},nextText:{type:String,default:""},nextIcon:{type:ao,default:()=>Af},teleported:{type:Boolean,default:!0},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),rP={"update:current-page":e=>Ot(e),"update:page-size":e=>Ot(e),"size-change":e=>Ot(e),change:(e,t)=>Ot(e)&&Ot(t),"current-change":e=>Ot(e),"prev-click":e=>Ot(e),"next-click":e=>Ot(e)},xr="ElPagination";var uP=j({name:xr,props:iP,emits:rP,setup(e,{emit:t,slots:n}){const{t:o}=Hn(),l=qe("pagination"),s=bo().vnode.props||{},a="onUpdate:currentPage"in s||"onUpdate:current-page"in s||"onCurrentChange"in s,i="onUpdate:pageSize"in s||"onUpdate:page-size"in s||"onSizeChange"in s,u=_(()=>{if(Et(e.total)&&Et(e.pageCount)||!Et(e.currentPage)&&!a)return!1;if(e.layout.includes("sizes")){if(Et(e.pageCount)){if(!Et(e.total)&&!Et(e.pageSize)&&!i)return!1}else if(!i)return!1}return!0}),r=A(Et(e.defaultPageSize)?10:e.defaultPageSize),c=A(Et(e.defaultCurrentPage)?1:e.defaultCurrentPage),d=_({get(){return Et(e.pageSize)?r.value:e.pageSize},set(S){Et(e.pageSize)&&(r.value=S),i&&(t("update:page-size",S),t("size-change",S))}}),R=_(()=>{let S=0;return Et(e.pageCount)?Et(e.total)||(S=Math.max(1,Math.ceil(e.total/d.value))):S=e.pageCount,S}),p=_({get(){return Et(e.currentPage)?c.value:e.currentPage},set(S){let X=S;S<1?X=1:S>R.value&&(X=R.value),Et(e.currentPage)&&(c.value=X),a&&(t("update:current-page",X),t("current-change",X))}});Oe(R,S=>{p.value>S&&(p.value=S)}),Oe([p,d],S=>{t("change",...S)},{flush:"post"});function f(S){p.value=S}function h(S){d.value=S;const X=R.value;p.value>X&&(p.value=X)}function P(){e.disabled||(p.value-=1,t("prev-click",p.value))}function O(){e.disabled||(p.value+=1,t("next-click",p.value))}function L(S,X){S&&(S.props||(S.props={}),S.props.class=[S.props.class,X].join(" "))}return an(cd,{pageCount:R,disabled:_(()=>e.disabled),currentPage:p,changeEvent:f,handleSizeChange:h}),()=>{var S,X;if(!u.value)return o("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&R.value<=1)return null;const M=[],y=[],W=jt("div",{class:l.e("rightwrapper")},y),T={prev:jt(uO,{disabled:e.disabled,currentPage:p.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:P}),jumper:jt(kO,{size:e.small?"small":"default"}),pager:jt(aP,{currentPage:p.value,pageCount:R.value,pagerCount:e.pagerCount,onChange:f,disabled:e.disabled}),next:jt(hO,{disabled:e.disabled,currentPage:p.value,pageCount:R.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:O}),sizes:jt(HO,{pageSize:d.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,teleported:e.teleported,size:e.small?"small":"default"}),slot:(X=(S=n==null?void 0:n.default)==null?void 0:S.call(n))!=null?X:null,total:jt(BO,{total:Et(e.total)?0:e.total})},V=e.layout.split(",").map(Y=>Y.trim());let b=!1;return V.forEach(Y=>{if(Y==="->"){b=!0;return}b?y.push(T[Y]):M.push(T[Y])}),L(M[0],l.is("first")),L(M[M.length-1],l.is("last")),b&&y.length>0&&(L(y[0],l.is("first")),L(y[y.length-1],l.is("last")),M.push(W)),jt("div",{class:[l.b(),l.is("background",e.background),{[l.m("small")]:e.small}]},M)}}});const cP=_n(uP),dP=et({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:Ze(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:Ze([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:Ze(Function),default:e=>`${e}%`}}),RP=["aria-valuenow"],fP={viewBox:"0 0 100 100"},pP=["d","stroke","stroke-linecap","stroke-width"],hP=["d","stroke","opacity","stroke-linecap","stroke-width"],vP={key:0},mP=j({name:"ElProgress"}),MP=j({...mP,props:dP,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},o=qe("progress"),l=_(()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,backgroundColor:L(t.percentage)})),s=_(()=>(t.strokeWidth/t.width*100).toFixed(1)),a=_(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(s.value)/2}`,10):0),i=_(()=>{const S=a.value,X=t.type==="dashboard";return`
- M 50 50
- m 0 ${X?"":"-"}${S}
- a ${S} ${S} 0 1 1 0 ${X?"-":""}${S*2}
- a ${S} ${S} 0 1 1 0 ${X?"":"-"}${S*2}
- `}),u=_(()=>2*Math.PI*a.value),r=_(()=>t.type==="dashboard"?.75:1),c=_(()=>`${-1*u.value*(1-r.value)/2}px`),d=_(()=>({strokeDasharray:`${u.value*r.value}px, ${u.value}px`,strokeDashoffset:c.value})),R=_(()=>({strokeDasharray:`${u.value*r.value*(t.percentage/100)}px, ${u.value}px`,strokeDashoffset:c.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),p=_(()=>{let S;return t.color?S=L(t.percentage):S=n[t.status]||n.default,S}),f=_(()=>t.status==="warning"?Kf:t.type==="line"?t.status==="success"?sc:ja:t.status==="success"?ac:cs),h=_(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),P=_(()=>t.format(t.percentage));function O(S){const X=100/S.length;return S.map((y,W)=>hn(y)?{color:y,percentage:(W+1)*X}:y).sort((y,W)=>y.percentage-W.percentage)}const L=S=>{var X;const{color:M}=t;if(kt(M))return M(S);if(hn(M))return M;{const y=O(M);for(const W of y)if(W.percentage>S)return W.color;return(X=y[y.length-1])==null?void 0:X.color}};return(S,X)=>(g(),I("div",{class:E([v(o).b(),v(o).m(S.type),v(o).is(S.status),{[v(o).m("without-text")]:!S.showText,[v(o).m("text-inside")]:S.textInside}]),role:"progressbar","aria-valuenow":S.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[S.type==="line"?(g(),I("div",{key:0,class:E(v(o).b("bar"))},[m("div",{class:E(v(o).be("bar","outer")),style:ee({height:`${S.strokeWidth}px`})},[m("div",{class:E([v(o).be("bar","inner"),{[v(o).bem("bar","inner","indeterminate")]:S.indeterminate},{[v(o).bem("bar","inner","striped")]:S.striped},{[v(o).bem("bar","inner","striped-flow")]:S.stripedFlow}]),style:ee(v(l))},[(S.showText||S.$slots.default)&&S.textInside?(g(),I("div",{key:0,class:E(v(o).be("bar","innerText"))},[We(S.$slots,"default",{percentage:S.percentage},()=>[m("span",null,Me(v(P)),1)])],2)):z("v-if",!0)],6)],6)],2)):(g(),I("div",{key:1,class:E(v(o).b("circle")),style:ee({height:`${S.width}px`,width:`${S.width}px`})},[(g(),I("svg",fP,[m("path",{class:E(v(o).be("circle","track")),d:v(i),stroke:`var(${v(o).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":S.strokeLinecap,"stroke-width":v(s),fill:"none",style:ee(v(d))},null,14,pP),m("path",{class:E(v(o).be("circle","path")),d:v(i),stroke:v(p),fill:"none",opacity:S.percentage?1:0,"stroke-linecap":S.strokeLinecap,"stroke-width":v(s),style:ee(v(R))},null,14,hP)]))],6)),(S.showText||S.$slots.default)&&!S.textInside?(g(),I("div",{key:2,class:E(v(o).e("text")),style:ee({fontSize:`${v(h)}px`})},[We(S.$slots,"default",{percentage:S.percentage},()=>[S.status?(g(),k(v(It),{key:1},{default:U(()=>[(g(),k(Vt(v(f))))]),_:1})):(g(),I("span",vP,Me(v(P)),1))])],6)):z("v-if",!0)],10,RP))}});var gP=tt(MP,[["__file","progress.vue"]]);const fd=_n(gP),pd=Symbol("uploadContextKey"),SP="ElUpload";class OP extends Error{constructor(t,n,o,l){super(t),this.name="UploadAjaxError",this.status=n,this.method=o,this.url=l}}function $r(e,t,n){let o;return n.response?o=`${n.response.error||n.response}`:n.responseText?o=`${n.responseText}`:o=`fail to ${t.method} ${e} ${n.status}`,new OP(o,n.status,t.method,e)}function PP(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const NP=e=>{typeof XMLHttpRequest>"u"&&Yl(SP,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",s=>{const a=s;a.percent=s.total>0?s.loaded/s.total*100:0,e.onProgress(a)});const o=new FormData;if(e.data)for(const[s,a]of Object.entries(e.data))on(a)&&a.length?o.append(s,...a):o.append(s,a);o.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError($r(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError($r(n,e,t));e.onSuccess(PP(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const l=e.headers||{};if(l instanceof Headers)l.forEach((s,a)=>t.setRequestHeader(a,s));else for(const[s,a]of Object.entries(l))Yo(a)||t.setRequestHeader(s,String(a));return t.send(o),t},hd=["text","picture","picture-card"];let XP=1;const Wa=()=>Date.now()+XP++,vd=et({action:{type:String,default:"#"},headers:{type:Ze(Object)},method:{type:String,default:"post"},data:{type:Ze([Object,Function,Promise]),default:()=>Bo({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:Ze(Array),default:()=>Bo([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:hd,default:"text"},httpRequest:{type:Ze(Function),default:NP},disabled:Boolean,limit:Number}),TP=et({...vd,beforeUpload:{type:Ze(Function),default:Rt},beforeRemove:{type:Ze(Function)},onRemove:{type:Ze(Function),default:Rt},onChange:{type:Ze(Function),default:Rt},onPreview:{type:Ze(Function),default:Rt},onSuccess:{type:Ze(Function),default:Rt},onProgress:{type:Ze(Function),default:Rt},onError:{type:Ze(Function),default:Rt},onExceed:{type:Ze(Function),default:Rt},crossorigin:{type:Ze(String)}}),VP=et({files:{type:Ze(Array),default:()=>Bo([])},disabled:{type:Boolean,default:!1},handlePreview:{type:Ze(Function),default:Rt},listType:{type:String,values:hd,default:"text"},crossorigin:{type:Ze(String)}}),yP={remove:e=>!!e},LP=["onKeydown"],bP=["src","crossorigin"],IP=["onClick"],YP=["title"],WP=["onClick"],UP=["onClick"],QP=j({name:"ElUploadList"}),FP=j({...QP,props:VP,emits:yP,setup(e,{emit:t}){const n=e,{t:o}=Hn(),l=qe("upload"),s=qe("icon"),a=qe("list"),i=Il(),u=A(!1),r=_(()=>[l.b("list"),l.bm("list",n.listType),l.is("disabled",n.disabled)]),c=d=>{t("remove",d)};return(d,R)=>(g(),k(Gf,{tag:"ul",class:E(v(r)),name:v(a).b()},{default:U(()=>[(g(!0),I(ie,null,me(d.files,p=>(g(),I("li",{key:p.uid||p.name,class:E([v(l).be("list","item"),v(l).is(p.status),{focusing:u.value}]),tabindex:"0",onKeydown:Yt(f=>!v(i)&&c(p),["delete"]),onFocus:R[0]||(R[0]=f=>u.value=!0),onBlur:R[1]||(R[1]=f=>u.value=!1),onClick:R[2]||(R[2]=f=>u.value=!1)},[We(d.$slots,"default",{file:p},()=>[d.listType==="picture"||p.status!=="uploading"&&d.listType==="picture-card"?(g(),I("img",{key:0,class:E(v(l).be("list","item-thumbnail")),src:p.url,crossorigin:d.crossorigin,alt:""},null,10,bP)):z("v-if",!0),p.status==="uploading"||d.listType!=="picture-card"?(g(),I("div",{key:1,class:E(v(l).be("list","item-info"))},[m("a",{class:E(v(l).be("list","item-name")),onClick:Fe(f=>d.handlePreview(p),["prevent"])},[N(v(It),{class:E(v(s).m("document"))},{default:U(()=>[N(v(_f))]),_:1},8,["class"]),m("span",{class:E(v(l).be("list","item-file-name")),title:p.name},Me(p.name),11,YP)],10,IP),p.status==="uploading"?(g(),k(v(fd),{key:0,type:d.listType==="picture-card"?"circle":"line","stroke-width":d.listType==="picture-card"?6:2,percentage:Number(p.percentage),style:ee(d.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):z("v-if",!0)],2)):z("v-if",!0),m("label",{class:E(v(l).be("list","item-status-label"))},[d.listType==="text"?(g(),k(v(It),{key:0,class:E([v(s).m("upload-success"),v(s).m("circle-check")])},{default:U(()=>[N(v(sc))]),_:1},8,["class"])):["picture-card","picture"].includes(d.listType)?(g(),k(v(It),{key:1,class:E([v(s).m("upload-success"),v(s).m("check")])},{default:U(()=>[N(v(ac))]),_:1},8,["class"])):z("v-if",!0)],2),v(i)?z("v-if",!0):(g(),k(v(It),{key:2,class:E(v(s).m("close")),onClick:f=>c(p)},{default:U(()=>[N(v(cs))]),_:2},1032,["class","onClick"])),z(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),z(" This is a bug which needs to be fixed "),z(" TODO: Fix the incorrect navigation interaction "),v(i)?z("v-if",!0):(g(),I("i",{key:3,class:E(v(s).m("close-tip"))},Me(v(o)("el.upload.deleteTip")),3)),d.listType==="picture-card"?(g(),I("span",{key:4,class:E(v(l).be("list","item-actions"))},[m("span",{class:E(v(l).be("list","item-preview")),onClick:f=>d.handlePreview(p)},[N(v(It),{class:E(v(s).m("zoom-in"))},{default:U(()=>[N(v(Hf))]),_:1},8,["class"])],10,WP),v(i)?z("v-if",!0):(g(),I("span",{key:0,class:E(v(l).be("list","item-delete")),onClick:f=>c(p)},[N(v(It),{class:E(v(s).m("delete"))},{default:U(()=>[N(v(Cf))]),_:1},8,["class"])],10,UP))],2)):z("v-if",!0)])],42,LP))),128)),We(d.$slots,"append")]),_:3},8,["class","name"]))}});var Dr=tt(FP,[["__file","upload-list.vue"]]);const ZP=et({disabled:{type:Boolean,default:!1}}),AP={file:e=>on(e)},KP=["onDrop","onDragover"],md="ElUploadDrag",_P=j({name:md}),HP=j({..._P,props:ZP,emits:AP,setup(e,{emit:t}){Ct(pd)||Yl(md,"usage: <el-upload><el-upload-dragger /></el-upload>");const o=qe("upload"),l=A(!1),s=Il(),a=u=>{if(s.value)return;l.value=!1,u.stopPropagation();const r=Array.from(u.dataTransfer.files);t("file",r)},i=()=>{s.value||(l.value=!0)};return(u,r)=>(g(),I("div",{class:E([v(o).b("dragger"),v(o).is("dragover",l.value)]),onDrop:Fe(a,["prevent"]),onDragover:Fe(i,["prevent"]),onDragleave:r[0]||(r[0]=Fe(c=>l.value=!1,["prevent"]))},[We(u.$slots,"default")],42,KP))}});var CP=tt(HP,[["__file","upload-dragger.vue"]]);const GP=et({...vd,beforeUpload:{type:Ze(Function),default:Rt},onRemove:{type:Ze(Function),default:Rt},onStart:{type:Ze(Function),default:Rt},onSuccess:{type:Ze(Function),default:Rt},onProgress:{type:Ze(Function),default:Rt},onError:{type:Ze(Function),default:Rt},onExceed:{type:Ze(Function),default:Rt}}),EP=["onKeydown"],wP=["name","multiple","accept"],kP=j({name:"ElUploadContent",inheritAttrs:!1}),JP=j({...kP,props:GP,setup(e,{expose:t}){const n=e,o=qe("upload"),l=Il(),s=eo({}),a=eo(),i=h=>{if(h.length===0)return;const{autoUpload:P,limit:O,fileList:L,multiple:S,onStart:X,onExceed:M}=n;if(O&&L.length+h.length>O){M(h,L);return}S||(h=h.slice(0,1));for(const y of h){const W=y;W.uid=Wa(),X(W),P&&u(W)}},u=async h=>{if(a.value.value="",!n.beforeUpload)return c(h);let P,O={};try{const S=n.data,X=n.beforeUpload(h);O=xi(n.data)?Tr(n.data):n.data,P=await X,xi(n.data)&&jo(S,O)&&(O=Tr(n.data))}catch{P=!1}if(P===!1){n.onRemove(h);return}let L=h;P instanceof Blob&&(P instanceof File?L=P:L=new File([P],h.name,{type:h.type})),c(Object.assign(L,{uid:h.uid}),O)},r=async(h,P)=>kt(h)?h(P):h,c=async(h,P)=>{const{headers:O,data:L,method:S,withCredentials:X,name:M,action:y,onProgress:W,onSuccess:T,onError:V,httpRequest:b}=n;try{P=await r(P??L,h)}catch{n.onRemove(h);return}const{uid:Y}=h,F={headers:O||{},withCredentials:X,file:h,data:P,method:S,filename:M,action:y,onProgress:K=>{W(K,h)},onSuccess:K=>{T(K,h),delete s.value[Y]},onError:K=>{V(K,h),delete s.value[Y]}},C=b(F);s.value[Y]=C,C instanceof Promise&&C.then(F.onSuccess,F.onError)},d=h=>{const P=h.target.files;P&&i(Array.from(P))},R=()=>{l.value||(a.value.value="",a.value.click())},p=()=>{R()};return t({abort:h=>{Ef(s.value).filter(h?([O])=>String(h.uid)===O:()=>!0).forEach(([O,L])=>{L instanceof XMLHttpRequest&&L.abort(),delete s.value[O]})},upload:u}),(h,P)=>(g(),I("div",{class:E([v(o).b(),v(o).m(h.listType),v(o).is("drag",h.drag)]),tabindex:"0",onClick:R,onKeydown:Yt(Fe(p,["self"]),["enter","space"])},[h.drag?(g(),k(CP,{key:0,disabled:v(l),onFile:i},{default:U(()=>[We(h.$slots,"default")]),_:3},8,["disabled"])):We(h.$slots,"default",{key:1}),m("input",{ref_key:"inputRef",ref:a,class:E(v(o).e("input")),name:h.name,multiple:h.multiple,accept:h.accept,type:"file",onChange:d,onClick:P[0]||(P[0]=Fe(()=>{},["stop"]))},null,42,wP)],42,EP))}});var Br=tt(JP,[["__file","upload-content.vue"]]);const zr="ElUpload",jr=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},xP=(e,t)=>{const n=wf(e,"fileList",void 0,{passive:!0}),o=R=>n.value.find(p=>p.uid===R.uid);function l(R){var p;(p=t.value)==null||p.abort(R)}function s(R=["ready","uploading","success","fail"]){n.value=n.value.filter(p=>!R.includes(p.status))}const a=(R,p)=>{const f=o(p);f&&(console.error(R),f.status="fail",n.value.splice(n.value.indexOf(f),1),e.onError(R,f,n.value),e.onChange(f,n.value))},i=(R,p)=>{const f=o(p);f&&(e.onProgress(R,f,n.value),f.status="uploading",f.percentage=Math.round(R.percent))},u=(R,p)=>{const f=o(p);f&&(f.status="success",f.response=R,e.onSuccess(R,f,n.value),e.onChange(f,n.value))},r=R=>{Yo(R.uid)&&(R.uid=Wa());const p={name:R.name,percentage:0,status:"ready",size:R.size,raw:R,uid:R.uid};if(e.listType==="picture-card"||e.listType==="picture")try{p.url=URL.createObjectURL(R)}catch(f){f.message,e.onError(f,p,n.value)}n.value=[...n.value,p],e.onChange(p,n.value)},c=async R=>{const p=R instanceof File?o(R):R;p||Yl(zr,"file to be removed not found");const f=h=>{l(h);const P=n.value;P.splice(P.indexOf(h),1),e.onRemove(h,P),jr(h)};e.beforeRemove?await e.beforeRemove(p,n.value)!==!1&&f(p):f(p)};function d(){n.value.filter(({status:R})=>R==="ready").forEach(({raw:R})=>{var p;return R&&((p=t.value)==null?void 0:p.upload(R))})}return Oe(()=>e.listType,R=>{R!=="picture-card"&&R!=="picture"||(n.value=n.value.map(p=>{const{raw:f,url:h}=p;if(!h&&f)try{p.url=URL.createObjectURL(f)}catch(P){e.onError(P,p,n.value)}return p}))}),Oe(n,R=>{for(const p of R)p.uid||(p.uid=Wa()),p.status||(p.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:l,clearFiles:s,handleError:a,handleProgress:i,handleStart:r,handleSuccess:u,handleRemove:c,submit:d,revokeFileObjectURL:jr}},$P=j({name:"ElUpload"}),DP=j({...$P,props:TP,setup(e,{expose:t}){const n=e,o=Il(),l=eo(),{abort:s,submit:a,clearFiles:i,uploadFiles:u,handleStart:r,handleError:c,handleRemove:d,handleSuccess:R,handleProgress:p,revokeFileObjectURL:f}=xP(n,l),h=_(()=>n.listType==="picture-card"),P=_(()=>({...n,fileList:u.value,onStart:r,onProgress:p,onSuccess:R,onError:c,onRemove:d}));return Gt(()=>{u.value.forEach(f)}),an(pd,{accept:Zn(n,"accept")}),t({abort:s,submit:a,clearFiles:i,handleStart:r,handleRemove:d}),(O,L)=>(g(),I("div",null,[v(h)&&O.showFileList?(g(),k(Dr,{key:0,disabled:v(o),"list-type":O.listType,files:v(u),crossorigin:O.crossorigin,"handle-preview":O.onPreview,onRemove:v(d)},$i({append:U(()=>[N(Br,to({ref_key:"uploadRef",ref:l},v(P)),{default:U(()=>[O.$slots.trigger?We(O.$slots,"trigger",{key:0}):z("v-if",!0),!O.$slots.trigger&&O.$slots.default?We(O.$slots,"default",{key:1}):z("v-if",!0)]),_:3},16)]),_:2},[O.$slots.file?{name:"default",fn:U(({file:S})=>[We(O.$slots,"file",{file:S})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):z("v-if",!0),!v(h)||v(h)&&!O.showFileList?(g(),k(Br,to({key:1,ref_key:"uploadRef",ref:l},v(P)),{default:U(()=>[O.$slots.trigger?We(O.$slots,"trigger",{key:0}):z("v-if",!0),!O.$slots.trigger&&O.$slots.default?We(O.$slots,"default",{key:1}):z("v-if",!0)]),_:3},16)):z("v-if",!0),O.$slots.trigger?We(O.$slots,"default",{key:2}):z("v-if",!0),We(O.$slots,"tip"),!v(h)&&O.showFileList?(g(),k(Dr,{key:3,disabled:v(o),"list-type":O.listType,files:v(u),crossorigin:O.crossorigin,"handle-preview":O.onPreview,onRemove:v(d)},$i({_:2},[O.$slots.file?{name:"default",fn:U(({file:S})=>[We(O.$slots,"file",{file:S})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):z("v-if",!0)]))}});var BP=tt(DP,[["__file","upload.vue"]]);const zP=_n(BP);function jP(e){let t;const n=A(!1),o=fo({...e,originalPosition:"",originalOverflow:"",visible:!1});function l(R){o.text=R}function s(){const R=o.parent,p=d.ns;if(!R.vLoadingAddClassList){let f=R.getAttribute("loading-number");f=Number.parseInt(f)-1,f?R.setAttribute("loading-number",f.toString()):(Sl(R,p.bm("parent","relative")),R.removeAttribute("loading-number")),Sl(R,p.bm("parent","hidden"))}a(),c.unmount()}function a(){var R,p;(p=(R=d.$el)==null?void 0:R.parentNode)==null||p.removeChild(d.$el)}function i(){var R;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=window.setTimeout(u,400),o.visible=!1,(R=e.closed)==null||R.call(e))}function u(){if(!n.value)return;const R=o.parent;n.value=!1,R.vLoadingAddClassList=void 0,s()}const r=j({name:"ElLoading",setup(R,{expose:p}){const{ns:f,zIndex:h}=ic("loading");return p({ns:f,zIndex:h}),()=>{const P=o.spinner||o.svg,O=jt("svg",{class:"circular",viewBox:o.svgViewBox?o.svgViewBox:"0 0 50 50",...P?{innerHTML:P}:{}},[jt("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),L=o.text?jt("p",{class:f.b("text")},[o.text]):void 0;return jt(io,{name:f.b("fade"),onAfterLeave:u},{default:U(()=>[de(N("div",{style:{backgroundColor:o.background||""},class:[f.b("mask"),o.customClass,o.fullscreen?"is-fullscreen":""]},[jt("div",{class:f.b("spinner")},[O,L])]),[[yt,o.visible]])])})}}}),c=kf(r),d=c.mount(document.createElement("div"));return{...Vs(o),setText:l,removeElLoadingChild:a,close:i,handleAfterLeave:u,vm:d,get $el(){return d.$el}}}let Bl;const Ua=function(e={}){if(!At)return;const t=qP(e);if(t.fullscreen&&Bl)return Bl;const n=jP({...t,closed:()=>{var l;(l=t.closed)==null||l.call(t),t.fullscreen&&(Bl=void 0)}});eN(t,t.parent,n),qr(t,t.parent,n),t.parent.vLoadingAddClassList=()=>qr(t,t.parent,n);let o=t.parent.getAttribute("loading-number");return o?o=`${Number.parseInt(o)+1}`:o="1",t.parent.setAttribute("loading-number",o),t.parent.appendChild(n.$el),we(()=>n.visible.value=t.visible),t.fullscreen&&(Bl=n),n},qP=e=>{var t,n,o,l;let s;return hn(e.target)?s=(t=document.querySelector(e.target))!=null?t:document.body:s=e.target||document.body,{parent:s===document.body||e.body?document.body:s,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:s===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(o=e.lock)!=null?o:!1,customClass:e.customClass||"",visible:(l=e.visible)!=null?l:!0,target:s}},eN=async(e,t,n)=>{const{nextZIndex:o}=n.vm.zIndex||n.vm._.exposed.zIndex,l={};if(e.fullscreen)n.originalPosition.value=Co(document.body,"position"),n.originalOverflow.value=Co(document.body,"overflow"),l.zIndex=o();else if(e.parent===document.body){n.originalPosition.value=Co(document.body,"position"),await we();for(const s of["top","left"]){const a=s==="top"?"scrollTop":"scrollLeft";l[s]=`${e.target.getBoundingClientRect()[s]+document.body[a]+document.documentElement[a]-Number.parseInt(Co(document.body,`margin-${s}`),10)}px`}for(const s of["height","width"])l[s]=`${e.target.getBoundingClientRect()[s]}px`}else n.originalPosition.value=Co(t,"position");for(const[s,a]of Object.entries(l))n.$el.style[s]=a},qr=(e,t,n)=>{const o=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?Sl(t,o.bm("parent","relative")):Sa(t,o.bm("parent","relative")),e.fullscreen&&e.lock?Sa(t,o.bm("parent","hidden")):Sl(t,o.bm("parent","hidden"))},ns=Symbol("ElLoading"),eu=(e,t)=>{var n,o,l,s;const a=t.instance,i=R=>ln(t.value)?t.value[R]:void 0,u=R=>{const p=hn(R)&&(a==null?void 0:a[R])||R;return p&&A(p)},r=R=>u(i(R)||e.getAttribute(`element-loading-${Jf(R)}`)),c=(n=i("fullscreen"))!=null?n:t.modifiers.fullscreen,d={text:r("text"),svg:r("svg"),svgViewBox:r("svgViewBox"),spinner:r("spinner"),background:r("background"),customClass:r("customClass"),fullscreen:c,target:(o=i("target"))!=null?o:c?void 0:e,body:(l=i("body"))!=null?l:t.modifiers.body,lock:(s=i("lock"))!=null?s:t.modifiers.lock};e[ns]={options:d,instance:Ua(d)}},tN=(e,t)=>{for(const n of Object.keys(t))rs(t[n])&&(t[n].value=e[n])},tu={mounted(e,t){t.value&&eu(e,t)},updated(e,t){const n=e[ns];t.oldValue!==t.value&&(t.value&&!t.oldValue?eu(e,t):t.value&&t.oldValue?ln(t.value)&&tN(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[ns])==null||t.instance.close(),e[ns]=null}},nN={install(e){e.directive("loading",tu),e.config.globalProperties.$loading=Ua},directive:tu,service:Ua},oN=j({name:"ElMessageBox",directives:{TrapFocus:JS},components:{ElButton:ah,ElFocusTrap:ad,ElInput:di,ElOverlay:nO,ElIcon:It,...xf},inheritAttrs:!1,props:{buttonSize:{type:String,validator:jM},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:o,ns:l,size:s}=ic("message-box",_(()=>e.buttonSize)),{t:a}=n,{nextZIndex:i}=o,u=A(!1),r=fo({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:i()}),c=_(()=>{const Q=r.type;return{[l.bm("icon",Q)]:Q&&Di[Q]}}),d=Ol(),R=Ol(),p=_(()=>r.icon||Di[r.type]||""),f=_(()=>!!r.message),h=A(),P=A(),O=A(),L=A(),S=A(),X=_(()=>r.confirmButtonClass);Oe(()=>r.inputValue,async Q=>{await we(),e.boxType==="prompt"&&Q!==null&&F()},{immediate:!0}),Oe(()=>u.value,Q=>{var G,$;Q&&(e.boxType!=="prompt"&&(r.autofocus?O.value=($=(G=S.value)==null?void 0:G.$el)!=null?$:h.value:O.value=h.value),r.zIndex=i()),e.boxType==="prompt"&&(Q?we().then(()=>{var se;L.value&&L.value.$el&&(r.autofocus?O.value=(se=C())!=null?se:h.value:O.value=h.value)}):(r.editorErrorMessage="",r.validateError=!1))});const M=_(()=>e.draggable),y=_(()=>e.overflow);ng(h,P,M,y),Ee(async()=>{await we(),e.closeOnHashChange&&window.addEventListener("hashchange",W)}),Gt(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",W)});function W(){u.value&&(u.value=!1,we(()=>{r.action&&t("action",r.action)}))}const T=()=>{e.closeOnClickModal&&Y(r.distinguishCancelAndClose?"close":"cancel")},V=Bc(T),b=Q=>{if(r.inputType!=="textarea")return Q.preventDefault(),Y("confirm")},Y=Q=>{var G;e.boxType==="prompt"&&Q==="confirm"&&!F()||(r.action=Q,r.beforeClose?(G=r.beforeClose)==null||G.call(r,Q,r,W):W())},F=()=>{if(e.boxType==="prompt"){const Q=r.inputPattern;if(Q&&!Q.test(r.inputValue||""))return r.editorErrorMessage=r.inputErrorMessage||a("el.messagebox.error"),r.validateError=!0,!1;const G=r.inputValidator;if(typeof G=="function"){const $=G(r.inputValue);if($===!1)return r.editorErrorMessage=r.inputErrorMessage||a("el.messagebox.error"),r.validateError=!0,!1;if(typeof $=="string")return r.editorErrorMessage=$,r.validateError=!0,!1}}return r.editorErrorMessage="",r.validateError=!1,!0},C=()=>{const Q=L.value.$refs;return Q.input||Q.textarea},K=()=>{Y("close")},H=()=>{e.closeOnPressEscape&&K()};return e.lockScroll&&og(u),{...Vs(r),ns:l,overlayEvent:V,visible:u,hasMessage:f,typeClass:c,contentId:d,inputId:R,btnSize:s,iconComponent:p,confirmButtonClasses:X,rootRef:h,focusStartRef:O,headerRef:P,inputRef:L,confirmRef:S,doClose:W,handleClose:K,onCloseRequested:H,handleWrapperClick:T,handleInputEnter:b,handleAction:Y,t:a}}}),lN=["aria-label","aria-describedby"],sN=["aria-label"],aN=["id"];function iN(e,t,n,o,l,s){const a=te("el-icon"),i=te("close"),u=te("el-input"),r=te("el-button"),c=te("el-focus-trap"),d=te("el-overlay");return g(),k(io,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=R=>e.$emit("vanish")),persisted:""},{default:U(()=>[de(N(d,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:U(()=>[m("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:E(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...R)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...R)),onMousedown:t[9]||(t[9]=(...R)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...R)),onMouseup:t[10]||(t[10]=(...R)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...R))},[N(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:U(()=>[m("div",{ref:"rootRef",class:E([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:ee(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=Fe(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(g(),I("div",{key:0,ref:"headerRef",class:E([e.ns.e("header"),{"show-close":e.showClose}])},[m("div",{class:E(e.ns.e("title"))},[e.iconComponent&&e.center?(g(),k(a,{key:0,class:E([e.ns.e("status"),e.typeClass])},{default:U(()=>[(g(),k(Vt(e.iconComponent)))]),_:1},8,["class"])):z("v-if",!0),m("span",null,Me(e.title),1)],2),e.showClose?(g(),I("button",{key:0,type:"button",class:E(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=R=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=Yt(Fe(R=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[N(a,{class:E(e.ns.e("close"))},{default:U(()=>[N(i)]),_:1},8,["class"])],42,sN)):z("v-if",!0)],2)):z("v-if",!0),m("div",{id:e.contentId,class:E(e.ns.e("content"))},[m("div",{class:E(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(g(),k(a,{key:0,class:E([e.ns.e("status"),e.typeClass])},{default:U(()=>[(g(),k(Vt(e.iconComponent)))]),_:1},8,["class"])):z("v-if",!0),e.hasMessage?(g(),I("div",{key:1,class:E(e.ns.e("message"))},[We(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(g(),k(Vt(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(g(),k(Vt(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:U(()=>[ge(Me(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):z("v-if",!0)],2),de(m("div",{class:E(e.ns.e("input"))},[N(u,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=R=>e.inputValue=R),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:E({invalid:e.validateError}),onKeydown:Yt(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),m("div",{class:E(e.ns.e("errormsg")),style:ee({visibility:e.editorErrorMessage?"visible":"hidden"})},Me(e.editorErrorMessage),7)],2),[[yt,e.showInput]])],10,aN),m("div",{class:E(e.ns.e("btns"))},[e.showCancelButton?(g(),k(r,{key:0,loading:e.cancelButtonLoading,class:E([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=R=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=Yt(Fe(R=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:U(()=>[ge(Me(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):z("v-if",!0),de(N(r,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:E([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=R=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=Yt(Fe(R=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:U(()=>[ge(Me(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[yt,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,lN)]),_:3},8,["z-index","overlay-class","mask"]),[[yt,e.visible]])]),_:3})}var rN=tt(oN,[["render",iN],["__file","index.vue"]]);const Pl=new Map,uN=e=>{let t=document.body;return e.appendTo&&(hn(e.appendTo)&&(t=document.querySelector(e.appendTo)),Vo(e.appendTo)&&(t=e.appendTo),Vo(t)||(t=document.body)),t},cN=(e,t,n=null)=>{const o=N(rN,e,kt(e.message)||rc(e.message)?{default:kt(e.message)?e.message:()=>e.message}:null);return o.appContext=n,uc(o,t),uN(e).appendChild(t.firstElementChild),o.component},dN=()=>document.createElement("div"),RN=(e,t)=>{const n=dN();e.onVanish=()=>{uc(null,n),Pl.delete(l)},e.onAction=s=>{const a=Pl.get(l);let i;e.showInput?i={value:l.inputValue,action:s}:i=s,e.callback?e.callback(i,o.proxy):s==="cancel"||s==="close"?e.distinguishCancelAndClose&&s!=="cancel"?a.reject("close"):a.reject("cancel"):a.resolve(i)};const o=cN(e,n,t),l=o.proxy;for(const s in e)Bi(e,s)&&!Bi(l.$props,s)&&(l[s]=e[s]);return l.visible=!0,l};function al(e,t=null){if(!At)return Promise.reject();let n;return hn(e)||rc(e)?e={message:e}:n=e.callback,new Promise((o,l)=>{const s=RN(e,t??al._context);Pl.set(s,{options:e,callback:n,resolve:o,reject:l})})}const fN=["alert","confirm","prompt"],pN={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};fN.forEach(e=>{al[e]=hN(e)});function hN(e){return(t,n,o,l)=>{let s="";return ln(n)?(o=n,s=""):nc(n)?s="":s=n,al(Object.assign({title:s,message:t,type:"",...pN[e]},o,{boxType:e}),l)}}al.close=()=>{Pl.forEach((e,t)=>{t.doClose()}),Pl.clear()};al._context=null;const xn=al;xn.install=e=>{xn._context=e._context,e.config.globalProperties.$msgbox=xn,e.config.globalProperties.$messageBox=xn,e.config.globalProperties.$alert=xn.alert,e.config.globalProperties.$confirm=xn.confirm,e.config.globalProperties.$prompt=xn.prompt};const vN=xn;var Tt=(e=>(e.UP="up",e.DOWN="down",e.TOP="top",e.BOTTOM="bottom",e))(Tt||{}),De=(e=>(e.TOP="top",e.BOTTOM="bottom",e.LEFT="left",e.RIGHT="right",e.VERTICAL="vertical",e.HORIZONTAL="horizontal",e.CENTER="center",e))(De||{}),hl=(e=>(e.T="top",e.B="bottom",e.L="left",e.R="right",e))(hl||{}),be=(e=>(e.LEFT_TOP="left-top",e.TOP="top",e.RIGHT_TOP="right-top",e.LEFT="left",e.RIGHT="right",e.LEFT_BOTTOM="left-bottom",e.BOTTOM="bottom",e.RIGHT_BOTTOM="right-bottom",e))(be||{}),qt=(e=>(e.START="start",e.END="end",e.C="ctrl",e.C1="ctrl1",e.C2="ctrl2",e))(qt||{});const Md="pptist",gd=e=>Ta.AES.encrypt(e,Md).toString(),mN=e=>Ta.AES.decrypt(e,Md).toString(Ta.enc.Utf8),Sd=e=>new Promise((t,n)=>{const o=document.createElement("button"),l=new lh(o,{text:()=>e,action:()=>"copy",container:document.body});l.on("success",s=>{l.destroy(),t(s)}),l.on("error",s=>{l.destroy(),n(s)}),document.body.appendChild(o),o.click(),document.body.removeChild(o)}),Od=()=>new Promise((e,t)=>{var n;(n=navigator.clipboard)!=null&&n.readText?navigator.clipboard.readText().then(o=>(o||t("剪贴板为空或者不包含文本"),e(o))):t("浏览器不支持或禁止访问剪贴板,请使用快捷键 Ctrl + V")}),Si=e=>{let t;try{t=JSON.parse(mN(e))}catch{t=e}return t},Pd=e=>{const t=e.split(`\r
- `);t[t.length-1]===""&&t.pop();let n=-1;const o=[];for(const l in t){if(o[l]=t[l].split(" "),o[l].length===1)return null;if(n===-1)n=o[l].length;else if(n!==o[l].length)return null}return o},MN=e=>new Promise(t=>{const n=document.createElement("img");n.src=e,n.style.opacity="0",document.body.appendChild(n),n.onload=()=>{const o=n.clientWidth,l=n.clientHeight;n.onload=null,n.onerror=null,document.body.removeChild(n),t({width:o,height:l})},n.onerror=()=>{n.onload=null,n.onerror=null}}),Wo=e=>new Promise(t=>{const n=new FileReader;n.addEventListener("load",()=>{t(n.result)}),n.readAsDataURL(e)}),gN=e=>{if(!/<svg[\s\S]*?>[\s\S]*?<\/svg>/i.test(e))return!1;try{return new DOMParser().parseFromString(e,"image/svg+xml").documentElement.nodeName==="svg"}catch{return!1}},SN=e=>{const t=new Blob([e],{type:"image/svg+xml"});return new File([t],`${Date.now()}.svg`,{type:"image/svg+xml"})},Qa={bar:"柱状图",column:"条形图",line:"折线图",area:"面积图",scatter:"散点图",pie:"饼图",ring:"环形图",radar:"雷达图"},ON={bar:{labels:["类别1","类别2","类别3","类别4","类别5"],legends:["系列1","系列2"],series:[[12,19,5,2,18],[7,11,13,21,9]]},column:{labels:["类别1","类别2","类别3","类别4","类别5"],legends:["系列1","系列2"],series:[[12,19,5,2,18],[7,11,13,21,9]]},line:{labels:["类别1","类别2","类别3","类别4","类别5"],legends:["系列1","系列2"],series:[[12,19,5,2,18],[7,11,13,21,9]]},pie:{labels:["类别1","类别2","类别3","类别4","类别5"],legends:["值"],series:[[12,19,5,2,18]]},ring:{labels:["类别1","类别2","类别3","类别4","类别5"],legends:["值"],series:[[12,19,5,2,18]]},area:{labels:["类别1","类别2","类别3","类别4","类别5"],legends:["系列1","系列2"],series:[[12,19,5,2,18],[7,11,13,21,9]]},radar:{labels:["类别1","类别2","类别3","类别4","类别5"],legends:["系列1","系列2"],series:[[12,19,5,2,18],[7,11,13,21,9]]},scatter:{labels:["坐标1","坐标2","坐标3","坐标4","坐标5"],legends:["X","Y"],series:[[12,19,5,2,18],[7,11,13,21,9]]}},PN=[["#d87c7c","#919e8b","#d7ab82","#6e7074","#61a0a8","#efa18d"],["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78"],["#516b91","#59c4e6","#edafda","#93b7e3","#a5e7f0","#cbb0e3"],["#893448","#d95850","#eb8146","#ffb248","#f2d643","#ebdba4"],["#4ea397","#22c3aa","#7bd9a5","#d0648a","#f58db2","#f2b3c9"],["#3fb1e3","#6be6c1","#626c91","#a0a7e6","#c4ebad","#96dee8"],["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb"],["#c1232b","#27727b","#fcce10","#e87c25","#b5c334","#fe8463"],["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3"],["#e01f54","#001852","#f5e8c8","#b8d2c7","#c6b38e","#a4d8c2"],["#c12e34","#e6b600","#0098d9","#2b821d","#005eaa","#339ca8"],["#8a7ca8","#e098c7","#8fd3e8","#71669e","#cc70af","#7cb4cc"]],He=()=>{const e=ei(),t=bl(),n=vt.debounce(function(){t.isSave=!1,e.addSnapshot()},300,{trailing:!0}),o=vt.throttle(function(){t.isSave=!1,e.reDo()},100,{leading:!0,trailing:!1}),l=vt.throttle(function(){t.isSave=!1,e.unDo()},100,{leading:!0,trailing:!1});return{addHistorySnapshot:n,redo:o,undo:l}},il=()=>{const e=Xe(),t=Ue(),{creatingElement:n}=oe(e),{theme:o,viewportRatio:l,viewportSize:s}=oe(t),{addHistorySnapshot:a}=He(),i=(L,S)=>{t.addElement(L),e.setActiveElementIdList([L.id]),n.value&&e.setCreatingElement(null),setTimeout(()=>{e.setEditorareaFocus(!0)},0),S&&S(),a()};return{createImageElement:L=>{MN(L).then(({width:S,height:X})=>{const M=X/S;M<l.value&&S>s.value?(S=s.value,X=S*M):X>s.value*l.value&&(X=s.value*l.value,S=X/M),i({type:"image",id:st(10),src:L,width:S,height:X,left:(s.value-S)/2,top:(s.value*l.value-X)/2,fixedRatio:!0,rotate:0})})},createChartElement:L=>{i({type:"chart",id:st(10),chartType:L,left:300,top:81.25,width:800,height:800,rotate:0,themeColors:[o.value.themeColor],textColor:o.value.fontColor,data:ON[L]})},createTableElement:(L,S)=>{const X={fontname:o.value.fontName,color:o.value.fontColor},M=[];for(let Y=0;Y<L;Y++){const F=[];for(let C=0;C<S;C++)F.push({id:st(10),colspan:1,rowspan:1,text:"",style:X});M.push(F)}const y=200,W=72,T=new Array(S).fill(1/S),V=S*y,b=L*W;i({type:"table",id:st(10),width:V,height:b,colWidths:T,rotate:0,data:M,left:(s.value-V)/2,top:(s.value*l.value-b)/2,outline:{width:2,style:"solid",color:"#eeece1"},theme:{color:o.value.themeColor,rowHeader:!0,rowFooter:!1,colHeader:!1,colFooter:!1},cellMinHeight:72})},createTextElement:(L,S)=>{const{left:X,top:M,width:y,height:W}=L,T=(S==null?void 0:S.content)||"",V=(S==null?void 0:S.vertical)||!1,b=st(10);i({type:"text",id:b,left:X,top:M,width:y,height:W,content:T,rotate:0,defaultFontName:o.value.fontName,defaultColor:o.value.fontColor,vertical:V},()=>{setTimeout(()=>{const Y=document.querySelector(`#editable-element-${b} .ProseMirror`);Y&&Y.focus()},0)})},createShapeElement:(L,S,X={})=>{const{left:M,top:y,width:W,height:T}=L,V={type:"shape",id:st(10),left:M,top:y,width:W,height:T,viewBox:S.viewBox,path:S.path,fill:o.value.themeColor,fixedRatio:!1,rotate:0,...X};if(S.withborder&&(V.outline=o.value.outline),S.special&&(V.special=!0),S.pathFormula){V.pathFormula=S.pathFormula,V.viewBox=[W,T];const b=sl[S.pathFormula];"editable"in b&&b.editable?(V.path=b.formula(W,T,b.defaultValue),V.keypoints=b.defaultValue):V.path=b.formula(W,T)}i(V)},createLineElement:(L,S)=>{const{left:X,top:M,start:y,end:W}=L,T={type:"line",id:st(10),left:X,top:M,start:y,end:W,points:S.points,color:o.value.themeColor,style:S.style,width:4};S.isBroken&&(T.broken=[(y[0]+W[0])/2,(y[1]+W[1])/2]),S.isBroken2&&(T.broken2=[(y[0]+W[0])/2,(y[1]+W[1])/2]),S.isCurve&&(T.curve=[(y[0]+W[0])/2,(y[1]+W[1])/2]),S.isCubic&&(T.cubic=[[(y[0]+W[0])/2,(y[1]+W[1])/2],[(y[0]+W[0])/2,(y[1]+W[1])/2]]),i(T)},createLatexElement:L=>{i({type:"latex",id:st(10),width:L.w,height:L.h,rotate:0,left:(s.value-L.w)/2,top:(s.value*l.value-L.h)/2,path:L.path,latex:L.latex,color:o.value.fontColor,strokeWidth:4,viewBox:[L.w,L.h],fixedRatio:!0})},createVideoElement:L=>{i({type:"elf",subtype:"elf-video",id:st(10),width:1e3,height:600,rotate:0,left:(s.value-1e3)/2,top:(s.value*l.value-600)/2,src:L,autoplay:!1})},createAudioElement:L=>{i({type:"elf",subtype:"elf-audio",id:st(10),width:100,height:100,rotate:0,left:(s.value-100)/2,top:(s.value*l.value-100)/2,loop:!1,autoplay:!1,fixedRatio:!0,color:o.value.themeColor,src:L})},createCloudCoachElement:L=>{i({type:"elf",subtype:"elf-sing-play",id:st(10),width:s.value,height:s.value*l.value,rotate:0,left:0,top:0,sid:L})}}},Nd=()=>{const e=Xe(),t=Ue(),{currentSlide:n}=oe(t),{addHistorySnapshot:o}=He();return{addElementsFromData:a=>{const{groupIdMap:i,elIdMap:u}=Na(a),r=a[0];let c=0,d;do d=n.value.elements.find(R=>{if(R.type!==r.type)return!1;const{minX:p,maxX:f,minY:h,maxY:P}=Fn(R),{minX:O,maxX:L,minY:S,maxY:X}=Fn({...r,left:r.left+c,top:r.top+c});return p===O&&f===L&&h===S&&P===X}),d&&(c+=10);while(d);for(const R of a)R.id=u[R.id],R.left=R.left+c,R.top=R.top+c,R.groupId&&(R.groupId=i[R.groupId]);t.addElement(a),e.setActiveElementIdList(Object.values(u)),o()},addSlidesFromData:a=>{const i=Np(a),u=a.map(r=>{const{groupIdMap:c,elIdMap:d}=Na(r.elements);for(const R of r.elements)R.id=d[R.id],R.groupId&&(R.groupId=c[R.groupId]),R.link&&R.link.type==="slide"&&(i[R.link.target]?R.link.target=i[R.link.target]:delete R.link);if(r.animations)for(const R of r.animations)R.id=st(10),R.elId=d[R.elId];return{...r,id:i[r.id]}});t.addSlide(u),o()}}},NN=e=>/^https:\/\/pptist.cn(\/[\w-./?%&=]*)?\.(jpg|jpeg|png|svg|webp)(\?.*)?$/i.test(e),Oi=()=>{const{shiftKeyState:e}=oe(Mn()),{createTextElement:t,createImageElement:n}=il(),{addElementsFromData:o,addSlidesFromData:l}=Nd(),s=i=>{t({left:0,top:0,width:600,height:50},{content:i})};return{pasteTextClipboardData:(i,u)=>{const r=(u==null?void 0:u.onlySlide)||!1,c=(u==null?void 0:u.onlyElements)||!1,d=Si(i);if(typeof d=="object"){const{type:R,data:p}=d;R==="elements"&&!r?o(p):R==="slides"&&!c&&l(p)}else if(!c&&!r)if(e.value){const R=Xa(d);s(R)}else if(NN(d))n(d);else if(Xp(d))s(`<a href="${d}" title="${d}" target="_blank">${d}</a>`);else if(gN(d)){const R=SN(d);Wo(R).then(p=>n(p))}else{const R=Xa(d);s(R)}}}},Wl=()=>{const e=Xe(),t=Ue(),{selectedSlidesIndex:n,activeElementIdList:o}=oe(e),{currentSlide:l,slides:s,theme:a,slideIndex:i}=oe(t),u=_(()=>[...n.value,i.value]),r=_(()=>s.value.filter((V,b)=>u.value.includes(b))),c=_(()=>r.value.map(V=>V.id)),{pasteTextClipboardData:d}=Oi(),{addSlidesFromData:R}=Nd(),{addHistorySnapshot:p}=He(),f=()=>{const V={id:st(10),elements:[],background:{type:"solid",color:a.value.backgroundColor}};t.updateSlideIndex(0),e.setActiveElementIdList([]),t.setSlides([V])},h=V=>{V===Ye.UP&&i.value>0?(o.value.length&&e.setActiveElementIdList([]),t.updateSlideIndex(i.value-1)):V===Ye.DOWN&&i.value<s.value.length-1&&(o.value.length&&e.setActiveElementIdList([]),t.updateSlideIndex(i.value+1))},P=()=>{const V=gd(JSON.stringify({type:"slides",data:r.value}));Sd(V).then(()=>{e.setThumbnailsFocus(!0)})},O=()=>{Od().then(V=>{d(V,{onlySlide:!0})}).catch(V=>Wt.warning(V))},L=()=>{const V={id:st(10),elements:[],background:{type:"solid",color:a.value.backgroundColor}};e.setActiveElementIdList([]),t.addSlide(V),p()},S=V=>{const{groupIdMap:b,elIdMap:Y}=Na(V.elements);for(const C of V.elements)C.id=Y[C.id],C.groupId&&(C.groupId=b[C.groupId]);const F={...V,id:st(10)};e.setActiveElementIdList([]),t.addSlide(F),p()},X=()=>{const V=JSON.parse(JSON.stringify(l.value));R([V])},M=(V=c.value)=>{s.value.length===V.length?f():t.deleteSlide(V),e.updateSelectedSlidesIndex([]),p()};return{resetSlides:f,updateSlideIndex:h,copySlide:P,pasteSlide:O,createSlide:L,createSlideByTemplate:S,copyAndPasteSlide:X,deleteSlide:M,cutSlide:()=>{const V=[...c.value];P(),M(V)},selectAllSlide:()=>{const V=Array.from(Array(s.value.length),(b,Y)=>Y);e.setActiveElementIdList([]),e.updateSelectedSlidesIndex(V)},sortSlides:(V,b)=>{if(b===V)return;const Y=JSON.parse(JSON.stringify(s.value)),F=Y[b],C=F.sectionTag;if(C){const H=Y[b+1];delete F.sectionTag,H&&!H.sectionTag&&(H.sectionTag=C)}if(V===0){const H=Y[0].sectionTag;H&&(delete Y[0].sectionTag,F.sectionTag=H)}const K=Y[b];Y.splice(b,1),Y.splice(V,0,K),t.setSlides(Y),t.updateSlideIndex(V)}}},Xd=()=>{const e=Xe(),t=Ue(),{activeElementIdList:n}=oe(e),{currentSlide:o}=oe(t),{addHistorySnapshot:l}=He();return{lockElement:()=>{const i=JSON.parse(JSON.stringify(o.value.elements));for(const u of i)n.value.includes(u.id)&&(u.lock=!0);t.updateSlide({elements:i}),e.setActiveElementIdList([]),l()},unlockElement:i=>{const u=JSON.parse(JSON.stringify(o.value.elements));if(i.groupId){const r=[];for(const c of u)c.groupId===i.groupId&&(c.lock=!1,r.push(c.id));t.updateSlide({elements:u}),e.setActiveElementIdList(r)}else{for(const r of u)if(r.id===i.id){r.lock=!1;break}t.updateSlide({elements:u}),e.setActiveElementIdList([i.id])}l()}}},Zs=()=>{const e=Xe(),t=Ue(),{activeElementIdList:n,activeGroupElementId:o}=oe(e),{currentSlide:l}=oe(t),{addHistorySnapshot:s}=He();return{deleteElement:()=>{if(!n.value.length)return;let u=[];o.value?u=l.value.elements.filter(r=>r.id!==o.value):u=l.value.elements.filter(r=>!n.value.includes(r.id)),e.setActiveElementIdList([]),t.updateSlide({elements:u}),s()},deleteAllElements:()=>{l.value.elements.length&&(e.setActiveElementIdList([]),t.updateSlide({elements:[]}),s())}}},Pi=()=>{const e=Xe(),t=Ue(),{activeElementIdList:n,activeElementList:o,handleElementId:l}=oe(e),{currentSlide:s}=oe(t),{addHistorySnapshot:a}=He();return{canCombine:_(()=>{if(o.value.length<2)return!1;const c=o.value[0].groupId;return c?!o.value.every(R=>(R.groupId&&R.groupId)===c):!0}),combineElements:()=>{if(!o.value.length)return;let c=JSON.parse(JSON.stringify(s.value.elements));const d=st(10),R=[];for(const P of c)n.value.includes(P.id)&&(P.groupId=d,R.push(P));const p=c.findIndex(P=>P.id===R[R.length-1].id),f=R.map(P=>P.id);c=c.filter(P=>!f.includes(P.id));const h=p-R.length+1;c.splice(h,0,...R),t.updateSlide({elements:c}),a()},uncombineElements:()=>{if(!o.value.length||!o.value.some(p=>p.groupId))return;const d=JSON.parse(JSON.stringify(s.value.elements));for(const p of d)n.value.includes(p.id)&&p.groupId&&delete p.groupId;t.updateSlide({elements:d});const R=l.value?[l.value]:[];e.setActiveElementIdList(R),a()}}},Ni=()=>{const e=Xe(),{activeElementIdList:t,activeElementList:n}=oe(e),{pasteTextClipboardData:o}=Oi(),{deleteElement:l}=Zs(),s=()=>{if(!t.value.length)return;const r=gd(JSON.stringify({type:"elements",data:n.value}));Sd(r).then(()=>{e.setEditorareaFocus(!0)})},a=()=>{s(),l()},i=()=>{Od().then(r=>{o(r)}).catch(r=>Wt.warning(r))};return{copyElement:s,cutElement:a,pasteElement:i,quickCopyElement:()=>{s(),i()}}},As=()=>{const e=Xe(),{currentSlide:t}=oe(Ue()),{hiddenElementIdList:n,handleElementId:o}=oe(e);return{selectAllElements:()=>{const i=t.value.elements.filter(u=>!u.lock&&!n.value.includes(u.id)).map(u=>u.id);e.setActiveElementIdList(i)},selectElement:a=>{o.value===a||n.value.includes(a)||t.value.elements.filter(u=>u.lock).some(u=>u.id===a)||e.setActiveElementIdList([a])}}},XN=()=>{const e=Ue(),{activeElementIdList:t,activeGroupElementId:n}=oe(Xe()),{currentSlide:o}=oe(e),{addHistorySnapshot:l}=He();return{moveElement:(a,i=1)=>{let u=[];const r=c=>{let{left:d,top:R}=c;switch(a){case Ye.LEFT:d=d-i;break;case Ye.RIGHT:d=d+i;break;case Ye.UP:R=R-i;break;case Ye.DOWN:R=R+i;break}return{...c,left:d,top:R}};n.value?u=o.value.elements.map(c=>n.value===c.id?r(c):c):u=o.value.elements.map(c=>t.value.includes(c.id)?r(c):c),e.updateSlide({elements:u}),l()}}},Ks=()=>{const e=Ue(),{currentSlide:t}=oe(e),{addHistorySnapshot:n}=He(),o=(r,c)=>({minLevel:r.findIndex(d=>d.id===c[0].id),maxLevel:r.findIndex(d=>d.id===c[c.length-1].id)}),l=(r,c)=>{const d=JSON.parse(JSON.stringify(r));if(c.groupId){const R=d.filter(O=>O.groupId===c.groupId),{minLevel:p,maxLevel:f}=o(r,R);if(f===r.length-1)return;const h=d[f+1],P=d.splice(p,R.length);if(h.groupId){const O=d.filter(L=>L.groupId===h.groupId);d.splice(p+O.length,0,...P)}else d.splice(p+1,0,...P)}else{const R=r.findIndex(h=>h.id===c.id);if(R===r.length-1)return;const p=d[R+1],f=d.splice(R,1)[0];if(p.groupId){const h=d.filter(P=>P.groupId===p.groupId);d.splice(R+h.length,0,f)}else d.splice(R+1,0,f)}return d},s=(r,c)=>{const d=JSON.parse(JSON.stringify(r));if(c.groupId){const R=d.filter(P=>P.groupId===c.groupId),{minLevel:p}=o(r,R);if(p===0)return;const f=d[p-1],h=d.splice(p,R.length);if(f.groupId){const P=d.filter(O=>O.groupId===f.groupId);d.splice(p-P.length,0,...h)}else d.splice(p-1,0,...h)}else{const R=r.findIndex(h=>h.id===c.id);if(R===0)return;const p=d[R-1],f=d.splice(R,1)[0];if(p.groupId){const h=d.filter(P=>P.groupId===p.groupId);d.splice(R-h.length,0,f)}else d.splice(R-1,0,f)}return d},a=(r,c)=>{const d=JSON.parse(JSON.stringify(r));if(c.groupId){const R=d.filter(P=>P.groupId===c.groupId),{minLevel:p,maxLevel:f}=o(r,R);if(f===r.length-1)return null;const h=d.splice(p,R.length);d.push(...h)}else{const R=r.findIndex(p=>p.id===c.id);if(R===r.length-1)return null;d.splice(R,1),d.push(c)}return d},i=(r,c)=>{const d=JSON.parse(JSON.stringify(r));if(c.groupId){const R=d.filter(h=>h.groupId===c.groupId),{minLevel:p}=o(r,R);if(p===0)return;const f=d.splice(p,R.length);d.unshift(...f)}else{const R=r.findIndex(p=>p.id===c.id);if(R===0)return;d.splice(R,1),d.unshift(c)}return d};return{orderElement:(r,c)=>{let d;c===Tt.UP?d=l(t.value.elements,r):c===Tt.DOWN?d=s(t.value.elements,r):c===Tt.TOP?d=a(t.value.elements,r):c===Tt.BOTTOM&&(d=i(t.value.elements,r)),d&&(e.updateSlide({elements:d}),n())}}},Xi=()=>{const e=Xe(),{canvasPercentage:t,canvasScale:n,canvasDragged:o}=oe(e);return{canvasScalePercentage:_(()=>Math.round(n.value*100)+"%"),setCanvasScalePercentage:u=>{const r=Math.round(u/n.value*t.value)/100;e.setCanvasPercentage(r)},scaleCanvas:u=>{let r=t.value;const c=5,d=200,R=30;u==="+"&&r<=d&&(r+=c),u==="-"&&r>=R&&(r-=c),e.setCanvasPercentage(r)},resetCanvas:()=>{e.setCanvasPercentage(90),o&&e.setCanvasDragged(!1)}}},TN=()=>{const e=Xe(),t=Mn(),{activeElementIdList:n,disableHotkeys:o,handleElement:l,handleElementId:s,editorAreaFocus:a,thumbnailsFocus:i,showSearchPanel:u}=oe(e),{currentSlide:r}=oe(Ue()),{ctrlKeyState:c,shiftKeyState:d,spaceKeyState:R}=oe(t),{updateSlideIndex:p,copySlide:f,createSlide:h,deleteSlide:P,cutSlide:O,copyAndPasteSlide:L,selectAllSlide:S}=Wl(),{combineElements:X,uncombineElements:M}=Pi(),{deleteElement:y}=Zs(),{lockElement:W}=Xd(),{copyElement:T,cutElement:V,quickCopyElement:b}=Ni(),{selectAllElements:Y}=As(),{moveElement:F}=XN(),{orderElement:C}=Ks(),{redo:K,undo:H}=He(),{enterScreening:Q,enterScreeningFromStart:G}=bs(),{scaleCanvas:$,resetCanvas:se}=Xi(),Re=()=>{n.value.length?T():i.value&&f()},ae=()=>{n.value.length?V():i.value&&O()},Pe=()=>{n.value.length?b():i.value&&L()},x=()=>{a.value&&Y(),i.value&&S()},B=()=>{a.value&&W()},Ie=()=>{a.value&&X()},ce=()=>{a.value&&M()},q=()=>{n.value.length?y():i.value&&P()},ne=ue=>{n.value.length?F(ue):(ue===Ye.UP||ue===Ye.DOWN)&&p(ue)},Se=ue=>{ue===Ye.PAGEUP?p(Ye.UP):ue===Ye.PAGEDOWN&&p(Ye.DOWN)},w=ue=>{l.value&&C(l.value,ue)},D=()=>{i.value&&h()},Z=()=>{if(!r.value.elements.length)return;if(!s.value){const Qe=r.value.elements[0];e.setActiveElementIdList([Qe.id]);return}const ue=r.value.elements.findIndex(Qe=>Qe.id===s.value),Te=ue>=r.value.elements.length-1?0:ue+1,Ae=r.value.elements[Te].id;e.setActiveElementIdList([Ae])},J=ue=>{const{ctrlKey:Te,shiftKey:Ae,altKey:Qe,metaKey:Ne}=ue,he=Te||Ne,Le=ue.key.toUpperCase();if(he&&!c.value&&t.setCtrlKeyState(!0),Ae&&!d.value&&t.setShiftKeyState(!0),!o.value&&Le===Ye.SPACE&&t.setSpaceKeyState(!0),Ae&&Le===Ye.F5){ue.preventDefault(),Q(),t.setShiftKeyState(!1);return}if(Le===Ye.F5){ue.preventDefault(),G();return}if(Te&&Le===Ye.F){ue.preventDefault(),e.setSearchPanelState(!u.value);return}if(!(!a.value&&!i.value)){if(he&&Le===Ye.C){if(o.value)return;ue.preventDefault(),Re()}if(he&&Le===Ye.X){if(o.value)return;ue.preventDefault(),ae()}if(he&&Le===Ye.D){if(o.value)return;ue.preventDefault(),Pe()}if(he&&Le===Ye.Z){if(o.value)return;ue.preventDefault(),H()}if(he&&Le===Ye.Y){if(o.value)return;ue.preventDefault(),K()}if(he&&Le===Ye.A){if(o.value)return;ue.preventDefault(),x()}if(he&&Le===Ye.L){if(o.value)return;ue.preventDefault(),B()}if(!Ae&&he&&Le===Ye.G){if(o.value)return;ue.preventDefault(),Ie()}if(Ae&&he&&Le===Ye.G){if(o.value)return;ue.preventDefault(),ce()}if(Qe&&Le===Ye.F){if(o.value)return;ue.preventDefault(),w(Tt.TOP)}if(Qe&&Le===Ye.B){if(o.value)return;ue.preventDefault(),w(Tt.BOTTOM)}if(Le===Ye.DELETE||Le===Ye.BACKSPACE){if(o.value)return;ue.preventDefault(),q()}if(Le===Ye.UP){if(o.value)return;ue.preventDefault(),ne(Ye.UP)}if(Le===Ye.DOWN){if(o.value)return;ue.preventDefault(),ne(Ye.DOWN)}if(Le===Ye.LEFT){if(o.value)return;ue.preventDefault(),ne(Ye.LEFT)}if(Le===Ye.RIGHT){if(o.value)return;ue.preventDefault(),ne(Ye.RIGHT)}if(Le===Ye.PAGEUP){if(o.value)return;ue.preventDefault(),Se(Ye.PAGEUP)}if(Le===Ye.PAGEDOWN){if(o.value)return;ue.preventDefault(),Se(Ye.PAGEDOWN)}if(Le===Ye.ENTER){if(o.value)return;ue.preventDefault(),D()}if(Le===Ye.MINUS){if(o.value)return;ue.preventDefault(),$("-")}if(Le===Ye.EQUAL){if(o.value)return;ue.preventDefault(),$("+")}if(Le===Ye.DIGIT_0){if(o.value)return;ue.preventDefault(),se()}if(Le===Ye.TAB){if(o.value)return;ue.preventDefault(),Z()}a.value&&!Ae&&!he&&!o.value&&(Le===Ye.T?e.setCreatingElement({type:"text"}):Le===Ye.R?e.setCreatingElement({type:"shape",data:{viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z"}}):Le===Ye.O?e.setCreatingElement({type:"shape",data:{viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z"}}):Le===Ye.L&&e.setCreatingElement({type:"line",data:{path:"M 0 0 L 20 20",style:"solid",points:["",""]}}))}},re=()=>{c.value&&t.setCtrlKeyState(!1),d.value&&t.setShiftKeyState(!1),R.value&&t.setSpaceKeyState(!1)};Ee(()=>{document.addEventListener("keydown",J),document.addEventListener("keyup",re),window.addEventListener("blur",re)}),mt(()=>{document.removeEventListener("keydown",J),document.removeEventListener("keyup",re),window.removeEventListener("blur",re)})},VN=()=>{const{editorAreaFocus:e,thumbnailsFocus:t,disableHotkeys:n}=oe(Xe()),{pasteTextClipboardData:o}=Oi(),{createImageElement:l}=il(),s=i=>{Wo(i).then(u=>l(u))},a=i=>{if(!e.value&&!t.value||n.value||!i.clipboardData)return;const u=i.clipboardData.items,r=u[0];if(r){for(const c of u)if(c.kind==="file"&&c.type.indexOf("image")!==-1){const d=c.getAsFile();d&&s(d);return}r.kind==="string"&&r.type==="text/plain"&&r.getAsString(c=>o(c))}};Ee(()=>{document.addEventListener("paste",a)}),mt(()=>{document.removeEventListener("paste",a)})},yN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAnFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD4jUzeAAAAM3RSTlMA/eZMgL8N4+sUBmY6+s/LmY5rPxn18ca6lDPe1qmeg3JvYVtEK7CkfjYwJB4L2oqHVEtTlax6AAABcklEQVRIx92U2WKCQAxFAavAIKAiat3qvlW75f//rYnYMUwlo6+eJ2fIwXDD4DwPWSv1vYLxNrOWhwMo0bbVf4DBmywU9w+8ghh/uzWpfkUV7a7+vzque++CMDW6Dn3cGA8bF9Q/IcHrId8YxsAJJkZsPu6VdxZgMDnxyx6A55SJcsOoK0EgjrtN/UIS66C5INCgVPKGIYhQ0MtHhCX19IiwR6F1S1DNaPdygxYKaXQwBdXxQCRdlwS1ARv5mgsTsJMyoQlIP6pVMu9hwfoqDM5JSMywYqGFrgsQnEShg0KkBVq92g9mUwt9XGXyyace1J/Qda3jjvRDkjCnjuxv4EoL/XN/AkUq10njyhfrWSok0Eza9o4yLdAp3Iv1LBUUiJEjolPRwqcs6FS0MBTrjzwV/46OZjyVhIQvWUj5nKYkLMX6H+BzWgEthe+7WtCcZnwmhFtJfL6jugphAFaCUorhCCwkB/PVGuduJcn223kqfgEhmmiReOQYtgAAAABJRU5ErkJggg==";function LN(e,t){var n=0,o={};e.addEventListener("message",function(l){var s=l.data;if(s.type==="RPC")if(s.id){var a=o[s.id];a&&(delete o[s.id],s.error?a[1](Object.assign(Error(s.error.message),s.error)):a[0](s.result))}else{var i=document.createEvent("Event");i.initEvent(s.method,!1,!1),i.data=s.params,e.dispatchEvent(i)}}),t.forEach(function(l){e[l]=function(){var s=arguments;return new Promise(function(a,i){var u=++n;o[u]=[a,i],e.postMessage({type:"RPC",id:u,method:l,params:[].slice.call(s)})})}})}var bN=LN;const IN=$f(bN),YN=["createTaskController","destoryTaskController","addCourseWareTask","getRunJobIds","initOssResource","destroyOssResource"];function WN(e){const t=new Blob(e),n=new Worker(URL.createObjectURL(t),{name:"worker/mine1-coursewares.[contenthash:8].worker.js"});return URL.revokeObjectURL(URL.createObjectURL(t)),IN(n,YN),n.ready=new Promise(function(o){n.addEventListener("ready",function(){o(n)})}),n}let Nn=null,Td=e=>{};const UN=()=>new Promise(async(e,t)=>{if(!Nn){const n=bl(),o=await qs.get("./pptworker/cos-js-sdk-v5.min.js"),l=await qs.get("./pptworker/upload.js"),s=await qs.get("./pptworker/pptJson.js");Nn=new WN([o.data,`\r
- const filePath = "${n.id}/"\r
- `,l.data,s.data]),Nn.ready.then(()=>Nn.createTaskController()).then(()=>{Nn.onmessage=QN}).then(()=>{Nn.initOssResource(Df,Bf())}).then(e(Nn)).catch(t);return}e(Nn)}),Vd=(e,t)=>new Promise((n,o)=>{Nn?(Td=t,Nn.addCourseWareTask(e).then(l=>{e=null,n(l)}).catch(o)):o("worker没有初始化")}),QN=e=>{const{type:t,result:n={}}=e.data;t==="progress"&&Td(n)},FN=()=>{const{addHistorySnapshot:e}=He(),t=A(!1),n=A(0);return Ee(()=>{UN()}),{importPPTXFile:l=>{var i;const s=l[0];if(!s)return;t.value=!0,n.value=0;const a=`.${(i=s.name.split("."))==null?void 0:i.reverse()[0]}`;Vd({type:"uploadCourseware",extra:{outputName:s.name.trim(),name:s.name.replace(a,"").trim(),type:s.type,suffix:a,path:s.webkitRelativePath,paths:s.webkitRelativePath.split("/"),files:s}},u=>{console.log(u,"导入"),n.value=parseInt(u.progress),u.progress===100&&(u.status==="done"?Tp(u.extra.url).then(r=>{r.code===200?(Vp(r.data),e(),t.value=!1):(t.value=!1,ql({showClose:!0,message:"导入失败!",type:"error"}))}):u.status!=="doing"&&(t.value=!1,ql({showClose:!0,message:"导入失败!",type:"error"})))}).catch(u=>{t.value=!1,ql({showClose:!0,message:"导入失败!",type:"error"}),console.log(u)})},importing:t,importProgress:n}},ZN=()=>{const e=A(!1),t=A(0);return{exportPPTX:()=>{const{blob:o,title:l}=yp(),s=URL.createObjectURL(o);t.value=0,e.value=!0,Vd({type:"downloadCourseware",extra:{id:"",type:"pptx",outputName:`${l}.pptx`,name:l,jsonUrl:s}},a=>{if(console.log(a,"导出"),a.status==="doing"&&parseInt(a.progress)===100||(t.value=parseInt(a.progress)),a.progress===100)if(a.status==="done"){e.value=!1;const{extra:i={}}=a,{name:u,buffer:r}=i;zf(new Blob([r]),u)}else a.status!=="doing"&&(e.value=!1)}).catch(a=>{e.value=!1,console.log(a)})},exporting:e,exportProgress:t}},AN={class:"hotkey-doc"},KN={class:"title"},_N={class:"label"},HN={class:"value"},CN=j({__name:"HotkeyDoc",setup(e){return(t,n)=>(g(),I("div",AN,[(g(!0),I(ie,null,me(v(Lp),o=>(g(),I(ie,{key:o.type},[m("div",KN,Me(o.type),1),(g(!0),I(ie,null,me(o.children,l=>(g(),I("div",{class:"hotkey-item",key:l.label},[m("div",_N,Me(l.label),1),m("div",HN,Me(l.value),1)]))),128))],64))),128))]))}}),GN=fe(CN,[["__scopeId","data-v-2498929a"]]),EN=["accept"],wN=j({__name:"FileInput",props:{accept:{default:"image/*"}},emits:["change"],setup(e,{emit:t}){const n=t,o=A(),l=()=>{o.value&&(o.value.value="",o.value.click())},s=a=>{const i=a.target.files;i&&n("change",i)};return(a,i)=>(g(),I("div",{class:"file-input",onClick:i[1]||(i[1]=u=>l())},[We(a.$slots,"default",{},void 0,!0),m("input",{class:"input",type:"file",name:"upload",ref_key:"inputRef",ref:o,accept:a.accept,onChange:i[0]||(i[0]=u=>s(u))},null,40,EN)]))}}),Ul=fe(wN,[["__scopeId","data-v-058d398f"]]),kN={key:0,class:"fullscreen-spin"},JN={class:"spin"},xN={class:"text"},$N=j({__name:"FullscreenSpin",props:{loading:{type:Boolean,default:!1},tip:{default:""},progress:{default:0}},setup(e){return(t,n)=>t.loading?(g(),I("div",kN,[m("div",JN,[N(v(fd),{class:"progress",percentage:t.progress,"show-text":!1},null,8,["percentage"]),m("div",xN,Me(`${t.tip} ${t.progress}%`),1)])])):z("",!0)}}),DN=fe($N,[["__scopeId","data-v-4e064927"]]),BN={class:"header"},zN=j({__name:"Drawer",props:{visible:{type:Boolean},width:{default:320},contentStyle:{},placement:{default:"right"}},emits:["update:visible"],setup(e,{emit:t}){const n=e,o=t,l=A(!1),s=_(()=>({width:n.width+"px",...n.contentStyle||{}}));return(a,i)=>{const u=te("IconClose");return g(),k(qa,{to:"body"},[N(io,{name:`drawer-slide-${a.placement}`,onAfterLeave:i[1]||(i[1]=r=>l.value=!1),onBeforeEnter:i[2]||(i[2]=r=>l.value=!0)},{default:U(()=>[de(m("div",{class:E(["drawer",a.placement]),style:ee({width:n.width+"px"})},[m("div",BN,[We(a.$slots,"title",{},void 0,!0),m("span",{class:"close-btn",onClick:i[0]||(i[0]=r=>o("update:visible",!1))},[N(u)])]),l.value?(g(),I("div",{key:0,class:"content",style:ee(s.value)},[We(a.$slots,"default",{},void 0,!0)],4)):z("",!0)],6),[[yt,a.visible]])]),_:3},8,["name"])])}}}),jN=fe(zN,[["__scopeId","data-v-fa9c5fff"]]),qN=j({__name:"PopoverMenuItem",props:{center:{type:Boolean,default:!1},active:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=t;return(o,l)=>(g(),I("div",{class:E(["popover-menu-item",[o.center&&"center",o.active&&"active"]]),onClick:l[0]||(l[0]=s=>n("click"))},[We(o.$slots,"default",{},void 0,!0)],2))}}),bt=fe(qN,[["__scopeId","data-v-6d578d0b"]]),yd=e=>(Je("data-v-d7d1cf12"),e=e(),xe(),e),eX={class:"editor-header"},tX={class:"left"},nX=yd(()=>m("img",{class:"icon",src:yN},null,-1)),oX=[nX],lX=yd(()=>m("div",{class:"line"},null,-1)),sX={class:"title"},aX={class:"title-text"},iX=j({__name:"index",setup(e){const t=Ue(),{title:n}=oe(t),{resetSlides:o}=Wl(),l=A(!1),s=A(!1),a=A("import"),{importPPTXFile:i,importing:u,importProgress:r}=FN(),{exportPPTX:c,exporting:d,exportProgress:R}=ZN();function p(){l.value=!1,vN.confirm("导出pptx可能会丢失一些内容,确认导出?","提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{a.value="export",c()}).catch(()=>{})}const f=_(()=>a.value==="export"?{loading:d.value,progress:R.value,tip:"正在导出中,请稍等…"}:{loading:u.value,progress:r.value,tip:"正在导入中,请稍等…"}),h=bl();function P(){h.updatePPT()}function O(){window.close()}return(L,S)=>(g(),I("div",eX,[m("div",tX,[N(Ke,{trigger:"click",placement:"bottom-start",value:l.value,"onUpdate:value":S[3]||(S[3]=X=>l.value=X)},{content:U(()=>[N(Ul,{accept:"application/vnd.openxmlformats-officedocument.presentationml.presentation",onChange:S[0]||(S[0]=X=>{a.value="import",v(i)(X),l.value=!1})},{default:U(()=>[N(bt,null,{default:U(()=>[ge("导入pptx")]),_:1})]),_:1}),N(bt,{onClick:p},{default:U(()=>[ge("导出pptx")]),_:1}),N(bt,{onClick:S[1]||(S[1]=()=>{v(o)(),l.value=!1})},{default:U(()=>[ge("重置幻灯片")]),_:1}),N(bt,{onClick:S[2]||(S[2]=()=>{l.value=!1,s.value=!0})},{default:U(()=>[ge("快捷操作")]),_:1})]),default:U(()=>[m("div",{class:E(["menuCon",{menuVisible:l.value}])},oX,2)]),_:1},8,["value"]),lX,m("div",sX,[m("div",aX,Me(v(n)),1)])]),m("div",{class:"right"},[m("div",{class:"cancelBtn",onClick:O},"取消"),m("div",{class:"saveBtn",onClick:P},"保存课件")]),N(jN,{width:320,visible:s.value,"onUpdate:visible":S[4]||(S[4]=X=>s.value=X),placement:"right"},{title:U(()=>[ge("快捷操作")]),default:U(()=>[N(GN)]),_:1},8,["visible"]),N(DN,{loading:f.value.loading,progress:f.value.progress,tip:f.value.tip},null,8,["loading","progress","tip"])]))}}),rX=fe(iX,[["__scopeId","data-v-d7d1cf12"]]),uX=()=>{const e=window.getSelection();e&&e.removeAllRanges()},cX=e=>{const t=A(0),n=A(0),o=Xe(),{canvasPercentage:l,canvasDragged:s}=oe(o),{viewportRatio:a,viewportSize:i}=oe(Ue()),u=()=>{if(!e.value)return;const p=e.value.clientWidth,f=e.value.clientHeight;if(f/p>a.value){const h=p*(l.value/100);o.setCanvasScale(h/i.value),t.value=(p-h)/2,n.value=(f-h*a.value)/2}else{const h=f*(l.value/100);o.setCanvasScale(h/(i.value*a.value)),t.value=(p-h/a.value)/2,n.value=(f-h)/2}};Oe(l,(p,f)=>{if(!e.value)return;const h=e.value.clientWidth,P=e.value.clientHeight;if(P/h>a.value){const O=h*(p/100),L=h*(f/100),S=O*a.value,X=L*a.value;o.setCanvasScale(O/i.value),t.value=t.value-(O-L)/2,n.value=n.value-(S-X)/2}else{const O=P*(p/100),L=P*(f/100),S=O/a.value,X=L/a.value;o.setCanvasScale(O/(i.value*a.value)),t.value=t.value-(S-X)/2,n.value=n.value-(O-L)/2}}),Oe(a,u),Oe(i,u),Oe(s,()=>{s.value||u()});const c=_(()=>({width:i.value,height:i.value*a.value,left:t.value,top:n.value})),d=new ResizeObserver(u);return Ee(()=>{e.value&&d.observe(e.value)}),mt(()=>{e.value&&d.unobserve(e.value)}),{viewportStyles:c,dragViewport:p=>{let f=!0;const h=p.pageX,P=p.pageY,O=t.value,L=n.value;document.onmousemove=S=>{if(!f)return;const X=S.pageX,M=S.pageY;t.value=O+(X-h),n.value=L+(M-P)},document.onmouseup=()=>{f=!1,document.onmousemove=null,document.onmouseup=null,o.setCanvasDragged(!0)}}}},dX=(e,t)=>{const n=Xe(),{canvasScale:o,hiddenElementIdList:l}=oe(n),s=A(!1),a=A(1),i=A({top:0,left:0,width:0,height:0});return{mouseSelection:i,mouseSelectionVisible:s,mouseSelectionQuadrant:a,updateMouseSelection:r=>{if(!t.value)return;let c=!0;const d=t.value.getBoundingClientRect(),R=5,p=r.pageX,f=r.pageY,h=(p-d.x)/o.value,P=(f-d.y)/o.value;i.value={top:P,left:h,width:0,height:0},s.value=!1,a.value=4,document.onmousemove=O=>{if(!c)return;const L=O.pageX,S=O.pageY,X=(L-p)/o.value,M=(S-f)/o.value,y=Math.abs(X),W=Math.abs(M);if(y<R||W<R)return;let T=0;X>0&&M>0?T=4:X<0&&M<0?T=2:X>0&&M<0?T=1:X<0&&M>0&&(T=3),i.value={...i.value,width:y,height:W},s.value=!0,a.value=T},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,c=!1;let O=[];for(let S=0;S<e.value.length;S++){const X=e.value[S],M=i.value.left,y=i.value.top,W=i.value.width,T=i.value.height,{minX:V,maxX:b,minY:Y,maxY:F}=Fn(X);let C=!1;a.value===4?C=V>M&&b<M+W&&Y>y&&F<y+T:a.value===2?C=V>M-W&&b<M-W+W&&Y>y-T&&F<y-T+T:a.value===1?C=V>M&&b<M+W&&Y>y-T&&F<y-T+T:a.value===3&&(C=V>M-W&&b<M-W+W&&Y>y&&F<y+T),C&&!X.lock&&!l.value.includes(X.id)&&O.push(X)}O=O.filter(S=>{if(S.groupId){const X=O.map(y=>y.id);return e.value.filter(y=>y.groupId===S.groupId).every(y=>X.includes(y.id))}return!0});const L=O.map(S=>S.id);n.setActiveElementIdList(L),s.value=!1}}}},RX=e=>{const{disableHotkeys:t}=oe(Xe()),{createImageElement:n,createTextElement:o}=il(),l=s=>{if(!s.dataTransfer||s.dataTransfer.items.length===0)return;const a=s.dataTransfer.items[0];if(a.kind==="file"&&a.type.indexOf("image")!==-1){const i=a.getAsFile();i&&Wo(i).then(u=>n(u))}else a.kind==="string"&&a.type==="text/plain"&&a.getAsString(i=>{if(t.value)return;const u=Xa(i);o({left:0,top:0,width:600,height:50},{content:u})})};Ee(()=>{e.value&&e.value.addEventListener("drop",l),document.ondragleave=s=>s.preventDefault(),document.ondrop=s=>s.preventDefault(),document.ondragenter=s=>s.preventDefault(),document.ondragover=s=>s.preventDefault()}),mt(()=>{e.value&&e.value.removeEventListener("drop",l),document.ondragleave=null,document.ondrop=null,document.ondragenter=null,document.ondragover=null})},fX=(e,t)=>{const n=Math.atan2(e,t);return 180/Math.PI*n},pX=(e,t,n)=>{const o=Ue(),{addHistorySnapshot:l}=He();return{rotateElement:(a,i)=>{const u=!(a instanceof MouseEvent);if(u&&(!a.changedTouches||!a.changedTouches[0]))return;let r=!0,c=0;const d=i.rotate||0,R=i.left,p=i.top,f=i.width,h=i.height,P=R+f/2,O=p+h/2;if(!t.value)return;const L=t.value.getBoundingClientRect(),S=M=>{if(!r)return;const y=M instanceof MouseEvent?M.pageX:M.changedTouches[0].pageX,W=M instanceof MouseEvent?M.pageY:M.changedTouches[0].pageY,T=(y-L.left)/n.value,V=(W-L.top)/n.value,b=T-P,Y=O-V;c=fX(b,Y);const F=5;Math.abs(c)<=F?c=0:c>0&&Math.abs(c-45)<=F?c-=c-45:c<0&&Math.abs(c+45)<=F?c-=c+45:c>0&&Math.abs(c-90)<=F?c-=c-90:c<0&&Math.abs(c+90)<=F?c-=c+90:c>0&&Math.abs(c-135)<=F?c-=c-135:c<0&&Math.abs(c+135)<=F?c-=c+135:c>0&&Math.abs(c-180)<=F?c-=c-180:c<0&&Math.abs(c+180)<=F&&(c-=c+180),e.value=e.value.map(C=>i.id===C.id?{...C,rotate:c}:C)},X=()=>{r=!1,document.onmousemove=null,document.onmouseup=null,d!==c&&(o.updateSlide({elements:e.value}),l())};u?(document.ontouchmove=S,document.ontouchend=X):(document.onmousemove=S,document.onmouseup=X)}}},vl={text:"文本",image:"图片",shape:"形状",line:"线条",chart:"图表",table:"表格",video:"视频",audio:"音频",latex:"公式"},Ld={text:20,image:20,shape:20,chart:200,table:20,video:250,audio:20,latex:20},nu=(e,t)=>{const{left:n,top:o,width:l,height:s}=e,a=Math.sqrt(Math.pow(l,2)+Math.pow(s,2))/2,i=Math.atan(s/l)*180/Math.PI,u=(180-t-i)*Math.PI/180,r=(i-t)*Math.PI/180,c=(90-t)*Math.PI/180,d=t*Math.PI/180,R=l/2,p=s/2,f=n+R,h=o+p,P={left:f+a*Math.cos(u),top:h-a*Math.sin(u)},O={left:f+p*Math.cos(c),top:h-p*Math.sin(c)},L={left:f+a*Math.cos(r),top:h-a*Math.sin(r)},S={left:f+R*Math.cos(d),top:h+R*Math.sin(d)},X={left:f-a*Math.cos(u),top:h+a*Math.sin(u)},M={left:f-p*Math.sin(d),top:h+p*Math.cos(d)},y={left:f-a*Math.cos(r),top:h+a*Math.sin(r)},W={left:f-R*Math.cos(d),top:h-R*Math.sin(d)};return{leftTopPoint:P,topPoint:O,rightTopPoint:L,rightPoint:S,rightBottomPoint:X,bottomPoint:M,leftBottomPoint:y,leftPoint:W}},ou=(e,t)=>({[be.RIGHT_BOTTOM]:t.leftTopPoint,[be.LEFT_BOTTOM]:t.rightTopPoint,[be.LEFT_TOP]:t.rightBottomPoint,[be.RIGHT_TOP]:t.leftBottomPoint,[be.TOP]:t.bottomPoint,[be.BOTTOM]:t.topPoint,[be.LEFT]:t.rightPoint,[be.RIGHT]:t.leftPoint})[e],hX=(e,t,n)=>{const o=Xe(),l=Ue(),{activeElementIdList:s,activeGroupElementId:a}=oe(o),{viewportRatio:i,viewportSize:u}=oe(l),{ctrlOrShiftKeyActive:r}=oe(Mn()),{addHistorySnapshot:c}=He();return{scaleElement:(p,f,h)=>{const P=!(p instanceof MouseEvent);if(P&&(!p.changedTouches||!p.changedTouches[0]))return;let O=!0;o.setScalingState(!0);const L=f.left,S=f.top,X=f.width,M=f.height,y=f.type==="table"?f.cellMinHeight:0,W="rotate"in f&&f.rotate?f.rotate:0,T=Math.PI*W/180,V=r.value||"fixedRatio"in f&&f.fixedRatio,b=X/M,Y=P?p.changedTouches[0].pageX:p.pageX,F=P?p.changedTouches[0].pageY:p.pageY,C=Ld[f.type]||20,K=x=>x<C?C:x;let H,Q=0,G=0,$=[],se=[];if("rotate"in f&&f.rotate){const{left:x,top:B,width:Ie,height:ce}=f;H=nu({left:x,top:B,width:Ie,height:ce},W);const q=ou(h,H);Q=q.left,G=q.top}else{const x=u.value,B=u.value*i.value,Ie=f.id===a.value;for(const Z of e.value){if("rotate"in Z&&Z.rotate||Z.type==="line"||Ie&&Z.id===f.id||!Ie&&s.value.includes(Z.id))continue;const J=Z.left,re=Z.top,ue=Z.width,Te=Z.height,Ae=J+ue,Qe=re+Te,Ne={value:re,range:[J,Ae]},he={value:Qe,range:[J,Ae]},Le={value:J,range:[re,Qe]},ve={value:Ae,range:[re,Qe]};$.push(Ne,he),se.push(Le,ve)}const ce={value:0,range:[0,x]},q={value:B,range:[0,x]},ne={value:B/2,range:[0,x]},Se={value:0,range:[0,B]},w={value:x,range:[0,B]},D={value:x/2,range:[0,B]};$.push(ce,q,ne),se.push(Se,w,D),$=Rs($),se=Rs(se)}const Re=(x,B)=>{const ce=[];let q=!1,ne=!1;const Se={offsetX:0,offsetY:0};if(B||B===0)for(let w=0;w<$.length;w++){const{value:D,range:Z}=$[w],J=Math.min(...Z,x||0),re=Math.max(...Z,x||0);Math.abs(B-D)<5&&!ne&&(Se.offsetY=B-D,ne=!0,ce.push({type:"horizontal",axis:{x:J-50,y:D},length:re-J+100}))}if(x||x===0)for(let w=0;w<se.length;w++){const{value:D,range:Z}=se[w],J=Math.min(...Z,B||0),re=Math.max(...Z,B||0);Math.abs(x-D)<5&&!q&&(Se.offsetX=x-D,q=!0,ce.push({type:"vertical",axis:{x:D,y:J-50},length:re-J+100}))}return t.value=ce,Se},ae=x=>{if(!O)return;const B=x instanceof MouseEvent?x.pageX:x.changedTouches[0].pageX,Ie=x instanceof MouseEvent?x.pageY:x.changedTouches[0].pageY,ce=B-Y,q=Ie-F;let ne=X,Se=M,w=L,D=S;if(W){const Z=(Math.cos(T)*ce+Math.sin(T)*q)/n.value;let J=(Math.cos(T)*q-Math.sin(T)*ce)/n.value;V&&((h===be.RIGHT_BOTTOM||h===be.LEFT_TOP)&&(J=Z/b),(h===be.LEFT_BOTTOM||h===be.RIGHT_TOP)&&(J=-Z/b)),h===be.RIGHT_BOTTOM?(ne=K(X+Z),Se=K(M+J)):h===be.LEFT_BOTTOM?(ne=K(X-Z),Se=K(M+J),w=L-(ne-X)):h===be.LEFT_TOP?(ne=K(X-Z),Se=K(M-J),w=L-(ne-X),D=S-(Se-M)):h===be.RIGHT_TOP?(ne=K(X+Z),Se=K(M-J),D=S-(Se-M)):h===be.TOP?(Se=K(M-J),D=S-(Se-M)):h===be.BOTTOM?Se=K(M+J):h===be.LEFT?(ne=K(X-Z),w=L-(ne-X)):h===be.RIGHT&&(ne=K(X+Z));const re=nu({width:ne,height:Se,left:w,top:D},W),ue=ou(h,re),Te=ue.left,Ae=ue.top,Qe=Te-Q,Ne=Ae-G;w=w-Qe,D=D-Ne}else{let Z=ce/n.value,J=q/n.value;if(V&&((h===be.RIGHT_BOTTOM||h===be.LEFT_TOP)&&(J=Z/b),(h===be.LEFT_BOTTOM||h===be.RIGHT_TOP)&&(J=-Z/b)),h===be.RIGHT_BOTTOM){const{offsetX:re,offsetY:ue}=Re(L+X+Z,S+M+J);Z=Z-re,J=J-ue,V&&(ue?Z=J*b:J=Z/b),ne=K(X+Z),Se=K(M+J)}else if(h===be.LEFT_BOTTOM){const{offsetX:re,offsetY:ue}=Re(L+Z,S+M+J);Z=Z-re,J=J-ue,V&&(ue?Z=-J*b:J=-Z/b),ne=K(X-Z),Se=K(M+J),w=L-(ne-X)}else if(h===be.LEFT_TOP){const{offsetX:re,offsetY:ue}=Re(L+Z,S+J);Z=Z-re,J=J-ue,V&&(ue?Z=J*b:J=Z/b),ne=K(X-Z),Se=K(M-J),w=L-(ne-X),D=S-(Se-M)}else if(h===be.RIGHT_TOP){const{offsetX:re,offsetY:ue}=Re(L+X+Z,S+J);Z=Z-re,J=J-ue,V&&(ue?Z=-J*b:J=-Z/b),ne=K(X+Z),Se=K(M-J),D=S-(Se-M)}else if(h===be.LEFT){const{offsetX:re}=Re(L+Z,null);Z=Z-re,ne=K(X-Z),w=L-(ne-X)}else if(h===be.RIGHT){const{offsetX:re}=Re(L+X+Z,null);Z=Z-re,ne=K(X+Z)}else if(h===be.TOP){const{offsetY:re}=Re(null,S+J);J=J-re,Se=K(M-J),D=S-(Se-M)}else if(h===be.BOTTOM){const{offsetY:re}=Re(null,S+M+J);J=J-re,Se=K(M+J)}}e.value=e.value.map(Z=>{if(f.id!==Z.id)return Z;if(Z.type==="shape"&&"pathFormula"in Z&&Z.pathFormula){const J=sl[Z.pathFormula];let re="";return"editable"in J?re=J.formula(ne,Se,Z.keypoints):re=J.formula(ne,Se),{...Z,left:w,top:D,width:ne,height:Se,viewBox:[ne,Se],path:re}}if(Z.type==="table"){let J=y+(Se-M)/Z.data.length;return J=J<36?36:J,J===y?{...Z,left:w,width:ne}:{...Z,left:w,top:D,width:ne,height:Se,cellMinHeight:J<36?36:J}}return{...Z,left:w,top:D,width:ne,height:Se}})},Pe=x=>{O=!1,document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null,t.value=[];const B=x instanceof MouseEvent?x.pageX:x.changedTouches[0].pageX,Ie=x instanceof MouseEvent?x.pageY:x.changedTouches[0].pageY;Y===B&&F===Ie||(l.updateSlide({elements:e.value}),o.setScalingState(!1),c())};P?(document.ontouchmove=ae,document.ontouchend=Pe):(document.onmousemove=ae,document.onmouseup=Pe)},scaleMultiElement:(p,f,h)=>{let P=!0;const{minX:O,maxX:L,minY:S,maxY:X}=f,M=L-O,y=X-S,W=M/y,T=p.pageX,V=p.pageY,b=JSON.parse(JSON.stringify(e.value));document.onmousemove=Y=>{if(!P)return;const F=Y.pageX,C=Y.pageY,K=(F-T)/n.value;let H=(C-V)/n.value;r.value&&((h===be.RIGHT_BOTTOM||h===be.LEFT_TOP)&&(H=K/W),(h===be.LEFT_BOTTOM||h===be.RIGHT_TOP)&&(H=-K/W));let Q=O,G=L,$=S,se=X;h===be.RIGHT_BOTTOM?(G=L+K,se=X+H):h===be.LEFT_BOTTOM?(Q=O+K,se=X+H):h===be.LEFT_TOP?(Q=O+K,$=S+H):h===be.RIGHT_TOP?(G=L+K,$=S+H):h===be.TOP?$=S+H:h===be.BOTTOM?se=X+H:h===be.LEFT?Q=O+K:h===be.RIGHT&&(G=L+K);const Re=G-Q,ae=se-$;let Pe=Re/M,x=ae/y;Pe<=0&&(Pe=0),x<=0&&(x=0),e.value=e.value.map(B=>{if((B.type==="image"||B.type==="shape")&&s.value.includes(B.id)){const Ie=b.find(ce=>ce.id===B.id);return{...B,width:Ie.width*Pe,height:Ie.height*x,left:Q+(Ie.left-O)*Pe,top:$+(Ie.top-S)*x}}return B})},document.onmouseup=Y=>{P=!1,document.onmousemove=null,document.onmouseup=null,!(T===Y.pageX&&V===Y.pageY)&&(l.updateSlide({elements:e.value}),c())}}}},vX=(e,t)=>{const n=Xe(),{activeElementIdList:o,activeGroupElementId:l,handleElementId:s,editorAreaFocus:a}=oe(n),{ctrlOrShiftKeyActive:i}=oe(Mn());return{selectElement:(r,c,d=!0)=>{if(a.value||n.setEditorareaFocus(!0),o.value.includes(c.id)){if(i.value){let R=[];if(c.groupId){const p=[];e.value.forEach(f=>{f.groupId===c.groupId&&p.push(f.id)}),R=o.value.filter(f=>!p.includes(f))}else R=o.value.filter(p=>p!==c.id);R.length>0&&n.setActiveElementIdList(R)}else if(s.value!==c.id)n.setHandleElementId(c.id);else if(l.value!==c.id){const R=r instanceof MouseEvent?r.pageX:r.changedTouches[0].pageX,p=r instanceof MouseEvent?r.pageY:r.changedTouches[0].pageY;r.target.onmouseup=f=>{const h=f.pageX,P=f.pageY;R===h&&p===P&&(n.setActiveGroupElementId(c.id),f.target.onmouseup=null)}}}else{let R=[];if(i.value?R=[...o.value,c.id]:R=[c.id],c.groupId){const p=[];e.value.forEach(f=>{f.groupId===c.groupId&&p.push(f.id)}),R=[...R,...p]}n.setActiveElementIdList(vt.uniq(R)),n.setHandleElementId(c.id)}d&&t(r,c)}}},mX=(e,t,n)=>{const o=Ue(),{activeElementIdList:l,activeGroupElementId:s}=oe(Xe()),{shiftKeyState:a}=oe(Mn()),{viewportRatio:i,viewportSize:u}=oe(o),{addHistorySnapshot:r}=He();return{dragElement:(d,R)=>{const p=!(d instanceof MouseEvent);if(p&&(!d.changedTouches||!d.changedTouches[0])||!l.value.includes(R.id))return;let f=!0;e.value.map(x=>{l.value.includes(x.id)&&x.type==="elf"&&x.subtype==="elf-sing-play"&&(x.isMove=!0)});const h=u.value,P=u.value*i.value,O=5,S=JSON.parse(JSON.stringify(e.value)).filter(x=>l.value.includes(x.id)),X=R.left,M=R.top,y=R.width,W="height"in R&&R.height?R.height:0,T="rotate"in R&&R.rotate?R.rotate:0,V=p?d.changedTouches[0].pageX:d.pageX,b=p?d.changedTouches[0].pageY:d.pageY;let Y=null;const F=R.id===s.value;let C=[],K=[];for(const x of e.value){if(x.type==="line"||F&&x.id===R.id||!F&&l.value.includes(x.id))continue;let B,Ie,ce,q;if("rotate"in x&&x.rotate){const{xRange:Qe,yRange:Ne}=ea({left:x.left,top:x.top,width:x.width,height:x.height,rotate:x.rotate});B=Qe[0],Ie=Ne[0],ce=Qe[1]-Qe[0],q=Ne[1]-Ne[0]}else B=x.left,Ie=x.top,ce=x.width,q=x.height;const ne=B+ce,Se=Ie+q,w=Ie+q/2,D=B+ce/2,Z={value:Ie,range:[B,ne]},J={value:Se,range:[B,ne]},re={value:w,range:[B,ne]},ue={value:B,range:[Ie,Se]},Te={value:ne,range:[Ie,Se]},Ae={value:D,range:[Ie,Se]};C.push(Z,J,re),K.push(ue,Te,Ae)}const H={value:0,range:[0,h]},Q={value:P,range:[0,h]},G={value:P/2,range:[0,h]},$={value:0,range:[0,P]},se={value:h,range:[0,P]},Re={value:h/2,range:[0,P]};C.push(H,Q,G),K.push($,se,Re),C=Rs(C),K=Rs(K);const ae=x=>{const B=x instanceof MouseEvent?x.pageX:x.changedTouches[0].pageX,Ie=x instanceof MouseEvent?x.pageY:x.changedTouches[0].pageY;if(Y!==!1&&(Y=Math.abs(V-B)<O&&Math.abs(b-Ie)<O),!f||Y)return;let ce=(B-V)/n.value,q=(Ie-b)/n.value;a.value&&(Math.abs(ce)>Math.abs(q)&&(q=0),Math.abs(ce)<Math.abs(q)&&(ce=0));let ne=X+ce,Se=M+q,w,D,Z,J;if(l.value.length===1||F)if(T){const{xRange:Ne,yRange:he}=ea({left:ne,top:Se,width:y,height:W,rotate:T});w=Ne[0],D=Ne[1],Z=he[0],J=he[1]}else R.type==="line"?(w=ne,D=ne+Math.max(R.start[0],R.end[0]),Z=Se,J=Se+Math.max(R.start[1],R.end[1])):(w=ne,D=ne+y,Z=Se,J=Se+W);else{const Ne=[],he=[],Le=[],ve=[];for(let _e=0;_e<S.length;_e++){const je=S[_e],pe=je.left+ce,Ge=je.top+q,ft=je.width,In="height"in je&&je.height?je.height:0,ho="rotate"in je&&je.rotate?je.rotate:0;if("rotate"in je&&je.rotate){const{xRange:cl,yRange:dl}=ea({left:pe,top:Ge,width:ft,height:In,rotate:ho});Ne.push(cl[0]),he.push(dl[0]),Le.push(cl[1]),ve.push(dl[1])}else je.type==="line"?(Ne.push(pe),he.push(Ge),Le.push(pe+Math.max(je.start[0],je.end[0])),ve.push(Ge+Math.max(je.start[1],je.end[1]))):(Ne.push(pe),he.push(Ge),Le.push(pe+ft),ve.push(Ge+In))}w=Math.min(...Ne),D=Math.max(...Le),Z=Math.min(...he),J=Math.max(...ve)}const re=w+(D-w)/2,ue=Z+(J-Z)/2,Te=[];let Ae=!1,Qe=!1;for(let Ne=0;Ne<C.length;Ne++){const{value:he,range:Le}=C[Ne],ve=Math.min(...Le,w,D),_e=Math.max(...Le,w,D);Math.abs(Z-he)<O&&!Qe&&(Se=Se-(Z-he),Qe=!0,Te.push({type:"horizontal",axis:{x:ve-50,y:he},length:_e-ve+100})),Math.abs(J-he)<O&&!Qe&&(Se=Se-(J-he),Qe=!0,Te.push({type:"horizontal",axis:{x:ve-50,y:he},length:_e-ve+100})),Math.abs(ue-he)<O&&!Qe&&(Se=Se-(ue-he),Qe=!0,Te.push({type:"horizontal",axis:{x:ve-50,y:he},length:_e-ve+100}))}for(let Ne=0;Ne<K.length;Ne++){const{value:he,range:Le}=K[Ne],ve=Math.min(...Le,Z,J),_e=Math.max(...Le,Z,J);Math.abs(w-he)<O&&!Ae&&(ne=ne-(w-he),Ae=!0,Te.push({type:"vertical",axis:{x:he,y:ve-50},length:_e-ve+100})),Math.abs(D-he)<O&&!Ae&&(ne=ne-(D-he),Ae=!0,Te.push({type:"vertical",axis:{x:he,y:ve-50},length:_e-ve+100})),Math.abs(re-he)<O&&!Ae&&(ne=ne-(re-he),Ae=!0,Te.push({type:"vertical",axis:{x:he,y:ve-50},length:_e-ve+100}))}if(t.value=Te,l.value.length===1||F)e.value=e.value.map(Ne=>Ne.id===R.id?{...Ne,left:ne,top:Se}:Ne);else{const Ne=e.value.find(he=>he.id===R.id);if(!Ne)return;e.value=e.value.map(he=>l.value.includes(he.id)?he.id===R.id?{...he,left:ne,top:Se}:{...he,left:he.left+(ne-Ne.left),top:he.top+(Se-Ne.top)}:he)}},Pe=x=>{f=!1,e.value.map(ce=>{l.value.includes(ce.id)&&ce.type==="elf"&&ce.subtype==="elf-sing-play"&&(ce.isMove=!1)}),document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null,t.value=[];const B=x instanceof MouseEvent?x.pageX:x.changedTouches[0].pageX,Ie=x instanceof MouseEvent?x.pageY:x.changedTouches[0].pageY;V===B&&b===Ie||(o.updateSlide({elements:e.value}),r())};p?(document.ontouchmove=ae,document.ontouchend=Pe):(document.onmousemove=ae,document.onmouseup=Pe)}}},MX=e=>{const t=Ue(),{canvasScale:n}=oe(Xe()),{ctrlOrShiftKeyActive:o}=oe(Mn()),{addHistorySnapshot:l}=He();return{dragLineElement:(a,i,u)=>{let r=!0;const c=8,d=a.pageX,R=a.pageY,p=[];for(let f=0;f<e.value.length;f++){const h=e.value[f];if(h.type==="line"||h.rotate)continue;const P=h.left,O=h.top,L=h.width,S=h.height,X=P+L,M=O+S,y=O+S/2,W=P+L/2,T={x:W,y:O},V={x:W,y:M},b={x:P,y},Y={x:X,y},F={x:P,y:O},C={x:X,y:O},K={x:P,y:M},H={x:X,y:M};p.push(T,V,b,Y,F,C,K,H)}document.onmousemove=f=>{if(!r)return;const h=f.pageX,P=f.pageY,O=(h-d)/n.value,L=(P-R)/n.value;let S=i.left+i.start[0],X=i.top+i.start[1],M=i.left+i.end[0],y=i.top+i.end[1];const W=i.broken||i.broken2||i.curve||[0,0];let T=i.left+W[0],V=i.top+W[1];const[b,Y]=i.cubic||[[0,0],[0,0]];let F=i.left+b[0],C=i.top+b[1],K=i.left+Y[0],H=i.top+Y[1];if(u===qt.START){S=S+O,X=X+L,Math.abs(S-M)<c&&(S=M),Math.abs(X-y)<c&&(X=y);for(const Pe of p){const{x,y:B}=Pe;if(Math.abs(x-S)<c&&Math.abs(B-X)<c){S=x,X=B;break}}}else if(u===qt.END){M=M+O,y=y+L,Math.abs(S-M)<c&&(M=S),Math.abs(X-y)<c&&(y=X);for(const Pe of p){const{x,y:B}=Pe;if(Math.abs(x-M)<c&&Math.abs(B-y)<c){M=x,y=B;break}}}else u===qt.C?(T=T+O,V=V+L,Math.abs(T-S)<c&&(T=S),Math.abs(V-X)<c&&(V=X),Math.abs(T-M)<c&&(T=M),Math.abs(V-y)<c&&(V=y),Math.abs(T-(S+M)/2)<c&&Math.abs(V-(X+y)/2)<c&&(T=(S+M)/2,V=(X+y)/2)):u===qt.C1?(F=F+O,C=C+L,Math.abs(F-S)<c&&(F=S),Math.abs(C-X)<c&&(C=X),Math.abs(F-M)<c&&(F=M),Math.abs(C-y)<c&&(C=y)):u===qt.C2&&(K=K+O,H=H+L,Math.abs(K-S)<c&&(K=S),Math.abs(H-X)<c&&(H=X),Math.abs(K-M)<c&&(K=M),Math.abs(H-y)<c&&(H=y));const Q=Math.min(S,M),G=Math.min(X,y),$=Math.max(S,M),se=Math.max(X,y),Re=[0,0],ae=[$-Q,se-G];S>M&&(Re[0]=$-Q,ae[0]=0),X>y&&(Re[1]=se-G,ae[1]=0),e.value=e.value.map(Pe=>{if(Pe.id===i.id){const x={...Pe,left:Q,top:G,start:Re,end:ae};return u===qt.START||u===qt.END?(o.value?(i.broken&&(x.broken=[T-Q,V-G]),i.curve&&(x.curve=[T-Q,V-G]),i.cubic&&(x.cubic=[[F-Q,C-G],[K-Q,H-G]])):(i.broken&&(x.broken=[(Re[0]+ae[0])/2,(Re[1]+ae[1])/2]),i.curve&&(x.curve=[(Re[0]+ae[0])/2,(Re[1]+ae[1])/2]),i.cubic&&(x.cubic=[[(Re[0]+ae[0])/2,(Re[1]+ae[1])/2],[(Re[0]+ae[0])/2,(Re[1]+ae[1])/2]])),i.broken2&&(x.broken2=[(Re[0]+ae[0])/2,(Re[1]+ae[1])/2])):u===qt.C?(i.broken&&(x.broken=[T-Q,V-G]),i.curve&&(x.curve=[T-Q,V-G]),i.broken2&&($-Q>=se-G?x.broken2=[T-Q,x.broken2[1]]:x.broken2=[x.broken2[0],V-G])):i.cubic&&(x.cubic=[[F-Q,C-G],[K-Q,H-G]]),x}return Pe})},document.onmouseup=f=>{r=!1,document.onmousemove=null,document.onmouseup=null;const h=f.pageX,P=f.pageY;d===h&&R===P||(t.updateSlide({elements:e.value}),l())}}}},gX=(e,t)=>{const n=Ue(),{addHistorySnapshot:o}=He();return{moveShapeKeypoint:(s,a,i=0)=>{const u=!(s instanceof MouseEvent);if(u&&(!s.changedTouches||!s.changedTouches[0]))return;let r=!0;const c=u?s.changedTouches[0].pageX:s.pageX,d=u?s.changedTouches[0].pageY:s.pageY,R=a.keypoints,p=sl[a.pathFormula];let f=null;if("editable"in p&&p.editable){const O=p.getBaseSize[i],L=p.range[i],S=p.relative[i],X=R[i],M=O(a.width,a.height),y=M*X,[W,T]=L;f={baseSize:M,originPos:y,min:W,max:T,relative:S}}const h=O=>{if(!r)return;const L=O instanceof MouseEvent?O.pageX:O.changedTouches[0].pageX,S=O instanceof MouseEvent?O.pageY:O.changedTouches[0].pageY,X=(L-c)/t.value,M=(S-d)/t.value;e.value=e.value.map(y=>{if(y.id===a.id&&f){const{baseSize:W,originPos:T,min:V,max:b,relative:Y}=f,F=y;let C=0;Y==="center"?C=(T-X*2)/W:Y==="left"?C=(T+X)/W:Y==="right"?C=(T-X)/W:Y==="top"?C=(T+M)/W:Y==="bottom"?C=(T-M)/W:Y==="left_bottom"?C=(T+X)/W:Y==="right_bottom"?C=(T-X)/W:Y==="top_right"?C=(T+M)/W:Y==="bottom_right"&&(C=(T-M)/W),C<V&&(C=V),C>b&&(C=b);let K=[];return Array.isArray(R)?(K=[...R],K[i]=C):K=[C],{...y,keypoints:K,path:p.formula(F.width,F.height,K)}}return y})},P=O=>{r=!1,document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null;const L=O instanceof MouseEvent?O.pageX:O.changedTouches[0].pageX,S=O instanceof MouseEvent?O.pageY:O.changedTouches[0].pageY;c===L&&d===S||(n.updateSlide({elements:e.value}),o())};u?(document.ontouchmove=h,document.ontouchend=P):(document.onmousemove=h,document.onmouseup=P)}}},SX=e=>{const t=Xe(),{canvasScale:n,creatingElement:o}=oe(t),l=c=>{const{start:d,end:R}=c;if(!e.value)return;const p=e.value.getBoundingClientRect(),[f,h]=d,[P,O]=R,L=Math.min(f,P),S=Math.max(f,P),X=Math.min(h,O),M=Math.max(h,O),y=(L-p.x)/n.value,W=(X-p.y)/n.value,T=(S-L)/n.value,V=(M-X)/n.value;return{left:y,top:W,width:T,height:V}},s=c=>{const{start:d,end:R}=c;if(!e.value)return;const p=e.value.getBoundingClientRect(),[f,h]=d,[P,O]=R,L=Math.min(f,P),S=Math.max(f,P),X=Math.min(h,O),M=Math.max(h,O),y=(L-p.x)/n.value,W=(X-p.y)/n.value,T=(S-L)/n.value,V=(M-X)/n.value;return{left:y,top:W,start:[f===L?0:T,h===X?0:V],end:[P===L?0:T,O===X?0:V]}},{createTextElement:a,createShapeElement:i,createLineElement:u}=il();return{formatCreateSelection:l,insertElementFromCreateSelection:c=>{if(!o.value)return;const d=o.value.type;if(d==="text"){const R=l(c);R&&a(R,{vertical:o.value.vertical})}else if(d==="shape"){const R=l(c);R&&i(R,o.value.data)}else if(d==="line"){const R=s(c);R&&u(R,o.value.data)}t.setCreatingElement(null)}}},Ti=()=>{const e=Ue(),{activeElementIdList:t,activeElementList:n}=oe(Xe()),{currentSlide:o,viewportRatio:l,viewportSize:s}=oe(e),{addHistorySnapshot:a}=He();return{alignElementToCanvas:u=>{const r=s.value,c=s.value*l.value,{minX:d,maxX:R,minY:p,maxY:f}=An(n.value),h=JSON.parse(JSON.stringify(o.value.elements));for(const P of h)if(t.value.includes(P.id)){if(u===De.CENTER){const O=p+(f-p)/2-c/2,L=d+(R-d)/2-r/2;P.top=P.top-O,P.left=P.left-L}if(u===De.TOP){const O=p-0;P.top=P.top-O}else if(u===De.VERTICAL){const O=p+(f-p)/2-c/2;P.top=P.top-O}else if(u===De.BOTTOM){const O=f-c;P.top=P.top-O}else if(u===De.LEFT){const O=d-0;P.left=P.left-O}else if(u===De.HORIZONTAL){const O=d+(R-d)/2-r/2;P.left=P.left-O}else if(u===De.RIGHT){const O=R-r;P.left=P.left-O}}e.updateSlide({elements:h}),a()}}},bd=e=>(Je("data-v-f5a86b3f"),e=e(),xe(),e),OX=["src"],PX=["src"],NX=["onMousedown"],XX=bd(()=>m("svg",{width:"16",height:"16",fill:"#fff",stroke:"#333"},[m("path",{"stroke-width":"0.3","shape-rendering":"crispEdges",d:"M 16 0 L 0 0 L 0 16 L 4 16 L 4 4 L 16 4 L 16 0 Z"})],-1)),TX=[XX],VX=["onMousedown"],yX=bd(()=>m("svg",{width:"16",height:"16",fill:"#fff",stroke:"#333"},[m("path",{"stroke-width":"0.3","shape-rendering":"crispEdges",d:"M 16 0 L 0 0 L 0 4 L 16 4 Z"})],-1)),LX=[yX],bX=j({__name:"ImageClipHandler",props:{src:{},clipPath:{},width:{},height:{},top:{},left:{},rotate:{},clipData:{}},emits:["clip"],setup(e,{emit:t}){const n=e,o=t,{canvasScale:l}=oe(Xe()),{ctrlOrShiftKeyActive:s}=oe(Mn()),a=A({top:"0",left:"0"}),i=A(!1),u=A(null),r=()=>{const[T,V]=n.clipData?n.clipData.range:[[0,0],[100,100]],b=(V[0]-T[0])/100,Y=(V[1]-T[1])/100,F=T[0]/b,C=T[1]/Y;return{widthScale:b,heightScale:Y,left:F,top:C}},c=_(()=>{const{widthScale:T,heightScale:V,left:b,top:Y}=r();return{left:-b,top:-Y,width:100/T,height:100/V}}),d=_(()=>({top:c.value.top+"%",left:c.value.left+"%",width:c.value.width+"%",height:c.value.height+"%"})),R=A({top:0,left:0,width:0,height:0}),p=_(()=>{const{top:T,left:V,width:b,height:Y}=R.value;return{top:T+"%",left:V+"%",width:b+"%",height:Y+"%"}}),f=_(()=>{const T=c.value.width,V=c.value.height,{top:b,left:Y,width:F,height:C}=R.value;return{left:-Y*(100/F)+"%",top:-b*(100/C)+"%",width:T/F*100+"%",height:V/C*100+"%"}}),h=()=>{const{left:T,top:V}=r();R.value={left:T,top:V,width:100,height:100},a.value={top:-V+"%",left:-T+"%"}},P=()=>{if(i.value)return;if(!u.value){o("clip",null);return}const{left:T,top:V}=r(),b={left:(R.value.left-T)/100*n.width,top:(R.value.top-V)/100*n.height,width:(R.value.width-100)/100*n.width,height:(R.value.height-100)/100*n.height},Y={range:u.value,position:b};o("clip",Y)},O=T=>{T.key.toUpperCase()===Ye.ENTER&&P()};Ee(()=>{h(),document.addEventListener("keydown",O)}),mt(()=>{document.removeEventListener("keydown",O)});const L=()=>{const T={left:parseInt(f.value.left),top:parseInt(f.value.top),width:parseInt(f.value.width),height:parseInt(f.value.height)},V=100/T.width,b=100/T.height,Y=[-T.left*V,-T.top*b],F=[V*100+Y[0],b*100+Y[1]];u.value=[Y,F]},S=T=>{i.value=!0;let V=!0;const b=T.pageX,Y=T.pageY,F=c.value,C={...R.value};document.onmousemove=K=>{if(!V)return;const H=K.pageX,Q=K.pageY,G=(H-b)/l.value,$=(Q-Y)/l.value,se=Math.sqrt(G*G+$*$),ae=Math.atan2($,G)-n.rotate/180*Math.PI,Pe=se*Math.cos(ae)/n.width*100,x=se*Math.sin(ae)/n.height*100;let B=C.left+Pe,Ie=C.top+x;B<0?B=0:B+C.width>F.width&&(B=F.width-C.width),Ie<0?Ie=0:Ie+C.height>F.height&&(Ie=F.height-C.height),R.value={...R.value,left:B,top:Ie}},document.onmouseup=()=>{V=!1,document.onmousemove=null,document.onmouseup=null,L(),setTimeout(()=>{i.value=!1},0)}},X=(T,V)=>{i.value=!0;let b=!0;const Y=50/n.width*100,F=50/n.height*100,C=T.pageX,K=T.pageY,H=c.value,Q={...R.value},G=R.value.width/R.value.height;document.onmousemove=$=>{if(!b)return;const se=$.pageX,Re=$.pageY,ae=(se-C)/l.value,Pe=(Re-K)/l.value,x=Math.sqrt(ae*ae+Pe*Pe),Ie=Math.atan2(Pe,ae)-n.rotate/180*Math.PI;let ce=x*Math.cos(Ie)/n.width*100,q=x*Math.sin(Ie)/n.height*100;s.value&&((V===be.RIGHT_BOTTOM||V===be.LEFT_TOP)&&(q=ce/G),(V===be.LEFT_BOTTOM||V===be.RIGHT_TOP)&&(q=-ce/G));let ne,Se,w,D;V===be.LEFT_TOP?(Q.left+ce<0&&(ce=-Q.left),Q.top+q<0&&(q=-Q.top),Q.width-ce<Y&&(ce=Q.width-Y),Q.height-q<F&&(q=Q.height-F),w=Q.width-ce,D=Q.height-q,ne=Q.left+ce,Se=Q.top+q):V===be.RIGHT_TOP?(Q.left+Q.width+ce>H.width&&(ce=H.width-(Q.left+Q.width)),Q.top+q<0&&(q=-Q.top),Q.width+ce<Y&&(ce=Y-Q.width),Q.height-q<F&&(q=Q.height-F),w=Q.width+ce,D=Q.height-q,ne=Q.left,Se=Q.top+q):V===be.LEFT_BOTTOM?(Q.left+ce<0&&(ce=-Q.left),Q.top+Q.height+q>H.height&&(q=H.height-(Q.top+Q.height)),Q.width-ce<Y&&(ce=Q.width-Y),Q.height+q<F&&(q=F-Q.height),w=Q.width-ce,D=Q.height+q,ne=Q.left+ce,Se=Q.top):V===be.RIGHT_BOTTOM?(Q.left+Q.width+ce>H.width&&(ce=H.width-(Q.left+Q.width)),Q.top+Q.height+q>H.height&&(q=H.height-(Q.top+Q.height)),Q.width+ce<Y&&(ce=Y-Q.width),Q.height+q<F&&(q=F-Q.height),w=Q.width+ce,D=Q.height+q,ne=Q.left,Se=Q.top):V===be.TOP?(Q.top+q<0&&(q=-Q.top),Q.height-q<F&&(q=Q.height-F),w=Q.width,D=Q.height-q,ne=Q.left,Se=Q.top+q):V===be.BOTTOM?(Q.top+Q.height+q>H.height&&(q=H.height-(Q.top+Q.height)),Q.height+q<F&&(q=F-Q.height),w=Q.width,D=Q.height+q,ne=Q.left,Se=Q.top):V===be.LEFT?(Q.left+ce<0&&(ce=-Q.left),Q.width-ce<Y&&(ce=Q.width-Y),w=Q.width-ce,D=Q.height,ne=Q.left+ce,Se=Q.top):(Q.left+Q.width+ce>H.width&&(ce=H.width-(Q.left+Q.width)),Q.width+ce<Y&&(ce=Y-Q.width),D=Q.height,w=Q.width+ce,ne=Q.left,Se=Q.top),R.value={left:ne,top:Se,width:w,height:D}},document.onmouseup=()=>{b=!1,document.onmousemove=null,document.onmouseup=null,L(),setTimeout(()=>i.value=!1,0)}},M=_(()=>{const T="rotate-",V=n.rotate;return V>-22.5&&V<=22.5?T+0:V>22.5&&V<=67.5?T+45:V>67.5&&V<=112.5?T+90:V>112.5&&V<=157.5?T+135:V>157.5||V<=-157.5?T+0:V>-157.5&&V<=-112.5?T+45:V>-112.5&&V<=-67.5?T+90:V>-67.5&&V<=-22.5?T+135:T+0}),y=[be.LEFT_TOP,be.RIGHT_TOP,be.LEFT_BOTTOM,be.RIGHT_BOTTOM],W=[be.TOP,be.BOTTOM,be.LEFT,be.RIGHT];return(T,V)=>{const b=ze("click-outside");return de((g(),I("div",{class:"image-clip-handler",style:ee(a.value)},[m("img",{class:"bottom-img",src:T.src,draggable:!1,alt:"",style:ee(d.value)},null,12,OX),m("div",{class:"top-image-content",style:ee({...p.value,clipPath:T.clipPath})},[m("img",{class:"top-img",src:T.src,draggable:!1,alt:"",style:ee(f.value)},null,12,PX)],4),m("div",{class:"operate",style:ee(p.value),onMousedown:V[0]||(V[0]=Fe(Y=>S(Y),["stop"]))},[(g(),I(ie,null,me(y,Y=>m("div",{class:E(["clip-point",Y,M.value]),key:Y,onMousedown:Fe(F=>X(F,Y),["stop"])},TX,42,NX)),64)),(g(),I(ie,null,me(W,Y=>m("div",{class:E(["clip-point",Y,M.value]),key:Y,onMousedown:Fe(F=>X(F,Y),["stop"])},LX,42,VX)),64))],36)],4)),[[b,P]])}}}),IX=fe(bX,[["__scopeId","data-v-f5a86b3f"]]),YX=["src"],WX=j({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=Xe(),o=Ue(),{clipingImageElementId:l}=oe(n),s=_(()=>l.value===t.elementInfo.id),{addHistorySnapshot:a}=He(),i=_(()=>t.elementInfo.shadow),{shadowStyle:u}=Is(i),r=_(()=>t.elementInfo.flipH),c=_(()=>t.elementInfo.flipV),{flipStyle:d}=mc(r,c),R=_(()=>t.elementInfo),{clipShape:p,imgPosition:f}=bp(R),h=_(()=>t.elementInfo.filters),{filter:P}=Ip(h),O=S=>{t.elementInfo.lock||(S.stopPropagation(),t.selectElement(S,t.elementInfo))},L=S=>{if(n.setClipingImageElementId(""),!S)return;const{range:X,position:M}=S,y=t.elementInfo.clip||{shape:"rect",range:[[0,0],[100,100]]},W=t.elementInfo.left+M.left,T=t.elementInfo.top+M.top,V=t.elementInfo.width+M.width,b=t.elementInfo.height+M.height;let Y=0,F=0;if(t.elementInfo.rotate){const K=W+V/2-(t.elementInfo.left+t.elementInfo.width/2),H=-(T+b/2-(t.elementInfo.top+t.elementInfo.height/2)),Q=-t.elementInfo.rotate*Math.PI/180,G=K*Math.cos(Q)-H*Math.sin(Q),$=K*Math.sin(Q)+H*Math.cos(Q);Y=G-K,F=-($-H)}const C={clip:{...y,range:X},left:W+Y,top:T+F,width:V,height:b};o.updateElement({id:t.elementInfo.id,props:C}),a()};return(S,X)=>{const M=ze("contextmenu");return g(),I("div",{class:E(["editable-element-image",{lock:S.elementInfo.lock}]),style:ee({top:S.elementInfo.top+"px",left:S.elementInfo.left+"px",width:S.elementInfo.width+"px",height:S.elementInfo.height+"px"})},[m("div",{class:"rotate-wrapper",style:ee({transform:`rotate(${S.elementInfo.rotate}deg)`})},[s.value?(g(),k(IX,{key:0,src:S.elementInfo.src,clipData:S.elementInfo.clip,width:S.elementInfo.width,height:S.elementInfo.height,top:S.elementInfo.top,left:S.elementInfo.left,rotate:S.elementInfo.rotate,clipPath:v(p).style,onClip:X[0]||(X[0]=y=>L(y))},null,8,["src","clipData","width","height","top","left","rotate","clipPath"])):de((g(),I("div",{key:1,class:"element-content",style:ee({filter:v(u)?`drop-shadow(${v(u)})`:"",transform:v(d)}),onMousedown:X[2]||(X[2]=y=>O(y)),onTouchstart:X[3]||(X[3]=y=>O(y))},[N(Yp,{elementInfo:S.elementInfo},null,8,["elementInfo"]),m("div",{class:"image-content",style:ee({clipPath:v(p).style})},[m("img",{src:S.elementInfo.src,draggable:!1,style:ee({top:v(f).top,left:v(f).left,width:v(f).width,height:v(f).height,filter:v(P)}),onDragstart:X[1]||(X[1]=Fe(()=>{},["prevent"])),alt:""},null,44,YX),S.elementInfo.colorMask?(g(),I("div",{key:0,class:"color-mask",style:ee({backgroundColor:S.elementInfo.colorMask})},null,4)):z("",!0)],4)],36)),[[M,S.contextmenus]])],4)],6)}}}),UX=fe(WX,[["__scopeId","data-v-fa7e0876"]]),Qt=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},Nl=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t};let Fa=null;const Un=function(e,t,n){let o=Fa||(Fa=document.createRange());return o.setEnd(e,n??e.nodeValue.length),o.setStart(e,t||0),o},QX=function(){Fa=null},yo=function(e,t,n,o){return n&&(lu(e,t,n,o,-1)||lu(e,t,n,o,1))},FX=/^(img|br|input|textarea|hr)$/i;function lu(e,t,n,o,l){for(;;){if(e==n&&t==o)return!0;if(t==(l<0?0:Tn(e))){let s=e.parentNode;if(!s||s.nodeType!=1||Ql(e)||FX.test(e.nodeName)||e.contentEditable=="false")return!1;t=Qt(e)+(l<0?0:1),e=s}else if(e.nodeType==1){if(e=e.childNodes[t+(l<0?-1:0)],e.contentEditable=="false")return!1;t=l<0?Tn(e):0}else return!1}}function Tn(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function ZX(e,t){for(;;){if(e.nodeType==3&&t)return e;if(e.nodeType==1&&t>0){if(e.contentEditable=="false")return null;e=e.childNodes[t-1],t=Tn(e)}else if(e.parentNode&&!Ql(e))t=Qt(e),e=e.parentNode;else return null}}function AX(e,t){for(;;){if(e.nodeType==3&&t<e.nodeValue.length)return e;if(e.nodeType==1&&t<e.childNodes.length){if(e.contentEditable=="false")return null;e=e.childNodes[t],t=0}else if(e.parentNode&&!Ql(e))t=Qt(e)+1,e=e.parentNode;else return null}}function KX(e,t,n){for(let o=t==0,l=t==Tn(e);o||l;){if(e==n)return!0;let s=Qt(e);if(e=e.parentNode,!e)return!1;o=o&&s==0,l=l&&s==Tn(e)}}function Ql(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const _s=function(e){return e.focusNode&&yo(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function mo(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function _X(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function HX(e,t,n){if(e.caretPositionFromPoint)try{let o=e.caretPositionFromPoint(t,n);if(o)return{node:o.offsetNode,offset:o.offset}}catch{}if(e.caretRangeFromPoint){let o=e.caretRangeFromPoint(t,n);if(o)return{node:o.startContainer,offset:o.startOffset}}}const Ln=typeof navigator<"u"?navigator:null,su=typeof document<"u"?document:null,po=Ln&&Ln.userAgent||"",Za=/Edge\/(\d+)/.exec(po),Id=/MSIE \d/.exec(po),Aa=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(po),tn=!!(Id||Aa||Za),no=Id?document.documentMode:Aa?+Aa[1]:Za?+Za[1]:0,mn=!tn&&/gecko\/(\d+)/i.test(po);mn&&+(/Firefox\/(\d+)/.exec(po)||[0,0])[1];const Ka=!tn&&/Chrome\/(\d+)/.exec(po),_t=!!Ka,Yd=Ka?+Ka[1]:0,Dt=!tn&&!!Ln&&/Apple Computer/.test(Ln.vendor),qo=Dt&&(/Mobile\/\w+/.test(po)||!!Ln&&Ln.maxTouchPoints>2),rn=qo||(Ln?/Mac/.test(Ln.platform):!1),CX=Ln?/Win/.test(Ln.platform):!1,fn=/Android \d/.test(po),Fl=!!su&&"webkitFontSmoothing"in su.documentElement.style,GX=Fl?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function EX(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function Yn(e,t){return typeof e=="number"?e:e[t]}function wX(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,o=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*o}}function au(e,t,n){let o=e.someProp("scrollThreshold")||0,l=e.someProp("scrollMargin")||5,s=e.dom.ownerDocument;for(let a=n||e.dom;a;a=Nl(a)){if(a.nodeType!=1)continue;let i=a,u=i==s.body,r=u?EX(s):wX(i),c=0,d=0;if(t.top<r.top+Yn(o,"top")?d=-(r.top-t.top+Yn(l,"top")):t.bottom>r.bottom-Yn(o,"bottom")&&(d=t.bottom-t.top>r.bottom-r.top?t.top+Yn(l,"top")-r.top:t.bottom-r.bottom+Yn(l,"bottom")),t.left<r.left+Yn(o,"left")?c=-(r.left-t.left+Yn(l,"left")):t.right>r.right-Yn(o,"right")&&(c=t.right-r.right+Yn(l,"right")),c||d)if(u)s.defaultView.scrollBy(c,d);else{let R=i.scrollLeft,p=i.scrollTop;d&&(i.scrollTop+=d),c&&(i.scrollLeft+=c);let f=i.scrollLeft-R,h=i.scrollTop-p;t={left:t.left-f,top:t.top-h,right:t.right-f,bottom:t.bottom-h}}if(u||/^(fixed|sticky)$/.test(getComputedStyle(a).position))break}}function kX(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),o,l;for(let s=(t.left+t.right)/2,a=n+1;a<Math.min(innerHeight,t.bottom);a+=5){let i=e.root.elementFromPoint(s,a);if(!i||i==e.dom||!e.dom.contains(i))continue;let u=i.getBoundingClientRect();if(u.top>=n-20){o=i,l=u.top;break}}return{refDOM:o,refTop:l,stack:Wd(e.dom)}}function Wd(e){let t=[],n=e.ownerDocument;for(let o=e;o&&(t.push({dom:o,top:o.scrollTop,left:o.scrollLeft}),e!=n);o=Nl(o));return t}function JX({refDOM:e,refTop:t,stack:n}){let o=e?e.getBoundingClientRect().top:0;Ud(n,o==0?0:o-t)}function Ud(e,t){for(let n=0;n<e.length;n++){let{dom:o,top:l,left:s}=e[n];o.scrollTop!=l+t&&(o.scrollTop=l+t),o.scrollLeft!=s&&(o.scrollLeft=s)}}let _o=null;function xX(e){if(e.setActive)return e.setActive();if(_o)return e.focus(_o);let t=Wd(e);e.focus(_o==null?{get preventScroll(){return _o={preventScroll:!0},!0}}:void 0),_o||(_o=!1,Ud(t,0))}function Qd(e,t){let n,o=2e8,l,s=0,a=t.top,i=t.top,u,r;for(let c=e.firstChild,d=0;c;c=c.nextSibling,d++){let R;if(c.nodeType==1)R=c.getClientRects();else if(c.nodeType==3)R=Un(c).getClientRects();else continue;for(let p=0;p<R.length;p++){let f=R[p];if(f.top<=a&&f.bottom>=i){a=Math.max(f.bottom,a),i=Math.min(f.top,i);let h=f.left>t.left?f.left-t.left:f.right<t.left?t.left-f.right:0;if(h<o){n=c,o=h,l=h&&n.nodeType==3?{left:f.right<t.left?f.right:f.left,top:t.top}:t,c.nodeType==1&&h&&(s=d+(t.left>=(f.left+f.right)/2?1:0));continue}}else f.top>t.top&&!u&&f.left<=t.left&&f.right>=t.left&&(u=c,r={left:Math.max(f.left,Math.min(f.right,t.left)),top:f.top});!n&&(t.left>=f.right&&t.top>=f.top||t.left>=f.left&&t.top>=f.bottom)&&(s=d+1)}}return!n&&u&&(n=u,l=r,o=0),n&&n.nodeType==3?$X(n,l):!n||o&&n.nodeType==1?{node:e,offset:s}:Qd(n,l)}function $X(e,t){let n=e.nodeValue.length,o=document.createRange();for(let l=0;l<n;l++){o.setEnd(e,l+1),o.setStart(e,l);let s=$n(o,1);if(s.top!=s.bottom&&Vi(t,s))return{node:e,offset:l+(t.left>=(s.left+s.right)/2?1:0)}}return{node:e,offset:0}}function Vi(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function DX(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}function BX(e,t,n){let{node:o,offset:l}=Qd(t,n),s=-1;if(o.nodeType==1&&!o.firstChild){let a=o.getBoundingClientRect();s=a.left!=a.right&&n.left>(a.left+a.right)/2?1:-1}return e.docView.posFromDOM(o,l,s)}function zX(e,t,n,o){let l=-1;for(let s=t,a=!1;s!=e.dom;){let i=e.docView.nearestDesc(s,!0);if(!i)return null;if(i.dom.nodeType==1&&(i.node.isBlock&&i.parent||!i.contentDOM)){let u=i.dom.getBoundingClientRect();if(i.node.isBlock&&i.parent&&(!a&&u.left>o.left||u.top>o.top?l=i.posBefore:(!a&&u.right<o.left||u.bottom<o.top)&&(l=i.posAfter),a=!0),!i.contentDOM&&l<0&&!i.node.isText)return(i.node.isBlock?o.top<(u.top+u.bottom)/2:o.left<(u.left+u.right)/2)?i.posBefore:i.posAfter}s=i.dom.parentNode}return l>-1?l:e.docView.posFromDOM(t,n,-1)}function Fd(e,t,n){let o=e.childNodes.length;if(o&&n.top<n.bottom)for(let l=Math.max(0,Math.min(o-1,Math.floor(o*(t.top-n.top)/(n.bottom-n.top))-2)),s=l;;){let a=e.childNodes[s];if(a.nodeType==1){let i=a.getClientRects();for(let u=0;u<i.length;u++){let r=i[u];if(Vi(t,r))return Fd(a,t,r)}}if((s=(s+1)%o)==l)break}return e}function jX(e,t){let n=e.dom.ownerDocument,o,l=0,s=HX(n,t.left,t.top);s&&({node:o,offset:l}=s);let a=(e.root.elementFromPoint?e.root:n).elementFromPoint(t.left,t.top),i;if(!a||!e.dom.contains(a.nodeType!=1?a.parentNode:a)){let r=e.dom.getBoundingClientRect();if(!Vi(t,r)||(a=Fd(e.dom,t,r),!a))return null}if(Dt)for(let r=a;o&&r;r=Nl(r))r.draggable&&(o=void 0);if(a=DX(a,t),o){if(mn&&o.nodeType==1&&(l=Math.min(l,o.childNodes.length),l<o.childNodes.length)){let c=o.childNodes[l],d;c.nodeName=="IMG"&&(d=c.getBoundingClientRect()).right<=t.left&&d.bottom>t.top&&l++}let r;Fl&&l&&o.nodeType==1&&(r=o.childNodes[l-1]).nodeType==1&&r.contentEditable=="false"&&r.getBoundingClientRect().top>=t.top&&l--,o==e.dom&&l==o.childNodes.length-1&&o.lastChild.nodeType==1&&t.top>o.lastChild.getBoundingClientRect().bottom?i=e.state.doc.content.size:(l==0||o.nodeType!=1||o.childNodes[l-1].nodeName!="BR")&&(i=zX(e,o,l,t))}i==null&&(i=BX(e,a,t));let u=e.docView.nearestDesc(a,!0);return{pos:i,inside:u?u.posAtStart-u.border:-1}}function iu(e){return e.top<e.bottom||e.left<e.right}function $n(e,t){let n=e.getClientRects();if(n.length){let o=n[t<0?0:n.length-1];if(iu(o))return o}return Array.prototype.find.call(n,iu)||e.getBoundingClientRect()}const qX=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Zd(e,t,n){let{node:o,offset:l,atom:s}=e.docView.domFromPos(t,n<0?-1:1),a=Fl||mn;if(o.nodeType==3)if(a&&(qX.test(o.nodeValue)||(n<0?!l:l==o.nodeValue.length))){let u=$n(Un(o,l,l),n);if(mn&&l&&/\s/.test(o.nodeValue[l-1])&&l<o.nodeValue.length){let r=$n(Un(o,l-1,l-1),-1);if(r.top==u.top){let c=$n(Un(o,l,l+1),-1);if(c.top!=u.top)return fl(c,c.left<r.left)}}return u}else{let u=l,r=l,c=n<0?1:-1;return n<0&&!l?(r++,c=-1):n>=0&&l==o.nodeValue.length?(u--,c=1):n<0?u--:r++,fl($n(Un(o,u,r),c),c<0)}if(!e.state.doc.resolve(t-(s||0)).parent.inlineContent){if(s==null&&l&&(n<0||l==Tn(o))){let u=o.childNodes[l-1];if(u.nodeType==1)return ra(u.getBoundingClientRect(),!1)}if(s==null&&l<Tn(o)){let u=o.childNodes[l];if(u.nodeType==1)return ra(u.getBoundingClientRect(),!0)}return ra(o.getBoundingClientRect(),n>=0)}if(s==null&&l&&(n<0||l==Tn(o))){let u=o.childNodes[l-1],r=u.nodeType==3?Un(u,Tn(u)-(a?0:1)):u.nodeType==1&&(u.nodeName!="BR"||!u.nextSibling)?u:null;if(r)return fl($n(r,1),!1)}if(s==null&&l<Tn(o)){let u=o.childNodes[l];for(;u.pmViewDesc&&u.pmViewDesc.ignoreForCoords;)u=u.nextSibling;let r=u?u.nodeType==3?Un(u,0,a?0:1):u.nodeType==1?u:null:null;if(r)return fl($n(r,-1),!0)}return fl($n(o.nodeType==3?Un(o):o,-n),n>=0)}function fl(e,t){if(e.width==0)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function ra(e,t){if(e.height==0)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function Ad(e,t,n){let o=e.state,l=e.root.activeElement;o!=t&&e.updateState(t),l!=e.dom&&e.focus();try{return n()}finally{o!=t&&e.updateState(o),l!=e.dom&&l&&l.focus()}}function e1(e,t,n){let o=t.selection,l=n=="up"?o.$from:o.$to;return Ad(e,t,()=>{let{node:s}=e.docView.domFromPos(l.pos,n=="up"?-1:1);for(;;){let i=e.docView.nearestDesc(s,!0);if(!i)break;if(i.node.isBlock){s=i.contentDOM||i.dom;break}s=i.dom.parentNode}let a=Zd(e,l.pos,1);for(let i=s.firstChild;i;i=i.nextSibling){let u;if(i.nodeType==1)u=i.getClientRects();else if(i.nodeType==3)u=Un(i,0,i.nodeValue.length).getClientRects();else continue;for(let r=0;r<u.length;r++){let c=u[r];if(c.bottom>c.top+1&&(n=="up"?a.top-c.top>(c.bottom-a.top)*2:c.bottom-a.bottom>(a.bottom-c.top)*2))return!1}}return!0})}const t1=/[\u0590-\u08ac]/;function n1(e,t,n){let{$head:o}=t.selection;if(!o.parent.isTextblock)return!1;let l=o.parentOffset,s=!l,a=l==o.parent.content.size,i=e.domSelection();return!t1.test(o.parent.textContent)||!i.modify?n=="left"||n=="backward"?s:a:Ad(e,t,()=>{let{focusNode:u,focusOffset:r,anchorNode:c,anchorOffset:d}=e.domSelectionRange(),R=i.caretBidiLevel;i.modify("move",n,"character");let p=o.depth?e.docView.domAfterPos(o.before()):e.dom,{focusNode:f,focusOffset:h}=e.domSelectionRange(),P=f&&!p.contains(f.nodeType==1?f:f.parentNode)||u==f&&r==h;try{i.collapse(c,d),u&&(u!=c||r!=d)&&i.extend&&i.extend(u,r)}catch{}return R!=null&&(i.caretBidiLevel=R),P})}let ru=null,uu=null,cu=!1;function o1(e,t,n){return ru==t&&uu==n?cu:(ru=t,uu=n,cu=n=="up"||n=="down"?e1(e,t,n):n1(e,t,n))}const un=0,du=1,go=2,bn=3;class Zl{constructor(t,n,o,l){this.parent=t,this.children=n,this.dom=o,this.contentDOM=l,this.dirty=un,o.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,n,o){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let n=0;n<this.children.length;n++)t+=this.children[n].size;return t}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let t=0;t<this.children.length;t++)this.children[t].destroy()}posBeforeChild(t){for(let n=0,o=this.posAtStart;;n++){let l=this.children[n];if(l==t)return o;o+=l.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(t,n,o){if(this.contentDOM&&this.contentDOM.contains(t.nodeType==1?t:t.parentNode))if(o<0){let s,a;if(t==this.contentDOM)s=t.childNodes[n-1];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;s=t.previousSibling}for(;s&&!((a=s.pmViewDesc)&&a.parent==this);)s=s.previousSibling;return s?this.posBeforeChild(a)+a.size:this.posAtStart}else{let s,a;if(t==this.contentDOM)s=t.childNodes[n];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;s=t.nextSibling}for(;s&&!((a=s.pmViewDesc)&&a.parent==this);)s=s.nextSibling;return s?this.posBeforeChild(a):this.posAtEnd}let l;if(t==this.dom&&this.contentDOM)l=n>Qt(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))l=t.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let s=t;;s=s.parentNode){if(s==this.dom){l=!1;break}if(s.previousSibling)break}if(l==null&&n==t.childNodes.length)for(let s=t;;s=s.parentNode){if(s==this.dom){l=!0;break}if(s.nextSibling)break}}return l??o>0?this.posAtEnd:this.posAtStart}nearestDesc(t,n=!1){for(let o=!0,l=t;l;l=l.parentNode){let s=this.getDesc(l),a;if(s&&(!n||s.node))if(o&&(a=s.nodeDOM)&&!(a.nodeType==1?a.contains(t.nodeType==1?t:t.parentNode):a==t))o=!1;else return s}}getDesc(t){let n=t.pmViewDesc;for(let o=n;o;o=o.parent)if(o==this)return n}posFromDOM(t,n,o){for(let l=t;l;l=l.parentNode){let s=this.getDesc(l);if(s)return s.localPosFromDOM(t,n,o)}return-1}descAt(t){for(let n=0,o=0;n<this.children.length;n++){let l=this.children[n],s=o+l.size;if(o==t&&s!=o){for(;!l.border&&l.children.length;)l=l.children[0];return l}if(t<s)return l.descAt(t-o-l.border);o=s}}domFromPos(t,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:t+1};let o=0,l=0;for(let s=0;o<this.children.length;o++){let a=this.children[o],i=s+a.size;if(i>t||a instanceof _d){l=t-s;break}s=i}if(l)return this.children[o].domFromPos(l-this.children[o].border,n);for(let s;o&&!(s=this.children[o-1]).size&&s instanceof Kd&&s.side>=0;o--);if(n<=0){let s,a=!0;for(;s=o?this.children[o-1]:null,!(!s||s.dom.parentNode==this.contentDOM);o--,a=!1);return s&&n&&a&&!s.border&&!s.domAtom?s.domFromPos(s.size,n):{node:this.contentDOM,offset:s?Qt(s.dom)+1:0}}else{let s,a=!0;for(;s=o<this.children.length?this.children[o]:null,!(!s||s.dom.parentNode==this.contentDOM);o++,a=!1);return s&&a&&!s.border&&!s.domAtom?s.domFromPos(0,n):{node:this.contentDOM,offset:s?Qt(s.dom):this.contentDOM.childNodes.length}}}parseRange(t,n,o=0){if(this.children.length==0)return{node:this.contentDOM,from:t,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let l=-1,s=-1;for(let a=o,i=0;;i++){let u=this.children[i],r=a+u.size;if(l==-1&&t<=r){let c=a+u.border;if(t>=c&&n<=r-u.border&&u.node&&u.contentDOM&&this.contentDOM.contains(u.contentDOM))return u.parseRange(t,n,c);t=a;for(let d=i;d>0;d--){let R=this.children[d-1];if(R.size&&R.dom.parentNode==this.contentDOM&&!R.emptyChildAt(1)){l=Qt(R.dom)+1;break}t-=R.size}l==-1&&(l=0)}if(l>-1&&(r>n||i==this.children.length-1)){n=r;for(let c=i+1;c<this.children.length;c++){let d=this.children[c];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(-1)){s=Qt(d.dom);break}n+=d.size}s==-1&&(s=this.contentDOM.childNodes.length);break}a=r}return{node:this.contentDOM,from:t,to:n,fromOffset:l,toOffset:s}}emptyChildAt(t){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[t<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(t)}domAfterPos(t){let{node:n,offset:o}=this.domFromPos(t,0);if(n.nodeType!=1||o==n.childNodes.length)throw new RangeError("No node after pos "+t);return n.childNodes[o]}setSelection(t,n,o,l=!1){let s=Math.min(t,n),a=Math.max(t,n);for(let R=0,p=0;R<this.children.length;R++){let f=this.children[R],h=p+f.size;if(s>p&&a<h)return f.setSelection(t-p-f.border,n-p-f.border,o,l);p=h}let i=this.domFromPos(t,t?-1:1),u=n==t?i:this.domFromPos(n,n?-1:1),r=o.getSelection(),c=!1;if((mn||Dt)&&t==n){let{node:R,offset:p}=i;if(R.nodeType==3){if(c=!!(p&&R.nodeValue[p-1]==`
- `),c&&p==R.nodeValue.length)for(let f=R,h;f;f=f.parentNode){if(h=f.nextSibling){h.nodeName=="BR"&&(i=u={node:h.parentNode,offset:Qt(h)+1});break}let P=f.pmViewDesc;if(P&&P.node&&P.node.isBlock)break}}else{let f=R.childNodes[p-1];c=f&&(f.nodeName=="BR"||f.contentEditable=="false")}}if(mn&&r.focusNode&&r.focusNode!=u.node&&r.focusNode.nodeType==1){let R=r.focusNode.childNodes[r.focusOffset];R&&R.contentEditable=="false"&&(l=!0)}if(!(l||c&&Dt)&&yo(i.node,i.offset,r.anchorNode,r.anchorOffset)&&yo(u.node,u.offset,r.focusNode,r.focusOffset))return;let d=!1;if((r.extend||t==n)&&!c){r.collapse(i.node,i.offset);try{t!=n&&r.extend(u.node,u.offset),d=!0}catch{}}if(!d){if(t>n){let p=i;i=u,u=p}let R=document.createRange();R.setEnd(u.node,u.offset),R.setStart(i.node,i.offset),r.removeAllRanges(),r.addRange(R)}}ignoreMutation(t){return!this.contentDOM&&t.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,n){for(let o=0,l=0;l<this.children.length;l++){let s=this.children[l],a=o+s.size;if(o==a?t<=a&&n>=o:t<a&&n>o){let i=o+s.border,u=a-s.border;if(t>=i&&n<=u){this.dirty=t==o||n==a?go:du,t==i&&n==u&&(s.contentLost||s.dom.parentNode!=this.contentDOM)?s.dirty=bn:s.markDirty(t-i,n-i);return}else s.dirty=s.dom==s.contentDOM&&s.dom.parentNode==this.contentDOM&&!s.children.length?go:bn}o=a}this.dirty=go}markParentsDirty(){let t=1;for(let n=this.parent;n;n=n.parent,t++){let o=t==1?go:du;n.dirty<o&&(n.dirty=o)}}get domAtom(){return!1}get ignoreForCoords(){return!1}isText(t){return!1}}class Kd extends Zl{constructor(t,n,o,l){let s,a=n.type.toDOM;if(typeof a=="function"&&(a=a(o,()=>{if(!s)return l;if(s.parent)return s.parent.posBeforeChild(s)})),!n.type.spec.raw){if(a.nodeType!=1){let i=document.createElement("span");i.appendChild(a),a=i}a.contentEditable="false",a.classList.add("ProseMirror-widget")}super(t,[],a,null),this.widget=n,this.widget=n,s=this}matchesWidget(t){return this.dirty==un&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let n=this.widget.spec.stopEvent;return n?n(t):!1}ignoreMutation(t){return t.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class l1 extends Zl{constructor(t,n,o,l){super(t,[],n,null),this.textDOM=o,this.text=l}get size(){return this.text.length}localPosFromDOM(t,n){return t!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return t.type==="characterData"&&t.target.nodeValue==t.oldValue}}class Lo extends Zl{constructor(t,n,o,l){super(t,[],o,l),this.mark=n}static create(t,n,o,l){let s=l.nodeViews[n.type.name],a=s&&s(n,l,o);return(!a||!a.dom)&&(a=ys.renderSpec(document,n.type.spec.toDOM(n,o),null,n.attrs)),new Lo(t,n,a.dom,a.contentDOM||a.dom)}parseRule(){return this.dirty&bn||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(t){return this.dirty!=bn&&this.mark.eq(t)}markDirty(t,n){if(super.markDirty(t,n),this.dirty!=un){let o=this.parent;for(;!o.node;)o=o.parent;o.dirty<this.dirty&&(o.dirty=this.dirty),this.dirty=un}}slice(t,n,o){let l=Lo.create(this.parent,this.mark,!0,o),s=this.children,a=this.size;n<a&&(s=Ca(s,n,a,o)),t>0&&(s=Ca(s,0,t,o));for(let i=0;i<s.length;i++)s[i].parent=l;return l.children=s,l}}class oo extends Zl{constructor(t,n,o,l,s,a,i,u,r){super(t,[],s,a),this.node=n,this.outerDeco=o,this.innerDeco=l,this.nodeDOM=i}static create(t,n,o,l,s,a){let i=s.nodeViews[n.type.name],u,r=i&&i(n,s,()=>{if(!u)return a;if(u.parent)return u.parent.posBeforeChild(u)},o,l),c=r&&r.dom,d=r&&r.contentDOM;if(n.isText){if(!c)c=document.createTextNode(n.text);else if(c.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else c||({dom:c,contentDOM:d}=ys.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!d&&!n.isText&&c.nodeName!="BR"&&(c.hasAttribute("contenteditable")||(c.contentEditable="false"),n.type.spec.draggable&&(c.draggable=!0));let R=c;return c=Gd(c,o,n),r?u=new s1(t,n,o,l,c,d||null,R,r,s,a+1):n.isText?new Hs(t,n,o,l,c,R,s):new oo(t,n,o,l,c,d||null,R,s,a+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(t.preserveWhitespace="full"),!this.contentDOM)t.getContent=()=>this.node.content;else if(!this.contentLost)t.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let o=this.children[n];if(this.dom.contains(o.dom.parentNode)){t.contentElement=o.dom.parentNode;break}}t.contentElement||(t.getContent=()=>ot.empty)}return t}matchesNode(t,n,o){return this.dirty==un&&t.eq(this.node)&&Ha(n,this.outerDeco)&&o.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,n){let o=this.node.inlineContent,l=n,s=t.composing?this.localCompositionInfo(t,n):null,a=s&&s.pos>-1?s:null,i=s&&s.pos<0,u=new i1(this,a&&a.node,t);c1(this.node,this.innerDeco,(r,c,d)=>{r.spec.marks?u.syncToMarks(r.spec.marks,o,t):r.type.side>=0&&!d&&u.syncToMarks(c==this.node.childCount?jf.none:this.node.child(c).marks,o,t),u.placeWidget(r,t,l)},(r,c,d,R)=>{u.syncToMarks(r.marks,o,t);let p;u.findNodeMatch(r,c,d,R)||i&&t.state.selection.from>l&&t.state.selection.to<l+r.nodeSize&&(p=u.findIndexWithChild(s.node))>-1&&u.updateNodeAt(r,c,d,p,t)||u.updateNextNode(r,c,d,t,R,l)||u.addNode(r,c,d,t,l),l+=r.nodeSize}),u.syncToMarks([],o,t),this.node.isTextblock&&u.addTextblockHacks(),u.destroyRest(),(u.changed||this.dirty==go)&&(a&&this.protectLocalComposition(t,a),Hd(this.contentDOM,this.children,t),qo&&d1(this.dom))}localCompositionInfo(t,n){let{from:o,to:l}=t.state.selection;if(!(t.state.selection instanceof Zt)||o<n||l>n+this.node.content.size)return null;let s=t.input.compositionNode;if(!s||!this.dom.contains(s.parentNode))return null;if(this.node.inlineContent){let a=s.nodeValue,i=R1(this.node.content,a,o-n,l-n);return i<0?null:{node:s,pos:i,text:a}}else return{node:s,pos:-1,text:""}}protectLocalComposition(t,{node:n,pos:o,text:l}){if(this.getDesc(n))return;let s=n;for(;s.parentNode!=this.contentDOM;s=s.parentNode){for(;s.previousSibling;)s.parentNode.removeChild(s.previousSibling);for(;s.nextSibling;)s.parentNode.removeChild(s.nextSibling);s.pmViewDesc&&(s.pmViewDesc=void 0)}let a=new l1(this,s,n,l);t.input.compositionNodes.push(a),this.children=Ca(this.children,o,o+l.length,t,a)}update(t,n,o,l){return this.dirty==bn||!t.sameMarkup(this.node)?!1:(this.updateInner(t,n,o,l),!0)}updateInner(t,n,o,l){this.updateOuterDeco(n),this.node=t,this.innerDeco=o,this.contentDOM&&this.updateChildren(l,this.posAtStart),this.dirty=un}updateOuterDeco(t){if(Ha(t,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,o=this.dom;this.dom=Cd(this.dom,this.nodeDOM,_a(this.outerDeco,this.node,n),_a(t,this.node,n)),this.dom!=o&&(o.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function Ru(e,t,n,o,l){Gd(o,t,e);let s=new oo(void 0,e,t,n,o,o,o,l,0);return s.contentDOM&&s.updateChildren(l,0),s}class Hs extends oo{constructor(t,n,o,l,s,a,i){super(t,n,o,l,s,null,a,i,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,n,o,l){return this.dirty==bn||this.dirty!=un&&!this.inParent()||!t.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=un||t.text!=this.node.text)&&t.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=t.text,l.trackWrites==this.nodeDOM&&(l.trackWrites=null)),this.node=t,this.dirty=un,!0)}inParent(){let t=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,n,o){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(t,n,o)}ignoreMutation(t){return t.type!="characterData"&&t.type!="selection"}slice(t,n,o){let l=this.node.cut(t,n),s=document.createTextNode(l.text);return new Hs(this.parent,l,this.outerDeco,this.innerDeco,s,s,o)}markDirty(t,n){super.markDirty(t,n),this.dom!=this.nodeDOM&&(t==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=bn)}get domAtom(){return!1}isText(t){return this.node.text==t}}class _d extends Zl{parseRule(){return{ignore:!0}}matchesHack(t){return this.dirty==un&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class s1 extends oo{constructor(t,n,o,l,s,a,i,u,r,c){super(t,n,o,l,s,a,i,r,c),this.spec=u}update(t,n,o,l){if(this.dirty==bn)return!1;if(this.spec.update){let s=this.spec.update(t,n,o);return s&&this.updateInner(t,n,o,l),s}else return!this.contentDOM&&!t.isLeaf?!1:super.update(t,n,o,l)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,n,o,l){this.spec.setSelection?this.spec.setSelection(t,n,o):super.setSelection(t,n,o,l)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return this.spec.stopEvent?this.spec.stopEvent(t):!1}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function Hd(e,t,n){let o=e.firstChild,l=!1;for(let s=0;s<t.length;s++){let a=t[s],i=a.dom;if(i.parentNode==e){for(;i!=o;)o=fu(o),l=!0;o=o.nextSibling}else l=!0,e.insertBefore(i,o);if(a instanceof Lo){let u=o?o.previousSibling:e.lastChild;Hd(a.contentDOM,a.children,n),o=u?u.nextSibling:e.firstChild}}for(;o;)o=fu(o),l=!0;l&&n.trackWrites==e&&(n.trackWrites=null)}const Ml=function(e){e&&(this.nodeName=e)};Ml.prototype=Object.create(null);const So=[new Ml];function _a(e,t,n){if(e.length==0)return So;let o=n?So[0]:new Ml,l=[o];for(let s=0;s<e.length;s++){let a=e[s].type.attrs;if(a){a.nodeName&&l.push(o=new Ml(a.nodeName));for(let i in a){let u=a[i];u!=null&&(n&&l.length==1&&l.push(o=new Ml(t.isInline?"span":"div")),i=="class"?o.class=(o.class?o.class+" ":"")+u:i=="style"?o.style=(o.style?o.style+";":"")+u:i!="nodeName"&&(o[i]=u))}}}return l}function Cd(e,t,n,o){if(n==So&&o==So)return t;let l=t;for(let s=0;s<o.length;s++){let a=o[s],i=n[s];if(s){let u;i&&i.nodeName==a.nodeName&&l!=e&&(u=l.parentNode)&&u.nodeName.toLowerCase()==a.nodeName||(u=document.createElement(a.nodeName),u.pmIsDeco=!0,u.appendChild(l),i=So[0]),l=u}a1(l,i||So[0],a)}return l}function a1(e,t,n){for(let o in t)o!="class"&&o!="style"&&o!="nodeName"&&!(o in n)&&e.removeAttribute(o);for(let o in n)o!="class"&&o!="style"&&o!="nodeName"&&n[o]!=t[o]&&e.setAttribute(o,n[o]);if(t.class!=n.class){let o=t.class?t.class.split(" ").filter(Boolean):[],l=n.class?n.class.split(" ").filter(Boolean):[];for(let s=0;s<o.length;s++)l.indexOf(o[s])==-1&&e.classList.remove(o[s]);for(let s=0;s<l.length;s++)o.indexOf(l[s])==-1&&e.classList.add(l[s]);e.classList.length==0&&e.removeAttribute("class")}if(t.style!=n.style){if(t.style){let o=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,l;for(;l=o.exec(t.style);)e.style.removeProperty(l[1])}n.style&&(e.style.cssText+=n.style)}}function Gd(e,t,n){return Cd(e,e,So,_a(t,n,e.nodeType!=1))}function Ha(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function fu(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class i1{constructor(t,n,o){this.lock=n,this.view=o,this.index=0,this.stack=[],this.changed=!1,this.top=t,this.preMatch=r1(t.node.content,t)}destroyBetween(t,n){if(t!=n){for(let o=t;o<n;o++)this.top.children[o].destroy();this.top.children.splice(t,n-t),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(t,n,o){let l=0,s=this.stack.length>>1,a=Math.min(s,t.length);for(;l<a&&(l==s-1?this.top:this.stack[l+1<<1]).matchesMark(t[l])&&t[l].type.spec.spanning!==!1;)l++;for(;l<s;)this.destroyRest(),this.top.dirty=un,this.index=this.stack.pop(),this.top=this.stack.pop(),s--;for(;s<t.length;){this.stack.push(this.top,this.index+1);let i=-1;for(let u=this.index;u<Math.min(this.index+3,this.top.children.length);u++){let r=this.top.children[u];if(r.matchesMark(t[s])&&!this.isLocked(r.dom)){i=u;break}}if(i>-1)i>this.index&&(this.changed=!0,this.destroyBetween(this.index,i)),this.top=this.top.children[this.index];else{let u=Lo.create(this.top,t[s],n,o);this.top.children.splice(this.index,0,u),this.top=u,this.changed=!0}this.index=0,s++}}findNodeMatch(t,n,o,l){let s=-1,a;if(l>=this.preMatch.index&&(a=this.preMatch.matches[l-this.preMatch.index]).parent==this.top&&a.matchesNode(t,n,o))s=this.top.children.indexOf(a,this.index);else for(let i=this.index,u=Math.min(this.top.children.length,i+5);i<u;i++){let r=this.top.children[i];if(r.matchesNode(t,n,o)&&!this.preMatch.matched.has(r)){s=i;break}}return s<0?!1:(this.destroyBetween(this.index,s),this.index++,!0)}updateNodeAt(t,n,o,l,s){let a=this.top.children[l];return a.dirty==bn&&a.dom==a.contentDOM&&(a.dirty=go),a.update(t,n,o,s)?(this.destroyBetween(this.index,l),this.index++,!0):!1}findIndexWithChild(t){for(;;){let n=t.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let o=t.pmViewDesc;if(o){for(let l=this.index;l<this.top.children.length;l++)if(this.top.children[l]==o)return l}return-1}t=n}}updateNextNode(t,n,o,l,s,a){for(let i=this.index;i<this.top.children.length;i++){let u=this.top.children[i];if(u instanceof oo){let r=this.preMatch.matched.get(u);if(r!=null&&r!=s)return!1;let c=u.dom,d,R=this.isLocked(c)&&!(t.isText&&u.node&&u.node.isText&&u.nodeDOM.nodeValue==t.text&&u.dirty!=bn&&Ha(n,u.outerDeco));if(!R&&u.update(t,n,o,l))return this.destroyBetween(this.index,i),u.dom!=c&&(this.changed=!0),this.index++,!0;if(!R&&(d=this.recreateWrapper(u,t,n,o,l,a)))return this.top.children[this.index]=d,d.contentDOM&&(d.dirty=go,d.updateChildren(l,a+1),d.dirty=un),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(t,n,o,l,s,a){if(t.dirty||n.isAtom||!t.children.length||!t.node.content.eq(n.content))return null;let i=oo.create(this.top,n,o,l,s,a);if(i.contentDOM){i.children=t.children,t.children=[];for(let u of i.children)u.parent=i}return t.destroy(),i}addNode(t,n,o,l,s){let a=oo.create(this.top,t,n,o,l,s);a.contentDOM&&a.updateChildren(l,s+1),this.top.children.splice(this.index++,0,a),this.changed=!0}placeWidget(t,n,o){let l=this.index<this.top.children.length?this.top.children[this.index]:null;if(l&&l.matchesWidget(t)&&(t==l.widget||!l.widget.type.toDOM.parentNode))this.index++;else{let s=new Kd(this.top,t,n,o);this.top.children.splice(this.index++,0,s),this.changed=!0}}addTextblockHacks(){let t=this.top.children[this.index-1],n=this.top;for(;t instanceof Lo;)n=t,t=n.children[n.children.length-1];(!t||!(t instanceof Hs)||/\n$/.test(t.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(t.node.text))&&((Dt||_t)&&t&&t.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(t,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(t))this.index++;else{let o=document.createElement(t);t=="IMG"&&(o.className="ProseMirror-separator",o.alt=""),t=="BR"&&(o.className="ProseMirror-trailingBreak");let l=new _d(this.top,[],o,null);n!=this.top?n.children.push(l):n.children.splice(this.index++,0,l),this.changed=!0}}isLocked(t){return this.lock&&(t==this.lock||t.nodeType==1&&t.contains(this.lock.parentNode))}}function r1(e,t){let n=t,o=n.children.length,l=e.childCount,s=new Map,a=[];e:for(;l>0;){let i;for(;;)if(o){let r=n.children[o-1];if(r instanceof Lo)n=r,o=r.children.length;else{i=r,o--;break}}else{if(n==t)break e;o=n.parent.children.indexOf(n),n=n.parent}let u=i.node;if(u){if(u!=e.child(l-1))break;--l,s.set(i,l),a.push(i)}}return{index:l,matched:s,matches:a.reverse()}}function u1(e,t){return e.type.side-t.type.side}function c1(e,t,n,o){let l=t.locals(e),s=0;if(l.length==0){for(let r=0;r<e.childCount;r++){let c=e.child(r);o(c,l,t.forChild(s,c),r),s+=c.nodeSize}return}let a=0,i=[],u=null;for(let r=0;;){let c,d;for(;a<l.length&&l[a].to==s;){let P=l[a++];P.widget&&(c?(d||(d=[c])).push(P):c=P)}if(c)if(d){d.sort(u1);for(let P=0;P<d.length;P++)n(d[P],r,!!u)}else n(c,r,!!u);let R,p;if(u)p=-1,R=u,u=null;else if(r<e.childCount)p=r,R=e.child(r++);else break;for(let P=0;P<i.length;P++)i[P].to<=s&&i.splice(P--,1);for(;a<l.length&&l[a].from<=s&&l[a].to>s;)i.push(l[a++]);let f=s+R.nodeSize;if(R.isText){let P=f;a<l.length&&l[a].from<P&&(P=l[a].from);for(let O=0;O<i.length;O++)i[O].to<P&&(P=i[O].to);P<f&&(u=R.cut(P-s),R=R.cut(0,P-s),f=P,p=-1)}else for(;a<l.length&&l[a].to<f;)a++;let h=R.isInline&&!R.isLeaf?i.filter(P=>!P.inline):i.slice();o(R,h,t.forChild(s,R),p),s=f}}function d1(e){if(e.nodeName=="UL"||e.nodeName=="OL"){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}function R1(e,t,n,o){for(let l=0,s=0;l<e.childCount&&s<=o;){let a=e.child(l++),i=s;if(s+=a.nodeSize,!a.isText)continue;let u=a.text;for(;l<e.childCount;){let r=e.child(l++);if(s+=r.nodeSize,!r.isText)break;u+=r.text}if(s>=n){if(s>=o&&u.slice(o-t.length-i,o-i)==t)return o-t.length;let r=i<o?u.lastIndexOf(t,o-i-1):-1;if(r>=0&&r+t.length+i>=n)return i+r;if(n==o&&u.length>=o+t.length-i&&u.slice(o-i,o-i+t.length)==t)return o}}return-1}function Ca(e,t,n,o,l){let s=[];for(let a=0,i=0;a<e.length;a++){let u=e[a],r=i,c=i+=u.size;r>=n||c<=t?s.push(u):(r<t&&s.push(u.slice(0,t-r,o)),l&&(s.push(l),l=void 0),c>n&&s.push(u.slice(n-r,u.size,o)))}return s}function yi(e,t=null){let n=e.domSelectionRange(),o=e.state.doc;if(!n.focusNode)return null;let l=e.docView.nearestDesc(n.focusNode),s=l&&l.size==0,a=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(a<0)return null;let i=o.resolve(a),u,r;if(_s(n)){for(u=i;l&&!l.node;)l=l.parent;let c=l.node;if(l&&c.isAtom&&ut.isSelectable(c)&&l.parent&&!(c.isInline&&KX(n.focusNode,n.focusOffset,l.dom))){let d=l.posBefore;r=new ut(a==d?i:o.resolve(d))}}else{let c=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(c<0)return null;u=o.resolve(c)}if(!r){let c=t=="pointer"||e.state.selection.head<i.pos&&!s?1:-1;r=Li(e,u,i,c)}return r}function Ed(e){return e.editable?e.hasFocus():kd(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function Kn(e,t=!1){let n=e.state.selection;if(wd(e,n),!!Ed(e)){if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&_t){let o=e.domSelectionRange(),l=e.domObserver.currentSelection;if(o.anchorNode&&l.anchorNode&&yo(o.anchorNode,o.anchorOffset,l.anchorNode,l.anchorOffset)){e.input.mouseDown.delayedSelectionSync=!0,e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper)p1(e);else{let{anchor:o,head:l}=n,s,a;pu&&!(n instanceof Zt)&&(n.$from.parent.inlineContent||(s=hu(e,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(a=hu(e,n.to))),e.docView.setSelection(o,l,e.root,t),pu&&(s&&vu(s),a&&vu(a)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&f1(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}const pu=Dt||_t&&Yd<63;function hu(e,t){let{node:n,offset:o}=e.docView.domFromPos(t,0),l=o<n.childNodes.length?n.childNodes[o]:null,s=o?n.childNodes[o-1]:null;if(Dt&&l&&l.contentEditable=="false")return ua(l);if((!l||l.contentEditable=="false")&&(!s||s.contentEditable=="false")){if(l)return ua(l);if(s)return ua(s)}}function ua(e){return e.contentEditable="true",Dt&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function vu(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function f1(e){let t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.input.hideSelectionGuard);let n=e.domSelectionRange(),o=n.anchorNode,l=n.anchorOffset;t.addEventListener("selectionchange",e.input.hideSelectionGuard=()=>{(n.anchorNode!=o||n.anchorOffset!=l)&&(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!Ed(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function p1(e){let t=e.domSelection(),n=document.createRange(),o=e.cursorWrapper.dom,l=o.nodeName=="IMG";l?n.setEnd(o.parentNode,Qt(o)+1):n.setEnd(o,0),n.collapse(!1),t.removeAllRanges(),t.addRange(n),!l&&!e.state.selection.visible&&tn&&no<=11&&(o.disabled=!0,o.disabled=!1)}function wd(e,t){if(t instanceof ut){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(mu(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else mu(e)}function mu(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function Li(e,t,n,o){return e.someProp("createSelectionBetween",l=>l(e,t,n))||Zt.between(t,n,o)}function Mu(e){return e.editable&&!e.hasFocus()?!1:kd(e)}function kd(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(t.anchorNode.nodeType==3?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(t.focusNode.nodeType==3?t.focusNode.parentNode:t.focusNode))}catch{return!1}}function h1(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return yo(t.node,t.offset,n.anchorNode,n.anchorOffset)}function Ga(e,t){let{$anchor:n,$head:o}=e.selection,l=t>0?n.max(o):n.min(o),s=l.parent.inlineContent?l.depth?e.doc.resolve(t>0?l.after():l.before()):null:l;return s&&vn.findFrom(s,t)}function Dn(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function gu(e,t,n){let o=e.state.selection;if(o instanceof Zt)if(n.indexOf("s")>-1){let{$head:l}=o,s=l.textOffset?null:t<0?l.nodeBefore:l.nodeAfter;if(!s||s.isText||!s.isLeaf)return!1;let a=e.state.doc.resolve(l.pos+s.nodeSize*(t<0?-1:1));return Dn(e,new Zt(o.$anchor,a))}else if(o.empty){if(e.endOfTextblock(t>0?"forward":"backward")){let l=Ga(e.state,t);return l&&l instanceof ut?Dn(e,l):!1}else if(!(rn&&n.indexOf("m")>-1)){let l=o.$head,s=l.textOffset?null:t<0?l.nodeBefore:l.nodeAfter,a;if(!s||s.isText)return!1;let i=t<0?l.pos-s.nodeSize:l.pos;return s.isAtom||(a=e.docView.descAt(i))&&!a.contentDOM?ut.isSelectable(s)?Dn(e,new ut(t<0?e.state.doc.resolve(l.pos-s.nodeSize):l)):Fl?Dn(e,new Zt(e.state.doc.resolve(t<0?i:i+s.nodeSize))):!1:!1}}else return!1;else{if(o instanceof ut&&o.node.isInline)return Dn(e,new Zt(t>0?o.$to:o.$from));{let l=Ga(e.state,t);return l?Dn(e,l):!1}}}function ms(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function gl(e,t){let n=e.pmViewDesc;return n&&n.size==0&&(t<0||e.nextSibling||e.nodeName!="BR")}function Ho(e,t){return t<0?v1(e):m1(e)}function v1(e){let t=e.domSelectionRange(),n=t.focusNode,o=t.focusOffset;if(!n)return;let l,s,a=!1;for(mn&&n.nodeType==1&&o<ms(n)&&gl(n.childNodes[o],-1)&&(a=!0);;)if(o>0){if(n.nodeType!=1)break;{let i=n.childNodes[o-1];if(gl(i,-1))l=n,s=--o;else if(i.nodeType==3)n=i,o=n.nodeValue.length;else break}}else{if(Jd(n))break;{let i=n.previousSibling;for(;i&&gl(i,-1);)l=n.parentNode,s=Qt(i),i=i.previousSibling;if(i)n=i,o=ms(n);else{if(n=n.parentNode,n==e.dom)break;o=0}}}a?Ea(e,n,o):l&&Ea(e,l,s)}function m1(e){let t=e.domSelectionRange(),n=t.focusNode,o=t.focusOffset;if(!n)return;let l=ms(n),s,a;for(;;)if(o<l){if(n.nodeType!=1)break;let i=n.childNodes[o];if(gl(i,1))s=n,a=++o;else break}else{if(Jd(n))break;{let i=n.nextSibling;for(;i&&gl(i,1);)s=i.parentNode,a=Qt(i)+1,i=i.nextSibling;if(i)n=i,o=0,l=ms(n);else{if(n=n.parentNode,n==e.dom)break;o=l=0}}}s&&Ea(e,s,a)}function Jd(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function M1(e,t){for(;e&&t==e.childNodes.length&&!Ql(e);)t=Qt(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;e=n,t=0}}function g1(e,t){for(;e&&!t&&!Ql(e);)t=Qt(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;e=n,t=e.childNodes.length}}function Ea(e,t,n){if(t.nodeType!=3){let s,a;(a=M1(t,n))?(t=a,n=0):(s=g1(t,n))&&(t=s,n=s.nodeValue.length)}let o=e.domSelection();if(_s(o)){let s=document.createRange();s.setEnd(t,n),s.setStart(t,n),o.removeAllRanges(),o.addRange(s)}else o.extend&&o.extend(t,n);e.domObserver.setCurSelection();let{state:l}=e;setTimeout(()=>{e.state==l&&Kn(e)},50)}function Su(e,t){let n=e.state.doc.resolve(t);if(!(_t||CX)&&n.parent.inlineContent){let l=e.coordsAtPos(t);if(t>n.start()){let s=e.coordsAtPos(t-1),a=(s.top+s.bottom)/2;if(a>l.top&&a<l.bottom&&Math.abs(s.left-l.left)>1)return s.left<l.left?"ltr":"rtl"}if(t<n.end()){let s=e.coordsAtPos(t+1),a=(s.top+s.bottom)/2;if(a>l.top&&a<l.bottom&&Math.abs(s.left-l.left)>1)return s.left>l.left?"ltr":"rtl"}}return getComputedStyle(e.dom).direction=="rtl"?"rtl":"ltr"}function Ou(e,t,n){let o=e.state.selection;if(o instanceof Zt&&!o.empty||n.indexOf("s")>-1||rn&&n.indexOf("m")>-1)return!1;let{$from:l,$to:s}=o;if(!l.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let a=Ga(e.state,t);if(a&&a instanceof ut)return Dn(e,a)}if(!l.parent.inlineContent){let a=t<0?l:s,i=o instanceof dc?vn.near(a,t):vn.findFrom(a,t);return i?Dn(e,i):!1}return!1}function Pu(e,t){if(!(e.state.selection instanceof Zt))return!0;let{$head:n,$anchor:o,empty:l}=e.state.selection;if(!n.sameParent(o))return!0;if(!l)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let s=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(s&&!s.isText){let a=e.state.tr;return t<0?a.delete(n.pos-s.nodeSize,n.pos):a.delete(n.pos,n.pos+s.nodeSize),e.dispatch(a),!0}return!1}function Nu(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function S1(e){if(!Dt||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&t.nodeType==1&&n==0&&t.firstChild&&t.firstChild.contentEditable=="false"){let o=t.firstChild;Nu(e,o,"true"),setTimeout(()=>Nu(e,o,"false"),20)}return!1}function O1(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function P1(e,t){let n=t.keyCode,o=O1(t);if(n==8||rn&&n==72&&o=="c")return Pu(e,-1)||Ho(e,-1);if(n==46&&!t.shiftKey||rn&&n==68&&o=="c")return Pu(e,1)||Ho(e,1);if(n==13||n==27)return!0;if(n==37||rn&&n==66&&o=="c"){let l=n==37?Su(e,e.state.selection.from)=="ltr"?-1:1:-1;return gu(e,l,o)||Ho(e,l)}else if(n==39||rn&&n==70&&o=="c"){let l=n==39?Su(e,e.state.selection.from)=="ltr"?1:-1:1;return gu(e,l,o)||Ho(e,l)}else{if(n==38||rn&&n==80&&o=="c")return Ou(e,-1,o)||Ho(e,-1);if(n==40||rn&&n==78&&o=="c")return S1(e)||Ou(e,1,o)||Ho(e,1);if(o==(rn?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function xd(e,t){e.someProp("transformCopied",p=>{t=p(t,e)});let n=[],{content:o,openStart:l,openEnd:s}=t;for(;l>1&&s>1&&o.childCount==1&&o.firstChild.childCount==1;){l--,s--;let p=o.firstChild;n.push(p.type.name,p.attrs!=p.type.defaultAttrs?p.attrs:null),o=p.content}let a=e.someProp("clipboardSerializer")||ys.fromSchema(e.state.schema),i=qd(),u=i.createElement("div");u.appendChild(a.serializeFragment(o,{document:i}));let r=u.firstChild,c,d=0;for(;r&&r.nodeType==1&&(c=jd[r.nodeName.toLowerCase()]);){for(let p=c.length-1;p>=0;p--){let f=i.createElement(c[p]);for(;u.firstChild;)f.appendChild(u.firstChild);u.appendChild(f),d++}r=u.firstChild}r&&r.nodeType==1&&r.setAttribute("data-pm-slice",`${l} ${s}${d?` -${d}`:""} ${JSON.stringify(n)}`);let R=e.someProp("clipboardTextSerializer",p=>p(t,e))||t.content.textBetween(0,t.content.size,`
- `);return{dom:u,text:R,slice:t}}function $d(e,t,n,o,l){let s=l.parent.type.spec.code,a,i;if(!n&&!t)return null;let u=t&&(o||s||!n);if(u){if(e.someProp("transformPastedText",R=>{t=R(t,s||o,e)}),s)return t?new $t(ot.from(e.state.schema.text(t.replace(/\r\n?/g,`
- `))),0,0):$t.empty;let d=e.someProp("clipboardTextParser",R=>R(t,l,o,e));if(d)i=d;else{let R=l.marks(),{schema:p}=e.state,f=ys.fromSchema(p);a=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(h=>{let P=a.appendChild(document.createElement("p"));h&&P.appendChild(f.serializeNode(p.text(h,R)))})}}else e.someProp("transformPastedHTML",d=>{n=d(n,e)}),a=T1(n),Fl&&V1(a);let r=a&&a.querySelector("[data-pm-slice]"),c=r&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(r.getAttribute("data-pm-slice")||"");if(c&&c[3])for(let d=+c[3];d>0;d--){let R=a.firstChild;for(;R&&R.nodeType!=1;)R=R.nextSibling;if(!R)break;a=R}if(i||(i=(e.someProp("clipboardParser")||e.someProp("domParser")||ti.fromSchema(e.state.schema)).parseSlice(a,{preserveWhitespace:!!(u||c),context:l,ruleFromNode(R){return R.nodeName=="BR"&&!R.nextSibling&&R.parentNode&&!N1.test(R.parentNode.nodeName)?{ignore:!0}:null}})),c)i=y1(Xu(i,+c[1],+c[2]),c[4]);else if(i=$t.maxOpen(X1(i.content,l),!0),i.openStart||i.openEnd){let d=0,R=0;for(let p=i.content.firstChild;d<i.openStart&&!p.type.spec.isolating;d++,p=p.firstChild);for(let p=i.content.lastChild;R<i.openEnd&&!p.type.spec.isolating;R++,p=p.lastChild);i=Xu(i,d,R)}return e.someProp("transformPasted",d=>{i=d(i,e)}),i}const N1=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function X1(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let l=t.node(n).contentMatchAt(t.index(n)),s,a=[];if(e.forEach(i=>{if(!a)return;let u=l.findWrapping(i.type),r;if(!u)return a=null;if(r=a.length&&s.length&&Bd(u,s,i,a[a.length-1],0))a[a.length-1]=r;else{a.length&&(a[a.length-1]=zd(a[a.length-1],s.length));let c=Dd(i,u);a.push(c),l=l.matchType(c.type),s=u}}),a)return ot.from(a)}return e}function Dd(e,t,n=0){for(let o=t.length-1;o>=n;o--)e=t[o].create(null,ot.from(e));return e}function Bd(e,t,n,o,l){if(l<e.length&&l<t.length&&e[l]==t[l]){let s=Bd(e,t,n,o.lastChild,l+1);if(s)return o.copy(o.content.replaceChild(o.childCount-1,s));if(o.contentMatchAt(o.childCount).matchType(l==e.length-1?n.type:e[l+1]))return o.copy(o.content.append(ot.from(Dd(n,e,l+1))))}}function zd(e,t){if(t==0)return e;let n=e.content.replaceChild(e.childCount-1,zd(e.lastChild,t-1)),o=e.contentMatchAt(e.childCount).fillBefore(ot.empty,!0);return e.copy(n.append(o))}function wa(e,t,n,o,l,s){let a=t<0?e.firstChild:e.lastChild,i=a.content;return e.childCount>1&&(s=0),l<o-1&&(i=wa(i,t,n,o,l+1,s)),l>=n&&(i=t<0?a.contentMatchAt(0).fillBefore(i,s<=l).append(i):i.append(a.contentMatchAt(a.childCount).fillBefore(ot.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(i))}function Xu(e,t,n){return t<e.openStart&&(e=new $t(wa(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new $t(wa(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}const jd={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let Tu=null;function qd(){return Tu||(Tu=document.implementation.createHTMLDocument("title"))}function T1(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=qd().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(e),l;if((l=o&&jd[o[1].toLowerCase()])&&(e=l.map(s=>"<"+s+">").join("")+e+l.map(s=>"</"+s+">").reverse().join("")),n.innerHTML=e,l)for(let s=0;s<l.length;s++)n=n.querySelector(l[s])||n;return n}function V1(e){let t=e.querySelectorAll(_t?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<t.length;n++){let o=t[n];o.childNodes.length==1&&o.textContent==" "&&o.parentNode&&o.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),o)}}function y1(e,t){if(!e.size)return e;let n=e.content.firstChild.type.schema,o;try{o=JSON.parse(t)}catch{return e}let{content:l,openStart:s,openEnd:a}=e;for(let i=o.length-2;i>=0;i-=2){let u=n.nodes[o[i]];if(!u||u.hasRequiredAttrs())break;l=ot.from(u.create(o[i+1],l)),s++,a++}return new $t(l,s,a)}const Bt={},zt={},L1={touchstart:!0,touchmove:!0};class b1{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function I1(e){for(let t in Bt){let n=Bt[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=o=>{W1(e,o)&&!bi(e,o)&&(e.editable||!(o.type in zt))&&n(e,o)},L1[t]?{passive:!0}:void 0)}Dt&&e.dom.addEventListener("input",()=>null),ka(e)}function qn(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function Y1(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function ka(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=o=>bi(e,o))})}function bi(e,t){return e.someProp("handleDOMEvents",n=>{let o=n[t.type];return o?o(e,t)||t.defaultPrevented:!1})}function W1(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function U1(e,t){!bi(e,t)&&Bt[t.type]&&(e.editable||!(t.type in zt))&&Bt[t.type](e,t)}zt.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!tR(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(fn&&_t&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),qo&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let o=Date.now();e.input.lastIOSEnter=o,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==o&&(e.someProp("handleKeyDown",l=>l(e,mo(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",o=>o(e,n))||P1(e,n)?n.preventDefault():qn(e,"key")};zt.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)};zt.keypress=(e,t)=>{let n=t;if(tR(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||rn&&n.metaKey)return;if(e.someProp("handleKeyPress",l=>l(e,n))){n.preventDefault();return}let o=e.state.selection;if(!(o instanceof Zt)||!o.$from.sameParent(o.$to)){let l=String.fromCharCode(n.charCode);!/[\r\n]/.test(l)&&!e.someProp("handleTextInput",s=>s(e,o.$from.pos,o.$to.pos,l))&&e.dispatch(e.state.tr.insertText(l).scrollIntoView()),n.preventDefault()}};function Cs(e){return{left:e.clientX,top:e.clientY}}function Q1(e,t){let n=t.x-e.clientX,o=t.y-e.clientY;return n*n+o*o<100}function Ii(e,t,n,o,l){if(o==-1)return!1;let s=e.state.doc.resolve(o);for(let a=s.depth+1;a>0;a--)if(e.someProp(t,i=>a>s.depth?i(e,n,s.nodeAfter,s.before(a),l,!0):i(e,n,s.node(a),s.before(a),l,!1)))return!0;return!1}function $o(e,t,n){e.focused||e.focus();let o=e.state.tr.setSelection(t);o.setMeta("pointer",!0),e.dispatch(o)}function F1(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),o=n.nodeAfter;return o&&o.isAtom&&ut.isSelectable(o)?($o(e,new ut(n)),!0):!1}function Z1(e,t){if(t==-1)return!1;let n=e.state.selection,o,l;n instanceof ut&&(o=n.node);let s=e.state.doc.resolve(t);for(let a=s.depth+1;a>0;a--){let i=a>s.depth?s.nodeAfter:s.node(a);if(ut.isSelectable(i)){o&&n.$from.depth>0&&a>=n.$from.depth&&s.before(n.$from.depth+1)==n.$from.pos?l=s.before(n.$from.depth):l=s.before(a);break}}return l!=null?($o(e,ut.create(e.state.doc,l)),!0):!1}function A1(e,t,n,o,l){return Ii(e,"handleClickOn",t,n,o)||e.someProp("handleClick",s=>s(e,t,o))||(l?Z1(e,n):F1(e,n))}function K1(e,t,n,o){return Ii(e,"handleDoubleClickOn",t,n,o)||e.someProp("handleDoubleClick",l=>l(e,t,o))}function _1(e,t,n,o){return Ii(e,"handleTripleClickOn",t,n,o)||e.someProp("handleTripleClick",l=>l(e,t,o))||H1(e,n,o)}function H1(e,t,n){if(n.button!=0)return!1;let o=e.state.doc;if(t==-1)return o.inlineContent?($o(e,Zt.create(o,0,o.content.size)),!0):!1;let l=o.resolve(t);for(let s=l.depth+1;s>0;s--){let a=s>l.depth?l.nodeAfter:l.node(s),i=l.before(s);if(a.inlineContent)$o(e,Zt.create(o,i+1,i+1+a.content.size));else if(ut.isSelectable(a))$o(e,ut.create(o,i));else continue;return!0}}function Yi(e){return Ms(e)}const eR=rn?"metaKey":"ctrlKey";Bt.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let o=Yi(e),l=Date.now(),s="singleClick";l-e.input.lastClick.time<500&&Q1(n,e.input.lastClick)&&!n[eR]&&(e.input.lastClick.type=="singleClick"?s="doubleClick":e.input.lastClick.type=="doubleClick"&&(s="tripleClick")),e.input.lastClick={time:l,x:n.clientX,y:n.clientY,type:s};let a=e.posAtCoords(Cs(n));a&&(s=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new C1(e,a,n,!!o)):(s=="doubleClick"?K1:_1)(e,a.pos,a.inside,n)?n.preventDefault():qn(e,"pointer"))};class C1{constructor(t,n,o,l){this.view=t,this.pos=n,this.event=o,this.flushed=l,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!o[eR],this.allowDefault=o.shiftKey;let s,a;if(n.inside>-1)s=t.state.doc.nodeAt(n.inside),a=n.inside;else{let c=t.state.doc.resolve(n.pos);s=c.parent,a=c.depth?c.before():0}const i=l?null:o.target,u=i?t.docView.nearestDesc(i,!0):null;this.target=u&&u.dom.nodeType==1?u.dom:null;let{selection:r}=t.state;(o.button==0&&s.type.spec.draggable&&s.type.spec.selectable!==!1||r instanceof ut&&r.from<=a&&r.to>a)&&(this.mightDrag={node:s,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&mn&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),qn(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Kn(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(Cs(t))),this.updateAllowDefault(t),this.allowDefault||!n?qn(this.view,"pointer"):A1(this.view,n.pos,n.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||Dt&&this.mightDrag&&!this.mightDrag.node.isAtom||_t&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?($o(this.view,vn.near(this.view.state.doc.resolve(n.pos))),t.preventDefault()):qn(this.view,"pointer")}move(t){this.updateAllowDefault(t),qn(this.view,"pointer"),t.buttons==0&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}Bt.touchstart=e=>{e.input.lastTouch=Date.now(),Yi(e),qn(e,"pointer")};Bt.touchmove=e=>{e.input.lastTouch=Date.now(),qn(e,"pointer")};Bt.contextmenu=e=>Yi(e);function tR(e,t){return e.composing?!0:Dt&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const G1=fn?5e3:-1;zt.compositionstart=zt.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(o=>o.type.spec.inclusive===!1)))e.markCursor=e.state.storedMarks||n.marks(),Ms(e,!0),e.markCursor=null;else if(Ms(e),mn&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let o=e.domSelectionRange();for(let l=o.focusNode,s=o.focusOffset;l&&l.nodeType==1&&s!=0;){let a=s<0?l.lastChild:l.childNodes[s-1];if(!a)break;if(a.nodeType==3){e.domSelection().collapse(a,a.nodeValue.length);break}else l=a,s=-1}}e.input.composing=!0}nR(e,G1)};zt.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,nR(e,20))};function nR(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>Ms(e),t))}function oR(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=w1());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function E1(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=ZX(t.focusNode,t.focusOffset),o=AX(t.focusNode,t.focusOffset);if(n&&o&&n!=o){let l=o.pmViewDesc,s=e.domObserver.lastChangedTextNode;if(n==s||o==s)return s;if(!l||!l.isText(o.nodeValue))return o;if(e.input.compositionNode==o){let a=n.pmViewDesc;if(!(!a||!a.isText(n.nodeValue)))return o}}return n||o}function w1(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function Ms(e,t=!1){if(!(fn&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),oR(e),t||e.docView&&e.docView.dirty){let n=yi(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):e.updateState(e.state),!0}return!1}}function k1(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let o=getSelection(),l=document.createRange();l.selectNodeContents(t),e.dom.blur(),o.removeAllRanges(),o.addRange(l),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}const Xl=tn&&no<15||qo&&GX<604;Bt.copy=zt.cut=(e,t)=>{let n=t,o=e.state.selection,l=n.type=="cut";if(o.empty)return;let s=Xl?null:n.clipboardData,a=o.content(),{dom:i,text:u}=xd(e,a);s?(n.preventDefault(),s.clearData(),s.setData("text/html",i.innerHTML),s.setData("text/plain",u)):k1(e,i),l&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function J1(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function x1(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,o=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(o.contentEditable="true"),o.style.cssText="position: fixed; left: -10000px; top: 10px",o.focus();let l=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),o.parentNode&&o.parentNode.removeChild(o),n?Tl(e,o.value,null,l,t):Tl(e,o.textContent,o.innerHTML,l,t)},50)}function Tl(e,t,n,o,l){let s=$d(e,t,n,o,e.state.selection.$from);if(e.someProp("handlePaste",u=>u(e,l,s||$t.empty)))return!0;if(!s)return!1;let a=J1(s),i=a?e.state.tr.replaceSelectionWith(a,o):e.state.tr.replaceSelection(s);return e.dispatch(i.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function lR(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}zt.paste=(e,t)=>{let n=t;if(e.composing&&!fn)return;let o=Xl?null:n.clipboardData,l=e.input.shiftKey&&e.input.lastKeyCode!=45;o&&Tl(e,lR(o),o.getData("text/html"),l,n)?n.preventDefault():x1(e,n)};class sR{constructor(t,n,o){this.slice=t,this.move=n,this.node=o}}const aR=rn?"altKey":"ctrlKey";Bt.dragstart=(e,t)=>{let n=t,o=e.input.mouseDown;if(o&&o.done(),!n.dataTransfer)return;let l=e.state.selection,s=l.empty?null:e.posAtCoords(Cs(n)),a;if(!(s&&s.pos>=l.from&&s.pos<=(l instanceof ut?l.to-1:l.to))){if(o&&o.mightDrag)a=ut.create(e.state.doc,o.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let d=e.docView.nearestDesc(n.target,!0);d&&d.node.type.spec.draggable&&d!=e.docView&&(a=ut.create(e.state.doc,d.posBefore))}}let i=(a||e.state.selection).content(),{dom:u,text:r,slice:c}=xd(e,i);(!n.dataTransfer.files.length||!_t||Yd>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(Xl?"Text":"text/html",u.innerHTML),n.dataTransfer.effectAllowed="copyMove",Xl||n.dataTransfer.setData("text/plain",r),e.dragging=new sR(c,!n[aR],a)};Bt.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)};zt.dragover=zt.dragenter=(e,t)=>t.preventDefault();zt.drop=(e,t)=>{let n=t,o=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let l=e.posAtCoords(Cs(n));if(!l)return;let s=e.state.doc.resolve(l.pos),a=o&&o.slice;a?e.someProp("transformPasted",f=>{a=f(a,e)}):a=$d(e,lR(n.dataTransfer),Xl?null:n.dataTransfer.getData("text/html"),!1,s);let i=!!(o&&!n[aR]);if(e.someProp("handleDrop",f=>f(e,n,a||$t.empty,i))){n.preventDefault();return}if(!a)return;n.preventDefault();let u=a?cc(e.state.doc,s.pos,a):s.pos;u==null&&(u=s.pos);let r=e.state.tr;if(i){let{node:f}=o;f?f.replace(r):r.deleteSelection()}let c=r.mapping.map(u),d=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,R=r.doc;if(d?r.replaceRangeWith(c,c,a.content.firstChild):r.replaceRange(c,c,a),r.doc.eq(R))return;let p=r.doc.resolve(c);if(d&&ut.isSelectable(a.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(a.content.firstChild))r.setSelection(new ut(p));else{let f=r.mapping.map(u);r.mapping.maps[r.mapping.maps.length-1].forEach((h,P,O,L)=>f=L),r.setSelection(Li(e,p,r.doc.resolve(f)))}e.focus(),e.dispatch(r.setMeta("uiEvent","drop"))};Bt.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&Kn(e)},20))};Bt.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)};Bt.beforeinput=(e,t)=>{if(_t&&fn&&t.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:o}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=o||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",s=>s(e,mo(8,"Backspace")))))return;let{$cursor:l}=e.state.selection;l&&l.pos>0&&e.dispatch(e.state.tr.delete(l.pos-1,l.pos).scrollIntoView())},50)}};for(let e in zt)Bt[e]=zt[e];function Vl(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class gs{constructor(t,n){this.toDOM=t,this.spec=n||Oo,this.side=this.spec.side||0}map(t,n,o,l){let{pos:s,deleted:a}=t.mapResult(n.from+l,this.side<0?-1:1);return a?null:new sn(s-o,s-o,this)}valid(){return!0}eq(t){return this==t||t instanceof gs&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&Vl(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class lo{constructor(t,n){this.attrs=t,this.spec=n||Oo}map(t,n,o,l){let s=t.map(n.from+l,this.spec.inclusiveStart?-1:1)-o,a=t.map(n.to+l,this.spec.inclusiveEnd?1:-1)-o;return s>=a?null:new sn(s,a,this)}valid(t,n){return n.from<n.to}eq(t){return this==t||t instanceof lo&&Vl(this.attrs,t.attrs)&&Vl(this.spec,t.spec)}static is(t){return t.type instanceof lo}destroy(){}}class Wi{constructor(t,n){this.attrs=t,this.spec=n||Oo}map(t,n,o,l){let s=t.mapResult(n.from+l,1);if(s.deleted)return null;let a=t.mapResult(n.to+l,-1);return a.deleted||a.pos<=s.pos?null:new sn(s.pos-o,a.pos-o,this)}valid(t,n){let{index:o,offset:l}=t.content.findIndex(n.from),s;return l==n.from&&!(s=t.child(o)).isText&&l+s.nodeSize==n.to}eq(t){return this==t||t instanceof Wi&&Vl(this.attrs,t.attrs)&&Vl(this.spec,t.spec)}destroy(){}}class sn{constructor(t,n,o){this.from=t,this.to=n,this.type=o}copy(t,n){return new sn(t,n,this.type)}eq(t,n=0){return this.type.eq(t.type)&&this.from+n==t.from&&this.to+n==t.to}map(t,n,o){return this.type.map(t,this,n,o)}static widget(t,n,o){return new sn(t,t,new gs(n,o))}static inline(t,n,o,l){return new sn(t,n,new lo(o,l))}static node(t,n,o,l){return new sn(t,n,new Wi(o,l))}get spec(){return this.type.spec}get inline(){return this.type instanceof lo}get widget(){return this.type instanceof gs}}const Eo=[],Oo={};class Pt{constructor(t,n){this.local=t.length?t:Eo,this.children=n.length?n:Eo}static create(t,n){return n.length?Ss(n,t,0,Oo):Kt}find(t,n,o){let l=[];return this.findInner(t??0,n??1e9,l,0,o),l}findInner(t,n,o,l,s){for(let a=0;a<this.local.length;a++){let i=this.local[a];i.from<=n&&i.to>=t&&(!s||s(i.spec))&&o.push(i.copy(i.from+l,i.to+l))}for(let a=0;a<this.children.length;a+=3)if(this.children[a]<n&&this.children[a+1]>t){let i=this.children[a]+1;this.children[a+2].findInner(t-i,n-i,o,l+i,s)}}map(t,n,o){return this==Kt||t.maps.length==0?this:this.mapInner(t,n,0,0,o||Oo)}mapInner(t,n,o,l,s){let a;for(let i=0;i<this.local.length;i++){let u=this.local[i].map(t,o,l);u&&u.type.valid(n,u)?(a||(a=[])).push(u):s.onRemove&&s.onRemove(this.local[i].spec)}return this.children.length?$1(this.children,a||[],t,n,o,l,s):a?new Pt(a.sort(Po),Eo):Kt}add(t,n){return n.length?this==Kt?Pt.create(t,n):this.addInner(t,n,0):this}addInner(t,n,o){let l,s=0;t.forEach((i,u)=>{let r=u+o,c;if(c=rR(n,i,r)){for(l||(l=this.children.slice());s<l.length&&l[s]<u;)s+=3;l[s]==u?l[s+2]=l[s+2].addInner(i,c,r+1):l.splice(s,0,u,u+i.nodeSize,Ss(c,i,r+1,Oo)),s+=3}});let a=iR(s?uR(n):n,-o);for(let i=0;i<a.length;i++)a[i].type.valid(t,a[i])||a.splice(i--,1);return new Pt(a.length?this.local.concat(a).sort(Po):this.local,l||this.children)}remove(t){return t.length==0||this==Kt?this:this.removeInner(t,0)}removeInner(t,n){let o=this.children,l=this.local;for(let s=0;s<o.length;s+=3){let a,i=o[s]+n,u=o[s+1]+n;for(let c=0,d;c<t.length;c++)(d=t[c])&&d.from>i&&d.to<u&&(t[c]=null,(a||(a=[])).push(d));if(!a)continue;o==this.children&&(o=this.children.slice());let r=o[s+2].removeInner(a,i+1);r!=Kt?o[s+2]=r:(o.splice(s,3),s-=3)}if(l.length){for(let s=0,a;s<t.length;s++)if(a=t[s])for(let i=0;i<l.length;i++)l[i].eq(a,n)&&(l==this.local&&(l=this.local.slice()),l.splice(i--,1))}return o==this.children&&l==this.local?this:l.length||o.length?new Pt(l,o):Kt}forChild(t,n){if(this==Kt)return this;if(n.isLeaf)return Pt.empty;let o,l;for(let i=0;i<this.children.length;i+=3)if(this.children[i]>=t){this.children[i]==t&&(o=this.children[i+2]);break}let s=t+1,a=s+n.content.size;for(let i=0;i<this.local.length;i++){let u=this.local[i];if(u.from<a&&u.to>s&&u.type instanceof lo){let r=Math.max(s,u.from)-s,c=Math.min(a,u.to)-s;r<c&&(l||(l=[])).push(u.copy(r,c))}}if(l){let i=new Pt(l.sort(Po),Eo);return o?new jn([i,o]):i}return o||Kt}eq(t){if(this==t)return!0;if(!(t instanceof Pt)||this.local.length!=t.local.length||this.children.length!=t.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(t.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=t.children[n]||this.children[n+1]!=t.children[n+1]||!this.children[n+2].eq(t.children[n+2]))return!1;return!0}locals(t){return Ui(this.localsInner(t))}localsInner(t){if(this==Kt)return Eo;if(t.inlineContent||!this.local.some(lo.is))return this.local;let n=[];for(let o=0;o<this.local.length;o++)this.local[o].type instanceof lo||n.push(this.local[o]);return n}}Pt.empty=new Pt([],[]);Pt.removeOverlap=Ui;const Kt=Pt.empty;class jn{constructor(t){this.members=t}map(t,n){const o=this.members.map(l=>l.map(t,n,Oo));return jn.from(o)}forChild(t,n){if(n.isLeaf)return Pt.empty;let o=[];for(let l=0;l<this.members.length;l++){let s=this.members[l].forChild(t,n);s!=Kt&&(s instanceof jn?o=o.concat(s.members):o.push(s))}return jn.from(o)}eq(t){if(!(t instanceof jn)||t.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(t.members[n]))return!1;return!0}locals(t){let n,o=!0;for(let l=0;l<this.members.length;l++){let s=this.members[l].localsInner(t);if(s.length)if(!n)n=s;else{o&&(n=n.slice(),o=!1);for(let a=0;a<s.length;a++)n.push(s[a])}}return n?Ui(o?n:n.sort(Po)):Eo}static from(t){switch(t.length){case 0:return Kt;case 1:return t[0];default:return new jn(t.every(n=>n instanceof Pt)?t:t.reduce((n,o)=>n.concat(o instanceof Pt?o:o.members),[]))}}}function $1(e,t,n,o,l,s,a){let i=e.slice();for(let r=0,c=s;r<n.maps.length;r++){let d=0;n.maps[r].forEach((R,p,f,h)=>{let P=h-f-(p-R);for(let O=0;O<i.length;O+=3){let L=i[O+1];if(L<0||R>L+c-d)continue;let S=i[O]+c-d;p>=S?i[O+1]=R<=S?-2:-1:R>=c&&P&&(i[O]+=P,i[O+1]+=P)}d+=P}),c=n.maps[r].map(c,-1)}let u=!1;for(let r=0;r<i.length;r+=3)if(i[r+1]<0){if(i[r+1]==-2){u=!0,i[r+1]=-1;continue}let c=n.map(e[r]+s),d=c-l;if(d<0||d>=o.content.size){u=!0;continue}let R=n.map(e[r+1]+s,-1),p=R-l,{index:f,offset:h}=o.content.findIndex(d),P=o.maybeChild(f);if(P&&h==d&&h+P.nodeSize==p){let O=i[r+2].mapInner(n,P,c+1,e[r]+s+1,a);O!=Kt?(i[r]=d,i[r+1]=p,i[r+2]=O):(i[r+1]=-2,u=!0)}else u=!0}if(u){let r=D1(i,e,t,n,l,s,a),c=Ss(r,o,0,a);t=c.local;for(let d=0;d<i.length;d+=3)i[d+1]<0&&(i.splice(d,3),d-=3);for(let d=0,R=0;d<c.children.length;d+=3){let p=c.children[d];for(;R<i.length&&i[R]<p;)R+=3;i.splice(R,0,c.children[d],c.children[d+1],c.children[d+2])}}return new Pt(t.sort(Po),i)}function iR(e,t){if(!t||!e.length)return e;let n=[];for(let o=0;o<e.length;o++){let l=e[o];n.push(new sn(l.from+t,l.to+t,l.type))}return n}function D1(e,t,n,o,l,s,a){function i(u,r){for(let c=0;c<u.local.length;c++){let d=u.local[c].map(o,l,r);d?n.push(d):a.onRemove&&a.onRemove(u.local[c].spec)}for(let c=0;c<u.children.length;c+=3)i(u.children[c+2],u.children[c]+r+1)}for(let u=0;u<e.length;u+=3)e[u+1]==-1&&i(e[u+2],t[u]+s+1);return n}function rR(e,t,n){if(t.isLeaf)return null;let o=n+t.nodeSize,l=null;for(let s=0,a;s<e.length;s++)(a=e[s])&&a.from>n&&a.to<o&&((l||(l=[])).push(a),e[s]=null);return l}function uR(e){let t=[];for(let n=0;n<e.length;n++)e[n]!=null&&t.push(e[n]);return t}function Ss(e,t,n,o){let l=[],s=!1;t.forEach((i,u)=>{let r=rR(e,i,u+n);if(r){s=!0;let c=Ss(r,i,n+u+1,o);c!=Kt&&l.push(u,u+i.nodeSize,c)}});let a=iR(s?uR(e):e,-n).sort(Po);for(let i=0;i<a.length;i++)a[i].type.valid(t,a[i])||(o.onRemove&&o.onRemove(a[i].spec),a.splice(i--,1));return a.length||l.length?new Pt(a,l):Kt}function Po(e,t){return e.from-t.from||e.to-t.to}function Ui(e){let t=e;for(let n=0;n<t.length-1;n++){let o=t[n];if(o.from!=o.to)for(let l=n+1;l<t.length;l++){let s=t[l];if(s.from==o.from){s.to!=o.to&&(t==e&&(t=e.slice()),t[l]=s.copy(s.from,o.to),Vu(t,l+1,s.copy(o.to,s.to)));continue}else{s.from<o.to&&(t==e&&(t=e.slice()),t[n]=o.copy(o.from,s.from),Vu(t,l,o.copy(s.from,o.to)));break}}}return t}function Vu(e,t,n){for(;t<e.length&&Po(n,e[t])>0;)t++;e.splice(t,0,n)}function ca(e){let t=[];return e.someProp("decorations",n=>{let o=n(e.state);o&&o!=Kt&&t.push(o)}),e.cursorWrapper&&t.push(Pt.create(e.state.doc,[e.cursorWrapper.deco])),jn.from(t)}const B1={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},z1=tn&&no<=11;class j1{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class q1{constructor(t,n){this.view=t,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new j1,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(o=>{for(let l=0;l<o.length;l++)this.queue.push(o[l]);tn&&no<=11&&o.some(l=>l.type=="childList"&&l.removedNodes.length||l.type=="characterData"&&l.oldValue.length>l.target.nodeValue.length)?this.flushSoon():this.flush()}),z1&&(this.onCharData=o=>{this.queue.push({target:o.target,type:"characterData",oldValue:o.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,B1)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let n=0;n<t.length;n++)this.queue.push(t[n]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(Mu(this.view)){if(this.suppressingSelectionUpdates)return Kn(this.view);if(tn&&no<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&yo(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let n=new Set,o;for(let s=t.focusNode;s;s=Nl(s))n.add(s);for(let s=t.anchorNode;s;s=Nl(s))if(n.has(s)){o=s;break}let l=o&&this.view.docView.nearestDesc(o);if(l&&l.ignoreMutation({type:"selection",target:o.nodeType==3?o.parentNode:o}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let o=t.domSelectionRange(),l=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(o)&&Mu(t)&&!this.ignoreSelectionChange(o),s=-1,a=-1,i=!1,u=[];if(t.editable)for(let c=0;c<n.length;c++){let d=this.registerMutation(n[c],u);d&&(s=s<0?d.from:Math.min(d.from,s),a=a<0?d.to:Math.max(d.to,a),d.typeOver&&(i=!0))}if(mn&&u.length){let c=u.filter(d=>d.nodeName=="BR");if(c.length==2){let[d,R]=c;d.parentNode&&d.parentNode.parentNode==R.parentNode?R.remove():d.remove()}else{let{focusNode:d}=this.currentSelection;for(let R of c){let p=R.parentNode;p&&p.nodeName=="LI"&&(!d||nT(t,d)!=p)&&R.remove()}}}let r=null;s<0&&l&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)<Date.now()-300&&_s(o)&&(r=yi(t))&&r.eq(vn.near(t.state.doc.resolve(0),1))?(t.input.lastFocus=0,Kn(t),this.currentSelection.set(o),t.scrollToSelection()):(s>-1||l)&&(s>-1&&(t.docView.markDirty(s,a),eT(t)),this.handleDOMChange(s,a,i,u),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(o)||Kn(t),this.currentSelection.set(o))}registerMutation(t,n){if(n.indexOf(t.target)>-1)return null;let o=this.view.docView.nearestDesc(t.target);if(t.type=="attributes"&&(o==this.view.docView||t.attributeName=="contenteditable"||t.attributeName=="style"&&!t.oldValue&&!t.target.getAttribute("style"))||!o||o.ignoreMutation(t))return null;if(t.type=="childList"){for(let c=0;c<t.addedNodes.length;c++){let d=t.addedNodes[c];n.push(d),d.nodeType==3&&(this.lastChangedTextNode=d)}if(o.contentDOM&&o.contentDOM!=o.dom&&!o.contentDOM.contains(t.target))return{from:o.posBefore,to:o.posAfter};let l=t.previousSibling,s=t.nextSibling;if(tn&&no<=11&&t.addedNodes.length)for(let c=0;c<t.addedNodes.length;c++){let{previousSibling:d,nextSibling:R}=t.addedNodes[c];(!d||Array.prototype.indexOf.call(t.addedNodes,d)<0)&&(l=d),(!R||Array.prototype.indexOf.call(t.addedNodes,R)<0)&&(s=R)}let a=l&&l.parentNode==t.target?Qt(l)+1:0,i=o.localPosFromDOM(t.target,a,-1),u=s&&s.parentNode==t.target?Qt(s):t.target.childNodes.length,r=o.localPosFromDOM(t.target,u,1);return{from:i,to:r}}else return t.type=="attributes"?{from:o.posAtStart-o.border,to:o.posAtEnd+o.border}:(this.lastChangedTextNode=t.target,{from:o.posAtStart,to:o.posAtEnd,typeOver:t.target.nodeValue==t.oldValue})}}let yu=new WeakMap,Lu=!1;function eT(e){if(!yu.has(e)&&(yu.set(e,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(e.dom).whiteSpace)!==-1)){if(e.requiresGeckoHackNode=mn,Lu)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),Lu=!0}}function bu(e,t){let n=t.startContainer,o=t.startOffset,l=t.endContainer,s=t.endOffset,a=e.domAtPos(e.state.selection.anchor);return yo(a.node,a.offset,l,s)&&([n,o,l,s]=[l,s,n,o]),{anchorNode:n,anchorOffset:o,focusNode:l,focusOffset:s}}function tT(e,t){if(t.getComposedRanges){let l=t.getComposedRanges(e.root)[0];if(l)return bu(e,l)}let n;function o(l){l.preventDefault(),l.stopImmediatePropagation(),n=l.getTargetRanges()[0]}return e.dom.addEventListener("beforeinput",o,!0),document.execCommand("indent"),e.dom.removeEventListener("beforeinput",o,!0),n?bu(e,n):null}function nT(e,t){for(let n=t.parentNode;n&&n!=e.dom;n=n.parentNode){let o=e.docView.nearestDesc(n,!0);if(o&&o.node.isBlock)return n}return null}function oT(e,t,n){let{node:o,fromOffset:l,toOffset:s,from:a,to:i}=e.docView.parseRange(t,n),u=e.domSelectionRange(),r,c=u.anchorNode;if(c&&e.dom.contains(c.nodeType==1?c:c.parentNode)&&(r=[{node:c,offset:u.anchorOffset}],_s(u)||r.push({node:u.focusNode,offset:u.focusOffset})),_t&&e.input.lastKeyCode===8)for(let P=s;P>l;P--){let O=o.childNodes[P-1],L=O.pmViewDesc;if(O.nodeName=="BR"&&!L){s=P;break}if(!L||L.size)break}let d=e.state.doc,R=e.someProp("domParser")||ti.fromSchema(e.state.schema),p=d.resolve(a),f=null,h=R.parse(o,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:l,to:s,preserveWhitespace:p.parent.type.whitespace=="pre"?"full":!0,findPositions:r,ruleFromNode:lT,context:p});if(r&&r[0].pos!=null){let P=r[0].pos,O=r[1]&&r[1].pos;O==null&&(O=P),f={anchor:P+a,head:O+a}}return{doc:h,sel:f,from:a,to:i}}function lT(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName=="BR"&&e.parentNode){if(Dt&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(e.parentNode.lastChild==e||Dt&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName=="IMG"&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const sT=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function aT(e,t,n,o,l){let s=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let V=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,b=yi(e,V);if(b&&!e.state.selection.eq(b)){if(_t&&fn&&e.input.lastKeyCode===13&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp("handleKeyDown",F=>F(e,mo(13,"Enter"))))return;let Y=e.state.tr.setSelection(b);V=="pointer"?Y.setMeta("pointer",!0):V=="key"&&Y.scrollIntoView(),s&&Y.setMeta("composition",s),e.dispatch(Y)}return}let a=e.state.doc.resolve(t),i=a.sharedDepth(n);t=a.before(i+1),n=e.state.doc.resolve(n).after(i+1);let u=e.state.selection,r=oT(e,t,n),c=e.state.doc,d=c.slice(r.from,r.to),R,p;e.input.lastKeyCode===8&&Date.now()-100<e.input.lastKeyCodeTime?(R=e.state.selection.to,p="end"):(R=e.state.selection.from,p="start"),e.input.lastKeyCode=null;let f=uT(d.content,r.doc.content,r.from,R,p);if((qo&&e.input.lastIOSEnter>Date.now()-225||fn)&&l.some(V=>V.nodeType==1&&!sT.test(V.nodeName))&&(!f||f.endA>=f.endB)&&e.someProp("handleKeyDown",V=>V(e,mo(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!f)if(o&&u instanceof Zt&&!u.empty&&u.$head.sameParent(u.$anchor)&&!e.composing&&!(r.sel&&r.sel.anchor!=r.sel.head))f={start:u.from,endA:u.to,endB:u.to};else{if(r.sel){let V=Iu(e,e.state.doc,r.sel);if(V&&!V.eq(e.state.selection)){let b=e.state.tr.setSelection(V);s&&b.setMeta("composition",s),e.dispatch(b)}}return}e.input.domChangeCount++,e.state.selection.from<e.state.selection.to&&f.start==f.endB&&e.state.selection instanceof Zt&&(f.start>e.state.selection.from&&f.start<=e.state.selection.from+2&&e.state.selection.from>=r.from?f.start=e.state.selection.from:f.endA<e.state.selection.to&&f.endA>=e.state.selection.to-2&&e.state.selection.to<=r.to&&(f.endB+=e.state.selection.to-f.endA,f.endA=e.state.selection.to)),tn&&no<=11&&f.endB==f.start+1&&f.endA==f.start&&f.start>r.from&&r.doc.textBetween(f.start-r.from-1,f.start-r.from+1)==" "&&(f.start--,f.endA--,f.endB--);let h=r.doc.resolveNoCache(f.start-r.from),P=r.doc.resolveNoCache(f.endB-r.from),O=c.resolve(f.start),L=h.sameParent(P)&&h.parent.inlineContent&&O.end()>=f.endA,S;if((qo&&e.input.lastIOSEnter>Date.now()-225&&(!L||l.some(V=>V.nodeName=="DIV"||V.nodeName=="P"))||!L&&h.pos<r.doc.content.size&&!h.sameParent(P)&&(S=vn.findFrom(r.doc.resolve(h.pos+1),1,!0))&&S.head==P.pos)&&e.someProp("handleKeyDown",V=>V(e,mo(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>f.start&&rT(c,f.start,f.endA,h,P)&&e.someProp("handleKeyDown",V=>V(e,mo(8,"Backspace")))){fn&&_t&&e.domObserver.suppressSelectionUpdates();return}_t&&fn&&f.endB==f.start&&(e.input.lastAndroidDelete=Date.now()),fn&&!L&&h.start()!=P.start()&&P.parentOffset==0&&h.depth==P.depth&&r.sel&&r.sel.anchor==r.sel.head&&r.sel.head==f.endA&&(f.endB-=2,P=r.doc.resolveNoCache(f.endB-r.from),setTimeout(()=>{e.someProp("handleKeyDown",function(V){return V(e,mo(13,"Enter"))})},20));let X=f.start,M=f.endA,y,W,T;if(L){if(h.pos==P.pos)tn&&no<=11&&h.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>Kn(e),20)),y=e.state.tr.delete(X,M),W=c.resolve(f.start).marksAcross(c.resolve(f.endA));else if(f.endA==f.endB&&(T=iT(h.parent.content.cut(h.parentOffset,P.parentOffset),O.parent.content.cut(O.parentOffset,f.endA-O.start()))))y=e.state.tr,T.type=="add"?y.addMark(X,M,T.mark):y.removeMark(X,M,T.mark);else if(h.parent.child(h.index()).isText&&h.index()==P.index()-(P.textOffset?0:1)){let V=h.parent.textBetween(h.parentOffset,P.parentOffset);if(e.someProp("handleTextInput",b=>b(e,X,M,V)))return;y=e.state.tr.insertText(V,X,M)}}if(y||(y=e.state.tr.replace(X,M,r.doc.slice(f.start-r.from,f.endB-r.from))),r.sel){let V=Iu(e,y.doc,r.sel);V&&!(_t&&fn&&e.composing&&V.empty&&(f.start!=f.endB||e.input.lastAndroidDelete<Date.now()-100)&&(V.head==X||V.head==y.mapping.map(M)-1)||tn&&V.empty&&V.head==X)&&y.setSelection(V)}W&&y.ensureMarks(W),s&&y.setMeta("composition",s),e.dispatch(y.scrollIntoView())}function Iu(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:Li(e,t.resolve(n.anchor),t.resolve(n.head))}function iT(e,t){let n=e.firstChild.marks,o=t.firstChild.marks,l=n,s=o,a,i,u;for(let c=0;c<o.length;c++)l=o[c].removeFromSet(l);for(let c=0;c<n.length;c++)s=n[c].removeFromSet(s);if(l.length==1&&s.length==0)i=l[0],a="add",u=c=>c.mark(i.addToSet(c.marks));else if(l.length==0&&s.length==1)i=s[0],a="remove",u=c=>c.mark(i.removeFromSet(c.marks));else return null;let r=[];for(let c=0;c<t.childCount;c++)r.push(u(t.child(c)));if(ot.from(r).eq(e))return{mark:i,type:a}}function rT(e,t,n,o,l){if(n-t<=l.pos-o.pos||da(o,!0,!1)<l.pos)return!1;let s=e.resolve(t);if(!o.parent.isTextblock){let i=s.nodeAfter;return i!=null&&n==t+i.nodeSize}if(s.parentOffset<s.parent.content.size||!s.parent.isTextblock)return!1;let a=e.resolve(da(s,!0,!0));return!a.parent.isTextblock||a.pos>n||da(a,!0,!1)<n?!1:o.parent.content.cut(o.parentOffset).eq(a.parent.content)}function da(e,t,n){let o=e.depth,l=t?e.end():e.pos;for(;o>0&&(t||e.indexAfter(o)==e.node(o).childCount);)o--,l++,t=!1;if(n){let s=e.node(o).maybeChild(e.indexAfter(o));for(;s&&!s.isLeaf;)s=s.firstChild,l++}return l}function uT(e,t,n,o,l){let s=e.findDiffStart(t,n);if(s==null)return null;let{a,b:i}=e.findDiffEnd(t,n+e.size,n+t.size);if(l=="end"){let u=Math.max(0,s-Math.min(a,i));o-=a+u-s}if(a<s&&e.size<t.size){let u=o<=s&&o>=a?s-o:0;s-=u,s&&s<t.size&&Yu(t.textBetween(s-1,s+1))&&(s+=u?1:-1),i=s+(i-a),a=s}else if(i<s){let u=o<=s&&o>=i?s-o:0;s-=u,s&&s<e.size&&Yu(e.textBetween(s-1,s+1))&&(s+=u?1:-1),a=s+(a-i),i=s}return{start:s,endA:a,endB:i}}function Yu(e){if(e.length!=2)return!1;let t=e.charCodeAt(0),n=e.charCodeAt(1);return t>=56320&&t<=57343&&n>=55296&&n<=56319}class cT{constructor(t,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new b1,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(Zu),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):typeof t=="function"?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=Qu(this),Uu(this),this.nodeViews=Fu(this),this.docView=Ru(this.state.doc,Wu(this),ca(this),this.dom,this),this.domObserver=new q1(this,(o,l,s,a)=>aT(this,o,l,s,a)),this.domObserver.start(),I1(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let n in t)this._props[n]=t[n];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&ka(this);let n=this._props;this._props=t,t.plugins&&(t.plugins.forEach(Zu),this.directPlugins=t.plugins),this.updateStateInner(t.state,n)}setProps(t){let n={};for(let o in this._props)n[o]=this._props[o];n.state=this.state;for(let o in t)n[o]=t[o];this.update(n)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,n){var o;let l=this.state,s=!1,a=!1;t.storedMarks&&this.composing&&(oR(this),a=!0),this.state=t;let i=l.plugins!=t.plugins||this._props.plugins!=n.plugins;if(i||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let p=Fu(this);RT(p,this.nodeViews)&&(this.nodeViews=p,s=!0)}(i||n.handleDOMEvents!=this._props.handleDOMEvents)&&ka(this),this.editable=Qu(this),Uu(this);let u=ca(this),r=Wu(this),c=l.plugins!=t.plugins&&!l.doc.eq(t.doc)?"reset":t.scrollToSelection>l.scrollToSelection?"to selection":"preserve",d=s||!this.docView.matchesNode(t.doc,r,u);(d||!t.selection.eq(l.selection))&&(a=!0);let R=c=="preserve"&&a&&this.dom.style.overflowAnchor==null&&kX(this);if(a){this.domObserver.stop();let p=d&&(tn||_t)&&!this.composing&&!l.selection.empty&&!t.selection.empty&&dT(l.selection,t.selection);if(d){let f=_t?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=E1(this)),(s||!this.docView.update(t.doc,r,u,this))&&(this.docView.updateOuterDeco(r),this.docView.destroy(),this.docView=Ru(t.doc,r,u,this.dom,this)),f&&!this.trackWrites&&(p=!0)}p||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&h1(this))?Kn(this,p):(wd(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(l),!((o=this.dragging)===null||o===void 0)&&o.node&&!l.doc.eq(t.doc)&&this.updateDraggedNode(this.dragging,l),c=="reset"?this.dom.scrollTop=0:c=="to selection"?this.scrollToSelection():R&&JX(R)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof ut){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&au(this,n.getBoundingClientRect(),t)}else au(this,this.coordsAtPos(this.state.selection.head,1),t)}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(!t||t.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n<this.directPlugins.length;n++){let o=this.directPlugins[n];o.spec.view&&this.pluginViews.push(o.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let o=this.state.plugins[n];o.spec.view&&this.pluginViews.push(o.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let o=this.pluginViews[n];o.update&&o.update(this,t)}}updateDraggedNode(t,n){let o=t.node,l=-1;if(this.state.doc.nodeAt(o.from)==o.node)l=o.from;else{let s=o.from+(this.state.doc.content.size-n.doc.content.size);(s>0&&this.state.doc.nodeAt(s))==o.node&&(l=s)}this.dragging=new sR(t.slice,t.move,l<0?void 0:ut.create(this.state.doc,l))}someProp(t,n){let o=this._props&&this._props[t],l;if(o!=null&&(l=n?n(o):o))return l;for(let a=0;a<this.directPlugins.length;a++){let i=this.directPlugins[a].props[t];if(i!=null&&(l=n?n(i):i))return l}let s=this.state.plugins;if(s)for(let a=0;a<s.length;a++){let i=s[a].props[t];if(i!=null&&(l=n?n(i):i))return l}}hasFocus(){if(tn){let t=this.root.activeElement;if(t==this.dom)return!0;if(!t||!this.dom.contains(t))return!1;for(;t&&this.dom!=t&&this.dom.contains(t);){if(t.contentEditable=="false")return!1;t=t.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&xX(this.dom),Kn(this),this.domObserver.start()}get root(){let t=this._root;if(t==null){for(let n=this.dom.parentNode;n;n=n.parentNode)if(n.nodeType==9||n.nodeType==11&&n.host)return n.getSelection||(Object.getPrototypeOf(n).getSelection=()=>n.ownerDocument.getSelection()),this._root=n}return t||document}updateRoot(){this._root=null}posAtCoords(t){return jX(this,t)}coordsAtPos(t,n=1){return Zd(this,t,n)}domAtPos(t,n=0){return this.docView.domFromPos(t,n)}nodeDOM(t){let n=this.docView.descAt(t);return n?n.nodeDOM:null}posAtDOM(t,n,o=-1){let l=this.docView.posFromDOM(t,n,o);if(l==null)throw new RangeError("DOM position not inside the editor");return l}endOfTextblock(t,n){return o1(this,n||this.state,t)}pasteHTML(t,n){return Tl(this,"",t,!1,n||new ClipboardEvent("paste"))}pasteText(t,n){return Tl(this,t,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(Y1(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],ca(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,QX())}get isDestroyed(){return this.docView==null}dispatchEvent(t){return U1(this,t)}dispatch(t){let n=this._props.dispatchTransaction;n?n.call(this,t):this.updateState(this.state.apply(t))}domSelectionRange(){let t=this.domSelection();return Dt&&this.root.nodeType===11&&_X(this.dom.ownerDocument)==this.dom&&tT(this,t)||t}domSelection(){return this.root.getSelection()}}function Wu(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(e.state)),n)for(let o in n)o=="class"?t.class+=" "+n[o]:o=="style"?t.style=(t.style?t.style+";":"")+n[o]:!t[o]&&o!="contenteditable"&&o!="nodeName"&&(t[o]=String(n[o]))}),t.translate||(t.translate="no"),[sn.node(0,e.state.doc.content.size,t)]}function Uu(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:sn.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function Qu(e){return!e.someProp("editable",t=>t(e.state)===!1)}function dT(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function Fu(e){let t=Object.create(null);function n(o){for(let l in o)Object.prototype.hasOwnProperty.call(t,l)||(t[l]=o[l])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function RT(e,t){let n=0,o=0;for(let l in e){if(e[l]!=t[l])return!0;n++}for(let l in t)o++;return n!=o}function Zu(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var ro={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Os={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},fT=typeof navigator<"u"&&/Mac/.test(navigator.platform),pT=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Ft=0;Ft<10;Ft++)ro[48+Ft]=ro[96+Ft]=String(Ft);for(var Ft=1;Ft<=24;Ft++)ro[Ft+111]="F"+Ft;for(var Ft=65;Ft<=90;Ft++)ro[Ft]=String.fromCharCode(Ft+32),Os[Ft]=String.fromCharCode(Ft);for(var Ra in ro)Os.hasOwnProperty(Ra)||(Os[Ra]=ro[Ra]);function hT(e){var t=fT&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||pT&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?Os:ro)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const vT=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function mT(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n=="Space"&&(n=" ");let o,l,s,a;for(let i=0;i<t.length-1;i++){let u=t[i];if(/^(cmd|meta|m)$/i.test(u))a=!0;else if(/^a(lt)?$/i.test(u))o=!0;else if(/^(c|ctrl|control)$/i.test(u))l=!0;else if(/^s(hift)?$/i.test(u))s=!0;else if(/^mod$/i.test(u))vT?a=!0:l=!0;else throw new Error("Unrecognized modifier name: "+u)}return o&&(n="Alt-"+n),l&&(n="Ctrl-"+n),a&&(n="Meta-"+n),s&&(n="Shift-"+n),n}function MT(e){let t=Object.create(null);for(let n in e)t[mT(n)]=e[n];return t}function fa(e,t,n=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function Au(e){return new ll({props:{handleKeyDown:cR(e)}})}function cR(e){let t=MT(e);return function(n,o){let l=hT(o),s,a=t[fa(l,o)];if(a&&a(n.state,n.dispatch,n))return!0;if(l.length==1&&l!=" "){if(o.shiftKey){let i=t[fa(l,o,!1)];if(i&&i(n.state,n.dispatch,n))return!0}if((o.shiftKey||o.altKey||o.metaKey||l.charCodeAt(0)>127)&&(s=ro[o.keyCode])&&s!=l){let i=t[fa(s,o)];if(i&&i(n.state,n.dispatch,n))return!0}}return!1}}var Ps=200,Ut=function(){};Ut.prototype.append=function(t){return t.length?(t=Ut.from(t),!this.length&&t||t.length<Ps&&this.leafAppend(t)||this.length<Ps&&t.leafPrepend(this)||this.appendInner(t)):this};Ut.prototype.prepend=function(t){return t.length?Ut.from(t).append(this):this};Ut.prototype.appendInner=function(t){return new gT(this,t)};Ut.prototype.slice=function(t,n){return t===void 0&&(t=0),n===void 0&&(n=this.length),t>=n?Ut.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,n))};Ut.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)};Ut.prototype.forEach=function(t,n,o){n===void 0&&(n=0),o===void 0&&(o=this.length),n<=o?this.forEachInner(t,n,o,0):this.forEachInvertedInner(t,n,o,0)};Ut.prototype.map=function(t,n,o){n===void 0&&(n=0),o===void 0&&(o=this.length);var l=[];return this.forEach(function(s,a){return l.push(t(s,a))},n,o),l};Ut.from=function(t){return t instanceof Ut?t:t&&t.length?new dR(t):Ut.empty};var dR=function(e){function t(o){e.call(this),this.values=o}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(l,s){return l==0&&s==this.length?this:new t(this.values.slice(l,s))},t.prototype.getInner=function(l){return this.values[l]},t.prototype.forEachInner=function(l,s,a,i){for(var u=s;u<a;u++)if(l(this.values[u],i+u)===!1)return!1},t.prototype.forEachInvertedInner=function(l,s,a,i){for(var u=s-1;u>=a;u--)if(l(this.values[u],i+u)===!1)return!1},t.prototype.leafAppend=function(l){if(this.length+l.length<=Ps)return new t(this.values.concat(l.flatten()))},t.prototype.leafPrepend=function(l){if(this.length+l.length<=Ps)return new t(l.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(Ut);Ut.empty=new dR([]);var gT=function(e){function t(n,o){e.call(this),this.left=n,this.right=o,this.length=n.length+o.length,this.depth=Math.max(n.depth,o.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(o){return o<this.left.length?this.left.get(o):this.right.get(o-this.left.length)},t.prototype.forEachInner=function(o,l,s,a){var i=this.left.length;if(l<i&&this.left.forEachInner(o,l,Math.min(s,i),a)===!1||s>i&&this.right.forEachInner(o,Math.max(l-i,0),Math.min(this.length,s)-i,a+i)===!1)return!1},t.prototype.forEachInvertedInner=function(o,l,s,a){var i=this.left.length;if(l>i&&this.right.forEachInvertedInner(o,l-i,Math.max(s,i)-i,a+i)===!1||s<i&&this.left.forEachInvertedInner(o,Math.min(l,i),s,a)===!1)return!1},t.prototype.sliceInner=function(o,l){if(o==0&&l==this.length)return this;var s=this.left.length;return l<=s?this.left.slice(o,l):o>=s?this.right.slice(o-s,l-s):this.left.slice(o,s).append(this.right.slice(0,l-s))},t.prototype.leafAppend=function(o){var l=this.right.leafAppend(o);if(l)return new t(this.left,l)},t.prototype.leafPrepend=function(o){var l=this.left.leafPrepend(o);if(l)return new t(l,this.right)},t.prototype.appendInner=function(o){return this.left.depth>=Math.max(this.right.depth,o.depth)+1?new t(this.left,new t(this.right,o)):new t(this,o)},t}(Ut);const ST=500;class pn{constructor(t,n){this.items=t,this.eventCount=n}popEvent(t,n){if(this.eventCount==0)return null;let o=this.items.length;for(;;o--)if(this.items.get(o-1).selection){--o;break}let l,s;n&&(l=this.remapping(o,this.items.length),s=l.maps.length);let a=t.tr,i,u,r=[],c=[];return this.items.forEach((d,R)=>{if(!d.step){l||(l=this.remapping(o,R+1),s=l.maps.length),s--,c.push(d);return}if(l){c.push(new Xn(d.map));let p=d.step.map(l.slice(s)),f;p&&a.maybeStep(p).doc&&(f=a.mapping.maps[a.mapping.maps.length-1],r.push(new Xn(f,void 0,void 0,r.length+c.length))),s--,f&&l.appendMap(f,s)}else a.maybeStep(d.step);if(d.selection)return i=l?d.selection.map(l.slice(s)):d.selection,u=new pn(this.items.slice(0,o).append(c.reverse().concat(r)),this.eventCount-1),!1},this.items.length,0),{remaining:u,transform:a,selection:i}}addTransform(t,n,o,l){let s=[],a=this.eventCount,i=this.items,u=!l&&i.length?i.get(i.length-1):null;for(let c=0;c<t.steps.length;c++){let d=t.steps[c].invert(t.docs[c]),R=new Xn(t.mapping.maps[c],d,n),p;(p=u&&u.merge(R))&&(R=p,c?s.pop():i=i.slice(0,i.length-1)),s.push(R),n&&(a++,n=void 0),l||(u=R)}let r=a-o.depth;return r>PT&&(i=OT(i,r),a-=r),new pn(i.append(s),a)}remapping(t,n){let o=new qf;return this.items.forEach((l,s)=>{let a=l.mirrorOffset!=null&&s-l.mirrorOffset>=t?o.maps.length-l.mirrorOffset:void 0;o.appendMap(l.map,a)},t,n),o}addMaps(t){return this.eventCount==0?this:new pn(this.items.append(t.map(n=>new Xn(n))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;let o=[],l=Math.max(0,this.items.length-n),s=t.mapping,a=t.steps.length,i=this.eventCount;this.items.forEach(R=>{R.selection&&i--},l);let u=n;this.items.forEach(R=>{let p=s.getMirror(--u);if(p==null)return;a=Math.min(a,p);let f=s.maps[p];if(R.step){let h=t.steps[p].invert(t.docs[p]),P=R.selection&&R.selection.map(s.slice(u+1,p));P&&i++,o.push(new Xn(f,h,P))}else o.push(new Xn(f))},l);let r=[];for(let R=n;R<a;R++)r.push(new Xn(s.maps[R]));let c=this.items.slice(0,l).append(r).append(o),d=new pn(c,i);return d.emptyItemCount()>ST&&(d=d.compress(this.items.length-o.length)),d}emptyItemCount(){let t=0;return this.items.forEach(n=>{n.step||t++}),t}compress(t=this.items.length){let n=this.remapping(0,t),o=n.maps.length,l=[],s=0;return this.items.forEach((a,i)=>{if(i>=t)l.push(a),a.selection&&s++;else if(a.step){let u=a.step.map(n.slice(o)),r=u&&u.getMap();if(o--,r&&n.appendMap(r,o),u){let c=a.selection&&a.selection.map(n.slice(o));c&&s++;let d=new Xn(r.invert(),u,c),R,p=l.length-1;(R=l.length&&l[p].merge(d))?l[p]=R:l.push(d)}}else a.map&&o--},this.items.length,0),new pn(Ut.from(l.reverse()),s)}}pn.empty=new pn(Ut.empty,0);function OT(e,t){let n;return e.forEach((o,l)=>{if(o.selection&&t--==0)return n=l,!1}),e.slice(n)}class Xn{constructor(t,n,o,l){this.map=t,this.step=n,this.selection=o,this.mirrorOffset=l}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new Xn(n.getMap().invert(),n,this.selection)}}}class Bn{constructor(t,n,o,l,s){this.done=t,this.undone=n,this.prevRanges=o,this.prevTime=l,this.prevComposition=s}}const PT=20;function NT(e,t,n,o){let l=n.getMeta(so),s;if(l)return l.historyState;n.getMeta(TT)&&(e=new Bn(e.done,e.undone,null,0,-1));let a=n.getMeta("appendedTransaction");if(n.steps.length==0)return e;if(a&&a.getMeta(so))return a.getMeta(so).redo?new Bn(e.done.addTransform(n,void 0,o,os(t)),e.undone,Ku(n.mapping.maps[n.steps.length-1]),e.prevTime,e.prevComposition):new Bn(e.done,e.undone.addTransform(n,void 0,o,os(t)),null,e.prevTime,e.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(a&&a.getMeta("addToHistory")===!1)){let i=n.getMeta("composition"),u=e.prevTime==0||!a&&e.prevComposition!=i&&(e.prevTime<(n.time||0)-o.newGroupDelay||!XT(n,e.prevRanges)),r=a?pa(e.prevRanges,n.mapping):Ku(n.mapping.maps[n.steps.length-1]);return new Bn(e.done.addTransform(n,u?t.selection.getBookmark():void 0,o,os(t)),pn.empty,r,n.time,i??e.prevComposition)}else return(s=n.getMeta("rebased"))?new Bn(e.done.rebased(n,s),e.undone.rebased(n,s),pa(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new Bn(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),pa(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function XT(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((o,l)=>{for(let s=0;s<t.length;s+=2)o<=t[s+1]&&l>=t[s]&&(n=!0)}),n}function Ku(e){let t=[];return e.forEach((n,o,l,s)=>t.push(l,s)),t}function pa(e,t){if(!e)return null;let n=[];for(let o=0;o<e.length;o+=2){let l=t.map(e[o],1),s=t.map(e[o+1],-1);l<=s&&n.push(l,s)}return n}function RR(e,t,n,o){let l=os(t),s=so.get(t).spec.config,a=(o?e.undone:e.done).popEvent(t,l);if(!a)return;let i=a.selection.resolve(a.transform.doc),u=(o?e.done:e.undone).addTransform(a.transform,t.selection.getBookmark(),s,l),r=new Bn(o?u:a.remaining,o?a.remaining:u,null,0,-1);n(a.transform.setSelection(i).setMeta(so,{redo:o,historyState:r}).scrollIntoView())}let ha=!1,_u=null;function os(e){let t=e.plugins;if(_u!=t){ha=!1,_u=t;for(let n=0;n<t.length;n++)if(t[n].spec.historyPreserveItems){ha=!0;break}}return ha}const so=new Rc("history"),TT=new Rc("closeHistory");function VT(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new ll({key:so,state:{init(){return new Bn(pn.empty,pn.empty,null,0,-1)},apply(t,n,o){return NT(n,o,t,e)}},config:e,props:{handleDOMEvents:{beforeinput(t,n){let o=n.inputType,l=o=="historyUndo"?fR:o=="historyRedo"?pR:null;return l?(n.preventDefault(),l(t.state,t.dispatch)):!1}}}})}const fR=(e,t)=>{let n=so.getState(e);return!n||n.done.eventCount==0?!1:(t&&RR(n,e,t,!1),!0)},pR=(e,t)=>{let n=so.getState(e);return!n||n.undone.eventCount==0?!1:(t&&RR(n,e,t,!0),!0)};function yT(e={}){return new ll({view(t){return new LT(t,e)}})}class LT{constructor(t,n){var o;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(o=n.width)!==null&&o!==void 0?o:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(l=>{let s=a=>{this[l](a)};return t.dom.addEventListener(l,s),{name:l,handler:s}})}destroy(){this.handlers.forEach(({name:t,handler:n})=>this.editorView.dom.removeEventListener(t,n))}update(t,n){this.cursorPos!=null&&n.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,t==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let t=this.editorView.state.doc.resolve(this.cursorPos),n=!t.parent.inlineContent,o;if(n){let i=t.nodeBefore,u=t.nodeAfter;if(i||u){let r=this.editorView.nodeDOM(this.cursorPos-(i?i.nodeSize:0));if(r){let c=r.getBoundingClientRect(),d=i?c.bottom:c.top;i&&u&&(d=(d+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),o={left:c.left,right:c.right,top:d-this.width/2,bottom:d+this.width/2}}}}if(!o){let i=this.editorView.coordsAtPos(this.cursorPos);o={left:i.left-this.width/2,right:i.left+this.width/2,top:i.top,bottom:i.bottom}}let l=this.editorView.dom.offsetParent;this.element||(this.element=l.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let s,a;if(!l||l==document.body&&getComputedStyle(l).position=="static")s=-pageXOffset,a=-pageYOffset;else{let i=l.getBoundingClientRect();s=i.left-l.scrollLeft,a=i.top-l.scrollTop}this.element.style.left=o.left-s+"px",this.element.style.top=o.top-a+"px",this.element.style.width=o.right-o.left+"px",this.element.style.height=o.bottom-o.top+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t)}dragover(t){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),o=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),l=o&&o.type.spec.disableDropCursor,s=typeof l=="function"?l(this.editorView,n,t):l;if(n&&!s){let a=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let i=cc(this.editorView.state.doc,a,this.editorView.dragging.slice);i!=null&&(a=i)}this.setCursor(a),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){(t.target==this.editorView.dom||!this.editorView.dom.contains(t.relatedTarget))&&this.setCursor(null)}}class pt extends vn{constructor(t){super(t,t)}map(t,n){let o=t.resolve(n.map(this.head));return pt.valid(o)?new pt(o):vn.near(o)}content(){return $t.empty}eq(t){return t instanceof pt&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new pt(t.resolve(n.pos))}getBookmark(){return new Qi(this.anchor)}static valid(t){let n=t.parent;if(n.isTextblock||!bT(t)||!IT(t))return!1;let o=n.type.spec.allowGapCursor;if(o!=null)return o;let l=n.contentMatchAt(t.index()).defaultType;return l&&l.isTextblock}static findGapCursorFrom(t,n,o=!1){e:for(;;){if(!o&&pt.valid(t))return t;let l=t.pos,s=null;for(let a=t.depth;;a--){let i=t.node(a);if(n>0?t.indexAfter(a)<i.childCount:t.index(a)>0){s=i.child(n>0?t.indexAfter(a):t.index(a)-1);break}else if(a==0)return null;l+=n;let u=t.doc.resolve(l);if(pt.valid(u))return u}for(;;){let a=n>0?s.firstChild:s.lastChild;if(!a){if(s.isAtom&&!s.isText&&!ut.isSelectable(s)){t=t.doc.resolve(l+s.nodeSize*n),o=!1;continue e}break}s=a,l+=n;let i=t.doc.resolve(l);if(pt.valid(i))return i}return null}}}pt.prototype.visible=!1;pt.findFrom=pt.findGapCursorFrom;vn.jsonID("gapcursor",pt);class Qi{constructor(t){this.pos=t}map(t){return new Qi(t.map(this.pos))}resolve(t){let n=t.resolve(this.pos);return pt.valid(n)?new pt(n):vn.near(n)}}function bT(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),o=e.node(t);if(n==0){if(o.type.spec.isolating)return!0;continue}for(let l=o.child(n-1);;l=l.lastChild){if(l.childCount==0&&!l.inlineContent||l.isAtom||l.type.spec.isolating)return!0;if(l.inlineContent)return!1}}return!0}function IT(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),o=e.node(t);if(n==o.childCount){if(o.type.spec.isolating)return!0;continue}for(let l=o.child(n);;l=l.firstChild){if(l.childCount==0&&!l.inlineContent||l.isAtom||l.type.spec.isolating)return!0;if(l.inlineContent)return!1}}return!0}function YT(){return new ll({props:{decorations:FT,createSelectionBetween(e,t,n){return t.pos==n.pos&&pt.valid(n)?new pt(n):null},handleClick:UT,handleKeyDown:WT,handleDOMEvents:{beforeinput:QT}}})}const WT=cR({ArrowLeft:zl("horiz",-1),ArrowRight:zl("horiz",1),ArrowUp:zl("vert",-1),ArrowDown:zl("vert",1)});function zl(e,t){const n=e=="vert"?t>0?"down":"up":t>0?"right":"left";return function(o,l,s){let a=o.selection,i=t>0?a.$to:a.$from,u=a.empty;if(a instanceof Zt){if(!s.endOfTextblock(n)||i.depth==0)return!1;u=!1,i=o.doc.resolve(t>0?i.after():i.before())}let r=pt.findGapCursorFrom(i,t,u);return r?(l&&l(o.tr.setSelection(new pt(r))),!0):!1}}function UT(e,t,n){if(!e||!e.editable)return!1;let o=e.state.doc.resolve(t);if(!pt.valid(o))return!1;let l=e.posAtCoords({left:n.clientX,top:n.clientY});return l&&l.inside>-1&&ut.isSelectable(e.state.doc.nodeAt(l.inside))?!1:(e.dispatch(e.state.tr.setSelection(new pt(o))),!0)}function QT(e,t){if(t.inputType!="insertCompositionText"||!(e.state.selection instanceof pt))return!1;let{$from:n}=e.state.selection,o=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!o)return!1;let l=ot.empty;for(let a=o.length-1;a>=0;a--)l=ot.from(o[a].createAndFill(null,l));let s=e.state.tr.replace(n.pos,n.pos,new $t(l,0,0));return s.setSelection(Zt.near(s.doc.resolve(n.pos+1))),e.dispatch(s),!1}function FT(e){if(!(e.selection instanceof pt))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",Pt.create(e.doc,[sn.widget(e.selection.head,t,{key:"gapcursor"})])}const ZT=["li",0],AT={parseDOM:[{tag:"li"}],toDOM(){return ZT},defining:!0};function KT(e,t=null){return function(n,o){let{$from:l,$to:s}=n.selection,a=l.blockRange(s),i=!1,u=a;if(!a)return!1;if(a.depth>=2&&l.node(a.depth-1).type.compatibleContent(e)&&a.startIndex==0){if(l.index(a.depth-1)==0)return!1;let c=n.doc.resolve(a.start-2);u=new Oa(c,c,a.depth),a.endIndex<a.parent.childCount&&(a=new Oa(l,n.doc.resolve(s.end(a.depth)),a.depth)),i=!0}let r=fc(u,e,t,a);return r?(o&&o(_T(n.tr,a,r,i,e).scrollIntoView()),!0):!1}}function _T(e,t,n,o,l){let s=ot.empty;for(let c=n.length-1;c>=0;c--)s=ot.from(n[c].type.create(n[c].attrs,s));e.step(new Ls(t.start-(o?2:0),t.end,t.start,t.end,new $t(s,0,0),n.length,!0));let a=0;for(let c=0;c<n.length;c++)n[c].type==l&&(a=c+1);let i=n.length-a,u=t.start+n.length-(o?2:0),r=t.parent;for(let c=t.startIndex,d=t.endIndex,R=!0;c<d;c++,R=!1)!R&&pc(e.doc,u,i)&&(e.split(u,i),u+=2*i),u+=r.child(c).nodeSize;return e}function HT(e,t){return function(n,o){let{$from:l,$to:s,node:a}=n.selection;if(a&&a.isBlock||l.depth<2||!l.sameParent(s))return!1;let i=l.node(-1);if(i.type!=e)return!1;if(l.parent.content.size==0&&l.node(-1).childCount==l.indexAfter(-1)){if(l.depth==3||l.node(-3).type!=e||l.index(-2)!=l.node(-2).childCount-1)return!1;if(o){let d=ot.empty,R=l.index(-1)?1:l.index(-2)?2:3;for(let O=l.depth-R;O>=l.depth-3;O--)d=ot.from(l.node(O).copy(d));let p=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3;d=d.append(ot.from(e.createAndFill()));let f=l.before(l.depth-(R-1)),h=n.tr.replace(f,l.after(-p),new $t(d,4-R,0)),P=-1;h.doc.nodesBetween(f,h.doc.content.size,(O,L)=>{if(P>-1)return!1;O.isTextblock&&O.content.size==0&&(P=L+1)}),P>-1&&h.setSelection(vn.near(h.doc.resolve(P))),o(h.scrollIntoView())}return!0}let u=s.pos==l.end()?i.contentMatchAt(0).defaultType:null,r=n.tr.delete(l.pos,s.pos),c=u?[null,{type:u}]:void 0;return pc(r.doc,l.pos,2,c)?(o&&o(r.split(l.pos,2,c).scrollIntoView()),!0):!1}}function hR(e){return function(t,n){let{$from:o,$to:l}=t.selection,s=o.blockRange(l,a=>a.childCount>0&&a.firstChild.type==e);return s?n?o.node(s.depth-1).type==e?CT(t,n,e,s):GT(t,n,s):!0:!1}}function CT(e,t,n,o){let l=e.tr,s=o.end,a=o.$to.end(o.depth);s<a&&(l.step(new Ls(s-1,a,s,a,new $t(ot.from(n.create(null,o.parent.copy())),1,0),1,!0)),o=new Oa(l.doc.resolve(o.$from.pos),l.doc.resolve(a),o.depth));const i=ep(o);if(i==null)return!1;l.lift(o,i);let u=l.mapping.map(s,-1)-1;return hc(l.doc,u)&&l.join(u),t(l.scrollIntoView()),!0}function GT(e,t,n){let o=e.tr,l=n.parent;for(let p=n.end,f=n.endIndex-1,h=n.startIndex;f>h;f--)p-=l.child(f).nodeSize,o.delete(p-1,p+1);let s=o.doc.resolve(n.start),a=s.nodeAfter;if(o.mapping.map(n.end)!=n.start+s.nodeAfter.nodeSize)return!1;let i=n.startIndex==0,u=n.endIndex==l.childCount,r=s.node(-1),c=s.index(-1);if(!r.canReplace(c+(i?0:1),c+1,a.content.append(u?ot.empty:ot.from(l))))return!1;let d=s.pos,R=d+a.nodeSize;return o.step(new Ls(d-(i?1:0),R+(u?1:0),d+1,R-1,new $t((i?ot.empty:ot.from(l.copy(ot.empty))).append(u?ot.empty:ot.from(l.copy(ot.empty))),i?0:1,u?0:1),i?0:1)),t(o.scrollIntoView()),!0}function Hu(e){return function(t,n){let{$from:o,$to:l}=t.selection,s=o.blockRange(l,r=>r.childCount>0&&r.firstChild.type==e);if(!s)return!1;let a=s.startIndex;if(a==0)return!1;let i=s.parent,u=i.child(a-1);if(u.type!=e)return!1;if(n){let r=u.lastChild&&u.lastChild.type==i.type,c=ot.from(r?e.create():null),d=new $t(ot.from(e.create(null,ot.from(i.type.create(null,c)))),r?3:1,0),R=s.start,p=s.end;n(t.tr.step(new Ls(R-(r?3:1),p,R,p,d,1,!0)).scrollIntoView())}return!0}}class Cn{constructor(t,n,o={}){this.match=t,this.match=t,this.handler=typeof n=="string"?ET(n):n,this.undoable=o.undoable!==!1,this.inCode=o.inCode||!1}}function ET(e){return function(t,n,o,l){let s=e;if(n[1]){let a=n[0].lastIndexOf(n[1]);s+=n[0].slice(a+n[1].length),o+=a;let i=o-l;i>0&&(s=n[0].slice(a-i,a)+s,o=l)}return t.tr.insertText(s,o,l)}}const wT=500;function kT({rules:e}){let t=new ll({state:{init(){return null},apply(n,o){let l=n.getMeta(this);return l||(n.selectionSet||n.docChanged?null:o)}},props:{handleTextInput(n,o,l,s){return Cu(n,o,l,s,e,t)},handleDOMEvents:{compositionend:n=>{setTimeout(()=>{let{$cursor:o}=n.state.selection;o&&Cu(n,o.pos,o.pos,"",e,t)})}}},isInputRules:!0});return t}function Cu(e,t,n,o,l,s){if(e.composing)return!1;let a=e.state,i=a.doc.resolve(t),u=i.parent.textBetween(Math.max(0,i.parentOffset-wT),i.parentOffset,null,"")+o;for(let r=0;r<l.length;r++){let c=l[r];if(i.parent.type.spec.code){if(!c.inCode)continue}else if(c.inCode==="only")continue;let d=c.match.exec(u),R=d&&c.handler(a,d,t-(d[0].length-o.length),n);if(R)return c.undoable&&R.setMeta(s,{transform:R,from:t,to:n,text:o}),e.dispatch(R),!0}return!1}const JT=(e,t)=>{let n=e.plugins;for(let o=0;o<n.length;o++){let l=n[o],s;if(l.spec.isInputRules&&(s=l.getState(e))){if(t){let a=e.tr,i=s.transform;for(let u=i.steps.length-1;u>=0;u--)a.step(i.steps[u].invert(i.docs[u]));if(s.text){let u=a.doc.resolve(s.from).marks();a.replaceWith(s.from,s.to,e.schema.text(s.text,u))}else a.delete(s.from,s.to);t(a)}return!0}}return!1},xT=new Cn(/--$/,"—"),$T=new Cn(/\.\.\.$/,"…"),DT=new Cn(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“"),BT=new Cn(/"$/,"”"),zT=new Cn(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘"),jT=new Cn(/'$/,"’"),qT=[DT,BT,zT,jT];function Fi(e,t,n=null,o){return new Cn(e,(l,s,a,i)=>{let u=n instanceof Function?n(s):n,r=l.tr.delete(a,i),c=r.doc.resolve(a),d=c.blockRange(),R=d&&fc(d,t,u);if(!R)return null;r.wrap(d,R);let p=r.doc.resolve(a-1).nodeBefore;return p&&p.type==t&&hc(r.doc,a-1)&&(!o||o(s,p))&&r.join(a-1),r})}const e0=e=>{const t={},n=(o,l)=>t[o]=l;return n("Alt-ArrowUp",np),n("Alt-ArrowDown",op),n("Mod-z",fR),n("Mod-y",pR),n("Backspace",JT),n("Escape",lp),n("Mod-b",St(e.marks.strong)),n("Mod-i",St(e.marks.em)),n("Mod-u",St(e.marks.underline)),n("Mod-d",St(e.marks.strikethrough)),n("Mod-e",St(e.marks.code)),n("Mod-;",St(e.marks.superscript)),n("Mod-'",St(e.marks.subscript)),n("Enter",tp(HT(e.nodes.list_item),rp,ip,ap,sp)),n("Mod-[",hR(e.nodes.list_item)),n("Mod-]",Hu(e.nodes.list_item)),n("Tab",Hu(e.nodes.list_item)),t},t0=e=>Fi(/^\s*>\s$/,e),n0=e=>Fi(/^(\d+)\.\s$/,e,t=>({order:+t[1]}),(t,n)=>n.childCount+n.attrs.order===+t[1]),o0=e=>Fi(/^\s*([-+*])\s$/,e),l0=()=>{const e=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/;return new Cn(e,(t,n,o,l)=>{const{schema:s}=t,a=t.tr.insertText(`${n[2]} `,o,l),i=s.marks.code.create();return a.addMark(o,o+n[2].length,i)})},s0=()=>{const e=/(?:https?:\/\/)?[\w-]+(?:\.[\w-]+)+\.?(?:\d+)?(?:\/\S*)?$/;return new Cn(e,(t,n,o,l)=>{const{schema:s}=t,a=t.tr.insertText(n[0],o,l),i=s.marks.link.create({href:n[0],title:n[0]});return a.addMark(o,o+n[0].length,i)})},a0=e=>{const t=[...qT,$T,xT];return t.push(t0(e.nodes.blockquote)),t.push(n0(e.nodes.ordered_list)),t.push(o0(e.nodes.bullet_list)),t.push(l0()),t.push(s0()),kT({rules:t})},i0=e=>e.type.name==="paragraph"&&e.nodeSize===2,r0=e=>new ll({props:{decorations(t){const{$from:n}=t.selection;if(i0(n.parent)){const o=sn.node(n.before(),n.after(),{"data-placeholder":e});return Pt.create(t.doc,[o])}}}}),u0=(e,t)=>{const n=t==null?void 0:t.placeholder,o=[a0(e),Au(e0(e)),Au(up),yT(),YT(),VT()];return n&&o.push(r0(n)),o},c0=["p",0],d0=["blockquote",0],R0=["hr"],f0=["pre",["code",0]],p0=["br"],vR={doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM(){return c0}},blockquote:{content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote"}],toDOM(){return d0}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM(){return R0}},heading:{attrs:{level:{default:1,validate:"number"}},content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"h1",attrs:{level:1}},{tag:"h2",attrs:{level:2}},{tag:"h3",attrs:{level:3}},{tag:"h4",attrs:{level:4}},{tag:"h5",attrs:{level:5}},{tag:"h6",attrs:{level:6}}],toDOM(e){return["h"+e.attrs.level,0]}},code_block:{content:"text*",marks:"",group:"block",code:!0,defining:!0,parseDOM:[{tag:"pre",preserveWhitespace:"full"}],toDOM(){return f0}},text:{group:"inline"},image:{inline:!0,attrs:{src:{validate:"string"},alt:{default:null,validate:"string|null"},title:{default:null,validate:"string|null"}},group:"inline",draggable:!0,parseDOM:[{tag:"img[src]",getAttrs(e){return{src:e.getAttribute("src"),title:e.getAttribute("title"),alt:e.getAttribute("alt")}}}],toDOM(e){let{src:t,alt:n,title:o}=e.attrs;return["img",{src:t,alt:n,title:o}]}},hard_break:{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM(){return p0}}},h0=["em",0],v0=["strong",0],m0=["code",0],mR={link:{attrs:{href:{validate:"string"},title:{default:null,validate:"string|null"}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs(e){return{href:e.getAttribute("href"),title:e.getAttribute("title")}}}],toDOM(e){let{href:t,title:n}=e.attrs;return["a",{href:t,title:n},0]}},em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"},{style:"font-style=normal",clearMark:e=>e.type.name=="em"}],toDOM(){return h0}},strong:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:e=>e.style.fontWeight!="normal"&&null},{style:"font-weight=400",clearMark:e=>e.type.name=="strong"},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}],toDOM(){return v0}},code:{parseDOM:[{tag:"code"}],toDOM(){return m0}}};new vc({nodes:vR,marks:mR});const M0={attrs:{order:{default:1},listStyleType:{default:""},fontsize:{default:""},color:{default:""}},content:"list_item+",group:"block",parseDOM:[{tag:"ol",getAttrs:e=>{const n={order:+((e.hasAttribute("start")?e.getAttribute("start"):1)||1)},{listStyleType:o,fontSize:l,color:s}=e.style;return o&&(n.listStyleType=o),l&&(n.fontsize=l),s&&(n.color=s),n}}],toDOM:e=>{const{order:t,listStyleType:n,fontsize:o,color:l}=e.attrs;let s="";n&&(s+=`list-style-type: ${n};`),o&&(s+=`font-size: ${o};`),l&&(s+=`color: ${l};`);const a={style:s};return t!==1&&(a.start=t),["ol",a,0]}},g0={attrs:{listStyleType:{default:""},fontsize:{default:""},color:{default:""}},content:"list_item+",group:"block",parseDOM:[{tag:"ul",getAttrs:e=>{const t={},{listStyleType:n,fontSize:o,color:l}=e.style;return n&&(t.listStyleType=n),o&&(t.fontsize=o),l&&(t.color=l),t}}],toDOM:e=>{const{listStyleType:t,fontsize:n,color:o}=e.attrs;let l="";return t&&(l+=`list-style-type: ${t};`),n&&(l+=`font-size: ${n};`),o&&(l+=`color: ${o};`),["ul",{style:l},0]}},S0={...AT,content:"paragraph block*",group:"block"},O0={attrs:{align:{default:""},indent:{default:0},textIndent:{default:0}},content:"inline*",group:"block",parseDOM:[{tag:"p",getAttrs:e=>{const{textAlign:t,textIndent:n}=e.style;let o=e.getAttribute("align")||t||"";o=/(left|right|center|justify)/.test(o)?o:"";let l=0;n&&(/em/.test(n)?l=parseInt(n):/px/.test(n)&&(l=Math.floor(parseInt(n)/20),l||(l=1)));const s=+(e.getAttribute("data-indent")||0);return{align:o,indent:s,textIndent:l}}},{tag:"img",ignore:!0},{tag:"pre",skip:!0}],toDOM:e=>{const{align:t,indent:n,textIndent:o}=e.attrs;let l="";t&&t!=="left"&&(l+=`text-align: ${t};`),o&&(l+=`text-indent: ${o*20}px;`);const s={style:l};return n&&(s["data-indent"]=n),["p",s,0]}},{doc:P0,blockquote:N0,text:X0}=vR,T0={doc:P0,paragraph:O0,blockquote:N0,text:X0,ordered_list:M0,bullet_list:g0,list_item:S0},V0={excludes:"subscript",parseDOM:[{tag:"sub"},{style:"vertical-align",getAttrs:e=>e==="sub"&&null}],toDOM:()=>["sub",0]},y0={excludes:"superscript",parseDOM:[{tag:"sup"},{style:"vertical-align",getAttrs:e=>e==="super"&&null}],toDOM:()=>["sup",0]},L0={parseDOM:[{tag:"strike"},{style:"text-decoration",getAttrs:e=>e==="line-through"&&null},{style:"text-decoration-line",getAttrs:e=>e==="line-through"&&null}],toDOM:()=>["span",{style:"text-decoration-line: line-through;"},0]},b0={parseDOM:[{tag:"u"},{style:"text-decoration",getAttrs:e=>e==="underline"&&null},{style:"text-decoration-line",getAttrs:e=>e==="underline"&&null}],toDOM:()=>["span",{style:"text-decoration: underline;"},0]},I0={attrs:{color:{}},inline:!0,group:"inline",parseDOM:[{style:"color",getAttrs:e=>e?{color:e}:{}}],toDOM:e=>{const{color:t}=e.attrs;let n="";return t&&(n+=`color: ${t};`),["span",{style:n},0]}},Y0={attrs:{backcolor:{}},inline:!0,group:"inline",parseDOM:[{style:"background-color",getAttrs:e=>e?{backcolor:e}:{}}],toDOM:e=>{const{backcolor:t}=e.attrs;let n="";return t&&(n+=`background-color: ${t};`),["span",{style:n},0]}},W0={attrs:{fontsize:{}},inline:!0,group:"inline",parseDOM:[{style:"font-size",getAttrs:e=>e?{fontsize:e}:{}}],toDOM:e=>{const{fontsize:t}=e.attrs;let n="";return t&&(n+=`font-size: ${t};`),["span",{style:n},0]}},U0={attrs:{fontname:{}},inline:!0,group:"inline",parseDOM:[{style:"font-family",getAttrs:e=>({fontname:e&&typeof e=="string"?e.replace(/[\"\']/g,""):""})}],toDOM:e=>{const{fontname:t}=e.attrs;let n="";return t&&(n+=`font-family: ${t};`),["span",{style:n},0]}},Q0={attrs:{href:{},title:{default:null},target:{default:"_blank"}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:e=>{const t=e.getAttribute("href"),n=e.getAttribute("title");return{href:t,title:n}}}],toDOM:e=>["a",e.attrs,0]},F0={attrs:{index:{default:null}},parseDOM:[{tag:"mark",getAttrs:e=>({index:e.dataset.index})}],toDOM:e=>["mark",{"data-index":e.attrs.index},0]},{em:Z0,strong:A0,code:K0}=mR,_0={em:Z0,strong:A0,fontsize:W0,fontname:U0,code:K0,forecolor:I0,backcolor:Y0,subscript:V0,superscript:y0,strikethrough:L0,underline:b0,link:Q0,mark:F0},H0=T0,C0=_0,MR=new vc({nodes:H0,marks:C0}),Zi=e=>{const t=`<div>${e}</div>`,o=new window.DOMParser().parseFromString(t,"text/html").body.firstElementChild;return ti.fromSchema(MR).parse(o)},gR=(e,t,n,o)=>new cT(e,{state:cp.create({doc:Zi(t),plugins:u0(MR,o)}),...n});function G0(e){return{all:e=e||new Map,on:function(t,n){var o=e.get(t);o?o.push(n):e.set(t,[n])},off:function(t,n){var o=e.get(t);o&&(n?o.splice(o.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var o=e.get(t);o&&o.slice().map(function(l){l(n)}),(o=e.get("*"))&&o.slice().map(function(l){l(t,n)})}}}var Ht=(e=>(e.RICH_TEXT_COMMAND="RICH_TEXT_COMMAND",e.SYNC_RICH_TEXT_ATTRS_TO_STORE="SYNC_RICH_TEXT_ATTRS_TO_STORE",e.OPEN_CHART_DATA_EDITOR="OPEN_CHART_DATA_EDITOR",e.OPEN_LATEX_EDITOR="OPEN_LATEX_EDITOR",e))(Ht||{});const Jt=G0(),E0=(e,t,n)=>{const{selection:o,doc:l}=e;if(!o||!l)return e;const{from:s,to:a}=o,{nodes:i}=t,u=i.blockquote,r=i.list_item,c=i.paragraph,d=[];n=n||"";const R=new Set([u,r,c]);return l.nodesBetween(s,a,(p,f)=>{const h=p.type;return(p.attrs.align||"")!==n&&R.has(h)&&d.push({node:p,pos:f,nodeType:h}),!0}),d.length&&d.forEach(p=>{const{node:f,pos:h,nodeType:P}=p;let{attrs:O}=f;n?O={...O,align:n}:O={...O,align:null},e=e.setNodeMarkup(h,P,O,f.marks)}),e},w0=(e,t)=>{const{state:n}=e,{schema:o,selection:l}=n,s=E0(n.tr.setSelection(l),o,t);e.dispatch(s)};function k0(e,t,n,o){if(!e.doc)return e;const l=e.doc.nodeAt(t);if(!l)return e;const s=0,a=8;let i=(l.attrs[o]||0)+n;if(i<s&&(i=s),i>a&&(i=a),i===l.attrs[o])return e;const u={...l.attrs,[o]:i};return e.setNodeMarkup(t,l.type,u,l.marks)}const SR=(e,t,n,o)=>{const{selection:l,doc:s}=e;if(!l||!s||!(l instanceof Zt||l instanceof dc))return e;const{from:a,to:i}=l;return s.nodesBetween(a,i,(u,r)=>{const c=u.type;return c.name==="paragraph"||c.name==="blockquote"?(e=k0(e,r,n,o),!1):!ds(u,t)}),e},J0=(e,t)=>{const{state:n}=e,{schema:o,selection:l}=n,s=SR(n.tr.setSelection(l),o,t,"indent");return s.docChanged?(e.dispatch(s),!0):!1},x0=(e,t)=>{const{state:n}=e,{schema:o,selection:l}=n,s=SR(n.tr.setSelection(l),o,t,"textIndent");return s.docChanged?(e.dispatch(s),!0):!1},Ns=(e,t,n,o={})=>(l,s)=>{const{schema:a,selection:i}=l,{$from:u,$to:r}=i,c=u.blockRange(r);if(!c)return!1;const d=dp(p=>ds(p,a))(i);if(c.depth>=1&&d&&c.depth-d.depth<=1){if(d.node.type===e&&!n)return hR(t)(l,s);if(ds(d.node,a)&&e.validContent(d.node.content)){const{tr:p}=l,f={...d.node.attrs,...o};return n&&(f.listStyleType=n),p.setNodeMarkup(d.pos,e,f),s&&s(p),!1}}const R={...o};return n&&(R.listStyleType=n),KT(e,R)(l,s)},pl=(e,t)=>{const{state:n}=e,{schema:o,selection:l}=n,s=n.tr.setSelection(l),{doc:a}=s;if(!a)return s;const{from:i,to:u}=l;a.nodesBetween(i,u,(r,c)=>{if(ds(r,o)&&i-3<=c&&u+3>=c+r.nodeSize){const d=Array.isArray(t)?t:[t];for(const R of d)s.setNodeAttribute(c,R.key,R.value)}return!1}),e.dispatch(s)},$0=j({__name:"ProsemirrorEditor",props:{elementId:{},defaultColor:{},defaultFontName:{},value:{},editable:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1}},emits:["update","focus","blur","mousedown"],setup(e,{expose:t,emit:n}){const o=e,l=n,s=Xe(),{handleElementId:a,textFormatPainter:i,richTextAttrs:u}=oe(s),r=A();let c;const d=vt.debounce(function(M=!1){o.value.replace(/ style=\"\"/g,"")!==c.dom.innerHTML.replace(/ style=\"\"/g,"")&&l("update",{value:c.dom.innerHTML,ignore:M})},300,{trailing:!0}),R=()=>{s.setDisableHotkeysState(!0),l("focus")},p=()=>{s.setDisableHotkeysState(!1),l("blur")},f=vt.debounce(function(){const M=Pa(c,{color:o.defaultColor,fontname:o.defaultFontName});s.setRichtextAttrs(M)},30,{trailing:!0}),h=(M,y)=>{const{ctrlKey:W,shiftKey:T,metaKey:V}=y,b=W||T||V,Y=y.key.toUpperCase(),F=b&&(Y===Ye.Z||Y===Ye.Y);d(F),f()},P=_(()=>o.value);Oe(P,()=>{if(!c||c.hasFocus())return;const{doc:M,tr:y}=c.state;c.dispatch(y.replaceRangeWith(0,M.content.size,Zi(P.value)))}),Oe(()=>o.editable,()=>{c.setProps({editable:()=>o.editable})}),t({focus:()=>c.focus()});const L=({target:M,action:y})=>{if(!M&&a.value!==o.elementId||M&&M!==o.elementId)return;const W="command"in y?[y]:y;for(const T of W)if(T.command==="fontname"&&T.value){const V=c.state.schema.marks.fontname.create({fontname:T.value});Xt(c),Pn(c,V)}else if(T.command==="fontsize"&&T.value){const V=c.state.schema.marks.fontsize.create({fontsize:T.value});Xt(c),Pn(c,V),pl(c,{key:"fontsize",value:T.value})}else if(T.command==="fontsize-add"){const V=T.value?+T.value:2;Xt(c);const b=zi(c)+V+"px",Y=c.state.schema.marks.fontsize.create({fontsize:b});Pn(c,Y),pl(c,{key:"fontsize",value:b})}else if(T.command==="fontsize-reduce"){const V=T.value?+T.value:2;Xt(c);let b=zi(c)-V;b<12&&(b=12);const Y=c.state.schema.marks.fontsize.create({fontsize:b+"px"});Pn(c,Y),pl(c,{key:"fontsize",value:b+"px"})}else if(T.command==="color"&&T.value){const V=c.state.schema.marks.forecolor.create({color:T.value});Xt(c),Pn(c,V),pl(c,{key:"color",value:T.value})}else if(T.command==="backcolor"&&T.value){const V=c.state.schema.marks.backcolor.create({backcolor:T.value});Xt(c),Pn(c,V)}else if(T.command==="bold")Xt(c),St(c.state.schema.marks.strong)(c.state,c.dispatch);else if(T.command==="em")Xt(c),St(c.state.schema.marks.em)(c.state,c.dispatch);else if(T.command==="underline")Xt(c),St(c.state.schema.marks.underline)(c.state,c.dispatch);else if(T.command==="strikethrough")Xt(c),St(c.state.schema.marks.strikethrough)(c.state,c.dispatch);else if(T.command==="subscript")St(c.state.schema.marks.subscript)(c.state,c.dispatch);else if(T.command==="superscript")St(c.state.schema.marks.superscript)(c.state,c.dispatch);else if(T.command==="blockquote")Rp("blockquote",c.state)?fp(c.state,c.dispatch):pp(c.state.schema.nodes.blockquote)(c.state,c.dispatch);else if(T.command==="code")St(c.state.schema.marks.code)(c.state,c.dispatch);else if(T.command==="align"&&T.value)w0(c,T.value);else if(T.command==="indent"&&T.value)J0(c,+T.value);else if(T.command==="textIndent"&&T.value)x0(c,+T.value);else if(T.command==="bulletList"){const V=T.value||"",{bullet_list:b,list_item:Y}=c.state.schema.nodes,F={color:u.value.color,fontsize:u.value.fontsize};Ns(b,Y,V,F)(c.state,c.dispatch)}else if(T.command==="orderedList"){const V=T.value||"",{ordered_list:b,list_item:Y}=c.state.schema.nodes,F={color:u.value.color,fontsize:u.value.fontsize};Ns(b,Y,V,F)(c.state,c.dispatch)}else if(T.command==="clear"){Xt(c);const{$from:V,$to:b}=c.state.selection;c.dispatch(c.state.tr.removeMark(V.pos,b.pos)),pl(c,[{key:"fontsize",value:""},{key:"color",value:""}])}else if(T.command==="link"){const V=c.state.schema.marks.link,{from:b,to:Y}=c.state.selection,F=hp(c.state.doc,b,Y,V);if(F)if(T.value){const C=c.state.schema.marks.link.create({href:T.value,title:T.value});Pn(c,C,{from:F.from.pos,to:F.to.pos+1})}else c.dispatch(c.state.tr.removeMark(F.from.pos,F.to.pos+1,V));else if(vp(c.state,V))if(T.value){const C=c.state.schema.marks.link.create({href:T.value,title:T.value});Pn(c,C)}else St(V)(c.state,c.dispatch);else T.value&&(Xt(c),St(V,{href:T.value,title:T.value})(c.state,c.dispatch))}else T.command==="insert"&&T.value&&c.dispatch(c.state.tr.insertText(T.value));c.focus(),d(),f()},S=()=>{if(!i.value)return;const{keep:M,...y}=i.value,W=[{command:"clear"}];for(const T of Object.keys(y)){const V=T,b=i.value[T];b===!0?W.push({command:V}):b&&W.push({command:V,value:b})}L({action:W}),M||s.setTextFormatPainter(null)};Ee(()=>{c=gR(r.value,P.value,{handleDOMEvents:{focus:R,blur:p,keydown:h,click:f,mouseup:S},editable:()=>o.editable}),o.autoFocus&&c.focus()}),mt(()=>{c&&c.destroy()});const X=()=>{a.value===o.elementId&&f()};return Jt.on(Ht.RICH_TEXT_COMMAND,L),Jt.on(Ht.SYNC_RICH_TEXT_ATTRS_TO_STORE,X),mt(()=>{Jt.off(Ht.RICH_TEXT_COMMAND,L),Jt.off(Ht.SYNC_RICH_TEXT_ATTRS_TO_STORE,X)}),(M,y)=>(g(),I("div",{class:E(["prosemirror-editor",{"format-painter":v(i)}]),ref_key:"editorViewRef",ref:r,onMousedown:y[0]||(y[0]=W=>l("mousedown",W))},null,34))}}),OR=fe($0,[["__scopeId","data-v-69f4a3a5"]]),PR=e=>(Je("data-v-50e519ce"),e=e(),xe(),e),D0=PR(()=>m("div",{class:"drag-handler top"},null,-1)),B0=PR(()=>m("div",{class:"drag-handler bottom"},null,-1)),z0=j({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=Xe(),o=Ue(),{handleElementId:l,isScaling:s}=oe(n),{addHistorySnapshot:a}=He(),i=A(),u=_(()=>t.elementInfo.shadow),{shadowStyle:r}=Is(u),c=(L,S=!0)=>{t.elementInfo.lock||(L.stopPropagation(),t.selectElement(L,t.elementInfo,S))},d=A(-1),R=A(-1);Oe(s,()=>{l.value===t.elementInfo.id&&(s.value||(!t.elementInfo.vertical&&d.value!==-1&&(o.updateElement({id:t.elementInfo.id,props:{height:d.value}}),d.value=-1),t.elementInfo.vertical&&R.value!==-1&&(o.updateElement({id:t.elementInfo.id,props:{width:R.value}}),R.value=-1)))});const p=L=>{const S=L[0].contentRect;if(!i.value)return;const X=S.height+20,M=S.width+20;!t.elementInfo.vertical&&t.elementInfo.height!==X&&(s.value?d.value=X:o.updateElement({id:t.elementInfo.id,props:{height:X}})),t.elementInfo.vertical&&t.elementInfo.width!==M&&(s.value?R.value=M:o.updateElement({id:t.elementInfo.id,props:{width:M}}))},f=new ResizeObserver(p);Ee(()=>{i.value&&f.observe(i.value)}),mt(()=>{i.value&&f.unobserve(i.value)});const h=(L,S=!1)=>{o.updateElement({id:t.elementInfo.id,props:{content:L}}),S||a()},P=vt.debounce(function(){t.elementInfo.content.replace(/<[^>]+>/g,"")||o.deleteElement(t.elementInfo.id)},300,{trailing:!0}),O=_(()=>l.value===t.elementInfo.id);return Oe(O,()=>{O.value||P()}),(L,S)=>{const X=ze("contextmenu");return g(),I("div",{class:E(["editable-element-text",{lock:L.elementInfo.lock}]),style:ee({top:L.elementInfo.top+"px",left:L.elementInfo.left+"px",width:L.elementInfo.width+"px",height:L.elementInfo.height+"px"})},[m("div",{class:"rotate-wrapper",style:ee({transform:`rotate(${L.elementInfo.rotate}deg)`})},[de((g(),I("div",{class:"element-content",ref_key:"elementRef",ref:i,style:ee({width:L.elementInfo.vertical?"auto":L.elementInfo.width+"px",height:L.elementInfo.vertical?L.elementInfo.height+"px":"auto",backgroundColor:L.elementInfo.fill,opacity:L.elementInfo.opacity,textShadow:v(r),lineHeight:L.elementInfo.lineHeight,letterSpacing:(L.elementInfo.wordSpace||0)+"px",color:L.elementInfo.defaultColor,fontFamily:L.elementInfo.defaultFontName,writingMode:L.elementInfo.vertical?"vertical-rl":"horizontal-tb"}),onMousedown:S[2]||(S[2]=M=>c(M)),onTouchstart:S[3]||(S[3]=M=>c(M))},[N(Mc,{width:L.elementInfo.width,height:L.elementInfo.height,outline:L.elementInfo.outline},null,8,["width","height","outline"]),N(OR,{class:"text",elementId:L.elementInfo.id,defaultColor:L.elementInfo.defaultColor,defaultFontName:L.elementInfo.defaultFontName,editable:!L.elementInfo.lock,value:L.elementInfo.content,style:ee({"--paragraphSpace":`${L.elementInfo.paragraphSpace===void 0?5:L.elementInfo.paragraphSpace}px`}),onUpdate:S[0]||(S[0]=({value:M,ignore:y})=>h(M,y)),onMousedown:S[1]||(S[1]=M=>c(M,!1))},null,8,["elementId","defaultColor","defaultFontName","editable","value","style"]),D0,B0],36)),[[X,L.contextmenus]])],4)],6)}}}),j0=fe(z0,[["__scopeId","data-v-50e519ce"]]),q0=["width","height"],eV={key:0},tV=["transform"],nV=["d","fill","stroke","stroke-width","stroke-dasharray"],oV=j({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=Xe(),o=Ue(),{handleElementId:l,shapeFormatPainter:s}=oe(n),{addHistorySnapshot:a}=He(),i=(T,V=!0)=>{t.elementInfo.lock||(T.stopPropagation(),t.selectElement(T,t.elementInfo,V))},u=()=>{if(!s.value)return;const{keep:T,...V}=s.value;o.updateElement({id:t.elementInfo.id,props:V}),a(),T||n.setShapeFormatPainter(null)},r=_(()=>t.elementInfo.outline),{outlineWidth:c,outlineColor:d,strokeDashArray:R}=Wp(r),p=_(()=>t.elementInfo.shadow),{shadowStyle:f}=Is(p),h=_(()=>t.elementInfo.flipH),P=_(()=>t.elementInfo.flipV),{flipStyle:O}=mc(h,P),L=A(!1);Oe(l,()=>{l.value!==t.elementInfo.id&&L.value&&(L.value=!1)});const S=_(()=>{const T={content:"",defaultFontName:"微软雅黑",defaultColor:"#000",align:"middle"};return t.elementInfo.text?t.elementInfo.text:T}),X=(T,V=!1)=>{const b={...S.value,content:T};o.updateElement({id:t.elementInfo.id,props:{text:b}}),V||a()},M=()=>{if(!t.elementInfo.text)return;t.elementInfo.text.content.replace(/<[^>]+>/g,"")||(o.removeElementProps({id:t.elementInfo.id,propName:"text"}),a())},y=A(),W=()=>{L.value=!0,we(()=>y.value&&y.value.focus())};return(T,V)=>{const b=ze("contextmenu");return g(),I("div",{class:E(["editable-element-shape",{lock:T.elementInfo.lock,"format-painter":v(s)}]),style:ee({top:T.elementInfo.top+"px",left:T.elementInfo.left+"px",width:T.elementInfo.width+"px",height:T.elementInfo.height+"px"})},[m("div",{class:"rotate-wrapper",style:ee({transform:`rotate(${T.elementInfo.rotate}deg)`})},[de((g(),I("div",{class:"element-content",style:ee({opacity:T.elementInfo.opacity,filter:v(f)?`drop-shadow(${v(f)})`:"",transform:v(O),color:S.value.defaultColor,fontFamily:S.value.defaultFontName}),onMousedown:V[3]||(V[3]=Y=>i(Y)),onMouseup:V[4]||(V[4]=Y=>u()),onTouchstart:V[5]||(V[5]=Y=>i(Y)),onDblclick:V[6]||(V[6]=Y=>W())},[(g(),I("svg",{overflow:"visible",width:T.elementInfo.width,height:T.elementInfo.height},[T.elementInfo.gradient?(g(),I("defs",eV,[N(Up,{id:`editabel-gradient-${T.elementInfo.id}`,type:T.elementInfo.gradient.type,colors:T.elementInfo.gradient.colors,rotate:T.elementInfo.gradient.rotate},null,8,["id","type","colors","rotate"])])):z("",!0),m("g",{transform:`scale(${T.elementInfo.width/(T.elementInfo.viewBox[0]||T.elementInfo.viewBox)}, ${T.elementInfo.height/(T.elementInfo.viewBox[1]||T.elementInfo.viewBox)}) translate(0,0) matrix(1,0,0,1,0,0)`},[m("path",{class:"shape-path","vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",d:T.elementInfo.path,fill:T.elementInfo.gradient?`url(#editabel-gradient-${T.elementInfo.id})`:T.elementInfo.fill,stroke:v(d),"stroke-width":v(c),"stroke-dasharray":v(R)},null,8,nV)],8,tV)],8,q0)),m("div",{class:E(["shape-text",[S.value.align,{editable:L.value||S.value.content}]])},[L.value||S.value.content?(g(),k(OR,{key:0,ref_key:"prosemirrorEditorRef",ref:y,elementId:T.elementInfo.id,defaultColor:S.value.defaultColor,defaultFontName:S.value.defaultFontName,editable:!T.elementInfo.lock,value:S.value.content,onUpdate:V[0]||(V[0]=({value:Y,ignore:F})=>X(Y,F)),onBlur:V[1]||(V[1]=Y=>M()),onMousedown:V[2]||(V[2]=Y=>i(Y,!1))},null,8,["elementId","defaultColor","defaultFontName","editable","value"])):z("",!0)],2)],36)),[[b,T.contextmenus]])],4)],6)}}}),lV=fe(oV,[["__scopeId","data-v-ac679947"]]),sV=["width","height"],aV=["d","stroke","stroke-width","stroke-dasharray","marker-start","marker-end"],iV=["d"],rV=j({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=r=>{t.elementInfo.lock||(r.stopPropagation(),t.selectElement(r,t.elementInfo))},o=_(()=>t.elementInfo.shadow),{shadowStyle:l}=Is(o),s=_(()=>{const r=Math.abs(t.elementInfo.start[0]-t.elementInfo.end[0]);return r<24?24:r}),a=_(()=>{const r=Math.abs(t.elementInfo.start[1]-t.elementInfo.end[1]);return r<24?24:r}),i=_(()=>{const r=t.elementInfo.width;return t.elementInfo.style==="dashed"?r<=8?`${r*5} ${r*2.5}`:`${r*5} ${r*1.5}`:t.elementInfo.style==="dotted"?r<=8?`${r*1.8} ${r*1.6}`:`${r*1.5} ${r*1.2}`:"0 0"}),u=_(()=>Qp(t.elementInfo));return(r,c)=>{const d=ze("contextmenu");return g(),I("div",{class:E(["editable-element-shape",{lock:r.elementInfo.lock}]),style:ee({top:r.elementInfo.top+"px",left:r.elementInfo.left+"px"})},[m("div",{class:"element-content",style:ee({filter:v(l)?`drop-shadow(${v(l)})`:""}),onMousedown:c[0]||(c[0]=R=>n(R)),onTouchstart:c[1]||(c[1]=R=>n(R))},[(g(),I("svg",{overflow:"visible",width:s.value,height:a.value},[m("defs",null,[r.elementInfo.points[0]?(g(),k(fs,{key:0,id:r.elementInfo.id,position:"start",type:r.elementInfo.points[0],color:r.elementInfo.color,baseSize:r.elementInfo.width},null,8,["id","type","color","baseSize"])):z("",!0),r.elementInfo.points[1]?(g(),k(fs,{key:1,id:r.elementInfo.id,position:"end",type:r.elementInfo.points[1],color:r.elementInfo.color,baseSize:r.elementInfo.width},null,8,["id","type","color","baseSize"])):z("",!0)]),m("path",{class:"line-point",d:u.value,stroke:r.elementInfo.color,"stroke-width":r.elementInfo.width,"stroke-dasharray":i.value,fill:"none","marker-start":r.elementInfo.points[0]?`url(#${r.elementInfo.id}-${r.elementInfo.points[0]}-start)`:"","marker-end":r.elementInfo.points[1]?`url(#${r.elementInfo.id}-${r.elementInfo.points[1]}-end)`:""},null,8,aV),de(m("path",{class:"line-path",d:u.value,stroke:"transparent","stroke-width":"20",fill:"none"},null,8,iV),[[d,r.contextmenus]])],8,sV))],36)],6)}}}),uV=fe(rV,[["__scopeId","data-v-4bb147a5"]]),cV=j({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=l=>{t.elementInfo.lock||(l.stopPropagation(),t.selectElement(l,t.elementInfo))},o=()=>{Jt.emit(Ht.OPEN_CHART_DATA_EDITOR)};return(l,s)=>{const a=ze("contextmenu");return g(),I("div",{class:E(["editable-element-chart",{lock:l.elementInfo.lock}]),style:ee({top:l.elementInfo.top+"px",left:l.elementInfo.left+"px",width:l.elementInfo.width+"px",height:l.elementInfo.height+"px"})},[m("div",{class:"rotate-wrapper",style:ee({transform:`rotate(${l.elementInfo.rotate}deg)`})},[de((g(),I("div",{class:"element-content",style:ee({backgroundColor:l.elementInfo.fill}),onMousedown:s[0]||(s[0]=i=>n(i)),onTouchstart:s[1]||(s[1]=i=>n(i)),onDblclick:s[2]||(s[2]=i=>o())},[N(Mc,{width:l.elementInfo.width,height:l.elementInfo.height,outline:l.elementInfo.outline},null,8,["width","height","outline"]),N(Fp,{width:l.elementInfo.width,height:l.elementInfo.height,type:l.elementInfo.chartType,data:l.elementInfo.data,themeColors:l.elementInfo.themeColors,textColor:l.elementInfo.textColor,options:l.elementInfo.options},null,8,["width","height","type","data","themeColors","textColor","options"])],36)),[[a,l.contextmenus]])],4)],6)}}}),dV=fe(cV,[["__scopeId","data-v-3b1105a2"]]),RV=["innerHTML"],fV=j({__name:"CustomTextarea",props:{value:{default:""}},emits:["updateValue","insertExcelData"],setup(e,{emit:t}){const n=e,o=t,l=A(),s=A(""),a=A(!1);Oe(()=>n.value,()=>{a.value||(s.value=n.value,l.value&&(l.value.innerHTML=n.value))},{immediate:!0});const i=()=>{if(!l.value)return;const c=l.value.innerHTML;o("updateValue",c)},u=()=>{a.value=!0,l.value&&(l.value.onpaste=c=>{if(c.preventDefault(),!c.clipboardData)return;const d=c.clipboardData.items[0];d&&d.kind==="string"&&d.type==="text/plain"&&d.getAsString(R=>{if(typeof Si(R)=="object")return;const f=Pd(R);if(f){o("insertExcelData",f),l.value&&(l.value.innerHTML=f[0][0]);return}document.execCommand("insertText",!1,R)})})},r=()=>{a.value=!1,l.value&&(l.value.onpaste=null)};return Gt(()=>{l.value&&(l.value.onpaste=null)}),(c,d)=>(g(),I("div",{class:"custom-textarea",ref_key:"textareaRef",ref:l,contenteditable:!0,onFocus:d[0]||(d[0]=R=>u()),onBlur:d[1]||(d[1]=R=>r()),onInput:d[2]||(d[2]=R=>i()),innerHTML:s.value},null,40,RV))}}),pV=fe(fV,[["__scopeId","data-v-738bec9b"]]),hV={key:0,class:"handler"},vV=["onMousedown"],mV=["width"],MV=["rowspan","colspan","data-cell-index","onMousedown","onMouseenter"],gV=["innerHTML"],SV=j({__name:"EditableTable",props:{data:{},width:{},cellMinHeight:{},colWidths:{},outline:{},theme:{},editable:{type:Boolean,default:!0}},emits:["change","changeColWidths","changeSelectedCells"],setup(e,{emit:t}){const n=e,o=t,{canvasScale:l}=oe(Xe()),s=A(!1),a=A([]),i=A([]),u=_({get(){return n.data},set(w){o("change",w)}}),r=_(()=>n.theme),{subThemeColor:c}=Zp(r),d=A([]),R=_(()=>d.value.reduce((w,D)=>w+D));Oe([()=>n.colWidths,()=>n.width],()=>{d.value=n.colWidths.map(w=>w*n.width)},{immediate:!0});const p=()=>{a.value=[],i.value=[]};Oe(()=>n.editable,()=>{n.editable||p()});const f=_(()=>{const w=[];for(let D=1;D<d.value.length+1;D++){const Z=d.value.slice(0,D).reduce((J,re)=>J+re);w.push(Z)}return w}),h=_(()=>n.data),{hideCells:P}=Ap(h),O=_(()=>{if(!a.value.length)return[];const[w,D]=a.value;if(!i.value.length)return[`${w}_${D}`];const[Z,J]=i.value;if(w===Z&&D===J)return[`${w}_${D}`];const re=[],ue=Math.min(w,Z),Te=Math.min(D,J),Ae=Math.max(w,Z),Qe=Math.max(D,J);for(let Ne=0;Ne<u.value.length;Ne++){const he=u.value[Ne];for(let Le=0;Le<he.length;Le++)Ne>=ue&&Ne<=Ae&&Le>=Te&&Le<=Qe&&re.push(`${Ne}_${Le}`)}return re});Oe(O,(w,D)=>{vt.isEqual(w,D)||o("changeSelectedCells",O.value)});const L=_(()=>O.value.length>1?null:O.value[0]),S=()=>s.value=!1,X=(w,D,Z)=>{w.button===0&&(i.value=[],s.value=!0,a.value=[D,Z])},M=(w,D)=>{s.value&&(i.value=[w,D])};Ee(()=>{document.addEventListener("mouseup",S)}),mt(()=>{document.removeEventListener("mouseup",S)});const y=(w,D)=>P.value.includes(`${w}_${D}`),W=w=>{const D=u.value.length-1;a.value=[0,w],i.value=[D,w]},T=w=>{const D=u.value[w].length-1;a.value=[w,0],i.value=[w,D]},V=()=>{const w=u.value.length-1,D=u.value[w].length-1;a.value=[0,0],i.value=[w,D]},b=w=>{const D=JSON.parse(JSON.stringify(u.value)),Z=u.value[w],J=[];for(let re=0;re<Z.length;re++)y(w,re)&&J.push(re);for(const re of J)for(let ue=w;ue>=0;ue--)if(!y(ue,re)){D[ue][re].rowspan=D[ue][re].rowspan-1;break}D.splice(w,1),u.value=D},Y=w=>{const D=JSON.parse(JSON.stringify(u.value)),Z=[];for(let J=0;J<u.value.length;J++)y(J,w)&&Z.push(J);for(const J of Z)for(let re=w;re>=0;re--)if(!y(J,re)){D[J][re].colspan=D[J][re].colspan-1;break}u.value=D.map(J=>(J.splice(w,1),J)),d.value.splice(w,1),o("changeColWidths",d.value)},F=w=>{const D=JSON.parse(JSON.stringify(u.value)),Z=[];for(let J=0;J<D[0].length;J++)Z.push({colspan:1,rowspan:1,text:"",id:st(10)});D.splice(w,0,Z),u.value=D},C=w=>{u.value=u.value.map(D=>{const Z={colspan:1,rowspan:1,text:"",id:st(10)};return D.splice(w,0,Z),D}),d.value.splice(w,0,100),o("changeColWidths",d.value)},K=(w,D)=>{let Z=JSON.parse(JSON.stringify(u.value));const J={colspan:1,rowspan:1,text:""};if(w){const re=[];for(let ue=0;ue<w;ue++){const Te=[];for(let Ae=0;Ae<Z[0].length;Ae++)Te.push({...J,id:st(10)});re.push(Te)}Z=[...Z,...re]}D&&(Z=Z.map(re=>{const ue=[];for(let Te=0;Te<D;Te++){const Ae={...J,id:st(10)};ue.push(Ae)}return[...re,...ue]}),d.value=[...d.value,...new Array(D).fill(100)],o("changeColWidths",d.value)),u.value=Z},H=()=>{const[w,D]=a.value,[Z,J]=i.value,re=Math.min(w,Z),ue=Math.min(D,J),Te=Math.max(w,Z),Ae=Math.max(D,J),Qe=JSON.parse(JSON.stringify(u.value));Qe[re][ue].rowspan=Te-re+1,Qe[re][ue].colspan=Ae-ue+1,u.value=Qe,p()},Q=(w,D)=>{const Z=JSON.parse(JSON.stringify(u.value));Z[w][D].rowspan=1,Z[w][D].colspan=1,u.value=Z,p()},G=(w,D)=>{p();let Z=!0;const J=d.value[D],re=w.pageX,ue=50;document.onmousemove=Te=>{if(!Z)return;const Ae=(Te.pageX-re)/l.value,Qe=J+Ae<ue?ue:Math.round(J+Ae);d.value[D]=Qe},document.onmouseup=()=>{Z=!1,document.onmousemove=null,document.onmouseup=null,o("changeColWidths",d.value)}},$=()=>{const w=JSON.parse(JSON.stringify(u.value));for(let D=0;D<w.length;D++)for(let Z=0;Z<w[D].length;Z++)O.value.includes(`${D}_${Z}`)&&(w[D][Z].text="");u.value=w},se=()=>{we(()=>{const w=document.querySelector(".cell-text.active");w&&w.focus()})},Re=()=>{const w=(re,ue)=>u.value[re]?u.value[re][ue]?y(re,ue)?w(re,ue+1):[re,ue]:w(re+1,0):null;i.value=[];const D=a.value[0],Z=a.value[1]+1,J=w(D,Z);J?a.value=J:(F(D+1),a.value=[D+1,0]),se()},ae=w=>{const D=+O.value[0].split("_")[0],Z=+O.value[0].split("_")[1],J=u.value.length,re=u.value[0].length,ue=Te=>{if(Te[0]<0||Te[1]<0||Te[0]>J-1||Te[1]>re-1)return[0,0];const Ae=`${Te[0]}_${Te[1]}`;return P.value.includes(Ae)?w==="UP"?ue([Te[0],Te[1]-1]):w==="DOWN"?ue([Te[0],Te[1]-1]):w==="LEFT"?ue([Te[0]-1,Te[1]]):w==="RIGHT"?ue([Te[0]-1,Te[1]]):[0,0]:Te};if(w==="UP"){const Te=D-1;if(Te<0)return;i.value=[],a.value=ue([Te,Z])}else if(w==="DOWN"){const Te=D+1;if(Te>J-1)return;i.value=[],a.value=ue([Te,Z])}else if(w==="LEFT"){const Te=Z-1;if(Te<0)return;i.value=[],a.value=ue([D,Te])}else if(w==="RIGHT"){const Te=Z+1;if(Te>re-1)return;i.value=[],a.value=ue([D,Te])}se()},Pe=w=>{var Z;const D=window.getSelection();if(D&&D.rangeCount>0){const J=D.getRangeAt(0),re=J.cloneRange();re.selectNodeContents(w),re.setEnd(J.startContainer,J.startOffset);const ue=re.toString().length;re.setEnd(J.endContainer,J.endOffset);const Te=re.toString().length,Ae=((Z=w.textContent)==null?void 0:Z.length)||0;return{start:ue,end:Te,len:Ae}}return null},x=w=>{if(!n.editable||!O.value.length)return;const D=w.key.toUpperCase();if(O.value.length<2){if(D===Ye.TAB)w.preventDefault(),Re();else if(w.ctrlKey&&D===Ye.UP){w.preventDefault();const Z=+O.value[0].split("_")[0];F(Z)}else if(w.ctrlKey&&D===Ye.DOWN){w.preventDefault();const Z=+O.value[0].split("_")[0];F(Z+1)}else if(w.ctrlKey&&D===Ye.LEFT){w.preventDefault();const Z=+O.value[0].split("_")[1];C(Z)}else if(w.ctrlKey&&D===Ye.RIGHT){w.preventDefault();const Z=+O.value[0].split("_")[1];C(Z+1)}else if(D===Ye.UP){const Z=Pe(w.target);Z&&Z.start===Z.end&&Z.start===0&&ae("UP")}else if(D===Ye.DOWN){const Z=Pe(w.target);Z&&Z.start===Z.end&&Z.start===Z.len&&ae("DOWN")}else if(D===Ye.LEFT){const Z=Pe(w.target);Z&&Z.start===Z.end&&Z.start===0&&ae("LEFT")}else if(D===Ye.RIGHT){const Z=Pe(w.target);Z&&Z.start===Z.end&&Z.start===Z.len&&ae("RIGHT")}}else D===Ye.DELETE&&$()};Ee(()=>{document.addEventListener("keydown",x)}),mt(()=>{document.removeEventListener("keydown",x)});const B=vt.debounce(function(w,D,Z){u.value[D][Z].text=w,o("change",u.value)},300,{trailing:!0}),Ie=(w,D,Z)=>{const J=w.length,re=w[0].length;let ue=0,Te=0;D+J>u.value.length&&(ue=D+J-u.value.length),Z+re>u.value[0].length&&(Te=Z+re-u.value[0].length),(ue||Te)&&K(ue,Te),we(()=>{for(let Ae=0;Ae<J;Ae++)for(let Qe=0;Qe<re;Qe++)u.value[D+Ae][Z+Qe]&&(u.value[D+Ae][Z+Qe].text=w[Ae][Qe]);o("change",u.value)})},ce=()=>{const w=[];for(let D=0;D<u.value.length;D++){const Z=u.value[D],J=[];for(let re=0;re<Z.length;re++)y(D,re)||J.push(Z[re]);J.length&&w.push(J)}return w},q=()=>{const w=ce(),D=w.length>1,Z=w[0].length>1;return{canDeleteRow:D,canDeleteCol:Z}},ne=(w,D)=>{const Z=O.value.length>1,J=u.value[w][D],re=Z,ue=!Z&&(J.rowspan>1||J.colspan>1);return{canMerge:re,canSplit:ue}},Se=w=>{const D=w.dataset.cellIndex,Z=+D.split("_")[0],J=+D.split("_")[1];O.value.includes(`${Z}_${J}`)||(a.value=[Z,J],i.value=[]);const{canMerge:re,canSplit:ue}=ne(Z,J),{canDeleteRow:Te,canDeleteCol:Ae}=q();return[{text:"插入列",children:[{text:"到左侧",handler:()=>C(J)},{text:"到右侧",handler:()=>C(J+1)}]},{text:"插入行",children:[{text:"到上方",handler:()=>F(Z)},{text:"到下方",handler:()=>F(Z+1)}]},{text:"删除列",disable:!Ae,handler:()=>Y(J)},{text:"删除行",disable:!Te,handler:()=>b(Z)},{divider:!0},{text:"合并单元格",disable:!re,handler:H},{text:"取消合并单元格",disable:!ue,handler:()=>Q(Z,J)},{divider:!0},{text:"选中当前列",handler:()=>W(J)},{text:"选中当前行",handler:()=>T(Z)},{text:"选中全部单元格",handler:V}]};return(w,D)=>{var J,re,ue,Te,Ae;const Z=ze("contextmenu");return g(),I("div",{class:"editable-table",style:ee({width:R.value+"px"})},[w.editable?(g(),I("div",hV,[(g(!0),I(ie,null,me(f.value,(Qe,Ne)=>(g(),I("div",{class:"drag-line",key:Ne,style:ee({left:Qe+"px"}),onMousedown:he=>G(he,Ne)},null,44,vV))),128))])):z("",!0),m("table",{class:E({theme:r.value,"row-header":(J=r.value)==null?void 0:J.rowHeader,"row-footer":(re=r.value)==null?void 0:re.rowFooter,"col-header":(ue=r.value)==null?void 0:ue.colHeader,"col-footer":(Te=r.value)==null?void 0:Te.colFooter}),style:ee(`--themeColor: ${(Ae=r.value)==null?void 0:Ae.color}; --subThemeColor1: ${v(c)[0]}; --subThemeColor2: ${v(c)[1]}`)},[m("colgroup",null,[(g(!0),I(ie,null,me(d.value,(Qe,Ne)=>(g(),I("col",{span:"1",key:Ne,width:Qe},null,8,mV))),128))]),m("tbody",null,[(g(!0),I(ie,null,me(u.value,(Qe,Ne)=>(g(),I("tr",{key:Ne,style:ee({height:w.cellMinHeight+"px"})},[(g(!0),I(ie,null,me(Qe,(he,Le)=>de((g(),I("td",{class:E(["cell",{selected:O.value.includes(`${Ne}_${Le}`)&&O.value.length>1,active:L.value===`${Ne}_${Le}`}]),style:ee({borderStyle:w.outline.style,borderColor:w.outline.color,borderWidth:w.outline.width+"px",...v(Kp)(he.style)}),key:he.id,rowspan:he.rowspan,colspan:he.colspan,"data-cell-index":`${Ne}_${Le}`,onMousedown:ve=>X(ve,Ne,Le),onMouseenter:ve=>M(Ne,Le)},[L.value===`${Ne}_${Le}`?(g(),k(pV,{key:0,class:E(["cell-text",{active:L.value===`${Ne}_${Le}`}]),style:ee({minHeight:w.cellMinHeight-4+"px"}),value:he.text,onUpdateValue:ve=>v(B)(ve,Ne,Le),onInsertExcelData:ve=>Ie(ve,Ne,Le)},null,8,["class","style","value","onUpdateValue","onInsertExcelData"])):(g(),I("div",{key:1,class:"cell-text",style:ee({minHeight:w.cellMinHeight-4+"px"}),innerHTML:v(_p)(he.text)},null,12,gV))],46,MV)),[[yt,!v(P).includes(`${Ne}_${Le}`)],[Z,ve=>Se(ve)]])),128))],4))),128))])],6)],4)}}}),OV=fe(SV,[["__scopeId","data-v-46c7aa10"]]),PV={class:"element-content"},NV=j({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=Xe(),o=Ue(),{canvasScale:l,handleElementId:s,isScaling:a}=oe(n),i=A(),{addHistorySnapshot:u}=He(),r=L=>{t.elementInfo.lock||(L.stopPropagation(),t.selectElement(L,t.elementInfo))},c=A(!1);Oe(s,()=>{s.value!==t.elementInfo.id&&(c.value=!1)}),Oe(c,()=>{n.setDisableHotkeysState(c.value)});const d=()=>{t.elementInfo.lock||(c.value=!0)},R=A(-1);Oe(a,()=>{s.value===t.elementInfo.id&&(a.value&&(c.value=!1),!a.value&&R.value!==-1&&(o.updateElement({id:t.elementInfo.id,props:{height:R.value}}),R.value=-1))});const p=L=>{const S=L[0].contentRect;if(!i.value)return;const X=S.height;t.elementInfo.height!==X&&(a.value?R.value=X:o.updateElement({id:t.elementInfo.id,props:{height:X}}))},f=new ResizeObserver(p);Ee(()=>{i.value&&f.observe(i.value)}),mt(()=>{i.value&&f.unobserve(i.value)});const h=L=>{o.updateElement({id:t.elementInfo.id,props:{data:L}}),u()},P=L=>{const S=L.reduce((M,y)=>M+y),X=L.map(M=>M/S);o.updateElement({id:t.elementInfo.id,props:{width:S,colWidths:X}}),u()},O=L=>{we(()=>n.setSelectedTableCells(L))};return(L,S)=>{const X=ze("contextmenu");return g(),I("div",{class:E(["editable-element-table",{lock:L.elementInfo.lock}]),ref_key:"elementRef",ref:i,style:ee({top:L.elementInfo.top+"px",left:L.elementInfo.left+"px",width:L.elementInfo.width+"px"})},[m("div",{class:"rotate-wrapper",style:ee({transform:`rotate(${L.elementInfo.rotate}deg)`})},[de((g(),I("div",PV,[N(OV,{onMousedown:S[0]||(S[0]=Fe(()=>{},["stop"])),data:L.elementInfo.data,width:L.elementInfo.width,cellMinHeight:L.elementInfo.cellMinHeight,colWidths:L.elementInfo.colWidths,outline:L.elementInfo.outline,theme:L.elementInfo.theme,editable:c.value,onChange:S[1]||(S[1]=M=>h(M)),onChangeColWidths:S[2]||(S[2]=M=>P(M)),onChangeSelectedCells:S[3]||(S[3]=M=>O(M))},null,8,["data","width","cellMinHeight","colWidths","outline","theme","editable"]),!c.value||L.elementInfo.lock?(g(),I("div",{key:0,class:E(["table-mask",{lock:L.elementInfo.lock}]),onDblclick:S[4]||(S[4]=M=>d()),onMousedown:S[5]||(S[5]=M=>r(M)),onTouchstart:S[6]||(S[6]=M=>r(M))},[v(s)===L.elementInfo.id?(g(),I("div",{key:0,class:"mask-tip",style:ee({transform:`scale(${1/v(l)})`})},"双击编辑",4)):z("",!0)],34)):z("",!0)])),[[X,L.contextmenus]])],4)],6)}}}),XV=fe(NV,[["__scopeId","data-v-c58bc4e2"]]),TV=["width","height","stroke","stroke-width"],VV=["transform"],yV=["d"],LV=j({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=l=>{t.elementInfo.lock||(l.stopPropagation(),t.selectElement(l,t.elementInfo))},o=()=>{Jt.emit(Ht.OPEN_LATEX_EDITOR)};return(l,s)=>{const a=ze("contextmenu");return g(),I("div",{class:E(["editable-element-latex",{lock:l.elementInfo.lock}]),style:ee({top:l.elementInfo.top+"px",left:l.elementInfo.left+"px",width:l.elementInfo.width+"px",height:l.elementInfo.height+"px"})},[m("div",{class:"rotate-wrapper",style:ee({transform:`rotate(${l.elementInfo.rotate}deg)`})},[de((g(),I("div",{class:"element-content",onMousedown:s[0]||(s[0]=i=>n(i)),onTouchstart:s[1]||(s[1]=i=>n(i)),onDblclick:s[2]||(s[2]=i=>o())},[(g(),I("svg",{overflow:"visible",width:l.elementInfo.width,height:l.elementInfo.height,stroke:l.elementInfo.color,"stroke-width":l.elementInfo.strokeWidth,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[m("g",{transform:`scale(${l.elementInfo.width/(l.elementInfo.viewBox[0]||l.elementInfo.viewBox)}, ${l.elementInfo.height/(l.elementInfo.viewBox[1]||l.elementInfo.viewBox)}) translate(0,0) matrix(1,0,0,1,0,0)`},[m("path",{d:l.elementInfo.path},null,8,yV)],8,VV)],8,TV))],32)),[[a,l.contextmenus]])],4)],6)}}}),bV=fe(LV,[["__scopeId","data-v-e3bc936e"]]),IV=j({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,{canvasScale:n}=oe(Xe()),o=(l,s=!0)=>{t.elementInfo.lock||(l.stopPropagation(),t.selectElement(l,t.elementInfo,s))};return(l,s)=>{const a=ze("contextmenu");return g(),I("div",{class:E(["editable-element-video",{lock:l.elementInfo.lock}]),style:ee({top:l.elementInfo.top+"px",left:l.elementInfo.left+"px",width:l.elementInfo.width+"px",height:l.elementInfo.height+"px"})},[m("div",{class:"rotate-wrapper",style:ee({transform:`rotate(${l.elementInfo.rotate}deg)`})},[de((g(),I("div",{class:"element-content",onMousedown:s[2]||(s[2]=i=>o(i,!1)),onTouchstart:s[3]||(s[3]=i=>o(i,!1))},[N(Hp,{width:l.elementInfo.width,height:l.elementInfo.height,src:l.elementInfo.src,poster:l.elementInfo.poster,scale:v(n)},null,8,["width","height","src","poster","scale"]),(g(),I(ie,null,me(["t","b","l","r"],i=>m("div",{class:E(["handler-border",i]),key:i,onMousedown:s[0]||(s[0]=u=>o(u)),onTouchstart:s[1]||(s[1]=u=>o(u))},null,34)),64))],32)),[[a,l.contextmenus]])],4)],6)}}}),YV=fe(IV,[["__scopeId","data-v-1d545cfa"]]),WV=j({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,{canvasScale:n,handleElementId:o}=oe(Xe()),{viewportRatio:l,viewportSize:s}=oe(Ue()),a=_(()=>Math.min(t.elementInfo.width,t.elementInfo.height)+"px"),i=_(()=>{const r=s.value,c=s.value*l.value,d=280/n.value,R=50/n.value,p=t.elementInfo.width,f=t.elementInfo.height,h=t.elementInfo.left,P=t.elementInfo.top;let O=0,L=f;return h+d>=r&&(O=p-d),P+f+R>=c&&(L=-R),{left:O+"px",top:L+"px"}}),u=r=>{t.elementInfo.lock||(r.stopPropagation(),t.selectElement(r,t.elementInfo))};return(r,c)=>{const d=te("IconVolumeNotice"),R=ze("contextmenu");return g(),I("div",{class:E(["editable-element-audio",{lock:r.elementInfo.lock}]),style:ee({top:r.elementInfo.top+"px",left:r.elementInfo.left+"px",width:r.elementInfo.width+"px",height:r.elementInfo.height+"px"})},[m("div",{class:"rotate-wrapper",style:ee({transform:`rotate(${r.elementInfo.rotate}deg)`})},[de((g(),I("div",{class:"element-content",onMousedown:c[1]||(c[1]=p=>u(p)),onTouchstart:c[2]||(c[2]=p=>u(p))},[N(d,{class:"audio-icon",style:ee({fontSize:a.value,color:r.elementInfo.color})},null,8,["style"]),v(o)===r.elementInfo.id?(g(),k(Cp,{key:0,class:"audio-player",style:ee({...i.value}),src:r.elementInfo.src,loop:r.elementInfo.loop,scale:v(n),onMousedown:c[0]||(c[0]=Fe(()=>{},["stop"]))},null,8,["style","src","loop","scale"])):z("",!0)],32)),[[R,r.contextmenus]])],4)],6)}}}),UV=fe(WV,[["__scopeId","data-v-620c29b4"]]),QV=j({__name:"cloudCoachElement",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=Xe(),{canvasScale:o}=oe(n),l=_(()=>n.handleElementId!==t.elementInfo.id||t.elementInfo.isMove),s=(a,i=!0)=>{t.elementInfo.lock||(a.stopPropagation(),t.selectElement(a,t.elementInfo,i))};return(a,i)=>{const u=ze("contextmenu");return g(),I("div",{class:E(["editable-element-cloudCoach",{lock:a.elementInfo.lock}]),style:ee({top:a.elementInfo.top+"px",left:a.elementInfo.left+"px",width:a.elementInfo.width+"px",height:a.elementInfo.height+"px"})},[m("div",{class:"rotate-wrapper",style:ee({transform:`rotate(${a.elementInfo.rotate}deg)`})},[de((g(),I("div",{class:"element-content",onMousedown:i[4]||(i[4]=r=>s(r)),onTouchstart:i[5]||(i[5]=r=>s(r))},[l.value?(g(),I("div",{key:0,onMousedown:i[0]||(i[0]=Fe(r=>s(r,!1),["stop"])),onTouchstart:i[1]||(i[1]=Fe(r=>s(r,!1),["stop"])),class:"mask"},null,32)):z("",!0),N(v(Gp),{id:a.elementInfo.sid,width:a.elementInfo.width,height:a.elementInfo.height,scale:v(o)},null,8,["id","width","height","scale"]),(g(),I(ie,null,me(["t","b","l","r"],r=>m("div",{class:E(["handler-border",r]),key:r,onMousedown:i[2]||(i[2]=c=>s(c)),onTouchstart:i[3]||(i[3]=c=>s(c))},null,34)),64))],32)),[[u,a.contextmenus]])],4)],6)}}}),FV=fe(QV,[["__scopeId","data-v-d56dd529"]]),ZV=["id"],AV=j({__name:"EditableElement",props:{elementInfo:{},elementIndex:{},isMultiSelect:{type:Boolean},selectElement:{type:Function},openLinkDialog:{type:Function}},setup(e){const t=e,n=_(()=>{const h={[ct.IMAGE]:UX,[ct.TEXT]:j0,[ct.SHAPE]:lV,[ct.LINE]:uV,[ct.CHART]:dV,[ct.TABLE]:XV,[ct.LATEX]:bV,[ct.ELF]:null},P={[xo.AUDIO]:UV,[xo.VIDEO]:YV,[xo.SING_PLAY]:FV};return h[t.elementInfo.type]||P[t.elementInfo.subtype]||null}),{orderElement:o}=Ks(),{alignElementToCanvas:l}=Ti(),{combineElements:s,uncombineElements:a}=Pi(),{deleteElement:i}=Zs(),{lockElement:u,unlockElement:r}=Xd(),{copyElement:c,pasteElement:d,cutElement:R}=Ni(),{selectAllElements:p}=As(),f=()=>t.elementInfo.lock?[{text:"解锁",handler:()=>r(t.elementInfo)}]:[{text:"剪切",subText:"Ctrl + X",handler:R},{text:"复制",subText:"Ctrl + C",handler:c},{text:"粘贴",subText:"Ctrl + V",handler:d},{divider:!0},{text:"水平居中",handler:()=>l(De.HORIZONTAL),children:[{text:"水平垂直居中",handler:()=>l(De.CENTER)},{text:"水平居中",handler:()=>l(De.HORIZONTAL)},{text:"左对齐",handler:()=>l(De.LEFT)},{text:"右对齐",handler:()=>l(De.RIGHT)}]},{text:"垂直居中",handler:()=>l(De.VERTICAL),children:[{text:"水平垂直居中",handler:()=>l(De.CENTER)},{text:"垂直居中",handler:()=>l(De.VERTICAL)},{text:"顶部对齐",handler:()=>l(De.TOP)},{text:"底部对齐",handler:()=>l(De.BOTTOM)}]},{divider:!0},{text:"置于顶层",disable:t.isMultiSelect&&!t.elementInfo.groupId,handler:()=>o(t.elementInfo,Tt.TOP),children:[{text:"置于顶层",handler:()=>o(t.elementInfo,Tt.TOP)},{text:"上移一层",handler:()=>o(t.elementInfo,Tt.UP)}]},{text:"置于底层",disable:t.isMultiSelect&&!t.elementInfo.groupId,handler:()=>o(t.elementInfo,Tt.BOTTOM),children:[{text:"置于底层",handler:()=>o(t.elementInfo,Tt.BOTTOM)},{text:"下移一层",handler:()=>o(t.elementInfo,Tt.DOWN)}]},{divider:!0},{text:"设置链接",handler:t.openLinkDialog},{text:t.elementInfo.groupId?"取消组合":"组合",subText:"Ctrl + G",handler:t.elementInfo.groupId?a:s,hide:!t.isMultiSelect},{text:"全选",subText:"Ctrl + A",handler:p},{text:"锁定",subText:"Ctrl + L",handler:u},{text:"删除",subText:"Delete",handler:i}];return(h,P)=>(g(),I("div",{class:"editable-element",ref:"elementRef",id:`editable-element-${h.elementInfo.id}`,style:ee({zIndex:h.elementIndex})},[(g(),k(Vt(n.value),{elementInfo:h.elementInfo,selectElement:h.selectElement,contextmenus:f},null,8,["elementInfo","selectElement"]))],12,ZV))}}),KV=j({__name:"MouseSelection",props:{top:{},left:{},width:{},height:{},quadrant:{}},setup(e){return(t,n)=>(g(),I("div",{class:E(`mouse-selection quadrant-${t.quadrant}`),style:ee({top:t.top+"px",left:t.left+"px",width:t.width+"px",height:t.height+"px"})},null,6))}}),_V=fe(KV,[["__scopeId","data-v-c1acfb75"]]),HV={class:"grid-lines"},CV=["d","stroke"],GV=j({__name:"GridLines",setup(e){const{canvasScale:t,gridLineSize:n}=oe(Xe()),{currentSlide:o,viewportRatio:l,viewportSize:s}=oe(Ue()),a=_(()=>{var r;return(r=o.value)==null?void 0:r.background}),i=_(()=>{var d;const r=((d=a.value)==null?void 0:d.color)||"#fff",c=["#000","#fff"];return ke.mostReadable(r,c,{includeFallbackColors:!0}).setAlpha(.5).toRgbString()}),u=_(()=>{const r=s.value,c=s.value*l.value;let d="";for(let R=0;R<=Math.floor(c/n.value);R++)d+=`M0 ${R*n.value} L${r} ${R*n.value} `;for(let R=0;R<=Math.floor(r/n.value);R++)d+=`M${R*n.value} 0 L${R*n.value} ${c} `;return d});return(r,c)=>(g(),I("svg",HV,[m("path",{style:ee({transform:`scale(${v(t)})`}),d:u.value,fill:"none",stroke:i.value,"stroke-width":"0.3","stroke-dasharray":"5"},null,12,CV)]))}}),EV=fe(GV,[["__scopeId","data-v-a0656213"]]),wV=j({__name:"ViewportBackground",setup(e){const{gridLineSize:t}=oe(Xe()),{currentSlide:n}=oe(Ue()),o=_(()=>{var s;return(s=n.value)==null?void 0:s.background}),{backgroundStyle:l}=Ep(o);return(s,a)=>(g(),I("div",{class:"viewport-background",style:ee(v(l))},[v(t)?(g(),k(EV,{key:0})):z("",!0)],4))}}),kV=fe(wV,[["__scopeId","data-v-af32677c"]]),JV=j({__name:"AlignmentLine",props:{type:{},axis:{},length:{},canvasScale:{}},setup(e){const t=e,n=_(()=>t.axis.x*t.canvasScale+"px"),o=_(()=>t.axis.y*t.canvasScale+"px"),l=_(()=>t.type==="vertical"?{height:t.length*t.canvasScale+"px"}:{width:t.length*t.canvasScale+"px"});return(s,a)=>(g(),I("div",{class:"alignment-line",style:ee({left:n.value,top:o.value})},[m("div",{class:E(["line",s.type]),style:ee(l.value)},null,6)],4))}}),xV=fe(JV,[["__scopeId","data-v-b479d842"]]),$V={class:"ruler"},DV={key:0},BV={key:0},zV=j({__name:"Ruler",props:{viewportStyles:{},elementList:{}},setup(e){const t=e,{canvasScale:n,activeElementIdList:o}=oe(Xe()),{viewportRatio:l,viewportSize:s}=oe(Ue()),a=A(null);Io(()=>{const u=t.elementList.filter(r=>o.value.includes(r.id));if(!u.length)return a.value=null;a.value=An(u)});const i=_(()=>t.viewportStyles.width*n.value/(s.value/100));return(u,r)=>(g(),I("div",$V,[m("div",{class:"h",style:ee({width:u.viewportStyles.width*v(n)+"px",left:u.viewportStyles.left+"px"})},[(g(),I(ie,null,me(20,c=>m("div",{class:E(["ruler-marker-100",{hide:i.value<36,omit:i.value<72}]),key:`h-marker-100-${c}`,style:ee({width:i.value+"px"})},[c*100<=v(s)?(g(),I("span",DV,Me(c*100),1)):z("",!0)],6)),64)),a.value?(g(),I("div",{key:0,class:"range",style:ee({left:a.value.minX*v(n)+"px",width:(a.value.maxX-a.value.minX)*v(n)+"px"})},null,4)):z("",!0)],4),m("div",{class:"v",style:ee({height:u.viewportStyles.height*v(n)+"px",top:u.viewportStyles.top+"px"})},[(g(),I(ie,null,me(20,c=>m("div",{class:E(["ruler-marker-100",{hide:i.value<36,omit:i.value<72}]),key:`v-marker-100-${c}`,style:ee({height:i.value+"px"})},[c*100<=v(s)*v(l)?(g(),I("span",BV,Me(c*100),1)):z("",!0)],6)),64)),a.value?(g(),I("div",{key:0,class:"range",style:ee({top:a.value.minY*v(n)+"px",height:(a.value.maxY-a.value.minY)*v(n)+"px"})},null,4)):z("",!0)],4)]))}}),jV=fe(zV,[["__scopeId","data-v-dba47cf5"]]),qV=["width","height"],ey=["d"],ty=j({__name:"ElementCreateSelection",emits:["created"],setup(e,{emit:t}){const n=t,o=Xe(),{creatingElement:l}=oe(o),{ctrlOrShiftKeyActive:s}=oe(Mn()),a=A(),i=A(),u=A(),r=A({x:0,y:0});Ee(()=>{if(!u.value)return;const{x:p,y:f}=u.value.getBoundingClientRect();r.value={x:p,y:f}});const c=p=>{let f=!0;const h=p.pageX,P=p.pageY;a.value=[h,P],document.onmousemove=O=>{if(!l.value||!f)return;let L=O.pageX,S=O.pageY;if(s.value){const X=L-h,M=S-P,y=Math.abs(X),W=Math.abs(M);if(l.value.type==="shape"){const T=M>0&&X<0||M<0&&X>0;y>W?S=T?P-X:P+X:L=T?h-M:h+M}else l.value.type==="line"&&(y>W?S=P:L=h)}i.value=[L,S]},document.onmouseup=O=>{var M,y;if(document.onmousemove=null,document.onmouseup=null,O.button===2){setTimeout(()=>o.setCreatingElement(null),0);return}f=!1;const L=O.pageX,S=O.pageY,X=30;if(((M=l.value)==null?void 0:M.type)==="line"&&(Math.abs(L-h)>=X||Math.abs(S-P)>=X))n("created",{start:a.value,end:i.value});else if(((y=l.value)==null?void 0:y.type)!=="line"&&Math.abs(L-h)>=X&&Math.abs(S-P)>=X)n("created",{start:a.value,end:i.value});else{const T=Math.min(L,h),V=Math.min(S,P),b=Math.max(L,h),Y=Math.max(S,P),F=b-T>=X?b-T:200,C=Y-V>=X?Y-V:200;n("created",{start:[T,V],end:[T+F,V+C]})}}},d=_(()=>{if(!a.value||!i.value||!l.value||l.value.type!=="line")return null;const[p,f]=a.value,[h,P]=i.value,O=Math.min(p,h),L=Math.max(p,h),S=Math.min(f,P),X=Math.max(f,P),M=L-O>=24?L-O:24,y=X-S>=24?X-S:24,W=p===O?0:L-O,T=f===S?0:X-S,V=h===O?0:L-O,b=P===S?0:X-S,Y=`M${W}, ${T} L${V}, ${b}`;return{svgWidth:M,svgHeight:y,startX:W,startY:T,endX:V,endY:b,path:Y}}),R=_(()=>{if(!a.value||!i.value)return{};const[p,f]=a.value,[h,P]=i.value,O=Math.min(p,h),L=Math.max(p,h),S=Math.min(f,P),X=Math.max(f,P),M=L-O,y=X-S;return{left:O-r.value.x+"px",top:S-r.value.y+"px",width:M+"px",height:y+"px"}});return(p,f)=>{var h,P;return g(),I("div",{class:"element-create-selection",ref_key:"selectionRef",ref:u,onMousedown:f[0]||(f[0]=Fe(O=>c(O),["stop"])),onContextmenu:f[1]||(f[1]=Fe(()=>{},["stop","prevent"]))},[a.value&&i.value?(g(),I("div",{key:0,class:E(["selection",(h=v(l))==null?void 0:h.type]),style:ee(R.value)},[((P=v(l))==null?void 0:P.type)==="line"&&d.value?(g(),I("svg",{key:0,overflow:"visible",width:d.value.svgWidth,height:d.value.svgHeight},[m("path",{d:d.value.path,stroke:"#5b9bd5",fill:"none","stroke-width":"2"},null,8,ey)],8,qV)):z("",!0)],6)):z("",!0)],544)}}}),ny=fe(ty,[["__scopeId","data-v-9739adcc"]]),oy={overflow:"visible"},ly=["d","fill"],sy=j({__name:"ShapeCreateCanvas",emits:["created"],setup(e,{emit:t}){const n=t,o=Xe(),{ctrlOrShiftKeyActive:l}=oe(Mn()),{theme:s}=oe(Ue()),a=A(),i=A(!1),u=A({x:0,y:0});Ee(()=>{if(!a.value)return;const{x:X,y:M}=a.value.getBoundingClientRect();u.value={x:X,y:M}});const r=A(null),c=A([]),d=A(!1),R=(X,M=!1)=>{let y=X.pageX-u.value.x,W=X.pageY-u.value.y;if(M)return{pageX:y,pageY:W};if(l.value&&c.value.length){const[T,V]=c.value[c.value.length-1];Math.abs(T-y)-Math.abs(V-W)>0?W=V:y=T}return{pageX:y,pageY:W}},p=X=>{if(i.value){const{pageX:W,pageY:T}=R(X,!0);c.value.push([W,T]),r.value=null;return}const{pageX:M,pageY:y}=R(X);if(r.value=[M,y],c.value.length>=2){const[W,T]=c.value[0];Math.abs(W-M)<5&&Math.abs(T-y)<5?d.value=!0:d.value=!1}else d.value=!1},f=_(()=>{let X="";for(let M=0;M<c.value.length;M++){const y=c.value[M];M===0?X+=`M ${y[0]} ${y[1]} `:X+=`L ${y[0]} ${y[1]} `}return c.value.length&&r.value&&(X+=`L ${r.value[0]} ${r.value[1]}`),X}),h=(X=!0)=>{const M=c.value.map(Q=>Q[0]),y=c.value.map(Q=>Q[1]),W=Math.min(...M),T=Math.min(...y),V=Math.max(...M),b=Math.max(...y),Y=c.value.map(Q=>[Q[0]-W,Q[1]-T]);let F="";for(let Q=0;Q<Y.length;Q++){const G=Y[Q];Q===0?F+=`M ${G[0]} ${G[1]} `:F+=`L ${G[0]} ${G[1]} `}X&&(F+="Z");const C=[W+u.value.x,T+u.value.y],K=[V+u.value.x,b+u.value.y],H=[V-W,b-T];return{start:C,end:K,path:F,viewBox:H}},P=X=>{const{pageX:M,pageY:y}=R(X);i.value=!0,d.value?n("created",h()):c.value.push([M,y]),document.onmouseup=()=>{i.value=!1}},O=()=>{o.setCreatingCustomShapeState(!1)},L=()=>{n("created",{...h(!1),fill:"rgba(0, 0, 0, 0)",outline:{width:2,color:s.value.themeColor,style:"solid"}}),O()},S=X=>{const M=X.key.toUpperCase();M===Ye.ESC&&O(),M===Ye.ENTER&&L()};return Ee(()=>{Wt.success("点击绘制任意形状,首尾闭合完成绘制,按 ESC 键或鼠标右键取消,按 ENTER 键提前完成",{duration:0}),document.addEventListener("keydown",S)}),mt(()=>{document.removeEventListener("keydown",S),Wt.closeAll()}),(X,M)=>(g(),I("div",{class:"shape-create-canvas",ref_key:"shapeCanvasRef",ref:a,onMousedown:M[0]||(M[0]=Fe(y=>P(y),["stop"])),onMousemove:M[1]||(M[1]=y=>p(y)),onContextmenu:M[2]||(M[2]=Fe(y=>O(),["stop","prevent"]))},[(g(),I("svg",oy,[m("path",{d:f.value,stroke:"#5b9bd5",fill:d.value?"rgba(226, 83, 77, 0.15)":"none","stroke-width":"2"},null,8,ly)]))],544))}}),ay=fe(sy,[["__scopeId","data-v-1cad1846"]]),rl=(e,t)=>{const n=_(()=>[{direction:be.LEFT_TOP,style:{}},{direction:be.TOP,style:{left:e.value/2+"px"}},{direction:be.RIGHT_TOP,style:{left:e.value+"px"}},{direction:be.LEFT,style:{top:t.value/2+"px"}},{direction:be.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}},{direction:be.LEFT_BOTTOM,style:{top:t.value+"px"}},{direction:be.BOTTOM,style:{left:e.value/2+"px",top:t.value+"px"}},{direction:be.RIGHT_BOTTOM,style:{left:e.value+"px",top:t.value+"px"}}]),o=_(()=>[{direction:be.LEFT,style:{top:t.value/2+"px"}},{direction:be.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}}]),l=_(()=>[{direction:be.TOP,style:{left:e.value/2+"px"}},{direction:be.BOTTOM,style:{left:e.value/2+"px",top:t.value+"px"}}]),s=_(()=>[{type:hl.T,style:{width:e.value+"px"}},{type:hl.B,style:{top:t.value+"px",width:e.value+"px"}},{type:hl.L,style:{height:t.value+"px"}},{type:hl.R,style:{left:e.value+"px",height:t.value+"px"}}]);return{resizeHandlers:n,textElementResizeHandlers:o,verticalTextElementResizeHandlers:l,borderLines:s}},iy=j({__name:"ResizeHandler",props:{type:{},rotate:{default:0}},setup(e){const t=e,n=_(()=>{const o="rotate-",l=t.rotate;return l>-22.5&&l<=22.5?o+0:l>22.5&&l<=67.5?o+45:l>67.5&&l<=112.5?o+90:l>112.5&&l<=157.5?o+135:l>157.5||l<=-157.5?o+0:l>-157.5&&l<=-112.5?o+45:l>-112.5&&l<=-67.5?o+90:l>-67.5&&l<=-22.5?o+135:o+0});return(o,l)=>(g(),I("div",{class:E(["resize-handler",n.value,o.type])},null,2))}}),Uo=fe(iy,[["__scopeId","data-v-844cb182"]]),ry=j({__name:"BorderLine",props:{type:{},isWide:{type:Boolean,default:!1}},setup(e){return(t,n)=>(g(),I("div",{class:E(["border-line",t.type,{wide:t.isWide}])},null,2))}}),ul=fe(ry,[["__scopeId","data-v-39bc862b"]]),uy=j({__name:"MultiSelectOperate",props:{elementList:{},scaleMultiElement:{type:Function}},setup(e){const t=e,{activeElementIdList:n,canvasScale:o}=oe(Xe()),l=_(()=>t.elementList.filter(R=>n.value.includes(R.id))),s=A({minX:0,maxX:0,minY:0,maxY:0}),a=_(()=>(s.value.maxX-s.value.minX)*o.value),i=_(()=>(s.value.maxY-s.value.minY)*o.value),{resizeHandlers:u,borderLines:r}=rl(a,i);Io(()=>{const{minX:R,maxX:p,minY:f,maxY:h}=An(l.value);s.value={minX:R,maxX:p,minY:f,maxY:h}});const d=_(()=>l.value.some(R=>!((R.type==="image"||R.type==="shape")&&!R.rotate)));return(R,p)=>(g(),I("div",{class:"multi-select-operate",style:ee({left:s.value.minX*v(o)+"px",top:s.value.minY*v(o)+"px"})},[(g(!0),I(ie,null,me(v(r),f=>(g(),k(ul,{key:f.type,type:f.type,style:ee(f.style)},null,8,["type","style"]))),128)),d.value?z("",!0):(g(!0),I(ie,{key:0},me(v(u),f=>(g(),k(Uo,{key:f.direction,type:f.direction,style:ee(f.style),onMousedown:Fe(h=>R.scaleMultiElement(h,s.value,f.direction),["stop"])},null,8,["type","style","onMousedown"]))),128))],4))}}),cy=fe(uy,[["__scopeId","data-v-3618c996"]]),dy={},Ry={class:"rotate-handler"};function fy(e,t){return g(),I("div",Ry)}const Al=fe(dy,[["render",fy],["__scopeId","data-v-7f7f964f"]]),py={inheritAttrs:!1},hy=j({...py,__name:"ImageElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n,clipingImageElementId:o}=oe(Xe()),l=_(()=>o.value===t.elementInfo.id),s=_(()=>t.elementInfo.width*n.value),a=_(()=>t.elementInfo.height*n.value),{resizeHandlers:i,borderLines:u}=rl(s,a);return(r,c)=>(g(),I("div",{class:E(["image-element-operate",{cliping:l.value}])},[(g(!0),I(ie,null,me(v(u),d=>(g(),k(ul,{class:"operate-border-line",key:d.type,type:d.type,style:ee(d.style)},null,8,["type","style"]))),128)),r.handlerVisible?(g(),I(ie,{key:0},[(g(!0),I(ie,null,me(v(i),d=>(g(),k(Uo,{class:"operate-resize-handler",key:d.direction,type:d.direction,rotate:r.elementInfo.rotate,style:ee(d.style),onMousedown:Fe(R=>r.scaleElement(R,r.elementInfo,d.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),N(Al,{class:"operate-rotate-handler",style:ee({left:s.value/2+"px"}),onMousedown:c[0]||(c[0]=Fe(d=>r.rotateElement(d,r.elementInfo),["stop"]))},null,8,["style"])],64)):z("",!0)],2))}}),vy=fe(hy,[["__scopeId","data-v-2a1bef4e"]]),my={class:"text-element-operate"},My={inheritAttrs:!1},gy=j({...My,__name:"TextElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=oe(Xe()),o=_(()=>t.elementInfo.width*n.value),l=_(()=>t.elementInfo.height*n.value),{textElementResizeHandlers:s,verticalTextElementResizeHandlers:a,borderLines:i}=rl(o,l),u=_(()=>t.elementInfo.vertical?a.value:s.value);return(r,c)=>(g(),I("div",my,[(g(!0),I(ie,null,me(v(i),d=>(g(),k(ul,{class:"operate-border-line",key:d.type,type:d.type,style:ee(d.style)},null,8,["type","style"]))),128)),r.handlerVisible?(g(),I(ie,{key:0},[(g(!0),I(ie,null,me(u.value,d=>(g(),k(Uo,{class:"operate-resize-handler",key:d.direction,type:d.direction,rotate:r.elementInfo.rotate,style:ee(d.style),onMousedown:Fe(R=>r.scaleElement(R,r.elementInfo,d.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),N(Al,{class:"operate-rotate-handler",style:ee({left:o.value/2+"px"}),onMousedown:c[0]||(c[0]=Fe(d=>r.rotateElement(d,r.elementInfo),["stop"]))},null,8,["style"])],64)):z("",!0)]))}}),Sy={class:"shape-element-operate"},Oy=["onMousedown"],Py={inheritAttrs:!1},Ny=j({...Py,__name:"ShapeElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function},moveShapeKeypoint:{type:Function}},setup(e){const t=e,{canvasScale:n}=oe(Xe()),o=_(()=>t.elementInfo.width*n.value),l=_(()=>t.elementInfo.height*n.value),{resizeHandlers:s,borderLines:a}=rl(o,l),i=_(()=>{if(!t.elementInfo.pathFormula||t.elementInfo.keypoints===void 0)return[];const u=sl[t.elementInfo.pathFormula];return t.elementInfo.keypoints.map((r,c)=>{const d=u.getBaseSize[c],R=u.relative[c],p=d(t.elementInfo.width,t.elementInfo.height)*r;let f={};return R==="left"?f={left:p*n.value+"px"}:R==="right"?f={left:(t.elementInfo.width-p)*n.value+"px"}:R==="center"?f={left:(t.elementInfo.width-p)/2*n.value+"px"}:R==="top"?f={top:p*n.value+"px"}:R==="bottom"?f={top:(t.elementInfo.height-p)*n.value+"px"}:R==="left_bottom"?f={left:p*n.value+"px",top:t.elementInfo.height*n.value+"px"}:R==="right_bottom"?f={left:(t.elementInfo.width-p)*n.value+"px",top:t.elementInfo.height*n.value+"px"}:R==="top_right"?f={left:t.elementInfo.width*n.value+"px",top:p*n.value+"px"}:R==="bottom_right"&&(f={left:t.elementInfo.width*n.value+"px",top:(t.elementInfo.height-p)*n.value+"px"}),{keypoint:r,styles:f}})});return(u,r)=>(g(),I("div",Sy,[(g(!0),I(ie,null,me(v(a),c=>(g(),k(ul,{class:"operate-border-line",key:c.type,type:c.type,style:ee(c.style)},null,8,["type","style"]))),128)),u.handlerVisible?(g(),I(ie,{key:0},[(g(!0),I(ie,null,me(v(s),c=>(g(),k(Uo,{class:"operate-resize-handler",key:c.direction,type:c.direction,rotate:u.elementInfo.rotate,style:ee(c.style),onMousedown:Fe(d=>u.scaleElement(d,u.elementInfo,c.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),N(Al,{class:"operate-rotate-handler",style:ee({left:o.value/2+"px"}),onMousedown:r[0]||(r[0]=Fe(c=>u.rotateElement(c,u.elementInfo),["stop"]))},null,8,["style"]),(g(!0),I(ie,null,me(i.value,(c,d)=>(g(),I("div",{class:"operate-keypoint-handler",key:d,style:ee(c.styles),onMousedown:Fe(R=>u.moveShapeKeypoint(R,u.elementInfo,d),["stop"])},null,44,Oy))),128))],64)):z("",!0)]))}}),Xy=fe(Ny,[["__scopeId","data-v-e764f589"]]),Ty={class:"line-element-operate"},Vy=["width","height","stroke"],yy={key:0},Ly=["x1","y1","x2","y2"],by=["x1","y1","x2","y2"],Iy=["x1","y1","x2","y2"],Yy=["x1","y1","x2","y2"],Wy={inheritAttrs:!1},Uy=j({...Wy,__name:"LineElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},dragLineElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=oe(Xe()),o=_(()=>Math.max(t.elementInfo.start[0],t.elementInfo.end[0])),l=_(()=>Math.max(t.elementInfo.start[1],t.elementInfo.end[1])),s=_(()=>{const a=[{handler:qt.START,style:{left:t.elementInfo.start[0]*n.value+"px",top:t.elementInfo.start[1]*n.value+"px"}},{handler:qt.END,style:{left:t.elementInfo.end[0]*n.value+"px",top:t.elementInfo.end[1]*n.value+"px"}}];if(t.elementInfo.curve||t.elementInfo.broken||t.elementInfo.broken2){const i=t.elementInfo.curve||t.elementInfo.broken||t.elementInfo.broken2;a.push({handler:qt.C,style:{left:i[0]*n.value+"px",top:i[1]*n.value+"px"}})}else if(t.elementInfo.cubic){const[i,u]=t.elementInfo.cubic;a.push({handler:qt.C1,style:{left:i[0]*n.value+"px",top:i[1]*n.value+"px"}}),a.push({handler:qt.C2,style:{left:u[0]*n.value+"px",top:u[1]*n.value+"px"}})}return a});return(a,i)=>(g(),I("div",Ty,[a.handlerVisible?(g(),I(ie,{key:0},[(g(!0),I(ie,null,me(s.value,u=>(g(),k(Uo,{class:"operate-resize-handler",key:u.handler,style:ee(u.style),onMousedown:Fe(r=>a.dragLineElement(r,a.elementInfo,u.handler),["stop"])},null,8,["style","onMousedown"]))),128)),(g(),I("svg",{width:o.value||1,height:l.value||1,stroke:a.elementInfo.color,overflow:"visible",style:ee({transform:`scale(${v(n)})`})},[a.elementInfo.curve?(g(),I("g",yy,[m("line",{class:"anchor-line",x1:a.elementInfo.start[0],y1:a.elementInfo.start[1],x2:a.elementInfo.curve[0],y2:a.elementInfo.curve[1]},null,8,Ly),m("line",{class:"anchor-line",x1:a.elementInfo.end[0],y1:a.elementInfo.end[1],x2:a.elementInfo.curve[0],y2:a.elementInfo.curve[1]},null,8,by)])):z("",!0),a.elementInfo.cubic?(g(!0),I(ie,{key:1},me(a.elementInfo.cubic,(u,r)=>(g(),I("g",{key:r},[r===0?(g(),I("line",{key:0,class:"anchor-line",x1:a.elementInfo.start[0],y1:a.elementInfo.start[1],x2:u[0],y2:u[1]},null,8,Iy)):z("",!0),r===1?(g(),I("line",{key:1,class:"anchor-line",x1:a.elementInfo.end[0],y1:a.elementInfo.end[1],x2:u[0],y2:u[1]},null,8,Yy)):z("",!0)]))),128)):z("",!0)],12,Vy))],64)):z("",!0)]))}}),Qy=fe(Uy,[["__scopeId","data-v-ccfba7f7"]]),Fy={class:"table-element-operate"},Zy={inheritAttrs:!1},Ay=j({...Zy,__name:"TableElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=oe(Xe()),o=_(()=>t.elementInfo.outline.width||1),l=_(()=>(t.elementInfo.width+o.value)*n.value),s=_(()=>t.elementInfo.height*n.value),{resizeHandlers:a,borderLines:i}=rl(l,s);return(u,r)=>(g(),I("div",Fy,[(g(!0),I(ie,null,me(v(i),c=>(g(),k(ul,{class:"operate-border-line",key:c.type,type:c.type,style:ee(c.style)},null,8,["type","style"]))),128)),u.handlerVisible?(g(),I(ie,{key:0},[(g(!0),I(ie,null,me(v(a),c=>(g(),k(Uo,{class:"operate-resize-handler",key:c.direction,type:c.direction,rotate:u.elementInfo.rotate,style:ee(c.style),onMousedown:Fe(d=>u.scaleElement(d,u.elementInfo,c.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),N(Al,{class:"operate-rotate-handler",style:ee({left:l.value/2+"px"}),onMousedown:r[0]||(r[0]=Fe(c=>u.rotateElement(c,u.elementInfo),["stop"]))},null,8,["style"])],64)):z("",!0)]))}}),Ky={class:"common-element-operate"},_y={inheritAttrs:!1},va=j({..._y,__name:"CommonElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=oe(Xe()),o=_(()=>t.elementInfo.width*n.value),l=_(()=>t.elementInfo.height*n.value),{resizeHandlers:s,borderLines:a}=rl(o,l),i=_(()=>["chart","elf"].includes(t.elementInfo.type));return(u,r)=>(g(),I("div",Ky,[(g(!0),I(ie,null,me(v(a),c=>(g(),k(ul,{class:"operate-border-line",key:c.type,type:c.type,style:ee(c.style)},null,8,["type","style"]))),128)),u.handlerVisible?(g(),I(ie,{key:0},[(g(!0),I(ie,null,me(v(s),c=>(g(),k(Uo,{class:"operate-resize-handler",key:c.direction,type:c.direction,rotate:u.elementInfo.rotate,style:ee(c.style),onMousedown:Fe(d=>u.scaleElement(d,u.elementInfo,c.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),i.value?z("",!0):(g(),k(Al,{key:0,class:"operate-rotate-handler",style:ee({left:o.value/2+"px"}),onMousedown:r[0]||(r[0]=Fe(c=>u.rotateElement(c,u.elementInfo),["stop"]))},null,8,["style"]))],64)):z("",!0)]))}}),NR=()=>{const e=Ue(),{addHistorySnapshot:t}=He();return{setLink:(l,s)=>{const a=/^(https?):\/\/[\w\-]+(\.[\w\-]+)+([\w\-.,@?^=%&:\/~+#]*[\w\-@?^=%&\/~+#])?$/;if(s.type==="web"&&!a.test(s.target))return Wt.error("不是正确的网页链接地址"),!1;if(s.type==="slide"&&!s.target)return Wt.error("请先选择链接目标"),!1;const i={link:s};return e.updateElement({id:l.id,props:i}),t(),!0},removeLink:l=>{e.removeElementProps({id:l.id,propName:"link"}),t()}}},Hy=["href"],Cy={class:"btns"},Gy=j({__name:"LinkHandler",props:{elementInfo:{},link:{},openLinkDialog:{type:Function}},setup(e){const t=e,n=Xe(),o=Ue(),{canvasScale:l}=oe(n),{slides:s}=oe(o),{removeLink:a}=NR(),i=_(()=>t.elementInfo.type==="line"?0:t.elementInfo.height),u=r=>{const c=s.value.findIndex(d=>d.id===r);c!==-1&&(n.setActiveElementIdList([]),o.updateSlideIndex(c))};return(r,c)=>(g(),I("div",{class:"link-handler",style:ee({top:i.value*v(l)+10+"px"})},[r.link.type==="web"?(g(),I("a",{key:0,class:"link",href:r.link.target,target:"_blank"},Me(r.link.target),9,Hy)):(g(),I("a",{key:1,class:"link",onClick:c[0]||(c[0]=d=>u(r.link.target))},"幻灯片页面 "+Me(r.link.target),1)),m("div",Cy,[m("div",{class:"btn",onClick:c[1]||(c[1]=d=>r.openLinkDialog())},"更换"),N(Ce,{type:"vertical"}),m("div",{class:"btn",onClick:c[2]||(c[2]=d=>v(a)(r.elementInfo))},"移除")])],4))}}),Ey=fe(Gy,[["__scopeId","data-v-2b064319"]]),wy={key:1,class:"animation-index"},ky=j({__name:"index",props:{elementInfo:{},isSelected:{type:Boolean},isActive:{type:Boolean},isActiveGroupElement:{type:Boolean},isMultiSelect:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function},dragLineElement:{type:Function},moveShapeKeypoint:{type:Function},openLinkDialog:{type:Function}},setup(e){const t=e,{canvasScale:n,toolbarState:o}=oe(Xe()),{formatedAnimations:l}=oe(Ue()),s=_(()=>({[ct.IMAGE]:vy,[ct.TEXT]:gy,[ct.SHAPE]:Xy,[ct.LINE]:Qy,[ct.TABLE]:Ay,[ct.CHART]:va,[ct.LATEX]:va,[ct.ELF]:va})[t.elementInfo.type]||null),a=_(()=>{const r=[];for(let c=0;c<l.value.length;c++)l.value[c].animations.map(R=>R.elId).includes(t.elementInfo.id)&&r.push(c);return r}),i=_(()=>"rotate"in t.elementInfo?t.elementInfo.rotate:0),u=_(()=>"height"in t.elementInfo?t.elementInfo.height:0);return(r,c)=>(g(),I("div",{class:E(["operate",{"multi-select":r.isMultiSelect&&!r.isActive}]),style:ee({top:r.elementInfo.top*v(n)+"px",left:r.elementInfo.left*v(n)+"px",transform:`rotate(${i.value}deg)`,transformOrigin:`${r.elementInfo.width*v(n)/2}px ${u.value*v(n)/2}px`})},[r.isSelected?(g(),k(Vt(s.value),{key:0,elementInfo:r.elementInfo,handlerVisible:!r.elementInfo.lock&&(r.isActiveGroupElement||!r.isMultiSelect),rotateElement:r.rotateElement,scaleElement:r.scaleElement,dragLineElement:r.dragLineElement,moveShapeKeypoint:r.moveShapeKeypoint},null,8,["elementInfo","handlerVisible","rotateElement","scaleElement","dragLineElement","moveShapeKeypoint"])):z("",!0),v(o)==="elAnimation"&&a.value.length?(g(),I("div",wy,[(g(!0),I(ie,null,me(a.value,d=>(g(),I("div",{class:"index-item",key:d},Me(d+1),1))),128))])):z("",!0),r.isActive&&r.elementInfo.link?(g(),k(Ey,{key:2,elementInfo:r.elementInfo,link:r.elementInfo.link,openLinkDialog:r.openLinkDialog,onMousedown:c[0]||(c[0]=Fe(()=>{},["stop"]))},null,8,["elementInfo","link","openLinkDialog"])):z("",!0)],6))}}),Jy=fe(ky,[["__scopeId","data-v-1ff7dd88"]]),xy=["onClick"],$y=j({__name:"Tabs",props:{value:{},tabs:{},card:{type:Boolean,default:!1},tabsStyle:{},tabStyle:{},spaceAround:{type:Boolean,default:!1},spaceBetween:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const n=t;return(o,l)=>(g(),I("div",{class:E(["tabs",{card:o.card,"space-around":o.spaceAround,"space-between":o.spaceBetween}]),style:ee(o.tabsStyle||{})},[(g(!0),I(ie,null,me(o.tabs,s=>(g(),I("div",{class:E(["tab",{active:s.key===o.value}]),key:s.key,style:ee({...o.tabStyle||{},"--color":s.color}),onClick:a=>n("update:value",s.key)},Me(s.label),15,xy))),128))],6))}}),uo=fe($y,[["__scopeId","data-v-ad9c9630"]]),Dy={class:"prefix"},By=["disabled","value","placeholder"],zy={class:"suffix"},jy=j({__name:"Input",props:{value:{},disabled:{type:Boolean,default:!1},placeholder:{default:""},simple:{type:Boolean,default:!1}},emits:["update:value","input","change","blur","focus","enter"],setup(e,{expose:t,emit:n}){const o=n,l=A(!1),s=c=>{o("update:value",c.target.value)},a=c=>{l.value=!1,o("blur",c)},i=c=>{l.value=!0,o("focus",c)},u=A();return t({focus:()=>{u.value&&u.value.focus()}}),(c,d)=>(g(),I("div",{class:E(["input",{disabled:c.disabled,focused:l.value,simple:c.simple}])},[m("span",Dy,[We(c.$slots,"prefix",{},void 0,!0)]),m("input",{type:"text",ref_key:"inputRef",ref:u,disabled:c.disabled,value:c.value,placeholder:c.placeholder,onInput:d[0]||(d[0]=R=>s(R)),onFocus:d[1]||(d[1]=R=>i(R)),onBlur:d[2]||(d[2]=R=>a(R)),onChange:d[3]||(d[3]=R=>o("change",R)),onKeydown:d[4]||(d[4]=Yt(R=>o("enter",R),["enter"]))},null,40,By),m("span",zy,[We(c.$slots,"suffix",{},void 0,!0)])],2))}}),el=fe(jy,[["__scopeId","data-v-8376a8ac"]]),qy=j({__name:"Button",props:{checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{default:"default"},size:{default:"normal"},first:{type:Boolean,default:!1},last:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const n=e,o=t,l=()=>{n.disabled||o("click")};return(s,a)=>(g(),I("button",{class:E(["button",{disabled:s.disabled,checked:!s.disabled&&s.checked,default:!s.disabled&&s.type==="default",primary:!s.disabled&&s.type==="primary",checkbox:!s.disabled&&s.type==="checkbox",radio:!s.disabled&&s.type==="radio",small:s.size==="small",first:s.first,last:s.last}]),onClick:a[0]||(a[0]=i=>l())},[We(s.$slots,"default",{},void 0,!0)],2))}}),Ve=fe(qy,[["__scopeId","data-v-a85d4d53"]]),eL={key:0,class:"select-wrap"},tL={class:"selector"},nL={class:"icon"},oL=["onClick"],lL={class:"selector"},sL={class:"icon"},aL=j({__name:"Select",props:{value:{},options:{},disabled:{type:Boolean,default:!1},search:{type:Boolean,default:!1},searchLabel:{default:"搜索"}},emits:["update:value"],setup(e,{emit:t}){const n=e,o=t,l=A(!1),s=A(),a=A(),i=A(0),u=A(""),r=_(()=>{var f;return((f=n.options.find(h=>h.value===n.value))==null?void 0:f.label)||n.value}),c=_(()=>{if(!n.search||!u.value.trim())return n.options;const f=n.options.filter(h=>h.label.toLowerCase().indexOf(u.value.toLowerCase())!==-1);return f.length?f:n.options});Oe(l,()=>{l.value?we(()=>{a.value&&a.value.focus()}):u.value=""}),Gt(()=>{u.value=""});const d=()=>{s.value&&(i.value=s.value.clientWidth)},R=new ResizeObserver(d);Ee(()=>{s.value&&R.observe(s.value)}),mt(()=>{s.value&&R.unobserve(s.value)});const p=f=>{f.disabled||(o("update:value",f.value),l.value=!1)};return(f,h)=>{const P=te("IconDown");return f.disabled?(g(),I("div",eL,[m("div",{class:"select disabled",ref_key:"selectRef",ref:s},[m("div",tL,Me(f.value),1),m("div",nL,[We(f.$slots,"icon",{},()=>[N(P,{size:14})],!0)])],512)])):(g(),k(Ke,{key:1,class:"select-wrap",trigger:"click",value:l.value,"onUpdate:value":h[1]||(h[1]=O=>l.value=O),placement:"bottom",contentStyle:{padding:0,boxShadow:"0 6px 16px 0 rgba(0, 0, 0, 0.08)"}},{content:U(()=>[f.search?(g(),I(ie,{key:0},[N(el,{ref_key:"searchInputRef",ref:a,simple:"",placeholder:f.searchLabel,value:u.value,"onUpdate:value":h[0]||(h[0]=O=>u.value=O),style:ee({width:i.value+2+"px"})},null,8,["placeholder","value","style"]),N(Ce,{margin:0})],64)):z("",!0),m("div",{class:"options",style:ee({width:i.value+2+"px"})},[(g(!0),I(ie,null,me(c.value,O=>(g(),I("div",{class:E(["option",{disabled:O.disabled,selected:O.value===f.value}]),key:O.value,onClick:L=>p(O)},Me(O.label),11,oL))),128))],4)]),default:U(()=>[m("div",{class:"select",ref_key:"selectRef",ref:s},[m("div",lL,Me(r.value),1),m("div",sL,[We(f.$slots,"icon",{},()=>[N(P,{size:14})],!0)])],512)]),_:3},8,["value"]))}}}),rt=fe(aL,[["__scopeId","data-v-b124c276"]]),iL=e=>(Je("data-v-aad6909f"),e=e(),xe(),e),rL={class:"link-dialog"},uL={key:2,class:"preview"},cL=iL(()=>m("div",null,"预览:",-1)),dL={class:"btns"},RL=j({__name:"LinkDialog",emits:["close"],setup(e,{emit:t}){var f;const n=t,{handleElement:o}=oe(Xe()),{slides:l,currentSlide:s}=oe(Ue()),a=A("web"),i=A(""),u=A(""),r=_(()=>l.value.map((h,P)=>({label:`幻灯片 ${P+1}`,value:h.id,disabled:s.value.id===h.id})));u.value=((f=l.value.find(h=>h.id!==s.value.id))==null?void 0:f.id)||"";const c=_(()=>u.value&&l.value.find(h=>h.id===u.value)||null),d=[{key:"web",label:"网页链接"},{key:"slide",label:"幻灯片页面"}],{setLink:R}=NR();Ee(()=>{var h;(h=o.value)!=null&&h.link&&(o.value.link.type==="web"?i.value=o.value.link.target:o.value.link.type==="slide"&&(u.value=o.value.link.target),a.value=o.value.link.type)});const p=()=>{const h={type:a.value,target:a.value==="web"?i.value:u.value};o.value&&(R(o.value,h)?n("close"):i.value="")};return(h,P)=>(g(),I("div",rL,[N(uo,{tabs:d,value:a.value,"onUpdate:value":P[0]||(P[0]=O=>a.value=O),tabsStyle:{marginBottom:"20px"}},null,8,["value"]),a.value==="web"?(g(),k(el,{key:0,class:"input",value:i.value,"onUpdate:value":P[1]||(P[1]=O=>i.value=O),placeholder:"请输入网页链接地址"},null,8,["value"])):z("",!0),a.value==="slide"?(g(),k(rt,{key:1,class:"input",value:u.value,"onUpdate:value":P[2]||(P[2]=O=>u.value=O),options:r.value},null,8,["value","options"])):z("",!0),a.value==="slide"&&c.value?(g(),I("div",uL,[cL,N(ni,{class:"thumbnail",slide:c.value,size:500},null,8,["slide"])])):z("",!0),m("div",dL,[N(Ve,{onClick:P[3]||(P[3]=O=>n("close")),style:{"margin-right":"10px"}},{default:U(()=>[ge("取消")]),_:1}),N(Ve,{type:"primary",onClick:P[4]||(P[4]=O=>p())},{default:U(()=>[ge("确认")]),_:1})])]))}}),fL=fe(RL,[["__scopeId","data-v-aad6909f"]]),pL=j({__name:"Modal",props:{visible:{type:Boolean},width:{default:480},closeButton:{type:Boolean,default:!1},closeOnClickMask:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},contentStyle:{}},emits:["update:visible","closed"],setup(e,{emit:t}){const{IconClose:n}=mp,o=e,l=A(),s=t,a=A(!1),i=_(()=>({width:o.width+"px",...o.contentStyle||{}}));Oe(()=>o.visible,()=>{o.visible&&we(()=>l.value.focus())});const u=()=>{s("update:visible",!1),s("closed")},r=()=>{o.visible&&o.closeOnEsc&&u()},c=()=>{o.closeOnClickMask&&u()};return(d,R)=>(g(),k(qa,{to:"body"},[N(io,{name:"modal-fade"},{default:U(()=>[de(m("div",{class:"modal",ref_key:"modalRef",ref:l,tabindex:"-1",onKeyup:R[4]||(R[4]=Yt(p=>r(),["esc"]))},[m("div",{class:"mask",onClick:R[0]||(R[0]=p=>c())}),N(io,{name:"modal-zoom",onAfterLeave:R[2]||(R[2]=p=>a.value=!1),onBeforeEnter:R[3]||(R[3]=p=>a.value=!0)},{default:U(()=>[de(m("div",{class:"modal-content",style:ee(i.value)},[d.closeButton?(g(),I("span",{key:0,class:"close-btn",onClick:R[1]||(R[1]=p=>u())},[N(v(n))])):z("",!0),a.value?We(d.$slots,"default",{key:1},void 0,!0):z("",!0)],4),[[yt,d.visible]])]),_:3})],544),[[yt,d.visible]])]),_:3})]))}}),tl=fe(pL,[["__scopeId","data-v-189609cf"]]),hL={class:"operates"},vL={key:2,class:"drag-mask"},mL=j({__name:"index",setup(e){const t=Xe(),{activeElementIdList:n,activeGroupElementId:o,handleElementId:l,hiddenElementIdList:s,editorAreaFocus:a,gridLineSize:i,showRuler:u,creatingElement:r,creatingCustomShape:c,canvasScale:d,textFormatPainter:R}=oe(t),{currentSlide:p}=oe(Ue()),{ctrlKeyState:f,spaceKeyState:h}=oe(Mn()),P=A(),O=A([]),L=A(!1),S=()=>L.value=!0;Oe(l,()=>{t.setActiveGroupElementId("")});const X=A([]);Io(()=>{X.value=p.value?JSON.parse(JSON.stringify(p.value.elements)):[]});const y=A(),{dragViewport:W,viewportStyles:T}=cX(y);RX(y);const{mouseSelection:V,mouseSelectionVisible:b,mouseSelectionQuadrant:Y,updateMouseSelection:F}=dX(X,P),{dragElement:C}=mX(X,O,d),{dragLineElement:K}=MX(X),{selectElement:H}=vX(X,C),{scaleElement:Q,scaleMultiElement:G}=hX(X,O,d),{rotateElement:$}=pX(X,P,d),{moveShapeKeypoint:se}=gX(X,d),{selectAllElements:Re}=As(),{deleteAllElements:ae}=Zs(),{pasteElement:Pe}=Ni(),{enterScreeningFromStart:x}=bs(),{updateSlideIndex:B}=Wl(),{createTextElement:Ie,createShapeElement:ce}=il();Ee(()=>{n.value.length&&we(()=>t.setActiveElementIdList([]))});const q=Ne=>{n.value.length&&t.setActiveElementIdList([]),h.value?W(Ne):F(Ne),a.value||t.setEditorareaFocus(!0),R.value&&t.setTextFormatPainter(null),uX()},ne=Ne=>{if(n.value.length||r.value||c.value||!P.value)return;const he=P.value.getBoundingClientRect(),Le=(Ne.pageX-he.x)/d.value,ve=(Ne.pageY-he.y)/d.value;Ie({left:Le,top:ve,width:200/d.value,height:0})};mt(()=>{R.value&&t.setTextFormatPainter(null)});const Se=()=>{a.value&&t.setEditorareaFocus(!1)},{scaleCanvas:w}=Xi(),D=vt.throttle(w,100,{leading:!0,trailing:!1}),Z=vt.throttle(B,300,{leading:!0,trailing:!1}),J=Ne=>{Ne.preventDefault(),f.value?Ne.deltaY>0?D("-"):Ne.deltaY<0&&D("+"):Ne.deltaY>0?Z(Ye.DOWN):Ne.deltaY<0&&Z(Ye.UP)},re=()=>{t.setRulerState(!u.value)},{insertElementFromCreateSelection:ue,formatCreateSelection:Te}=SX(P),Ae=Ne=>{const{start:he,end:Le,path:ve,viewBox:_e}=Ne,je=Te({start:he,end:Le});if(je){const pe={};Ne.fill&&(pe.fill=Ne.fill),Ne.outline&&(pe.outline=Ne.outline),ce(je,{path:ve,viewBox:_e},pe)}t.setCreatingCustomShapeState(!1)},Qe=()=>[{text:"粘贴",subText:"Ctrl + V",handler:Pe},{text:"全选",subText:"Ctrl + A",handler:Re},{text:"标尺",subText:u.value?"√":"",handler:re},{text:"网格线",handler:()=>t.setGridLineSize(i.value?0:50),children:[{text:"无",subText:i.value===0?"√":"",handler:()=>t.setGridLineSize(0)},{text:"小",subText:i.value===25?"√":"",handler:()=>t.setGridLineSize(25)},{text:"中",subText:i.value===50?"√":"",handler:()=>t.setGridLineSize(50)},{text:"大",subText:i.value===100?"√":"",handler:()=>t.setGridLineSize(100)}]},{text:"重置当前页",handler:ae},{divider:!0},{text:"幻灯片放映",subText:"F5",handler:x}];return an(wp,d),(Ne,he)=>{const Le=ze("contextmenu"),ve=ze("click-outside");return de((g(),I("div",{class:"canvas",ref_key:"canvasRef",ref:y,onWheel:he[4]||(he[4]=_e=>J(_e)),onMousedown:he[5]||(he[5]=_e=>q(_e)),onDblclick:he[6]||(he[6]=_e=>ne(_e))},[v(r)?(g(),k(ny,{key:0,onCreated:he[0]||(he[0]=_e=>v(ue)(_e))})):z("",!0),v(c)?(g(),k(ay,{key:1,onCreated:he[1]||(he[1]=_e=>Ae(_e))})):z("",!0),m("div",{class:"viewport-wrapper",style:ee({width:v(T).width*v(d)+"px",height:v(T).height*v(d)+"px",left:v(T).left+"px",top:v(T).top+"px"})},[m("div",hL,[(g(!0),I(ie,null,me(O.value,(_e,je)=>(g(),k(xV,{key:je,type:_e.type,axis:_e.axis,length:_e.length,canvasScale:v(d)},null,8,["type","axis","length","canvasScale"]))),128)),v(n).length>1?(g(),k(cy,{key:0,elementList:X.value,scaleMultiElement:v(G)},null,8,["elementList","scaleMultiElement"])):z("",!0),(g(!0),I(ie,null,me(X.value,_e=>de((g(),k(Jy,{key:_e.id,elementInfo:_e,isSelected:v(n).includes(_e.id),isActive:v(l)===_e.id,isActiveGroupElement:v(o)===_e.id,isMultiSelect:v(n).length>1,rotateElement:v($),scaleElement:v(Q),openLinkDialog:S,dragLineElement:v(K),moveShapeKeypoint:v(se)},null,8,["elementInfo","isSelected","isActive","isActiveGroupElement","isMultiSelect","rotateElement","scaleElement","dragLineElement","moveShapeKeypoint"])),[[yt,!v(s).includes(_e.id)]])),128)),N(kV)]),m("div",{class:"viewport",ref_key:"viewportRef",ref:P,style:ee({transform:`scale(${v(d)})`})},[v(b)?(g(),k(_V,{key:0,top:v(V).top,left:v(V).left,width:v(V).width,height:v(V).height,quadrant:v(Y)},null,8,["top","left","width","height","quadrant"])):z("",!0),(g(!0),I(ie,null,me(X.value,(_e,je)=>de((g(),k(AV,{key:_e.id,elementInfo:_e,elementIndex:je+1,isMultiSelect:v(n).length>1,selectElement:v(H),openLinkDialog:S},null,8,["elementInfo","elementIndex","isMultiSelect","selectElement"])),[[yt,!v(s).includes(_e.id)]])),128))],4)],4),v(h)?(g(),I("div",vL)):z("",!0),v(u)?(g(),k(jV,{key:3,viewportStyles:v(T),elementList:X.value},null,8,["viewportStyles","elementList"])):z("",!0),N(tl,{visible:L.value,"onUpdate:visible":he[3]||(he[3]=_e=>L.value=_e),width:540},{default:U(()=>[N(fL,{onClose:he[2]||(he[2]=_e=>L.value=!1)})]),_:1},8,["visible"])],32)),[[Le,Qe],[ve,Se]])}}}),ML=fe(mL,[["__scopeId","data-v-b3a3d981"]]),gL="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAjVBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADqhzP4AAAALnRSTlMAbY+Q2eX0P+rSwvDgoXdORQjdlSP4zL1xZ2NJOjYxJx7txrWnflIOhoRXW1oUdCJEfAAAASxJREFUSMftlNtigjAMhoFRjgoC4yCgOKdM3Zb3f7w1V+0qPV14pd9l8v/QtEmcF3P1bqW/RBAUFvrrB4A/muvPVA+fX3b69mCszyKqTx6n71B/NL9Tl9jpt6hvJjt9enpb5LLNxT/vYlBS+21f8Ia+Bh1BMnOGqQE9JOMco481nN1FsiopAfNrzhGio9w4EqZqhcfquNAGHT5ziIQpza/CO0codexj7GQ+MpRqR0gA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EMCMBfgejmAReAAZokItIrAA8JIim8ialGPDrwbYEAwp7mCDAEooJOwgUsLADXwFzO0gU8GkH2biwf8jtgIdDkI3XqA+3lgfrb7BX4zuZecGHQP8PssOCcyJoVGmgccZJoInbOxK0ari9WznG/gDnxpslFwsdvQAAAABJRU5ErkJggg==",VL="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAAAAAClZ7nPAAAAAXRSTlMAQObYZgAAAChJREFUGNNjwAf4/wPBB6KoA+wPmImiGBjYHzAwDEqK+f//A8RQ+AAANWVSOQAUvaoAAAAASUVORK5CYII=",TR="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAIBAMAAAA7P9P/AAAAKlBMVEUAAAAVFxcUFRYUFRYUFRYTFRYTFRUWFhYVFRUaGhocHBwVFRYTFRcTFBXQWHqiAAAADXRSTlMAPPbr28aEUiQUCZSSqlxh2AAAADdJREFUCNdjYLsLAgkMPGB6AwNXLJC6uoCBYQqQ9mRgYOCwvXu5gQEIhO4qMoAA+90CBjAQBGIAxTUWlqG28UUAAAAASUVORK5CYII=",yL="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAVFBMVEUAAACVyv+Ryf+b2f+QyP+PyP8ajf+QyP+QyP8ajf+PyP8bkv+PyP+QyP+Qyf8ajf+Sy/8ZjP6Px/+KxP4cjf5zuv5er/4mkv59vv46nf6Cwf5Vqv5saB0DAAAAEXRSTlMAGJYG8vTm48emghzZv0ftLWnfym4AAADnSURBVEjH7dXbEoIgFIXhOIjiMTcHtd7/PbtpmrEFm+iy6b/mY1ABL180WLMyGTu8jV/WQstZ2LWYPQFTBuYE1g/6g18G/ohhd24P8fAfgC06euWkKAB/d3Sq6RUHtkBQJ7LAbzdK1F5z4DkehUgDHyhTp5LgTtn6FNhcHjQiASIxSQTecUArAAexzQAiDySAwIMJwM6DEYDjga4G3yzJ1D60rX2tw1Lz4e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HR7dj9tT+JE/GSqoRrXNY+Ge7TVfb2CcKHmhtMkLF7RJiscExcKGA5eaEpQF/niSAYgj/8MzQdcKi98l4bUhaY76huVkRn3NF9+Q+PC+sXAJ2HS0pof3iIzRk/md9deGVgOiKcXaV9vFo4tI3feempz6jEDX86qfVUJrjNrAAAAAElFTkSuQmCC",UL={class:"shape-item-thumbnail"},QL={class:"shape-content"},FL={overflow:"visible",width:"18",height:"18"},ZL=["transform"],AL=["fill","stroke","d"],KL=j({__name:"ShapeItemThumbnail",props:{shape:{}},setup(e){return(t,n)=>(g(),I("div",UL,[m("div",QL,[(g(),I("svg",FL,[m("g",{transform:`scale(${18/(t.shape.viewBox[0]||t.shape.viewBox)}, ${18/(t.shape.viewBox[1]||t.shape.viewBox)}) translate(0,0) matrix(1,0,0,1,0,0)`},[m("path",{class:E(["shape-path",{outlined:t.shape.outlined}]),"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:t.shape.outlined?"#999":"transparent",stroke:t.shape.outlined?"transparent":"#999","stroke-width":"2",d:t.shape.path},null,10,AL)],8,ZL)]))])]))}}),VR=fe(KL,[["__scopeId","data-v-8645cf7f"]]),_L={class:"shape-pool"},HL={class:"category-name"},CL={class:"shape-list"},GL=j({__name:"ShapePool",emits:["select"],setup(e,{emit:t}){const n=t,o=l=>{n("select",l)};return(l,s)=>(g(),I("div",_L,[(g(!0),I(ie,null,me(v(Sc),a=>(g(),I("div",{class:"category",key:a.type},[m("div",HL,Me(a.type),1),m("div",CL,[(g(!0),I(ie,null,me(a.children,(i,u)=>(g(),k(VR,{class:"shape-item",key:u,shape:i,onClick:r=>o(i)},null,8,["shape","onClick"]))),128))])]))),128))]))}}),EL=fe(GL,[["__scopeId","data-v-bfed4bc8"]]),wL=[{type:"直线",children:[{path:"M 0 0 L 20 20",style:"solid",points:["",""]},{path:"M 0 0 L 20 20",style:"dashed",points:["",""]},{path:"M 0 0 L 20 20",style:"solid",points:["","arrow"]},{path:"M 0 0 L 20 20",style:"dashed",points:["","arrow"]},{path:"M 0 0 L 20 20",style:"solid",points:["","dot"]}]},{type:"折线、曲线",children:[{path:"M 0 0 L 0 20 L 20 20",style:"solid",points:["","arrow"],isBroken:!0},{path:"M 0 0 L 10 0 L 10 20 L 20 20",style:"solid",points:["","arrow"],isBroken2:!0},{path:"M 0 0 Q 0 20 20 20",style:"solid",points:["","arrow"],isCurve:!0},{path:"M 0 0 C 20 0 0 20 20 20",style:"solid",points:["","arrow"],isCubic:!0}]}],kL={class:"line-pool"},JL={class:"category-name"},xL={class:"line-list"},$L=["onClick"],DL={overflow:"visible",width:"20",height:"20"},BL=["d","stroke-dasharray","marker-start","marker-end"],zL=j({__name:"LinePool",emits:["select"],setup(e,{emit:t}){const n=t,o=l=>{n("select",l)};return(l,s)=>(g(),I("div",kL,[(g(!0),I(ie,null,me(v(wL),(a,i)=>(g(),I("div",{class:"category",key:a.type},[m("div",JL,Me(a.type),1),m("div",xL,[(g(!0),I(ie,null,me(a.children,(u,r)=>(g(),I("div",{class:"line-item",key:r},[m("div",{class:"line-content",onClick:c=>o(u)},[(g(),I("svg",DL,[m("defs",null,[u.points[0]?(g(),k(fs,{key:0,class:"line-marker",id:`preset-line-${i}-${r}`,position:"start",type:u.points[0],color:"currentColor",baseSize:2},null,8,["id","type"])):z("",!0),u.points[1]?(g(),k(fs,{key:1,class:"line-marker",id:`preset-line-${i}-${r}`,position:"end",type:u.points[1],color:"currentColor",baseSize:2},null,8,["id","type"])):z("",!0)]),m("path",{class:"line-path",d:u.path,stroke:"currentColor",fill:"none","stroke-width":"2","stroke-dasharray":u.style==="solid"?"0, 0":"4, 1","marker-start":u.points[0]?`url(#${`preset-line-${i}-${r}`}-${u.points[0]}-start)`:"","marker-end":u.points[1]?`url(#${`preset-line-${i}-${r}`}-${u.points[1]}-end)`:""},null,8,BL)]))],8,$L)]))),128))])]))),128))]))}}),jL=fe(zL,[["__scopeId","data-v-2fdfc0a5"]]),qL={class:"chart-pool"},eb=["onClick"],tb={class:"name"},nb=j({__name:"ChartPool",emits:["select"],setup(e,{emit:t}){const n=t,o=["bar","column","line","area","scatter","pie","ring","radar"],l=s=>{n("select",s)};return(s,a)=>{const i=te("IconChartLine"),u=te("IconChartHistogram"),r=te("IconChartPie"),c=te("IconChartHistogramOne"),d=te("IconChartLineArea"),R=te("IconChartRing"),p=te("IconChartScatter"),f=te("IconRadarChart");return g(),I("ul",qL,[(g(),I(ie,null,me(o,(h,P)=>m("li",{class:"chart-item",key:P},[m("div",{class:"chart-content",onClick:O=>l(h)},[h==="line"?(g(),k(i,{key:0,size:"24"})):h==="bar"?(g(),k(u,{key:1,size:"24"})):h==="pie"?(g(),k(r,{key:2,size:"24"})):h==="column"?(g(),k(c,{key:3,size:"24"})):h==="area"?(g(),k(d,{key:4,size:"24"})):h==="ring"?(g(),k(R,{key:5,size:"24"})):h==="scatter"?(g(),k(p,{key:6,size:"24"})):h==="radar"?(g(),k(f,{key:7,size:"23"})):z("",!0),m("div",tb,Me(v(Qa)[h]),1)],8,eb)])),64))])}}}),ob=fe(nb,[["__scopeId","data-v-1216fb52"]]),yR=e=>(Je("data-v-2235b1b3"),e=e(),xe(),e),lb={class:"prefix"},sb={class:"input-wrap"},ab=["disabled","placeholder"],ib={class:"handlers"},rb=yR(()=>m("svg",{fill:"currentColor",width:"1em",height:"1em",viewBox:"64 64 896 896"},[m("path",{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"})],-1)),ub=[rb],cb=yR(()=>m("svg",{fill:"currentColor",width:"1em",height:"1em",viewBox:"64 64 896 896"},[m("path",{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"})],-1)),db=[cb],Rb={class:"suffix"},fb=j({__name:"NumberInput",props:{value:{},disabled:{type:Boolean,default:!1},placeholder:{default:""},min:{default:0},max:{default:1/0},step:{default:1}},emits:["update:value","input","change","blur","focus","enter"],setup(e,{emit:t}){const n=e,o=t,l=A(0),s=A(!1);Oe(()=>n.value,()=>{n.value!==l.value&&(l.value=n.value)},{immediate:!0}),Oe(l,()=>{const c=+l.value;if(!isNaN(c)){{if(c>n.max)return;if(c<n.min)return}l.value=c,o("update:value",l.value)}});const a=()=>{let c=+l.value;isNaN(c)?c=n.min:c>n.max?c=n.max:c<n.min&&(c=n.min),l.value=c,o("update:value",l.value)},i=c=>{a(),o("enter",c)},u=c=>{a(),s.value=!1,o("blur",c)},r=c=>{s.value=!0,o("focus",c)};return(c,d)=>(g(),I("div",{class:E(["number-input",{disabled:c.disabled,focused:s.value}])},[m("span",lb,[We(c.$slots,"prefix",{},void 0,!0)]),m("div",sb,[de(m("input",{type:"text",disabled:c.disabled,"onUpdate:modelValue":d[0]||(d[0]=R=>l.value=R),placeholder:c.placeholder,onInput:d[1]||(d[1]=R=>o("input",R)),onFocus:d[2]||(d[2]=R=>r(R)),onBlur:d[3]||(d[3]=R=>u(R)),onChange:d[4]||(d[4]=R=>o("change",R)),onKeydown:d[5]||(d[5]=Yt(R=>i(R),["enter"]))},null,40,ab),[[oc,l.value]]),m("div",ib,[m("span",{class:"handler",onClick:d[6]||(d[6]=R=>l.value+=c.step)},ub),m("span",{class:"handler",onClick:d[7]||(d[7]=R=>l.value-=c.step)},db)])]),m("span",Rb,[We(c.$slots,"suffix",{},void 0,!0)])],2))}}),en=fe(fb,[["__scopeId","data-v-2235b1b3"]]),LR=e=>(Je("data-v-f869c45f"),e=e(),xe(),e),pb={class:"table-generator"},hb={class:"title"},vb={class:"lef"},mb=["onMouseenter"],Mb={key:1,class:"custom"},gb={class:"row"},Sb=LR(()=>m("div",{class:"label",style:{width:"25%"}},"行数:",-1)),Ob={class:"row"},Pb=LR(()=>m("div",{class:"label",style:{width:"25%"}},"列数:",-1)),Nb={class:"btns"},Xb=j({__name:"TableGenerator",emits:["insert","close"],setup(e,{emit:t}){const n=t,o=A([]),l=A(3),s=A(3),a=A(!1),i=()=>{if(!o.value.length)return;const[c,d]=o.value;n("insert",{row:c,col:d})},u=()=>{if(l.value<1||l.value>20)return Wt.warning("行数/列数必须在0~20之间!");if(s.value<1||s.value>20)return Wt.warning("行数/列数必须在0~20之间!");n("insert",{row:l.value,col:s.value}),a.value=!1},r=()=>{n("close"),a.value=!1};return(c,d)=>(g(),I("div",pb,[m("div",hb,[m("div",vb,"表格 "+Me(o.value.length?`${o.value[0]} x ${o.value[1]}`:""),1),m("div",{class:"right",onClick:d[0]||(d[0]=R=>a.value=!a.value)},Me(a.value?"返回":"自定义"),1)]),a.value?(g(),I("div",Mb,[m("div",gb,[Sb,N(en,{min:1,max:20,value:l.value,"onUpdate:value":d[3]||(d[3]=R=>l.value=R),style:{width:"75%"}},null,8,["value"])]),m("div",Ob,[Pb,N(en,{min:1,max:20,value:s.value,"onUpdate:value":d[4]||(d[4]=R=>s.value=R),style:{width:"75%"}},null,8,["value"])]),m("div",Nb,[N(Ve,{class:"btn",onClick:d[5]||(d[5]=R=>r())},{default:U(()=>[ge("取消")]),_:1}),N(Ve,{class:"btn",type:"primary",onClick:d[6]||(d[6]=R=>u())},{default:U(()=>[ge("确认")]),_:1})])])):(g(),I("table",{key:0,onMouseleave:d[1]||(d[1]=R=>o.value=[]),onClick:d[2]||(d[2]=R=>i())},[m("tbody",null,[(g(),I(ie,null,me(10,R=>m("tr",{key:R},[(g(),I(ie,null,me(10,p=>m("td",{onMouseenter:f=>o.value=[R,p],key:p},[m("div",{class:E(["cell",{active:o.value.length&&R<=o.value[0]&&p<=o.value[1]}])},null,2)],40,mb)),64))])),64))])],32))]))}}),Tb=fe(Xb,[["__scopeId","data-v-f869c45f"]]);var jl=82;function ko(e){return Ja[e]==null&&Vb(e),Ja[e]}function Vb(e){var t=yb[e];if(t!=null){for(var n=t.substring(3,5),o=1*n.charCodeAt(0)-jl,l=1*n.charCodeAt(1)-jl,s=t.substring(5),a=[[]],i=1/0,u=-1/0,r=1/0,c=-1/0,d=0;d<s.length;){var R=s.substring(d,d+2);if(R==" R")a.push([]);else{var p=R.charCodeAt(0)-jl-o,f=R.charCodeAt(1)-jl;i=Math.min(f,i),u=Math.max(f,u),r=Math.min(p,r),c=Math.max(p,c),a[a.length-1].push([p,f])}d+=2}Ja[e]={w:l-o,xmin:r,xmax:c,ymin:i,ymax:u,polylines:a}}}var Ja={},yb={1:" 9MWRMNV RRMVV RPSTS",2:" 16MWOMOV ROMSMUNUPSQ ROQSQURUUSVOV",3:" 11MXVNTMRMPNOPOSPURVTVVU",4:" 12MWOMOV ROMRMTNUPUSTURVOV",5:" 12MWOMOV ROMUM ROQSQ ROVUV",6:" 9MVOMOV ROMUM ROQSQ",7:" 15MXVNTMRMPNOPOSPURVTVVUVR RSRVR",8:" 9MWOMOV RUMUV ROQUQ",9:" 3PTRMRV",10:" 7NUSMSTRVPVOTOS",11:" 9MWOMOV RUMOS RQQUV",12:" 6MVOMOV ROVUV",13:" 12LXNMNV RNMRV RVMRV RVMVV",14:" 9MWOMOV ROMUV RUMUV",15:" 14MXRMPNOPOSPURVSVUUVSVPUNSMRM",16:" 10MWOMOV ROMSMUNUQSROR",17:" 17MXRMPNOPOSPURVSVUUVSVPUNSMRM RSTVW",18:" 13MWOMOV ROMSMUNUQSROR RRRUV",19:" 13MWUNSMQMONOOPPTRUSUUSVQVOU",20:" 6MWRMRV RNMVM",21:" 9MXOMOSPURVSVUUVSVM",22:" 6MWNMRV RVMRV",23:" 12LXNMPV RRMPV RRMTV RVMTV",24:" 6MWOMUV RUMOV",25:" 7MWNMRQRV RVMRQ",26:" 9MWUMOV ROMUM ROVUV",27:" 9MWRMNV RRMVV RPSTS",28:" 16MWOMOV ROMSMUNUPSQ ROQSQURUUSVOV",29:" 6MVOMOV ROMUM",30:" 9MWRMNV RRMVV RNVVV",31:" 12MWOMOV ROMUM ROQSQ ROVUV",32:" 9MWUMOV ROMUM ROVUV",33:" 9MWOMOV RUMUV ROQUQ",34:" 20MXRMPNOPOSPURVSVUUVSVPUNSMRM RQQTR RTQQR",35:" 3PTRMRV",36:" 9MWOMOV RUMOS RQQUV",37:" 6MWRMNV RRMVV",38:" 12LXNMNV RNMRV RVMRV RVMVV",39:" 9MWOMOV ROMUV RUMUV",40:" 12MWOMUM RPQTR RTQPR ROVUV",41:" 14MXRMPNOPOSPURVSVUUVSVPUNSMRM",42:" 9MWOMOV RUMUV ROMUM",43:" 10MWOMOV ROMSMUNUQSROR",44:" 10MWOMRQOV ROMUM ROVUV",45:" 6MWRMRV RNMVM",46:" 15MWNONNOMPMQNRPRV RVOVNUMTMSNRP",47:" 13LXRMRV RPONPNSPTTTVSVPTOPO",48:" 6MWOMUV RUMOV",49:" 12LXRMRV RNOOPOSQTSTUSUPVO",50:" 13MXOVQVOROPPNRMSMUNVPVRTVVV",200:" 12MWRMPNOPOSPURVTUUSUPTNRM",201:" 4MWPORMRV",202:" 9MWONQMSMUNUPTROVUV",203:" 15MWONQMSMUNUPSQ RRQSQURUUSVQVOU",204:" 7MWSMSV RSMNSVS",205:" 14MWPMOQQPRPTQUSTURVQVOU RPMTM",206:" 14MWTMRMPNOPOSPURVTUUSTQRPPQOS",207:" 6MWUMQV ROMUM",208:" 19MWQMONOPQQSQUPUNSMQM RQQOROUQVSVUUURSQ",209:" 14MWUPTRRSPROPPNRMTNUPUSTURVPV",210:" 6PURURVSVSURU",211:" 7PUSVRVRUSUSWRY",212:" 12PURPRQSQSPRP RRURVSVSURU",213:" 13PURPRQSQSPRP RSVRVRUSUSWRY",214:" 12PURMRR RSMSR RRURVSVSURU",215:" 17NWPNRMSMUNUPRQRRSRSQUP RRURVSVSURU",216:" 3PTRMRQ",217:" 6NVPMPQ RTMTQ",218:" 10NVQMPNPPQQSQTPTNSMQM",219:" 16MWUNSMQMONOPQQTRUSUUSVQVOU RRLRW",220:" 3MWVLNW",221:" 7OVTLRNQPQSRUTW",222:" 7NUPLRNSPSSRUPW",223:" 3PTRLRW",224:" 3LXNRVR",225:" 6LXRNRV RNRVR",226:" 6LXNPVP RNTVT",227:" 6MWOOUU RUOOU",228:" 9MWRORU ROPUT RUPOT",229:" 6PURQRRSRSQRQ",230:" 7PUSMRORQSQSPRP",231:" 7PUSNRNRMSMSORQ",232:" 7LXSOVRSU RNRVR",233:" 12MXRLPW RULSW ROPVP ROSVS",234:" 21LXVRURTSSURVOVNUNSORRQSPSNRMPMONOPQSSUUVVV",235:" 20LXNNOQOSNV RVNUQUSVV RNNQOSOVN RNVQUSUVV",501:" 9I[RFJ[ RRFZ[ RMTWT",502:" 24G\\KFK[ RKFTFWGXHYJYLXNWOTP RKPTPWQXRYTYWXYWZT[K[",503:" 19H]ZKYIWGUFQFOGMILKKNKSLVMXOZQ[U[WZYXZV",504:" 16G\\KFK[ RKFRFUGWIXKYNYSXVWXUZR[K[",505:" 12H[LFL[ RLFYF RLPTP RL[Y[",506:" 9HZLFL[ RLFYF RLPTP",507:" 23H]ZKYIWGUFQFOGMILKKNKSLVMXOZQ[U[WZYXZVZS RUSZS",508:" 9G]KFK[ RYFY[ RKPYP",509:" 3NVRFR[",510:" 11JZVFVVUYTZR[P[NZMYLVLT",511:" 9G\\KFK[ RYFKT RPOY[",512:" 6HYLFL[ RL[X[",513:" 12F^JFJ[ RJFR[ RZFR[ RZFZ[",514:" 9G]KFK[ RKFY[ RYFY[",515:" 22G]PFNGLIKKJNJSKVLXNZP[T[VZXXYVZSZNYKXIVGTFPF",516:" 14G\\KFK[ RKFTFWGXHYJYMXOWPTQKQ",517:" 25G]PFNGLIKKJNJSKVLXNZP[T[VZXXYVZSZNYKXIVGTFPF RSWY]",518:" 17G\\KFK[ RKFTFWGXHYJYLXNWOTPKP RRPY[",519:" 21H\\YIWGTFPFMGKIKKLMMNOOUQWRXSYUYXWZT[P[MZKX",520:" 6JZRFR[ RKFYF",521:" 11G]KFKULXNZQ[S[VZXXYUYF",522:" 6I[JFR[ RZFR[",523:" 12F^HFM[ RRFM[ RRFW[ R\\FW[",524:" 6H\\KFY[ RYFK[",525:" 7I[JFRPR[ RZFRP",526:" 9H\\YFK[ RKFYF RK[Y[",527:" 9I[RFJ[ RRFZ[ RMTWT",528:" 24G\\KFK[ RKFTFWGXHYJYLXNWOTP RKPTPWQXRYTYWXYWZT[K[",529:" 6HYLFL[ RLFXF",530:" 9I[RFJ[ RRFZ[ RJ[Z[",531:" 12H[LFL[ RLFYF RLPTP RL[Y[",532:" 9H\\YFK[ RKFYF RK[Y[",533:" 9G]KFK[ RYFY[ RKPYP",534:" 25G]PFNGLIKKJNJSKVLXNZP[T[VZXXYVZSZNYKXIVGTFPF ROPUP",535:" 3NVRFR[",536:" 9G\\KFK[ RYFKT RPOY[",537:" 6I[RFJ[ RRFZ[",538:" 12F^JFJ[ RJFR[ RZFR[ RZFZ[",539:" 9G]KFK[ RKFY[ RYFY[",540:" 9I[KFYF ROPUP RK[Y[",541:" 22G]PFNGLIKKJNJSKVLXNZP[T[VZXXYVZSZNYKXIVGTFPF",542:" 9G]KFK[ RYFY[ RKFYF",543:" 14G\\KFK[ RKFTFWGXHYJYMXOWPTQKQ",544:" 10I[KFRPK[ RKFYF RK[Y[",545:" 6JZRFR[ RKFYF",546:" 19I[KKKILGMFOFPGQIRMR[ RYKYIXGWFUFTGSIRM",547:" 21H\\RFR[ RPKMLLMKOKRLTMUPVTVWUXTYRYOXMWLTKPK",548:" 6H\\KFY[ RK[YF",549:" 18G]RFR[ RILJLKMLQMSNTQUSUVTWSXQYMZL[L",550:" 17H\\K[O[LTKPKLLINGQFSFVGXIYLYPXTU[Y[",551:" 20G[G[IZLWOSSLVFV[UXSUQSNQLQKRKTLVNXQZT[Y[",552:" 41F]SHTITLSPRSQUOXMZK[J[IZIWJRKOLMNJPH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WNXQX[",609:" 9NVQFRGSFREQF RRMR[",610:" 12MWRFSGTFSERF RSMS^RaPbNb",611:" 9IZMFM[ RWMMW RQSX[",612:" 3NVRFR[",613:" 19CaGMG[ RGQJNLMOMQNRQR[ RRQUNWMZM\\N]Q][",614:" 11I\\MMM[ RMQPNRMUMWNXQX[",615:" 18I\\QMONMPLSLUMXOZQ[T[VZXXYUYSXPVNTMQM",616:" 18H[LMLb RLPNNPMSMUNWPXSXUWXUZS[P[NZLX",617:" 18I\\XMXb RXPVNTMQMONMPLSLUMXOZQ[T[VZXX",618:" 9KXOMO[ ROSPPRNTMWM",619:" 18J[XPWNTMQMNNMPNRPSUTWUXWXXWZT[Q[NZMX",620:" 9MYRFRWSZU[W[ ROMVM",621:" 11I\\MMMWNZP[S[UZXW RXMX[",622:" 6JZLMR[ RXMR[",623:" 12G]JMN[ RRMN[ RRMV[ RZMV[",624:" 6J[MMX[ RXMM[",625:" 10JZLMR[ RXMR[P_NaLbKb",626:" 9J[XMM[ RMMXM RM[X[",627:" 24H]QMONMPLRKUKXLZN[P[RZUWWTYPZM RQMSMTNUPWXXZY[Z[",628:" 31I\\UFSGQIOMNPMTLZKb RUFWFYHYKXMWNUORO RROTPVRWTWWVYUZS[Q[OZNYMV",629:" 17I\\JPLNNMOMQNROSRSVR[ RZMYPXRR[P_Ob",630:" 24I[TMQMONMPLSLVMYNZP[R[TZVXWUWRVOTMRKQIQGRFTFVGXI",631:" 19JZWOVNTMQMONOPPRSS RSSOTMVMXNZP[S[UZWX",632:" 23JYTFRGQHQIRJUKXK RXKTMQONRMUMWNYP[S]T_TaSbQbP`",633:" 19H\\IQJOLMNMONOPNTL[ RNTPPRNTMVMXOXRWWTb",634:" 27G\\HQIOKMMMNNNPMUMXNZO[Q[SZUWVUWRXMXJWGUFSFRHRJSMUPWRZT",635:" 9LWRMPTOXOZP[R[TYUW",636:" 19I[OMK[ RYNXMWMUNQROSNS RNSPTQUSZT[U[VZ",637:" 9JZKFMFOGPHX[ RRML[",638:" 21H]OMIb RNQMVMYO[Q[SZUXWT RYMWTVXVZW[Y[[Y\\W",639:" 14I[LMOMNSMXL[ RYMXPWRUURXOZL[",640:" 29JZTFRGQHQIRJUKXK RUKRLPMOOOQQSTTVT RTTPUNVMXMZO\\S^T_TaRbPb",641:" 18J[RMPNNPMSMVNYOZQ[S[UZWXXUXRWOVNTMRM",642:" 13G]PML[ RUMVSWXX[ RIPKNNM[M",643:" 19I[MSMVNYOZQ[S[UZWXXUXRWOVNTMRMPNNPMSIb",644:" 18I][MQMONMPLSLVMYNZP[R[TZVXWUWRVOUNSM",645:" 8H\\SMP[ RJPLNOMZM",646:" 16H\\IQJOLMNMONOPMVMYO[Q[TZVXXTYPYM",647:" 21G]ONMOKQJTJWKYLZN[Q[TZWXYUZRZOXMVMTORSPXMb",648:" 14I[KMMMOOU`WbYb RZMYOWRM]K`Jb",649:" 20F]VFNb RGQHOJMLMMNMPLULXMZO[Q[TZVXXUZP[M",650:" 23F]NMLNJQITIWJZK[M[OZQW RRSQWRZS[U[WZYWZTZQYNXM",651:" 22L\\UUTSRRPRNSMTLVLXMZO[Q[SZTXVRUWUZV[W[YZZY\\V",652:" 23M[MVOSRNSLTITGSFQGPIOMNTNZO[P[RZTXUUURVVWWYW[V",653:" 14MXTTTSSRQROSNTMVMXNZP[S[VYXV",654:" 24L\\UUTSRRPRNSMTLVLXMZO[Q[SZTXZF RVRUWUZV[W[YZZY\\V",655:" 17NXOYQXRWSUSSRRQROSNUNXOZQ[S[UZVYXV",656:" 24OWOVSQUNVLWIWGVFTGSIQQNZKaJdJfKgMfNcOZP[R[TZUYWV",657:" 28L[UUTSRRPRNSMTLVLXMZO[Q[SZTY RVRTYPdOfMgLfLdMaP^S\\U[XY[V",658:" 29M\\MVOSRNSLTITGSFQGPIOMNSM[ RM[NXOVQSSRURVSVUUXUZV[W[YZZY\\V",659:" 16PWSMSNTNTMSM RPVRRPXPZQ[R[TZUYWV",660:" 20PWSMSNTNTMSM RPVRRLdKf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WP",686:" 21H\\VFNb RQMNNLPKSKVLXNZQ[S[VZXXYUYRXPVNSMQM",687:" 16I[XOWNTMQMNNMOLQLSMUOWSZT\\T^S_Q_",700:" 18H\\QFNGLJKOKRLWNZQ[S[VZXWYRYOXJVGSFQF",701:" 5H\\NJPISFS[",702:" 15H\\LKLJMHNGPFTFVGWHXJXLWNUQK[Y[",703:" 16H\\MFXFRNUNWOXPYSYUXXVZS[P[MZLYKW",704:" 7H\\UFKTZT RUFU[",705:" 18H\\WFMFLOMNPMSMVNXPYSYUXXVZS[P[MZLYKW",706:" 24H\\XIWGTFRFOGMJLOLTMXOZR[S[VZXXYUYTXQVOSNRNOOMQLT",707:" 6H\\YFO[ RKFYF",708:" 30H\\PFMGLILKMMONSOVPXRYTYWXYWZT[P[MZLYKWKTLRNPQOUNWMXKXIWGTFPF",709:" 24H\\XMWPURRSQSNRLPKMKLLINGQFRFUGWIXMXRWWUZR[P[MZLX",710:" 6MWRYQZR[SZRY",711:" 9MWSZR[QZRYSZS\\R^Q_",712:" 12MWRMQNROSNRM RRYQZR[SZRY",713:" 15MWRMQNROSNRM RSZR[QZRYSZS\\R^Q_",714:" 9MWRFRT RRYQZR[SZRY",715:" 21I[LKLJMHNGPFTFVGWHXJXLWNVORQRT RRYQZR[SZRY",716:" 3NVRFRM",717:" 6JZNFNM RVFVM",718:" 14KYQFOGNINKOMQNSNUMVKVIUGSFQF",719:" 27H\\PBP_ RTBT_ RYIWGTFPFMGKIKKLMMNOOUQWRXSYUYXWZT[P[MZKX",720:" 3G][BIb",721:" 11KYVBTDRGPKOPOTPYR]T`Vb",722:" 11KYNBPDRGTKUPUTTYR]P`Nb",723:" 3NVRBRb",724:" 3E_IR[R",725:" 6E_RIR[ RIR[R",726:" 6E_IO[O RIU[U",727:" 6G]KKYY RYKKY",728:" 9JZRLRX RMOWU RWOMU",729:" 6MWRQQRRSSRRQ",730:" 8MWSFRGQIQKRLSKRJ",731:" 8MWRHQGRFSGSIRKQL",732:" 9E_UMXP[RXTUW RIR[R",733:" 12H]SBLb RYBRb RLOZO RKUYU",734:" 35E_\\O\\N[MZMYNXPVUTXRZP[L[JZIYHWHUISJRQNRMSKSIRGPFNGMIMKNNPQUXWZY[[[\\Z\\Y",735:" 28G]IIJKKOKUJYI[ R[IZKYOYUZY[[ RIIKJOKUKYJ[I RI[KZOYUYYZ[[",737:" 6KYOBO[ RUBU[",738:" 6F^RBR[ RI[[[",739:" 4F^[BI[[[",740:" 18E_RIQJRKSJRI RIYHZI[JZIY R[YZZ[[\\Z[Y",741:" 33F^RHNLKPJSJUKWMXOXQWRU RRHVLYPZSZUYWWXUXSWRU RRUQYP\\ RRUSYT\\ RP\\T\\",742:" 26F^RNQKPINHMHKIJKJOKRLTNWR\\ RRNSKTIVHWHYIZKZOYRXTVWR\\",743:" 20F^RGPJLOIR RRGTJXO[R RIRLUPZR] R[RXUTZR]",744:" 48F^RTTWVXXXZW[U[SZQXPVPSQ RSQUOVMVKUISHQHOINKNMOOQQ RQQNPLPJQISIUJWLXNXPWRT RRTQYP\\ RRTSYT\\ RP\\T\\",745:" 55F^RRR[Q\\ RRVQ\\ RRIQHOHNINKONRR RRISHUHVIVKUNRR RRRNOLNJNIOIQJR RRRVOXNZN[O[QZR RRRNULVJVIUISJR RRRVUXVZV[U[SZR",746:" 55F^ISJSLTMVMXLZ RISIRJQLQMRNTNWMYLZ RRGPIOLOOQUQXPZR\\ RRGTIULUOSUSXTZR\\ R[S[RZQXQWRVTVWWYXZ R[SZSXTWVWXXZ RKVYV",750:" 18PSSRRSQSPRPQQPRPSQSSRUQV RQQQRRRRQQQ",751:" 16PTQPPQPSQTSTTSTQSPQP RRQQRRSSRRQ",752:" 9NVPOTU RTOPU RNRVR",753:" 28MWRKQMOPMR RRKSMUPWR RRMOQ RRMUQ RROPQ RROTQ RQQSQ RMRWR",754:" 26MWMRMQNOONQMSMUNVOWQWR RPNTN ROOUO RNPVP RNQVQ RMRWR",755:" 14LRLFLRRRLF RLIPQ RLLOR RLOMQ",756:" 10MWRKQMOPMR RRKSMUPWR",757:" 11MWWRWQVOUNSMQMONNOMQMR",758:" 13G]]R]P\\MZJWHTGPGMHJJHMGPGR",759:" 11MWMRMSNUOVQWSWUVVUWSWR",760:" 7LXLPNRQSSSVRXP",761:" 6RURUTTURTPRO",762:" 7RVRRUPVNVLUKTK",763:" 7NRRROPNNNLOKPK",764:" 21MWWHVGTFQFOGNHMJMLNNOOUSVTWVWXVZU[S\\P\\N[MZ",765:" 21G]IWHVGTGQHOINKMMMONPOTUUVWWYW[V\\U]S]P\\N[M",766:" 31G]RRTUUVWWYW[V\\U]S]Q\\O[NYMWMUNTOPUOVMWKWIVHUGSGQHOINKMMMONPORR",767:" 22H\\KFK[ RHF[FQP[Z RZV[Y\\[ RZVZY RWYZY RWYZZ\\[",768:" 30KYUARBPCNELHKLKRLUNWQXSXVWXUYR RKPLMNKQJSJVKXMYPYVXZV]T_R`Oa",796:" 3>f>RfR",797:" 3D`D``D",798:" 3RRR>Rf",799:" 3D`DD``",800:" 3D`DR`R",801:" 3F^FY^K",802:" 3KYK^YF",803:" 3RRRDR`",804:" 3KYKFY^",805:" 3F^FK^Y",806:" 3KYKRYR",807:" 3MWMWWM",808:" 3RRRKRY",809:" 3MWMMWW",810:" 8GRRGPGMHJJHMGPGR",811:" 8GRGRGTHWJZM\\P]R]",812:" 8R]R]T]W\\ZZ\\W]T]R",813:" 8R]]R]P\\MZJWHTGRG",814:" 9D`DOGQKSPTTTYS]Q`O",815:" 9PUUDSGQKPPPTQYS]U`",816:" 9OTODQGSKTPTTSYQ]O`",817:" 9D`DUGSKQPPTPYQ]S`U",818:" 5KYRJYNKVRZ",819:" 5JZJRNKVYZR",820:" 5KYKVKNYVYN",821:" 5JZLXJPZTXL",822:" 23JZJ]L]O\\Q[TXUVVSVOULTJSIQIPJOLNONSOVPXS[U\\X]Z]",823:" 23I]]Z]X\\U[SXPVOSNONLOJPIQISJTLUOVSVVUXT[Q\\O]L]J",824:" 23JZZGXGUHSIPLONNQNUOXPZQ[S[TZUXVUVQUNTLQIOHLGJG",825:" 23G[GJGLHOIQLTNUQVUVXUZT[S[QZPXOUNQNNOLPISHUGXGZ",826:" 21E[EPFRHTJUMVQVUUXSZP[NZLWLSMQNNPLSKVKYL\\M^",827:" 19EYETHVKWPWSVVTXQYNYLXKVKSLPNNQMTMYN\\P_",828:" 26OUQOOQOSQUSUUSUQSOQO RQPPQPSQTSTTSTQSPQP RRQQRRSSRRQ",829:" 11RWRMSMUNVOWQWSVUUVSWRW",830:" 9D`DRJR RORUR RZR`R",831:" 5D`DUDO`O`U",832:" 6JZRDJR RRDZR",833:" 9D`DR`R RJYZY RP`T`",834:" 9D`DR`R RDRRb R`RRb",840:" 18KYQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",841:" 6LXLLLXXXXLLL",842:" 5KYRJKVYVRJ",843:" 6LXRHLRR\\XRRH",844:" 12JZRIPOJOOSMYRUWYUSZOTORI",845:" 6KYRKRY RKRYR",846:" 6MWMMWW RWMMW",847:" 9MWRLRX RMOWU RWOMU",850:" 35NVQNOONQNSOUQVSVUUVSVQUOSNQN ROQOS RPPPT RQOQU RRORU RSOSU RTPTT RUQUS",851:" 27NVNNNVVVVNNN ROOOU RPOPU RQOQU RRORU RSOSU RTOTU RUOUU",852:" 17MWRLMUWURL RROOT RROUT RRRQT RRRST",853:" 17LULRUWUMLR RORTU RORTO RRRTS RRRTQ",854:" 17MWRXWOMORX RRUUP RRUOP RRRSP RRRQP",855:" 17OXXROMOWXR RURPO RURPU RRRPQ RRRPS",856:" 22LXRLNWXPLPVWRL RRRRL RRRLP RRRNW RRRVW RRRXP",857:" 11RYRKRY RRKYNRQ RSMVNSO",860:" 13MWRLRX ROOUO RMUOWQXSXUWWU",861:" 11LXRLRX RLQMOWOXQ RPWTW",862:" 14KYMNWX RWNMX ROLLOKQ RULXOYQ",863:" 18I[NII[ RVI[[ RMM[[ RWMI[ RNIVI RMMWM",864:" 21I[RGRV RMJWP RWJMP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CZE]G_JaLbPcTcXbZa]__]aZbXcTcPbLaJ_G]EZCXBTAPA",906:" 34<hP<K=G?DAAD?G=K<P<T=Y?]A`DcGeKgPhThYg]e`cc`e]gYhThPgKeGcD`A]?Y=T<P<",907:" 50){O)I*E+@-;073370;-@+E*I)O)U*[+_-d0i3m7q;t@wEyIzO{U{[z_ydwitmqqmtiwdy_z[{U{OzIyEw@t;q7m3i0d-_+[*U)O)",908:" 34>fRAPCMDJDGCEA>H@JAMAZB]D_G`M`PaRc RRATCWDZD]C_AfHdJcMcZb]`_]`W`TaRc",909:" 33AcRAPCMDJDGCEABGAKAPBTDXG\\L`Rc RRATCWDZD]C_AbGcKcPbT`X]\\X`Rc RBHbH",997:" 3MWMXWX",998:" 3JZJZZZ",999:" 3JZJ]Z]",1001:" 18KYRKMX RRNVX RRKWX ROTTT RKXPX RTXYX",1002:" 35JZNKNX ROKOX RLKSKVLWNVPSQ RSKULVNUPSQ ROQSQVRWTWUVWSXLX RSQURVTVUUWSX",1003:" 24KYVLWKWOVLTKQKOLNMMPMSNVOWQXTXVWWU RQKOMNPNSOVQX",1004:" 26JZNKNX ROKOX RLKSKVLWMXPXSWVVWSXLX RSKULVMWPWSVVUWSX",1005:" 22JYNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXVXVTUX",1006:" 20JXNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXQX",1007:" 36K[VLWKWOVLTKQKOLNMMPMSNVOWQXTXVW RQKOMNPNSOVQX RTXUWVU RVSVX RWSWX RTSYS",1008:" 27J[NKNX ROKOX RVKVX RWKWX RLKQK RTKYK ROQVQ RLXQX RTXYX",1009:" 12NWRKRX RSKSX RPKUK RPXUX",1010:" 19LXSKSURWQX RTKTUSWQXPXNWMUNTOUNV RQKVK",1011:" 27JZNKNX ROKOX RWKOS RQQVX RRQWX RLKQK RTKYK RLXQX RTXYX",1012:" 14KXOKOX RPKPX RMKRK RMXWXWTVX",1013:" 30I\\MKMX RNNRX RNKRU RWKRX RWKWX RXKXX RKKNK RWKZK RKXOX RUXZX",1014:" 21JZNKNX ROMVX ROKVV RVKVX RLKOK RTKXK RLXPX",1015:" 32KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK",1016:" 25JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX",1017:" 47KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK RPWPUQTSTTUUZV[W[XZ RTUUXVZW[",1018:" 37JZNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX RSRTSUWVXWXXW RSRUSVWWX",1019:" 32KZVMWKWOVMULSKQKOLNMNOOPQQTRVSWT RNNOOQPTQVRWSWVVWTXRXPWOVNTNXOV",1020:" 16KZRKRX RSKSX RNKMOMKXKXOWK RPXUX",1021:" 20J[NKNUOWQXTXVWWUWK ROKOUPWQX RLKQK RUKYK",1022:" 15KYMKRX RNKRU RWKRX RKKPK RTKYK",1023:" 24I[LKOX RMKOT RRKOX RRKUX RSKUT RXKUX RJKOK RVKZK",1024:" 21KZNKVX ROKWX RWKNX RLKQK RTKYK RLXQX RTXYX",1025:" 20LYNKRRRX ROKSR RWKSRSX RLKQK RTKYK RPXUX",1026:" 16LYVKNX RWKOX ROKNONKWK RNXWXWTVX",1027:" 18KYRKMX RRNVX RRKWX ROTTT RKXPX RTXYX",1028:" 35JZNKNX ROKOX RLKSKVLWNVPSQ RSKULVNUPSQ ROQSQVRWTWUVWSXLX RSQURVTVUUWSX",1029:" 14KXOKOX RPKPX RMKWKWOVK RMXRX",1030:" 15KYRKLX RRMWX RRKXX RMWVW RLXXX",1031:" 22JYNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXVXVTUX",1032:" 16LYVKNX RWKOX ROKNONKWK RNXWXWTVX",1033:" 27J[NKNX ROKOX RVKVX RWKWX RLKQK RTKYK ROQVQ RLXQX RTXYX",1034:" 44KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK RQOQT RTOTT RQQTQ RQRTR",1035:" 12NWRKRX RSKSX RPKUK RPXUX",1036:" 27JZNKNX ROKOX RWKOS RQQVX RRQWX RLKQK RTKYK RLXQX RTXYX",1037:" 15KYRKMX RRNVX RRKWX RKXPX RTXYX",1038:" 30I\\MKMX RNNRX RNKRU RWKRX RWKWX RXKXX RKKNK RWKZK RKXOX RUXZX",1039:" 21JZNKNX ROMVX ROKVV RVKVX RLKOK RTKXK RLXPX",1040:" 36JZMJLM RXJWM RPPOS RUPTS RMVLY RXVWY RMKWK RMLWL RPQTQ RPRTR RMWWW RMXWX",1041:" 32KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK",1042:" 21J[NKNX ROKOX RVKVX RWKWX RLKYK RLXQX RTXYX",1043:" 25JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX",1044:" 20K[MKRQ RNKSQMX RMKWKXOVK RNWWW RMXWXXTVX",1045:" 16KZRKRX RSKSX RNKMOMKXKXOWK RPXUX",1046:" 33KZMONLOKPKQLRORX RXOWLVKUKTLSOSX RMONMOLPLQMRO RXOWMVLULTMSO RPXUX",1047:" 40KZRKRX RSKSX RQNNOMQMRNTQUTUWTXRXQWOTNQN RQNOONQNROTQU RTUVTWRWQVOTN RPKUK RPXUX",1048:" 21KZNKVX ROKWX RWKNX RLKQK RTKYK RLXQX RTXYX",1049:" 33J[RKRX RSKSX RLPMONOOSQU RTUVSWOXOYP RMONROTQUTUVTWRXO RPKUK RPXUX",1050:" 35KZMVNXQXMRMONMOLQKTKVLWMXOXRTXWXXV ROUNRNOOMQK RTKVMWOWRVU RNWPW RUWWW",1051:" 18KYTKKX RSMTX RTKUX RNTTT RIXNX RRXWX",1052:" 34JYPKLX RQKMX RNKUKWLWNVPSQ RUKVLVNUPSQ ROQRQTRUSUUTWQXJX RRQTSTUSWQX",1053:" 25KXVLWLXKWNVLTKRKPLOMNOMRMUNWPXRXTWUU RRKPMOONRNVPX",1054:" 26JYPKLX RQKMX RNKTKVLWNWQVTUVTWQXJX RTKULVNVQUTTVSWQX",1055:" 22JYPKLX RQKMX RSORS RNKXKWNWK ROQRQ RJXTXUUSX",1056:" 20JXPKLX RQKMX RSORS RNKXKWNWK ROQRQ RJXOX",1057:" 33KYVLWLXKWNVLTKRKPLOMNOMRMUNWPXRXTWUVVS RRKPMOONRNVPX RRXTVUS RSSXS",1058:" 27J[PKLX RQKMX RXKTX RYKUX RNKSK RVK[K ROQVQ RJXOX RRXWX",1059:" 12NWTKPX RUKQX RRKWK RNXSX",1060:" 19LXUKRUQWPX RVKSURWPXOXMWLUMTNUMV RSKXK",1061:" 27JZPKLX RQKMX RYKOR RRPTX RSPUX RNKSK RVK[K RJXOX RRXWX",1062:" 14KXQKMX RRKNX ROKTK RKXUXVUTX",1063:" 30I\\OKKX ROMPX RPKQV RYKPX RYKUX RZKVX RMKPK RYK\\K RIXMX RSXXX",1064:" 21JZPKLX RPKTX RQKTU RXKTX RNKQK RVKZK RJXNX",1065:" 32KYRKPLOMNOMRMUNWPXRXTWUVVTWQWNVLTKRK RRKPMOONRNVPX RRXTVUTVQVMTK",1066:" 24JYPKLX RQKMX RNKUKWLXMXOWQTROR RUKWMWOVQTR RJXOX",1067:" 46KYRKPLOMNOMRMUNWPXRXTWUVVTWQWNVLTKRK RRKPMOONRNVPX RRXTVUTVQVMTK ROWOVPUQURVRZS[T[UZ RRVSZT[",1068:" 35JZPKLX RQKMX RNKUKWLXMXOWQTROR RUKWMWOVQTR RSRTWUXVXWW RSRTSUWVX RJXOX",1069:" 28KZWLXLYKXNWLUKRKPLOMOOPPUSVT RONPOURVSVVUWSXPXNWMULXMWNW",1070:" 16KZTKPX RUKQX RPKNNOKZKYNYK RNXSX",1071:" 20J[PKMUMWOXSXUWVUYK RQKNUNWOX RNKSK RWK[K",1072:" 15KYOKPX RPKQV RYKPX RMKRK RVK[K",1073:" 24I[NKMX ROKNV RTKMX RTKSX RUKTV RZKSX RLKQK RXK\\K",1074:" 21KZPKTX RQKUX RYKLX RNKSK RVK[K RJXOX RRXWX",1075:" 20LYPKRQPX RQKSQ RYKSQQX RNKSK RVK[K RNXSX",1076:" 16LYXKLX RYKMX RQKONPKYK RLXUXVUTX",1101:" 32LZQOPPPQOQOPQOTOVQVWWXXX RTOUQUWWX RURRSPTOUOWPXSXTWUU RRSPUPWQX",1102:" 29JYNKNX ROKOX RORPPROTOVPWRWUVWTXRXPWOU RTOUPVRVUUWTX RLKOK",1103:" 24LXVQUQURVRVQUPSOQOOPNRNUOWQXSXUWVV RQOPPOROUPWQX",1104:" 32L[VKVX RWKWX RVRUPSOQOOPNRNUOWQXSXUWVU RQOPPOROUPWQX RTKWK RVXYX",1105:" 26LXOSVSVRUPSOQOOPNRNUOWQXSXUWVV RUSUQSO RQOPPOROUPWQX",1106:" 20LWTKULUMVMVLTKRKPMPX RRKQMQX RNOSO RNXSX",1107:" 42LYQOOQOSQUSUUSUQSOQO RQOPQPSQU RSUTSTQSO RTPUOVO RPTOUOXPYTYVZ ROWPXTXVYV[T\\P\\N[NYPX",1108:" 28J[NKNX ROKOX RORPPROTOVPWRWX RTOUPVRVX RLKOK RLXQX RTXYX",1109:" 18NWRKRLSLSKRK RRORX RSOSX RPOSO RPXUX",1110:" 23NWSKSLTLTKSK RSOSZR\\ RTOTZR\\P\\O[OZPZP[O[ RQOTO",1111:" 27JZNKNX ROKOX RWOOU RRSVX RSSWX RLKOK RTOYO RLXQX RTXYX",1112:" 12NWRKRX RSKSX RPKSK RPXUX",1113:" 44F_JOJX RKOKX RKRLPNOPORPSRSX RPOQPRRRX RSRTPVOXOZP[R[X RXOYPZRZX RHOKO RHXMX RPXUX RXX]X",1114:" 28J[NONX ROOOX RORPPROTOVPWRWX RTOUPVRVX RLOOO RLXQX RTXYX",1115:" 28LYQOOPNRNUOWQXTXVWWUWRVPTOQO RQOPPOROUPWQX RTXUWVUVRUPTO",1116:" 32JYNON\\ ROOO\\ RORPPROTOVPWRWUVWTXRXPWOU RTOUPVRVUUWTX RLOOO RL\\Q\\",1117:" 29KYUOU\\ RVOV\\ RURTPROPONPMRMUNWPXRXTWUU RPOOPNRNUOWPX RS\\X\\",1118:" 22KXOOOX RPOPX RPRQPSOUOVPVQUQUPVP RMOPO RMXRX",1119:" 26LYTOUPUQVQVPTOQOOPORQSTTVU ROQQRTSVTVWTXQXOWOVPVPWQX",1120:" 14LWPKPVRXTXUWUV RQKQVRX RNOTO",1121:" 28J[NONUOWQXSXUWVU ROOOUPWQX RVOVX RWOWX RLOOO RTOWO RVXYX",1122:" 15KYNORX ROORV RVORX RLOQO RTOXO",1123:" 24I[LOOX RMOOU RROOX RROUX RSOUU RXOUX RJOOO RVOZO",1124:" 21KYNOUX ROOVX RVONX RLOQO RTOXO RLXPX RSXXX",1125:" 23KYNORX ROORV RVORXP[N\\M\\L[LZMZM[L[ RLOQO RTOXO",1126:" 16LXUONX RVOOX ROONQNOVO RNXVXVVUX",1127:" 32K[QOOPNQMSMUNWPXQXSWUUWRXO RQOOQNSNUOWPX RQOSOUPWWXX RSOTPVWXXYX",1128:" 40KXRKPMOOMUK\\ RQLPNNTL\\ RRKTKVLVNUPRQ RTKULUNTPRQ RRQTRUTUVTWRXQXOWNT RRQSRTTTVRX",1129:" 19KYLQNOPORPSSSXR\\ RLQNPPPRQSS RWOVRSXQ\\",1130:" 39KYSOQOOPNQMSMUNWPXRXTWUVVTVRUPRNQLQKRJTJUKVM RQOOQNSNVPX RRXTVUTUQSO RQLRKTKVM",1131:" 27LXVPTOQOOPOQPRRS RQOPPPQRS RRSOTNUNWPXSXUW RRSPTOUOWPX",1132:" 28LWRKQLQMSNVNVMSNPOOPNRNTOVPWRXSYS[R\\P\\O[ RSNQOPPOROTPVRX",1133:" 26IYJRKPLONOOPOQMX RMONPNQLX ROQPPROTOVPVRS\\ RTOUPURR\\",1134:" 35IYJSKQLPNPOQOVPX RMPNQNUOWPXQXSWTVUTVQVNULTKRKQLQNRPURWS RQXSVTTUQUNTK",1135:" 13NWROPVPWQXSXUWVU RSOQVQWRX",1136:" 26KYOOLX RPOMX RUOVPWPVOTORQOR RORPSRWTXVWWU RORQSSWTX",1137:" 15LXLKNKPLWX RNKOLVX RRPMX RRPNX",1138:" 26KZOOK\\ RPOL\\ RNUNWOXQXSWTV RVOTVTWUXWXXWYU RWOUVUWVX",1139:" 19JYNOMX ROONUMX RVRVOWOVRTUQWNXMX RLOOO",1140:" 36MXRKQLQMSNVN RTNQOPPPRRSUS RTNROQPQRRS RSSPTOUOWQXSYTZT[S\\Q\\ RSSQTPUPWQX",1141:" 28KXQOOPNQMSMUNWPXRXTWUVVTVRUPSOQO RQOOQNSNVPX RRXTVUTUQSO",1142:" 20IZPPMX RPPNX RTPSX RTPTX RKQMOXO RKQMPXP",1143:" 29JXSOQOOPNQMSJ\\ RQOOQNSK\\ RSOUPVRVTUVTWRXPXNWMU RSOUQUTTVRX",1144:" 28K[YOQOOPNQMSMUNWPXRXTWUVVTVRUPYP RQOOQNSNVPX RRXTVUTUQSO",1145:" 14KZSPQX RSPRX RMQOOXO RMQOPXP",1146:" 24JXKRLPMOOOPPPROUOWPX RNOOPORNUNWPXQXSWUUVRVOUOVP",1147:" 35KZOPNQMSMUNWPXRXUWWUXRXPWOUOTPSRRUO\\ RMUNVPWRWUVWTXR RXQWPUPSR RRUQXP\\",1148:" 17KXMONOPPS[T\\ RNOOPR[T\\U\\ RVOTRNYL\\",1149:" 28I[TKQ\\ RUKP\\ RJRKPLONOOPOVPWSWUVWT RMONPNTOWPXSXUWWTXRYO",1150:" 36JZNPPPPONPMQLSLUMWNXPXQWRUSR RLUNWPWRU RRRRWSXUXWVXTXRWPVOVPWP RRUSWUWWV",1151:" 32KZVOTVTWUXWXXWYU RWOUVUWVX RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX",1152:" 32JXOKMR RPKNRNVPX RNROPQOSOUPVRVTUVTWRXPXNWMUMR RSOUQUTTVRX RMKPK",1153:" 22KXUPUQVQUPSOQOOPNQMSMUNWPXRXTWUV RQOOQNSNVPX",1154:" 35KZWKTVTWUXWXXWYU RXKUVUWVX RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX RUKXK",1155:" 23KWNURTTSURUPSOQOOPNQMSMUNWPXRXTWUV RQOOQNSNVPX",1156:" 23MXWKXLXKVKTLSNPYO[N\\ RVKULTNQYP[N\\L\\L[M\\ RPOVO",1157:" 34KYVOTVSYR[ RWOUVTYR[P\\M\\L[M[N\\ RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX",1158:" 29KZPKLX RQKMX ROQPPROTOVPVRUUUWVX RTOUPURTUTWUXWXXWYU RNKQK",1159:" 26MWSKSLTLTKSK RNROPPOROSPSRRURWSX RQORPRRQUQWRXTXUWVU",1160:" 26MWTKTLULUKTK RORPPQOSOTPTRRYQ[O\\M\\M[N\\ RROSPSRQYP[O\\",1161:" 32KXPKLX RQKMX RVPUQVQVPUOTORQPROR RORPSQWRXTXUWVU RORQSRWSX RNKQK",1162:" 16NVSKPVPWQXSXTWUU RTKQVQWRX RQKTK",1163:" 46F^GRHPIOKOLPLQJX RJOKPKQIX RLQMPOOQOSPSQQX RQORPRQPX RSQTPVOXOZPZRYUYWZX RXOYPYRXUXWYX[X\\W]U",1164:" 33J[KRLPMOOOPPPQNX RNOOPOQMX RPQQPSOUOWPWRVUVWWX RUOVPVRUUUWVXXXYWZU",1165:" 28KXQOOPNQMSMUNWPXRXTWUVVTVRUPSOQO RQOOQNSNVPX RRXTVUTUQSO",1166:" 35JYKRLPMOOOPPPQM\\ RNOOPOQL\\ RPQROTOVPWRWTVVUWSXQXOVOT RTOVQVTUVSX RJ\\O\\",1167:" 28KYVOR\\ RWOS\\ RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX RP\\U\\",1168:" 22LXMRNPOOQORPRQPX RPOQPQQOX RRQSPUOVOWPWQVQWP",1169:" 24LYVPVQWQVPTOQOOPORQSTTVU ROQQRTSVTVWTXQXOWNVOVOW",1170:" 16NWSKPVPWQXSXTWUU RTKQVQWRX RPOUO",1171:" 33IZJRKPLONOOPORNUNWOX RMONPNRMUMWOXQXSWTV RVOTVTWUXWXXWYU RWOUVUWVX",1172:" 24JXKRLPMOOOPPPROUOWPX RNOOPORNUNWPXQXSWUUVRVOUOVP",1173:" 37H\\IRJPKOMONPNRMUMWNX RLOMPMRLULWNXOXQWRV RTORVRWTX RUOSVSWTXUXWWYUZRZOYOZP",1174:" 38JZMRNPPOROSPSR RQORPRRQUPWNXMXLWLVMVLW RXPWQXQXPWOVOTPSRRURWSX RQUQWRXTXVWWU",1175:" 35IYJRKPLONOOPORNUNWOX RMONPNRMUMWOXQXSWTV RVOTVSYR[ RWOUVTYR[P\\M\\L[M[N\\",1176:" 27KYWOWPVQNVMWMX RNQOOROUQ ROPRPUQVQ RNVOVRWUW ROVRXUXVV",1177:" 39H[RKSLSMTMTLRKOKMLLNLX ROKNLMNMX RXKYLYMZMZLXKVKTMTX RVKUMUX RJOWO RJXOX RRXWX",1178:" 29J[UKVLWLWKQKOLNNNX RQKPLONOX RVOVX RWOWX RLOWO RLXQX RTXYX",1179:" 27J[WKQKOLNNNX RQKPLONOX RUKVLVX RWKWX RLOVO RLXQX RTXYX",1180:" 48F_PKQLQMRMRLPKMKKLJNJX RMKLLKNKX RYKZL[L[KUKSLRNRX RUKTLSNSX RZOZX R[O[X RHO[O RHXMX RPXUX RXX]X",1181:" 46F_PKQLQMRMRLPKMKKLJNJX RMKLLKNKX R[KUKSLRNRX RUKTLSNSX RYKZLZX R[K[X RHOZO RHXMX RPXUX RXX]X",1182:" 12NWRORX RSOSX RPOSO RPXUX",1184:" 21LXVPTOROPPOQNSNUOWQXSXUW RROPQOSOVQX ROSSS",1185:" 35LYSKQLPMOONRNUOWPXRXTWUVVTWQWNVLUKSK RSKQMPOOSOVP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ROKVK ROLSLVK RNQOPQOTOVPWRWUVWTXQXOWNVNUOUOV RTOUPVRVUUWTX",1206:" 36LYVMVNWNWMVLTKRKPLOMNPNUOWQXTXVWWUWSVQTPQPNR RRKPMOPOUPWQX RTXUWVUVSUQTP",1207:" 22LYNKNO RVMRTPX RWKTQQX RNMPKRKUM RNMPLRLUMVM",1208:" 51LYQKOLNNOPQQTQVPWNVLTKQK RQKPLONPPQQ RTQUPVNULTK RQQORNTNUOWQXTXVWWUWTVRTQ RQQPROTOUPWQX RTXUWVUVTURTQ",1209:" 36LYOVOUNUNVOWQXSXUWVVWSWNVLTKQKOLNNNPORQSTSWQ RSXUVVSVNULTK RQKPLONOPPRQS",1210:" 6NVRVQWRXSWRV",1211:" 8NVSWRXQWRVSWSYQ[",1212:" 12NVROQPRQSPRO RRVQWRXSWRV",1213:" 14NVROQPRQSPRO RSWRXQWRVSWSYQ[",1214:" 15NVRKQLRSSLRK RRLRO RRVQWRXSWRV",1215:" 29LYNNONOONONNOLQKTKVLWNWOVQSRRSRTST RTKVMVPUQSR RRWRXSXSWRW",1216:" 6OVRKRP RSKRP",1217:" 12LXOKOP RPKOP RUKUP RVKUP",1218:" 10MWQKPLPNQOSOTNTLSKQK",1219:" 9MWRJRP ROKUO RUKOO",1220:" 3KZXHM\\",1221:" 16MWUHSJQMPPPTQWSZU\\ RSJRLQPQTRXSZ",1222:" 16MWOHQJSMTPTTSWQZO\\ RQJRLSPSTRXQZ",1223:" 12MWPHP\\ RQHQ\\ RPHUH RP\\U\\",1224:" 12MWSHS\\ RTHT\\ ROHTH RO\\T\\",1225:" 38LWSHQIPJPLRNSP RQIPL RSNRQ RPJQLSNSPRQPRRSSTSVQXPZ RRSSV RPXQ[ RSTRVPXPZQ[S\\",1226:" 38MXQHSITJTLRNQP RSITL RQNRQ RTJSLQNQPRQTRRSQTQVSXTZ RRSQV RTXS[ RQTRVTXTZS[Q\\",1227:" 4MWTHPRT\\",1228:" 4MWPHTRP\\",1229:" 3OURHR\\",1230:" 6MWPHP\\ RTHT\\",1231:" 3I[LRXR",1232:" 6I[RLRX RLRXR",1233:" 9JZRMRX RMRWR RMXWX",1234:" 9JZRMRX RMMWM RMRWR",1235:" 6JZMMWW RWMMW",1236:" 6NVRQQRRSSRRQ",1237:" 15I[RLQMRNSMRL RLRXR RRVQWRXSWRV",1238:" 6I[LPXP RLTXT",1239:" 9I[WLMX RLPXP RLTXT",1240:" 9I[LNXN RLRXR RLVXV",1241:" 4JZWLMRWX",1242:" 4JZMLWRMX",1243:" 10JZWKMOWS RMTWT RMXWX",1244:" 10JZMKWOMS RMTWT RMXWX",1245:" 21H[YUWUUTTSRPQOONNNLOKQKRLTNUOUQTRSTPUOWNYN",1246:" 16JZLTLRMPOPUSWSXR RLRMQOQUTWTXRXP",1247:" 8JZMSRPWS RMSRQWS",1248:" 7NVSKPO RSKTLPO",1249:" 7NVQKTO RQKPLTO",1250:" 14LXNKOMQNSNUMVK RNKONQOSOUNVK",1251:" 8NVSLRMQLRKSLSNQP",1252:" 8NVSKQMQORPSORNQO",1253:" 8NVQLRMSLRKQLQNSP",1254:" 8NVQKSMSORPQORNSO",1256:" 11JZWMQMONNOMQMSNUOVQWWW",1257:" 11JZMMMSNUOVQWSWUVVUWSWM",1258:" 11JZMMSMUNVOWQWSVUUVSWMW",1259:" 11JZMWMQNOONQMSMUNVOWQWW",1260:" 14JZWMQMONNOMQMSNUOVQWWW RMRUR",1261:" 13I[TOUPXRUTTU RUPWRUT RLRWR",1262:" 13MWRMRX ROPPORLTOUP RPORMTO",1263:" 13I[POOPLROTPU ROPMROT RMRXR",1264:" 13MWRLRW ROTPURXTUUT RPURWTU",1265:" 37KYVSUPSOQOOPNQMSMUNWPXRXTWUVVTWQWNVLTKQKPLQLRK RQOOQNSNVPX RRXTVUTVQVNULTK",1266:" 15JZLKRX RMKRV RXKRX RLKXK RNLWL",1267:" 10G[IOLORW RKORX R[FRX",1268:" 26I[XIXJYJYIXHVHTJSLROQUPYO[ RUITKSORUQXPZN\\L\\K[KZLZL[",1269:" 40I[XIXJYJYIXHVHTJSLROQUPYO[ RUITKSORUQXPZN\\L\\K[KZLZL[ RQNOONQNSOUQVSVUUVSVQUOSNQN",1270:" 26H\\ZRYTWUVUTTSSQPPONNMNKOJQJRKTMUNUPTQSSPTOVNWNYOZQZR",1271:" 26JZXKLX ROKPLPNOOMOLNLLMKOKSLVLXK RUTTUTWUXWXXWXUWTUT",1272:" 41J[YPXPXQYQYPXOWOVPUTTVSWQXOXMWLVLTMSORRPSNSLRKPKOLONPQUWWXXXYW ROXMVMTOR RONPPVWWX",1273:" 29J[UPSOQOPQPRQTSTUS RUOUSVTXTYRYQXNVLSKRKOLMNLQLRMUOWRXSXVW",1274:" 34KZQHQ\\ RTHT\\ RWLVLVMWMWLUKPKNLNNOPVSWT RNNOOVRWTWVVWTXQXOWNVNUOUOVNV",1275:" 12KYRKN\\ RVKR\\ RNQWQ RMVVV",1276:" 40LXTLSLSMTMTLSKQKPLPNQPTRUS RPNQOTQUSUUSW RQPOROTPVSXTY ROTPUSWTYT[S\\Q\\P[PZQZQ[P[",1277:" 29LXRKQLRMSLRK RRMRQ RRQQSRVSSRQ RRVR\\ RPOONNOOPPOTOUNVOUPTO",1278:" 42LXRMSLRKQLRMRQQRSURV RRQSRQURVRZQ[R\\S[RZ RPOONNOOPPOTOUNVOUPTO RPXOWNXOYPXTXUWVXUYTX",1279:" 12LYVKVX RNKVK RQQVQ RNXVX",1281:" 24H\\QKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK RRQQRRSSRRQ",1282:" 33LYQKPLPMQN RTKULUMTN RRNPOOQORPTRUSUUTVRVQUOSNRN RRURY RSUSY ROWVW",1283:" 23LYRKPLONOOPQRRSRUQVOVNULSKRK RRRRX RSRSX ROUVU",1284:" 24H\\QKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK RRKRY RKRYR",1285:" 25JYRRPQOQMRLTLUMWOXPXRWSUSTRR RWMRR RRMWMWR RRMVNWR",1286:" 25JZLLMKOKQLRNRPQRPSNT ROKPLQNQQPS RVKUX RWKTX RNTXT",1287:" 27JYNKNU ROKNR RNROPQOSOUPVQVTTVTXUYVYWX RSOUQUTTV RLKOK",1288:" 27LYONRKRQ RVNSKSQ RRQPROTOUPWRXSXUWVUVTURSQ RRTRUSUSTRT",1289:" 27JZRKRY RMKMPNRPSTSVRWPWK RLMMKNM RQMRKSM RVMWKXM ROVUV",1290:" 27JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXVXVUUX",1291:" 20LYWKTKQLONNQNSOVQXTYWY RWKTLRNQQQSRVTXWY",1292:" 23JZRRPQOQMRLTLUMWOXPXRWSUSTRR RSLQQ RWMRR RXQSS",1293:" 12KYPMTW RTMPW RMPWT RWPMT",1294:" 34J[OUMULVLXMYOYPXPVNTMRMONMOLQKTKVLWMXOXRWTUVUXVYXYYXYVXUVU RNMPLULWM",1295:" 34J[OOMOLNLLMKOKPLPNNPMRMUNWOXQYTYVXWWXUXRWPUNULVKXKYLYNXOVO RNWPXUXWW",1401:" 21F^KHK\\ RLHL\\ RXHX\\ RYHY\\ RHH\\H RH\\O\\ RU\\\\\\",1402:" 20H]KHRQJ\\ RJHQQ RJHYHZMXH RK[X[ RJ\\Y\\ZWX\\",1403:" 20KYVBTDRGPKOPOTPYR]T`Vb RTDRHQKPPPTQYR\\T`",1404:" 20KYNBPDRGTKUPUTTYR]P`Nb RPDRHSKTPTTSYR\\P`",1405:" 12KYOBOb RPBPb ROBVB RObVb",1406:" 12KYTBTb RUBUb RNBUB RNbUb",1407:" 40KYTBRCQDPFPHQJRKSMSOQQ RRCQEQGRISJTLTNSPORSTTVTXSZR[Q]Q_Ra RQSSUSWRYQZP\\P^Q`RaTb",1408:" 40KYPBRCSDTFTHSJRKQMQOSQ RRCSESGRIQJPLPNQPURQTPVPXQZR[S]S_Ra RSSQUQWRYSZT\\T^S`RaPb",1409:" 24KYU@RCPFOIOLPOSVTYT\\S_Ra RRCQEPHPK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TMPMNNMOMQNRPSUUWVXW RMPNQPRUTWUXVXYWZU[Q[OZNYMWM[NY",2120:" 16KZPFPWQZS[U[WZXX RQFQWRZS[ RMMUM",2121:" 28G]LMLXMZP[R[UZWX RMMMXNZP[ RWMW[ RXMX[ RIMMM RTMXM RW[[[",2122:" 15I[LMR[ RMMRY RXMR[ RJMPM RTMZM",2123:" 24F^JMN[ RKMNX RRMN[ RRMV[ RSMVX RZMV[ RGMNM RWM]M",2124:" 21H\\LMW[ RMMX[ RXML[ RJMPM RTMZM RJ[P[ RT[Z[",2125:" 22H[LMR[ RMMRY RXMR[P_NaLbKbJaK`La RJMPM RTMZM",2126:" 16I[WML[ RXMM[ RMMLQLMXM RL[X[XWW[",2127:" 40G^QMNNLPKRJUJXKZN[P[RZUWWTYPZM RQMONMPLRKUKXLZN[ RQMSMUNVPXXYZZ[ RSMTNUPWXXZZ[[[",2128:" 57G\\TFQGOIMMLPKTJZIb RTFRGPINMMPLTKZJb RTFVFXGYHYKXMWNTOPO RVFXHXKWMVNTO RPOTPVRWTWWVYUZR[P[NZMYLV RPOSPURVTVWUYTZR[",2129:" 28H\\IPKNMMOMQNROSRSVRZOb RJOLNPNRO RZMYPXRSYP^Nb RYMXPWRSY",2130:" 44I\\VNTMRMONMQLTLWMYNZP[R[UZWWXTXQWOSJRHRFSEUEWFYH RRMPNNQMTMXNZ RR[TZVWWTWPVNTKSISGTFVFYH",2131:" 32I[XPVNTMPMNNNPPRSS RPMONOPQRSS RSSNTLVLXMZP[S[UZWX RSSOTMVMXNZP[",2132:" 31I[TFRGQHQIRJUKZKZJWKSMPOMRLULWMYP[S]T_TaSbQbPa RULQONRMUMWNYP[",2133:" 32G]HQIOKMNMONOPNTL[ RMMNNNPMTK[ RNTPPRNTMVMXNYOYRXWUb RVMXOXRWWTb",2134:" 44F]GQHOJMMMNNNPMUMXNZO[ RLMMNMPLULXMZO[Q[SZUXWUXRYMYIXGVFTFRHRJSMUPWRZT RSZUWVUWRXMXIWGVF",2135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OOMQLT RRFPGNIMKLOLUMXOZQ[ RS[UZWXXUXTWQUOSN",2207:" 31H\\KFKL RKJLHNFPFUIWIXHYF RLHNGPGUI RYFYIXLTQSSRVR[ RXLSQRSQVQ[",2208:" 63H\\PFMGLILLMNPOTOWNXLXIWGTFPF RPFNGMIMLNNPO RTOVNWLWIVGTF RPOMPLQKSKWLYMZP[T[WZXYYWYSXQWPTO RPONPMQLSLWMYNZP[ RT[VZWYXWXSWQVPTO",2209:" 48H\\XMWPURRSQSNRLPKMKLLINGQFSFVGXIYLYRXVWXUZR[O[MZLXLWMVNWMX RQSORMPLMLLMIOGQF RSFUGWIXLXRWVVXTZR[",2210:" 6MWRYQZR[SZRY",2211:" 8MWR[QZRYSZS\\R^Q_",2212:" 12MWRMQNROSNRM RRYQZR[SZRY",2213:" 14MWRMQNROSNRM RR[QZRYSZS\\R^Q_",2214:" 15MWRFQHRTSHRF RRHRN RRYQZR[SZRY",2215:" 32I[MJNKMLLKLJMHNGPFSFVGWHXJXLWNVORQRT RSFUGVHWJWLVNTP RRYQZR[SZRY",2216:" 6NVRFQM RSFQM",2217:" 12JZNFMM ROFMM RVFUM RWFUM",2218:" 14KYQFOGNINKOMQNSNUMVKVIUGSFQF",2219:" 9JZRFRR RMIWO RWIMO",2220:" 3G][BIb",2221:" 20KYVBTDRGPKOPOTPYR]T`Vb RTDRHQKPPPTQYR\\T`",2222:" 20KYNBPDRGTKUPUTTYR]P`Nb RPDRHSKTPTTSYR\\P`",2223:" 12KYOBOb RPBPb ROBVB RObVb",2224:" 12KYTBTb RUBUb RNBUB RNbUb",2225:" 40KYTBRCQDPFPHQJRKSMSOQQ RRCQEQGRISJTLTNSPORSTTVTXSZR[Q]Q_Ra RQSSUSWRYQZP\\P^Q`RaTb",2226:" 40KYPBRCSDTFTHSJRKQMQOSQ RRCSESGRIQJPLPNQPURQTPVPXQZR[S]S_Ra RSSQUQWRYSZT\\T^S`RaPb",2227:" 4KYUBNRUb",2228:" 4KYOBVROb",2229:" 3NVRBRb",2230:" 6KYOBOb RUBUb",2231:" 3E_IR[R",2232:" 6E_RIR[ RIR[R",2233:" 9F^RJR[ RJRZR RJ[Z[",2234:" 9F^RJR[ RJJZJ RJRZR",2235:" 6G]KKYY RYKKY",2236:" 6MWRQQRRSSRRQ",2237:" 15E_RIQJRKSJRI RIR[R RRYQZR[SZRY",2238:" 6E_IO[O RIU[U",2239:" 9E_YIK[ RIO[O RIU[U",2240:" 9E_IM[M RIR[R RIW[W",2241:" 4F^ZIJRZ[",2242:" 4F^JIZRJ[",2243:" 10F^ZFJMZT RJVZV RJ[Z[",2244:" 10F^JFZMJT RJVZV RJ[Z[",2245:" 21F_[WYWWVUTRPQOONMNKOJQJSKUMVOVQURTUPWNYM[M",2246:" 24F^IUISJPLONOPPTSVTXTZS[Q RISJQLPNPPQTTVUXUZT[Q[O",2247:" 8G]JTROZT RJTRPZT",2248:" 7LXTFOL RTFUGOL",2249:" 7LXPFUL RPFOGUL",2250:" 18H\\KFLHNJQKSKVJXHYF RKFLINKQLSLVKXIYF",2251:" 8MWRHQGRFSGSIRKQL",2252:" 8MWSFRGQIQKRLSKRJ",2253:" 8MWRHSGRFQGQIRKSL",2254:" 8MWQFRGSISKRLQKRJ",2255:" 10E[HMLMRY RKMR[ R[BR[",2256:" 13F^ZJSJOKMLKNJQJSKVMXOYSZZZ",2257:" 13F^JJJQKULWNYQZSZVYXWYUZQZJ",2258:" 13F^JJQJUKWLYNZQZSYVWXUYQZJZ",2259:" 13F^JZJSKOLMNKQJSJVKXMYOZSZZ",2260:" 16F^ZJSJOKMLKNJQJSKVMXOYSZZZ RJRVR",2261:" 11E_XP[RXT RUMZRUW RIRZR",2262:" 11JZPLRITL RMORJWO RRJR[",2263:" 11E_LPIRLT ROMJROW RJR[R",2264:" 11JZPXR[TX RMURZWU RRIRZ",2265:" 44I\\XRWOVNTMRMONMQLTLWMYNZP[R[UZWXXUYPYKXHWGUFRFPGOHOIPIPH RRMPNNQMTMXNZ RR[TZVXW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JHMIOJQLRO RRRQUOWMXJY RZHWIUJSLRO RRRSUUWWXZY RZHVJTLSOSRTUVWZY RIP[P RIQ[Q",2317:" 12NVQQQSSSSQQQ RQQSS RSQQS",2318:" 18JZMPQRTTVVWYW[V]U^ RMQST RMRPSTUVWWY",2319:" 18JZWKVMTOPQMR RSPMS RUFVGWIWKVNTPQRMT",2320:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2321:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2322:" 34J[SMPNNPMRMTNVPWRWUVWTXRXPWNUMSM ROPUM RNRVN RMTWO RNUXP ROVWR RPWVT",2323:" 18JZOGO^ RUFU] RMNWL RMOWM RMWWU RMXWV",2324:" 18JZNFNX RVLV^ RNNVL RNOVM RNWVU RNXVV",2325:" 25JZNBNW RNNQLTLVMWOWQVSSUQVNW RNNQMTMVN RUMVOVQUSSU",2326:" 18E_HIHL R\\I\\L RHI\\I RHJ\\J RHK\\K RHL\\L",2327:" 18JZMNMQ RWNWQ RMNWN RMOWO RMPWP RMQWQ",2328:" 49JZMLWX RMLONQOTOVNWMWKUKUMTO RONTO RQOWM RVKVN RULWL RWXUVSUPUNVMWMYOYOWPU RUVPU RSUMW RNVNY RMXOX",2329:" 26JZPOOMOKMKMMNNPOSOUNWL RNKNN RMLOL RMMSO RPOUN RWLWY",2330:" 86A^GfHfIeIdHcGcFdFfGhIiKiNhPfQdR`RUQ;Q4R/S-U,V,X-Y/Y3X6W8U;P?JCHEFHEJDNDREVGYJ[N\\R\\V[XZZW[T[PZMYKWITHPHMIKKJNJRKUMW RGdGeHeHdGd RU;Q?LCIFGIFKENERFVGXJ[ RR\\U[WZYWZTZPYMXKVITH",2331:"103EfNSOUQVSVUUVSVQUOSNQNOONPMSMVNYP[S\\V\\Y[[Y\\W]T]P\\MZJXIUHRHOIMJKLIOHSHXI]KaMcPeTfYf]e`cba RKLJNIRIXJ\\L`NbQdUeYe]d_cba RPOTO ROPUP RNQVQ RNRVR RNSVS ROTUT RPUTU RaLaNcNcLaL RbLbN RaMcM RaVaXcXcVaV RbVbX RaWcW",2332:" 30D`H@Hd RM@Md RW@Wd R\\@\\d RMMWK RMNWL RMOWM RMWWU RMXWV RMYWW",2367:" 12NVQQQSSSSQQQ RQQSS RSQQS",2368:" 18JZMPQRTTVVWYW[V]U^ RMQST RMRPSTUVWWY",2369:" 18JZWKVMTOPQMR RSPMS RUFVGWIWKVNTPQRMT",2370:" 32H\\PMMNLOKQKSLUMVPWTWWVXUYSYQXOWNTMPM RMNLPLSMUNVPW RWVXTXQWOVNTM",2371:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2372:" 34J[SMPNNPMRMTNVPWRWUVWTXRXPWNUMSM ROPUM RNRVN RMTWO RNUXP ROVWR RPWVT",2373:" 18JZOGO^ RUFU] RMNWL RMOWM RMWWU RMXWV",2374:" 18JZNFNX RVLV^ RNNVL RNOVM RNWVU RNXVV",2375:" 25JZNBNW RNNQLTLVMWOWQVSSUQVNW RNNQMTMVN RUMVOVQUSSU",2376:" 18E_HIHL R\\I\\L RHI\\I RHJ\\J RHK\\K RHL\\L",2377:" 18JZMNMQ RWNWQ RMNWN RMOWO RMPWP RMQWQ",2378:" 36JZQCVMRTRU RULQS RTITKPRRUUY RW\\UYSXQXOYN[N]O_Ra RW\\UZSYOYO]P_Ra RSXPZN]",2379:" 26JZPOOMOKMKMMNNPOSOUNWL RNKNN RMLOL RMMSO RPOUN RWLSY",2380:" 86A^GfHfIeIdHcGcFdFfGhIiKiNhPfQdR`RUQ;Q4R/S-U,V,X-Y/Y3X6W8U;P?JCHEFHEJDNDREVGYJ[N\\R\\V[XZZW[T[PZMYKWITHPHMIKKJNJRKUMW RGdGeHeHdGd RU;Q?LCIFGIFKENERFVGXJ[ RR\\U[W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UYSXPVNTMQM RQNOONPMSMUNXOYQZTZVYWXXUXSWPVOTNQN",2616:" 36H\\LMLbMb RLMMMMb RMPONQMTMVNXPYSYUXXVZT[Q[OZMX RMPQNTNVOWPXSXUWXVYTZQZMX",2617:" 36H\\WMWbXb RWMXMXb RWPUNSMPMNNLPKSKULXNZP[S[UZWX RWPSNPNNOMPLSLUMXNYPZSZWX",2618:" 21KYOMO[P[ ROMPMP[ RPSQPSNUMXM RPSQQSOUNXNXM",2619:" 50J[XPWNTMQMNNMPNRPSUUWV RVUWWWXVZ RWYTZQZNY ROZNXMX RXPWPVN RWOTNQNNO RONNPOR RNQPRUTWUXWXXWZT[Q[NZMX",2620:" 16MXRFR[S[ RRFSFS[ ROMVMVN ROMONVN",2621:" 25H\\LMLWMZO[R[TZWW RLMMMMWNYPZRZTYWW RWMW[X[ RWMXMX[",2622:" 14JZLMR[ RLMMMRY RXMWMRY RXMR[",2623:" 26F^IMN[ RIMJMNX RRMNX RRPN[ RRPV[ RRMVX R[MZMVX R[MV[",2624:" 16I[LMW[X[ RLMMMX[ RXMWML[ RXMM[L[",2625:" 17JZLMR[ RLMMMRY RXMWMRYNb RXMR[ObNb",2626:" 20I[VNL[ RXMNZ RLMXM RLMLNVN RNZXZX[ RL[X[",2651:" 33K[UUTSRRPRNSMTLVLXMZO[Q[SZTX RPRNTMVMYO[ RVRTXTZV[XZYY[V RWRUXUZV[",2652:" 23LZLVNSPO RSFMXMZO[P[RZTXUUURVVWWXWZV RTFNXNZO[",2653:" 22LXTSSTTTTSSRQROSNTMVMXNZP[S[VYXV RQROTNVNYP[",2654:" 33K[UUTSRRPRNSMTLVLXMZO[Q[SZTX RPRNTMVMYO[ RZFTXTZV[XZYY[V R[FUXUZV[",2655:" 23LXOYQXRWSUSSRRQROSNTMVMXNZP[S[VYXV RQROTNVNYP[",2656:" 27OXRRUOWLXIXGWFUGTIKdKfLgNfOcPZQ[S[UZVYXV RTISNRRO[M`Kd",2657:" 38K[UUTSRRPRNSMT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39JZRFQGSQRR RRFRR RRFSGQQRR RMINIVOWO RMIWO RMIMJWNWO RWIVINOMO RWIMO RWIWJMNMO",2724:" 8F_JQ[Q[R RJQJR[R",2725:" 16F_RIRZSZ RRISISZ RJQ[Q[R RJQJR[R",2726:" 16F_JM[M[N RJMJN[N RJU[U[V RJUJV[V",2727:" 11NWSFRGRM RSGRM RSFTGRM",2728:" 22I[NFMGMM RNGMM RNFOGMM RWFVGVM RWGVM RWFXGVM",2729:" 30KYQFOGNINKOMQNSNUMVKVIUGSFQF RQFNIOMSNVKUGQF RSFOGNKQNUMVISF",2750:" 42H]TFQGOIMLLOKSKVLYMZO[Q[TZVXXUYRZNZKYHXGVFTF RTFRGPINLMOLSLVMYO[ RQ[SZUXWUXRYNYKXHVF",2751:" 15H]TJO[ RVFP[ RVFSIPKNL RUIQKNL",2752:" 42H]OJPKOLNKNJOHPGSFVFYGZIZKYMWOTQPSMUKWI[ RVFXGYIYKXMVOPS RJYKXMXRZUZWYXW RMXR[U[WZXW",2753:" 50H]OJPKOLNKNJOHPGSFVFYGZIZKYMVOSP RVFXGYIYKXMVO RQPSPVQWRXTXWWYVZS[O[LZKYJWJVKULVKW RSPUQVRWTWWVYUZS[",2754:" 10H]XGR[ RYFS[ RYFJUZU",2755:" 39H]QFLP RQF[F RQGVG[F RLPMOPNSNVOWPXRXUWXUZR[O[LZKYJWJVKULVKW RSNUOVPWRWUVXTZR[",2756:" 46H]YIXJYKZJZIYGWFTFQGOIMLLOKSKWLYMZO[R[UZWXXVXSWQVPTOQOOPMRLT RTFRGPINLMOLSLXMZ RR[TZVXWVWRVP",2757:" 30H]NFLL R[FZIXLSRQUPWO[ RXLRRPUOWN[ RMIPFRFWI RNHPGRGWIYIZH[F",2758:" 63H]SFPGOHNJNMOOQPTPXOYNZLZIYGVFSF RSFQGPHOJOMPOQP RTPWOXNYLYIXGVF RQPMQKSJUJXKZN[R[VZWYXWXTWRVQTP RQPNQLSKUKXLZN[ RR[UZVYWWWSVQ",2759:" 46H]YMXOVQTRQROQNPMNMKNIPGSFVFXGYHZJZNYRXUVXTZQ[N[LZKXKWLVMWLX ROQNONKOIQGSF RXGYIYNXRWUUXSZQ[",2760:" 6MXPYOZP[QZPY",2761:" 8MXP[OZPYQZQ[P]N_",2762:" 11MXSMRNSOTNSM RPYOZP[QZ",2763:" 14MXSMRNSOTNSM RP[OZPYQZQ[P]N_",2764:" 17MXUFTGRS RUGRS RUFVGRS RPYOZP[QZPY",2765:" 34H]OJPKOLNKNJOHPGSFWFZG[I[KZMYNSPQQQSRTTT RWFYGZIZKYMXNVO RPYOZP[QZPY",2766:" 8MXVFTHSJSKTLUKTJ",2767:" 8MXUHTGUFVGVHUJSL",2768:" 55E_\\N[O\\P]O]N\\M[MYNWPRXPZN[K[HZGXGVHTISKRPPROTMUKUITGRFPGOIOLPRQUSXUZW[Y[ZYZX RK[IZHXHVITJSPP ROLPQQTSWUYWZYZZY",2769:" 41H]TBL_ RYBQ_ RZJYKZL[K[JZHYGVFRFOGMIMKNMONVRXT RMKOMVQWRXTXWWYVZS[O[LZKYJWJVKULVKW",2770:" 3G]_BEb",2771:" 20KZZBVESHQKOONTNXO]P`Qb RVESIQMPPOUOZP_Qb",2772:" 20JYSBTDUGVLVPUUSYQ\\N_Jb RSBTEUJUOTTSWQ[N_",2773:" 9J[TFTR ROIYO RYIOO",2774:" 3E_IR[R",2775:" 6E_RIR[ RIR[R",2776:" 6E_IO[O RIU[U",2777:" 6NWUFSM RVFSM",2778:" 12I[PFNM RQFNM RYFWM RZFWM",2779:" 14KZSFQGPIPKQMSNUNWMXKXIWGUFSF",2801:" 18H\\RFK[ RRFY[ RRIX[ RMUVU RI[O[ RU[[[",2802:" 31G]LFL[ RMFM[ RIFYFYLXF RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYWXYWZU[",2803:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUP RUFWGXHYJYLXNWOUP RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYW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YMY[ RIMMM RXM\\M RI[O[ RU[\\[",2914:" 27G]LML[ RMMM[ RWMW[ RXMX[ RIMPM RTM[M RMTWT RI[P[ RT[[[",2915:" 36H\\QMNNLPKSKULXNZQ[S[VZXXYUYSXPVNSMQM RQMONMPLSLUMXOZQ[ RS[UZWXXUXSWPUNSM",2916:" 21G]LML[ RMMM[ RWMW[ RXMX[ RIM[M RI[P[ RT[[[",2917:" 36G\\LMLb RMMMb RMPONQMSMVNXPYSYUXXVZS[Q[OZMX RSMUNWPXSXUWXUZS[ RIMMM RIbPb",2918:" 28H[WPVQWRXQXPVNTMQMNNLPKSKULXNZQ[S[VZXX RQMONMPLSLUMXOZQ[",2919:" 16I\\RMR[ RSMS[ RMMLRLMYMYRXM RO[V[",2920:" 22I[LMR[ RMMRY RXMR[P_NaLbKbJaK`La RJMPM RTMZM",2921:" 52H]RFRb RSFSb ROFSF RRPQNPMNMLNKQKWLZN[P[QZRX RNMMNLQLWMZN[ RWMXNYQYWXZW[ RSPTNUMWMYNZQZWYZW[U[TZSX RObVb",2922:" 21H\\LMW[ RMMX[ RXML[ RJMPM RTMZM RJ[P[ RT[Z[",2923:" 23G]LML[ RMMM[ RWMW[ RXMX[ RIMPM RTM[M RI[[[[`Z[",2924:" 28G]LMLTMVPWRWUVWT RMMMTNVPW RWMW[ RXMX[ RIMPM RTM[M RT[[[",2925:" 30CbHMH[ RIMI[ RRMR[ RSMS[ R\\M\\[ R]M][ REMLM ROMVM RYM`M RE[`[",2926:" 32CbHMH[ RIMI[ RRMR[ RSMS[ R\\M\\[ R]M][ REMLM ROMVM RYM`M RE[`[``_[",2927:" 27H]QMQ[ RRMR[ RLMKRKMUM RRTVTYUZWZXYZV[N[ RVTXUYWYXXZV[",2928:" 37E_JMJ[ RKMK[ RGMNM RKTOTRUSWSXRZO[G[ ROTQURWRXQZO[ RYMY[ RZMZ[ RVM]M RV[][",2929:" 25J[OMO[ RPMP[ RLMSM RPTTTWUXWXXWZT[L[ RTTVUWWWXVZ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FVFWGWIVKULSM RUGUHVHVGUG RVIVJUL",3268:" 72E_\\O\\N[N[P]P]N\\M[MYNWPRXPZN[K[HZGXGVHTISKRPPROTMUKUITGRFPGOIOLPRQURWTZV[X[YYYX RL[HZ RIZHXHVITJSLR RPPQSTYVZ RK[JZIXIVJTKSMRRO ROLPOQRSVUYWZXZYY",3269:" 52H]TBL_ RYBQ_ RZKZJYJYL[L[JZHYGVFRFOGMIMLNNPPVSWUWXVZ RNLONVRWT ROGNINKOMUPWRXTXWWYVZS[O[LZKYJWJULULWKWKV",3270:" 8G^_BEbFb R_B`BFb",3271:" 32JZZBXCUERHPKNOMSMXN\\O_Qb RSHQKOONTN\\ RZBWDTGRJQLPOOSN\\ RNTO]P`Qb",3272:" 32JZSBUEVHWLWQVUTYR\\O_LaJb RVHVPUUSYQ\\ RSBTDUGVP RVHUQTUSXRZP]M`Jb",3273:" 39J[TFSGUQTR RTFTR RTFUGSQTR ROIPIXOYO ROIYO ROIOJYNYO RYIXIPOOO RYIOO RYIYJONOO",3274:" 8F_JQ[Q[R RJQJR[R",3275:" 16F_RIRZSZ RRISISZ RJQ[Q[R RJQJR[R",3276:" 16F_JM[M[N RJMJN[N RJU[U[V RJUJV[V",3277:" 11MWUFTGRM RUGRM RUFVGRM",3278:" 22H\\PFOGMM RPGMM RPFQGMM RZFYGWM RZGWM RZF[GWM",3279:" 30KZSFQGPIPKQMSNUNWMXKXIWGUFSF RSFPIQMUNXKWGSF RUFQGPKSNWMXIUF",3301:" 62F^IHJIIJHIIGKFMFOGPHQKQOPRNTLUIV ROHPKPPOR RMFNGOJOPNSLU RLVOY RKVOZ RIVN[UV R\\G[H\\H\\G[FYFWGVHUJUYW[[W RWHVJVXXZ RYFXGWJWWYY",3302:"101E_GQGRHSJSLRLOKMIJIHKF RKOIK RJSKRKPIMHKHIIGKFNFPGQHRJRRQUOW RPHQJQT RNFOGPJPUOW RRISGUFWFYGZH[J\\K RYHZJ RWFXGYJZK\\K R\\KRP RYM[O\\R\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OXNYOZPYOX RKPNPNXMYO[ RPPUMWNXPXRWTSV RUNWO RTNVOWQWRVTUU RUUWVXXX[W]U_R` RUVWW RSVTVVWWYW\\V^",3501:" 60G]LINGPFRFSGZW[X]X RQGRHYXZZ[YYX RNGPGQHXXYZZ[[[]X RLMMLOKPKQL RPLPM RMLOLPN RG[IYKXNXPY RJYNYOZ RG[JZMZN[PY RRJLX RNSVS",3502:"110F^HHJFMFOGQF RKGNG RHHJGLHOHQF RMKLLKNKOIOHPHRIQKQKW RLMLU RIPLP RMKMTLVKW RRIQJPLPU RQKQS RRIRRQTPU RRIXFZG[I[KYMUO RXGZIZK RVGXHYIYLWN RWNZP[R[X RYPZRZW RWNXOYQYX RJ[MYPXTXWY RLZOYTYVZ RJ[NZSZU[WYYX[X RUOUX RURYR RUUYU",3503:" 69E]NGLHJJILHOHSIVJXMZP[S[VZXYZW[U RJKINISKWNYQZTZWY RNGLIKKJNJRKUNXQYTYWXYW[U RPJPV RQJQT RRIRSQUPV RPJRIUFWGYGZF RTGVHXH RSHUIWIYHZF RWIWX",3504:" 72G^IFWFYGZIZX RKGWGYIYW RIFJGLHWHXIXX ROKNLMNMOKOJPJRKQMQMV RNMNT RKPNP ROKOSNUMV RI[LYOXSXVY RKZNYSYUZ RI[MZRZT[VYXXZX RRHRX RRMTNVNXM RRSTRVRXS",3505:" 94G]IHKFMFOGQF RLGNG RIHKGMHOHQF RNKMLLNLOJOIPIRJQLQLW RMMMU RJPMP RNKNTMVLW RQMRJSHTGVFXF[G RTHVGXGZH RRJSIUHWHYI[G RQURRSPTOVOXP RTPVPWQ RRRSQUQVRXP RK[NYRXWX[Y RMZPYWYZZ RK[OZVZY[[Y RQMQX",3506:" 91F]JHLFOFQGSF RMGPG RJHLGNHQHSF RPKOLNNNOLOKPKRLQNQNV ROMOT RLPOP RPKPSOUNV RSJSYRZQZMXKXIYG[ RTJTX RTPXP RPZOZMYJY RUIUOXO RXQUQUWTYP[N[LZJZG[ RSJUIXFZG\\G]F RWGYH[H RVHXIZI\\H]F RXIXW",3507:" 87E^NGLHJJILHOHRIUJWLYNZQ[U[XZZX[V[SZQYPWOUO RJKINISJV RNGLIKKJNJSKVLXNZ RYXZWZSYQ RU[WZXYYWYSXQWPUO RPJPW RQJQU RRIRTQVPW RPJRIUFWGYGZF RTGVHXH RSHUIWIYHZF RYHUOU[ RUSYS RUVYV",3508:"112F^HHJFMFOGQF RKGNG RHHJGLHOHQF RMKLLKNKOIOHPHRIQKQKW RLMLU RIPLP RMKMTLVKW RJ[MYPXSXUY RLZOYRYTZ RJ[NZQZS[UY RRIQJPLPU RQKQS RRIRRQTPU RRITGVFXFZG RWGXGYH RTGVGXIZG RUOWNYLZM[P[TZXX[ RXMYNZPZUYX RWNXNYPYUX[ RUOUY RURYR RUUYU",3509:" 67I\\LHNFQFTGVF ROGSG RLHNGQHTHVF RSKRLQNQOOONPNROQQQQV RRMRT ROPRP RSKSSRUQV RYHWJVMVXUZSZOXMXKYI[ RWKWW RRZQZOYLY RYHXJXVWXUZS[P[NZKZI[",3510:" 65H\\LHNFQFTGVF ROGSG RLHNGQHTHVF RSKRLQNQOOONPNROQQQQV RRMRT ROPRP RSKSSRUQV RYHWJVMVXUZ RWKWW RYHXJXVWXUZR[O[LZJXJVKULUMVLWKW RJVMV",3511:"115F^HHJFMFOGQF RKGNG RHHJGLHOHQF RMKLLKNKOIOHPHRIQKQKW RLMLU RIPLP RMKMTLVKW RJ[MYPXSXUY RLZNYRYTZ RJ[NZQZS[UY RRIQJPLPU RQKQS RRIRRQTPU RRITGVFXFZG RWGXGYH RTGVGXIZG RUOXLYM[N RWMYN[N R[NYQWSUU RWSYTZX[Z\\Z RYVZZ RWSXTYZZ[[[\\Z RUOUY",3512:" 85G]IHKFNFPGRF RLGOG RIHKGMHPHRF RNKMLLNLOJOIPIRJQLQLW RMMMU RJPMP RNKNTMVLW RK[NYRXWX[Y RMZPYWYZZ RK[OZVZY[[Y RSIRJQLQU RRKRS RSISRRTQU RSIUGWFYF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\\UFKPKUTU RVUZU[V[TZU RLPLT RMNMU RTGTXRY RUJVHUGUYWZ RUFWHVJVXXYYY RRYSYUZV[WZYY",3705:" 53H\\LFLO RLFXF RMGVG RLHUHWGXF RVLUMSNOOLO RSNTNVOVY RUMWNWX RVLWMYNZNXOXY RKYMXOXQYRZ ROYQZ RKYMYOZP[RZVYXY",3706:" 59H\\LHLXJY RMIMXPZ RNHNXPYQZ RLHNHRGTFUGWHXH RSGUH RRGTIVIXH RNPOPSOUNVM RSOTOVPVY RUNWPWX RVMWNYOZOXPXY RJYLYNZO[QZVYXY",3707:" 38H\\KHMFPGUGZF RLGOHTHWG RKHOIRIVHZF RZFYHWKSOQRPUPXQ[ RRQQTQWRZ RUMSPRSRVSYQ[",3708:" 71H\\LILO RMJMN RNINO RLINISHUGVF RSHTHVIVO RUGWHWN RVFWGYHZHXIXO RLONOVRXR RXOVONRLR RLRLXJY RMSMXPZ RNRNXPYQZ RVRVY RWSWX RXRXY RJYLYNZO[QZVYXY",3709:" 60H\\LHLQJR RMIMROS RNHNQPRQR RLHNHSGUF RSGTHVIVY RTGWIWX RUFVGXHZHXIXY RJRKRMSNTOSQRUQVQ RKYMXOXQYRZ ROYQZ RKYMYOZP[RZVYXY",3710:" 11LXRXPZR[TZRX RRYQZSZRY",3711:" 14LXR^R\\PZRXSZS\\R^P_ RRYQZR[RY",3712:" 22LXRMPORPTORM RRNQOSORN RRXPZR[TZRX RRYQZSZRY",3713:" 25LXRMPORPTORM RRNQOSORN RR^R\\PZRXSZS\\R^P_ RRYQZR[RY",3714:" 30LXRFQGOHQIRT RRISHRGQHRIRT RRFSGUHSIRT RRXPZR[TZRX RRYQZSZRY",3715:" 51I[LJMHNGQFSFVGWHXJXLWNUPSQ RMJNH RVHWIWMVN RLJNKNIOGQF RSFUGVIVMUOSQ RRQRTSQQQRT RRXPZR[TZRX RRYQZSZRY",3716:" 14LXTFRGQIQKRMTKRIRG RRJRLSKRJ",3717:" 14LXRLRJPHRFSHSJRLPM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ZO_PbN` ROORNTMWPWX RTNVPVX RRNUQUY",3917:" 31J[MPMXP[UY RNPNXPZ ROOOWRZ RMPOOTMWPW_XbV` RTNVPV` RRNUQU_TbV`",3918:" 31KXMONOOPOXNYP[ RONPOPXOYPZQYPX RMOOMQOQXRYP[ RQOUMWOUPSN RTNVO",3919:" 41JZMPMSOUURWTWX RNPNSOT ROOOSPT RUSVTVX RTSUTUY RMPSMVNTOQN RRNUN RWXQ[MYOXSZ ROYQZ",3920:" 27MWRHPFQJQXPYR[ RRHRXQYRZSYRX RRHTFSJSXTYR[ RNMQM RSMVM",3921:" 40I[KOLOMPMYP[UY RMNNONYPZ RKOMMOOOXRZ RVMXOWPWXXYYY RVPWOVNUOVPVYWZ RVMTOUPUYW[YY",3922:" 36I[LMMOMXQ[SYWW RMNNONXQZ RLMNNOOOWRYSY RVMXOWPWW RVPWOVNUOVPVW RVMTOUPUX",3923:" 59E_HMIOIXM[OYQX RINJOJXMZ RHMJNKOKWNYOY RRMPOQPQXU[WY[W RRPSORNQORPRXUZ RRMTOSPSWVYWY RZM\\O[P[W RZP[OZNYOZPZW RZMXOYPYX",3924:" 39I[LONPUZV[XY RMNOOUYWZ RLONMONVXXY RXMVMVOXOXMVOSS RQUNYL[N[NYLYL[ RNTQT RSTVT",3925:" 49I[KOLOMPMYP[UY RMNNONYPZ RKOMMOOOXRZ RVMXOWPW]V_U`SaQaO`MaObQa RVPWOVNUOVPV^U_ RPaNa RVMTOUPU^T`Sa",3926:" 43L[RNOPOORNTMWOWSRU RTNVOVS RRNUPUSTT RRUWWW]V_U`SaQaO`MaObQa RVWV^U_ RPaNa RTVUWU^T`Sa"},$e={"\\frac":{glyph:0,arity:2,flags:{}},"\\binom":{glyph:0,arity:2,flags:{}},"\\sqrt":{glyph:2267,arity:1,flags:{opt:!0,xfl:!0,yfl:!0}},"^":{glyph:0,arity:1,flags:{}},_:{glyph:0,arity:1,flags:{}},"(":{glyph:2221,arity:0,flags:{yfl:!0}},")":{glyph:2222,arity:0,flags:{yfl:!0}},"[":{glyph:2223,arity:0,flags:{yfl:!0}},"]":{glyph:2224,arity:0,flags:{yfl:!0}},"\\langle":{glyph:2227,arity:0,flags:{yfl:!0}},"\\rangle":{glyph:2228,arity:0,flags:{yfl:!0}},"|":{glyph:2229,arity:0,flags:{yfl:!0}},"\\|":{glyph:2230,arity:0,flags:{yfl:!0}},"\\{":{glyph:2225,arity:0,flags:{yfl:!0}},"\\}":{glyph:2226,arity:0,flags:{yfl:!0}},"\\#":{glyph:2275,arity:0,flags:{}},"\\$":{glyph:2274,arity:0,flags:{}},"\\&":{glyph:2273,arity:0,flags:{}},"\\%":{glyph:2271,arity:0,flags:{}},"\\begin":{glyph:0,arity:1,flags:{}},"\\end":{glyph:0,arity:1,flags:{}},"\\left":{glyph:0,arity:1,flags:{}},"\\right":{glyph:0,arity:1,flags:{}},"\\middle":{glyph:0,arity:1,flags:{}},"\\cdot":{glyph:2236,arity:0,flags:{}},"\\pm":{glyph:2233,arity:0,flags:{}},"\\mp":{glyph:2234,arity:0,flags:{}},"\\times":{glyph:2235,arity:0,flags:{}},"\\div":{glyph:2237,arity:0,flags:{}},"\\leqq":{glyph:2243,arity:0,flags:{}},"\\geqq":{glyph:2244,arity:0,flags:{}},"\\leq":{glyph:2243,arity:0,flags:{}},"\\geq":{glyph:2244,arity:0,flags:{}},"\\propto":{glyph:2245,arity:0,flags:{}},"\\sim":{glyph:2246,arity:0,flags:{}},"\\equiv":{glyph:2240,arity:0,flags:{}},"\\dagger":{glyph:2277,arity:0,flags:{}},"\\ddagger":{glyph:2278,arity:0,flags:{}},"\\ell":{glyph:662,arity:0,flags:{}},"\\vec":{glyph:2261,arity:1,flags:{hat:!0,xfl:!0,yfl:!0}},"\\overrightarrow":{glyph:2261,arity:1,flags:{hat:!0,xfl:!0,yfl:!0}},"\\overleftarrow":{glyph:2263,arity:1,flags:{hat:!0,xfl:!0,yfl:!0}},"\\bar":{glyph:2231,arity:1,flags:{hat:!0,xfl:!0}},"\\overline":{glyph:2231,arity:1,flags:{hat:!0,xfl:!0}},"\\widehat":{glyph:2247,arity:1,flags:{hat:!0,xfl:!0,yfl:!0}},"\\hat":{glyph:2247,arity:1,flags:{hat:!0}},"\\acute":{glyph:2248,arity:1,flags:{hat:!0}},"\\grave":{glyph:2249,arity:1,flags:{hat:!0}},"\\breve":{glyph:2250,arity:1,flags:{hat:!0}},"\\tilde":{glyph:2246,arity:1,flags:{hat:!0}},"\\underline":{glyph:2231,arity:1,flags:{mat:!0,xfl:!0}},"\\not":{glyph:2220,arity:1,flags:{}},"\\neq":{glyph:2239,arity:1,flags:{}},"\\ne":{glyph:2239,arity:1,flags:{}},"\\exists":{glyph:2279,arity:0,flags:{}},"\\in":{glyph:2260,arity:0,flags:{}},"\\subset":{glyph:2256,arity:0,flags:{}},"\\supset":{glyph:2258,arity:0,flags:{}},"\\cup":{glyph:2257,arity:0,flags:{}},"\\cap":{glyph:2259,arity:0,flags:{}},"\\infty":{glyph:2270,arity:0,flags:{}},"\\partial":{glyph:2265,arity:0,flags:{}},"\\nabla":{glyph:2266,arity:0,flags:{}},"\\aleph":{glyph:2077,arity:0,flags:{}},"\\wp":{glyph:2190,arity:0,flags:{}},"\\therefore":{glyph:740,arity:0,flags:{}},"\\mid":{glyph:2229,arity:0,flags:{}},"\\sum":{glyph:2402,arity:0,flags:{big:!0}},"\\prod":{glyph:2401,arity:0,flags:{big:!0}},"\\bigoplus":{glyph:2284,arity:0,flags:{big:!0}},"\\bigodot":{glyph:2281,arity:0,flags:{big:!0}},"\\int":{glyph:2412,arity:0,flags:{yfl:!0}},"\\oint":{glyph:2269,arity:0,flags:{yfl:!0}},"\\oplus":{glyph:1284,arity:0,flags:{}},"\\odot":{glyph:1281,arity:0,flags:{}},"\\perp":{glyph:738,arity:0,flags:{}},"\\angle":{glyph:739,arity:0,flags:{}},"\\triangle":{glyph:842,arity:0,flags:{}},"\\Box":{glyph:841,arity:0,flags:{}},"\\rightarrow":{glyph:2261,arity:0,flags:{}},"\\to":{glyph:2261,arity:0,flags:{}},"\\leftarrow":{glyph:2263,arity:0,flags:{}},"\\gets":{glyph:2263,arity:0,flags:{}},"\\circ":{glyph:902,arity:0,flags:{}},"\\bigcirc":{glyph:904,arity:0,flags:{}},"\\bullet":{glyph:828,arity:0,flags:{}},"\\star":{glyph:856,arity:0,flags:{}},"\\diamond":{glyph:743,arity:0,flags:{}},"\\ast":{glyph:728,arity:0,flags:{}},"\\log":{glyph:0,arity:0,flags:{txt:!0}},"\\ln":{glyph:0,arity:0,flags:{txt:!0}},"\\exp":{glyph:0,arity:0,flags:{txt:!0}},"\\mod":{glyph:0,arity:0,flags:{txt:!0}},"\\lim":{glyph:0,arity:0,flags:{txt:!0,big:!0}},"\\sin":{glyph:0,arity:0,flags:{txt:!0}},"\\cos":{glyph:0,arity:0,flags:{txt:!0}},"\\tan":{glyph:0,arity:0,flags:{txt:!0}},"\\csc":{glyph:0,arity:0,flags:{txt:!0}},"\\sec":{glyph:0,arity:0,flags:{txt:!0}},"\\cot":{glyph:0,arity:0,flags:{txt:!0}},"\\sinh":{glyph:0,arity:0,flags:{txt:!0}},"\\cosh":{glyph:0,arity:0,flags:{txt:!0}},"\\tanh":{glyph:0,arity:0,flags:{txt:!0}},"\\csch":{glyph:0,arity:0,flags:{txt:!0}},"\\sech":{glyph:0,arity:0,flags:{txt:!0}},"\\coth":{glyph:0,arity:0,flags:{txt:!0}},"\\arcsin":{glyph:0,arity:0,flags:{txt:!0}},"\\arccos":{glyph:0,arity:0,flags:{txt:!0}},"\\arctan":{glyph:0,arity:0,flags:{txt:!0}},"\\arccsc":{glyph:0,arity:0,flags:{txt:!0}},"\\arcsec":{glyph:0,arity:0,flags:{txt:!0}},"\\arccot":{glyph:0,arity:0,flags:{txt:!0}},"\\text":{glyph:0,arity:1,flags:{}},"\\mathnormal":{glyph:0,arity:1,flags:{}},"\\mathrm":{glyph:0,arity:1,flags:{}},"\\mathit":{glyph:0,arity:1,flags:{}},"\\mathbf":{glyph:0,arity:1,flags:{}},"\\mathsf":{glyph:0,arity:1,flags:{}},"\\mathtt":{glyph:0,arity:1,flags:{}},"\\mathfrak":{glyph:0,arity:1,flags:{}},"\\mathcal":{glyph:0,arity:1,flags:{}},"\\mathbb":{glyph:0,arity:1,flags:{}},"\\mathscr":{glyph:0,arity:1,flags:{}},"\\rm":{glyph:0,arity:1,flags:{}},"\\it":{glyph:0,arity:1,flags:{}},"\\bf":{glyph:0,arity:1,flags:{}},"\\sf":{glyph:0,arity:1,flags:{}},"\\tt":{glyph:0,arity:1,flags:{}},"\\frak":{glyph:0,arity:1,flags:{}},"\\cal":{glyph:0,arity:1,flags:{}},"\\bb":{glyph:0,arity:1,flags:{}},"\\scr":{glyph:0,arity:1,flags:{}},"\\quad":{glyph:0,arity:0,flags:{}},"\\,":{glyph:0,arity:0,flags:{}},"\\.":{glyph:0,arity:0,flags:{}},"\\;":{glyph:0,arity:0,flags:{}},"\\!":{glyph:0,arity:0,flags:{}},"\\alpha":{glyph:2127,flags:{}},"\\beta":{glyph:2128,flags:{}},"\\gamma":{glyph:2129,flags:{}},"\\delta":{glyph:2130,flags:{}},"\\varepsilon":{glyph:2131,flags:{}},"\\zeta":{glyph:2132,flags:{}},"\\eta":{glyph:2133,flags:{}},"\\vartheta":{glyph:2134,flags:{}},"\\iota":{glyph:2135,flags:{}},"\\kappa":{glyph:2136,flags:{}},"\\lambda":{glyph:2137,flags:{}},"\\mu":{glyph:2138,flags:{}},"\\nu":{glyph:2139,flags:{}},"\\xi":{glyph:2140,flags:{}},"\\omicron":{glyph:2141,flags:{}},"\\pi":{glyph:2142,flags:{}},"\\rho":{glyph:2143,flags:{}},"\\sigma":{glyph:2144,flags:{}},"\\tau":{glyph:2145,flags:{}},"\\upsilon":{glyph:2146,flags:{}},"\\varphi":{glyph:2147,flags:{}},"\\chi":{glyph:2148,flags:{}},"\\psi":{glyph:2149,flags:{}},"\\omega":{glyph:2150,flags:{}},"\\epsilon":{glyph:2184,flags:{}},"\\theta":{glyph:2185,flags:{}},"\\phi":{glyph:2186,flags:{}},"\\varsigma":{glyph:2187,flags:{}},"\\Alpha":{glyph:2027,flags:{}},"\\Beta":{glyph:2028,flags:{}},"\\Gamma":{glyph:2029,flags:{}},"\\Delta":{glyph:2030,flags:{}},"\\Epsilon":{glyph:2031,flags:{}},"\\Zeta":{glyph:2032,flags:{}},"\\Eta":{glyph:2033,flags:{}},"\\Theta":{glyph:2034,flags:{}},"\\Iota":{glyph:2035,flags:{}},"\\Kappa":{glyph:2036,flags:{}},"\\Lambda":{glyph:2037,flags:{}},"\\Mu":{glyph:2038,flags:{}},"\\Nu":{glyph:2039,flags:{}},"\\Xi":{glyph:2040,flags:{}},"\\Omicron":{glyph:2041,flags:{}},"\\Pi":{glyph:2042,flags:{}},"\\Rho":{glyph:2043,flags:{}},"\\Sigma":{glyph:2044,flags:{}},"\\Tau":{glyph:2045,flags:{}},"\\Upsilon":{glyph:2046,flags:{}},"\\Phi":{glyph:2047,flags:{}},"\\Chi":{glyph:2048,flags:{}},"\\Psi":{glyph:2049,flags:{}},"\\Omega":{glyph:2050,flags:{}}};function ls(e,t="math"){let n=e.charCodeAt(0);if(65<=n&&n<=90){let o=n-65;return t=="text"||t=="rm"?o+2001:t=="tt"?o+501:t=="bf"||t=="bb"?o+3001:t=="sf"?o+2501:t=="frak"?o+3301:t=="scr"||t=="cal"?o+2551:o+2051}if(97<=n&&n<=122){let o=n-97;return t=="text"||t=="rm"?o+2101:t=="tt"?o+601:t=="bf"||t=="bb"?o+3101:t=="sf"?o+2601:t=="frak"?o+3401:t=="scr"||t=="cal"?o+2651:o+2151}if(48<=n&&n<=57){let o=n-48;return t=="it"?o+2750:t=="bf"?o+3200:t=="tt"?o+700:o+2200}return{".":2210,",":2211,":":2212,";":2213,"!":2214,"?":2215,"'":2216,'"':2217,"*":2219,"/":2220,"-":2231,"+":2232,"=":2238,"<":2241,">":2242,"~":2246,"@":2273,"\\":804}[e]}var nn={SUB_SUP_SCALE:.75,SQRT_MAG_SCALE:.5,FRAC_SCALE:.85,LINE_SPACING:.5,FRAC_SPACING:.4};function Lb(e){e=e.replace(/\n/g," ");let t=0,n=[],o="";for(;t<e.length;)e[t]==" "?o.length&&(n.push(o),o=""):e[t]=="\\"?o.length==1&&o[0]=="\\"?o+=e[t]:(o.length&&n.push(o),o=e[t]):/[A-Za-z0-9\.]/.test(e[t])?o+=e[t]:(o.length&&o!="\\"&&(n.push(o),o=""),o+=e[t],n.push(o),o=""),t++;return o.length&&n.push(o),n}function bb(e){return{type:$e[e]?"symb":"char",mode:"math",text:e,chld:[],bbox:null}}function xa(e){let t=0,n={type:"node",text:"",mode:"math",chld:[],bbox:null};function o(){if(e[t]!="[")return null;let s=0,a=t,i;for(;a<e.length;){if(e[a]=="[")s++;else if(e[a]=="]"&&(s--,!s))break;a++}return i=xa(e.slice(t+1,a)),t=a,i}function l(s){let a=t,i=a,u=0,r=0,c=[];for(;a<e.length;){if(e[a]=="{")u||(i=a),u++;else if(e[a]=="}"){if(u--,!u&&(c.push(xa(e.slice(i+1,a))),r++,r==s))break}else if(u==0&&(c.push(bb(e[a])),r++,r==s))break;a++}return t=a,c}for(t=0;t<e.length;t++){let s=$e[e[t]],a={type:"",text:e[t],mode:"math",chld:[],bbox:null};if(s)if(s.arity){t++,a.type="func";let i=null;s.flags.opt&&(i=o(),i&&t++);let u=l(s.arity);a.chld=u,i&&a.chld.push(i)}else a.type="symb";else e[t]=="{"?(a.type="node",a.text="",a.chld=l(1)):a.type="char";n.chld.push(a)}return n.chld.length==1&&(n=n.chld[0]),n}function bR(e){let t=0;for(;t<e.length;){if(e[t].text=="\\begin"){let n;for(n=t;n<e.length&&e[n].text!="\\end";n++);let o=e.splice(t+1,n-(t+1));bR(o),e[t].text=e[t].chld[0].text,e[t].chld=o,e.splice(t+1,1)}t++}}function wt(e,t,n,o,l,s){if(n==null&&(n=t),!!e.bbox){s&&(e.bbox.x*=t,e.bbox.y*=n),e.bbox.w*=t,e.bbox.h*=n;for(var a=0;a<e.chld.length;a++)wt(e.chld[a],t,n,0,0,!0);e.bbox.x+=o,e.bbox.y+=l}}function IR(e){let t=1/0,n=-1/0,o=1/0,l=-1/0;for(let s=0;s<e.length;s++)e[s].bbox&&(t=Math.min(t,e[s].bbox.x),o=Math.min(o,e[s].bbox.y),n=Math.max(n,e[s].bbox.x+e[s].bbox.w),l=Math.max(l,e[s].bbox.y+e[s].bbox.h));return{x:t,y:o,w:n-t,h:l-o}}function Ib(e){if(!e.length)return null;let t=IR(e);for(let o=0;o<e.length;o++)e[o].bbox&&(e[o].bbox.x-=t.x,e[o].bbox.y-=t.y);return{type:"node",text:"",mode:"math",chld:e,bbox:t}}function Yb(e,t="center"){for(let r=0;r<e.length;r++)if(e[r].text=="^"||e[r].text=="'"){let c=0,d=r;for(;d>0&&(e[d].text=="^"||e[d].text=="_"||e[d].text=="'");)d--;c=e[d].bbox.y,e[r].text=="'"?e[r].bbox.y=c:(wt(e[r],nn.SUB_SUP_SCALE,null,0,0),$e[e[d].text]&&$e[e[d].text].flags.big?e[r].bbox.y=c-e[r].bbox.h:e[d].text=="\\int"?e[r].bbox.y=c:e[r].bbox.y=c-e[r].bbox.h/2)}else if(e[r].text=="_"){let c=1,d=r;for(;d>0&&(e[d].text=="^"||e[d].text=="_"||e[d].text=="'");)d--;c=e[d].bbox.y+e[d].bbox.h,wt(e[r],nn.SUB_SUP_SCALE,null,0,0),$e[e[d].text]&&$e[e[d].text].flags.big?e[r].bbox.y=c:e[d].text=="\\int"?e[r].bbox.y=c-e[r].bbox.h:e[r].bbox.y=c-e[r].bbox.h/2}function n(r,c,d,R,p){let f=r,h=p,P=1/0,O=-1/0;for(;R>0?f<e.length:f>=0;){if(e[f].text==c)h++;else if(e[f].text==d){if(h--,h==0)break}else e[f].text=="^"||e[f].text=="_"||e[f].bbox&&(P=Math.min(P,e[f].bbox.y),O=Math.max(O,e[f].bbox.y+e[f].bbox.h));f+=R}return[P,O]}for(let r=0;r<e.length;r++)if(e[r].text=="\\left"){const[c,d]=n(r,"\\left","\\right",1,0);c!=1/0&&d!=-1/0&&(e[r].bbox.y=c,wt(e[r],1,(d-c)/e[r].bbox.h,0,0))}else if(e[r].text=="\\right"){const[c,d]=n(r,"\\right","\\left",-1,0);c!=1/0&&d!=-1/0&&(e[r].bbox.y=c,wt(e[r],1,(d-c)/e[r].bbox.h,0,0))}else if(e[r].text=="\\middle"){const[c,d]=n(r,"\\right","\\left",-1,1),[R,p]=n(r,"\\left","\\right",1,1);let f=Math.min(c,R),h=Math.max(d,p);f!=1/0&&h!=-1/0&&(e[r].bbox.y=f,wt(e[r],1,(h-f)/e[r].bbox.h,0,0))}if(!e.some(r=>r.text=="&"||r.text=="\\\\"))return;let o=[],l=[],s=[];for(let r=0;r<e.length;r++)e[r].text=="&"?(l.push(s),s=[]):e[r].text=="\\\\"?(s.length&&(l.push(s),s=[]),o.push(l),l=[]):s.push(e[r]);s.length&&l.push(s),l.length&&o.push(l);let a=[],i=[];for(let r=0;r<o.length;r++){let c=[];for(let d=0;d<o[r].length;d++){let R=Ib(o[r][d]);R&&(a[d]=a[d]||0,a[d]=Math.max(R.bbox.w+1,a[d])),c[d]=R}i.push(c)}let u=[];for(let r=0;r<i.length;r++){let c=1/0,d=-1/0;for(let R=0;R<i[r].length;R++)i[r][R]&&(c=Math.min(c,i[r][R].bbox.y),d=Math.max(d,i[r][R].bbox.y+i[r][R].bbox.h));u.push([c,d])}for(let r=0;r<u.length;r++)(u[r][0]==1/0||u[r][1]==1/0)&&(u[r][0]=r==0?0:u[r-1][1],u[r][1]=u[r][0]+2);for(let r=1;r<i.length;r++){let c=u[r-1][1]-u[r][0]+nn.LINE_SPACING;for(let d=0;d<i[r].length;d++)i[r][d]&&(i[r][d].bbox.y+=c);u[r][0]+=c,u[r][1]+=c}e.splice(0,e.length);for(let r=0;r<i.length;r++){let c=0;for(let d=0;d<i[r].length;d++){let R=i[r][d];if(!R){c+=a[d];continue}R.bbox.x+=c,c+=a[d]-R.bbox.w,t=="center"?R.bbox.x+=(a[d]-R.bbox.w)/2:t=="left"||(t=="right"||t=="equation"&&d!=i[r].length-1)&&(R.bbox.x+=a[d]-R.bbox.w),e.push(R)}}}function On(e,t="math"){var n,o,l;let s=(n={"\\text":"text","\\mathnormal":"math","\\mathrm":"rm","\\mathit":"it","\\mathbf":"bf","\\mathsf":"sf","\\mathtt":"tt","\\mathfrak":"frak","\\mathcal":"cal","\\mathbb":"bb","\\mathscr":"scr","\\rm":"rm","\\it":"it","\\bf":"bf","\\sf":"tt","\\tt":"tt","\\frak":"frak","\\cal":"cal","\\bb":"bb","\\scr":"scr"}[e.text])!=null?n:t;if(!e.chld.length){if($e[e.text])if($e[e.text].flags.big)e.text=="\\lim"?e.bbox={x:0,y:0,w:3.5,h:2}:e.bbox={x:0,y:-.5,w:3,h:3};else if($e[e.text].flags.txt){let i=0;for(var a=1;a<e.text.length;a++)i+=ko(ls(e.text[a],"text")).w;i/=16,e.bbox={x:0,y:0,w:i,h:2}}else if($e[e.text].glyph){let i=ko($e[e.text].glyph).w;i/=16,e.text=="\\int"||e.text=="\\oint"?e.bbox={x:0,y:-1.5,w:i,h:5}:e.bbox={x:0,y:0,w:i,h:2}}else e.bbox={x:0,y:0,w:1,h:2};else{let i=0;for(var a=0;a<e.text.length;a++)ko(ls(e.text[a],s))&&(s=="tt"?i+=16:i+=ko(ls(e.text[a],s)).w);i/=16,e.bbox={x:0,y:0,w:i,h:2}}e.mode=s;return}if(e.text=="\\frac"){let i=e.chld[0],u=e.chld[1],r=nn.FRAC_SCALE;On(i),On(u),i.bbox.x=0,i.bbox.y=0,u.bbox.x=0,u.bbox.y=0;let c=Math.max(i.bbox.w,u.bbox.w)*r;wt(i,r,null,(c-i.bbox.w*r)/2,0),wt(u,r,null,(c-u.bbox.w*r)/2,i.bbox.h+nn.FRAC_SPACING),e.bbox={x:0,y:-i.bbox.h+1-nn.FRAC_SPACING/2,w:c,h:i.bbox.h+u.bbox.h+nn.FRAC_SPACING}}else if(e.text=="\\binom"){let i=e.chld[0],u=e.chld[1];On(i),On(u),i.bbox.x=0,i.bbox.y=0,u.bbox.x=0,u.bbox.y=0;let r=Math.max(i.bbox.w,u.bbox.w);wt(i,1,null,(r-i.bbox.w)/2+1,0),wt(u,1,null,(r-u.bbox.w)/2+1,i.bbox.h),e.bbox={x:0,y:-i.bbox.h+1,w:r+2,h:i.bbox.h+u.bbox.h}}else if(e.text=="\\sqrt"){let i=e.chld[0];On(i);let u=e.chld[1],r=0;u&&(On(u),r=Math.max(u.bbox.w*nn.SQRT_MAG_SCALE-.5,0),wt(u,nn.SQRT_MAG_SCALE,null,0,.5)),wt(i,1,null,1+r,.5),e.bbox={x:0,y:2-i.bbox.h-.5,w:i.bbox.w+1+r,h:i.bbox.h+.5}}else if($e[e.text]&&$e[e.text].flags.hat){let i=e.chld[0];On(i),wt(i,1,null,0,.5),e.bbox={x:0,y:-.5,w:i.bbox.w,h:i.bbox.h+.5}}else if($e[e.text]&&$e[e.text].flags.mat){let i=e.chld[0];On(i),e.bbox={x:0,y:0,w:i.bbox.w,h:i.bbox.h+.5}}else{let i=0,u=0,r=1;for(let h=0;h<e.chld.length;h++){let P=e.chld[h],O=(o={"\\quad":2,"\\,":2*3/18,"\\:":2*4/18,"\\;":2*5/18,"\\!":2*-3/18}[P.text])!=null?o:null;if(P.text=="\\\\"){u+=r,i=0,r=1;continue}else{if(P.text=="&")continue;if(O!=null){i+=O;continue}else{if(On(P,s),wt(P,1,null,i,u),P.text=="^"||P.text=="_"||P.text=="'"){let L=h;for(;L>0&&(e.chld[L].text=="^"||e.chld[L].text=="_"||e.chld[L].text=="'");)L--;let S=$e[e.chld[L].text]&&$e[e.chld[L].text].flags.big;if(P.text=="'"){let X=L+1,M=0;for(;X<h;)e.chld[X].text=="'"&&M++,X++;P.bbox.x=e.chld[L].bbox.x+e.chld[L].bbox.w+P.bbox.w*M,i=Math.max(i,P.bbox.x+P.bbox.w)}else if(S){let X=e.chld[L].bbox.x+(e.chld[L].bbox.w-P.bbox.w*nn.SUB_SUP_SCALE)/2;P.bbox.x=X,i=Math.max(i,e.chld[L].bbox.x+e.chld[L].bbox.w+(P.bbox.w*nn.SUB_SUP_SCALE-e.chld[L].bbox.w)/2)}else P.bbox.x=e.chld[L].bbox.x+e.chld[L].bbox.w,i=Math.max(i,P.bbox.x+P.bbox.w*nn.SUB_SUP_SCALE)}else i+=P.bbox.w;t=="text"&&(i+=1),r=Math.max(P.bbox.y+P.bbox.h-u,r)}}}u+=r;let c={bmatrix:["[","]"],pmatrix:["(",")"],Bmatrix:["\\{","\\}"],cases:["\\{"]},d=(l={bmatrix:"center",pmatrix:"center",Bmatrix:"center",cases:"left",matrix:"center",aligned:"equation"}[e.text])!=null?l:"left",R=!!c[e.text],p=!!c[e.text]&&c[e.text].length>1;Yb(e.chld,d);let f=IR(e.chld);e.text=="\\text"&&(f.x-=1,f.w+=2);for(let h=0;h<e.chld.length;h++)wt(e.chld[h],1,null,-f.x+(R?1.5:0),-f.y);e.bbox={x:0,y:0,w:f.w+1.5*Number(R)+1.5*Number(p),h:f.h},R&&e.chld.unshift({type:"symb",text:c[e.text][0],mode:e.mode,chld:[],bbox:{x:0,y:0,w:1,h:f.h}}),p&&e.chld.push({type:"symb",text:c[e.text][1],mode:e.mode,chld:[],bbox:{x:f.w+2,y:0,w:1,h:f.h}}),(R||p||e.text=="matrix")&&(e.type="node",e.text="",e.bbox.y-=(e.bbox.h-2)/2)}}function Wb(e){function t(o,l,s){let a=[];if(o.bbox){if(l+=o.bbox.x,s+=o.bbox.y,o.text=="\\frac"){let u=o.chld[1].bbox.y-(o.chld[0].bbox.y+o.chld[0].bbox.h),r={type:"symb",mode:o.mode,text:"\\bar",bbox:{x:l,y:s+(o.chld[1].bbox.y-u/2)-u/2,w:o.bbox.w,h:u},chld:[]};a.push(r)}else if(o.text=="\\sqrt"){let u=o.chld[0].bbox.y,r=Math.max(0,o.chld[0].bbox.x-o.chld[0].bbox.h/2),c={type:"symb",mode:o.mode,text:"\\sqrt",bbox:{x:l+r,y:s+u/2,w:o.chld[0].bbox.x-r,h:o.bbox.h-u/2},chld:[]};a.push(c),a.push({type:"symb",text:"\\bar",mode:o.mode,bbox:{x:l+o.chld[0].bbox.x,y:s,w:o.bbox.w-o.chld[0].bbox.x,h:u},chld:[]})}else if(o.text=="\\binom"){let u=Math.min(o.chld[0].bbox.x,o.chld[1].bbox.x),r={type:"symb",mode:o.mode,text:"(",bbox:{x:l,y:s,w:u,h:o.bbox.h},chld:[]};a.push(r),a.push({type:"symb",text:")",mode:o.mode,bbox:{x:l+o.bbox.w-u,y:s,w:u,h:o.bbox.h},chld:[]})}else if($e[o.text]&&$e[o.text].flags.hat){let u=o.chld[0].bbox.y,r={type:"symb",mode:o.mode,text:o.text,bbox:{x:l,y:s,w:o.bbox.w,h:u},chld:[]};a.push(r)}else if($e[o.text]&&$e[o.text].flags.mat){let u=o.chld[0].bbox.h,r={type:"symb",text:o.text,mode:o.mode,bbox:{x:l,y:s+u,w:o.bbox.w,h:o.bbox.h-u},chld:[]};a.push(r)}else if(o.type!="node"&&o.text!="^"&&o.text!="_"){let u={type:o.type=="func"?"symb":o.type,text:o.text,mode:o.mode,bbox:{x:l,y:s,w:o.bbox.w,h:o.bbox.h},chld:[]};a.push(u)}}for(var i=0;i<o.chld.length;i++){let u=t(o.chld[i],l,s);a.push(...u)}return a}let n=t(e,-e.bbox.x,-e.bbox.y);e.type="node",e.text="",e.chld=n}function Ub(e){let t=[];for(let n=0;n<e.chld.length;n++){let o=e.chld[n],l=o.bbox.h/2,s=!1;if($e[o.text]&&$e[o.text].flags.hat&&!$e[o.text].flags.xfl&&!$e[o.text].flags.yfl&&(l*=4,s=!0),$e[o.text]&&$e[o.text].glyph){let a=ko($e[o.text].glyph);for(let i=0;i<a.polylines.length;i++){let u=[];for(let r=0;r<a.polylines[i].length;r++){let c=a.polylines[i][r][0],d=a.polylines[i][r][1];if($e[o.text].flags.xfl)c=(c-a.xmin)/Math.max(a.xmax-a.xmin,1)*o.bbox.w,c+=o.bbox.x;else if(a.w/16*l>o.bbox.w)c=c/Math.max(a.w,1)*o.bbox.w,c+=o.bbox.x;else{c=c/16*l;let R=(o.bbox.w-a.w/16*l)/2;c+=o.bbox.x+R}if($e[o.text].flags.yfl)d=(d-a.ymin)/Math.max(a.ymax-a.ymin,1)*o.bbox.h,d+=o.bbox.y;else{if(d=d/16*l,s){let R=(a.ymax+a.ymin)/2;d-=R/16*l}d+=o.bbox.y+o.bbox.h/2}u.push([c,d])}t.push(u)}}else if($e[o.text]&&$e[o.text].flags.txt||o.type=="char"){let a=o.bbox.x,i=!!($e[o.text]&&$e[o.text].flags.txt);for(let u=Number(i);u<o.text.length;u++){let r=ko(ls(o.text[u],i?"text":o.mode));if(!r){console.warn("unmapped character: "+o.text[u]);continue}for(let c=0;c<r.polylines.length;c++){let d=[];for(let R=0;R<r.polylines[c].length;R++){let p=r.polylines[c][R][0],f=r.polylines[c][R][1];p/=16,f/=16,p*=l,f*=l,o.mode=="tt"&&(r.w>16?p*=16/r.w:p+=(16-r.w)/2/16),p+=a,f+=o.bbox.y+o.bbox.h/2,d.push([p,f])}t.push(d)}o.mode=="tt"?a+=l:a+=r.w/16*l}}}return t}function Sn(e){return Math.round(e*100)/100}var Ai=class{constructor(e){this._latex=e,this._tokens=Lb(e),this._tree=xa(this._tokens),bR(this._tree.chld),On(this._tree),Wb(this._tree),this._polylines=Ub(this._tree)}resolveScale(e){var t,n,o,l;if(e==null)return[16,16,16,16];let s=(t=e.SCALE_X)!=null?t:16,a=(n=e.SCALE_Y)!=null?n:16;if(e.MIN_CHAR_H!=null){let r=0;for(let d=0;d<this._tree.chld.length;d++){let R=this._tree.chld[d];(R.type=="char"||$e[R.text]&&($e[R.text].flags.txt||!Object.keys($e[R.text].flags).length))&&(r=Math.min(R.bbox.h,r))}let c=Math.max(1,e.MIN_CHAR_H/r);s*=c,a*=c}if(e.MAX_W!=null){let r=s;s=Math.min(s,e.MAX_W/this._tree.bbox.w),a*=s/r}if(e.MAX_H!=null){let r=a;a=Math.min(a,e.MAX_H/this._tree.bbox.h),s*=a/r}let i=(o=e.MARGIN_X)!=null?o:s,u=(l=e.MARGIN_Y)!=null?l:a;return[i,u,s,a]}polylines(e){e||(e={});let t=[],[n,o,l,s]=this.resolveScale(e);for(let a=0;a<this._polylines.length;a++){t.push([]);for(let i=0;i<this._polylines[a].length;i++){let[u,r]=this._polylines[a][i];t[t.length-1].push([n+u*l,o+r*s])}}return t}pathd(e){e||(e={});let t="",[n,o,l,s]=this.resolveScale(e);for(let a=0;a<this._polylines.length;a++)for(let i=0;i<this._polylines[a].length;i++){let[u,r]=this._polylines[a][i];t+=i?"L":"M",t+=`${Sn(n+u*l)} ${Sn(o+r*s)}`}return t}svg(e){var t,n;e||(e={});let[o,l,s,a]=this.resolveScale(e),i=Sn(this._tree.bbox.w*s+o*2),u=Sn(this._tree.bbox.h*a+l*2),r=`<svg
- xmlns="http://www.w3.org/2000/svg"
- width="${i}" height="${u}"
- fill="none" stroke="${(t=e.FG_COLOR)!=null?t:"black"}" stroke-width="${(n=e.STROKE_W)!=null?n:1}"
- stroke-linecap="round" stroke-linejoin="round"
- >`;e.BG_COLOR&&(r+=`<rect x="0" y="0" width="${i}" height="${u}" fill="${e.BG_COLOR}" stroke="none"></rect>`),r+='<path d="';for(let c=0;c<this._polylines.length;c++){r+="M";for(let d=0;d<this._polylines[c].length;d++){let[R,p]=this._polylines[c][d];r+=Sn(o+R*s)+" "+Sn(l+p*a)+" "}}return r+='"/>',r+="</svg>",r}pdf(e){var t;e||(e={});let[n,o,l,s]=this.resolveScale(e),a=Sn(this._tree.bbox.w*l+n*2),i=Sn(this._tree.bbox.h*s+o*2),u=`%PDF-1.1
- %%¥±ë
- 1 0 obj
- << /Type /Catalog
- /Pages 2 0 R
- >>endobj
- 2 0 obj
- << /Type /Pages
- /Kids [3 0 R]
- /Count 1
- /MediaBox [0 0 ${a} ${i}]
- >>
- endobj
- 3 0 obj
- << /Type /Page
- /Parent 2 0 R
- /Resources
- << /Font
- << /F1
- << /Type /Font
- /Subtype /Type1
- /BaseFont /Times-Roman
- >>
- >>
- >>
- /Contents [`,r="",c=4;for(let f=0;f<this._polylines.length;f++){r+=`${c} 0 obj
- << /Length 0 >>
- stream
- 1 j 1 J ${(t=e.STROKE_W)!=null?t:1} w
- `;for(var d=0;d<this._polylines[f].length;d++){var[R,p]=this._polylines[f][d];r+=`${Sn(n+R*l)} ${Sn(i-(o+p*s))} ${d?"l":"m"} `}r+=`
- S
- endstream
- endobj
- `,u+=`${c} 0 R `,c++}return u+=`]
- >>
- endobj
- `,r+=`
- trailer
- << /Root 1 0 R
- /Size 0
- >>startxref
- %%EOF
- `,u+r}boxes(e){e||(e={});let[t,n,o,l]=this.resolveScale(e),s=[];for(let a=0;a<this._tree.chld.length;a++){let{x:i,y:u,w:r,h:c}=this._tree.chld[a].bbox;s.push({x:t+i*o,y:n+u*l,w:r*o,h:c*l})}return s}box(e){e||(e={});let[t,n,o,l]=this.resolveScale(e);return{x:t+this._tree.bbox.x*o,y:n+this._tree.bbox.y*l,w:this._tree.bbox.w*o,h:this._tree.bbox.h*l}}};nn.SUB_SUP_SCALE=.5;const Qb=[{label:"高斯公式",latex:"\\int\\int\\int _ { \\Omega } \\left( \\frac { \\partial {P} } { \\partial {x} } + \\frac { \\partial {Q} } { \\partial {y} } + \\frac { \\partial {R} }{ \\partial {z} } \\right) \\mathrm { d } V = \\oint _ { \\partial \\Omega } ( P \\cos \\alpha + Q \\cos \\beta + R \\cos \\gamma ) \\mathrm{ d} S"},{label:"傅里叶级数",latex:"f(x) = \\frac {a_0} 2 + \\sum_{n = 1}^\\infty {({a_n}\\cos {nx} + {b_n}\\sin {nx})}"},{label:"泰勒展开式",latex:"e ^ { x } = 1 + \\frac { x } { 1 ! } + \\frac { x ^ { 2 } } { 2 ! } + \\frac { x ^ { 3 } } { 3 ! } + ... , \\quad - \\infty < x < \\infty"},{label:"定积分",latex:"\\lim_ { n \\rightarrow + \\infty } \\sum _ { i = 1 } ^ { n } f \\left[ a + \\frac { i } { n } ( b - a ) \\right] \\frac { b - a } { n } = \\int _ { a } ^ { b } f ( x ) dx"},{label:"三角恒等式1",latex:"\\sin \\alpha \\pm \\sin \\beta = 2 \\sin \\frac { 1 } { 2 } ( \\alpha \\pm \\beta ) \\cos \\frac { 1 } { 2 } ( \\alpha \\mp \\beta )"},{label:"三角恒等式2",latex:"\\cos \\alpha + \\cos \\beta = 2 \\cos \\frac { 1 } { 2 } ( \\alpha + \\beta ) \\cos \\frac { 1 } { 2 } ( \\alpha - \\beta )"},{label:"和的展开式",latex:"( 1 + x ) ^ { n } = 1 + \\frac { n x } { 1 ! } + \\frac { n ( n - 1 ) x ^ { 2 } } { 2 ! } + ..."},{label:"欧拉公式",latex:" e^{ix} = \\cos {x} + i\\sin {x}"},{label:"贝努利方程",latex:"\\frac {dy} {dx} + P(x)y = Q(x) y^n ({n} \\not= {0,1})"},{label:"全微分方程",latex:"du(x,y) = P(x,y)dx + Q(x,y)dy = 0"},{label:"非齐次方程",latex:"y = (\\int Q(x) e^{\\int {P(x)dx}}dx + C)e^{-\\int {P(x)dx}}"},{label:"柯西中值定理",latex:"\\frac{{f(b) - f(a)}}{{F(b) - F(a)}} = \\frac{{f'(\\xi )}}{{F'(\\xi )}}"},{label:"拉格朗日中值定理",latex:"f(b) - f(a) = f'(\\xi )(b - a)"},{label:"导数公式",latex:"(\\arcsin x)' = \\frac{1}{{\\sqrt {1 - x^2} }}"},{label:"三角函数积分",latex:"\\int {tgxdx = - \\ln \\left| {\\cos x} \\right| + C}"},{label:"二次曲面",latex:"\\frac{{{x^2}}}{{{a^2}}} + \\frac{{{y^2}}}{{{b^2}}} - \\frac{{{z^2}}}{{{c^2}}} = 1"},{label:"二阶微分",latex:"\\frac {{d^2}y} {dx^2} + P(x) \\frac {dy} {dx} + Q(x)y = f(x)"},{label:"方向导数",latex:"\\frac{{\\partial f}}{{\\partial l}} = \\frac{{\\partial f}}{{\\partial x}}\\cos \\phi + \\frac{{\\partial f}}{{\\partial y}}\\sin \\phi"}],ma=[{type:"operators",label:"数学",children:[{latex:"\\cdot"},{latex:"\\pm"},{latex:"\\mp"},{latex:"+"},{latex:"-"},{latex:"\\times"},{latex:"\\div"},{latex:"<"},{latex:">"},{latex:"="},{latex:"\\neq\\ne"},{latex:"\\leqq"},{latex:"\\geqq"},{latex:"\\leq"},{latex:"\\geq"},{latex:"\\propto"},{latex:"\\sim"},{latex:"\\equiv"},{latex:"\\dagger"},{latex:"\\ddagger"},{latex:"\\ell"},{latex:"\\#"},{latex:"\\$"},{latex:"\\&"},{latex:"\\%"},{latex:"\\langle\\rangle"},{latex:"()"},{latex:"[]"},{latex:"\\{\\}"},{latex:"||"},{latex:"\\|"},{latex:"\\exists"},{latex:"\\in"},{latex:"\\subset"},{latex:"\\supset"},{latex:"\\cup"},{latex:"\\cap"},{latex:"\\infty"},{latex:"\\partial"},{latex:"\\nabla"},{latex:"\\aleph"},{latex:"\\wp"},{latex:"\\therefore"},{latex:"\\mid"},{latex:"\\sum"},{latex:"\\prod"},{latex:"\\bigoplus"},{latex:"\\bigodot"},{latex:"\\int"},{latex:"\\oint"},{latex:"\\oplus"},{latex:"\\odot"},{latex:"\\perp"},{latex:"\\angle"},{latex:"\\triangle"},{latex:"\\Box"},{latex:"\\rightarrow"},{latex:"\\to"},{latex:"\\leftarrow"},{latex:"\\gets"},{latex:"\\circ"},{latex:"\\bigcirc"},{latex:"\\bullet"},{latex:"\\star"},{latex:"\\diamond"},{latex:"\\ast"},{latex:","},{latex:"."},{latex:";"},{latex:"!"}]},{type:"group",label:"组合",children:[{latex:"\\frac{a}{b}"},{latex:"\\frac{dx}{dx}"},{latex:"\\frac{\\partial a}{\\partial b}"},{latex:"\\sqrt{x}"},{latex:"\\sqrt[n]{x}"},{latex:"x^{n}"},{latex:"x_{n}"},{latex:"x_a^b"},{latex:"\\int_{a}^{b}"},{latex:"\\oint_a^b"},{latex:"\\lim_{a \\rightarrow b}"},{latex:"\\prod_a^b"},{latex:"\\sum_a^b"},{latex:"\\left(\\begin{array}a \\\\ b\\end{array}\\right)"},{latex:"\\begin{bmatrix}a & b \\\\ c & d \\end{bmatrix}"},{latex:"\\begin{cases}a & x = 0 \\\\ b & x > 0\\end{cases}"},{latex:"\\hat{a}"},{latex:"\\breve{a}"},{latex:"\\acute{a}"},{latex:"\\grave{a}"},{latex:"\\tilde{a}"},{latex:"\\bar{a}"},{latex:"\\vec{a}"},{latex:"\\underline{a}"},{latex:"\\overline{a}"},{latex:"\\widehat{ab}"},{latex:"\\overleftarrow{ab}"},{latex:"\\overrightarrow{ab}"}]},{type:"verbatim",label:"函数",children:[{latex:"\\log"},{latex:"\\ln"},{latex:"\\exp"},{latex:"\\mod"},{latex:"\\lim"},{latex:"\\sin"},{latex:"\\cos"},{latex:"\\tan"},{latex:"\\csc"},{latex:"\\sec"},{latex:"\\cot"},{latex:"\\sinh"},{latex:"\\cosh"},{latex:"\\tanh"},{latex:"\\csch"},{latex:"\\sech"},{latex:"\\coth"},{latex:"\\arcsin"},{latex:"\\arccos"},{latex:"\\arctan"},{latex:"\\arccsc"},{latex:"\\arcsec"},{latex:"\\arccot"}]},{type:"greek",label:"希腊字母",children:[{latex:"\\alpha"},{latex:"\\beta"},{latex:"\\gamma"},{latex:"\\delta"},{latex:"\\varepsilon"},{latex:"\\zeta"},{latex:"\\eta"},{latex:"\\vartheta"},{latex:"\\iota"},{latex:"\\kappa"},{latex:"\\lambda"},{latex:"\\mu"},{latex:"\\nu"},{latex:"\\xi"},{latex:"\\omicron"},{latex:"\\pi"},{latex:"\\rho"},{latex:"\\sigma"},{latex:"\\tau"},{latex:"\\upsilon"},{latex:"\\varphi"},{latex:"\\chi"},{latex:"\\psi"},{latex:"\\omega"},{latex:"\\epsilon"},{latex:"\\theta"},{latex:"\\phi"},{latex:"\\varsigma"},{latex:"\\Alpha"},{latex:"\\Beta"},{latex:"\\Gamma"},{latex:"\\Delta"},{latex:"\\Epsilon"},{latex:"\\Zeta"},{latex:"\\Eta"},{latex:"\\Theta"},{latex:"\\Iota"},{latex:"\\Kappa"},{latex:"\\Lambda"},{latex:"\\Mu"},{latex:"\\Nu"},{latex:"\\Xi"},{latex:"\\Omicron"},{latex:"\\Pi"},{latex:"\\Rho"},{latex:"\\Sigma"},{latex:"\\Tau"},{latex:"\\Upsilon"},{latex:"\\Phi"},{latex:"\\Chi"},{latex:"\\Psi"},{latex:"\\Omega"}]}],Fb=["width","height"],Zb=["transform"],Ab=["d"],Kb=j({__name:"FormulaContent",props:{latex:{},width:{},height:{}},setup(e){const t=e,n=A({x:0,y:0,w:0,h:0}),o=A("");Oe(()=>t.latex,()=>{const s=new Ai(t.latex);o.value=s.pathd({}),n.value=s.box({})},{immediate:!0});const l=_(()=>{const s=n.value.w+32,a=n.value.h+32;return s>t.width||a>t.height?s/a>t.width/t.height?t.width/s:t.height/a:1});return(s,a)=>(g(),I("svg",{class:"formula-content",overflow:"visible",width:n.value.w+32,height:n.value.h+32,stroke:"#000","stroke-width":"1",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[m("g",{transform:`scale(${l.value}, ${l.value}) translate(0,0) matrix(1,0,0,1,0,0)`,"transform-origin":"0 50%"},[m("path",{d:o.value},null,8,Ab)],8,Zb)],8,Fb))}}),Gu=fe(Kb,[["__scopeId","data-v-3b4e4b30"]]),_b=["innerHTML"],Hb=j({__name:"SymbolContent",props:{latex:{}},setup(e){const t=e,n=_(()=>new Ai(t.latex).svg({SCALE_X:10,SCALE_Y:10}));return(o,l)=>(g(),I("div",{class:"symbol-content",innerHTML:n.value},null,8,_b))}}),Cb=["disabled","value","rows","placeholder"],Gb=j({__name:"TextArea",props:{value:{},rows:{default:4},padding:{},disabled:{type:Boolean,default:!1},resizable:{type:Boolean,default:!1},placeholder:{default:""}},emits:["update:value","focus","blur"],setup(e,{expose:t,emit:n}){const o=n,l=i=>{o("update:value",i.target.value)},s=A();return t({focus:()=>{s.value&&s.value.focus()}}),(i,u)=>(g(),I("textarea",{class:E(["textarea",{disabled:i.disabled,resizable:i.resizable}]),ref_key:"textareaRef",ref:s,disabled:i.disabled,value:i.value,rows:i.rows,placeholder:i.placeholder,style:ee({padding:i.padding?`${i.padding}px`:"10px"}),onInput:u[0]||(u[0]=r=>l(r)),onFocus:u[1]||(u[1]=r=>o("focus",r)),onBlur:u[2]||(u[2]=r=>o("blur",r))},null,46,Cb))}}),$a=fe(Gb,[["__scopeId","data-v-5b019163"]]),Eb={class:"latex-editor"},wb={class:"container"},kb={class:"left"},Jb={class:"input-area"},xb={class:"preview"},$b={key:0,class:"placeholder"},Db={key:1,class:"preview-content"},Bb={class:"right"},zb={class:"content"},jb={key:0,class:"symbol"},qb={class:"symbol-pool"},eI=["onClick"],tI={key:1,class:"formula"},nI={class:"formula-title"},oI=["onClick"],lI={class:"footer"},sI=j({__name:"index",props:{value:{default:""}},emits:["update","close"],setup(e,{emit:t}){const n=[{label:"常用符号",key:"symbol"},{label:"预置公式",key:"formula"}],o=e,l=t,s=Qb,a=ma.map(f=>({label:f.label,key:f.type})),i=A(""),u=A("symbol"),r=A(),c=A(ma[0].type),d=_(()=>{const f=ma.find(h=>h.type===c.value);return(f==null?void 0:f.children)||[]});Ee(()=>{o.value&&(i.value=o.value)});const R=()=>{if(!i.value)return Wt.error("公式不能为空");const f=new Ai(i.value),h=f.pathd({}),P=f.box({});l("update",{latex:i.value,path:h,w:P.w+32,h:P.h+32})},p=f=>{r.value&&(r.value.focus(),document.execCommand("insertText",!1,f))};return(f,h)=>(g(),I("div",Eb,[m("div",wb,[m("div",kb,[m("div",Jb,[N($a,{value:i.value,"onUpdate:value":h[0]||(h[0]=P=>i.value=P),placeholder:"输入 LaTeX 公式",ref_key:"textAreaRef",ref:r},null,8,["value"])]),m("div",xb,[i.value?(g(),I("div",Db,[N(Gu,{width:518,height:138,latex:i.value},null,8,["latex"])])):(g(),I("div",$b,"公式预览"))])]),m("div",Bb,[N(uo,{tabs:n,value:u.value,"onUpdate:value":h[1]||(h[1]=P=>u.value=P),card:""},null,8,["value"]),m("div",zb,[u.value==="symbol"?(g(),I("div",jb,[N(uo,{tabs:v(a),value:c.value,"onUpdate:value":h[2]||(h[2]=P=>c.value=P),spaceBetween:"",tabsStyle:{margin:"10px 10px 0"}},null,8,["tabs","value"]),m("div",qb,[(g(!0),I(ie,null,me(d.value,P=>(g(),I("div",{class:"symbol-item",key:P.latex,onClick:O=>p(P.latex)},[N(Hb,{latex:P.latex},null,8,["latex"])],8,eI))),128))])])):(g(),I("div",tI,[(g(!0),I(ie,null,me(v(s),P=>(g(),I("div",{class:"formula-item",key:P.label},[m("div",nI,Me(P.label),1),m("div",{class:"formula-item-content",onClick:O=>i.value=P.latex},[N(Gu,{width:236,height:60,latex:P.latex},null,8,["latex"])],8,oI)]))),128))]))])])]),m("div",lI,[N(Ve,{class:"btn",onClick:h[3]||(h[3]=P=>l("close"))},{default:U(()=>[ge("取消")]),_:1}),N(Ve,{class:"btn",type:"primary",onClick:h[4]||(h[4]=P=>R())},{default:U(()=>[ge("确定")]),_:1})])]))}}),YR=fe(sI,[["__scopeId","data-v-ce1af109"]]),aI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8BAMAAADI0sRBAAAAFVBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAASAQCkAAAAB3RSTlMAZlIHHQtTUaVLqwAAAJdJREFUOMvt00EOQDAQhWFRDlBhT1xALLrmBhzB/S9hYfHL5E2a2Ek6u+nrJ1SnKvXTard31xwmPruFJkyDifc406TYm7iO8HDF0cRhgq+vrWaNnR63mFWJ4Q6GgxUHaw6WHCw5WHKw5GAv/vrwxKtlP8w/li+Hyi/xscuTug7gy71MYLjCcG8MHj6qIYL3mRHMDXCpf9YN/hoZY8xwSc8AAAAASUVORK5CYII=",iI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAb1BMVEUAAAAdmf8ajP8ZjP8Zjf8Zjv8ajv8mmv8Zjf8ZjP8Z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VEUAAAD/bGb/Ul7/bnr/VF3/Q17/TF//X1//Tl7/P1//b1n/Ol//P1//a1r/alr/OWD/UV3/Z1r/WF7/SWD/OmD/b1v/XVz/UWH/SWb/VF3/Y1v/YFr/alv/QF//ZFr/YVz/WF3/aVr/SF7/XFz/TF7/ZVr/VF3/T1z/aFr/cVn/XVz/P17/UV3/d1j/S13/c1n/V1z/aFz/OGD/XVv/Tl3/WV3/SV3/dVn/cFr/b1n/cV3/OGH/X1r/VFz/T1z/Z1n/Wlv/WFv/XFv/ZFr/V1z/UVz/Ylr/SF3/Ol//RV7/Pl7/Ql7/YVr/bFn/aVn/TF3/Sl3/cFgC4AhdAAAAPHRSTlMACjwF9qFbF/Hq593NsaOaj4BaU1NCLR8R+vr29fLr6ufm49XPx8XBvb23s62tqqaYjo2MhnlwbWBTNDJyAgToAAABBklEQVQY02XR13KDMBAF0AUb3LvjOL333ptAVCPAYPz/P5NVYSaO90lz5nLZkUBO5e5Dg7V5WDY/1/BqmWXd/+FmluW0s2ob3Kg/WMFOnlN/Ntup/bEvbv6ckBcAXTV/71LMzYnnncBjVVrtqDTHfbMUdrkR4jmOG1hhuIk0mFBfGpIV2vYrLkMv8VNhrrBFXYMnWlogrYhGcIYmCOvQiiiKDdhXdcF5H2Pc4jZsl3U69KWle3Cg6m4B4F5Y0oBruV2dbzc9jtM0SVowlL81gY/JjfVAO8ScfaFepYHGfgD0LdzEBDk3jLFnfhhW7YWu0GCsVxGnyWnxrrDdGkM5I0Ne+XQsYr8qIkCzZAWpZAAAAABJRU5ErkJggg==",dI=""+new URL("nomore-B64RwV-C.png",import.meta.url).href,RI=e=>(Je("data-v-8ea68cd4"),e=e(),xe(),e),fI={class:"Empty"},pI=RI(()=>m("img",{src:dI,alt:""},null,-1)),hI={class:"text"},vI=j({__name:"Empty",props:{text:{default:"暂无内容"}},setup(e){const t=e;return(n,o)=>(g(),I("div",fI,[pI,m("div",hI,Me(t.text),1)]))}}),mI=fe(vI,[["__scopeId","data-v-8ea68cd4"]]),MI=["innerHTML"],gI=j({__name:"ellipsisScroll",props:{title:{},autoScroll:{type:Boolean}},setup(e){const t=e,n=A(),o=A(!1);Ee(()=>{var u,r;t!=null&&t.autoScroll?we(()=>{a(n.value)}):((u=n.value)==null||u.addEventListener("mouseenter",s),(r=n.value)==null||r.addEventListener("mouseleave",i))}),mt(()=>{var u,r;t!=null&&t.autoScroll||((u=n.value)==null||u.removeEventListener("mouseenter",s),(r=n.value)==null||r.removeEventListener("mouseleave",i))});let l=0;function s(u){const r=u.target;l=r.scrollWidth-r.clientWidth,l>0?o.value=!0:o.value=!1}function a(u){l=u.scrollWidth-u.clientWidth,l>0?o.value=!0:o.value=!1}function i(){o.value=!1}return(u,r)=>(g(),I("div",{ref_key:"ellipsisScrollDom",ref:n,class:E([[o.value&&"isScroll",o.value&&t.autoScroll&&"autoScroll"],"ellipsisScroll"]),innerHTML:t.title},null,10,MI))}}),Eu=fe(gI,[["__scopeId","data-v-326fd55a"]]),SI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAMAAADypuvZAAABTVBMVEX///8AAAD/////////////////////////6e7/////////////////////////////////////////tMT/wM3/4+n/9ff//P3/////epX/2eH/7/P/n7L/gJr/Q2j/S2//kqj/Z4f/cI7/m6//gZv/s8L/mK3/2OD/qbv/0dv/U3b/bYr/TnL/VHf/iqL/oLL/U3b/WXr/fZf/h5//ZoX/eZX/iKH/oLL/zNb/Q2n/X3//dZH/fpj/aIf/UHP/QGf/Nl//gZr/ZIP/V3n/S2//PWT/KFT/cI3/bYv/IU7/e5b/eJP/a4n/XH3/WXr/VHf/UnX/SG3/Rmz/Lln/hZ3/Wnz/M1z/HUv/ZoX/YYH/TnL/O2P/K1b/JVL/jaT/h5//OWH/iqL/co//cY7/GEf/TXH/MFv/kKb/////3+X/yNP/tcT/bIv+Y4P+OWF9z5y2AAAAOXRSTlPMAMiymHAkHdLCvbWZiHhSLBAE7ObTz8049tTQ/Pv59fPx6ubm5ODc3NT9+fnz8fDw7u3r6+bk4uDrz6jdAAACnElEQVRIx53WZ3faMBQGYIVhO4OdkBCSNjvp3sMGG7P3NCOMQICUdP//j5XAtLoYAtX7CZ9zn4Psc68ktGYM77BbzBsm04bZYnfwcwoMiLNuIpBNK7cEObfQnGw5H0C8DS2IjV+A3FYTWhiT1T0PuSzowVhcRsSZ0ZKYuVm0t46WZn0PIo6Y5YqjkcuMVorZ9Q+5LWjFWNx/kRWtHOsU8abVkYnXkQ39R2wT5EQgu5fbHs+2gHD2L96/ObnyIhDnGMEevTy4v+/ieLz+k3Sj0bi7065g9xLEITrb3W6/3+/1etXDeOLmJp0m7AMo4TACn+5zH5dXq+FwOBPSOp1EYsIuwAfEiJ45b38MgsFgpqTW65qms4RAT+Ua4sHixvWZbDabirdvCYsdKGSRH6kiTBz04xEBgUBgMCiFQmP24+t38m+PqSJM7PTjIakfJpMpuVwRRcIG34IjvEiVKsIEtF0A16dyuZyc/xKbMlWtj7Q6aEAE+tuXk2X5OhL5FVVagNHLw2SDfnyJQbPZlKRCtKgoUxa/VY+pIkxAs55LkpTP12qFfC0aLZaU1pR9Ak0LkT9fKxRwebEp4V86K4uiKAAEl4feFXGhopSuIxSLVd4iuDw46DtPW/gLxGI5mTApP2HKDhx6NDPpp+VypVIRf6Z0VsMvVzoFJZjYZ6bpGL94KCQnk2MWIf/m2wUlmDgQjPA83m7/LgQCwyl7JsAKTHg0k/1HqqqGMlmdycOd2QpeHw2oRpqWDOrMZzCb+hDCCC86CREPCen4I79xF5uOO4z3LJFOVckwnu8iQzhqYwF58roT7lVfCfOORbiFQXbmIcQYJ8tmybQtsxwATEcNy6HGcnyyHNQsVwKWywfLNYfpQsV+dWO/JDJdR/8AYkWODsJaK1MAAAAASUVORK5CYII=",OI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAMAAADypuvZAAAAtFBMVEX///8AAAD///////8cHBwHBwfd3d0hISExMTHY2Nj6+vr///////////////////////////////////////////////////////////////////8RERETExNHR0e4uLjv7+/i4uIODg5KSkpbW1tiYmJ4eHikpKSpqamvr6/Gxsb///8pKSk5OTlFRUVtbW1/f3+Ojo6WlpaVlZWfn5/AwMDMzMzPz8/r6+vz8/P///8AAACxlxxRAAAAO3RSTlPMAL0d+P3R9/PSzcfEtbGloJZ3dHBSOy4pJQae+vnu2M7R++3p6OPc2tnVOfXx7ubi397e3NbU08/OnU0PPMIAAAIVSURBVEjHnZbXesIwDIVV4pJBoYwQCAUaoMzuPfT+79VTSBPLSclXnyvJ1g+KLduik6KcfrfTqjUatVan23dKAgpQHDZJqBnGFVB0QSW6iI5Awzb9ofbwD2jUoyPqjcog55yO6twpQoMaVag2MKHrM6rU2bWEBilTQQ10yElzq8zQyaGRtgYVqzHKoGytq9X7hYb0Dw1TqP0fqH2AIjn6fu8pd7EOiIL1wlXe/bucj/aQqNHPKz7IfX11U/PqU1TvDxTrI4nHvzo9zUwv0WNiQKE+sEDIdOvvVmOGxqudv53CWOgxISD9zF0i4HFvzVxkONubjxi81E/lCTmk6Q4fkJp1z6unJj7zTgsC0te8AJ+BSFN1fGCQu0C6clZRiZT4LSAdzXtjvimDbpjfcg9IS/NmzJMyaMI8yz0g4lDMmf0i4zPPNRdIQ3exJ6sitMLe6X5DQi/ILzGZBNm9CEimFyjmpQktmVUg02uJgOds90WVPIuRFtZP6BYV54tVQBXeihAgXWP3EeMedjKrwbGsEiB9MrJBKSk/+x+FEjLyBeKQoTWo+eZgb+Zg1iQFBEfD0BYULxOs9ZLBbM35ZnoIpXYKwZOHhwkj0x2ZCrPjLvQx5VTTj+JsnF8sUhvFkNpQUV/iChMKnjzvKSibiWwuS6tr2eYBsHpqbB41m+fT5qG2aQlsmg+bNseqobJv3eybRKt29BtSNDxLqIqa3AAAAABJRU5ErkJggg==",Qo=e=>(Je("data-v-278572e8"),e=e(),xe(),e),PI={class:"cloudCoachList"},NI={class:"headCon"},XI=Qo(()=>m("div",{class:"headLeft"},[m("img",{class:"tipImg",src:XR,alt:""}),m("div",{class:"title"},"乐谱")],-1)),TI={class:"headright"},VI={class:"content"},yI={class:"tabTools"},LI={class:"tabCon"},bI=["onClick"],II={class:"query"},YI=Qo(()=>m("img",{class:"img",src:iI,alt:""},null,-1)),WI={class:"musicListCon"},UI={class:"queryFrom"},QI={class:"queryFromList"},FI=Qo(()=>m("div",{class:"tit"},"教程:",-1)),ZI={class:"queryFromCon"},AI=["onClick"],KI={class:"queryFromList"},_I=Qo(()=>m("div",{class:"tit"},"场景:",-1)),HI={class:"queryFromCon"},CI=["onClick"],GI={class:"queryFromList"},EI=Qo(()=>m("div",{class:"tit"},"乐器:",-1)),wI={class:"queryFromCon"},kI=["onClick"],JI=Qo(()=>m("img",{src:rI,alt:""},null,-1)),xI={class:"musicListConBox"},$I={key:0,class:"musicListBox"},DI={class:"musicLeft"},BI={class:"iconCon"},zI=["src"],jI={key:0,class:"jxImg",src:uI,alt:""},qI={class:"musicInfo"},eY={class:"info"},tY={key:0,class:"hotInfo"},nY=Qo(()=>m("img",{src:cI,alt:""},null,-1)),oY={key:1,class:"play"},lY={key:2,class:"sing"},sY={class:"musicUserName"},aY={class:"musicRight"},iY=["onClick","src"],rY=["onClick"],uY={class:"pagination"},cY=j({__name:"cloudCoachList",emits:["update","close"],setup(e,{emit:t}){const n=t;function o(b){n("update",b),n("close")}const l=[{label:"相关资源",value:5},{label:"共享资源",value:2},{label:"我的资源",value:3},{label:"我的收藏",value:4}],s=[{text:"全部",value:""},{text:"演唱",value:"SING"},{text:"演奏",value:"PLAY"},{text:"演唱+演奏",value:"PLAY,SING"}],a=A([]),i=A([]),u=fo({page:1,rows:21,total:0,sourceType:5,name:"",bookVersionId:"",audioPlayTypes:"",subject:{id:"",name:""}}),r=A([]),c=A(!0),d=nN.directive;R();function R(){Promise.all([wl(kp),wl(Jp)]).then(b=>{const[Y,F]=b;Y.code===200&&(i.value=Y.data.map(C=>C.instruments.length>1?Object.assign(C,{isExpand:A(!1)}):C),p()),F.code===200&&(a.value=[{id:"",name:"全部"},...F.data.map(C=>({id:C.id,name:C.name}))]),M()})}function p(){if(i.value.length>0){const b=i.value.reduce((C,K)=>(C.push(...K.instruments),C),[]),Y=ta.instrumentId,F=Y?b.find(C=>C.id===Y):b[0];F&&(u.subject.id=F.id,u.subject.name=F.name)}}function f(){u.page=1,u.rows=21,u.total=0,u.sourceType=5,u.name="",u.bookVersionId="",u.audioPlayTypes="",u.subject={id:"",name:""},p()}function h(b){f(),u.sourceType=b,M()}function P(b){u.bookVersionId=b,M()}function O(b){u.audioPlayTypes=b,M()}function L(b){u.subject.id=b.id,u.subject.name=b.name,M()}function S(b){return b.instruments.some(Y=>Y.id===u.subject.id)}function X(b){u.page=b,y()}function M(){u.page=1,u.rows=21,y()}function y(){c.value=!0;let{sourceType:b,subject:Y,audioPlayTypes:F,name:C,page:K,rows:H,bookVersionId:Q}=u,G=Y.id;const $=F?F.split(","):[];let se;b===5&&($[0]==="SING"&&(G=""),se={name:C,type:"MUSIC",sourceType:b,musicalInstrumentId:G,enableFlag:!0,page:K,rows:H,audioPlayTypes:$,lessonCoursewareKnowledgeId:ta.lessonCoursewareKnowledgeId}),b===2&&($[0]==="SING"&&(G=""),se={name:C,type:"MUSIC",sourceType:b,musicalInstrumentId:G,enableFlag:!0,page:K,rows:H,audioPlayTypes:$,lessonCoursewareKnowledgeId:ta.lessonCoursewareKnowledgeId,bookVersionId:Q}),b===3&&(se={name:C,type:"MUSIC",sourceType:b,musicalInstrumentId:G,enableFlag:!0,page:K,rows:H}),b===4&&($[0]==="SING"&&(G=""),se={name:C,type:"MUSIC",sourceType:b,musicalInstrumentId:G,enableFlag:!0,page:K,rows:H,audioPlayTypes:$}),wl(xp,se).then(Re=>{Re.code===200&&(r.value=Re.data.rows.map(ae=>(ae.name=V(ae.name,u.name),ae)),u.total=Re.data.total),c.value=!1})}function W(b){wl($p,{favoriteFlag:b.favoriteFlag?0:1,materialId:b.id,type:"MUSIC"}).then(Y=>{Y.code===200&&(b.favoriteFlag=!b.favoriteFlag)})}function T(b){return b>=1e4?(b/1e4).toFixed(1).replace(/\.0$/,"")+"万":b.toString()}const V=(b,Y)=>{if(!b)return"";if(!Y)return b;const F=new RegExp(`(${u.name})`,"gi");return b.replace(F,'<span class="highlighted">$1</span>')};return(b,Y)=>(g(),I("div",PI,[m("div",NI,[XI,m("div",TI,[m("img",{onClick:Y[0]||(Y[0]=F=>n("close")),class:"closeBtn",src:aI,alt:""})])]),m("div",VI,[m("div",yI,[m("div",LI,[(g(),I(ie,null,me(l,F=>m("div",{class:E(["tab",{active:F.value===u.sourceType}]),onClick:C=>h(F.value),key:F.value},Me(F.label),11,bI)),64))]),m("div",II,[N(el,{placeholder:"请输入搜索关键词",value:u.name,"onUpdate:value":Y[1]||(Y[1]=F=>u.name=F)},{prefix:U(()=>[YI]),suffix:U(()=>[m("div",{class:"queryBtn",onClick:M},"搜索")]),_:1},8,["value"])])]),m("div",WI,[m("div",UI,[de(m("div",QI,[FI,m("div",ZI,[(g(!0),I(ie,null,me(a.value,F=>(g(),I("div",{key:F.id,onClick:C=>P(F.id),class:E(["queryTip",u.bookVersionId===F.id&&"active"])},Me(F.name),11,AI))),128))])],512),[[yt,u.sourceType===2]]),de(m("div",KI,[_I,m("div",HI,[(g(),I(ie,null,me(s,F=>m("div",{key:F.value,onClick:C=>O(F.value),class:E(["queryTip",u.audioPlayTypes===F.value&&"active"])},Me(F.text),11,CI)),64))])],512),[[yt,u.sourceType!==3]]),de(m("div",GI,[EI,m("div",wI,[(g(!0),I(ie,null,me(i.value,F=>(g(),I(ie,null,[F.instruments.length===1?(g(),I("div",{class:E(["queryTip",u.subject.id===F.instruments[0].id&&"active"]),onClick:C=>L(F.instruments[0]),key:F.id},Me(F.instruments[0].name),11,kI)):(g(),k(Ke,{value:F.isExpand,"onUpdate:value":C=>F.isExpand=C,trigger:"mouseenter",offset:-4,key:F.id+"_"},{content:U(()=>[(g(!0),I(ie,null,me(F.instruments,C=>(g(),k(bt,{onClick:()=>{F.isExpand=!1,L(C)},key:C.id,active:C.id===u.subject.id},{default:U(()=>[ge(Me(C.name),1)]),_:2},1032,["onClick","active"]))),128))]),default:U(()=>[m("div",{class:E(["queryTip",{hoverActive:S(F)}])},[m("div",null,Me(S(F)?u.subject.name:F.name),1),JI],2)]),_:2},1032,["value","onUpdate:value"]))],64))),256))])],512),[[yt,u.audioPlayTypes!=="SING"]])]),de((g(),I("div",xI,[m("div",{class:E(["musicList",{empty:!r.value.length&&!c.value}])},[r.value.length&&!c.value?(g(),I("div",$I,[(g(!0),I(ie,null,me(r.value,F=>{var C,K;return g(),I("div",{class:"musicCon",key:F.id},[m("div",DI,[m("div",BI,[m("img",{class:"icon",src:F.titleImg,alt:""},null,8,zI),F.sourceFrom==="PLATFORM"?(g(),I("img",jI)):z("",!0)]),m("div",qI,[N(v(Eu),{class:"musicTit",title:F.name||""},null,8,["title"]),m("div",eY,[F.usedNum?(g(),I("div",tY,[nY,m("div",null,Me(T(F.usedNum)),1)])):z("",!0),(C=F.audioPlayTypes)!=null&&C.includes("SING")?(g(),I("div",oY,"演唱")):z("",!0),(K=F.audioPlayTypes)!=null&&K.includes("PLAY")?(g(),I("div",lY,"演奏")):z("",!0),m("div",sY,[N(v(Eu),{title:F.composer||""},null,8,["title"])])])])]),m("div",aY,[m("img",{class:"sc",onClick:H=>W(F),src:F.favoriteFlag?v(SI):v(OI),alt:""},null,8,iY),m("div",{class:"addBtn",onClick:H=>o(F.id)},"添加",8,rY)])])}),128))])):z("",!0),!r.value.length&&!c.value?(g(),k(v(mI),{key:1})):z("",!0)],2),de(m("div",uY,[N(v(cP),{layout:"prev, pager, next","default-page-size":21,onCurrentChange:X,total:u.total},null,8,["total"])],512),[[yt,r.value.length]])])),[[v(d),c.value]])])])]))}}),dY=fe(cY,[["__scopeId","data-v-278572e8"]]),lt=e=>(Je("data-v-9e071312"),e=e(),xe(),e),RY={class:"canvas-tool"},fY={class:"left-handler"},pY=lt(()=>m("img",{src:gL,alt:""},null,-1)),hY=lt(()=>m("div",null,"撤销",-1)),vY=[pY,hY],mY=lt(()=>m("img",{src:SL,alt:""},null,-1)),MY=lt(()=>m("div",null,"恢复",-1)),gY=[mY,MY],SY=lt(()=>m("div",{class:"line"},null,-1)),OY=lt(()=>m("img",{src:OL,alt:""},null,-1)),PY=lt(()=>m("div",null,"批注",-1)),NY=[OY,PY],XY=lt(()=>m("img",{src:PL,alt:""},null,-1)),TY=lt(()=>m("div",null,"选择",-1)),VY=[XY,TY],yY=lt(()=>m("img",{src:NL,alt:""},null,-1)),LY=lt(()=>m("div",null,"查找",-1)),bY=[yY,LY],IY=lt(()=>m("div",{class:"line"},null,-1)),YY=lt(()=>m("div",{class:"arrow-btn"},[m("div",null,"播放")],-1)),WY={class:"add-element-handler"},UY=lt(()=>m("div",{class:"handler-item"},[m("img",{class:"itemImg",src:XL,alt:""}),m("div",{class:"tit"},"图片")],-1)),QY=lt(()=>m("div",{class:"handler-item"},[m("img",{class:"itemImg",src:TL,alt:""}),m("div",{class:"tit"},"音视频")],-1)),FY=lt(()=>m("img",{class:"itemImg",src:XR,alt:""},null,-1)),ZY=lt(()=>m("div",{class:"tit"},"乐谱",-1)),AY=[FY,ZY],KY=lt(()=>m("img",{class:"itemImg",src:VL,alt:""},null,-1)),_Y=lt(()=>m("div",{class:"charTit tit"},[m("div",null,"文字"),m("img",{src:TR,alt:""})],-1)),HY=lt(()=>m("img",{class:"itemImg",src:yL,alt:""},null,-1)),CY=lt(()=>m("div",{class:"charTit tit"},[m("div",null,"形状"),m("img",{src:TR,alt:""})],-1)),GY=lt(()=>m("img",{class:"itemImg",src:LL,alt:""},null,-1)),EY=lt(()=>m("div",{class:"tit"},"线条",-1)),wY=lt(()=>m("img",{class:"itemImg",src:bL,alt:""},null,-1)),kY=lt(()=>m("div",{class:"menuItem"},[m("img",{src:IL,alt:""}),m("div",{class:"tit"},"图表")],-1)),JY=lt(()=>m("div",{class:"menuItem"},[m("img",{src:YL,alt:""}),m("div",{class:"tit"},"表格")],-1)),xY=lt(()=>m("div",{class:"menuItem"},[m("img",{src:WL,alt:""}),m("div",{class:"tit"},"公式")],-1)),$Y=lt(()=>m("div",{class:"tit"},"更多工具",-1)),DY={class:"right-handler"},BY=j({__name:"index",setup(e){const t=bl(),n=Xe(),{creatingElement:o,creatingCustomShape:l,showSelectPanel:s,showSearchPanel:a,showNotesPanel:i}=oe(n),{canUndo:u,canRedo:r}=oe(ei()),{redo:c,undo:d}=He(),{scaleCanvas:R,setCanvasScalePercentage:p,resetCanvas:f,canvasScalePercentage:h}=Xi(),P=[200,150,125,100,75,50],O=A(!1),{enterScreening:L,enterScreeningFromStart:S}=bs(),X=D=>{p(D),O.value=!1},{createImageElement:M,createChartElement:y,createTableElement:W,createLatexElement:T,createVideoElement:V,createAudioElement:b,createCloudCoachElement:Y}=il(),F=D=>{const Z=D[0];Z&&Wo(Z).then(J=>M(J))},C=A(!1),K=A(!1),H=A(!1),Q=A(!1),G=A(!1),$=A(!1),se=A(!1),Re=A(!1),ae=A(!1);function Pe(D){const Z=/\.(mp3|wav|m4a)$/i.test(D.file.name)?"audio":"video";Dp(D.file.name,D.file,`${t.id}/`).then(J=>{Z==="audio"?b(J):V(J)}).catch(()=>{ql({showClose:!0,message:"上传失败!",type:"error"})})}function x(D){Y(D),Re.value=!1}const B=(D=!1)=>{n.setCreatingElement({type:"text",vertical:D})},Ie=D=>{n.setCreatingElement({type:"shape",data:D}),C.value=!1},ce=()=>{n.setCreatingCustomShapeState(!0),C.value=!1},q=D=>{n.setCreatingElement({type:"line",data:D}),K.value=!1},ne=()=>{n.setSelectPanelState(!s.value)},Se=()=>{n.setSearchPanelState(!a.value)},w=()=>{n.setNotesPanelState(!i.value)};return(D,Z)=>{var Ne,he,Le;const J=te("IconTextRotationNone"),re=te("IconTextRotationDown"),ue=te("IconMinus"),Te=te("IconPlus"),Ae=te("IconFullScreen"),Qe=ze("tooltip");return g(),I("div",RY,[m("div",fY,[de((g(),I("div",{class:E(["leftHandler-item",{disable:!v(u)}]),onClick:Z[0]||(Z[0]=ve=>v(d)())},vY,2)),[[Qe,"撤销(Ctrl + Z)"]]),de((g(),I("div",{class:E(["leftHandler-item",{disable:!v(r)}]),onClick:Z[1]||(Z[1]=ve=>v(c)())},gY,2)),[[Qe,"恢复(Ctrl + Y)"]]),SY,de((g(),I("div",{class:E(["leftHandler-item",{active:v(i)}]),onClick:Z[2]||(Z[2]=ve=>w())},NY,2)),[[Qe,"批注"]]),de((g(),I("div",{class:E(["leftHandler-item",{active:v(s)}]),onClick:Z[3]||(Z[3]=ve=>ne())},VY,2)),[[Qe,"选择"]]),de((g(),I("div",{class:E(["leftHandler-item",{active:v(a)}]),onClick:Z[4]||(Z[4]=ve=>Se())},bY,2)),[[Qe,"查找/替换(Ctrl + F)"]]),IY,N(Ke,{trigger:"click",center:""},{content:U(()=>[N(bt,{onClick:Z[5]||(Z[5]=ve=>v(S)())},{default:U(()=>[ge("从头开始")]),_:1}),N(bt,{onClick:Z[6]||(Z[6]=ve=>v(L)())},{default:U(()=>[ge("从当前页开始")]),_:1})]),default:U(()=>[YY]),_:1})]),m("div",WY,[N(Ul,{onChange:Z[7]||(Z[7]=ve=>F(ve))},{default:U(()=>[UY]),_:1}),N(v(zP),{action:"","show-file-list":!1,accept:".mp4,.avi,.flv,.mp3,.wav,.m4a","http-request":ve=>{Pe(ve)}},{default:U(()=>[QY]),_:1},8,["http-request"]),m("div",{class:"handler-item",onClick:Z[8]||(Z[8]=ve=>Re.value=!0)},AY),m("div",{class:E(["handler-item",{active:((Ne=v(o))==null?void 0:Ne.type)==="text"}]),onClick:Z[12]||(Z[12]=ve=>B())},[KY,N(Ke,{trigger:"click",value:$.value,"onUpdate:value":Z[11]||(Z[11]=ve=>$.value=ve),offset:10},{content:U(()=>[N(bt,{center:"",onClick:Z[9]||(Z[9]=()=>{B(),$.value=!1})},{default:U(()=>[N(J),ge(" 横向文本框")]),_:1}),N(bt,{center:"",onClick:Z[10]||(Z[10]=()=>{B(!0),$.value=!1})},{default:U(()=>[N(re),ge(" 竖向文本框")]),_:1})]),default:U(()=>[_Y]),_:1},8,["value"])],2),m("div",{class:E(["handler-item",{active:v(l)||((he=v(o))==null?void 0:he.type)==="shape"}]),onClick:Z[18]||(Z[18]=ve=>C.value=!0)},[N(Ke,{trigger:"click",value:C.value,"onUpdate:value":Z[14]||(Z[14]=ve=>C.value=ve),offset:10},{content:U(()=>[N(EL,{onSelect:Z[13]||(Z[13]=ve=>Ie(ve))})]),default:U(()=>[HY]),_:1},8,["value"]),N(Ke,{trigger:"click",value:se.value,"onUpdate:value":Z[16]||(Z[16]=ve=>se.value=ve),offset:10,onClick:Z[17]||(Z[17]=Fe(()=>{},["stop"]))},{content:U(()=>[N(bt,{center:"",onClick:Z[15]||(Z[15]=()=>{ce(),se.value=!1})},{default:U(()=>[ge("自由绘制")]),_:1})]),default:U(()=>[CY]),_:1},8,["value"])],2),m("div",{class:E(["handler-item",{active:((Le=v(o))==null?void 0:Le.type)==="line"}]),onClick:Z[22]||(Z[22]=ve=>K.value=!0)},[GY,N(Ke,{trigger:"click",value:K.value,"onUpdate:value":Z[20]||(Z[20]=ve=>K.value=ve),offset:10,onClick:Z[21]||(Z[21]=Fe(()=>{},["stop"]))},{content:U(()=>[N(jL,{onSelect:Z[19]||(Z[19]=ve=>q(ve))})]),default:U(()=>[EY]),_:1},8,["value"])],2),m("div",{class:"handler-item",onClick:Z[33]||(Z[33]=ve=>ae.value=!0)},[wY,N(Ke,{trigger:"click",value:ae.value,"onUpdate:value":Z[28]||(Z[28]=ve=>ae.value=ve),offset:10,onClick:Z[29]||(Z[29]=Fe(()=>{},["stop"]))},{content:U(()=>[N(bt,{onClick:Z[25]||(Z[25]=ve=>H.value=!0)},{default:U(()=>[N(Ke,{trigger:"click",value:H.value,"onUpdate:value":Z[24]||(Z[24]=ve=>H.value=ve),placement:"right",offsetOne:50,offset:36},{content:U(()=>[N(ob,{onSelect:Z[23]||(Z[23]=ve=>{v(y)(ve),H.value=!1})})]),default:U(()=>[kY]),_:1},8,["value"])]),_:1}),N(bt,{onClick:Z[26]||(Z[26]=ve=>Q.value=!0)},{default:U(()=>[JY]),_:1}),N(bt,{onClick:Z[27]||(Z[27]=()=>{ae.value=!1,G.value=!0})},{default:U(()=>[xY]),_:1})]),default:U(()=>[$Y]),_:1},8,["value"]),N(Ke,{trigger:"click",value:Q.value,"onUpdate:value":Z[32]||(Z[32]=ve=>Q.value=ve),placement:"right",offsetOne:200,offset:70},{content:U(()=>[N(Tb,{onClose:Z[30]||(Z[30]=ve=>Q.value=!1),onInsert:Z[31]||(Z[31]=({row:ve,col:_e})=>{v(W)(ve,_e),Q.value=!1})})]),_:1},8,["value"])])]),m("div",DY,[de(N(ue,{class:"rightHandler-item",onClick:Z[34]||(Z[34]=ve=>v(R)("-"))},null,512),[[Qe,"画布缩小(Ctrl + -)"]]),N(Ke,{trigger:"click",value:O.value,"onUpdate:value":Z[36]||(Z[36]=ve=>O.value=ve)},{content:U(()=>[(g(),I(ie,null,me(P,ve=>N(bt,{center:"",key:ve,onClick:_e=>X(ve)},{default:U(()=>[ge(Me(ve)+"%",1)]),_:2},1032,["onClick"])),64)),N(bt,{center:"",onClick:Z[35]||(Z[35]=ve=>v(f)())},{default:U(()=>[ge("适应屏幕")]),_:1})]),default:U(()=>[m("div",{class:E(["text",{canvasScaleVisible:O.value}])},Me(v(h)),3)]),_:1},8,["value"]),de(N(Te,{class:"rightHandler-item",onClick:Z[37]||(Z[37]=ve=>v(R)("+"))},null,512),[[Qe,"画布放大(Ctrl + =)"]]),de(N(Ae,{class:"rightHandler-item resetCanvas",onClick:Z[38]||(Z[38]=ve=>v(f)())},null,512),[[Qe,"适应屏幕(Ctrl + 0)"]])]),N(tl,{visible:G.value,"onUpdate:visible":Z[41]||(Z[41]=ve=>G.value=ve),width:880},{default:U(()=>[N(YR,{onClose:Z[39]||(Z[39]=ve=>G.value=!1),onUpdate:Z[40]||(Z[40]=ve=>{v(T)(ve),G.value=!1})})]),_:1},8,["visible"]),N(tl,{contentStyle:{width:"70%",minWidth:"1200px",height:"86%",boxShadow:"0px 2px 10px 0px rgba(0,0,0,0.08)",borderRadius:"16px",border:"1px solid #DEDEDE",padding:"0"},visible:Re.value,"onUpdate:visible":Z[43]||(Z[43]=ve=>Re.value=ve)},{default:U(()=>[N(v(dY),{onUpdate:x,onClose:Z[42]||(Z[42]=()=>{Re.value=!1})})]),_:1},8,["visible"])])}}}),zY=fe(BY,[["__scopeId","data-v-9e071312"]]),jY="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAD1BMVEUAAAAUFRUTFRceHh4TFBVWgLSjAAAABHRSTlMAs5IRXUzuuQAAACNJREFUKM9jGPLASBAOlOGCKi5w4IRTEFM7YTDq+GHieCoDAOOaGE+bFYNzAAAAAElFTkSuQmCC",qY="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAgVBMVEUAAADn5+fm5ubn5+fo6Oju7u7m5ubn5+fn5+fn5+fn5+fm5ubm5ubo6Ojn5+fn5+fm5ubp6enm5ubu7u7n5+fn5+f///8ZjP/n5+f6+vru7u739/fy8vJarf88nv/4+Pjx8fHb7f+/3/+dz//v9/+Ox/98vv8qlf+s1v+j0f9Cof+Tra/LAAAAFnRSTlMA6/l/YQ7u39XSy8Sljo1zUzszHhWx3xK16QAAAadJREFUWMOUk9t2gjAQRSeJci8gYjwJqLT2+v8/2Cxb1xJMGNjv2TlzJqEQba2KLBZSijgrVN3SKpoyxYS0bGgh2yqBw/adMdphTNdbOJJqu+S4igAMRk8wA4BIsYqNAOxFe7lYQGxojn0OWKODGAvkewqyE0CnZ+kAsQvGl7CaxUIGxngBer2AHnghD4dRfGaMg/d+oxdiPBk24/O8YTPpX47z81PI3Wj/Ytof36R4fA85rF6JRT4qQK/moYat8BXA1yDuP0v5B+CHUP8BIs8Gv0+nH3aX0V+EyhPgenSc37gI1U2Q4Pn/n483Tq9zggsScjS+FRzvfL7PLqJxghJDUOD4uoYFA0onSGHCgvkqDFKiFtBhAVMF0FINGxZwVVjUpNCHBVwVPRQV6MICrooOBWUwYQFXhUFGMSMY8fEkiElABwW8AYLkKsF5KpC/pdeBCQAwDALBfdx/QCcQhFug0DbRfz6Ar8CPyN/Ig8SjzMvE66yBwpHGobpiPWesc7FwtWm5cr0rYCjiMGQp5iloKuoybDvuu3C48rh0ufa5eLr6unyz/heBeRkuuDIOdwAAAABJRU5ErkJggg==",eW="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAflBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////8ZjP7///9Npv7m8/5stv4djv6+3/6YzP5brf7G4v74+/71+v7r9f6RyP41mv4qlP4mkv7H4/7s9f72pq2TAAAAF3RSTlMA+e3q1A7fy8Sljo2AfnNiYVM7Mx4Vsd3JZ38AAAG1SURBVFjDnJTntoMgEAaxpPe6g6CmavL+L3iPt50kSqLM/29Y2F2Ui91qNhr0wyAI+4PRbLVTndhMYl6IJ5u26d48Bk7pxehrYW1x1eaSnoB43msTn4ZwzrSVJ6zOzhBOPyqWEdxyKw3Y/AbR8m18O4SDFif6AMOtO7+OSIy8xSREa1d+EZCW8oEyJVg058eQSQsyGDfl9xyNtMIc2Tedf9fSEn2v17DgqKU1+sji5f0DjHTAEKyf+h+RSScyosd5GJJKR1KGD/NLUkpHyoTl//5EGOmMIfrbrCkH8eDA9LeAEGcH8yTJnb0k/Clh/qaABBJxcWOuKmJycQEgLnLiKr/hbP0E9kz1T07IxE8gGZPvG2hfga7usONkfQX2xE6tSMVXICkrNePiL7gwUyOMv8AwUgO0v0AzUH2u/oIrfRVS1OYfB7W9KAhVgK3Pv9Pw2keCr9Lr2AYAGISBIBNQU1Ky/4T0SFS3QKQkYP/zAXwFfkT+Rh4kHmVeJl5nDRSPNA9Vj/XIGigWrDYtV653BQxFHIcsxzwHTUddh23HfRcOVx6Xrqt9/WlfX+1z8XT1dflm/V/eaCV4pluuvAAAAABJRU5ErkJggg==",tW=()=>{const e=Ue(),{slides:t}=oe(e),{addHistorySnapshot:n}=He(),{deleteSlide:o}=Wl();return{createSection:()=>{e.updateSlide({sectionTag:{id:st(6)}}),n()},removeSection:r=>{if(!r)return;const c=t.value.find(d=>{var R;return((R=d.sectionTag)==null?void 0:R.id)===r});e.removeSlideProps({id:c.id,propName:"sectionTag"}),n()},removeAllSection:()=>{const r=t.value.map(c=>(c.sectionTag&&delete c.sectionTag,c));e.setSlides(r),n()},removeSectionSlides:r=>{let c=0;r&&(c=t.value.findIndex(R=>{var p;return((p=R.sectionTag)==null?void 0:p.id)===r}));const d=[];for(let R=c;R<t.value.length;R++){const p=t.value[R];if(R!==c&&p.sectionTag)break;d.push(p.id)}o(d)},updateSectionTitle:(r,c)=>{if(c){if(r==="default")e.updateSlide({sectionTag:{id:st(6),title:c}},t.value[0].id);else{const d=t.value.find(R=>{var p;return((p=R.sectionTag)==null?void 0:p.id)===r});if(!d)return;e.updateSlide({sectionTag:{...d.sectionTag,title:c}},d.id)}n()}}}},nW=e=>(Je("data-v-078545d1"),e=e(),xe(),e),oW={class:"layout-pool"},lW=nW(()=>m("div",{class:"header"},"页面模板",-1)),sW={class:"list"},aW={class:"btns"},iW=j({__name:"LayoutPool",emits:["select"],setup(e,{emit:t}){const n=t,o=Ue(),{layouts:l}=oe(o),s=a=>{n("select",a)};return(a,i)=>(g(),I("div",oW,[lW,m("div",sW,[(g(!0),I(ie,null,me(v(l),u=>(g(),I("div",{class:"layout-item",key:u.id},[N(ni,{class:"thumbnail",slide:u,size:180},null,8,["slide"]),m("div",aW,[N(Ve,{class:"btn",type:"primary",size:"small",onClick:r=>s(u)},{default:U(()=>[ge("插入模板")]),_:2},1032,["onClick"])])]))),128))])]))}}),rW=fe(iW,[["__scopeId","data-v-078545d1"]]),uW=e=>(Je("data-v-95d25d44"),e=e(),xe(),e),cW={class:"add-slide"},dW=uW(()=>m("div",{class:"select-btn"},[m("img",{src:jY,alt:""})],-1)),RW={class:"thumbnail-container"},fW=["data-section-id"],pW=["id","value"],hW={key:1,class:"text"},vW={class:"text-content"},mW=["onMousedown"],MW={class:"thumbnail"},gW={key:0,class:"tools"},SW={class:"page-number"},OW=j({__name:"index",setup(e){const t=Xe(),n=Ue(),o=Mn(),{selectedSlidesIndex:l,thumbnailsFocus:s}=oe(t),{slides:a,slideIndex:i,currentSlide:u}=oe(n),{ctrlKeyState:r,shiftKeyState:c}=oe(o),{slidesLoadLimit:d}=Bp(),R=_(()=>[...l.value,i.value]),p=A(!1),f=_(()=>a.value.some(q=>q.sectionTag)),{copySlide:h,pasteSlide:P,createSlide:O,createSlideByTemplate:L,copyAndPasteSlide:S,deleteSlide:X,cutSlide:M,selectAllSlide:y,sortSlides:W}=Wl(),{createSection:T,removeSection:V,removeAllSection:b,removeSectionSlides:Y,updateSectionTitle:F}=tW(),C=A();Oe(()=>i.value,()=>{R.value.length&&t.updateSelectedSlidesIndex([]),we(()=>{var ne,Se;const q=(Se=(ne=C.value)==null?void 0:ne.$el)==null?void 0:Se.querySelector(".thumbnail-item.active");C.value&&q&&!jp(q,C.value.$el)&&setTimeout(()=>{q.scrollIntoView({behavior:"smooth"})},100)})});const K=q=>{t.setActiveElementIdList([]),i.value!==q&&n.updateSlideIndex(q)},H=(q,ne)=>{if(se.value)return;const Se=R.value.length>1;if(!(Se&&R.value.includes(ne)&&q.button!==0))if(r.value)if(i.value===ne){if(!Se)return;const w=R.value.filter(D=>D!==ne);t.updateSelectedSlidesIndex(w),K(R.value[0])}else if(R.value.includes(ne)){const w=R.value.filter(D=>D!==ne);t.updateSelectedSlidesIndex(w)}else{const w=[...R.value,ne];t.updateSelectedSlidesIndex(w)}else if(c.value){if(i.value===ne&&!Se)return;let w=Math.min(...R.value),D=ne;ne<w&&(D=Math.max(...R.value),w=ne);const Z=[];for(let J=w;J<=D;J++)Z.push(J);t.updateSelectedSlidesIndex(Z)}else t.updateSelectedSlidesIndex([]),K(ne)},Q=q=>{s.value!==q&&(t.setThumbnailsFocus(q),q||t.updateSelectedSlidesIndex([]))},G=q=>{const{newIndex:ne,oldIndex:Se}=q;ne===void 0||Se===void 0||ne===Se||W(ne,Se)},$=()=>{t.setNotesPanelState(!0)},se=A(""),Re=q=>{t.setDisableHotkeysState(!0),se.value=q||"default",we(()=>{document.querySelector(`#section-title-input-${q||"default"}`).focus()})},ae=q=>{const ne=q.target.value;F(se.value,ne),se.value="",t.setDisableHotkeysState(!1)},Pe=q=>{const ne=q.dataset.sectionId;return[{text:"删除节",handler:()=>V(ne)},{text:"删除节和幻灯片",handler:()=>{t.setActiveElementIdList([]),Y(ne)}},{text:"删除所有节",handler:b},{text:"重命名节",handler:()=>Re(ne)}]},{enterScreening:x,enterScreeningFromStart:B}=bs(),Ie=()=>[{text:"粘贴",subText:"Ctrl + V",handler:P},{text:"全选",subText:"Ctrl + A",handler:y},{text:"新建页面",subText:"Enter",handler:O},{text:"幻灯片放映",subText:"F5",handler:B}],ce=()=>[{text:"剪切",subText:"Ctrl + X",handler:M},{text:"复制",subText:"Ctrl + C",handler:h},{text:"粘贴",subText:"Ctrl + V",handler:P},{text:"全选",subText:"Ctrl + A",handler:y},{divider:!0},{text:"新建页面",subText:"Enter",handler:O},{text:"复制页面",subText:"Ctrl + D",handler:S},{text:"删除页面",subText:"Delete",handler:()=>X()},{text:"增加节",handler:T,disable:!!u.value.sectionTag},{divider:!0},{text:"从当前放映",subText:"Shift + F5",handler:x}];return(q,ne)=>{const Se=te("IconPlus"),w=ze("contextmenu"),D=ze("tooltip"),Z=ze("click-outside");return de((g(),I("div",{class:"thumbnails",onMousedown:ne[9]||(ne[9]=()=>Q(!0))},[m("div",cW,[m("div",{class:"btn",onClick:ne[0]||(ne[0]=J=>v(O)())},[N(Se,{class:"icon"}),ge("添加幻灯片")]),N(Ke,{trigger:"click",placement:"bottom-start",value:p.value,"onUpdate:value":ne[2]||(ne[2]=J=>p.value=J),center:""},{content:U(()=>[N(rW,{onSelect:ne[1]||(ne[1]=J=>{v(L)(J),p.value=!1})})]),default:U(()=>[dW]),_:1},8,["value"])]),N(v(Oc),{class:"thumbnail-list",ref_key:"thumbnailsRef",ref:C,modelValue:v(a),animation:200,scroll:!0,scrollSensitivity:50,disabled:se.value,onEnd:G,itemKey:"id"},{item:U(({element:J,index:re})=>{var ue,Te,Ae,Qe,Ne;return[m("div",RW,[J.sectionTag||f.value&&re===0?de((g(),I("div",{key:0,class:"section-title","data-section-id":((ue=J==null?void 0:J.sectionTag)==null?void 0:ue.id)||""},[se.value===((Te=J==null?void 0:J.sectionTag)==null?void 0:Te.id)||re===0&&se.value==="default"?(g(),I("input",{key:0,id:`section-title-input-${((Ae=J==null?void 0:J.sectionTag)==null?void 0:Ae.id)||"default"}`,type:"text",value:((Qe=J==null?void 0:J.sectionTag)==null?void 0:Qe.title)||"",placeholder:"输入节名称",onBlur:ne[3]||(ne[3]=he=>ae(he)),onKeydown:ne[4]||(ne[4]=Yt(Fe(he=>ae(he),["stop"]),["enter"]))},null,40,pW)):(g(),I("span",hW,[m("div",vW,Me(J!=null&&J.sectionTag?((Ne=J==null?void 0:J.sectionTag)==null?void 0:Ne.title)||"无标题节":"默认节"),1)]))],8,fW)),[[w,Pe]]):z("",!0),de((g(),I("div",{class:E(["thumbnail-item",{active:v(i)===re,selected:R.value.includes(re)}]),onMousedown:he=>H(he,re),onDblclick:ne[8]||(ne[8]=he=>v(x)())},[m("div",{class:E(["label",{"offset-left":re>=99}])},Me(v(zp)(re+1,2)),3),m("div",MW,[N(ni,{id:`thumbnailSlide_${re}`,slide:J,size:180,visible:re<v(d)},null,8,["id","slide","visible"]),v(i)===re?(g(),I("div",gW,[de(m("img",{src:qY,onClick:ne[5]||(ne[5]=(...he)=>v(x)&&v(x)(...he)),alt:""},null,512),[[D,"预览"]]),de(m("img",{src:eW,onClick:ne[6]||(ne[6]=(...he)=>v(O)&&v(O)(...he)),alt:""},null,512),[[D,"添加幻灯片"]])])):z("",!0)]),J.notes&&J.notes.length?(g(),I("div",{key:0,class:"note-flag",onClick:ne[7]||(ne[7]=he=>$())},Me(J.notes.length),1)):z("",!0)],42,mW)),[[w,ce]])])]}),_:1},8,["modelValue","disabled"]),m("div",SW,"幻灯片 "+Me(v(i)+1)+" / "+Me(v(a).length),1)],32)),[[Z,()=>Q(!1)],[w,Ie]])}}}),PW=fe(OW,[["__scopeId","data-v-95d25d44"]]),NW=e=>(Je("data-v-d83f2a68"),e=e(),xe(),e),XW={class:"element-opacity"},TW={class:"row"},VW=NW(()=>m("div",{style:{width:"40%"}},"不透明度:",-1)),yW=j({__name:"ElementOpacity",setup(e){const t=Ue(),{handleElement:n}=oe(Xe()),o=A(1);Oe(n,()=>{n.value&&(o.value="opacity"in n.value&&n.value.opacity!==void 0?n.value.opacity:1)},{deep:!0,immediate:!0});const{addHistorySnapshot:l}=He(),s=a=>{if(!n.value)return;const i={opacity:a};t.updateElement({id:n.value.id,props:i}),l()};return(a,i)=>(g(),I("div",XW,[m("div",TW,[VW,N(Vn,{min:0,max:1,step:.1,value:o.value,"onUpdate:value":i[0]||(i[0]=u=>s(u)),style:{width:"60%"}},null,8,["value"])])]))}}),WR=fe(yW,[["__scopeId","data-v-d83f2a68"]]),LW={class:"color-block"},bW=j({__name:"ColorButton",props:{color:{}},setup(e){return(t,n)=>{const o=te("IconPlatte");return g(),k(Ve,{class:"color-btn"},{default:U(()=>[m("div",LW,[m("div",{class:"content",style:ee({backgroundColor:t.color})},null,4)]),N(o,{class:"color-btn-icon"})]),_:1})}}}),ht=fe(bW,[["__scopeId","data-v-24206558"]]),IW=j({__name:"Checkboard",props:{size:{default:8},white:{default:"#fff"},grey:{default:"#e6e6e6"}},setup(e){const t=e,n={},o=(a,i,u)=>{const r=document.createElement("canvas");r.width=r.height=u*2;const c=r.getContext("2d");return c?(c.fillStyle=a,c.fillRect(0,0,r.width,r.height),c.fillStyle=i,c.fillRect(0,0,u,u),c.translate(u,u),c.fillRect(0,0,u,u),r.toDataURL()):null},l=(a,i,u)=>{const r=a+","+i+","+u;if(n[r])return n[r];const c=o(a,i,u);return n[r]=c,c},s=_(()=>({backgroundImage:`url(${l(t.white,t.grey,t.size)})`}));return(a,i)=>(g(),I("div",{class:"checkerboard",style:ee(s.value)},null,4))}}),Da=fe(IW,[["__scopeId","data-v-444c8909"]]),YW=e=>(Je("data-v-3527e29f"),e=e(),xe(),e),WW={class:"alpha"},UW={class:"alpha-checkboard-wrap"},QW=YW(()=>m("div",{class:"alpha-picker"},null,-1)),FW=[QW],ZW=j({__name:"Alpha",props:{value:{}},emits:["colorChange"],setup(e,{emit:t}){const n=e,o=t,l=_(()=>n.value),s=_(()=>{const c=[l.value.r,l.value.g,l.value.b].join(",");return`linear-gradient(to right, rgba(${c}, 0) 0%, rgba(${c}, 1) 100%)`}),a=A(),i=c=>{if(c.preventDefault(),!a.value)return;const d=a.value.clientWidth,R=a.value.getBoundingClientRect().left+window.pageXOffset,p=c.pageX-R;let f;p<0?f=0:p>d?f=1:f=Math.round(p*100/d)/100,l.value.a!==f&&o("colorChange",{r:l.value.r,g:l.value.g,b:l.value.b,a:f})},u=()=>{window.removeEventListener("mousemove",i),window.removeEventListener("mouseup",u)},r=c=>{i(c),window.addEventListener("mousemove",i),window.addEventListener("mouseup",u)};return mt(u),(c,d)=>(g(),I("div",WW,[m("div",UW,[N(Da)]),m("div",{class:"alpha-gradient",style:ee({background:s.value})},null,4),m("div",{class:"alpha-container",ref_key:"alphaRef",ref:a,onMousedown:d[0]||(d[0]=R=>r(R))},[m("div",{class:"alpha-pointer",style:ee({left:l.value.a*100+"%"})},FW,4)],544)]))}}),AW=fe(ZW,[["__scopeId","data-v-3527e29f"]]),KW=e=>(Je("data-v-2eff9899"),e=e(),xe(),e),_W={class:"hue"},HW=KW(()=>m("div",{class:"hue-picker"},null,-1)),CW=[HW],GW=j({__name:"Hue",props:{value:{},hue:{}},emits:["colorChange"],setup(e,{emit:t}){const n=e,o=t,l=A(0),s=A(""),a=_(()=>{const R=ke(n.value).toHsl();return n.hue!==-1&&(R.h=n.hue),R}),i=_(()=>a.value.h===0&&s.value==="right"?"100%":a.value.h*100/360+"%");Oe(()=>n.value,()=>{const R=ke(n.value).toHsl(),p=R.s===0?n.hue:R.h;p!==0&&p-l.value>0&&(s.value="right"),p!==0&&p-l.value<0&&(s.value="left"),l.value=p});const u=A(),r=R=>{if(R.preventDefault(),!u.value)return;const p=u.value.clientWidth,f=u.value.getBoundingClientRect().left+window.pageXOffset,h=R.pageX-f;let P,O;h<0?P=0:h>p?P=360:(O=h*100/p,P=360*O/100),(n.hue===-1||a.value.h!==P)&&o("colorChange",{h:P,l:a.value.l,s:a.value.s,a:a.value.a})},c=()=>{window.removeEventListener("mousemove",r),window.removeEventListener("mouseup",c)},d=R=>{r(R),window.addEventListener("mousemove",r),window.addEventListener("mouseup",c)};return mt(c),(R,p)=>(g(),I("div",_W,[m("div",{class:"hue-container",ref_key:"hueRef",ref:u,onMousedown:p[0]||(p[0]=f=>d(f))},[m("div",{class:"hue-pointer",style:ee({left:i.value})},CW,4)],544)]))}}),EW=fe(GW,[["__scopeId","data-v-2eff9899"]]),Ki=e=>(Je("data-v-ee7c000f"),e=e(),xe(),e),wW=Ki(()=>m("div",{class:"saturation-white"},null,-1)),kW=Ki(()=>m("div",{class:"saturation-black"},null,-1)),JW=Ki(()=>m("div",{class:"saturation-circle"},null,-1)),xW=[JW],$W=j({__name:"Saturation",props:{value:{},hue:{}},emits:["colorChange"],setup(e,{emit:t}){const n=e,o=t,l=_(()=>{const p=ke(n.value).toHsv();return n.hue!==-1&&(p.h=n.hue),p}),s=_(()=>`hsl(${l.value.h}, 100%, 50%)`),a=_(()=>-(l.value.v*100)+1+100+"%"),i=_(()=>l.value.s*100+"%"),u=vt.throttle(function(p){o("colorChange",p)},20,{leading:!0,trailing:!1}),r=A(),c=p=>{if(p.preventDefault(),!r.value)return;const f=r.value.clientWidth,h=r.value.clientHeight,P=r.value.getBoundingClientRect().left+window.pageXOffset,O=r.value.getBoundingClientRect().top+window.pageYOffset,L=vt.clamp(p.pageX-P,0,f),S=vt.clamp(p.pageY-O,0,h),X=L/f,M=vt.clamp(-(S/h)+1,0,1);u({h:l.value.h,s:X,v:M,a:l.value.a})},d=()=>{window.removeEventListener("mousemove",c),window.removeEventListener("mouseup",d)},R=p=>{c(p),window.addEventListener("mousemove",c),window.addEventListener("mouseup",d)};return mt(d),(p,f)=>(g(),I("div",{class:"saturation",ref_key:"saturationRef",ref:r,style:ee({background:s.value}),onMousedown:f[0]||(f[0]=h=>R(h))},[wW,kW,m("div",{class:"saturation-pointer",style:ee({top:a.value,left:i.value})},xW,4)],36))}}),DW=fe($W,[["__scopeId","data-v-ee7c000f"]]),BW={class:"editable-input"},zW=["value"],jW=j({__name:"EditableInput",props:{value:{}},emits:["colorChange"],setup(e,{emit:t}){const n=e,o=t,l=_(()=>{let a="";return n.value.a<1?a=ke(n.value).toHex8String().toUpperCase():a=ke(n.value).toHexString().toUpperCase(),a.replace("#","")}),s=a=>{const i=a.target.value;if(i.length>=6){const u=ke(i);u.isValid()&&o("colorChange",u.toRgb())}};return(a,i)=>(g(),I("div",BW,[m("input",{class:"input-content",value:l.value,onInput:i[0]||(i[0]=u=>s(u))},null,40,zW)]))}}),qW=fe(jW,[["__scopeId","data-v-9a17323d"]]),eU={class:"color-picker"},tU={class:"picker-saturation-wrap"},nU={class:"picker-controls"},oU={class:"picker-color-wrap"},lU={class:"picker-sliders"},sU={class:"picker-hue-wrap"},aU={class:"picker-alpha-wrap"},iU={class:"picker-field"},rU={class:"picker-presets"},uU=["onClick"],cU={class:"picker-gradient-presets"},dU=["onClick"],RU={class:"picker-presets"},fU=["onClick"],pU={key:0,class:"recent-colors-title"},hU={class:"picker-presets"},vU=["onClick"],wu="RECENT_COLORS",mU=j({__name:"index",props:{modelValue:{default:"#e86b99"}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t,l=[["#7f7f7f","#f2f2f2"],["#0d0d0d","#808080"],["#1c1a10","#ddd8c3"],["#0e243d","#c6d9f0"],["#233f5e","#dae5f0"],["#632623","#f2dbdb"],["#4d602c","#eaf1de"],["#3f3150","#e6e0ec"],["#1e5867","#d9eef3"],["#99490f","#fee9da"]],s=(X,M,y)=>{const W=ke(X).toRgb(),T=ke(M).toRgb(),V=(T.r-W.r)/y,b=(T.g-W.g)/y,Y=(T.b-W.b)/y,F=[];for(let C=0;C<y;C++){const K=ke({r:W.r+V*C,g:W.g+b*C,b:W.b+Y*C}).toRgbString();F.push(K)}return F},a=()=>{const X=[];for(const M of l)X.push(s(M[1],M[0],5));return X},i=["#000000","#ffffff","#eeece1","#1e497b","#4e81bb","#e2534d","#9aba60","#8165a0","#47acc5","#f9974c"],u=["#c21401","#ff1e02","#ffc12a","#ffff3a","#90cf5b","#00af57","#00afee","#0071be","#00215f","#72349d"],r=A(-1),c=A([]),d=_({get(){return ke(n.modelValue).toRgb()},set(X){const M=`rgba(${[X.r,X.g,X.b,X.a].join(",")})`;o("update:modelValue",M)}}),R=a(),p=_(()=>`rgba(${[d.value.r,d.value.g,d.value.b,d.value.a].join(",")})`),f=X=>{r.value=ke(X).toHsl().h,o("update:modelValue",X)},h=vt.debounce(function(){const X=ke(d.value).toRgbString();if(!c.value.includes(X)){c.value=[X,...c.value];const M=10;c.value.length>M&&(c.value=c.value.slice(0,M))}},300,{trailing:!0});Ee(()=>{const X=localStorage.getItem(wu);X&&(c.value=JSON.parse(X))}),Oe(c,()=>{const X=JSON.stringify(c.value);localStorage.setItem(wu,X)});const P=X=>{"h"in X?(r.value=X.h,d.value=ke(X).toRgb()):(r.value=ke(X).toHsl().h,d.value=X),h()},O=()=>{"EyeDropper"in window?L():S()},L=()=>{Wt.success("按 ESC 键关闭取色吸管",{duration:0}),new window.EyeDropper().open().then(M=>{const y=ke(M.sRGBHex);r.value=y.toHsl().h,d.value=y.toRgb(),Wt.closeAll(),h()}).catch(()=>{Wt.closeAll()})},S=()=>{const X=document.querySelector(".canvas");if(!X)return;const M=document.createElement("div");M.style.cssText="position: fixed; top: 0; left: 0; bottom: 0; right: 0; z-index: 9999; cursor: wait;",document.body.appendChild(M);const y=document.createElement("div");y.style.cssText="position: absolute; top: -100px; left: -100px; width: 16px; height: 16px; border: 1px solid #000; z-index: 999",M.appendChild(y);const{left:W,top:T,width:V,height:b}=X.getBoundingClientRect();qp(X,{filter:F=>!(F.tagName&&F.tagName.toUpperCase()==="FOREIGNOBJECT"||F.classList&&F.classList.contains("operate")),fontEmbedCSS:"",width:V,height:b,canvasWidth:V,canvasHeight:b,pixelRatio:1}).then(F=>{F.style.cssText=`position: absolute; top: ${T}px; left: ${W}px; cursor: crosshair;`,M.style.cursor="default",M.appendChild(F);const C=F.getContext("2d");if(!C)return;let K="";const H=$=>{const se=$.x,Re=$.y,ae=se-W,Pe=Re-T,[x,B,Ie,ce]=C.getImageData(ae,Pe,1,1).data;K=`rgba(${x}, ${B}, ${Ie}, ${(ce/255).toFixed(2)})`,y.style.left=se+10+"px",y.style.top=Re+10+"px",y.style.backgroundColor=K},Q=()=>{K="",y.style.left="-100px",y.style.top="-100px",y.style.backgroundColor=""},G=$=>{if(K&&$.button===0){const se=ke(K);r.value=se.toHsl().h,d.value=se.toRgb(),h()}document.body.removeChild(M),F.removeEventListener("mousemove",H),F.removeEventListener("mouseleave",Q),window.removeEventListener("mousedown",G)};F.addEventListener("mousemove",H),F.addEventListener("mouseleave",Q),window.addEventListener("mousedown",G)}).catch(()=>{Wt.error("取色吸管初始化失败"),document.body.removeChild(M)})};return(X,M)=>{const y=te("IconNeedle");return g(),I("div",eU,[m("div",tU,[N(DW,{value:d.value,hue:r.value,onColorChange:M[0]||(M[0]=W=>P(W))},null,8,["value","hue"])]),m("div",nU,[m("div",oU,[m("div",{class:"picker-current-color",style:ee({background:p.value})},null,4),N(Da)]),m("div",lU,[m("div",sU,[N(EW,{value:d.value,hue:r.value,onColorChange:M[1]||(M[1]=W=>P(W))},null,8,["value","hue"])]),m("div",aU,[N(AW,{value:d.value,onColorChange:M[2]||(M[2]=W=>P(W))},null,8,["value"])])])]),m("div",iU,[N(qW,{class:"input",value:d.value,onColorChange:M[3]||(M[3]=W=>P(W))},null,8,["value"]),m("div",{class:"straw",onClick:M[4]||(M[4]=W=>O())},[N(y)]),m("div",{class:"transparent",onClick:M[5]||(M[5]=W=>f("#00000000"))},[N(Da)])]),m("div",rU,[(g(),I(ie,null,me(i,W=>m("div",{class:"picker-presets-color",key:W,style:ee({background:W}),onClick:T=>f(W)},null,12,uU)),64))]),m("div",cU,[(g(!0),I(ie,null,me(v(R),(W,T)=>(g(),I("div",{class:"picker-gradient-col",key:T},[(g(!0),I(ie,null,me(W,V=>(g(),I("div",{class:"picker-gradient-color",key:V,style:ee({background:V}),onClick:b=>f(V)},null,12,dU))),128))]))),128))]),m("div",RU,[(g(),I(ie,null,me(u,W=>m("div",{key:W,class:"picker-presets-color",style:ee({background:W}),onClick:T=>f(W)},null,12,fU)),64))]),c.value.length?(g(),I("div",pU,"最近使用:")):z("",!0),m("div",hU,[(g(!0),I(ie,null,me(c.value,W=>(g(),I("div",{key:W,class:"picker-presets-color alpha",onClick:T=>f(W)},[m("div",{class:"picker-presets-color-content",style:ee({background:W})},null,4)],8,vU))),128))])])}}}),Be=fe(mU,[["__scopeId","data-v-407eef80"]]),MU=e=>(Je("data-v-0ae5f9b9"),e=e(),xe(),e),gU=MU(()=>m("span",{class:"switch-core"},null,-1)),SU=[gU],OU=j({__name:"Switch",props:{value:{type:Boolean},disabled:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const n=e,o=t,l=()=>{n.disabled||o("update:value",!n.value)};return(s,a)=>(g(),I("span",{class:E(["switch",{active:s.value,disabled:s.disabled}]),onClick:a[0]||(a[0]=i=>l())},SU,2))}}),co=fe(OU,[["__scopeId","data-v-0ae5f9b9"]]),Gs=e=>(Je("data-v-d29e0148"),e=e(),xe(),e),PU={class:"element-outline"},NU={key:0,class:"row"},XU=Gs(()=>m("div",{style:{width:"40%"}},"启用边框:",-1)),TU={class:"switch-wrapper",style:{width:"60%"}},VU={class:"row"},yU=Gs(()=>m("div",{style:{width:"40%"}},"边框样式:",-1)),LU={class:"row"},bU=Gs(()=>m("div",{style:{width:"40%"}},"边框颜色:",-1)),IU={class:"row"},YU=Gs(()=>m("div",{style:{width:"40%"}},"边框粗细:",-1)),WU=j({__name:"ElementOutline",props:{fixed:{type:Boolean,default:!1}},setup(e){const t=Ue(),{theme:n}=oe(t),{handleElement:o}=oe(Xe()),l=A(),s=A(!1);Oe(o,()=>{o.value&&(l.value="outline"in o.value?o.value.outline:void 0,s.value=!!l.value)},{deep:!0,immediate:!0});const{addHistorySnapshot:a}=He(),i=r=>{if(!o.value)return;const c={outline:{...l.value,...r}};t.updateElement({id:o.value.id,props:c}),a()},u=r=>{if(o.value){if(r){const c=n.value.outline;t.updateElement({id:o.value.id,props:{outline:c}})}else t.removeElementProps({id:o.value.id,propName:"outline"});a()}};return(r,c)=>(g(),I("div",PU,[r.fixed?z("",!0):(g(),I("div",NU,[XU,m("div",TU,[N(co,{value:s.value,"onUpdate:value":c[0]||(c[0]=d=>u(d))},null,8,["value"])])])),s.value&&l.value?(g(),I(ie,{key:1},[m("div",VU,[yU,N(rt,{style:{width:"60%"},value:l.value.style||"","onUpdate:value":c[1]||(c[1]=d=>i({style:d})),options:[{label:"实线边框",value:"solid"},{label:"虚线边框",value:"dashed"},{label:"点线边框",value:"dotted"}]},null,8,["value"])]),m("div",LU,[bU,N(Ke,{trigger:"click",style:{width:"60%"}},{content:U(()=>[N(Be,{modelValue:l.value.color,"onUpdate:modelValue":c[2]||(c[2]=d=>i({color:d}))},null,8,["modelValue"])]),default:U(()=>[N(ht,{color:l.value.color||"#000"},null,8,["color"])]),_:1})]),m("div",IU,[YU,N(en,{value:l.value.width||0,"onUpdate:value":c[3]||(c[3]=d=>i({width:d})),style:{width:"60%"}},null,8,["value"])])],64)):z("",!0)]))}}),Kl=fe(WU,[["__scopeId","data-v-d29e0148"]]),_l=e=>(Je("data-v-c05b3547"),e=e(),xe(),e),UU={class:"element-shadow"},QU={class:"row"},FU=_l(()=>m("div",{style:{width:"40%"}},"启用阴影:",-1)),ZU={class:"switch-wrapper",style:{width:"60%"}},AU={class:"row"},KU=_l(()=>m("div",{style:{width:"40%"}},"水平阴影:",-1)),_U={class:"row"},HU=_l(()=>m("div",{style:{width:"40%"}},"垂直阴影:",-1)),CU={class:"row"},GU=_l(()=>m("div",{style:{width:"40%"}},"模糊距离:",-1)),EU={class:"row"},wU=_l(()=>m("div",{style:{width:"40%"}},"阴影颜色:",-1)),kU=j({__name:"ElementShadow",setup(e){const t=Ue(),{theme:n}=oe(t),{handleElement:o}=oe(Xe()),l=A(),s=A(!1);Oe(o,()=>{o.value&&(l.value="shadow"in o.value?o.value.shadow:void 0,s.value=!!l.value)},{deep:!0,immediate:!0});const{addHistorySnapshot:a}=He(),i=r=>{if(!o.value||!l.value)return;const c={...l.value,...r};t.updateElement({id:o.value.id,props:{shadow:c}}),a()},u=r=>{if(o.value){if(r){const c=n.value.shadow;t.updateElement({id:o.value.id,props:{shadow:c}})}else t.removeElementProps({id:o.value.id,propName:"shadow"});a()}};return(r,c)=>(g(),I("div",UU,[m("div",QU,[FU,m("div",ZU,[N(co,{value:s.value,"onUpdate:value":c[0]||(c[0]=d=>u(d))},null,8,["value"])])]),s.value&&l.value?(g(),I(ie,{key:0},[m("div",AU,[KU,N(Vn,{style:{width:"60%"},min:-10,max:10,step:1,value:l.value.h,"onUpdate:value":c[1]||(c[1]=d=>i({h:d}))},null,8,["value"])]),m("div",_U,[HU,N(Vn,{style:{width:"60%"},min:-10,max:10,step:1,value:l.value.v,"onUpdate:value":c[2]||(c[2]=d=>i({v:d}))},null,8,["value"])]),m("div",CU,[GU,N(Vn,{style:{width:"60%"},min:1,max:20,step:1,value:l.value.blur,"onUpdate:value":c[3]||(c[3]=d=>i({blur:d}))},null,8,["value"])]),m("div",EU,[wU,N(Ke,{trigger:"click",style:{width:"60%"}},{content:U(()=>[N(Be,{modelValue:l.value.color,"onUpdate:modelValue":c[4]||(c[4]=d=>i({color:d}))},null,8,["modelValue"])]),default:U(()=>[N(ht,{color:l.value.color},null,8,["color"])]),_:1})])],64)):z("",!0)]))}}),Es=fe(kU,[["__scopeId","data-v-c05b3547"]]),JU=()=>{const e=Xe(),{richTextAttrs:t,textFormatPainter:n}=oe(e);return{toggleTextFormatPainter:(l=!1)=>{n.value?e.setTextFormatPainter(null):e.setTextFormatPainter({keep:l,bold:t.value.bold,em:t.value.em,underline:t.value.underline,strikethrough:t.value.strikethrough,color:t.value.color,backcolor:t.value.backcolor,fontname:t.value.fontname,fontsize:t.value.fontsize,align:t.value.align})}}},xU={class:"text-color-block"},$U=j({__name:"TextColorButton",props:{color:{}},setup(e){return(t,n)=>(g(),k(Ve,{class:"text-color-btn"},{default:U(()=>[We(t.$slots,"default",{},void 0,!0),m("div",xU,[m("div",{class:"text-color-block-content",style:ee({backgroundColor:t.color})},null,4)])]),_:3}))}}),nl=fe($U,[["__scopeId","data-v-79358407"]]),Lt=j({__name:"CheckboxButton",props:{checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(e){return(t,n)=>(g(),k(Ve,{checked:t.checked,disabled:t.disabled,type:"checkbox"},{default:U(()=>[We(t.$slots,"default")]),_:3},8,["checked","disabled"]))}}),DU=j({__name:"ButtonGroup",props:{passive:{type:Boolean,default:!1}},setup(e){return(t,n)=>(g(),I("div",{class:E(["button-group",{passive:t.passive}]),ref:"groupRef"},[We(t.$slots,"default",{},void 0,!0)],2))}}),dt=fe(DU,[["__scopeId","data-v-22d6e97c"]]),BU={},zU={class:"select-group"};function jU(e,t){return g(),I("div",zU,[We(e.$slots,"default",{},void 0,!0)])}const _i=fe(BU,[["render",jU],["__scopeId","data-v-6a2eb73a"]]),xt=j({__name:"RadioButton",props:{value:{},disabled:{type:Boolean,default:!1}},setup(e){const{value:t,updateValue:n}=Ct(gc);return(o,l)=>(g(),k(Ve,{checked:!o.disabled&&v(t)===o.value,disabled:o.disabled,type:"radio",onClick:l[0]||(l[0]=s=>!o.disabled&&v(n)(o.value))},{default:U(()=>[We(o.$slots,"default")]),_:3},8,["checked","disabled"]))}}),ws=j({__name:"RadioGroup",props:{value:{},disabled:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const n=e,o=t,l=a=>{n.disabled||o("update:value",a)},s=_(()=>n.value);return an(gc,{value:s,updateValue:l}),(a,i)=>(g(),k(dt,{class:"radio-group"},{default:U(()=>[We(a.$slots,"default")]),_:3}))}}),ks=e=>(Je("data-v-a61fb9f5"),e=e(),xe(),e),qU={class:"rich-text-base"},eQ={class:"link-popover"},tQ={class:"btns"},nQ={class:"row",passive:""},oQ={class:"list-wrap"},lQ=["onClick"],sQ=ks(()=>m("span",null,null,-1)),aQ=[sQ],iQ=ks(()=>m("div",{style:{width:"10px"}},null,-1)),rQ={class:"list-wrap"},uQ=["onClick"],cQ=ks(()=>m("span",null,null,-1)),dQ=[cQ],RQ={class:"row"},fQ=ks(()=>m("div",{style:{width:"10px"}},null,-1)),pQ=j({__name:"RichTextBase",setup(e){const{richTextAttrs:t,availableFonts:n,textFormatPainter:o}=oe(Xe()),{toggleTextFormatPainter:l}=JU(),s=["24px","28px","32px","36px","40px","44px","48px","56px","64px","72px","80px","88px","96px","108px","120px","132px","144px","152px","160px","176px","192px","208px","224px","240px"],a=(L,S)=>{Jt.emit(Ht.RICH_TEXT_COMMAND,{action:{command:L,value:S}})},i=A(!1),u=A(!1),r=A(!1),c=A(!1),d=A(["disc","circle","square"]),R=A(["decimal","lower-roman","upper-roman","lower-alpha","upper-alpha","lower-greek"]),p=A(""),f=A(!1);Oe(t,()=>f.value=!1);const h=()=>{p.value=t.value.link},P=L=>{if(!L||!/^(https?):\/\/[\w\-]+(\.[\w\-]+)+([\w\-.,@?^=%&:\/~+#]*[\w\-@?^=%&\/~+#])?$/.test(L))return Wt.error("不是正确的网页链接地址");a("link",L),f.value=!1},O=()=>{a("link"),f.value=!1};return(L,S)=>{const X=te("IconFontSize"),M=te("IconAddText"),y=te("IconText"),W=te("IconHighLight"),T=te("IconTextBold"),V=te("IconTextItalic"),b=te("IconTextUnderline"),Y=te("IconStrikethrough"),F=te("IconCode"),C=te("IconQuote"),K=te("IconFormat"),H=te("IconFormatBrush"),Q=te("IconLinkOne"),G=te("IconAlignTextLeft"),$=te("IconAlignTextCenter"),se=te("IconAlignTextRight"),Re=te("IconAlignTextBoth"),ae=te("IconList"),Pe=te("IconDown"),x=te("IconOrderedList"),B=te("IconIndentLeft"),Ie=te("IconIndentRight"),ce=ze("tooltip");return g(),I("div",qU,[N(_i,{class:"row"},{default:U(()=>[N(rt,{class:"font-select",style:{width:"60%"},value:v(t).fontname,search:"",searchLabel:"搜索字体","onUpdate:value":S[0]||(S[0]=q=>a("fontname",q)),options:[...v(n),...v(Ll)]},{icon:U(()=>[N(X)]),_:1},8,["value","options"]),N(rt,{style:{width:"40%"},value:v(t).fontsize,search:"",searchLabel:"搜索字号","onUpdate:value":S[1]||(S[1]=q=>a("fontsize",q)),options:s.map(q=>({label:q,value:q}))},{icon:U(()=>[N(M)]),_:1},8,["value","options"])]),_:1}),N(dt,{class:"row",passive:""},{default:U(()=>[N(Ke,{trigger:"click",style:{width:"30%"}},{content:U(()=>[N(Be,{modelValue:v(t).color,"onUpdate:modelValue":S[2]||(S[2]=q=>a("color",q))},null,8,["modelValue"])]),default:U(()=>[de((g(),k(nl,{first:"",color:v(t).color},{default:U(()=>[N(y)]),_:1},8,["color"])),[[ce,"文字颜色"]])]),_:1}),N(Ke,{trigger:"click",style:{width:"30%"}},{content:U(()=>[N(Be,{modelValue:v(t).backcolor,"onUpdate:modelValue":S[3]||(S[3]=q=>a("backcolor",q))},null,8,["modelValue"])]),default:U(()=>[de((g(),k(nl,{color:v(t).backcolor},{default:U(()=>[N(W)]),_:1},8,["color"])),[[ce,"文字高亮"]])]),_:1}),de((g(),k(Ve,{class:"font-size-btn",style:{width:"20%"},onClick:S[4]||(S[4]=q=>a("fontsize-add"))},{default:U(()=>[N(X),ge("+")]),_:1})),[[ce,"增大字号"]]),de((g(),k(Ve,{last:"",class:"font-size-btn",style:{width:"20%"},onClick:S[5]||(S[5]=q=>a("fontsize-reduce"))},{default:U(()=>[N(X),ge("-")]),_:1})),[[ce,"减小字号"]])]),_:1}),N(dt,{class:"row"},{default:U(()=>[de((g(),k(Lt,{style:{flex:"1"},checked:v(t).bold,onClick:S[6]||(S[6]=q=>a("bold"))},{default:U(()=>[N(T)]),_:1},8,["checked"])),[[ce,"加粗"]]),de((g(),k(Lt,{style:{flex:"1"},checked:v(t).em,onClick:S[7]||(S[7]=q=>a("em"))},{default:U(()=>[N(V)]),_:1},8,["checked"])),[[ce,"斜体"]]),de((g(),k(Lt,{style:{flex:"1"},checked:v(t).underline,onClick:S[8]||(S[8]=q=>a("underline"))},{default:U(()=>[N(b)]),_:1},8,["checked"])),[[ce,"下划线"]]),de((g(),k(Lt,{style:{flex:"1"},checked:v(t).strikethrough,onClick:S[9]||(S[9]=q=>a("strikethrough"))},{default:U(()=>[N(Y)]),_:1},8,["checked"])),[[ce,"删除线"]])]),_:1}),N(dt,{class:"row"},{default:U(()=>[de((g(),k(Lt,{style:{flex:"1"},checked:v(t).superscript,onClick:S[10]||(S[10]=q=>a("superscript"))},{default:U(()=>[ge("A²")]),_:1},8,["checked"])),[[ce,"上标"]]),de((g(),k(Lt,{style:{flex:"1"},checked:v(t).subscript,onClick:S[11]||(S[11]=q=>a("subscript"))},{default:U(()=>[ge("A₂")]),_:1},8,["checked"])),[[ce,"下标"]]),de((g(),k(Lt,{style:{flex:"1"},checked:v(t).code,onClick:S[12]||(S[12]=q=>a("code"))},{default:U(()=>[N(F)]),_:1},8,["checked"])),[[ce,"行内代码"]]),de((g(),k(Lt,{style:{flex:"1"},checked:v(t).blockquote,onClick:S[13]||(S[13]=q=>a("blockquote"))},{default:U(()=>[N(C)]),_:1},8,["checked"])),[[ce,"引用"]])]),_:1}),N(dt,{class:"row",passive:""},{default:U(()=>[de((g(),k(Lt,{first:"",style:{flex:"1"},onClick:S[14]||(S[14]=q=>a("clear"))},{default:U(()=>[N(K)]),_:1})),[[ce,"清除格式"]]),de((g(),k(Lt,{style:{flex:"1"},checked:!!v(o),onClick:S[15]||(S[15]=q=>v(l)()),onDblclick:S[16]||(S[16]=q=>v(l)(!0))},{default:U(()=>[N(H)]),_:1},8,["checked"])),[[ce,"格式刷(双击连续使用)"]]),N(Ke,{placement:"bottom-end",trigger:"click",value:f.value,"onUpdate:value":S[21]||(S[21]=q=>f.value=q),style:{width:"33.33%"}},{content:U(()=>[m("div",eQ,[N(el,{value:p.value,"onUpdate:value":S[17]||(S[17]=q=>p.value=q),placeholder:"请输入超链接"},null,8,["value"]),m("div",tQ,[N(Ve,{size:"small",disabled:!v(t).link,onClick:S[18]||(S[18]=q=>O()),style:{"margin-right":"5px"}},{default:U(()=>[ge("移除")]),_:1},8,["disabled"]),N(Ve,{size:"small",type:"primary",onClick:S[19]||(S[19]=q=>P(p.value))},{default:U(()=>[ge("确认")]),_:1})])])]),default:U(()=>[de((g(),k(Lt,{last:"",style:{width:"100%"},checked:!!v(t).link,onClick:S[20]||(S[20]=q=>h())},{default:U(()=>[N(Q)]),_:1},8,["checked"])),[[ce,"超链接"]])]),_:1},8,["value"])]),_:1}),N(Ce),N(ws,{class:"row","button-style":"solid",value:v(t).align,"onUpdate:value":S[22]||(S[22]=q=>a("align",q))},{default:U(()=>[de((g(),k(xt,{value:"left",style:{flex:"1"}},{default:U(()=>[N(G)]),_:1})),[[ce,"左对齐"]]),de((g(),k(xt,{value:"center",style:{flex:"1"}},{default:U(()=>[N($)]),_:1})),[[ce,"居中"]]),de((g(),k(xt,{value:"right",style:{flex:"1"}},{default:U(()=>[N(se)]),_:1})),[[ce,"右对齐"]]),de((g(),k(xt,{value:"justify",style:{flex:"1"}},{default:U(()=>[N(Re)]),_:1})),[[ce,"两端对齐"]])]),_:1},8,["value"]),m("div",nQ,[N(dt,{style:{flex:"1"}},{default:U(()=>[de((g(),k(Ve,{first:"",type:v(t).bulletList?"primary":"default",style:{flex:"1"},onClick:S[23]||(S[23]=q=>a("bulletList"))},{default:U(()=>[N(ae)]),_:1},8,["type"])),[[ce,"项目符号"]]),N(Ke,{trigger:"click",value:i.value,"onUpdate:value":S[24]||(S[24]=q=>i.value=q)},{content:U(()=>[m("div",oQ,[(g(!0),I(ie,null,me(d.value,q=>(g(),I("ul",{class:"list",key:q,style:ee({listStyleType:q}),onClick:ne=>a("bulletList",q)},[(g(),I(ie,null,me(3,ne=>m("li",{class:"list-item",key:ne},aQ)),64))],12,lQ))),128))])]),default:U(()=>[N(Ve,{last:"",class:"popover-btn"},{default:U(()=>[N(Pe)]),_:1})]),_:1},8,["value"])]),_:1}),iQ,N(dt,{style:{flex:"1"},passive:""},{default:U(()=>[de((g(),k(Ve,{first:"",type:v(t).orderedList?"primary":"default",style:{flex:"1"},onClick:S[25]||(S[25]=q=>a("orderedList"))},{default:U(()=>[N(x)]),_:1},8,["type"])),[[ce,"编号"]]),N(Ke,{trigger:"click",value:u.value,"onUpdate:value":S[26]||(S[26]=q=>u.value=q)},{content:U(()=>[m("div",rQ,[(g(!0),I(ie,null,me(R.value,q=>(g(),I("ul",{class:"list",key:q,style:ee({listStyleType:q}),onClick:ne=>a("orderedList",q)},[(g(),I(ie,null,me(3,ne=>m("li",{class:"list-item",key:ne},dQ)),64))],12,uQ))),128))])]),default:U(()=>[N(Ve,{last:"",class:"popover-btn"},{default:U(()=>[N(Pe)]),_:1})]),_:1},8,["value"])]),_:1})]),m("div",RQ,[N(dt,{style:{flex:"1"},passive:""},{default:U(()=>[de((g(),k(Ve,{first:"",style:{flex:"1"},onClick:S[27]||(S[27]=q=>a("indent","-1"))},{default:U(()=>[N(B)]),_:1})),[[ce,"减小段落缩进"]]),N(Ke,{trigger:"click",value:r.value,"onUpdate:value":S[29]||(S[29]=q=>r.value=q)},{content:U(()=>[N(bt,{onClick:S[28]||(S[28]=q=>a("textIndent","-1"))},{default:U(()=>[ge("减小首行缩进")]),_:1})]),default:U(()=>[N(Ve,{last:"",class:"popover-btn"},{default:U(()=>[N(Pe)]),_:1})]),_:1},8,["value"])]),_:1}),fQ,N(dt,{style:{flex:"1"},passive:""},{default:U(()=>[de((g(),k(Ve,{first:"",style:{flex:"1"},onClick:S[30]||(S[30]=q=>a("indent","+1"))},{default:U(()=>[N(Ie)]),_:1})),[[ce,"增大段落缩进"]]),N(Ke,{trigger:"click",value:c.value,"onUpdate:value":S[32]||(S[32]=q=>c.value=q)},{content:U(()=>[N(bt,{onClick:S[31]||(S[31]=q=>a("textIndent","+1"))},{default:U(()=>[ge("增大首行缩进")]),_:1})]),default:U(()=>[N(Ve,{last:"",class:"popover-btn"},{default:U(()=>[N(Pe)]),_:1})]),_:1},8,["value"])]),_:1})])])}}}),UR=fe(pQ,[["__scopeId","data-v-a61fb9f5"]]),Js=e=>(Je("data-v-c2e2a5a9"),e=e(),xe(),e),hQ={class:"text-style-panel"},vQ={class:"preset-style"},mQ=["onClick"],MQ={class:"row"},gQ=Js(()=>m("div",{style:{width:"40%"}},"行间距:",-1)),SQ={class:"row"},OQ=Js(()=>m("div",{style:{width:"40%"}},"段间距:",-1)),PQ={class:"row"},NQ=Js(()=>m("div",{style:{width:"40%"}},"字间距:",-1)),XQ={class:"row"},TQ=Js(()=>m("div",{style:{width:"40%"}},"文本框填充:",-1)),VQ=j({__name:"TextStylePanel",setup(e){const t=[{label:"大标题",style:{fontSize:"26px",fontWeight:700},cmd:[{command:"clear"},{command:"bold"},{command:"fontsize",value:"132px"},{command:"align",value:"center"}]},{label:"小标题",style:{fontSize:"22px",fontWeight:700},cmd:[{command:"clear"},{command:"bold"},{command:"fontsize",value:"80px"},{command:"align",value:"center"}]},{label:"正文",style:{fontSize:"20px"},cmd:[{command:"clear"},{command:"fontsize",value:"40px"}]},{label:"正文[小]",style:{fontSize:"18px"},cmd:[{command:"clear"},{command:"fontsize",value:"36px"}]},{label:"注释 1",style:{fontSize:"16px",fontStyle:"italic"},cmd:[{command:"clear"},{command:"fontsize",value:"32px"},{command:"em"}]},{label:"注释 2",style:{fontSize:"16px",textDecoration:"underline"},cmd:[{command:"clear"},{command:"fontsize",value:"32px"},{command:"underline"}]}],n=Xe(),o=Ue(),{handleElement:l,handleElementId:s}=oe(n),{addHistorySnapshot:a}=He(),i=X=>{o.updateElement({id:s.value,props:X}),a()},u=A("#000"),r=A(),c=A(),d=A();Oe(l,()=>{!l.value||l.value.type!=="text"||(u.value=l.value.fill||"#fff",r.value=l.value.lineHeight||1.5,c.value=l.value.wordSpace||0,d.value=l.value.paragraphSpace===void 0?5:l.value.paragraphSpace,Jt.emit(Ht.SYNC_RICH_TEXT_ATTRS_TO_STORE))},{deep:!0,immediate:!0});const R=[.9,1,1.15,1.2,1.4,1.5,1.8,2,2.5,3],p=[0,1,2,3,4,5,6,8,10],f=[0,5,10,15,20,25,30,40,50,80],h=X=>{i({lineHeight:X})},P=X=>{i({paragraphSpace:X})},O=X=>{i({wordSpace:X})},L=X=>{i({fill:X})},S=X=>{Jt.emit(Ht.RICH_TEXT_COMMAND,{action:X})};return(X,M)=>{const y=te("IconRowHeight"),W=te("IconVerticalSpacingBetweenItems"),T=te("IconFullwidth");return g(),I("div",hQ,[m("div",vQ,[(g(),I(ie,null,me(t,V=>m("div",{class:"preset-style-item",key:V.label,style:ee(V.style),onClick:b=>S(V.cmd)},Me(V.label),13,mQ)),64))]),N(Ce),N(UR),N(Ce),m("div",MQ,[gQ,N(rt,{style:{width:"60%"},value:r.value||1,"onUpdate:value":M[0]||(M[0]=V=>h(V)),options:R.map(V=>({label:V+"倍",value:V}))},{icon:U(()=>[N(y)]),_:1},8,["value","options"])]),m("div",SQ,[OQ,N(rt,{style:{width:"60%"},value:d.value||0,"onUpdate:value":M[1]||(M[1]=V=>P(V)),options:f.map(V=>({label:V+"px",value:V}))},{icon:U(()=>[N(W)]),_:1},8,["value","options"])]),m("div",PQ,[NQ,N(rt,{style:{width:"60%"},value:c.value||0,"onUpdate:value":M[2]||(M[2]=V=>O(V)),options:p.map(V=>({label:V+"px",value:V}))},{icon:U(()=>[N(T)]),_:1},8,["value","options"])]),m("div",XQ,[TQ,N(Ke,{trigger:"click",style:{width:"60%"}},{content:U(()=>[N(Be,{modelValue:u.value,"onUpdate:modelValue":M[3]||(M[3]=V=>L(V))},null,8,["modelValue"])]),default:U(()=>[N(ht,{color:u.value},null,8,["color"])]),_:1})]),N(Ce),N(Kl),N(Ce),N(Es),N(Ce),N(WR)])}}}),yQ=fe(VQ,[["__scopeId","data-v-c2e2a5a9"]]),LQ={class:"element-flip"},bQ=j({__name:"ElementFlip",setup(e){const t=Ue(),{handleElement:n}=oe(Xe()),o=A(!1),l=A(!1);Oe(n,()=>{n.value&&(n.value.type==="image"||n.value.type==="shape")&&(o.value=!!n.value.flipH,l.value=!!n.value.flipV)},{deep:!0,immediate:!0});const{addHistorySnapshot:s}=He(),a=i=>{n.value&&(t.updateElement({id:n.value.id,props:i}),s())};return(i,u)=>{const r=te("IconFlipVertically"),c=te("IconFlipHorizontally");return g(),I("div",LQ,[N(dt,{class:"row"},{default:U(()=>[N(Lt,{style:{flex:"1"},checked:l.value,onClick:u[0]||(u[0]=d=>a({flipV:!l.value}))},{default:U(()=>[N(r),ge(" 垂直翻转")]),_:1},8,["checked"]),N(Lt,{style:{flex:"1"},checked:o.value,onClick:u[1]||(u[1]=d=>a({flipH:!o.value}))},{default:U(()=>[N(c),ge(" 水平翻转")]),_:1},8,["checked"])]),_:1})])}}}),QR=fe(bQ,[["__scopeId","data-v-97a958ef"]]),IQ=e=>(Je("data-v-0742dbd7"),e=e(),xe(),e),YQ={class:"element-filter"},WQ={class:"row"},UQ=IQ(()=>m("div",{style:{flex:"2"}},"启用滤镜:",-1)),QQ={class:"switch-wrapper",style:{flex:"3"}},FQ={class:"presets"},ZQ=["onClick"],AQ=["src"],KQ={class:"preset-label"},_Q={class:"filter"},HQ={class:"name"},CQ=j({__name:"ElementFilter",setup(e){const t=[{label:"模糊",key:"blur",default:0,value:0,unit:"px",max:10,step:1},{label:"亮度",key:"brightness",default:100,value:100,unit:"%",max:200,step:5},{label:"对比度",key:"contrast",default:100,value:100,unit:"%",max:200,step:5},{label:"灰度",key:"grayscale",default:0,value:0,unit:"%",max:100,step:5},{label:"饱和度",key:"saturate",default:100,value:100,unit:"%",max:200,step:5},{label:"色相",key:"hue-rotate",default:0,value:0,unit:"deg",max:360,step:10},{label:"褐色",key:"sepia",default:0,value:0,unit:"%",max:100,step:5},{label:"反转",key:"invert",default:0,value:0,unit:"%",max:100,step:5},{label:"不透明度",key:"opacity",default:100,value:100,unit:"%",max:100,step:5}],n=[{label:"黑白",values:{grayscale:"100%"}},{label:"复古",values:{sepia:"50%",contrast:"110%",brightness:"90%"}},{label:"锐化",values:{contrast:"150%"}},{label:"柔和",values:{brightness:"110%",contrast:"90%"}},{label:"暖色",values:{sepia:"30%",saturate:"135%"}},{label:"明亮",values:{brightness:"110%",contrast:"110%"}},{label:"鲜艳",values:{saturate:"200%"}},{label:"模糊",values:{blur:"2px"}},{label:"反转",values:{invert:"100%"}}],o=Ue(),{handleElement:l,handleElementId:s}=oe(Xe()),a=l,i=A(JSON.parse(JSON.stringify(t))),u=A(!1),{addHistorySnapshot:r}=He();Oe(l,()=>{if(!l.value||l.value.type!=="image")return;const f=l.value.filters;f?(i.value=t.map(h=>{const P=f[h.key];return P?{...h,value:parseInt(P)}:h}),u.value=!0):(i.value=JSON.parse(JSON.stringify(t)),u.value=!1)},{deep:!0,immediate:!0});const c=f=>{let h="";const P=Object.keys(f);for(const O of P)h+=`${O}(${f[O]}) `;return h},d=(f,h)=>{const L={...l.value.filters||{},[f.key]:`${h}${f.unit}`};o.updateElement({id:s.value,props:{filters:L}}),r()},R=f=>{l.value&&(f?o.updateElement({id:l.value.id,props:{filters:{}}}):o.removeElementProps({id:l.value.id,propName:"filters"}),r())},p=f=>{o.updateElement({id:s.value,props:{filters:f}}),r()};return(f,h)=>(g(),I("div",YQ,[m("div",WQ,[UQ,m("div",QQ,[N(co,{value:u.value,"onUpdate:value":h[0]||(h[0]=P=>R(P))},null,8,["value"])])]),u.value?(g(),I(ie,{key:0},[m("div",FQ,[(g(),I(ie,null,me(n,(P,O)=>m("div",{class:"preset-item",key:O,onClick:L=>p(P.values)},[m("img",{src:v(a).src,alt:"",style:ee({filter:c(P.values)})},null,12,AQ),m("span",KQ,Me(P.label),1)],8,ZQ)),64))]),m("div",_Q,[(g(!0),I(ie,null,me(i.value,P=>(g(),I("div",{class:"filter-item",key:P.key},[m("div",HQ,Me(P.label),1),N(Vn,{class:"filter-slider",max:P.max,min:0,step:P.step,value:P.value,"onUpdate:value":O=>d(P,O)},null,8,["max","step","value","onUpdate:value"])]))),128))])],64)):z("",!0)]))}}),GQ=fe(CQ,[["__scopeId","data-v-0742dbd7"]]),FR=e=>(Je("data-v-07ebbf49"),e=e(),xe(),e),EQ={class:"element-color-mask"},wQ={class:"row"},kQ=FR(()=>m("div",{style:{width:"40%"}},"着色(蒙版):",-1)),JQ={class:"switch-wrapper",style:{width:"60%"}},xQ={key:0,class:"row",style:{"margin-top":"15px"}},$Q=FR(()=>m("div",{style:{width:"40%"}},"蒙版颜色:",-1)),ku="rgba(226, 83, 77, 0.5)",DQ=j({__name:"ElementColorMask",setup(e){const t=Ue(),{handleElement:n,handleElementId:o}=oe(Xe()),l=A(ku),s=A(!1),{addHistorySnapshot:a}=He();Oe(n,()=>{!n.value||n.value.type!=="image"||(n.value.colorMask?(l.value=n.value.colorMask,s.value=!0):s.value=!1)},{deep:!0,immediate:!0});const i=r=>{n.value&&(r?t.updateElement({id:n.value.id,props:{colorMask:ku}}):t.removeElementProps({id:n.value.id,propName:"colorMask"}),a())},u=r=>{t.updateElement({id:o.value,props:{colorMask:r}}),a()};return(r,c)=>(g(),I("div",EQ,[m("div",wQ,[kQ,m("div",JQ,[N(co,{value:s.value,"onUpdate:value":c[0]||(c[0]=d=>i(d))},null,8,["value"])])]),s.value?(g(),I("div",xQ,[$Q,N(Ke,{trigger:"click",style:{width:"60%"}},{content:U(()=>[N(Be,{modelValue:l.value,"onUpdate:modelValue":c[1]||(c[1]=d=>u(d))},null,8,["modelValue"])]),default:U(()=>[N(ht,{color:l.value},null,8,["color"])]),_:1})])):z("",!0)]))}}),BQ=fe(DQ,[["__scopeId","data-v-07ebbf49"]]),ZR=e=>(Je("data-v-ace5b669"),e=e(),xe(),e),zQ={class:"image-style-panel"},jQ={class:"clip"},qQ=ZR(()=>m("div",{class:"title"},"按形状:",-1)),eF={class:"shape-clip"},tF=["onClick"],nF={key:0,class:"title"},oF={class:"row"},lF=ZR(()=>m("div",{style:{width:"40%"}},"圆角半径:",-1)),sF=j({__name:"ImageStylePanel",setup(e){const t=eh,n=[{label:"纵横比(正方形)",children:[{key:"1:1",ratio:1/1}]},{label:"纵横比(纵向)",children:[{key:"2:3",ratio:3/2},{key:"3:4",ratio:4/3},{key:"3:5",ratio:5/3},{key:"4:5",ratio:5/4}]},{label:"纵横比(横向)",children:[{key:"3:2",ratio:2/3},{key:"4:3",ratio:3/4},{key:"5:3",ratio:3/5},{key:"5:4",ratio:4/5}]},{children:[{key:"16:9",ratio:9/16},{key:"16:10",ratio:10/16}]}],o=Xe(),l=Ue(),{handleElement:s,handleElementId:a}=oe(o),{currentSlide:i}=oe(l),u=s,r=A(!1),{addHistorySnapshot:c}=He(),d=()=>{o.setClipingImageElementId(a.value),r.value=!1},R=()=>{const L=s.value,S=L.width,X=L.height,M=L.left,y=L.top,W=L.clip?L.clip.range:[[0,0],[100,100]],T=S/((W[1][0]-W[0][0])/100),V=X/((W[1][1]-W[0][1])/100),b=M-T*(W[0][0]/100),Y=y-V*(W[0][1]/100);return{originClipRange:W,originWidth:T,originHeight:V,originLeft:b,originTop:Y}},p=L=>{s.value&&(l.updateElement({id:a.value,props:L}),c())},f=(L,S=0)=>{const X=s.value,{originClipRange:M,originWidth:y,originHeight:W,originLeft:T,originTop:V}=R();if(S){const b=W/y,Y=0,F=100;let C;if(b>S){const K=(1-S/b)/2*100;C=[[Y,K],[F,F-K]]}else{const K=(1-b/S)/2*100;C=[[K,Y],[F-K,F]]}p({clip:{...X.clip,shape:L,range:C},left:T+y*(C[0][0]/100),top:V+W*(C[0][1]/100),width:y*(C[1][0]-C[0][0])/100,height:W*(C[1][1]-C[0][1])/100})}else{const b={...X.clip,shape:L,range:M};let Y={clip:b};L==="rect"&&(Y={clip:b,radius:0}),p(Y)}d()},h=L=>{const S=L[0];S&&Wo(S).then(X=>{p({src:X})})},P=()=>{if(s.value.clip){const{originWidth:S,originHeight:X,originLeft:M,originTop:y}=R();p({left:M,top:y,width:S,height:X})}l.removeElementProps({id:a.value,propName:["clip","outline","flip","shadow","filters","colorMask"]}),c()},O=()=>{const L=s.value,S={...i.value.background,type:"image",image:L.src,imageSize:"cover"};l.updateSlide({background:S}),c()};return(L,S)=>{const X=te("IconTailoring"),M=te("IconDown"),y=te("IconTransform"),W=te("IconUndo"),T=te("IconTheme");return g(),I("div",zQ,[m("div",{class:"origin-image",style:ee({backgroundImage:`url(${v(u).src})`})},null,4),N(QR),N(dt,{class:"row",passive:""},{default:U(()=>[N(Ve,{first:"",style:{width:"calc(100% / 6 * 5)"},onClick:S[0]||(S[0]=V=>d())},{default:U(()=>[N(X,{class:"btn-icon"}),ge(" 裁剪图片")]),_:1}),N(Ke,{trigger:"click",value:r.value,"onUpdate:value":S[1]||(S[1]=V=>r.value=V),style:{width:"calc(100% / 6)"}},{content:U(()=>[m("div",jQ,[qQ,m("div",eF,[(g(!0),I(ie,null,me(v(t),(V,b)=>(g(),I("div",{class:"shape-clip-item",key:b,onClick:Y=>f(b)},[m("div",{class:"shape",style:ee({clipPath:V.style})},null,4)],8,tF))),128))]),(g(),I(ie,null,me(n,V=>(g(),I(ie,{key:V.label},[V.label?(g(),I("div",nF,"按"+Me(V.label)+":",1)):z("",!0),N(dt,{class:"row"},{default:U(()=>[(g(!0),I(ie,null,me(V.children,b=>(g(),k(Ve,{style:{flex:"1"},key:b.key,onClick:Y=>f("rect",b.ratio)},{default:U(()=>[ge(Me(b.key),1)]),_:2},1032,["onClick"]))),128))]),_:2},1024)],64))),64))])]),default:U(()=>[N(Ve,{last:"",class:"popover-btn",style:{width:"100%"}},{default:U(()=>[N(M)]),_:1})]),_:1},8,["value"])]),_:1}),m("div",oF,[lF,N(en,{value:v(u).radius||0,"onUpdate:value":S[2]||(S[2]=V=>p({radius:V})),style:{width:"60%"}},null,8,["value"])]),N(Ce),N(BQ),N(Ce),N(GQ),N(Ce),N(Kl),N(Ce),N(Es),N(Ce),N(Ul,{onChange:S[3]||(S[3]=V=>h(V))},{default:U(()=>[N(Ve,{class:"full-width-btn"},{default:U(()=>[N(y,{class:"btn-icon"}),ge(" 替换图片")]),_:1})]),_:1}),N(Ve,{class:"full-width-btn",onClick:S[4]||(S[4]=V=>P())},{default:U(()=>[N(W,{class:"btn-icon"}),ge(" 重置样式")]),_:1}),N(Ve,{class:"full-width-btn",onClick:S[5]||(S[5]=V=>O())},{default:U(()=>[N(T,{class:"btn-icon"}),ge(" 设为背景")]),_:1})])}}}),aF=fe(sF,[["__scopeId","data-v-ace5b669"]]),iF=()=>{const e=Xe(),{shapeFormatPainter:t,handleElement:n}=oe(e);return{toggleShapeFormatPainter:(l=!1)=>{const s=n.value;t.value?e.setShapeFormatPainter(null):e.setShapeFormatPainter({keep:l,fill:s.fill,gradient:s.gradient,outline:s.outline,opacity:s.opacity,shadow:s.shadow})}}},rF={class:"gradient-bar"},uF=["onMousedown","onContextmenu"],cF=j({__name:"GradientBar",props:{value:{}},emits:["update:value","update:index"],setup(e,{emit:t}){const n=e,o=t,l=A([]),s=A(),a=A(0);Io(()=>{l.value=n.value,a.value>n.value.length-1&&(a.value=0)}),Oe(a,()=>{o("update:index",a.value)});const i=_(()=>`linear-gradient(to right, ${l.value.map(R=>`${R.color} ${R.pos}%`).join(",")})`),u=d=>{if(n.value.length<=2)return;d===a.value?a.value=d-1<0?0:d-1:a.value===n.value.length-1&&(a.value=n.value.length-2);const R=n.value.filter((p,f)=>f!==d);o("update:value",R)},r=d=>{let R=!0;document.onmousemove=p=>{if(!R||!s.value)return;let f=Math.round((p.clientX-s.value.getBoundingClientRect().left)/s.value.clientWidth*100);f>100&&(f=100),f<0&&(f=0),l.value=l.value.map((h,P)=>P===d?{...h,pos:f}:h)},document.onmouseup=()=>{R=!1;const p=l.value[d],f=[...l.value];f.splice(d,1);let h=0;for(let P=0;P<f.length;P++)p.pos>f[P].pos&&(h=P+1);a.value=h,f.splice(h,0,p),o("update:value",f),document.onmousemove=null,document.onmouseup=null}},c=d=>{if(n.value.length>=6||!s.value)return;const R=Math.round((d.clientX-s.value.getBoundingClientRect().left)/s.value.clientWidth*100);let p=0;for(let P=0;P<n.value.length;P++)R>n.value[P].pos&&(p=P+1);const f=n.value[p-1]?n.value[p-1].color:n.value[p].color,h=[...n.value];h.splice(p,0,{pos:R,color:f}),a.value=p,o("update:value",h)};return(d,R)=>(g(),I("div",rF,[m("div",{class:"bar",ref_key:"barRef",ref:s,style:ee({backgroundImage:i.value}),onClick:R[0]||(R[0]=p=>c(p))},null,4),(g(!0),I(ie,null,me(l.value,(p,f)=>(g(),I("div",{class:E(["point",{active:a.value===f}]),key:p.pos+"-"+f,style:ee({backgroundColor:p.color,left:`calc(${p.pos}% - 5px)`}),onMousedown:Fe(h=>r(f),["left"]),onContextmenu:Fe(h=>u(f),["right"])},null,46,uF))),128))]))}}),AR=fe(cF,[["__scopeId","data-v-3fe7c583"]]),xs=e=>(Je("data-v-da387ff7"),e=e(),xe(),e),dF={class:"shape-style-panel"},RF={class:"title"},fF=xs(()=>m("span",null,"点击替换形状",-1)),pF={class:"shape-pool"},hF={class:"shape-list"},vF={class:"row"},mF=xs(()=>m("div",{style:{width:"10px"}},null,-1)),MF={class:"row"},gF={class:"row"},SF=xs(()=>m("div",{style:{width:"40%"}},"当前色块:",-1)),OF={key:0,class:"row"},PF=xs(()=>m("div",{style:{width:"40%"}},"渐变角度:",-1)),NF={class:"row"},XF=j({__name:"ShapeStylePanel",setup(e){const t=Xe(),n=Ue(),{handleElement:o,handleElementId:l,shapeFormatPainter:s}=oe(t),a=o,i=A("#000"),u=A({type:"linear",rotate:0,colors:[{pos:0,color:"#fff"},{pos:100,color:"#fff"}]}),r=A("fill"),c=A("middle"),d=A(0);Oe(o,()=>{var y,W;if(!o.value||o.value.type!=="shape")return;i.value=o.value.fill||"#fff";const M=[{pos:0,color:i.value},{pos:100,color:"#fff"}];u.value=o.value.gradient||{type:"linear",rotate:0,colors:M},r.value=o.value.gradient?"gradient":"fill",c.value=((W=(y=o.value)==null?void 0:y.text)==null?void 0:W.align)||"middle"},{deep:!0,immediate:!0});const{addHistorySnapshot:R}=He(),{toggleShapeFormatPainter:p}=iF(),f=M=>{n.updateElement({id:l.value,props:M}),R()},h=M=>{M==="fill"?(n.removeElementProps({id:l.value,propName:"gradient"}),R()):(d.value=0,f({gradient:u.value}))},P=M=>{if(!u.value)return;const y={...u.value,...M};f({gradient:y})},O=M=>{const y=u.value.colors.map((W,T)=>T===d.value?{...W,color:M}:W);P({colors:y})},L=M=>{f({fill:M})},S=M=>{const{width:y,height:W}=o.value,T={viewBox:M.viewBox,path:M.path,special:M.special};if(M.pathFormula){T.pathFormula=M.pathFormula,T.viewBox=[y,W];const V=sl[M.pathFormula];"editable"in V?(T.path=V.formula(y,W,V.defaultValue),T.keypoints=V.defaultValue):T.path=V.formula(y,W)}else T.pathFormula=void 0,T.keypoints=void 0;f(T)},X=M=>{const y=o.value,W={content:"",defaultFontName:"微软雅黑",defaultColor:"#000",align:"middle"},T=y.text||W;f({text:{...T,align:M}})};return(M,y)=>{var C;const W=te("IconDown"),T=te("IconAlignTextTopOne"),V=te("IconAlignTextMiddleOne"),b=te("IconAlignTextBottomOne"),Y=te("IconFormatBrush"),F=ze("tooltip");return g(),I("div",dF,[m("div",RF,[fF,N(W)]),m("div",pF,[(g(!0),I(ie,null,me(v(Sc),K=>(g(),I("div",{class:"category",key:K.type},[m("div",hF,[(g(!0),I(ie,null,me(K.children,(H,Q)=>(g(),k(VR,{class:"shape-item",key:Q,shape:H,onClick:G=>S(H)},null,8,["shape","onClick"]))),128))])]))),128))]),m("div",vF,[N(rt,{style:{flex:"1"},value:r.value,"onUpdate:value":y[0]||(y[0]=K=>h(K)),options:[{label:"纯色填充",value:"fill"},{label:"渐变填充",value:"gradient"}]},null,8,["value"]),mF,r.value==="fill"?(g(),k(Ke,{key:0,trigger:"click",style:{flex:"1"}},{content:U(()=>[N(Be,{modelValue:i.value,"onUpdate:modelValue":y[1]||(y[1]=K=>L(K))},null,8,["modelValue"])]),default:U(()=>[N(ht,{color:i.value},null,8,["color"])]),_:1})):(g(),k(rt,{key:1,style:{flex:"1"},value:u.value.type,"onUpdate:value":y[2]||(y[2]=K=>P({type:K})),options:[{label:"线性渐变",value:"linear"},{label:"径向渐变",value:"radial"}]},null,8,["value"]))]),r.value==="gradient"?(g(),I(ie,{key:0},[m("div",MF,[N(AR,{value:u.value.colors,"onUpdate:value":y[3]||(y[3]=K=>P({colors:K})),"onUpdate:index":y[4]||(y[4]=K=>d.value=K)},null,8,["value"])]),m("div",gF,[SF,N(Ke,{trigger:"click",style:{width:"60%"}},{content:U(()=>[N(Be,{modelValue:u.value.colors[d.value].color,"onUpdate:modelValue":y[5]||(y[5]=K=>O(K))},null,8,["modelValue"])]),default:U(()=>[N(ht,{color:u.value.colors[d.value].color},null,8,["color"])]),_:1})]),u.value.type==="linear"?(g(),I("div",OF,[PF,N(Vn,{style:{width:"60%"},min:0,max:360,step:15,value:u.value.rotate,"onUpdate:value":y[6]||(y[6]=K=>P({rotate:K}))},null,8,["value"])])):z("",!0)],64)):z("",!0),N(QR),N(Ce),(C=v(a).text)!=null&&C.content?(g(),I(ie,{key:1},[N(UR),N(Ce),N(ws,{class:"row","button-style":"solid",value:c.value,"onUpdate:value":y[7]||(y[7]=K=>X(K))},{default:U(()=>[de((g(),k(xt,{value:"top",style:{flex:"1"}},{default:U(()=>[N(T)]),_:1})),[[F,"顶对齐"]]),de((g(),k(xt,{value:"middle",style:{flex:"1"}},{default:U(()=>[N(V)]),_:1})),[[F,"居中"]]),de((g(),k(xt,{value:"bottom",style:{flex:"1"}},{default:U(()=>[N(b)]),_:1})),[[F,"底对齐"]])]),_:1},8,["value"]),N(Ce)],64)):z("",!0),N(Kl),N(Ce),N(Es),N(Ce),N(WR),N(Ce),m("div",NF,[de((g(),k(Lt,{style:{flex:"1"},checked:!!v(s),onClick:y[8]||(y[8]=K=>v(p)()),onDblclick:y[9]||(y[9]=K=>v(p)(!0))},{default:U(()=>[N(Y),ge(" 形状格式刷")]),_:1},8,["checked"])),[[F,"双击连续使用"]])])])}}}),TF=fe(XF,[["__scopeId","data-v-da387ff7"]]),Hl=e=>(Je("data-v-549730c4"),e=e(),xe(),e),VF={class:"line-style-panel"},yF={class:"row"},LF=Hl(()=>m("div",{style:{width:"40%"}},"线条样式:",-1)),bF={class:"row"},IF=Hl(()=>m("div",{style:{width:"40%"}},"线条颜色:",-1)),YF={class:"row"},WF=Hl(()=>m("div",{style:{width:"40%"}},"线条宽度:",-1)),UF={class:"row"},QF=Hl(()=>m("div",{style:{width:"40%"}},"起点样式:",-1)),FF={class:"row"},ZF=Hl(()=>m("div",{style:{width:"40%"}},"终点样式:",-1)),AF={class:"row"},KF=j({__name:"LineStylePanel",setup(e){const t=Ue(),{handleElement:n}=oe(Xe()),o=n,{addHistorySnapshot:l}=He(),s=a=>{n.value&&(t.updateElement({id:n.value.id,props:a}),l())};return(a,i)=>{const u=te("IconSwitch");return g(),I("div",VF,[m("div",yF,[LF,N(rt,{style:{width:"60%"},value:v(o).style,"onUpdate:value":i[0]||(i[0]=r=>s({style:r})),options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}]},null,8,["value"])]),m("div",bF,[IF,N(Ke,{trigger:"click",style:{width:"60%"}},{content:U(()=>[N(Be,{modelValue:v(o).color,"onUpdate:modelValue":i[1]||(i[1]=r=>s({color:r}))},null,8,["modelValue"])]),default:U(()=>[N(ht,{color:v(o).color},null,8,["color"])]),_:1})]),m("div",YF,[WF,N(en,{value:v(o).width,"onUpdate:value":i[2]||(i[2]=r=>s({width:r})),style:{width:"60%"}},null,8,["value"])]),m("div",UF,[QF,N(rt,{style:{width:"60%"},value:v(o).points[0],"onUpdate:value":i[3]||(i[3]=r=>s({points:[r,v(o).points[1]]})),options:[{label:"无",value:""},{label:"箭头",value:"arrow"},{label:"圆点",value:"dot"}]},null,8,["value"])]),m("div",FF,[ZF,N(rt,{style:{width:"60%"},value:v(o).points[1],"onUpdate:value":i[4]||(i[4]=r=>s({points:[v(o).points[0],r]})),options:[{label:"无",value:""},{label:"箭头",value:"arrow"},{label:"圆点",value:"dot"}]},null,8,["value"])]),N(Ce),m("div",AF,[N(Ve,{style:{flex:"1"},onClick:i[5]||(i[5]=r=>s({start:v(o).end,end:v(o).start}))},{default:U(()=>[N(u),ge(" 交换方向")]),_:1})]),N(Ce),N(Es)])}}}),_F=fe(KF,[["__scopeId","data-v-549730c4"]]),KR=e=>(Je("data-v-89bf0ce6"),e=e(),xe(),e),HF={class:"chart-data-editor"},CF={class:"editor-content"},GF={class:"handler"},EF={class:"col-header"},wF={class:"col-key"},kF={class:"row-header"},JF={class:"row-key"},xF=KR(()=>m("div",{class:"all-header"},[m("svg",{class:"triangle",width:"8",height:"8",viewBox:"0 0 8 8",xmlns:"http://www.w3.org/2000/svg"},[m("path",{d:"M8,0 L8,8 L0,8 L8,0",fill:"#ccc"})])],-1)),$F={class:"range-box"},DF=["id","onFocus","onPaste"],BF={class:"btns"},zF={class:"left"},jF=KR(()=>m("span",{class:"change"},"点击更换",-1)),qF={class:"right"},eZ="ABCDEFGHIJKLMNOPQRSTUVWXYZ",En=100,wn=32,tZ=j({__name:"ChartDataEditor",props:{type:{},data:{}},emits:["save","close"],setup(e,{emit:t}){const n=e,o=t,l=["bar","column","line","area","scatter","pie","ring","radar"],s=A(!1),a=A([0,0]),i=A({width:0,height:0}),u=A(null),r=A("bar"),c=_(()=>{const X=a.value[0]*En,M=a.value[1]*wn;return[{type:"t",style:{width:X+"px"}},{type:"b",style:{top:M+"px",width:X+"px"}},{type:"l",style:{height:M+"px"}},{type:"r",style:{left:X+"px",height:M+"px"}}]}),d=_(()=>{const X=a.value[0]*En,M=a.value[1]*wn;return{left:X+"px",top:M+"px"}});Ee(()=>{r.value=n.type;const X=[],{labels:M,legends:y,series:W}=n.data,T=M.length,V=W.length;X.push(["",...y]);for(let b=0;b<T;b++){const Y=[M[b]];for(let F=0;F<V;F++)Y.push(W[F][b]+"");X.push(Y)}for(let b=0;b<T+1;b++)for(let Y=0;Y<V+1;Y++){const F=document.querySelector(`#cell-${b}-${Y}`);F&&(F.value=X[b][Y]+"")}a.value=[V+1,T+1]});const p=()=>{if(!u.value)return;const[X,M]=u.value,y=document.querySelector(`#cell-${X+1}-${M}`);y&&y.focus()},f=X=>{X.key.toUpperCase()===Ye.ENTER&&p()};Ee(()=>{document.addEventListener("keydown",f)}),mt(()=>{document.removeEventListener("keydown",f)});const h=()=>{const[X,M]=a.value,y=[];let W=[],T=[];for(let V=1;V<M;V++){let b=`类别${V}`;const Y=document.querySelector(`#cell-${V}-0`);Y&&Y.value&&(b=Y.value),y.push(b)}for(let V=1;V<X;V++){let b=`系列${V}`;const Y=document.querySelector(`#cell-0-${V}`);Y&&Y.value&&(b=Y.value),W.push(b)}for(let V=1;V<X;V++){const b=[];for(let Y=1;Y<M;Y++){const F=document.querySelector(`#cell-${Y}-${V}`);let C=0;F&&F.value&&+F.value&&(C=+F.value),b.push(C)}T.push(b)}r.value==="scatter"&&(W.length>2&&(W=W.slice(0,2),T=T.slice(0,2)),W.length<2&&(W.push("Y"),T.push(T[0]))),(r.value==="ring"||r.value==="pie")&&W.length>1&&(W=W.slice(0,1),T=T.slice(0,1)),o("save",{data:{labels:y,legends:W,series:T},type:r.value})},P=()=>{for(let X=1;X<31;X++)for(let M=1;M<7;M++){const y=document.querySelector(`#cell-${X}-${M}`);y&&(y.value="")}},O=(X,M,y)=>{if(X.preventDefault(),!X.clipboardData)return;const W=X.clipboardData.items[0];W&&W.kind==="string"&&W.type==="text/plain"&&W.getAsString(T=>{if(typeof Si(T)=="object")return;const b=Pd(T);if(b){const Y=M+b.length,F=y+b[0].length;for(let C=M;C<Y;C++)for(let K=y;K<F;K++){const H=document.querySelector(`#cell-${C}-${K}`);H&&(H.value=b[C-M][K-y])}}})},L=()=>o("close"),S=X=>{let M=!0;const y=X.pageX,W=X.pageY,T=a.value[0]*En,V=a.value[1]*wn;document.onmousemove=b=>{if(!M)return;const Y=b.pageX,F=b.pageY,C=Y-y,K=F-W,H=T+C,Q=V+K;i.value={width:H,height:Q}},document.onmouseup=b=>{M=!1,document.onmousemove=null,document.onmouseup=null;const Y=b.pageX,F=b.pageY;if(y===Y&&W===F)return;let C=i.value.width,K=i.value.height;C%En>En*.5&&(C=C+(En-C%En)),K%wn>wn*.5&&(K=K+(wn-K%wn));let H=Math.round(K/wn),Q=Math.round(C/En);H<3&&(H=3),Q<2&&(Q=2),a.value=[Q,H],i.value={width:0,height:0}}};return(X,M)=>(g(),I("div",HF,[m("div",CF,[m("div",GF,[m("div",EF,[(g(),I(ie,null,me(7,y=>m("div",{class:"col-header-item",key:y},[m("div",wF,Me(eZ[y-1]),1)])),64))]),m("div",kF,[(g(),I(ie,null,me(31,y=>m("div",{class:"row-header-item",key:y},[m("div",JF,Me(y),1)])),64))]),xF]),m("div",$F,[m("div",{class:"temp-range",style:ee({width:i.value.width+"px",height:i.value.height+"px"})},null,4),(g(!0),I(ie,null,me(c.value,y=>(g(),I("div",{class:E(["range-line",y.type]),key:y.type,style:ee(y.style)},null,6))),128)),m("div",{class:"resizable",style:ee(d.value),onMousedown:M[0]||(M[0]=Fe(y=>S(y),["stop"]))},null,36)]),m("table",null,[m("tbody",null,[(g(),I(ie,null,me(31,y=>m("tr",{key:y},[(g(),I(ie,null,me(7,W=>m("td",{key:W,class:E({head:W===1&&y<=a.value[1]||y===1&&W<=a.value[0]})},[y===1&&W===1?z("",!0):(g(),I("input",{key:0,class:E(["item",{selected:y<=a.value[1]&&W<=a.value[0]}]),id:`cell-${y-1}-${W-1}`,autocomplete:"off",onFocus:T=>u.value=[y-1,W-1],onPaste:T=>O(T,y-1,W-1)},null,42,DF))],2)),64))])),64))])])]),m("div",BF,[m("div",zF,[ge(" 图表类型:"+Me(v(Qa)[r.value])+" ",1),N(Ke,{trigger:"click",placement:"top",value:s.value,"onUpdate:value":M[1]||(M[1]=y=>s.value=y)},{content:U(()=>[(g(),I(ie,null,me(l,y=>N(bt,{center:"",key:y,onClick:W=>{r.value=y,s.value=!1}},{default:U(()=>[ge(Me(v(Qa)[y]),1)]),_:2},1032,["onClick"])),64))]),default:U(()=>[jF]),_:1},8,["value"])]),m("div",qF,[N(Ve,{class:"btn",onClick:M[2]||(M[2]=y=>L())},{default:U(()=>[ge("取消")]),_:1}),N(Ve,{class:"btn",onClick:M[3]||(M[3]=y=>P())},{default:U(()=>[ge("清空数据")]),_:1}),N(Ve,{type:"primary",class:"btn",onClick:M[4]||(M[4]=y=>h())},{default:U(()=>[ge("确认")]),_:1})])])]))}}),nZ=fe(tZ,[["__scopeId","data-v-89bf0ce6"]]),oZ=e=>(Je("data-v-714bf49f"),e=e(),xe(),e),lZ=oZ(()=>m("span",{class:"checkbox-input"},null,-1)),sZ=["checked"],aZ={class:"checkbox-label"},iZ=j({__name:"Checkbox",props:{value:{type:Boolean},disabled:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const n=e,o=t,l=s=>{n.disabled||o("update:value",s.target.checked)};return(s,a)=>(g(),I("label",{class:E(["checkbox",{checked:s.value,disabled:s.disabled}]),onChange:a[0]||(a[0]=i=>l(i))},[lZ,m("input",{class:"checkbox-original",type:"checkbox",checked:s.value},null,8,sZ),m("span",aZ,[We(s.$slots,"default",{},void 0,!0)])],34))}}),Jo=fe(iZ,[["__scopeId","data-v-714bf49f"]]),_R=e=>(Je("data-v-e8d419d8"),e=e(),xe(),e),rZ={class:"chart-style-panel"},uZ={class:"row"},cZ={class:"row"},dZ=_R(()=>m("div",{style:{width:"40%"}},"背景填充:",-1)),RZ={class:"row"},fZ=_R(()=>m("div",{style:{width:"40%"}},"文字颜色:",-1)),pZ={style:{width:"40%"}},hZ={class:"color-btn-wrap",style:{width:"100%"}},vZ=["onClick"],mZ={class:"preset-themes"},MZ=["onClick","onMouseenter"],gZ=j({__name:"index",setup(e){const t=Xe(),n=Ue(),{handleElement:o,handleElementId:l}=oe(t),{theme:s}=oe(n),a=o,i=A(!1),u=A(!1),r=A([-1,-1]),{addHistorySnapshot:c}=He(),d=A("#000"),R=A([]),p=A(""),f=A(!1),h=A(!1);Oe(o,()=>{if(!(!o.value||o.value.type!=="chart")){if(d.value=o.value.fill||"#fff",f.value=!1,h.value=!1,o.value.options){const{lineSmooth:b,stack:Y}=o.value.options;b!==void 0&&(f.value=b),Y!==void 0&&(h.value=Y)}R.value=o.value.themeColors,p.value=o.value.textColor||"#333"}},{deep:!0,immediate:!0});const P=b=>{n.updateElement({id:l.value,props:b}),c()},O=b=>{i.value=!1,P({data:b.data,chartType:b.type})},L=b=>{P({fill:b})},S=b=>{const F={...o.value.options,...b};P({options:F})},X=(b,Y)=>{const F={themeColors:R.value.map((C,K)=>K===Y?b:C)};P(F)},M=()=>{const b={themeColors:[...R.value,s.value.themeColor]};P(b)},y=(b,Y)=>{const F=b.slice(0,Y+1);P({themeColors:F}),u.value=!1},W=b=>{const Y={themeColors:R.value.filter((F,C)=>C!==b)};P(Y)},T=b=>{P({textColor:b})},V=()=>i.value=!0;return Jt.on(Ht.OPEN_CHART_DATA_EDITOR,V),mt(()=>{Jt.off(Ht.OPEN_CHART_DATA_EDITOR,V)}),(b,Y)=>{const F=te("IconEdit"),C=te("IconCloseSmall"),K=te("IconPlus"),H=ze("tooltip");return g(),I("div",rZ,[N(Ve,{class:"full-width-btn",onClick:Y[0]||(Y[0]=Q=>i.value=!0)},{default:U(()=>[N(F,{class:"btn-icon"}),ge(" 编辑图表 ")]),_:1}),N(Ce),["bar","column","area","line"].includes(v(a).chartType)?(g(),I(ie,{key:0},[m("div",uZ,[N(Jo,{"onUpdate:value":Y[1]||(Y[1]=Q=>S({stack:Q})),value:h.value,style:{flex:"2"}},{default:U(()=>[ge("堆叠样式")]),_:1},8,["value"]),v(a).chartType==="line"?(g(),k(Jo,{key:0,"onUpdate:value":Y[2]||(Y[2]=Q=>S({lineSmooth:Q})),value:f.value,style:{flex:"3"}},{default:U(()=>[ge("使用平滑曲线")]),_:1},8,["value"])):z("",!0)]),N(Ce)],64)):z("",!0),m("div",cZ,[dZ,N(Ke,{trigger:"click",style:{width:"60%"}},{content:U(()=>[N(Be,{modelValue:d.value,"onUpdate:modelValue":Y[3]||(Y[3]=Q=>L(Q))},null,8,["modelValue"])]),default:U(()=>[N(ht,{color:d.value},null,8,["color"])]),_:1})]),m("div",RZ,[fZ,N(Ke,{trigger:"click",style:{width:"60%"}},{content:U(()=>[N(Be,{modelValue:p.value,"onUpdate:modelValue":Y[4]||(Y[4]=Q=>T(Q))},null,8,["modelValue"])]),default:U(()=>[N(ht,{color:p.value},null,8,["color"])]),_:1})]),N(Ce),(g(!0),I(ie,null,me(R.value,(Q,G)=>(g(),I("div",{class:"row",key:G},[m("div",pZ,Me(G===0?"主题配色:":""),1),N(Ke,{trigger:"click",style:{width:"60%"}},{content:U(()=>[N(Be,{modelValue:Q,"onUpdate:modelValue":$=>X($,G)},null,8,["modelValue","onUpdate:modelValue"])]),default:U(()=>[m("div",hZ,[N(ht,{color:Q},null,8,["color"]),G!==0?de((g(),I("div",{key:0,class:"delete-color-btn",onClick:Fe($=>W(G),["stop"])},[N(C)],8,vZ)),[[H,"删除"]]):z("",!0)])]),_:2},1024)]))),128)),N(dt,{class:"row",passive:""},{default:U(()=>[N(Ke,{trigger:"click",open:u.value,"onUpdate:open":Y[6]||(Y[6]=Q=>u.value=Q),style:{width:"40%"}},{content:U(()=>[m("div",mZ,[(g(!0),I(ie,null,me(v(PN),(Q,G)=>(g(),I("div",{class:"preset-theme",key:G},[(g(!0),I(ie,null,me(Q,($,se)=>(g(),I("div",{class:E(["preset-theme-color",{select:r.value[0]===G&&se<=r.value[1]}]),key:$,style:ee({backgroundColor:$}),onClick:Re=>y(Q,se),onMouseenter:Re=>r.value=[G,se],onMouseleave:Y[5]||(Y[5]=Re=>r.value=[-1,-1])},null,46,MZ))),128))]))),128))])]),default:U(()=>[N(Ve,{first:"",style:{width:"100%"}},{default:U(()=>[ge("推荐主题")]),_:1})]),_:1},8,["open"]),N(Ve,{last:"",disabled:R.value.length>=10,style:{width:"60%"},onClick:Y[7]||(Y[7]=Q=>M())},{default:U(()=>[N(K,{class:"btn-icon"}),ge(" 添加主题色 ")]),_:1},8,["disabled"])]),_:1}),N(Ce),N(Kl),N(tl,{visible:i.value,"onUpdate:visible":Y[10]||(Y[10]=Q=>i.value=Q),width:640},{default:U(()=>[N(nZ,{type:v(a).chartType,data:v(a).data,onClose:Y[8]||(Y[8]=Q=>i.value=!1),onSave:Y[9]||(Y[9]=Q=>O(Q))},null,8,["type","data"])]),_:1},8,["visible"])])}}}),SZ=fe(gZ,[["__scopeId","data-v-e8d419d8"]]),$s=e=>(Je("data-v-eb30aaee"),e=e(),xe(),e),OZ={class:"table-style-panel"},PZ={class:"row"},NZ=$s(()=>m("div",{style:{width:"40%"}},"行数:",-1)),XZ={class:"set-count",style:{width:"60%"}},TZ={class:"count-text"},VZ={class:"row"},yZ=$s(()=>m("div",{style:{width:"40%"}},"列数:",-1)),LZ={class:"set-count",style:{width:"60%"}},bZ={class:"count-text"},IZ={class:"row theme-switch"},YZ=$s(()=>m("div",{style:{width:"40%"}},"启用主题表格:",-1)),WZ={class:"switch-wrapper",style:{width:"60%"}},UZ={class:"row"},QZ={class:"row"},FZ={class:"row"},ZZ=$s(()=>m("div",{style:{width:"40%"}},"主题颜色:",-1)),AZ=j({__name:"TableStylePanel",setup(e){const t=Ue(),{handleElement:n,handleElementId:o,selectedTableCells:l,availableFonts:s}=oe(Xe()),a=_(()=>t.theme.themeColor),i=["24px","28px","32px","36px","40px","44px","48px","56px","64px"],u=A({bold:!1,em:!1,underline:!1,strikethrough:!1,color:"#000",backcolor:"",fontsize:"24px",fontname:"微软雅黑",align:"left"}),r=A(),c=A(!1),d=A(0),R=A(0),p=A(0),f=A(0);Oe(n,()=>{!n.value||n.value.type!=="table"||(r.value=n.value.theme,c.value=!!r.value,d.value=n.value.data.length,R.value=n.value.data[0].length,p.value=n.value.data.length,f.value=n.value.data[0].length)},{deep:!0,immediate:!0});const{addHistorySnapshot:h}=He(),P=()=>{if(!n.value||n.value.type!=="table")return;let W=0,T=0;if(l.value.length){const b=l.value[0];W=+b.split("_")[0],T=+b.split("_")[1]}const V=n.value.data[W][T].style;V?u.value={bold:!!V.bold,em:!!V.em,underline:!!V.underline,strikethrough:!!V.strikethrough,color:V.color||"#000",backcolor:V.backcolor||"",fontsize:V.fontsize||"24px",fontname:V.fontname||"微软雅黑",align:V.align||"left"}:u.value={bold:!1,em:!1,underline:!1,strikethrough:!1,color:"#000",backcolor:"",fontsize:"24px",fontname:"微软雅黑",align:"left"}};Ee(()=>{l.value.length&&P()}),Oe(l,P);const O=W=>{t.updateElement({id:o.value,props:W}),h()},L=W=>{const T=n.value,V=JSON.parse(JSON.stringify(T.data));for(let b=0;b<V.length;b++)for(let Y=0;Y<V[b].length;Y++)if(!l.value.length||l.value.includes(`${b}_${Y}`)){const F=V[b][Y].style||{};V[b][Y].style={...F,...W}}O({data:V}),P()},S=W=>{if(!r.value)return;const T={...r.value,...W};O({theme:T})},X=W=>{if(W){const T={theme:{color:a.value,rowHeader:!0,rowFooter:!1,colHeader:!1,colFooter:!1}};O(T)}else t.removeElementProps({id:o.value,propName:"theme"}),h()},M=W=>{const T=n.value,V=T.data.length;if(W>V){const b=new Array(R.value).fill({id:st(10),colspan:1,rowspan:1,text:""}),Y=new Array(W-V).fill(b),F=JSON.parse(JSON.stringify(T.data));F.push(...Y),O({data:F})}else{const b=T.data.slice(0,W);O({data:b})}},y=W=>{const T=n.value,V=T.data[0].length;let b=T.data,Y=T.colWidths.map(H=>H*T.width);if(W>V){b=b.map(Q=>{const G=new Array(W-V).fill({id:st(10),colspan:1,rowspan:1,text:""});return Q.push(...G),Q});const H=new Array(W-V).fill(100);Y.push(...H)}else b=b.map(H=>H.slice(0,W)),Y=Y.slice(0,W);const F=Y.reduce((H,Q)=>H+Q),C=Y.map(H=>H/F);O({width:F,data:b,colWidths:C})};return(W,T)=>{const V=te("IconFontSize"),b=te("IconAddText"),Y=te("IconText"),F=te("IconFill"),C=te("IconTextBold"),K=te("IconTextItalic"),H=te("IconTextUnderline"),Q=te("IconStrikethrough"),G=te("IconAlignTextLeft"),$=te("IconAlignTextCenter"),se=te("IconAlignTextRight"),Re=te("IconAlignTextBoth"),ae=te("IconMinus"),Pe=te("IconPlus"),x=ze("tooltip");return g(),I("div",OZ,[N(_i,{class:"row"},{default:U(()=>[N(rt,{style:{width:"50%"},value:u.value.fontname,search:"",searchLabel:"搜索字体","onUpdate:value":T[0]||(T[0]=B=>L({fontname:B})),options:[...v(s),...v(Ll)]},{icon:U(()=>[N(V)]),_:1},8,["value","options"]),N(rt,{style:{width:"50%"},value:u.value.fontsize,search:"",searchLabel:"搜索字号","onUpdate:value":T[1]||(T[1]=B=>L({fontsize:B})),options:i.map(B=>({label:B,value:B}))},{icon:U(()=>[N(b)]),_:1},8,["value","options"])]),_:1}),N(dt,{class:"row",passive:""},{default:U(()=>[N(Ke,{trigger:"click",style:{width:"50%"}},{content:U(()=>[N(Be,{modelValue:u.value.color,"onUpdate:modelValue":T[2]||(T[2]=B=>L({color:B}))},null,8,["modelValue"])]),default:U(()=>[de((g(),k(nl,{first:"",color:u.value.color},{default:U(()=>[N(Y)]),_:1},8,["color"])),[[x,"文字颜色"]])]),_:1}),N(Ke,{trigger:"click",style:{width:"50%"}},{content:U(()=>[N(Be,{modelValue:u.value.backcolor,"onUpdate:modelValue":T[3]||(T[3]=B=>L({backcolor:B}))},null,8,["modelValue"])]),default:U(()=>[de((g(),k(nl,{last:"",color:u.value.backcolor},{default:U(()=>[N(F)]),_:1},8,["color"])),[[x,"单元格填充"]])]),_:1})]),_:1}),N(dt,{class:"row"},{default:U(()=>[de((g(),k(Lt,{style:{flex:"1"},checked:u.value.bold,onClick:T[4]||(T[4]=B=>L({bold:!u.value.bold}))},{default:U(()=>[N(C)]),_:1},8,["checked"])),[[x,"加粗"]]),de((g(),k(Lt,{style:{flex:"1"},checked:u.value.em,onClick:T[5]||(T[5]=B=>L({em:!u.value.em}))},{default:U(()=>[N(K)]),_:1},8,["checked"])),[[x,"斜体"]]),de((g(),k(Lt,{style:{flex:"1"},checked:u.value.underline,onClick:T[6]||(T[6]=B=>L({underline:!u.value.underline}))},{default:U(()=>[N(H)]),_:1},8,["checked"])),[[x,"下划线"]]),de((g(),k(Lt,{style:{flex:"1"},checked:u.value.strikethrough,onClick:T[7]||(T[7]=B=>L({strikethrough:!u.value.strikethrough}))},{default:U(()=>[N(Q)]),_:1},8,["checked"])),[[x,"删除线"]])]),_:1}),N(ws,{class:"row","button-style":"solid",value:u.value.align,"onUpdate:value":T[8]||(T[8]=B=>L({align:B}))},{default:U(()=>[de((g(),k(xt,{value:"left",style:{flex:"1"}},{default:U(()=>[N(G)]),_:1})),[[x,"左对齐"]]),de((g(),k(xt,{value:"center",style:{flex:"1"}},{default:U(()=>[N($)]),_:1})),[[x,"居中"]]),de((g(),k(xt,{value:"right",style:{flex:"1"}},{default:U(()=>[N(se)]),_:1})),[[x,"右对齐"]]),de((g(),k(xt,{value:"justify",style:{flex:"1"}},{default:U(()=>[N(Re)]),_:1})),[[x,"两端对齐"]])]),_:1},8,["value"]),N(Ce),N(Kl,{fixed:!0}),N(Ce),m("div",PZ,[NZ,m("div",XZ,[N(Ve,{class:"btn",disabled:d.value<=1,onClick:T[9]||(T[9]=B=>M(d.value-1))},{default:U(()=>[N(ae)]),_:1},8,["disabled"]),m("div",TZ,Me(d.value),1),N(Ve,{class:"btn",disabled:d.value>=30,onClick:T[10]||(T[10]=B=>M(d.value+1))},{default:U(()=>[N(Pe)]),_:1},8,["disabled"])])]),m("div",VZ,[yZ,m("div",LZ,[N(Ve,{class:"btn",disabled:R.value<=1,onClick:T[11]||(T[11]=B=>y(R.value-1))},{default:U(()=>[N(ae)]),_:1},8,["disabled"]),m("div",bZ,Me(R.value),1),N(Ve,{class:"btn",disabled:R.value>=30,onClick:T[12]||(T[12]=B=>y(R.value+1))},{default:U(()=>[N(Pe)]),_:1},8,["disabled"])])]),N(Ce),m("div",IZ,[YZ,m("div",WZ,[N(co,{value:c.value,"onUpdate:value":T[13]||(T[13]=B=>X(B))},null,8,["value"])])]),r.value?(g(),I(ie,{key:0},[m("div",UZ,[N(Jo,{"onUpdate:value":T[14]||(T[14]=B=>S({rowHeader:B})),value:r.value.rowHeader,style:{flex:"1"}},{default:U(()=>[ge("标题行")]),_:1},8,["value"]),N(Jo,{"onUpdate:value":T[15]||(T[15]=B=>S({rowFooter:B})),value:r.value.rowFooter,style:{flex:"1"}},{default:U(()=>[ge("汇总行")]),_:1},8,["value"])]),m("div",QZ,[N(Jo,{"onUpdate:value":T[16]||(T[16]=B=>S({colHeader:B})),value:r.value.colHeader,style:{flex:"1"}},{default:U(()=>[ge("第一列")]),_:1},8,["value"]),N(Jo,{"onUpdate:value":T[17]||(T[17]=B=>S({colFooter:B})),value:r.value.colFooter,style:{flex:"1"}},{default:U(()=>[ge("最后一列")]),_:1},8,["value"])]),m("div",FZ,[ZZ,N(Ke,{trigger:"click",style:{width:"60%"}},{content:U(()=>[N(Be,{modelValue:r.value.color,"onUpdate:modelValue":T[18]||(T[18]=B=>S({color:B}))},null,8,["modelValue"])]),default:U(()=>[N(ht,{color:r.value.color},null,8,["color"])]),_:1})])],64)):z("",!0)])}}}),KZ=fe(AZ,[["__scopeId","data-v-eb30aaee"]]),HR=e=>(Je("data-v-c6a0fce0"),e=e(),xe(),e),_Z={class:"latex-style-panel"},HZ={class:"row"},CZ={class:"row"},GZ=HR(()=>m("div",{style:{width:"40%"}},"颜色:",-1)),EZ={class:"row"},wZ=HR(()=>m("div",{style:{width:"40%"}},"粗细:",-1)),kZ=j({__name:"LatexStylePanel",setup(e){const t=Ue(),{handleElement:n}=oe(Xe()),o=n,l=A(!1),{addHistorySnapshot:s}=He(),a=r=>{n.value&&(t.updateElement({id:n.value.id,props:r}),s())},i=r=>{a({path:r.path,latex:r.latex,width:r.w,height:r.h,viewBox:[r.w,r.h]})},u=()=>l.value=!0;return Jt.on(Ht.OPEN_LATEX_EDITOR,u),mt(()=>{Jt.off(Ht.OPEN_LATEX_EDITOR,u)}),(r,c)=>(g(),I("div",_Z,[m("div",HZ,[N(Ve,{style:{flex:"1"},onClick:c[0]||(c[0]=d=>l.value=!0)},{default:U(()=>[ge("编辑 LaTeX")]),_:1})]),N(Ce),m("div",CZ,[GZ,N(Ke,{trigger:"click",style:{width:"60%"}},{content:U(()=>[N(Be,{modelValue:v(o).color,"onUpdate:modelValue":c[1]||(c[1]=d=>a({color:d}))},null,8,["modelValue"])]),default:U(()=>[N(ht,{color:v(o).color},null,8,["color"])]),_:1})]),m("div",EZ,[wZ,N(en,{min:1,max:3,value:v(o).strokeWidth,"onUpdate:value":c[2]||(c[2]=d=>a({strokeWidth:d})),style:{width:"60%"}},null,8,["value"])]),N(tl,{visible:l.value,"onUpdate:visible":c[5]||(c[5]=d=>l.value=d),width:880},{default:U(()=>[N(YR,{value:v(o).latex,onClose:c[3]||(c[3]=d=>l.value=!1),onUpdate:c[4]||(c[4]=d=>{i(d),l.value=!1})},null,8,["value"])]),_:1},8,["visible"])]))}}),JZ=fe(kZ,[["__scopeId","data-v-c6a0fce0"]]),CR=e=>(Je("data-v-4562458f"),e=e(),xe(),e),xZ={class:"video-style-panel"},$Z=CR(()=>m("div",{class:"title"},"视频预览封面",-1)),DZ={class:"background-image-wrapper"},BZ={class:"background-image"},zZ={class:"row"},jZ={class:"row switch-row"},qZ=CR(()=>m("div",{style:{width:"40%"}},"自动播放:",-1)),e2={class:"switch-wrapper",style:{width:"60%"}},t2=j({__name:"VideoStylePanel",setup(e){const t=Ue(),{handleElement:n}=oe(Xe()),o=n,{addHistorySnapshot:l}=He(),s=i=>{n.value&&(t.updateElement({id:n.value.id,props:i}),l())},a=i=>{const u=i[0];u&&Wo(u).then(r=>s({poster:r}))};return(i,u)=>{const r=te("IconPlus");return g(),I("div",xZ,[$Z,m("div",DZ,[N(Ul,{onChange:u[0]||(u[0]=c=>a(c))},{default:U(()=>[m("div",BZ,[m("div",{class:"content",style:ee({backgroundImage:v(o).poster?`url(${v(o).poster})`:""})},[N(r)],4)])]),_:1})]),m("div",zZ,[N(Ve,{style:{flex:"1"},onClick:u[1]||(u[1]=c=>s({poster:""}))},{default:U(()=>[ge("重置封面")]),_:1})]),m("div",jZ,[qZ,m("div",e2,[N(co,{value:v(o).autoplay,"onUpdate:value":u[2]||(u[2]=c=>s({autoplay:c}))},null,8,["value"])])])])}}}),n2=fe(t2,[["__scopeId","data-v-4562458f"]]),Hi=e=>(Je("data-v-f70950aa"),e=e(),xe(),e),o2={class:"audio-style-panel"},l2={class:"row"},s2=Hi(()=>m("div",{style:{width:"40%"}},"图标颜色:",-1)),a2={class:"row switch-row"},i2=Hi(()=>m("div",{style:{width:"40%"}},"自动播放:",-1)),r2={class:"switch-wrapper",style:{width:"60%"}},u2={class:"row switch-row"},c2=Hi(()=>m("div",{style:{width:"40%"}},"循环播放:",-1)),d2={class:"switch-wrapper",style:{width:"60%"}},R2=j({__name:"AudioStylePanel",setup(e){const t=Ue(),{handleElement:n}=oe(Xe()),o=n,{addHistorySnapshot:l}=He(),s=a=>{n.value&&(t.updateElement({id:n.value.id,props:a}),l())};return(a,i)=>(g(),I("div",o2,[m("div",l2,[s2,N(Ke,{trigger:"click",style:{width:"60%"}},{content:U(()=>[N(Be,{modelValue:v(o).color,"onUpdate:modelValue":i[0]||(i[0]=u=>s({color:u}))},null,8,["modelValue"])]),default:U(()=>[N(ht,{color:v(o).color},null,8,["color"])]),_:1})]),m("div",a2,[i2,m("div",r2,[N(co,{value:v(o).autoplay,"onUpdate:value":i[1]||(i[1]=u=>s({autoplay:u}))},null,8,["value"])])]),m("div",u2,[c2,m("div",d2,[N(co,{value:v(o).loop,"onUpdate:value":i[2]||(i[2]=u=>s({loop:u}))},null,8,["value"])])])]))}}),f2=fe(R2,[["__scopeId","data-v-f70950aa"]]),Ds=e=>(Je("data-v-54170157"),e=e(),xe(),e),p2={class:"multi-style-panel"},h2={class:"row"},v2=Ds(()=>m("div",{style:{width:"40%"}},"填充颜色:",-1)),m2={class:"row"},M2=Ds(()=>m("div",{style:{width:"40%"}},"边框样式:",-1)),g2={class:"row"},S2=Ds(()=>m("div",{style:{width:"40%"}},"边框颜色:",-1)),O2={class:"row"},P2=Ds(()=>m("div",{style:{width:"40%"}},"边框粗细:",-1)),N2=j({__name:"MultiStylePanel",setup(e){const t=Ue(),{richTextAttrs:n,availableFonts:o,activeElementList:l}=oe(Xe()),{addHistorySnapshot:s}=He(),a=(p,f)=>{t.updateElement({id:p,props:f}),s()},i=["24px","28px","32px","36px","40px","44px","48px","56px","64px","72px","80px","88px","96px","108px","120px","132px","144px","152px","160px","176px","192px","208px","224px","240px"],u=A("#fff"),r=A({width:0,color:"#fff",style:"solid"}),c=p=>{for(const f of l.value){if((f.type==="text"||f.type==="shape"||f.type==="chart")&&a(f.id,{fill:p}),f.type==="table"){const h=JSON.parse(JSON.stringify(f.data));for(let P=0;P<h.length;P++)for(let O=0;O<h[P].length;O++){const L=h[P][O].style||{};h[P][O].style={...L,backcolor:p}}a(f.id,{data:h})}f.type==="elf"&&f.subtype==="elf-audio"&&a(f.id,{color:p})}u.value=p},d=p=>{for(const f of l.value){if(f.type==="text"||f.type==="image"||f.type==="shape"||f.type==="table"||f.type==="chart"){const P={outline:{...f.outline||{width:2,color:"#000",style:"solid"},...p}};a(f.id,P)}f.type==="line"&&a(f.id,p)}r.value={...r.value,...p}},R=(p,f)=>{var h;for(const P of l.value){if((P.type==="text"||P.type==="shape"&&((h=P.text)!=null&&h.content))&&Jt.emit(Ht.RICH_TEXT_COMMAND,{target:P.id,action:{command:p,value:f}}),P.type==="table"){const O=JSON.parse(JSON.stringify(P.data));for(let L=0;L<O.length;L++)for(let S=0;S<O[L].length;S++){const X=O[L][S].style||{};O[L][S].style={...X,[p]:f}}a(P.id,{data:O})}P.type==="latex"&&p==="color"&&a(P.id,{color:f})}};return(p,f)=>{const h=te("IconFontSize"),P=te("IconAddText"),O=te("IconText"),L=te("IconHighLight"),S=te("IconAlignTextLeft"),X=te("IconAlignTextCenter"),M=te("IconAlignTextRight"),y=te("IconAlignTextBoth"),W=ze("tooltip");return g(),I("div",p2,[m("div",h2,[v2,N(Ke,{trigger:"click",style:{width:"60%"}},{content:U(()=>[N(Be,{modelValue:u.value,"onUpdate:modelValue":f[0]||(f[0]=T=>c(T))},null,8,["modelValue"])]),default:U(()=>[N(ht,{color:u.value},null,8,["color"])]),_:1})]),N(Ce),m("div",m2,[M2,N(rt,{style:{width:"60%"},value:r.value.style||"","onUpdate:value":f[1]||(f[1]=T=>d({style:T})),options:[{label:"实线边框",value:"solid"},{label:"虚线边框",value:"dashed"},{label:"点线边框",value:"dotted"}]},null,8,["value"])]),m("div",g2,[S2,N(Ke,{trigger:"click",style:{width:"60%"}},{content:U(()=>[N(Be,{modelValue:r.value.color,"onUpdate:modelValue":f[2]||(f[2]=T=>d({color:T}))},null,8,["modelValue"])]),default:U(()=>[N(ht,{color:r.value.color||"#000"},null,8,["color"])]),_:1})]),m("div",O2,[P2,N(en,{value:r.value.width||0,"onUpdate:value":f[3]||(f[3]=T=>d({width:T})),style:{width:"60%"}},null,8,["value"])]),N(Ce),N(_i,{class:"row"},{default:U(()=>[N(rt,{style:{width:"60%"},value:v(n).fontname,search:"",searchLabel:"搜索字体","onUpdate:value":f[4]||(f[4]=T=>R("fontname",T)),options:[...v(o),...v(Ll)]},{icon:U(()=>[N(h)]),_:1},8,["value","options"]),N(rt,{style:{width:"40%"},value:v(n).fontsize,search:"",searchLabel:"搜索字号","onUpdate:value":f[5]||(f[5]=T=>R("fontsize",T)),options:i.map(T=>({label:T,value:T}))},{icon:U(()=>[N(P)]),_:1},8,["value","options"])]),_:1}),N(dt,{class:"row",passive:""},{default:U(()=>[N(Ke,{trigger:"click",style:{width:"30%"}},{content:U(()=>[N(Be,{modelValue:v(n).color,"onUpdate:modelValue":f[6]||(f[6]=T=>R("color",T))},null,8,["modelValue"])]),default:U(()=>[de((g(),k(nl,{first:"",color:v(n).color},{default:U(()=>[N(O)]),_:1},8,["color"])),[[W,"文字颜色"]])]),_:1}),N(Ke,{trigger:"click",style:{width:"30%"}},{content:U(()=>[N(Be,{modelValue:v(n).backcolor,"onUpdate:modelValue":f[7]||(f[7]=T=>R("backcolor",T))},null,8,["modelValue"])]),default:U(()=>[de((g(),k(nl,{color:v(n).backcolor},{default:U(()=>[N(L)]),_:1},8,["color"])),[[W,"文字高亮"]])]),_:1}),de((g(),k(Ve,{class:"font-size-btn",style:{width:"20%"},onClick:f[8]||(f[8]=T=>R("fontsize-add","2"))},{default:U(()=>[N(h),ge("+")]),_:1})),[[W,"增大字号"]]),de((g(),k(Ve,{last:"",class:"font-size-btn",style:{width:"20%"},onClick:f[9]||(f[9]=T=>R("fontsize-reduce","2"))},{default:U(()=>[N(h),ge("-")]),_:1})),[[W,"减小字号"]])]),_:1}),N(ws,{class:"row","button-style":"solid",value:v(n).align,"onUpdate:value":f[10]||(f[10]=T=>R("align",T))},{default:U(()=>[de((g(),k(xt,{value:"left",style:{flex:"1"}},{default:U(()=>[N(S)]),_:1})),[[W,"左对齐"]]),de((g(),k(xt,{value:"center",style:{flex:"1"}},{default:U(()=>[N(X)]),_:1})),[[W,"居中"]]),de((g(),k(xt,{value:"right",style:{flex:"1"}},{default:U(()=>[N(M)]),_:1})),[[W,"右对齐"]]),de((g(),k(xt,{value:"justify",style:{flex:"1"}},{default:U(()=>[N(y)]),_:1})),[[W,"两端对齐"]])]),_:1},8,["value"])])}}}),X2=fe(N2,[["__scopeId","data-v-54170157"]]),T2={},V2={class:"CloudCoachStylePanel"};function y2(e,t){return g(),I("div",V2,"云教练")}const L2=fe(T2,[["render",y2]]),b2={class:"element-style-panel"},I2=j({__name:"index",setup(e){const t={[ct.TEXT]:yQ,[ct.IMAGE]:aF,[ct.SHAPE]:TF,[ct.LINE]:_F,[ct.CHART]:SZ,[ct.TABLE]:KZ,[ct.LATEX]:JZ,[ct.ELF]:null},n={[xo.AUDIO]:f2,[xo.VIDEO]:n2,[xo.SING_PLAY]:L2},{activeElementIdList:o,activeElementList:l,handleElement:s,activeGroupElementId:a}=oe(Xe()),i=_(()=>{if(o.value.length>1){if(!a.value)return X2;const u=l.value.find(r=>r.id===a.value);return u&&(t[u.type]||n[u.subtype])||null}return s.value&&(t[s.value.type]||n[s.value.subtype])||null});return(u,r)=>(g(),I("div",b2,[(g(),k(Vt(i.value)))]))}}),Bs=e=>(Je("data-v-02afcbeb"),e=e(),xe(),e),Y2={class:"element-positopn-panel"},W2=Bs(()=>m("div",{class:"title"},"层级:",-1)),U2=Bs(()=>m("div",{class:"title"},"对齐:",-1)),Q2={class:"row"},F2=Bs(()=>m("div",{style:{width:"10%"}},null,-1)),Z2={key:0,class:"row"},A2={key:1,style:{width:"10%"}},K2={class:"row"},_2=Bs(()=>m("div",{style:{width:"7%"}},null,-1)),H2=j({__name:"ElementPositionPanel",setup(e){const t=Ue(),{handleElement:n,handleElementId:o}=oe(Xe()),l=A(0),s=A(0),a=A(0),i=A(0),u=A(0),r=A(!1),c=_(()=>n.value&&Ld[n.value.type]||20),d=_(()=>{var T;return((T=n.value)==null?void 0:T.type)==="text"&&!n.value.vertical}),R=_(()=>{var T;return((T=n.value)==null?void 0:T.type)==="text"&&n.value.vertical});Oe(n,()=>{n.value&&(l.value=vt.round(n.value.left,1),s.value=vt.round(n.value.top,1),r.value="fixedRatio"in n.value&&!!n.value.fixedRatio,n.value.type!=="line"&&(a.value=vt.round(n.value.width,1),i.value=vt.round(n.value.height,1),u.value="rotate"in n.value&&n.value.rotate!==void 0?vt.round(n.value.rotate,1):0))},{deep:!0,immediate:!0});const{orderElement:p}=Ks(),{alignElementToCanvas:f}=Ti(),{addHistorySnapshot:h}=He(),P=T=>{const V={left:T};t.updateElement({id:o.value,props:V}),h()},O=T=>{const V={top:T};t.updateElement({id:o.value,props:V}),h()},L=(T,V)=>{if(n.value&&n.value.type==="shape"&&"pathFormula"in n.value&&n.value.pathFormula){const b=sl[n.value.pathFormula];let Y="";return"editable"in b&&b.editable?Y=b.formula(T,V,n.value.keypoints):Y=b.formula(T,V),{viewBox:[T,V],path:Y}}return null},S=T=>{if(!n.value||n.value.type==="line"||R.value)return;let V=i.value;if(r.value){const F=a.value/i.value;V=T/F<c.value?c.value:T/F}let b={width:T,height:V};const Y=L(T,V);Y&&(b={width:T,height:V,...Y}),t.updateElement({id:o.value,props:b}),h()},X=T=>{if(!n.value||n.value.type==="line"||n.value.type==="table"||d.value)return;let V=a.value;if(r.value){const F=a.value/i.value;V=T*F<c.value?c.value:T*F}let b={width:V,height:T};const Y=L(V,T);Y&&(b={width:V,height:T,...Y}),t.updateElement({id:o.value,props:b}),h()},M=T=>{const V={rotate:T};t.updateElement({id:o.value,props:V}),h()},y=T=>{const V={fixedRatio:T};t.updateElement({id:o.value,props:V}),h()},W=T=>{let V=Math.floor(u.value/45)*45;T==="+"?V=V+45:T==="-"&&(V=V-45),V<-180&&(V=-180),V>180&&(V=180);const b={rotate:V};t.updateElement({id:o.value,props:b}),h()};return(T,V)=>{const b=te("IconSendToBack"),Y=te("IconBringToFrontOne"),F=te("IconBringToFront"),C=te("IconSentToBack"),K=te("IconAlignLeft"),H=te("IconAlignVertically"),Q=te("IconAlignRight"),G=te("IconAlignTop"),$=te("IconAlignHorizontally"),se=te("IconAlignBottom"),Re=te("IconLock"),ae=te("IconUnlock"),Pe=te("IconRotate"),x=ze("tooltip");return g(),I("div",Y2,[W2,N(dt,{class:"row"},{default:U(()=>[N(Ve,{style:{flex:"1"},onClick:V[0]||(V[0]=B=>v(p)(v(n),v(Tt).TOP))},{default:U(()=>[N(b,{class:"btn-icon"}),ge(" 置顶")]),_:1}),N(Ve,{style:{flex:"1"},onClick:V[1]||(V[1]=B=>v(p)(v(n),v(Tt).BOTTOM))},{default:U(()=>[N(Y,{class:"btn-icon"}),ge(" 置底")]),_:1})]),_:1}),N(dt,{class:"row"},{default:U(()=>[N(Ve,{style:{flex:"1"},onClick:V[2]||(V[2]=B=>v(p)(v(n),v(Tt).UP))},{default:U(()=>[N(F,{class:"btn-icon"}),ge(" 上移")]),_:1}),N(Ve,{style:{flex:"1"},onClick:V[3]||(V[3]=B=>v(p)(v(n),v(Tt).DOWN))},{default:U(()=>[N(C,{class:"btn-icon"}),ge(" 下移")]),_:1})]),_:1}),N(Ce),U2,N(dt,{class:"row"},{default:U(()=>[de((g(),k(Ve,{style:{flex:"1"},onClick:V[4]||(V[4]=B=>v(f)(v(De).LEFT))},{default:U(()=>[N(K)]),_:1})),[[x,"左对齐"]]),de((g(),k(Ve,{style:{flex:"1"},onClick:V[5]||(V[5]=B=>v(f)(v(De).HORIZONTAL))},{default:U(()=>[N(H)]),_:1})),[[x,"水平居中"]]),de((g(),k(Ve,{style:{flex:"1"},onClick:V[6]||(V[6]=B=>v(f)(v(De).RIGHT))},{default:U(()=>[N(Q)]),_:1})),[[x,"右对齐"]])]),_:1}),N(dt,{class:"row"},{default:U(()=>[de((g(),k(Ve,{style:{flex:"1"},onClick:V[7]||(V[7]=B=>v(f)(v(De).TOP))},{default:U(()=>[N(G)]),_:1})),[[x,"上对齐"]]),de((g(),k(Ve,{style:{flex:"1"},onClick:V[8]||(V[8]=B=>v(f)(v(De).VERTICAL))},{default:U(()=>[N($)]),_:1})),[[x,"垂直居中"]]),de((g(),k(Ve,{style:{flex:"1"},onClick:V[9]||(V[9]=B=>v(f)(v(De).BOTTOM))},{default:U(()=>[N(se)]),_:1})),[[x,"下对齐"]])]),_:1}),N(Ce),m("div",Q2,[N(en,{step:5,value:l.value,"onUpdate:value":V[10]||(V[10]=B=>P(B)),style:{width:"45%"}},{prefix:U(()=>[ge(" 水平: ")]),_:1},8,["value"]),F2,N(en,{step:5,value:s.value,"onUpdate:value":V[11]||(V[11]=B=>O(B)),style:{width:"45%"}},{prefix:U(()=>[ge(" 垂直: ")]),_:1},8,["value"])]),v(n).type!=="line"?(g(),I("div",Z2,[N(en,{min:c.value,max:1500,step:5,disabled:R.value,value:a.value,"onUpdate:value":V[12]||(V[12]=B=>S(B)),style:{width:"45%"}},{prefix:U(()=>[ge(" 宽度: ")]),_:1},8,["min","disabled","value"]),["image","shape"].includes(v(n).type)||["elf-audio"].includes(v(n).subtype)?(g(),I(ie,{key:0},[r.value?de((g(),k(Re,{key:0,style:{width:"10%"},class:"icon-btn active",onClick:V[13]||(V[13]=B=>y(!1))},null,512)),[[x,"解除宽高比锁定"]]):de((g(),k(ae,{key:1,style:{width:"10%"},class:"icon-btn",onClick:V[14]||(V[14]=B=>y(!0))},null,512)),[[x,"宽高比锁定"]])],64)):(g(),I("div",A2)),N(en,{min:c.value,max:800,step:5,disabled:d.value||v(n).type==="table",value:i.value,"onUpdate:value":V[15]||(V[15]=B=>X(B)),style:{width:"45%"}},{prefix:U(()=>[ge(" 高度: ")]),_:1},8,["min","disabled","value"])])):z("",!0),["line","elf"].includes(v(n).type)?z("",!0):(g(),I(ie,{key:1},[N(Ce),m("div",K2,[N(en,{min:-180,max:180,step:5,value:u.value,"onUpdate:value":V[16]||(V[16]=B=>M(B)),style:{width:"45%"}},{prefix:U(()=>[ge(" 旋转: ")]),_:1},8,["value"]),_2,m("div",{class:"text-btn",onClick:V[17]||(V[17]=B=>W("-")),style:{width:"24%"}},[N(Pe),ge(" -45°")]),m("div",{class:"text-btn",onClick:V[18]||(V[18]=B=>W("+")),style:{width:"24%"}},[N(Pe,{style:{transform:"rotateY(180deg)"}}),ge(" +45°")])])],64))])}}}),C2=fe(H2,[["__scopeId","data-v-02afcbeb"]]),GR=e=>(Je("data-v-1a98ad93"),e=e(),xe(),e),G2={class:"element-animation-panel"},E2={key:0,class:"element-animation"},w2={class:"type-title"},k2={class:"pool-item-wrapper"},J2=["onMouseenter","onClick"],x2={key:0,class:"mask"},$2={key:1,class:"tip"},D2={class:"sequence-content"},B2={class:"index"},z2={class:"text"},j2={class:"handler"},q2={key:0,class:"configs"},eA={class:"config-item"},tA=GR(()=>m("div",{style:{width:"35%"}},"持续时长:",-1)),nA={class:"config-item"},oA=GR(()=>m("div",{style:{width:"35%"}},"触发方式:",-1)),lA={class:"config-item"},sA=j({__name:"ElementAnimationPanel",setup(e){const t={};for(const K of qi)for(const H of K.children)t[H.value]=H.name;for(const K of er)for(const H of K.children)t[H.value]=H.name;for(const K of tr)for(const H of K.children)t[H.value]=H.name;const n=["in","out","attention"],o=Ue(),{handleElement:l,handleElementId:s}=oe(Xe()),{currentSlide:a,formatedAnimations:i,currentSlideAnimations:u}=oe(o),r=[{key:"in",label:"入场",color:"#68a490"},{key:"out",label:"退场",color:"#d86344"},{key:"attention",label:"强调",color:"#e8b76a"}],c=A("in"),d=A(!1);Oe(()=>s.value,()=>{p.value=!1});const R=A(""),p=A(!1),{addHistorySnapshot:f}=He(),h=_(()=>{const K=[];for(let H=0;H<i.value.length;H++){const Q=i.value[H];for(let G=0;G<Q.animations.length;G++){const $=Q.animations[G],se=a.value.elements.find(Pe=>Pe.id===$.elId);if(!se)continue;const Re=vl[se.type],ae=t[$.effect];K.push({...$,index:G===0?H+1:"",elType:Re,animationEffect:ae})}}return K}),P=_(()=>u.value.filter(Q=>Q.elId===s.value)||[]),O=K=>{const H=u.value.filter(Q=>Q.id!==K);o.updateSlide({animations:H}),f()},L=K=>{const{newIndex:H,oldIndex:Q}=K;if(H===void 0||Q===void 0||H===Q)return;const G=JSON.parse(JSON.stringify(u.value)),$=G[Q];G.splice(Q,1),G.splice(H,0,$),o.updateSlide({animations:G}),f()},S=(K,H,Q)=>{const G=document.querySelector(`#editable-element-${K} [class^=editable-element-]`);if(G){const $=`${Zo}${H}`;document.documentElement.style.setProperty("--animate-duration",`${Q}ms`),G.classList.add(`${Zo}animated`,$);const se=()=>{document.documentElement.style.removeProperty("--animate-duration"),G.classList.remove(`${Zo}animated`,$)};G.addEventListener("animationend",se,{once:!0})}},X=async()=>{d.value=!d.value;for(let K=0;K<h.value.length&&d.value;K++){const H=h.value[K];H.index!==1&&H.trigger!=="meantime"&&await new Promise(Q=>setTimeout(Q,H.duration+100)),S(H.elId,H.effect,H.duration),K>=h.value.length-1&&(d.value=!1)}},M=(K,H)=>{if(H<100||H>5e3)return;const Q=u.value.map(G=>G.id===K?{...G,duration:H}:G);o.updateSlide({animations:Q}),f()},y=(K,H)=>{const Q=u.value.map(G=>G.id===K?{...G,trigger:H}:G);o.updateSlide({animations:Q}),f()},W=(K,H)=>{const Q=u.value.map(se=>se.id===T.value?{...se,type:K,effect:H}:se);o.updateSlide({animations:Q}),p.value=!1,f();const G=u.value.find(se=>se.elId===s.value),$=(G==null?void 0:G.duration)||na;setTimeout(()=>{S(s.value,H,$)},0)},T=A(""),V=(K,H)=>{if(T.value){W(K,H);return}const Q=JSON.parse(JSON.stringify(u.value));Q.push({id:st(10),elId:s.value,type:K,effect:H,duration:na,trigger:th}),o.updateSlide({animations:Q}),p.value=!1,f(),setTimeout(()=>{S(s.value,H,na)},0)},b=A(!1),Y=K=>{K?setTimeout(()=>b.value=!0,600):b.value=!1},F=K=>{p.value=!0,T.value=K,Y(!0)},C={in:qi,out:er,attention:tr};return(K,H)=>{const Q=te("IconEffects"),G=te("IconClick"),$=te("IconPlayOne"),se=te("IconCloseSmall"),Re=ze("tooltip");return g(),I("div",G2,[v(l)?(g(),I("div",E2,[N(Ke,{trigger:"click",value:p.value,"onUpdate:value":[H[3]||(H[3]=ae=>p.value=ae),H[4]||(H[4]=ae=>Y(ae))],style:{width:"100%"}},{content:U(()=>[N(uo,{tabs:r,value:c.value,"onUpdate:value":H[0]||(H[0]=ae=>c.value=ae),tabsStyle:{marginBottom:"20px"},tabStyle:{width:"33.333%"},spaceAround:""},null,8,["value"]),(g(),I(ie,null,me(n,ae=>(g(),I(ie,null,[c.value===ae?(g(),I("div",{class:E(["animation-pool",ae]),key:ae},[(g(!0),I(ie,null,me(C[ae],Pe=>(g(),I("div",{class:"pool-type",key:Pe.name},[m("div",w2,Me(Pe.name)+":",1),m("div",k2,[(g(!0),I(ie,null,me(Pe.children,x=>(g(),I("div",{class:"pool-item",key:x.name,onMouseenter:B=>R.value=x.value,onMouseleave:H[1]||(H[1]=B=>R.value=""),onClick:B=>V(ae,x.value)},[m("div",{class:E(["animation-box",[`${v(Zo)}animated`,`${v(Zo)}fast`,R.value===x.value&&`${v(Zo)}${x.value}`]])},Me(x.name),3)],40,J2))),128))])]))),128)),b.value?z("",!0):(g(),I("div",x2))],2)):z("",!0)],64))),64))]),default:U(()=>[N(Ve,{class:"element-animation-btn",onClick:H[2]||(H[2]=ae=>T.value="")},{default:U(()=>[N(Q,{style:{"margin-right":"5px"}}),ge(" 添加动画 ")]),_:1})]),_:1},8,["value"])])):(g(),I("div",$2,[N(G,{style:{"margin-right":"5px"}}),ge(" 选中画布中的元素添加动画")])),N(Ce),N(v(Oc),{class:"animation-sequence",modelValue:h.value,animation:200,scroll:!0,scrollSensitivity:50,handle:".sequence-content",itemKey:"id",onEnd:L},{item:U(({element:ae})=>{var Pe,x;return[m("div",{class:E(["sequence-item",[ae.type,{active:((Pe=v(l))==null?void 0:Pe.id)===ae.elId}]])},[m("div",D2,[m("div",B2,Me(ae.index),1),m("div",z2,"【"+Me(ae.elType)+"】"+Me(ae.animationEffect),1),m("div",j2,[de(N($,{class:"handler-btn",onClick:B=>S(ae.elId,ae.effect,ae.duration)},null,8,["onClick"]),[[Re,"预览"]]),de(N(se,{class:"handler-btn",onClick:B=>O(ae.id)},null,8,["onClick"]),[[Re,"删除"]])])]),((x=P.value[0])==null?void 0:x.elId)===ae.elId?(g(),I("div",q2,[N(Ce,{margin:16}),m("div",eA,[tA,N(en,{min:500,max:3e3,step:500,value:ae.duration,"onUpdate:value":B=>M(ae.id,B),style:{width:"65%"}},null,8,["value","onUpdate:value"])]),m("div",nA,[oA,N(rt,{value:ae.trigger,"onUpdate:value":B=>y(ae.id,B),style:{width:"65%"},options:[{label:"主动触发",value:"click"},{label:"与上一动画同时",value:"meantime"},{label:"上一动画之后",value:"auto"}]},null,8,["value","onUpdate:value"])]),m("div",lA,[N(Ve,{style:{width:"100%"},onClick:B=>F(ae.id)},{default:U(()=>[ge("更换动画")]),_:2},1032,["onClick"])])])):z("",!0)],2)]}),_:1},8,["modelValue"]),h.value.length>=2?(g(),I(ie,{key:2},[N(Ce),N(Ve,{onClick:H[5]||(H[5]=ae=>X())},{default:U(()=>[ge(Me(d.value?"停止预览":"预览全部"),1)]),_:1})],64)):z("",!0)])}}}),aA=fe(sA,[["__scopeId","data-v-1a98ad93"]]),iA=[{background:"#ffffff",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#5b9bd5","#ed7d31","#a5a5a5","#ffc000","#4472c4","#70ad47"]},{background:"#ffffff",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#83992a","#3c9670","#44709d","#a23b32","#d87728","#deb340"]},{background:"#ffffff",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#e48312","#bd582c","#865640","#9b8357","#c2bc80","#94a088"]},{background:"#ffffff",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#bdc8df","#003fa9","#f5ba00","#ff7567","#7676d9","#923ffc"]},{background:"#ffffff",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#90c225","#54a121","#e6b91e","#e86618","#c42f19","#918756"]},{background:"#ffffff",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#1cade4","#2683c6","#27ced7","#42ba97","#3e8853","#62a39f"]},{background:"#e9efd6",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#a5300f","#de7e18","#9f8351","#728653","#92aa4c","#6aac91"]},{background:"#17444e",fontColor:"#ffffff",fontname:"Microsoft Yahei",colors:["#b01513","#ea6312","#e6b729","#6bab90","#55839a","#9e5d9d"]},{background:"#36234d",fontColor:"#ffffff",fontname:"Microsoft Yahei",colors:["#b31166","#e33d6f","#e45f3c","#e9943a","#9b6bf2","#d63cd0"]},{background:"#247fad",fontColor:"#ffffff",fontname:"Microsoft Yahei",colors:["#052f61","#a50e82","#14967c","#6a9e1f","#e87d37","#c62324"]},{background:"#103f55",fontColor:"#ffffff",fontname:"Microsoft Yahei",colors:["#40aebd","#97e8d5","#a1cf49","#628f3e","#f2df3a","#fcb01c"]},{background:"#242367",fontColor:"#ffffff",fontname:"Microsoft Yahei",colors:["#ac3ec1","#477bd1","#46b298","#90ba4c","#dd9d31","#e25345"]},{background:"#e4b75e",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#f0a22e","#a5644e","#b58b80","#c3986d","#a19574","#c17529"]},{background:"#333333",fontColor:"#ffffff",fontname:"Microsoft Yahei",colors:["#bdc8df","#003fa9","#f5ba00","#ff7567","#7676d9","#923ffc"]}],ER=()=>{const e=Ue(),{slides:t,currentSlide:n,theme:o}=oe(e),{addHistorySnapshot:l}=He(),s=R=>{var y,W,T,V,b,Y,F,C,K;const p=Array.isArray(R)?R:[R],f=[],h=[],P=[],O=[];for(const H of p){if(H.background)if(H.background.type==="solid"&&H.background.color)f.push({area:1,value:H.background.color});else if(H.background.type==="gradient"&&H.background.gradient){const Q=H.background.gradient.colors.length;f.push(...H.background.gradient.colors.map(G=>({area:1/Q,value:G.color})))}else f.push({area:1,value:o.value.backgroundColor});for(const Q of H.elements){const G=Q.width;let $=0;if(Q.type==="line"){const[Re,ae]=Q.start,[Pe,x]=Q.end;$=Math.sqrt(Math.pow(Math.abs(Re-Pe),2)+Math.pow(Math.abs(ae-x),2))}else $=Q.height;const se=G*$;if(Q.type==="shape"||Q.type==="text"){if(Q.fill&&h.push({area:se,value:Q.fill}),Q.type==="shape"&&Q.gradient){const ce=Q.gradient.colors.length;h.push(...Q.gradient.colors.map(q=>({area:1/ce*se,value:q.color})))}const Re=(Q.type==="shape"?(y=Q.text)==null?void 0:y.content:Q.content)||"";if(!Re)continue;const ae=Re.replace(/<[^>]+>/g,"").replace(/\s*/g,""),Pe=Re.match(/<[^>]+color: .+?<\/.+?>/g),x=Re.match(/<[^>]+font-family: .+?<\/.+?>/g);let B=1,Ie=1;if(Pe)for(const ce of Pe){const q=ce.match(/color: (.+?);/);if(!q)continue;const ne=ce.replace(/<[^>]+>/g,"").replace(/\s*/g,""),Se=q[1],w=ne.length/ae.length;B=B-w,P.push({area:se*w,value:Se})}if(x)for(const ce of x){const q=ce.match(/font-family: (.+?);/);if(!q)continue;const ne=ce.replace(/<[^>]+>/g,"").replace(/\s*/g,""),Se=q[1],w=ne.length/ae.length;Ie=Ie-w,O.push({area:se*w,value:Se})}if(B){const q=(Q.type==="shape"?(W=Q.text)==null?void 0:W.defaultColor:Q.defaultColor)||o.value.fontColor;P.push({area:se*B,value:q})}if(Ie){const q=(Q.type==="shape"?(T=Q.text)==null?void 0:T.defaultFontName:Q.defaultFontName)||o.value.fontName;O.push({area:se*Ie,value:q})}}else if(Q.type==="table"){const Re=Q.data.length*Q.data[0].length;let ae=0;for(const Pe of Q.data)for(const x of Pe)if((V=x.style)!=null&&V.backcolor&&(ae+=1,h.push({area:se/Re,value:(b=x.style)==null?void 0:b.backcolor})),x.text){const B=x.text.length>=10?1:x.text.length/10;(Y=x.style)!=null&&Y.color&&P.push({area:se/Re*B,value:(F=x.style)==null?void 0:F.color}),(C=x.style)!=null&&C.fontname&&P.push({area:se/Re*B,value:(K=x.style)==null?void 0:K.fontname})}if(Q.theme){const Pe=1-ae/Re;h.push({area:se*Pe,value:Q.theme.color})}}else Q.type==="chart"?(Q.fill&&h.push({area:se*.5,value:Q.fill}),h.push({area:se*.5,value:Q.themeColors[0]})):Q.type==="line"?h.push({area:se,value:Q.color}):Q.type==="elf"&&Q.subtype==="elf-audio"?h.push({area:se,value:Q.color}):Q.type==="latex"&&P.push({area:se,value:Q.color})}}const L={};for(const H of f){const Q=ke(H.value).toRgbString();Q!=="rgba(0, 0, 0, 0)"&&(L[Q]?L[Q]+=H.area:L[Q]=H.area)}const S={};for(const H of h){const Q=ke(H.value).toRgbString();Q!=="rgba(0, 0, 0, 0)"&&(S[Q]?S[Q]+=H.area:S[Q]=H.area)}const X={};for(const H of P){const Q=ke(H.value).toRgbString();Q!=="rgba(0, 0, 0, 0)"&&(X[Q]?X[Q]+=H.area:X[Q]=H.area)}const M={};for(const H of O)M[H.value]?M[H.value]+=H.area:M[H.value]=H.area;return{backgroundColors:Object.keys(L).sort((H,Q)=>L[Q]-L[H]),themeColors:Object.keys(S).sort((H,Q)=>S[Q]-S[H]),fontColors:Object.keys(X).sort((H,Q)=>X[Q]-X[H]),fontNames:Object.keys(M).sort((H,Q)=>M[Q]-M[H])}},a=R=>{const p=[];for(const f of R.elements){if(f.type==="shape"&&ke(f.fill).getAlpha()!==0){const h=ke(f.fill).toRgbString();p.includes(h)||p.push(h)}if(f.type==="text"&&f.fill&&ke(f.fill).getAlpha()!==0){const h=ke(f.fill).toRgbString();p.includes(h)||p.push(h)}if(f.type==="table"&&f.theme&&ke(f.theme.color).getAlpha()!==0){const h=ke(f.theme.color).toRgbString();p.includes(h)||p.push(h)}if(f.type==="chart"&&f.themeColors[0]&&ke(f.themeColors[0]).getAlpha()!==0){const h=ke(f.themeColors[0]).toRgbString();p.includes(h)||p.push(h)}if(f.type==="line"&&ke(f.color).getAlpha()!==0){const h=ke(f.color).toRgbString();p.includes(h)||p.push(h)}if(f.type==="elf"&&f.subtype==="elf-audio"&&ke(f.color).getAlpha()!==0){const h=ke(f.color).toRgbString();p.includes(h)||p.push(h)}}return p},i=(R,p)=>{const f=a(R),h={};if(f.length>p.length){const O=ke(p[0]).analogous(f.length-p.length+10).map(L=>L.toHexString()).slice(1);p.push(...O)}for(let P=0;P<f.length;P++)h[f[P]]=p[P];return h},u=(R,p)=>{const f=i(R,p.colors);(!R.background||R.background.type!=="image")&&(R.background={type:"solid",color:p.background});for(const h of R.elements){if(h.type==="shape"&&(h.fill=f[ke(h.fill).toRgbString()]||h.fill,h.gradient&&delete h.gradient),h.type==="text"&&(h.fill&&(h.fill=f[ke(h.fill).toRgbString()]||h.fill),h.defaultColor=p.fontColor,h.defaultFontName=p.fontname),h.type==="table"){h.theme&&(h.theme.color=f[ke(h.theme.color).toRgbString()]||h.theme.color);for(const P of h.data)for(const O of P)O.style&&(O.style.color=p.fontColor,O.style.fontname=p.fontname)}h.type==="chart"&&(h.themeColors=[f[ke(h.themeColors[0]).toRgbString()]],h.textColor=p.fontColor),h.type==="line"&&(h.color=f[ke(h.color).toRgbString()]||h.color),h.type==="elf"&&h.subtype==="elf-audio"&&(h.color=f[ke(h.color).toRgbString()]||h.color),h.type==="latex"&&(h.color=p.fontColor)}};return{getSlidesThemeStyles:s,applyPresetThemeToSingleSlide:R=>{const p=JSON.parse(JSON.stringify(n.value));u(p,R),e.updateSlide({background:p.background,elements:p.elements}),l()},applyPresetThemeToAllSlides:R=>{const p=JSON.parse(JSON.stringify(t.value));for(const f of p)u(f,R);e.setTheme({backgroundColor:R.background,themeColor:R.colors[0],fontColor:R.fontColor,fontName:R.fontname}),e.setSlides(p),l()},applyThemeToAllSlides:(R=!1)=>{const p=JSON.parse(JSON.stringify(t.value)),{themeColor:f,backgroundColor:h,fontColor:P,fontName:O,outline:L,shadow:S}=o.value;for(const X of p){(!X.background||X.background.type!=="image")&&(X.background={type:"solid",color:h});for(const M of X.elements)if(R&&("outline"in M&&M.outline&&(M.outline=L),"shadow"in M&&M.shadow&&(M.shadow=S)),M.type==="shape")M.fill=f,M.gradient&&delete M.gradient;else if(M.type==="line")M.color=f;else if(M.type==="text")M.defaultColor=P,M.defaultFontName=O,M.fill&&(M.fill=f);else if(M.type==="table"){M.theme&&(M.theme.color=f);for(const y of M.data)for(const W of y)W.style&&(W.style.color=P,W.style.fontname=O)}else M.type==="chart"?(M.themeColors=[f],M.textColor=P):M.type==="latex"?M.color=P:M.type==="elf"&&M.subtype==="elf-audio"&&(M.color=f)}e.setSlides(p),l()}}},zs=e=>(Je("data-v-6eb81523"),e=e(),xe(),e),rA={class:"theme-styles-extract"},uA={class:"content"},cA={class:"config-item"},dA=zs(()=>m("div",{class:"label"},"字体:",-1)),RA={class:"values"},fA={class:"handler"},pA=["onClick"],hA=["onClick"],vA={class:"config-item"},mA=zs(()=>m("div",{class:"label"},"文字颜色:",-1)),MA={class:"values"},gA={class:"handler"},SA=["onClick"],OA=["onClick"],PA={class:"config-item"},NA=zs(()=>m("div",{class:"label"},"背景颜色:",-1)),XA={class:"values"},TA={class:"handler"},VA=["onClick"],yA=["onClick"],LA={class:"config-item"},bA=zs(()=>m("div",{class:"label"},"主题色:",-1)),IA={class:"values"},YA={class:"handler"},WA=["onClick"],UA=["onClick"],QA={class:"btns"},FA=j({__name:"ThemeStylesExtract",emits:["close"],setup(e,{emit:t}){const n=t,o=Ue(),{slides:l,currentSlide:s}=oe(o),{getSlidesThemeStyles:a}=ER(),i=[{key:"single",label:"从当前页中提取"},{key:"all",label:"从全部幻灯片提取"}],u=A("single"),r=A({});Ee(()=>{const f={};for(const h of Mp)f[h.value]=h.label;for(const h of Ll)f[h.value]=h.label;r.value=f});const c=A({backgroundColors:[],themeColors:[],fontColors:[],fontNames:[]}),d=A({backgroundColor:0,themeColor:0,fontColor:0,fontName:0});Oe(u,()=>{u.value==="single"?c.value=a(s.value):c.value=a(l.value)}),Ee(()=>{c.value=a(s.value)});const R=f=>{o.setTheme(f)},p=()=>{o.setTheme({backgroundColor:c.value.backgroundColors[d.value.backgroundColor],themeColor:c.value.themeColors[d.value.themeColor],fontColor:c.value.fontColors[d.value.fontColor],fontName:c.value.fontNames[d.value.fontName]}),n("close")};return(f,h)=>(g(),I("div",rA,[N(uo,{tabs:i,value:u.value,"onUpdate:value":h[0]||(h[0]=P=>u.value=P),tabsStyle:{marginBottom:"12px"},tabStyle:{padding:"8px 12px"}},null,8,["value"]),m("div",uA,[m("div",cA,[dA,m("div",RA,[(g(!0),I(ie,null,me(c.value.fontNames,(P,O)=>(g(),I("div",{class:"value-wrap",key:P},[m("div",{class:"value",style:ee({fontFamily:P})},Me(r.value[P]||P),5),m("div",fA,[m("div",{class:E(["state",{active:d.value.fontName===O}])},"√",2),m("div",{class:"config-btn",onClick:L=>d.value.fontName=O},"选择",8,pA),m("div",{class:"config-btn",onClick:L=>{R({fontName:P}),d.value.fontName=O}},"配置到主题",8,hA)])]))),128))])]),m("div",vA,[mA,m("div",MA,[(g(!0),I(ie,null,me(c.value.fontColors,(P,O)=>(g(),I("div",{class:"value-wrap",key:P},[m("div",{class:"value",style:ee({backgroundColor:P})},null,4),m("div",gA,[m("div",{class:E(["state",{active:d.value.fontColor===O}])},"√",2),m("div",{class:"config-btn",onClick:L=>d.value.fontColor=O},"选择",8,SA),m("div",{class:"config-btn",onClick:L=>{R({fontColor:P}),d.value.fontColor=O}},"配置到主题",8,OA)])]))),128))])]),m("div",PA,[NA,m("div",XA,[(g(!0),I(ie,null,me(c.value.backgroundColors,(P,O)=>(g(),I("div",{class:"value-wrap",key:P},[m("div",{class:"value",style:ee({backgroundColor:P})},null,4),m("div",TA,[m("div",{class:E(["state",{active:d.value.backgroundColor===O}])},"√",2),m("div",{class:"config-btn",onClick:L=>d.value.backgroundColor=O},"选择",8,VA),m("div",{class:"config-btn",onClick:L=>{R({backgroundColor:P}),d.value.backgroundColor=O}},"配置到主题",8,yA)])]))),128))])]),m("div",LA,[bA,m("div",IA,[(g(!0),I(ie,null,me(c.value.themeColors,(P,O)=>(g(),I("div",{class:"value-wrap",key:P},[m("div",{class:"value",style:ee({backgroundColor:P})},null,4),m("div",YA,[m("div",{class:E(["state",{active:d.value.themeColor===O}])},"√",2),m("div",{class:"config-btn",onClick:L=>d.value.themeColor=O},"选择",8,WA),m("div",{class:"config-btn",onClick:L=>{R({themeColor:P}),d.value.themeColor=O}},"配置到主题",8,UA)])]))),128))])])]),m("div",QA,[N(Ve,{class:"btn",type:"primary",onClick:h[1]||(h[1]=P=>p())},{default:U(()=>[ge("将选中配置保存为主题")]),_:1})])]))}}),ZA=fe(FA,[["__scopeId","data-v-6eb81523"]]),Nt=e=>(Je("data-v-6fa8d31a"),e=e(),xe(),e),AA={class:"slide-design-panel"},KA=Nt(()=>m("div",{class:"title"},"背景填充",-1)),_A={class:"row"},HA=Nt(()=>m("div",{style:{width:"10px"}},null,-1)),CA={key:0,class:"background-image-wrapper"},GA={class:"background-image"},EA={key:1,class:"background-gradient-wrapper"},wA={class:"row"},kA={class:"row"},JA=Nt(()=>m("div",{style:{width:"40%"}},"当前色块:",-1)),xA={key:0,class:"row"},$A=Nt(()=>m("div",{style:{width:"40%"}},"渐变角度:",-1)),DA={class:"row"},BA={class:"row"},zA=Nt(()=>m("div",{style:{width:"40%"}},"画布尺寸:",-1)),jA={class:"title"},qA=Nt(()=>m("span",null,"全局主题",-1)),eK=Nt(()=>m("span",{class:"text"},"更多",-1)),tK={class:"row"},nK=Nt(()=>m("div",{style:{width:"40%"}},"字体:",-1)),oK={class:"row"},lK=Nt(()=>m("div",{style:{width:"40%"}},"字号:",-1)),sK={class:"row"},aK=Nt(()=>m("div",{style:{width:"40%"}},"字体颜色:",-1)),iK={class:"row"},rK=Nt(()=>m("div",{style:{width:"40%"}},"背景颜色:",-1)),uK={class:"row"},cK=Nt(()=>m("div",{style:{width:"40%"}},"主题色:",-1)),dK={class:"row"},RK=Nt(()=>m("div",{style:{width:"40%"}},"边框样式:",-1)),fK={class:"row"},pK=Nt(()=>m("div",{style:{width:"40%"}},"边框颜色:",-1)),hK={class:"row"},vK=Nt(()=>m("div",{style:{width:"40%"}},"边框粗细:",-1)),mK={class:"row",style:{height:"30px"}},MK=Nt(()=>m("div",{style:{width:"40%"}},"水平阴影:",-1)),gK={class:"row",style:{height:"30px"}},SK=Nt(()=>m("div",{style:{width:"40%"}},"垂直阴影:",-1)),OK={class:"row",style:{height:"30px"}},PK=Nt(()=>m("div",{style:{width:"40%"}},"模糊距离:",-1)),NK={class:"row"},XK=Nt(()=>m("div",{style:{width:"40%"}},"阴影颜色:",-1)),TK={class:"row"},VK={class:"row"},yK=Nt(()=>m("div",{class:"title"},"预置主题",-1)),LK={class:"theme-list"},bK={class:"theme-item-content"},IK={class:"colors"},YK={class:"btns"},WK=j({__name:"SlideDesignPanel",setup(e){const t=Ue(),{availableFonts:n}=oe(Xe()),{slides:o,currentSlide:l,viewportRatio:s,theme:a}=oe(t),i=A(!1),u=A(!1),r=A(0),c=_(()=>l.value.background?l.value.background:{type:"solid",value:"#fff"}),{addHistorySnapshot:d}=He(),{applyPresetThemeToSingleSlide:R,applyPresetThemeToAllSlides:p,applyThemeToAllSlides:f}=ER(),h=V=>{if(V==="solid"){const b={...c.value,type:"solid",color:c.value.color||"#fff"};t.updateSlide({background:b})}else if(V==="image"){const b={...c.value,type:"image",image:c.value.image||"",imageSize:c.value.imageSize||"cover"};t.updateSlide({background:b})}else{const b={...c.value,type:"gradient",gradient:c.value.gradient||{type:"linear",colors:[{pos:0,color:"#fff"},{pos:100,color:"#fff"}],rotate:0}};r.value=0,t.updateSlide({background:b})}d()},P=V=>{t.updateSlide({background:{...c.value,...V}}),d()},O=V=>{P({gradient:{...c.value.gradient,...V}})},L=V=>{const b=c.value.gradient.colors.map((Y,F)=>F===r.value?{...Y,color:V}:Y);O({colors:b})},S=V=>{P({...c.value,...V})},X=V=>{const b=V[0];b&&Wo(b).then(Y=>S({image:Y}))},M=()=>{const V=o.value.map(b=>({...b,background:l.value.background}));t.setSlides(V),d()},y=V=>{t.setTheme(V)},W=V=>{t.setViewportRatio(V)},T=["24px","28px","32px","36px","40px","44px","48px","56px","64px","72px","80px","88px","96px","108px","120px","132px","144px","152px","160px","176px","192px","208px","224px","240px"];return(V,b)=>{var H,Q,G;const Y=te("IconPlus"),F=te("IconDown"),C=te("IconRight"),K=te("IconAddText");return g(),I(ie,null,[m("div",AA,[KA,m("div",_A,[N(rt,{style:{flex:"1"},value:c.value.type,"onUpdate:value":b[0]||(b[0]=$=>h($)),options:[{label:"纯色填充",value:"solid"},{label:"图片填充",value:"image"},{label:"渐变填充",value:"gradient"}]},null,8,["value"]),HA,c.value.type==="solid"?(g(),k(Ke,{key:0,trigger:"click",style:{flex:"1"}},{content:U(()=>[N(Be,{modelValue:c.value.color,"onUpdate:modelValue":b[1]||(b[1]=$=>P({color:$}))},null,8,["modelValue"])]),default:U(()=>[N(ht,{color:c.value.color||"#fff"},null,8,["color"])]),_:1})):c.value.type==="image"?(g(),k(rt,{key:1,style:{flex:"1"},value:c.value.imageSize||"cover","onUpdate:value":b[2]||(b[2]=$=>S({imageSize:$})),options:[{label:"缩放",value:"contain"},{label:"拼贴",value:"repeat"},{label:"缩放铺满",value:"cover"}]},null,8,["value"])):(g(),k(rt,{key:2,style:{flex:"1"},value:((H=c.value.gradient)==null?void 0:H.type)||"","onUpdate:value":b[3]||(b[3]=$=>O({type:$})),options:[{label:"线性渐变",value:"linear"},{label:"径向渐变",value:"radial"}]},null,8,["value"]))]),c.value.type==="image"?(g(),I("div",CA,[N(Ul,{onChange:b[4]||(b[4]=$=>X($))},{default:U(()=>[m("div",GA,[m("div",{class:"content",style:ee({backgroundImage:`url(${c.value.image})`})},[N(Y)],4)])]),_:1})])):z("",!0),c.value.type==="gradient"?(g(),I("div",EA,[m("div",wA,[N(AR,{value:((Q=c.value.gradient)==null?void 0:Q.colors)||[],"onUpdate:value":b[5]||(b[5]=$=>O({colors:$})),"onUpdate:index":b[6]||(b[6]=$=>r.value=$)},null,8,["value"])]),m("div",kA,[JA,N(Ke,{trigger:"click",style:{width:"60%"}},{content:U(()=>[N(Be,{modelValue:c.value.gradient.colors[r.value].color,"onUpdate:modelValue":b[7]||(b[7]=$=>L($))},null,8,["modelValue"])]),default:U(()=>[N(ht,{color:c.value.gradient.colors[r.value].color},null,8,["color"])]),_:1})]),((G=c.value.gradient)==null?void 0:G.type)==="linear"?(g(),I("div",xA,[$A,N(Vn,{min:0,max:360,step:15,value:c.value.gradient.rotate||0,"onUpdate:value":b[8]||(b[8]=$=>O({rotate:$})),style:{width:"60%"}},null,8,["value"])])):z("",!0)])):z("",!0),m("div",DA,[N(Ve,{style:{flex:"1"},onClick:b[9]||(b[9]=$=>M())},{default:U(()=>[ge("应用背景到全部")]),_:1})]),N(Ce),m("div",BA,[zA,N(rt,{style:{width:"60%"},value:v(s),"onUpdate:value":b[10]||(b[10]=$=>W($)),options:[{label:"宽屏 16 : 9",value:.5625},{label:"宽屏 16 : 10",value:.625},{label:"标准 4 : 3",value:.75},{label:"纸张 A3 / A4",value:.70710678},{label:"竖向 A3 / A4",value:1.41421356}]},null,8,["value"])]),N(Ce),m("div",jA,[qA,m("span",{class:"more",onClick:b[11]||(b[11]=$=>i.value=!i.value)},[eK,i.value?(g(),k(F,{key:0})):(g(),k(C,{key:1}))])]),m("div",tK,[nK,N(rt,{style:{width:"60%"},value:v(a).fontName,search:"",searchLabel:"搜索字体","onUpdate:value":b[12]||(b[12]=$=>y({fontName:$})),options:[...v(n),...v(Ll)]},null,8,["value","options"])]),m("div",oK,[lK,N(rt,{style:{width:"60%"},value:v(a).fontSize,search:"",searchLabel:"搜索字号","onUpdate:value":b[13]||(b[13]=$=>y({fontSize:$})),options:T.map($=>({label:$,value:$}))},{icon:U(()=>[N(K)]),_:1},8,["value","options"])]),m("div",sK,[aK,N(Ke,{trigger:"click",style:{width:"60%"}},{content:U(()=>[N(Be,{modelValue:v(a).fontColor,"onUpdate:modelValue":b[14]||(b[14]=$=>y({fontColor:$}))},null,8,["modelValue"])]),default:U(()=>[N(ht,{color:v(a).fontColor},null,8,["color"])]),_:1})]),m("div",iK,[rK,N(Ke,{trigger:"click",style:{width:"60%"}},{content:U(()=>[N(Be,{modelValue:v(a).backgroundColor,"onUpdate:modelValue":b[15]||(b[15]=$=>y({backgroundColor:$}))},null,8,["modelValue"])]),default:U(()=>[N(ht,{color:v(a).backgroundColor},null,8,["color"])]),_:1})]),m("div",uK,[cK,N(Ke,{trigger:"click",style:{width:"60%"}},{content:U(()=>[N(Be,{modelValue:v(a).themeColor,"onUpdate:modelValue":b[16]||(b[16]=$=>y({themeColor:$}))},null,8,["modelValue"])]),default:U(()=>[N(ht,{color:v(a).themeColor},null,8,["color"])]),_:1})]),i.value?(g(),I(ie,{key:2},[m("div",dK,[RK,N(rt,{style:{width:"60%"},value:v(a).outline.style||"","onUpdate:value":b[17]||(b[17]=$=>y({outline:{...v(a).outline,style:$}})),options:[{label:"实线边框",value:"solid"},{label:"虚线边框",value:"dashed"},{label:"点线边框",value:"dotted"}]},null,8,["value"])]),m("div",fK,[pK,N(Ke,{trigger:"click",style:{width:"60%"}},{content:U(()=>[N(Be,{modelValue:v(a).outline.color,"onUpdate:modelValue":b[18]||(b[18]=$=>y({outline:{...v(a).outline,color:$}}))},null,8,["modelValue"])]),default:U(()=>[N(ht,{color:v(a).outline.color||"#000"},null,8,["color"])]),_:1})]),m("div",hK,[vK,N(en,{value:v(a).outline.width||0,"onUpdate:value":b[19]||(b[19]=$=>y({outline:{...v(a).outline,width:$}})),style:{width:"60%"}},null,8,["value"])]),m("div",mK,[MK,N(Vn,{style:{width:"60%"},min:-10,max:10,step:1,value:v(a).shadow.h,"onUpdate:value":b[20]||(b[20]=$=>y({shadow:{...v(a).shadow,h:$}}))},null,8,["value"])]),m("div",gK,[SK,N(Vn,{style:{width:"60%"},min:-10,max:10,step:1,value:v(a).shadow.v,"onUpdate:value":b[21]||(b[21]=$=>y({shadow:{...v(a).shadow,v:$}}))},null,8,["value"])]),m("div",OK,[PK,N(Vn,{style:{width:"60%"},min:1,max:20,step:1,value:v(a).shadow.blur,"onUpdate:value":b[22]||(b[22]=$=>y({shadow:{...v(a).shadow,blur:$}}))},null,8,["value"])]),m("div",NK,[XK,N(Ke,{trigger:"click",style:{width:"60%"}},{content:U(()=>[N(Be,{modelValue:v(a).shadow.color,"onUpdate:modelValue":b[23]||(b[23]=$=>y({shadow:{...v(a).shadow,color:$}}))},null,8,["modelValue"])]),default:U(()=>[N(ht,{color:v(a).shadow.color},null,8,["color"])]),_:1})])],64)):z("",!0),m("div",TK,[N(Ve,{style:{flex:"1"},onClick:b[24]||(b[24]=$=>v(f)(i.value))},{default:U(()=>[ge("应用主题到全部")]),_:1})]),m("div",VK,[N(Ve,{style:{flex:"1"},onClick:b[25]||(b[25]=$=>u.value=!0)},{default:U(()=>[ge("从幻灯片提取主题")]),_:1})]),N(Ce),yK,m("div",LK,[(g(!0),I(ie,null,me(v(iA),($,se)=>(g(),I("div",{class:"theme-item",key:se,style:ee({backgroundColor:$.background,fontFamily:$.fontname})},[m("div",bK,[m("div",{class:"text",style:ee({color:$.fontColor})},"文字 Aa",4),m("div",IK,[(g(!0),I(ie,null,me($.colors,(Re,ae)=>(g(),I("div",{class:"color-block",key:ae,style:ee({backgroundColor:Re})},null,4))),128))]),m("div",YK,[N(Ve,{type:"primary",size:"small",onClick:Re=>v(R)($)},{default:U(()=>[ge("应用")]),_:2},1032,["onClick"]),N(Ve,{type:"primary",size:"small",style:{"margin-top":"3px"},onClick:Re=>v(p)($)},{default:U(()=>[ge("应用全局")]),_:2},1032,["onClick"])])])],4))),128))])]),N(tl,{visible:u.value,"onUpdate:visible":b[27]||(b[27]=$=>u.value=$),width:320,onClosed:b[28]||(b[28]=$=>u.value=!1)},{default:U(()=>[N(ZA,{onClose:b[26]||(b[26]=$=>u.value=!1)})]),_:1},8,["visible"])],64)}}}),UK=fe(WK,[["__scopeId","data-v-6fa8d31a"]]),QK={class:"slide-animation-panel"},FK={class:"animation-pool"},ZK=["onClick"],AK={class:"animation-text"},KK=j({__name:"SlideAnimationPanel",setup(e){const t=Ue(),{slides:n,currentSlide:o}=oe(t),l=_(()=>o.value.turningMode||"slideY"),s=nh,{addHistorySnapshot:a}=He(),i=r=>{r!==l.value&&(t.updateSlide({turningMode:r}),a())},u=()=>{const r=n.value.map(c=>({...c,turningMode:o.value.turningMode}));t.setSlides(r),Wt.success("已应用到全部"),a()};return(r,c)=>(g(),I("div",QK,[m("div",FK,[(g(!0),I(ie,null,me(v(s),d=>(g(),I("div",{class:E(["animation-item",{active:l.value===d.value}]),key:d.label,onClick:R=>i(d.value)},[m("div",{class:E(["animation-block",d.value])},null,2),m("div",AK,Me(d.label),1)],10,ZK))),128))]),N(Ve,{style:{width:"100%"},onClick:c[0]||(c[0]=d=>u())},{default:U(()=>[ge("应用到全部")]),_:1})]))}}),_K=fe(KK,[["__scopeId","data-v-a402b7ad"]]),HK=()=>{const e=Ue(),{activeElementIdList:t,activeElementList:n}=oe(Xe()),{currentSlide:o}=oe(e),{addHistorySnapshot:l}=He();return{alignActiveElement:a=>{const{minX:i,maxX:u,minY:r,maxY:c}=An(n.value),d=JSON.parse(JSON.stringify(o.value.elements)),R={};for(const p of n.value)if(p.groupId&&!R[p.groupId]){const f=n.value.filter(h=>h.groupId===p.groupId);R[p.groupId]=An(f)}if(a===De.LEFT)d.forEach(p=>{if(t.value.includes(p.id))if(p.groupId){const h=R[p.groupId].minX-i;p.left=p.left-h}else if("rotate"in p&&p.rotate){const{offsetX:f}=wo({left:p.left,top:p.top,width:p.width,height:p.height,rotate:p.rotate});p.left=i-f}else p.left=i});else if(a===De.RIGHT)d.forEach(p=>{if(t.value.includes(p.id))if(p.groupId){const h=R[p.groupId].maxX-u;p.left=p.left-h}else{const f=p.type==="line"?Math.max(p.start[0],p.end[0]):p.width;if("rotate"in p&&p.rotate){const{offsetX:h}=wo({left:p.left,top:p.top,width:p.width,height:p.height,rotate:p.rotate});p.left=u-f+h}else p.left=u-f}});else if(a===De.TOP)d.forEach(p=>{if(t.value.includes(p.id))if(p.groupId){const h=R[p.groupId].minY-r;p.top=p.top-h}else if("rotate"in p&&p.rotate){const{offsetY:f}=wo({left:p.left,top:p.top,width:p.width,height:p.height,rotate:p.rotate});p.top=r-f}else p.top=r});else if(a===De.BOTTOM)d.forEach(p=>{if(t.value.includes(p.id))if(p.groupId){const h=R[p.groupId].maxY-c;p.top=p.top-h}else{const f=p.type==="line"?Math.max(p.start[1],p.end[1]):p.height;if("rotate"in p&&p.rotate){const{offsetY:h}=wo({left:p.left,top:p.top,width:p.width,height:p.height,rotate:p.rotate});p.top=c-f+h}else p.top=c-f}});else if(a===De.HORIZONTAL){const p=(i+u)/2;d.forEach(f=>{if(t.value.includes(f.id))if(f.groupId){const h=R[f.groupId],O=(h.maxX+h.minX)/2-p;f.left=f.left-O}else{const h=f.type==="line"?Math.max(f.start[0],f.end[0]):f.width;f.left=p-h/2}})}else if(a===De.VERTICAL){const p=(r+c)/2;d.forEach(f=>{if(t.value.includes(f.id))if(f.groupId){const h=R[f.groupId],O=(h.maxY+h.minY)/2-p;f.top=f.top-O}else{const h=f.type==="line"?Math.max(f.start[1],f.end[1]):f.height;f.top=p-h/2}})}e.updateSlide({elements:d}),l()}}},CK=()=>{const e=Ue(),{activeElementIdList:t,activeElementList:n}=oe(Xe()),{currentSlide:o}=oe(e),{addHistorySnapshot:l}=He();return{displayItemCount:_(()=>{let u=0;const r=[];for(const c of n.value)c.groupId?r.includes(c.groupId)||(r.push(c.groupId),u+=1):u+=1;return u}),uniformHorizontalDisplay:()=>{const{minX:u,maxX:r}=An(n.value),c=JSON.parse(JSON.stringify(n.value)),d=JSON.parse(JSON.stringify(o.value.elements)),R=[];let p=[];for(const M of c)if(M.groupId)p.find(W=>W.groupId===M.groupId)?p=p.map(W=>W.groupId===M.groupId?{...W,els:[...W.els,M]}:W):p.push({groupId:M.groupId,els:[M]});else{const{minX:y,maxX:W}=Fn(M);R.push({min:y,max:W,el:M})}const f=[];for(const M of p){const{minX:y,maxX:W}=An(M.els);f.push({min:y,max:W,els:M.els})}const h=[...R,...f];h.sort((M,y)=>M.min-y.min);let P=0;for(const M of h){const y=M.max-M.min;P+=y}const O=(r-u-P)/(h.length-1),L=[],S=h[0];let X={min:S.min,max:S.max};if("el"in S)L.push({pos:S.min,el:S.el});else for(const M of S.els){const{minX:y}=Fn(M);L.push({pos:y,el:M})}for(let M=1;M<h.length;M++){const y=h[M],W=X.max-X.min,T=X.min+W+O,V=y.max-y.min;if(X={min:T,max:T+V},"el"in y)L.push({pos:T,el:y.el});else for(const b of y.els){const{minX:Y}=Fn(b),F=Y-y.min;L.push({pos:T+F,el:b})}}for(const M of d)if(t.value.includes(M.id)){for(const y of L)if(y.el.id===M.id)if("rotate"in M&&M.rotate){const{offsetX:W}=wo({left:M.left,top:M.top,width:M.width,height:M.height,rotate:M.rotate});M.left=y.pos-W}else M.left=y.pos}e.updateSlide({elements:d}),l()},uniformVerticalDisplay:()=>{const{minY:u,maxY:r}=An(n.value),c=JSON.parse(JSON.stringify(n.value)),d=JSON.parse(JSON.stringify(o.value.elements)),R=[];let p=[];for(const M of c)if(M.groupId)p.find(W=>W.groupId===M.groupId)?p=p.map(W=>W.groupId===M.groupId?{...W,els:[...W.els,M]}:W):p.push({groupId:M.groupId,els:[M]});else{const{minY:y,maxY:W}=Fn(M);R.push({min:y,max:W,el:M})}const f=[];for(const M of p){const{minY:y,maxY:W}=An(M.els);f.push({min:y,max:W,els:M.els})}const h=[...R,...f];h.sort((M,y)=>M.min-y.min);let P=0;for(const M of h){const y=M.max-M.min;P+=y}const O=(r-u-P)/(h.length-1),L=[],S=h[0];let X={min:S.min,max:S.max};if("el"in S)L.push({pos:S.min,el:S.el});else for(const M of S.els){const{minY:y}=Fn(M);L.push({pos:y,el:M})}for(let M=1;M<h.length;M++){const y=h[M],W=X.max-X.min,T=X.min+W+O,V=y.max-y.min;if(X={min:T,max:T+V},"el"in y)L.push({pos:T,el:y.el});else for(const b of y.els){const{minY:Y}=Fn(b),F=Y-y.min;L.push({pos:T+F,el:b})}}for(const M of d)if(t.value.includes(M.id)){for(const y of L)if(y.el.id===M.id)if("rotate"in M&&M.rotate){const{offsetY:W}=wo({left:M.left,top:M.top,width:M.width,height:M.height,rotate:M.rotate});M.top=y.pos-W}else M.top=y.pos}e.updateSlide({elements:d}),l()}}},GK={class:"multi-position-panel"},EK=j({__name:"MultiPositionPanel",setup(e){const{canCombine:t,combineElements:n,uncombineElements:o}=Pi(),{alignActiveElement:l}=HK(),{alignElementToCanvas:s}=Ti(),{displayItemCount:a,uniformHorizontalDisplay:i,uniformVerticalDisplay:u}=CK(),r=c=>{t.value?l(c):s(c)};return(c,d)=>{const R=te("IconAlignLeft"),p=te("IconAlignHorizontally"),f=te("IconAlignRight"),h=te("IconAlignTop"),P=te("IconAlignVertically"),O=te("IconAlignBottom"),L=te("IconGroup"),S=te("IconUngroup"),X=ze("tooltip");return g(),I("div",GK,[N(dt,{class:"row"},{default:U(()=>[de((g(),k(Ve,{style:{flex:"1"},onClick:d[0]||(d[0]=M=>r(v(De).LEFT))},{default:U(()=>[N(R)]),_:1})),[[X,"左对齐"]]),de((g(),k(Ve,{style:{flex:"1"},onClick:d[1]||(d[1]=M=>r(v(De).HORIZONTAL))},{default:U(()=>[N(p)]),_:1})),[[X,"水平居中"]]),de((g(),k(Ve,{style:{flex:"1"},onClick:d[2]||(d[2]=M=>r(v(De).RIGHT))},{default:U(()=>[N(f)]),_:1})),[[X,"右对齐"]])]),_:1}),N(dt,{class:"row"},{default:U(()=>[de((g(),k(Ve,{style:{flex:"1"},onClick:d[3]||(d[3]=M=>r(v(De).TOP))},{default:U(()=>[N(h)]),_:1})),[[X,"上对齐"]]),de((g(),k(Ve,{style:{flex:"1"},onClick:d[4]||(d[4]=M=>r(v(De).VERTICAL))},{default:U(()=>[N(P)]),_:1})),[[X,"垂直居中"]]),de((g(),k(Ve,{style:{flex:"1"},onClick:d[5]||(d[5]=M=>r(v(De).BOTTOM))},{default:U(()=>[N(O)]),_:1})),[[X,"下对齐"]])]),_:1}),v(a)>2?(g(),k(dt,{key:0,class:"row"},{default:U(()=>[N(Ve,{style:{flex:"1"},onClick:d[6]||(d[6]=M=>v(i)())},{default:U(()=>[ge("水平均匀分布")]),_:1}),N(Ve,{style:{flex:"1"},onClick:d[7]||(d[7]=M=>v(u)())},{default:U(()=>[ge("垂直均匀分布")]),_:1})]),_:1})):z("",!0),N(Ce),N(dt,{class:"row"},{default:U(()=>[N(Ve,{disabled:!v(t),onClick:d[8]||(d[8]=M=>v(n)()),style:{flex:"1"}},{default:U(()=>[N(L,{style:{"margin-right":"3px"}}),ge("组合")]),_:1},8,["disabled"]),N(Ve,{disabled:v(t),onClick:d[9]||(d[9]=M=>v(o)()),style:{flex:"1"}},{default:U(()=>[N(S,{style:{"margin-right":"3px"}}),ge("取消组合")]),_:1},8,["disabled"])]),_:1})])}}}),wK=fe(EK,[["__scopeId","data-v-06321d2c"]]),Ma=[{key:"letter",label:"字母",children:["α","β","γ","δ","ϵ","ε","ζ","η","θ","ϑ","ι","κ","λ","μ","ν","ξ","π","ϖ","ρ","ϱ","σ","ς","τ","υ","ϕ","φ","χ","ψ","ω","Γ","Δ","Θ","Λ","Ξ","Π","Σ","Υ","Φ","Ψ","Ω","𝐀","𝐁","𝐂","𝐃","𝐄","𝐅","𝐆","𝐇","𝐈","𝐉","𝐊","𝐋","𝐌","𝐍","𝐎","𝐏","𝐐","𝐑","𝐒","𝐓","𝐔","𝐕","𝐖","𝐗","𝐘","𝐙","𝐚","𝐛","𝐜","𝐝","𝐞","𝐟","𝐠","𝐡","𝐢","𝐣","𝐤","𝐥","𝐦","𝐧","𝐨","𝐩","𝐪","𝐫","𝐬","𝐭","𝐮","𝐯","𝐰","𝐱","𝐲","𝐳","𝓐","𝓑","𝓒","𝓓","𝓔","𝓕","𝓖","𝓗","𝓘","𝓙","𝓚","𝓛","𝓜","𝓝","𝓞","𝓟","𝓠","𝓡","𝓢","𝓣","𝓤","𝓥","𝓦","𝓧","𝓨","𝓩","𝓪","𝓫","𝓬","𝓭","𝓮","𝓯","𝓰","𝓱","𝓲","𝓳","𝓴","𝓵","𝓶","𝓷","𝓸","𝓹","𝓺","𝓻","𝓼","𝓽","𝓾","𝓿","𝔀","𝔁","𝔂","𝔃"]},{key:"number",label:"序号",children:["①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","⑪","⑫","⑬","⑭","⑮","⑯","⑰","⑱","⑲","⑳","⑴","⑵","⑶","⑷","⑸","⑹","⑺","⑻","⑼","⑽","⑾","⑿","⒀","⒁","⒂","⒃","⒄","⒅","⒆","⒇","º","¹","²","³","⁴","⁵","⁶","⁷","⁸","⁹","₀","₁","₂","₃","₄","₅","₆","₇","₈","₉","Ⅰ","Ⅱ","Ⅲ","Ⅳ","Ⅴ","Ⅵ","Ⅶ","Ⅷ","Ⅸ","Ⅹ","Ⅺ","Ⅻ","Ⅼ","Ⅽ","Ⅾ","Ⅿ","ⅰ","ⅱ","ⅲ","ⅳ","ⅴ","ⅵ","ⅶ","ⅷ","ⅸ","ⅹ","ⅺ","ⅻ","ⅼ","ⅽ","ⅾ","ⅿ","ↀ","ↁ","ↂ","㊀","㊁","㊂","㊃","㊄","㊅","㊆","㊇","㊈","㊉","㈠","㈡","㈢","㈣","㈤","㈥","㈦","㈧","㈨","㈩","𝟘","𝟙","𝟚","𝟛","𝟜","𝟝","𝟞","𝟟","𝟠","𝟡"]},{key:"math",label:"数学",children:["+","-","×","÷","=","~","¬","±","%","°","ǃ","‰","‱","½","⅓","⅔","¼","¾","<",">","l","o","g","l","g","l","n","⨂","⨁","⨄","⨃","⨅","⨆","√","∛","∜","∝","∞","∟","∠","∡","∢","∧","∨","∩","∪","∫","∬","∭","∮","∯","∰","∱","∲","∳","∴","∵","∼","∽","∾","∿","≃","≄","≅","≆","≇","≈","≊","≋","≌","≍","≎","≏","≐","≑","≒","≓","≔","≕","≤","≥","≦","≧","≨","≩","≪","≫","≺","≻","≼","≽","≾","≿","⊀","⊁","⊂","⊃","⊄","⊅","⊆","⊇","⊈","⊉","⊊","⊋","⊏","⊐","⊑","⊒","⊓","⊔","⊢","⊣","⊤","⊥","⊦","⊧","⊨","⊩","⊪","⊫","⊬","⊭","⊮","⊯","⊲","⊳","⊴","⊵","⋀","⋁","⋂","⋃","⋉","⋊","⋋","⋌","⟨","⟩","⟪","⟫","⟮","⟯","⧼","⧽","⦰"]},{key:"arrow",label:"箭头",children:["←","↑","→","↓","↔","↕","↖","↗","↘","↙","↚","↛","↜","↝","↞","↟","↠","↡","↢","↣","↤","↥","↦","↧","↨","↫","↬","↭","↮","↯","↰","↱","↲","↳","↴","↵","↶","↷","↸","↹","↺","↻","↼","↽","↾","↿","⇀","⇁","⇂","⇃","⇄","⇅","⇆","⇇","⇈","⇉","⇊","⇋","⇌","⇍","⇎","⇏","⇐","⇑","⇒","⇓","⇔","⇕","⇖","⇗","⇘","⇙","⇚","⇛","⇜","⇝","⇞","⇟","⇠","⇡","⇢","⇣","⇤","⇥","⇦","⇧","⇨","⇩","⇪","⇫","⇬","⇭","⇮","⇯","⇰","⇱","⇲","⇳","⇴","⇵","⇶","⇷","⇸","⇹","⇺","⇻","⇼","⇽","⇾","⇿"]},{key:"graph",label:"图形",children:["▢","▣","▤","▥","▦","▧","▨","▩","▭","▮","▯","▰","▱","▲","▷","▼","◁","◈","◉","◍","◐","◑","◒","◓","◔","◕","◧","◨","◩","◪","◫","◬","◭","◮"]}],kK={class:"symbol-panel"},JK={class:"pool"},xK=["onClick"],$K={class:"symbol"},DK=j({__name:"SymbolPanel",setup(e){const t=A(Ma[0].key),n=_(()=>{const s=Ma.find(a=>a.key===t.value);return(s==null?void 0:s.children)||[]}),o=Ma.map(s=>({key:s.key,label:s.label})),l=s=>{Jt.emit(Ht.RICH_TEXT_COMMAND,{action:{command:"insert",value:s}})};return(s,a)=>(g(),I("div",kK,[N(uo,{tabs:v(o),value:t.value,"onUpdate:value":a[0]||(a[0]=i=>t.value=i),tabsStyle:{marginBottom:"8px"},spaceBetween:""},null,8,["tabs","value"]),m("div",JK,[(g(!0),I(ie,null,me(n.value,(i,u)=>(g(),I("div",{class:"symbol-item",key:u,onClick:r=>l(i)},[m("div",$K,Me(i),1)],8,xK))),128))])]))}}),BK=fe(DK,[["__scopeId","data-v-322fade4"]]),zK={class:"toolbar"},jK={class:"content"},qK=j({__name:"index",setup(e){const t=Xe(),{activeElementIdList:n,handleElement:o,toolbarState:l}=oe(t),s=_(()=>{var d,R,p;return((d=o.value)==null?void 0:d.type)==="text"?[{label:"样式",key:gt.EL_STYLE},{label:"符号",key:gt.SYMBOL},{label:"位置",key:gt.EL_POSITION},{label:"动画",key:gt.EL_ANIMATION}]:((R=o.value)==null?void 0:R.type)==="elf"&&((p=o.value)==null?void 0:p.subtype)==="elf-sing-play"?[{label:"位置",key:gt.EL_POSITION},{label:"动画",key:gt.EL_ANIMATION}]:[{label:"样式",key:gt.EL_STYLE},{label:"位置",key:gt.EL_POSITION},{label:"动画",key:gt.EL_ANIMATION}]}),a=[{label:"设计",key:gt.SLIDE_DESIGN},{label:"切换",key:gt.SLIDE_ANIMATION},{label:"动画",key:gt.EL_ANIMATION}],i=[{label:"样式",key:gt.EL_STYLE},{label:"位置",key:gt.MULTI_POSITION}],u=d=>{t.setToolbarState(d)},r=_(()=>{if(n.value.length){if(n.value.length>1)return i}else return a;return s.value});Oe(r,()=>{const d=r.value.map(R=>R.key);d.includes(l.value)||t.setToolbarState(d[0])});const c=_(()=>({[gt.EL_STYLE]:I2,[gt.EL_POSITION]:C2,[gt.EL_ANIMATION]:aA,[gt.SLIDE_DESIGN]:UK,[gt.SLIDE_ANIMATION]:_K,[gt.MULTI_POSITION]:wK,[gt.SYMBOL]:BK})[l.value]||null);return(d,R)=>(g(),I("div",zK,[N(uo,{tabs:r.value,value:v(l),card:"","onUpdate:value":R[0]||(R[0]=p=>u(p))},null,8,["tabs","value"]),m("div",jK,[(g(),k(Vt(c.value)))])]))}}),e_=fe(qK,[["__scopeId","data-v-ccacc337"]]),t_={class:"editor"},n_=j({__name:"Editor",props:{value:{}},emits:["update"],setup(e,{expose:t,emit:n}){const o=e,l=n,s=Xe(),a=A();let i;const u=A(),r=A(),c=A(),d=()=>{r.value&&r.value.hide()},R=vt.debounce(function(){l("update",i.dom.innerHTML)},300,{trailing:!0}),p=()=>{s.setDisableHotkeysState(!0)},f=()=>{s.setDisableHotkeysState(!1)};t({updateTextContent:()=>{if(!i)return;const{doc:L,tr:S}=i.state;i.dispatch(S.replaceRangeWith(0,L.content.size,Zi(o.value)))}});const P=()=>{const L=window.getSelection();if(!L||!L.anchorNode||!L.focusNode||L.isCollapsed||L.type==="Caret"||L.type==="None")return;const S=L.getRangeAt(0);if(r.value){u.value=Pa(i);const{x:X,y:M,left:y,top:W}=S.getBoundingClientRect();r.value.setProps({getReferenceClientRect:()=>({x:X,y:M,left:y,top:W,height:0,width:0,right:y,bottom:W})}),r.value.show()}},O=(L,S)=>{if(L==="color"&&S){const X=i.state.schema.marks.forecolor.create({color:S});Xt(i),Pn(i,X)}else if(L==="backcolor"&&S){const X=i.state.schema.marks.backcolor.create({backcolor:S});Xt(i),Pn(i,X)}else if(L==="bold")Xt(i),St(i.state.schema.marks.strong)(i.state,i.dispatch);else if(L==="em")Xt(i),St(i.state.schema.marks.em)(i.state,i.dispatch);else if(L==="underline")Xt(i),St(i.state.schema.marks.underline)(i.state,i.dispatch);else if(L==="strikethrough")Xt(i),St(i.state.schema.marks.strikethrough)(i.state,i.dispatch);else if(L==="bulletList"){const{bullet_list:X,list_item:M}=i.state.schema.nodes;Ns(X,M,"")(i.state,i.dispatch)}else if(L==="orderedList"){const{ordered_list:X,list_item:M}=i.state.schema.nodes;Ns(X,M,"")(i.state,i.dispatch)}else if(L==="clear"){Xt(i);const{$from:X,$to:M}=i.state.selection;i.dispatch(i.state.tr.removeMark(X.pos,M.pos))}i.focus(),R(),u.value=Pa(i)};return Ee(()=>{i=gR(a.value,o.value,{handleDOMEvents:{focus:p,blur:f,mouseup:P,mousedown:()=>{var L;(L=window.getSelection())==null||L.removeAllRanges(),d()},keydown:d,input:R}},{placeholder:"点击输入演讲者备注"}),r.value=gp(a.value,{duration:0,content:c.value,interactive:!0,trigger:"manual",placement:"top-start",hideOnClick:"toggle",offset:[0,6]})}),mt(()=>{i&&i.destroy()}),(L,S)=>{var K,H,Q,G,$,se;const X=te("IconTextBold"),M=te("IconTextItalic"),y=te("IconTextUnderline"),W=te("IconStrikethrough"),T=te("IconText"),V=te("IconHighLight"),b=te("IconList"),Y=te("IconOrderedList"),F=te("IconFormat"),C=ze("click-outside");return de((g(),I("div",t_,[m("div",{class:"prosemirror-editor",ref_key:"editorViewRef",ref:a},null,512),m("div",{class:"menu",ref_key:"menuRef",ref:c},[m("button",{class:E({active:(K=u.value)==null?void 0:K.bold}),onClick:S[0]||(S[0]=Re=>O("bold"))},[N(X)],2),m("button",{class:E({active:(H=u.value)==null?void 0:H.em}),onClick:S[1]||(S[1]=Re=>O("em"))},[N(M)],2),m("button",{class:E({active:(Q=u.value)==null?void 0:Q.underline}),onClick:S[2]||(S[2]=Re=>O("underline"))},[N(y)],2),m("button",{class:E({active:(G=u.value)==null?void 0:G.strikethrough}),onClick:S[3]||(S[3]=Re=>O("strikethrough"))},[N(W)],2),N(Ke,{trigger:"click",style:{width:"30%"}},{content:U(()=>{var Re;return[N(Be,{modelValue:(Re=u.value)==null?void 0:Re.color,"onUpdate:modelValue":S[4]||(S[4]=ae=>O("color",ae))},null,8,["modelValue"])]}),default:U(()=>[m("button",null,[N(T)])]),_:1}),N(Ke,{trigger:"click",style:{width:"30%"}},{content:U(()=>{var Re;return[N(Be,{modelValue:(Re=u.value)==null?void 0:Re.backcolor,"onUpdate:modelValue":S[5]||(S[5]=ae=>O("backcolor",ae))},null,8,["modelValue"])]}),default:U(()=>[m("button",null,[N(V)])]),_:1}),m("button",{class:E({active:($=u.value)==null?void 0:$.bulletList}),onClick:S[6]||(S[6]=Re=>O("bulletList"))},[N(b)],2),m("button",{class:E({active:(se=u.value)==null?void 0:se.orderedList}),onClick:S[7]||(S[7]=Re=>O("orderedList"))},[N(Y)],2),m("button",{onClick:S[8]||(S[8]=Re=>O("clear"))},[N(F)])],512)])),[[C,d]])}}}),o_=fe(n_,[["__scopeId","data-v-e48fc0f0"]]),l_={class:"remark"},s_=j({__name:"index",props:{height:{}},emits:["update:height"],setup(e,{emit:t}){const n=e,o=t,l=Ue(),{currentSlide:s}=oe(l),a=A();Oe(()=>s.value.id,()=>{we(()=>{a.value.updateTextContent()})},{immediate:!0});const i=_(()=>{var c;return((c=s.value)==null?void 0:c.remark)||""}),u=c=>{l.updateSlide({remark:c})},r=c=>{let d=!0;const R=c.pageY,p=n.height;document.onmousemove=f=>{if(!d)return;let O=-(f.pageY-R)+p;O<40&&(O=40),O>360&&(O=360),o("update:height",O)},document.onmouseup=()=>{d=!1,document.onmousemove=null,document.onmouseup=null}};return(c,d)=>(g(),I("div",l_,[m("div",{class:"resize-handler",onMousedown:d[0]||(d[0]=R=>r(R))},null,32),N(o_,{value:i.value,ref_key:"editorRef",ref:a,onUpdate:d[1]||(d[1]=R=>u(R))},null,8,["value"])]))}}),a_=fe(s_,[["__scopeId","data-v-b18b55a0"]]),i_=()=>{const e=Ue(),t=Xe(),{currentSlide:n}=oe(e),{activeElementIdList:o,hiddenElementIdList:l}=oe(t);return{toggleHideElement:u=>{l.value.includes(u)?t.setHiddenElementIdList(l.value.filter(r=>r!==u)):t.setHiddenElementIdList([...l.value,u]),o.value.includes(u)&&t.setActiveElementIdList([])},showAllElements:()=>{const u=n.value.elements.map(c=>c.id),r=l.value.filter(c=>!u.includes(c));t.setHiddenElementIdList(r)},hideAllElements:()=>{const u=n.value.elements.map(r=>r.id);t.setHiddenElementIdList([...l.value,...u]),o.value.length&&t.setActiveElementIdList([])}}},r_=e=>(Je("data-v-022f9cd0"),e=e(),xe(),e),u_={key:0,class:"handler"},c_={class:"btns"},d_={key:0,class:"icon-btns"},R_={class:"element-list"},f_={key:0,class:"group-els"},p_=r_(()=>m("div",{class:"group-title"},"组合",-1)),h_=["onClick","onDblclick"],v_=["id","value","onBlur","onKeydown"],m_={key:1,class:"name"},M_={class:"icons"},g_=["onClick","onDblclick"],S_=["id","value","onBlur","onKeydown"],O_={key:1,class:"name"},P_={class:"icons"},N_=j({__name:"SelectPanel",setup(e){const t=Ue(),n=Xe(),{currentSlide:o}=oe(t),{handleElement:l,handleElementId:s,activeElementIdList:a,activeGroupElementId:i,hiddenElementIdList:u}=oe(n),{orderElement:r}=Ks(),{selectElement:c}=As(),{toggleHideElement:d,showAllElements:R,hideAllElements:p}=i_(),f=_(()=>{const X=[];for(const M of o.value.elements)if(M.groupId){const y=X[X.length-1];y&&y.type==="group"&&y.id&&y.id===M.groupId?y.elements.push(M):X.push({type:"group",id:M.groupId,elements:[M]})}else X.push(M);return X}),h=(X,M)=>{if(s.value===M||u.value.includes(M))return;const y=X.elements.map(W=>W.id);n.setActiveElementIdList(y),n.setHandleElementId(M),we(()=>n.setActiveGroupElementId(M))},P=A(""),O=(X,M)=>{const y=X.target.value;t.updateElement({id:M,props:{name:y}}),P.value=""},L=X=>{P.value=X,we(()=>{document.querySelector(`#select-panel-input-${X}`).focus()})},S=()=>{n.setSelectPanelState(!1)};return(X,M)=>{const y=te("IconDown"),W=te("IconUp"),T=te("IconPreviewClose"),V=te("IconPreviewOpen");return g(),k(oi,{class:"select-panel",width:200,height:360,title:`选择(${v(a).length}/${v(o).elements.length})`,left:-270,top:90,onClose:M[4]||(M[4]=b=>S())},{default:U(()=>[f.value.length?(g(),I("div",u_,[m("div",c_,[N(Ve,{size:"small",style:{"margin-right":"5px"},onClick:M[0]||(M[0]=b=>v(R)())},{default:U(()=>[ge("全部显示")]),_:1}),N(Ve,{size:"small",onClick:M[1]||(M[1]=b=>v(p)())},{default:U(()=>[ge("全部隐藏")]),_:1})]),v(l)?(g(),I("div",d_,[N(y,{class:"icon-btn",onClick:M[2]||(M[2]=b=>v(r)(v(l),v(Tt).UP))}),N(W,{class:"icon-btn",onClick:M[3]||(M[3]=b=>v(r)(v(l),v(Tt).DOWN))})])):z("",!0)])):z("",!0),m("div",R_,[(g(!0),I(ie,null,me(f.value,b=>(g(),I(ie,{key:b.id},[b.type==="group"?(g(),I("div",f_,[p_,(g(!0),I(ie,null,me(b.elements,Y=>(g(),I("div",{class:E(["item",{active:v(a).includes(Y.id),"group-active":v(i).includes(Y.id)}]),key:Y.id,onClick:F=>h(b,Y.id),onDblclick:F=>L(Y.id)},[P.value===Y.id?(g(),I("input",{key:0,id:`select-panel-input-${Y.id}`,value:Y.name||v(vl)[Y.type],class:"input",type:"text",onBlur:F=>O(F,Y.id),onKeydown:Yt(F=>O(F,Y.id),["enter"])},null,40,v_)):(g(),I("div",m_,Me(Y.name||v(vl)[Y.type]),1)),m("div",M_,[v(u).includes(Y.id)?(g(),k(T,{key:0,style:{"font-size":"17px"},onClick:Fe(F=>v(d)(Y.id),["stop"])},null,8,["onClick"])):(g(),k(V,{key:1,style:{"font-size":"17px"},onClick:Fe(F=>v(d)(Y.id),["stop"])},null,8,["onClick"]))])],42,h_))),128))])):(g(),I("div",{key:1,class:E(["item",{active:v(a).includes(b.id)}]),onClick:Y=>v(c)(b.id),onDblclick:Y=>L(b.id)},[P.value===b.id?(g(),I("input",{key:0,id:`select-panel-input-${b.id}`,value:b.name||v(vl)[b.type],class:"input",type:"text",onBlur:Y=>O(Y,b.id),onKeydown:Yt(Y=>O(Y,b.id),["enter"])},null,40,S_)):(g(),I("div",O_,Me(b.name||v(vl)[b.type]),1)),m("div",P_,[v(u).includes(b.id)?(g(),k(T,{key:0,style:{"font-size":"17px"},onClick:Fe(Y=>v(d)(b.id),["stop"])},null,8,["onClick"])):(g(),k(V,{key:1,style:{"font-size":"17px"},onClick:Fe(Y=>v(d)(b.id),["stop"])},null,8,["onClick"]))])],42,g_))],64))),128))])]),_:1},8,["title"])}}}),X_=fe(N_,[["__scopeId","data-v-022f9cd0"]]),T_=()=>{const e=Xe(),t=Ue(),{handleElement:n}=oe(e),{slides:o,slideIndex:l,currentSlide:s}=oe(t),a=A(""),i=A(""),u=A([]),r=A(-1),c=A("g"),d=()=>{const Y=[],F=new RegExp(a.value,c.value),C=/(<([^>]+)>)/g;for(const K of o.value)for(const H of K.elements)if(H.type==="text"){const G=H.content.replace(C,"").match(F);G&&Y.push(...new Array(G.length).fill({slideId:K.id,elId:H.id,elType:H.type}))}else if(H.type==="shape"&&H.text&&H.text.content){const G=H.text.content.replace(C,"").match(F);G&&Y.push(...new Array(G.length).fill({slideId:K.id,elId:H.id,elType:H.type}))}else if(H.type==="table")for(let Q=0;Q<H.data.length;Q++){const G=H.data[Q];for(let $=0;$<G.length;$++){const se=G[$];if(!se.text)continue;const ae=se.text.replace(C,"").match(F);ae&&Y.push(...new Array(ae.length).fill({slideId:K.id,elId:H.id,elType:H.type,cellIndex:[Q,$]}))}}Y.length?(u.value=Y,r.value=0,L()):(Wt.warning("未查找到匹配项"),O())},R=Y=>{const F=[...Y.childNodes],C=[];for(;F.length;){const K=F.shift();K.nodeType===K.TEXT_NODE?K.wholeText&&C.push(K):F.unshift(...K.childNodes)}return C},p=Y=>{let F=0;return Y.map(K=>{const H=F,Q=F+K.wholeText.length;return F=Q,{text:K.wholeText,startIdx:H,endIdx:Q}})},f=(Y,F)=>{const C=new RegExp(F,c.value),K=[];let H=C.exec(Y);for(;H;)K.push(H),H=C.exec(Y);return K},h=(Y,F,C,K)=>{for(let H=C.length-1;H>=0;H--){const Q=C[H],G=Q.index,$=G+Q[0].length;for(let se=0;se<F.length;se++){const{text:Re,startIdx:ae,endIdx:Pe}=F[se];if(Pe<G)continue;if(ae>=$)break;let x=Y[se];const B=Math.max(0,G-ae),Ie=Math.min(Pe,$)-ae-B;B>0&&(x=x.splitText(B)),Ie<x.wholeText.length&&x.splitText(Ie);const ce=document.createElement("mark");ce.dataset.index=K+H+"",ce.innerText=Re.substring(B,B+Ie),x.parentNode.replaceChild(ce,x)}}},P=(Y,F)=>{for(const C of Y)C.innerHTML=C.innerHTML.replace(new RegExp(a.value,c.value),()=>`<mark data-index=${F++}>${a.value}</mark>`)},O=()=>{const Y=document.querySelectorAll(".editable-element mark");for(const F of Y)setTimeout(()=>{const C=F.parentNode,K=F.textContent;C.replaceChild(document.createTextNode(K),F)},0)},L=()=>{O(),setTimeout(()=>{for(let Y=0;Y<u.value.length;Y++){const F=u.value[Y-1],C=u.value[Y];if(C.slideId!==s.value.id||F&&F.elId===C.elId)continue;const K=document.querySelector(`#editable-element-${C.elId}`);if(K)if(C.elType==="table"){const H=K.querySelectorAll(".cell-text");P(H,Y)}else{const H=R(K),Q=p(H),G=Q.map(({text:se})=>se).join(""),$=f(G,a.value);h(H,Q,$,Y)}}},0)},S=()=>{const Y=document.querySelectorAll("mark[data-index]");for(const F of Y)setTimeout(()=>{const C=F.dataset.index;C!==void 0&&+C===r.value?F.classList.add("active"):F.classList.remove("active")},0)},X=()=>{if(r.value===-1)return;const Y=u.value[r.value];if(Y.slideId===s.value.id)setTimeout(S,0);else{const F=o.value.findIndex(C=>C.id===Y.slideId);F!==-1&&t.updateSlideIndex(F)}},M=()=>{if(!a.value)return Wt.warning("请先输入查找内容");e.setActiveElementIdList([]),r.value===-1?d():r.value<u.value.length-1?r.value+=1:r.value=0,X()},y=()=>{if(!a.value)return Wt.warning("请先输入查找内容");e.setActiveElementIdList([]),r.value===-1?d():r.value>0?r.value-=1:r.value=u.value.length-1,X()},W=()=>{if(!a.value)return;if(r.value===-1){M();return}const Y=u.value[r.value];let F=null;if(Y.elType==="table"){const[Q,G]=Y.cellIndex;F=document.querySelector(`#editable-element-${Y.elId} .cell[data-cell-index="${Q}_${G}"] .cell-text`)}else F=document.querySelector(`#editable-element-${Y.elId} .ProseMirror`);if(!F)return;const C=document.createElement("div");C.innerHTML=F.innerHTML;let K=!1;const H=C.querySelectorAll("mark[data-index]");for(const Q of H){const G=Q.parentNode;if(Q.classList.contains("active"))K?G.removeChild(Q):(G.replaceChild(document.createTextNode(i.value),Q),K=!0);else{const $=Q.textContent;G.replaceChild(document.createTextNode($),Q)}}if(Y.elType==="text"){const Q={content:C.innerHTML};t.updateElement({id:Y.elId,props:Q})}else if(Y.elType==="shape"){const Q=s.value.elements.find(G=>G.id===Y.elId);if(Q&&Q.type==="shape"&&Q.text){const G={text:{...Q.text,content:C.innerHTML}};t.updateElement({id:Y.elId,props:G})}}else if(Y.elType==="table"){const Q=s.value.elements.find(G=>G.id===Y.elId);if(Q&&Q.type==="table"){const $={data:Q.data.map((se,Re)=>Re===Y.cellIndex[0]?se.map((ae,Pe)=>Pe===Y.cellIndex[1]?{...ae,text:C.innerHTML}:ae):se)};t.updateElement({id:Y.elId,props:$})}}u.value.splice(r.value,1),u.value.length?(r.value>u.value.length-1&&(r.value=0),we(()=>{L(),X()})):r.value=-1},T=()=>{var Y;if(a.value){if(r.value===-1){M();return}for(let F=0;F<u.value.length;F++){const C=u.value[F-1],K=u.value[F];if(C&&C.elId===K.elId)continue;const H=o.value.find($=>$.id===K.slideId);if(!H)continue;const Q=H.elements.find($=>$.id===K.elId);if(!Q)continue;const G=document.createElement("div");if(Q.type==="text"?G.innerHTML=Q.content:Q.type==="shape"&&(G.innerHTML=((Y=Q.text)==null?void 0:Y.content)||""),K.elType==="table"){const se={data:Q.data.map(Re=>Re.map(ae=>ae.text?{...ae,text:ae.text.replace(new RegExp(a.value,"g"),i.value)}:ae))};t.updateElement({id:K.elId,slideId:K.slideId,props:se})}else{const $=R(G),se=p($),Re=se.map(({text:B})=>B).join(""),ae=f(Re,a.value);h($,se,ae,F);const Pe=G.querySelectorAll("mark[data-index]");let x=-1;for(const B of Pe){const Ie=+B.dataset.index,ce=B.parentNode;Ie===x?ce.removeChild(B):(ce.replaceChild(document.createTextNode(i.value),B),x=Ie)}if(K.elType==="text"){const B={content:G.innerHTML};t.updateElement({id:K.elId,slideId:K.slideId,props:B})}else if(K.elType==="shape"){const B=s.value.elements.find(Ie=>Ie.id===K.elId);if(B&&B.type==="shape"&&B.text){const Ie={text:{...B.text,content:G.innerHTML}};t.updateElement({id:K.elId,slideId:K.slideId,props:Ie})}}}}u.value=[],r.value=-1}},V=()=>{r.value=-1,u.value=[],a.value||O()};return Oe(a,V),Oe(l,()=>{we(()=>{L(),setTimeout(S,0)})}),Oe(n,()=>{n.value&&(r.value=-1,u.value=[],O())}),Gt(O),{searchWord:a,replaceWord:i,searchResults:u,searchIndex:r,modifiers:c,searchNext:M,searchPrev:y,replace:W,replaceAll:T,toggleModifiers:()=>{c.value=c.value==="g"?"gi":"g",V()}}},V_={class:"count"},y_={key:1,class:"footer"},L_=j({__name:"SearchPanel",setup(e){const t=Xe(),{searchWord:n,replaceWord:o,searchResults:l,searchIndex:s,modifiers:a,searchNext:i,searchPrev:u,replace:r,replaceAll:c,toggleModifiers:d}=T_(),R=A("search"),p=[{key:"search",label:"查找"},{key:"replace",label:"替换"}],f=()=>{t.setSearchPanelState(!1)},h=A();return Ee(()=>{h.value.focus()}),Oe(R,()=>{we(()=>{h.value.focus()})}),(P,O)=>{const L=te("IconClose"),S=te("IconLeft"),X=te("IconRight"),M=ze("tooltip");return g(),k(oi,{class:"search-panel",width:330,height:0,left:-270,top:90},{default:U(()=>[m("div",{class:"close-btn",onClick:O[0]||(O[0]=y=>f()),onMousedown:O[1]||(O[1]=Fe(()=>{},["stop"]))},[N(L)],32),N(uo,{tabs:p,value:R.value,"onUpdate:value":O[2]||(O[2]=y=>R.value=y)},null,8,["value"]),m("div",{class:E(["content",R.value]),onMousedown:O[12]||(O[12]=Fe(()=>{},["stop"]))},[N(el,{class:"input",value:v(n),"onUpdate:value":O[6]||(O[6]=y=>rs(n)?n.value=y:null),placeholder:"输入查找内容",onEnter:O[7]||(O[7]=y=>v(i)()),ref_key:"searchInpRef",ref:h},{suffix:U(()=>[m("span",V_,Me(v(s)+1)+"/"+Me(v(l).length),1),N(Ce,{type:"vertical"}),de((g(),I("span",{class:E(["ignore-case",{active:v(a)==="g"}]),onClick:O[3]||(O[3]=y=>v(d)())},[ge("Aa")],2)),[[M,"忽略大小写"]]),N(Ce,{type:"vertical"}),de(N(S,{class:"next-btn left",onClick:O[4]||(O[4]=y=>v(u)())},null,512),[[M,"上一个"]]),de(N(X,{class:"next-btn right",onClick:O[5]||(O[5]=y=>v(i)())},null,512),[[M,"下一个"]])]),_:1},8,["value"]),R.value==="replace"?(g(),k(el,{key:0,class:"input",value:v(o),"onUpdate:value":O[8]||(O[8]=y=>rs(o)?o.value=y:null),placeholder:"输入替换内容",onEnter:O[9]||(O[9]=y=>v(r)())},null,8,["value"])):z("",!0),R.value==="replace"?(g(),I("div",y_,[N(Ve,{disabled:!v(n),style:{"margin-left":"5px"},onClick:O[10]||(O[10]=y=>v(r)())},{default:U(()=>[ge("替换")]),_:1},8,["disabled"]),N(Ve,{disabled:!v(n),type:"primary",style:{"margin-left":"5px"},onClick:O[11]||(O[11]=y=>v(c)())},{default:U(()=>[ge("全部替换")]),_:1},8,["disabled"])])):z("",!0)],34)]),_:1})}}}),b_=fe(L_,[["__scopeId","data-v-d3675e58"]]),I_={class:"container"},Y_={class:"notes"},W_=["onClick"],U_={class:"header note-header"},Q_={class:"user"},F_={class:"avatar"},Z_={class:"user-info"},A_={class:"username"},K_={class:"time"},__={class:"btns"},H_=["onClick"],C_=["onClick"],G_={class:"content"},E_={key:0,class:"replies"},w_={class:"header reply-header"},k_={class:"user"},J_={class:"avatar"},x_={class:"user-info"},$_={class:"username"},D_={class:"time"},B_={class:"btns"},z_=["onClick"],j_={class:"content"},q_={key:1,class:"note-reply"},eH={class:"reply-btns"},tH={key:0,class:"empty"},nH={class:"send"},oH={class:"footer"},lH=j({__name:"NotesPanel",setup(e){const t=Ue(),n=Xe(),{slideIndex:o,currentSlide:l}=oe(t),{handleElementId:s}=oe(n),a=A(""),i=A(""),u=_(()=>{var X;return((X=l.value)==null?void 0:X.notes)||[]}),r=A(""),c=A(""),d=A(),R=Sp();Oe(o,()=>{r.value="",c.value=""});const p=()=>{if(!a.value){d.value&&d.value.focus();return}const X={id:st(),content:a.value,time:new Date().getTime(),user:R.userInfo.nickname||"用户"+new Date().getTime()};s.value&&(X.elId=s.value);const M=[...u.value,X];t.updateSlide({notes:M}),a.value=""},f=X=>{const M=u.value.filter(y=>y.id!==X);t.updateSlide({notes:M})},h=()=>{if(!i.value)return;const X=u.value.find(T=>T.id===c.value);if(!X)return;const M=[...X.replies||[],{id:st(),content:i.value,time:new Date().getTime(),user:R.userInfo.nickname||"用户"+new Date().getTime()}],y={...X,replies:M},W=u.value.map(T=>T.id===c.value?y:T);t.updateSlide({notes:W}),i.value="",c.value=""},P=(X,M)=>{const y=u.value.find(b=>b.id===X);if(!y||!y.replies)return;const W=y.replies.filter(b=>b.id!==M),T={...y,replies:W},V=u.value.map(b=>b.id===X?T:b);t.updateSlide({notes:V})},O=X=>{r.value=X.id,X.elId?l.value.elements.map(y=>y.id).includes(X.elId)?n.setActiveElementIdList([X.elId]):n.setActiveElementIdList([]):n.setActiveElementIdList([])},L=()=>{t.updateSlide({notes:[]})},S=()=>{n.setNotesPanelState(!1)};return(X,M)=>{const y=te("IconUser"),W=te("IconDelete"),T=ze("tooltip");return g(),k(oi,{class:"notes-panel",width:300,height:560,title:`幻灯片${v(o)+1}的批注`,left:-270,top:90,minWidth:300,minHeight:400,maxWidth:480,maxHeight:780,resizeable:"",onClose:M[7]||(M[7]=V=>S())},{default:U(()=>[m("div",I_,[m("div",Y_,[(g(!0),I(ie,null,me(u.value,V=>{var b;return g(),I("div",{class:E(["note",{active:r.value===V.id}]),key:V.id,onClick:Y=>O(V)},[m("div",U_,[m("div",Q_,[m("div",F_,[N(y)]),m("div",Z_,[m("div",A_,Me(V.user),1),m("div",K_,Me(new Date(V.time).toLocaleString()),1)])]),m("div",__,[m("div",{class:"btn reply",onClick:Y=>c.value=V.id},"回复",8,H_),m("div",{class:"btn delete",onClick:Fe(Y=>f(V.id),["stop"])},"删除",8,C_)])]),m("div",G_,Me(V.content),1),(b=V.replies)!=null&&b.length?(g(),I("div",E_,[(g(!0),I(ie,null,me(V.replies,Y=>(g(),I("div",{class:"reply-item",key:Y.id},[m("div",w_,[m("div",k_,[m("div",J_,[N(y)]),m("div",x_,[m("div",$_,Me(Y.user),1),m("div",D_,Me(new Date(Y.time).toLocaleString()),1)])]),m("div",B_,[m("div",{class:"btn delete",onClick:Fe(F=>P(V.id,Y.id),["stop"])},"删除",8,z_)])]),m("div",j_,Me(Y.content),1)]))),128))])):z("",!0),c.value===V.id?(g(),I("div",q_,[N($a,{padding:6,value:i.value,"onUpdate:value":M[0]||(M[0]=Y=>i.value=Y),placeholder:"输入回复内容",rows:1},null,8,["value"]),m("div",eH,[N(Ve,{class:"btn",size:"small",onClick:M[1]||(M[1]=Y=>c.value="")},{default:U(()=>[ge("取消")]),_:1}),N(Ve,{class:"btn",size:"small",type:"primary",onClick:M[2]||(M[2]=Y=>h())},{default:U(()=>[ge("回复")]),_:1})])])):z("",!0)],10,W_)}),128)),u.value.length?z("",!0):(g(),I("div",tH,"本页暂无批注"))]),m("div",nH,[N($a,{ref_key:"textAreaRef",ref:d,value:a.value,"onUpdate:value":M[3]||(M[3]=V=>a.value=V),padding:6,placeholder:`输入批注(为${v(s)?"选中元素":"当前页幻灯片"})`,rows:2,onFocus:M[4]||(M[4]=()=>{c.value="",r.value=""})},null,8,["value","placeholder"]),m("div",oH,[de(N(W,{class:"btn icon",style:{flex:"1"},onClick:M[5]||(M[5]=V=>L())},null,512),[[T,"清空本页批注"]]),N(Ve,{type:"primary",class:"btn",style:{flex:"12"},onClick:M[6]||(M[6]=V=>p())},{default:U(()=>[ge("添加批注")]),_:1})])])])]),_:1},8,["title"])}}}),sH=fe(lH,[["__scopeId","data-v-4246a7cc"]]),aH={class:"pptist-editor"},iH={class:"layout-content"},rH={class:"layout-content-center"},uH=j({__name:"index",setup(e){const t=Xe(),{showSelectPanel:n,showSearchPanel:o,showNotesPanel:l}=oe(t),s=A(50);return TN(),VN(),(a,i)=>(g(),I(ie,null,[m("div",aH,[N(rX,{class:"layout-header"}),N(zY,{class:"center-top"}),m("div",iH,[N(PW,{class:"layout-content-left"}),m("div",rH,[N(ML,{class:"center-body",style:ee({height:`calc(100% - ${s.value}px)`})},null,8,["style"]),N(a_,{class:"center-bottom",height:s.value,"onUpdate:height":i[0]||(i[0]=u=>s.value=u),style:ee({height:`${s.value}px`})},null,8,["height","style"])]),N(e_,{class:"layout-content-right"})])]),v(n)?(g(),k(X_,{key:0})):z("",!0),v(o)?(g(),k(b_,{key:1})):z("",!0),v(l)?(g(),k(sH,{key:2})):z("",!0)],64))}}),cH=fe(uH,[["__scopeId","data-v-79ffbda7"]]),dH={class:"pptEditor"},RH=j({__name:"pptEditor",setup(e){const t=bl(),n=Xe(),o=ei(),l=Op(),{databaseId:s}=oe(n),{screening:a}=oe(l);return l.setScreenMode("pptEditor"),window.onbeforeunload=()=>{if(!t.isSave)return!1},t.initPPTData().then(async()=>{await Pp(),o.initSnapshotDatabase()}),Ee(async()=>{n.setAvailableFonts()}),window.addEventListener("unload",()=>{const i=localStorage.getItem(ji),u=i?JSON.parse(i):[];u.push(s.value);const r=JSON.stringify(u);localStorage.setItem(ji,r)}),(i,u)=>(g(),I("div",dH,[v(a)?(g(),k(oh,{key:0})):(g(),k(cH,{key:1}))]))}}),mH=fe(RH,[["__scopeId","data-v-de3191cb"]]);export{mH as default};
|